expr.c (emit_group_store): Corrected BITFIELD_END parameter.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2013-12-01  Bernd Edlinger <bernd.edlinger@hotmail.de>
2
3         * expr.c (emit_group_store): Corrected BITFIELD_END parameter.
4
5 2013-11-30  Paulo Matos  <pmatos@broadcom.com>
6             Eric Botcazou  <ebotcazou@adacore.com>
7
8         * combine.c (reg_nonzero_bits_for_combine): Apply mask transformation
9         as applied to nonzero_sign_valid when last_set_mode has less precision
10         than mode.
11
12 2013-11-30  Tobias Burnus  <burnus@net-b.de>
13
14         PR sanitizer/59275
15         * doc/invoke.texi (-fsanitize=address,leak): Mention the associated
16         environment variable and link to a list with flags.
17         (-fsanitize=thread): Ditto and update link.
18
19 2013-11-29  Vladimir Makarov  <vmakarov@redhat.com>
20
21         PR rtl-optimization/59340
22         * lra.c (check_rtl): Use recog_memoized instead of insn_invalid_p.
23
24         Revert
25         2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
26
27         * lra.c (lra): Set lra_in_progress before check_rtl call.
28         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
29         adding clobber regs when LRA is running.
30
31 2013-11-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32
33         PR target/59289
34         * config/arm/arm.c (cortexa15_extra_costs): Adjust costs.
35
36 2013-11-29  Richard Biener  <rguenther@suse.de>
37
38         PR middle-end/59208
39         * tree-ssa-operands.h (fini_ssa_operands, verify_ssa_operands,
40         free_stmt_operands, update_stmt_operands): Add struct function
41         argument.
42         * tree-ssa-operands.c: Remove uses of cfun, propagate struct
43         function argument from fini_ssa_operands, verify_ssa_operands,
44         free_stmt_operands and update_stmt_operands everywhere.
45         * tree-ssanames.h (release_ssa_name_fn): New.
46         (release_ssa_name): Inline wrapper around release_ssa_name_fn.
47         * tree-ssanames.c (release_ssa_name): Rename to ...
48         (release_ssa_name_fn): ... this and add struct function argument.
49         * gimple-ssa.h (update_stmt, update_stmt_if_modified): Adjust.
50         (update_stmt_fn): New function.
51         * tree-cfg.c (move_block_to_fn): Adjust.
52         * tree-if-conv.c (free_bb_predicate): Likewise.
53         * tree-ssa.c (verify_ssa): Likewise.
54         (delete_tree_ssa): Likewise.
55         * gimple-pretty-print.c (dump_gimple_mem_ops): Remove guard.
56         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Call
57         update_stmt_fn instead of update_stmt.
58
59 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
60
61         * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Return NO_REGS
62         for LRA.
63
64 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
65
66          * config/arm/arm.md (store_minmaxsi): Use only when
67         optimize_function_for_size_p.
68
69 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
70             Yury Gribov  <y.gribov@samsung.com>
71
72         PR sanitizer/59063
73         * config/gnu-user.h: Removed old code for setting up sanitizer
74         libs.
75         * gcc.c: Using libsanitizer spec instead of explicit libs.
76
77 2013-11-29  Ilya Enkovich  <ilya.enkovich@intel.com>
78
79         Reverted:
80         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
81         * cgraph.h (varpool_node): Add need_bounds_init field.
82         * lto-cgraph.c (lto_output_varpool_node): Output
83         need_bounds_init value.
84         (input_varpool_node): Read need_bounds_init value.
85         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
86
87         Reverted:
88         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
89         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
90         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
91         (gen_type_die_with_usage): Skip pointer bounds.
92         (dwarf2out_global_decl): Likewise.
93
94         Reverted:
95         2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
96         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
97         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
98         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
99         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
100         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
101         (gimple_call_with_bounds_p): New.
102         (gimple_call_set_with_bounds): New.
103         (gimple_call_num_nobnd_args): Remove.
104         (gimple_call_nobnd_arg): Remove.
105         * tree.h (CALL_WITH_BOUNDS_P): New.
106         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
107
108         Reverted:
109         2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
110         * common.opt (fcheck-pointer-bounds): Move to ...
111         * c-family/c.opt: ... here.
112         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
113         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
114         * langhooks.h (lang_hooks): Remove chkp_supported field.
115         * toplev.c (process_options): Remove chkp_supported check.
116
117         Reverted:
118         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
119         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
120         * tree.h (POINTER_BOUNDS_P): New.
121         (BOUNDED_TYPE_P): New.
122         (BOUNDED_P): New.
123         (pointer_bounds_type_node): New.
124         * tree.c (build_common_tree_nodes): Initialize
125         pointer_bounds_type_node.
126         * gimple.h (gimple_call_get_nobnd_arg_index): New.
127         (gimple_call_num_nobnd_args): New.
128         (gimple_call_nobnd_arg): New.
129         (gimple_return_retbnd): New.
130         (gimple_return_set_retbnd): New
131         * gimple.c (gimple_build_return): Increase number of ops
132         for return statement.
133         (gimple_call_get_nobnd_arg_index): New.
134         * gimple-pretty-print.c (dump_gimple_return): Print second op.
135
136         Reverted:
137         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
138         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
139         with "chkp ctor" and "bnd_legacy" attributes.
140         * gimplify.c (gimplify_init_constructor): Avoid infinite
141         loop during gimplification of bounds initializer.
142
143         Reverted:
144         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
145         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
146         (handle_bnd_legacy): New.
147         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
148         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
149         attributes.
150
151         Reverted:
152         2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
153         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
154         (BT_FN_PTR_CONST_PTR): New.
155         (BT_FN_CONST_PTR_CONST_PTR): New.
156         (BT_FN_PTR_CONST_PTR_SIZE): New.
157         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
158         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
159         (BT_FN_VOID_CONST_PTR_SIZE): New.
160         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
161         * chkp-builtins.def: New.
162         * builtins.def: include chkp-builtins.def.
163         (DEF_CHKP_BUILTIN): New.
164         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
165         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
166         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
167         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
168         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
169         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
170         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
171         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
172         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
173         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
174         * common.opt (fcheck-pointer-bounds): New.
175         * toplev.c (process_options): Check Pointer Bounds Checker is
176         supported.
177         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
178
179         Reverted:
180         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
181         * target.def (builtin_chkp_function): New.
182         (chkp_bound_type): New.
183         (chkp_bound_mode): New.
184         (fn_abi_va_list_bounds_size): New.
185         (load_bounds_for_arg): New.
186         (store_bounds_for_arg): New.
187         * targhooks.h (default_load_bounds_for_arg): New.
188         (default_store_bounds_for_arg): New.
189         (default_fn_abi_va_list_bounds_size): New.
190         (default_chkp_bound_type): New.
191         (default_chkp_bound_mode): New.
192         (default_builtin_chkp_function): New.
193         * targhooks.c (default_load_bounds_for_arg): New.
194         (default_store_bounds_for_arg): New.
195         (default_fn_abi_va_list_bounds_size): New.
196         (default_chkp_bound_type): New.
197         (default_chkp_bound_mode); New.
198         (default_builtin_chkp_function): New.
199         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
200         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
201         (TARGET_STORE_BOUNDS_FOR_ARG): New.
202         (TARGET_BUILTIN_CHKP_FUNCTION): New.
203         (TARGET_CHKP_BOUND_TYPE): New.
204         (TARGET_CHKP_BOUND_MODE): New.
205         * doc/tm.texi: Regenerated.
206         * langhooks.h (lang_hooks): Add chkp_supported field.
207         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
208         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
209
210         Reverted:
211         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
212         * config/i386/constraints.md (B): New.
213         (Ti): New.
214         (Tb): New.
215         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
216         * config/i386/i386-modes.def (BND32): New.
217         (BND64): New.
218         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
219         * config/i386/i386.c (isa_opts): Add mmpx.
220         (regclass_map): Add bound registers.
221         (dbx_register_map): Likewise.
222         (dbx64_register_map): Likewise.
223         (svr4_dbx_register_map): Likewise.
224         (PTA_MPX): New.
225         (ix86_option_override_internal): Support MPX ISA.
226         (ix86_conditional_register_usage): Support bound registers.
227         (print_reg): Likewise.
228         (ix86_code_end): Add MPX bnd prefix.
229         (output_set_got): Likewise.
230         (ix86_output_call_insn): Likewise.
231         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
232         (ix86_print_operand_punct_valid_p): Likewise.
233         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
234         UNSPEC_BNDMK_ADDR.
235         (ix86_class_likely_spilled_p): Add bound regs support.
236         (ix86_hard_regno_mode_ok): Likewise.
237         (x86_order_regs_for_local_alloc): Likewise.
238         (ix86_bnd_prefixed_insn_p): New.
239         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
240         (FIXED_REGISTERS): Add bound registers.
241         (CALL_USED_REGISTERS): Likewise.
242         (REG_ALLOC_ORDER): Likewise.
243         (HARD_REGNO_NREGS): Likewise.
244         (TARGET_MPX): New.
245         (VALID_BND_REG_MODE): New.
246         (FIRST_BND_REG): New.
247         (LAST_BND_REG): New.
248         (reg_class): Add BND_REGS.
249         (REG_CLASS_NAMES): Likewise.
250         (REG_CLASS_CONTENTS): Likewise.
251         (BND_REGNO_P): New.
252         (ANY_BND_REG_P): New.
253         (BNDmode): New.
254         (HI_REGISTER_NAMES): Add bound registers.
255         * config/i386/i386.md (UNSPEC_BNDMK): New.
256         (UNSPEC_BNDMK_ADDR): New.
257         (UNSPEC_BNDSTX): New.
258         (UNSPEC_BNDLDX): New.
259         (UNSPEC_BNDLDX_ADDR): New.
260         (UNSPEC_BNDCL): New.
261         (UNSPEC_BNDCU): New.
262         (UNSPEC_BNDCN): New.
263         (UNSPEC_MPX_FENCE): New.
264         (BND0_REG): New.
265         (BND1_REG): New.
266         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
267         (length_immediate): Likewise.
268         (prefix_0f): Likewise.
269         (memory): Likewise.
270         (prefix_rep): Check for bnd prefix.
271         (length_nobnd): New.
272         (length): Use length_nobnd if specified.
273         (BND): New.
274         (bnd_ptr): New.
275         (BNDCHECK): New.
276         (bndcheck): New.
277         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
278         (*jcc_2): Likewise.
279         (jump): Likewise.
280         (simple_return_internal): Likewise.
281         (simple_return_pop_internal): Likewise.
282         (*indirect_jump): Add MPX bnd prefix.
283         (*tablejump_1): Likewise.
284         (simple_return_internal_long): Likewise.
285         (simple_return_indirect_internal): Likewise.
286         (<mode>_mk): New.
287         (*<mode>_mk): New.
288         (mov<mode>): New.
289         (*mov<mode>_internal_mpx): New.
290         (<mode>_<bndcheck>): New.
291         (*<mode>_<bndcheck>): New.
292         (<mode>_ldx): New.
293         (*<mode>_ldx): New.
294         (<mode>_stx): New.
295         (*<mode>_stx): New.
296         * config/i386/predicates.md (lea_address_operand): Rename to...
297         (address_no_seg_operand): ... this.
298         (address_mpx_no_base_operand): New.
299         (address_mpx_no_index_operand): New.
300         (bnd_mem_operator): New.
301         * config/i386/i386.opt (mmpx): New.
302         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
303         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
304
305         Reverted:
306         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
307         * mode-classes.def (MODE_POINTER_BOUNDS): New.
308         * tree.def (POINTER_BOUNDS_TYPE): New.
309         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
310         (POINTER_BOUNDS_MODE): New.
311         (make_pointer_bounds_mode): New.
312         * machmode.h (POINTER_BOUNDS_MODE_P): New.
313         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
314         (layout_type): Support POINTER_BOUNDS_TYPE.
315         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
316         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
317         (type_contains_placeholder_1): Likewise.
318         * tree.h (POINTER_BOUNDS_TYPE_P): New.
319         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
320         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
321
322 2013-11-29  Richard Biener  <rguenther@suse.de>
323
324         PR middle-end/59338
325         * tree-cfg.c (verify_expr): Restrict bounds verification of
326         BIT_FIELD_REF arguments to non-aggregate typed base objects.
327
328 2013-11-29  Richard Biener  <rguenther@suse.de>
329
330         PR tree-optimization/59334
331         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
332         in previous commit.
333
334 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
335             Richard Biener  <rguenther@suse.de>
336
337         PR lto/59326
338         * omp-low.c (simd_clone_create): Return NULL if for definition
339         !cgraph_function_with_gimple_body_p (old_node).  Call cgraph_get_body
340         before calling cgraph_function_versioning.
341         (expand_simd_clones): Look for "omp declare simd" attribute first.
342         Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
343         Punt if node->global.inlined_to.
344         (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
345         Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
346         * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
347
348 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
349
350         PR lto/59326
351         * tree-core.h (enum omp_clause_schedule_kind): Add
352         OMP_CLAUSE_SCHEDULE_LAST.
353         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
354         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
355         (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
356         (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
357         * lto-streamer-out.c (lto_is_streamable): Allow streaming
358         OMP_CLAUSE.
359         (DFS_write_tree_body): Handle OMP_CLAUSE.
360         * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New
361         function.
362         (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
363         (write_ts_omp_clause_tree_pointers): New function.
364         (streamer_write_tree_body): Call it for OMP_CLAUSE.
365         (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
366         * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New
367         function.
368         (unpack_value_fields): Call it for OMP_CLAUSE.
369         (streamer_alloc_tree): Handle OMP_CLAUSE.
370         (lto_input_ts_omp_clause_tree_pointers): New function.
371         (streamer_read_tree_body): Call it for OMP_CLAUSE.
372
373 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
374
375         * doc/implement-c.texi: Document C11 implementation-defined
376         behavior.  Refer to -ffp-contract=fast for contraction behavior.
377         * doc/invoke.texi (-std=c99, std=c11): Update description of
378         completeness.
379         (-std=gnu99): Don't mention as future default.
380         (-std=gnu11): Mention as intended future default.
381         * doc/standards.texi: Update descriptions of C99 and C11 support.
382         Limit statement about C99 facilities for freestanding
383         implementations to some platforms only.
384
385 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
386
387         PR middle-end/59327
388         * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit
389         HWI hosts.
390
391 2013-11-28  Vladimir Makarov  <vmakarov@redhat.com>
392
393         PR target/57293
394         * ira.h (ira_setup_eliminable_regset): Remove parameter.
395         * ira.c (ira_setup_eliminable_regset): Ditto.  Add
396         SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
397         Don't call lra_init_elimination.
398         (ira): Call ira_setup_eliminable_regset without arguments.
399         * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
400         from ira_setup_eliminable_regset call.
401         * gcse.c (calculate_bb_reg_pressure): Ditto.
402         * haifa-sched.c (sched_init): Ditto.
403         * lra.h (lra_init_elimination): Remove the prototype.
404         * lra-int.h (lra_insn_recog_data): New member sp_offset.  Move
405         used_insn_alternative upper.
406         (lra_eliminate_regs_1): Add one more parameter.
407         (lra-eliminate): Ditto.
408         * lra.c (lra_invalidate_insn_data): Set sp_offset.
409         (setup_sp_offset): New.
410         (lra_process_new_insns): Call setup_sp_offset.
411         (lra): Add argument to lra_eliminate calls.
412         * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
413         (get_equiv_with_elimination): New.
414         (process_addr_reg): Call get_equiv_with_elimination instead of
415         get_equiv_substitution.
416         (equiv_address_substitution): Ditto.
417         (loc_equivalence_change_p): Ditto.
418         (loc_equivalence_callback, lra_constraints): Ditto.
419         (curr_insn_transform): Ditto.  Print the sp offset
420         (process_alt_operands): Prevent stack pointer reloads.
421         (lra_constraints): Remove one argument from lra_eliminate call.
422         Move it up.  Mark used hard regs bfore it.  Use
423         get_equiv_with_elimination instead of get_equiv_substitution.
424         * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
425         assert for param values combination.  Use sp offset.  Add argument
426         to lra_eliminate_regs_1 calls.
427         (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
428         (curr_sp_change): New static var.
429         (mark_not_eliminable): Add parameter.  Update curr_sp_change.
430         Don't prevent elimination to sp if we can calculate its change.
431         Pass the argument to mark_not_eliminable calls.
432         (eliminate_regs_in_insn): Add a parameter.  Use sp offset.  Add
433         argument to lra_eliminate_regs_1 call.
434         (update_reg_eliminate): Move calculation of hard regs for spill
435         lower.  Switch off lra_in_progress temporarily to generate regs
436         involved into elimination.
437         (lra_init_elimination): Rename to init_elimination.  Make it
438         static.  Set up insn sp offset, check the offsets at the end of
439         BBs.
440         (process_insn_for_elimination): Add parameter.  Pass its value to
441         eliminate_regs_in_insn.
442         (lra_eliminate): : Add parameter.  Pass its value to
443         process_insn_for_elimination.  Add assert for param values
444         combination.  Call init_elimination.  Don't update offsets in
445         equivalence substitutions.
446         * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
447         for created stack slot.
448         (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
449         onto stack slot.
450
451 2013-11-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
452
453         * config/arm/iterators.md (vrint_conds): New int attribute.
454         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
455         (smax<mode>3): Likewise.
456         (smin<mode>3): Likewise.
457
458 2013-11-28  Richard Sandiford  <rdsandiford@googlemail.com>
459
460         * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
461         * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
462         * tree-ssanames.h (set_range_info): Add range_type argument.
463         (duplicate_ssa_name_range_info): Likewise.
464         * tree-ssanames.c (set_range_info): Take the range type as argument
465         and store it in SSA_NAME_ANTI_RANGE_P.
466         (duplicate_ssa_name_range_info): Likewise.
467         (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
468         (set_nonzero_bits): Update call to set_range_info.
469         (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
470         * tree-ssa-copy.c (fini_copy_prop): Likewise.
471         * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
472         (vrp_finalize): Likewise, passing anti-ranges directly.
473
474 2013-11-28  Richard Biener  <rguenther@suse.de>
475
476         PR tree-optimization/59330
477         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
478         and fix delayed marking of free calls not necessary.
479
480 2013-11-28  Andrew MacLeod  <amacleod@redhat.com>
481
482         * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
483         is_gimple_reg_type.
484         * ipa-prop.c (determine_known_aggregate_parts): Likewise.
485
486 2013-11-28  Terry Guo  <terry.guo@arm.com>
487
488         * config/arm/arm.c (v7m_extra_costs): New table.
489         (arm_v7m_tune): Use it.
490
491 2013-11-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
492
493         * config/sol2.h (TIME_LIBRARY): Define.
494
495 2013-11-28  Richard Biener  <rguenther@suse.de>
496
497         PR lto/59323
498         * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
499         CONST_DECLs in function context are not indexable.
500
501 2013-11-28  Chung-Ju Wu  <jasonwucj@gmail.com>
502
503         * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
504         not optimized for size.
505
506 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
507
508         * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
509         fields.
510         (expand_stack_vars): For -fsanitize=address, use (and set initially)
511         data->asan_base as base for vars and update asan_alignb.
512         (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
513         Pass them to asan_emit_stack_protection.
514         * asan.c (asan_detect_stack_use_after_return): New variable.
515         (asan_emit_stack_protection): Add pbase and alignb arguments.
516         Implement use after return sanitization.
517         * asan.h (asan_emit_stack_protection): Adjust prototype.
518         (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
519
520 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
521
522         * common.opt: Introduced a new option -fsimd-cost-model.
523         * doc/invoke.texi: Introduced a new openmp-simd warning and
524         a new -fsimd-cost-model option.
525         * tree-vectorizer.h (unlimited_cost_model): Interface updated
526         to rely on the particular loop info.
527         * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
528         (vect_peeling_hash_choose_best_peeling): Ditto.
529         (vect_enhance_data_refs_alignment): Ditto.
530         * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
531         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
532         plus added openmp-simd warining.
533
534 2013-11-27   H.J. Lu  <hongjiu.lu@intel.com>
535
536         PR rtl-optimization/59311
537         * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
538         * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
539
540 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
541
542         * var-tracking.c (track_expr_p): Do not track declarations for parts
543         of tracked parameters.
544         (add_stores): Do not track values for tracked parameters passed in
545         multiple locations.
546         (vt_get_decl_and_offset): Handle PARALLEL.
547         (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
548
549 2013-11-27  Jeff Law  <law@redhat.com>
550
551         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
552         clobber the loop structure thread_block was unsuccessful.  If
553         thread_block was unsuccessful, cleanup appropriately.
554
555 2013-11-27  Chen Liqin <liqin.gcc@gmail.com>
556
557         * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
558         (score_char_to_class): Likewise.
559
560 2013-11-27  Kenneth Zadeck  <zadeck@naturalbridge.com>
561
562         * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with the
563         overflow bit set.
564
565 2013-11-27  Richard Biener  <rguenther@suse.de>
566
567         PR middle-end/58723
568         * cgraphbuild.c (build_cgraph_edges): Do not build edges
569         for internal calls.
570         (rebuild_cgraph_edges): Likewise.
571         * ipa-inline-analysis.c (estimate_function_body_sizes):
572         Skip internal calls.
573         * tree-inline.c (estimate_num_insns): Estimate size of internal
574         calls as 0.
575         (gimple_expand_calls_inline): Do not try inline-expanding
576         internal calls.
577         * lto-streamer-in.c (input_cfg): Stream loop safelen,
578         force_vect and simduid.
579         (input_struct_function_base): Stream has_force_vect_loops
580         and has_simduid_loops.
581         (input_function): Adjust.
582         * lto-streamer-out.c (output_cfg): Stream loop safelen,
583         force_vect and simduid.
584         (output_struct_function_base): Stream has_force_vect_loops
585         and has_simduid_loops.
586
587 2013-11-27  Kai Tietz  <ktietz@redhat.com>
588
589         * config/i386/winnt.c (i386_pe_section_type_flags): Use const
590         pointer cast.
591
592 2013-11-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
593
594         * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
595         * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
596
597 2013-11-27  Marek Polacek  <polacek@redhat.com>
598
599         PR sanitizer/59306
600         * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
601         instead of walk_gimple_op.
602         (ubsan_pass): Adjust.  Call instrument_null only if SANITIZE_NULL.
603
604 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
605             Jakub Jelinek  <jakub@redhat.com>
606
607         * cgraph.h (enum cgraph_simd_clone_arg_type): New.
608         (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
609         (struct cgraph_node): Add simdclone and simd_clones fields.
610         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
611         ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
612         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
613         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
614         * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
615         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
616         * doc/tm.texi: Regenerated.
617         * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
618         * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
619         attribute is present.
620         * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
621         (simd_clone_vector_of_formal_parm_types): New function.
622         (simd_clone_struct_alloc, simd_clone_struct_copy,
623         simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
624         simd_clone_compute_base_data_type, simd_clone_mangle,
625         simd_clone_create, simd_clone_adjust_return_type,
626         create_tmp_simd_array, simd_clone_adjust_argument_types,
627         simd_clone_init_simd_arrays): New functions.
628         (struct modify_stmt_info): New type.
629         (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
630         simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
631         functions.
632         (pass_data_omp_simd_clone): New variable.
633         (pass_omp_simd_clone): New class.
634         (make_pass_omp_simd_clone): New function.
635         * passes.def (pass_omp_simd_clone): New.
636         * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
637         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target
638         hooks.
639         * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
640         * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
641         * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
642         * tree-pass.h (make_pass_omp_simd_clone): New prototype.
643         * tree-vect-data-refs.c: Include cgraph.h.
644         (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
645         and find_data_references_in_bb, if find_data_references_in_stmt
646         fails, still allow calls to #pragma omp declare simd functions
647         in #pragma omp simd loops unless they contain data references among
648         the call arguments or in lhs.
649         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
650         calls with no lhs.
651         (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls without
652         lhs.
653         * tree-vectorizer.h (enum stmt_vec_info_type): Add
654         call_simd_clone_vec_info_type.
655         (struct _stmt_vec_info): Add simd_clone_fndecl field.
656         (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
657         * tree-vect-stmts.c: Include tree-ssa-loop.h,
658         tree-scalar-evolution.h and cgraph.h.
659         (vectorizable_call): Handle calls without lhs.  Assert
660         !stmt_can_throw_internal instead of failing for it.  Don't update
661         EH stuff.
662         (struct simd_call_arg_info): New.
663         (vectorizable_simd_clone_call): New function.
664         (vect_transform_stmt): Call it.
665         (vect_analyze_stmt): Likewise.  Allow NULL STMT_VINFO_VECTYPE for
666         calls without lhs.
667         * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
668         if cgraph_function_with_gimple_body_p is true.
669
670 2013-11-27  Tom de Vries  <tom@codesourcery.com>
671             Marc Glisse  <marc.glisse@inria.fr>
672
673         PR middle-end/59037
674         * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
675         BIT_FIELD_REF.
676         * gimple-fold.c (gimple_fold_indirect_ref): Same.
677         * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
678         out-of-bounds.
679
680 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
681
682         PR middle-end/59138
683         * expr.c (emit_group_store): Don't write past the end of the structure.
684         (store_bit_field): Fix formatting.
685
686 2013-11-27  Richard Biener  <rguenther@suse.de>
687
688         PR tree-optimization/59288
689         * tree-vect-loop.c (get_initial_def_for_induction): Do not
690         re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
691
692 2013-11-27  Marek Polacek  <polacek@redhat.com>
693
694         * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
695         for a decl, recreate that decl.  Save into the hash table VAR_DECLs
696         rather than ADDR_EXPRs.
697
698 2013-11-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
699
700         * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
701
702 2013-11-26  David Malcolm  <dmalcolm@redhat.com>
703
704         * gengtype.c (struct seen_tag): New.
705         (already_seen_tag): New.
706         (mark_tag_as_seen): New.
707         (walk_subclasses): Support having multiple subclasses using the
708         same tag by tracking which tags have already been seen, and using
709         this to avoid adding duplicate cases to the "switch" statement.
710         The call to already_seen_tag introduces an O(N^2) when running
711         gengtype on N, the number of tags, due to the repeated linear
712         search, but currently max(N) is relatively small (the number of
713         GSS codes, which is 26).
714         (walk_type): Pass in a seen_tag for use by the walk_subclasses
715         recursion.
716
717         * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
718         underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
719         GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
720         GIMPLE_OMP_RETURN happens to share the data layout of
721         GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
722         (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
723         underlying GSS value from GSS_OMP_PARALLEL to
724         GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
725         not directly related; they merely share in-memory layout.
726         (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
727         for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
728
729         * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
730         Rename to...
731         (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
732         ...these.
733         (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
734         (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout):
735         ...these.
736         (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename
737         to...
738         (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
739         ...these.
740
741         * gimple.h (gimple_statement_resx): New subclass of
742         gimple_statement_eh_ctrl, with the invariant that
743         stmt->code == GIMPLE_RESX.
744         (gimple_statement_eh_dispatch): New subclass of
745         gimple_statement_eh_ctrl, with the invariant that
746         stmt->code == GIMPLE_EH_DISPATH.
747
748         (gimple_statement_omp_parallel): The existing class expressed
749         a layout (GSS_OMP_PARALLEL), but the codes with that layout
750         are not all related, so it makes more sense for this class to
751         express a *code* (GIMPLE_OMP_PARALLEL).  GSS_OMP_PARALLEL has
752         been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
753         rename the existing gimple_statement_omp_parallel class to...
754         (gimple_statement_omp_parallel_layout): ...this, expressing
755         a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
756         (gimple_statement_omp_taskreg): New subclass of
757         gimple_statement_omp_parallel_layout, expressing the invariant
758         that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
759         as used by the various gimple_omp_taskreg_ accessors.
760         (gimple_statement_omp_parallel): Reintroduce this class, this time
761         as a subclass of gimple_statement_omp_taskreg to express the
762         invariant stmt->code == GIMPLE_OMP_PARALLEL.
763         (gimple_statement_omp_target) New class, subclassing
764         gimple_statement_omp_parallel_layout, to express the invariant
765         stmt->code == GIMPLE_OMP_TARGET.
766         (gimple_statement_omp_task): Update to inherit from
767         gimple_statement_omp_taskreg rather than
768         gimple_statement_omp_parallel.
769
770         (gimple_statement_omp_single): Rename to...
771         (gimple_statement_omp_single_layout): ...this, expressing the
772         invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
773         (gimple_statement_omp_single): ...and reintroduce this name as
774         a subclass of gimple_statement_omp_single_layout, expressing
775         the invariant that code == GIMPLE_OMP_SINGLE.
776         (gimple_statement_omp_teams): New class, subclassing
777         gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
778
779         (gimple_statement_omp_atomic_store): Rename to...
780         (gimple_statement_omp_atomic_store_layout): ...this, expressing
781         the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
782         (gimple_statement_omp_atomic_store): ...and reintroduce this
783         name as a subclass of gimple_statement_omp_atomic_store_layout
784         with code == GIMPLE_OMP_ATOMIC_STORE.
785         (gimple_statement_omp_return): New class, subclassing
786         gimple_statement_omp_atomic_store_layout for the code
787         GIMPLE_OMP_RETURN.
788
789         (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
790         (is_a_helper <gimple_statement_resx>::test): New.
791         (is_a_helper <gimple_statement_eh_dispatch>::test): New.
792         (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
793         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
794         (is_a_helper <gimple_statement_omp_return>::test): New.
795         (is_a_helper <gimple_statement_omp_taskreg>::test): New.
796         (is_a_helper <gimple_statement_omp_parallel>::test): Only check
797         for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
798         GIMPLE_OMP_TARGET.
799         (is_a_helper <gimple_statement_omp_target>::test): New.
800         (is_a_helper <gimple_statement_omp_single>::test): Only check
801         for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
802         (is_a_helper <gimple_statement_omp_teams>::test): New.
803
804         (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
805         (is_a_helper <const gimple_statement_resx>::test): New.
806         (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
807         (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
808         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
809         (is_a_helper <const gimple_statement_omp_return>::test): New.
810         (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
811         (is_a_helper <const gimple_statement_omp_parallel>::test): Only
812         check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
813         GIMPLE_OMP_TARGET.
814         (is_a_helper <const gimple_statement_omp_target>::test): New.
815         (is_a_helper <const gimple_statement_omp_single>::test): Only
816         check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
817         (is_a_helper <const gimple_statement_omp_teams>::test): New.
818
819         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
820         gimple_omp_return_lhs_ptr): Replace bogus downcasts to
821         gimple_statement_omp_atomic_store with downcasts to
822         gimple_statement_omp_return, thus requiring that the code be
823         GIMPLE_OMP_RETURN.
824         (gimple_resx_region, gimple_resx_set_region): Replace bogus
825         downcasts to gimple_statement_eh_ctrl with downcasts to
826         gimple_statement_resx, thus requiring that the code be
827         GIMPLE_RESX.
828         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
829         Replace bogus downcasts to const gimple_statement_eh_ctrl with
830         downcasts to gimple_statement_eh_dispatch, thus requiring that
831         the code be GIMPLE_EH_DISPATCH.
832         (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
833         gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
834         gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
835         gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
836         gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
837         gimple_statement_omp_parallel with downcasts to
838         gimple_statement_omp_taskreg, thus requiring that the code be
839         either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
840         (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
841         gimple_omp_target_set_clauses, gimple_omp_target_child_fn
842         gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
843         gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
844         gimple_omp_target_set_data_arg): Replace bogus downcasts to
845         gimple_statement_omp_parallel with downcasts to
846         gimple_statement_omp_target, thus requiring that the code be
847         GIMPLE_OMP_TARGET.
848         (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
849         gimple_omp_teams_set_clauses): Replace bogus downcasts to
850         gimple_statement_omp_single with downcasts to
851         gimple_statement_omp_teams, thus requiring that the code be
852         GIMPLE_OMP_TEAMS.
853
854         * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
855         gimple_statement_resx.
856         (gimple_build_eh_dispatch): Fix bogus as_a<> to use
857         gimple_statement_eh_dispatch.
858
859 2013-11-26  Jakub Jelinek  <jakub@redhat.com>
860
861         PR tree-optimization/59014
862         * tree-vrp.c (register_edge_assert_for_1): Don't look
863         through conversions from non-integral types or through
864         narrowing conversions.
865
866         PR target/59229
867         * config/i386/i386.c (device_alg): Fix up formatting.
868         (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
869         similarly to count && count < epilogue_size_needed.  Fix up
870         comment typo.
871         * builtins.c (determine_block_size): Fix comment typo.
872
873         PR sanitizer/59258
874         * ubsan.c (ubsan_source_location): Don't add any location
875         to ADDR_EXPR in the ctor.  Revert 2013-11-22 change.
876         (ubsan_create_data): Strip block info from LOC.
877
878         PR middle-end/59273
879         * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
880         if there isn't optab handler for the corresponding vector PLUS_EXPR.
881
882         PR rtl-optimization/59166
883         * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
884         DF_REF_LOC in validate_change call.
885         (split_live_ranges_for_shrink_wrap): Likewise.
886
887         PR middle-end/59150
888         * omp-low.c (lower_rec_input_clause): For reduction with placeholder
889         of references to constant size types in simd loops, defer emitting
890         initializer for the new_var, emit it later on only if not using
891         SIMD arrays for it.
892
893         PR middle-end/59152
894         * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
895         for the inner loop if collapse_bb is non-NULL.
896         (expand_omp_simd): Use cont_bb rather than e->dest as latch.
897
898 2013-11-26  Yufeng Zhang  <yufeng.zhang@arm.com>
899
900         * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
901         a constant immediate before force_reg.
902
903 2013-11-26  Richard Biener  <rguenther@suse.de>
904
905         PR tree-optimization/59245
906         * tree-vrp.c (set_value_range): Assert that we don't have
907         overflowed constants (but our infinities).
908         (set_value_range_to_value): Drop all overflow flags.
909         (vrp_visit_phi_node): Likewise.
910         (vrp_visit_assignment_or_call): Use set_value_range_to_value
911         to set a constant range.
912
913 2013-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
914
915         PR target/59290
916         * config/arm/arm.md (*zextendsidi_negsi): New pattern.
917         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
918         for zero_extend case.
919
920 2013-11-26   H.J. Lu  <hongjiu.lu@intel.com>
921
922         PR bootstrap/55552
923         * configure.ac (install_gold_as_default): New.  Set to yes for
924         --disable-ld or --enable-gold=default.
925         (gcc_cv_ld_gold_srcdir): New.
926         (gcc_cv_ld): Also check in-tree gold if install_gold_as_default
927         is yes.
928         (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
929         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
930         * configure: Regenerated.
931
932         * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
933         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
934         (original) [collect-ld && -fuse-ld=bfd]: Set to
935         $ORIGINAL_LD_BFD_FOR_TARGET.
936         (original) [collect-ld && -fuse-ld=gold]: Set to
937         $ORIGINAL_LD_GOLD_FOR_TARGET.
938         (dir) [collect-ld && ../gold/ld-new]: Set to gold.
939         (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
940
941 2013-11-26  Terry Guo  <terry.guo@arm.com>
942
943         * config/arm/arm.c (require_pic_register): Handle high pic base
944         register for thumb-1.
945         (arm_load_pic_register): Also initialize high pic base register.
946         * doc/invoke.texi: Update documentation for option -mpic-register.
947
948 2013-11-26  Oleg Endo  <olegendo@gcc.gnu.org>
949
950         PR target/58314
951         PR target/50751
952         * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
953         Prefix function names with 'sh_'.  Make them non-static.
954         * config/sh/sh-protos.h (sh_disp_addr_displacement,
955         sh_max_mov_insn_displacement): Add declarations.
956         * config/sh/constraints.md (Q): Reject QImode.
957         (Sdd): Use match_code "mem".
958         (Snd): Fix erroneous matching of non-memory operands.
959         * config/sh/predicates.md (short_displacement_mem_operand): New
960         predicate.
961         (general_movsrc_operand): Disallow PC relative QImode loads.
962         * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
963         (*movqi, *movhi): Merge both insns into...
964         (*mov<mode>): ... this new insn.  Replace generic 'm' constraints with
965         'Snd' and 'Sdd' constraints.  Calculate insn length dynamically based
966         on the operand types.
967
968 2013-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>
969
970         * config/epiphany/epiphany.c (epiphany_expand_prologue):
971         Remove unused variable save_config.
972         (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
973         assert.
974
975 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
976
977         * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
978         using other intrinsics.
979         (vtbx3_<psu>8): Likewise.
980
981 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
982
983         * config/aarch64/aarch64-builtins.c
984         (aarch64_types_bsl_p_qualifiers): New.
985         (aarch64_types_bsl_s_qualifiers): Likewise.
986         (aarch64_types_bsl_u_qualifiers): Likewise.
987         (TYPES_BSL_P): Likewise.
988         (TYPES_BSL_S): Likewise.
989         (TYPES_BSL_U): Likewise.
990         (BUILTIN_VALLDIF): Likewise.
991         (BUILTIN_VDQQH): Likewise.
992         * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
993         * config/aarch64/aarch64-simd.md
994         (aarch64_simd_bsl<mode>_internal): Handle more modes.
995         (aarch64_simd_bsl<mode>): Likewise.
996         * config/aarch64/arm_neon.h
997         (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
998         * config/aarch64/iterators.md (VALLDIF): New.
999         (Vbtype): Handle more modes.
1000
1001 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1002
1003         * config/aarch64/aarch64-builtins.c
1004         (aarch64_type_qualifiers): Add qualifier_poly.
1005         (aarch64_build_scalar_type): Also build Poly types.
1006         (aarch64_build_vector_type): Likewise.
1007         (aarch64_build_type): Likewise.
1008         (aarch64_build_signed_type): New.
1009         (aarch64_build_unsigned_type): Likewise.
1010         (aarch64_build_poly_type): Likewise.
1011         (aarch64_init_simd_builtins): Also handle Poly types.
1012
1013 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1014
1015         * config/aarch64/aarch64-builtins.c
1016         (VAR1): Use new naming scheme for aarch64_builtins.
1017         (aarch64_builtin_vectorized_function): Use new
1018         aarch64_builtins names.
1019
1020 2013-11-26  Richard Biener  <rguenther@suse.de>
1021
1022         PR tree-optimization/59287
1023         * tree-ssa-structalias.c (get_constraint_for_component_ref):
1024         Remove no longer necessary special-casing of union accesses.
1025
1026 2013-11-26  Richard Biener  <rguenther@suse.de>
1027
1028         * pretty-print.c (output_buffer::~output_buffer): Really
1029         free the obstacks.
1030
1031 2013-11-25  Jeff Law  <law@redhat.com>
1032
1033         * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
1034         invalidate loop information.
1035
1036 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
1037
1038         * config/sh/sh.md (doloop_end_split): Add missing SI mode.
1039
1040 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
1041
1042         PR target/53976
1043         PR target/59243
1044         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
1045         comments.
1046         (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
1047         previously visited basic blocks before recursing instead of only one
1048         basic block.
1049
1050 2013-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1051
1052         * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
1053         * config/aarch64/aarch64-cores.def (cortex-a53):
1054         Use cortexa53 tuning struct.
1055
1056 2013-11-25  Andrew Macleod  <amacleod@redhat.com>
1057
1058         PR bootstrap/59260
1059         * fold-const.c: Include hash-table.h.
1060
1061 2013-11-25  Marek Polacek  <polacek@redhat.com>
1062
1063         PR sanitizer/59258
1064         * ubsan.c (ubsan_create_data): Increase the size of the fields array.
1065
1066 2013-11-25  Richard Biener  <rguenther@suse.de>
1067
1068         * tree-dfa.c: Remove unused convert.h include.
1069
1070 2013-11-25  Terry Guo  <terry.guo@arm.com>
1071
1072         * doc/invoke.texi (-mslow-flash-data): Document new option.
1073         * config/arm/arm.opt (mslow-flash-data): New option.
1074         * config/arm/arm-protos.h (arm_max_const_double_inline_cost): Declare
1075         it.
1076         * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
1077         are disabled.
1078         (arm_disable_literal_pool): Declare it.
1079         * config/arm/arm.c (arm_disable_literal_pool): New variable.
1080         (arm_option_override): Handle new option.
1081         (thumb2_legitimate_address_p): Don't allow symbol references when
1082         literal pools are disabled.
1083         (arm_max_const_double_inline_cost): New function.
1084         * config/arm/arm.md (types.md): Include it before ...
1085         (use_literal_pool): New attribute.
1086         (enabled): Use new attribute.
1087         (split pattern): Replace symbol+offset with MOVW/MOVT.
1088
1089 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
1090
1091         PR bootstrap/59279
1092         Revert previous commit.
1093
1094 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
1095
1096         * jump.c (reset_insn_reg_label_operand_notes): New function,
1097         split out from ...
1098         (init_label_info): ... here.  Reset LABEL_NUSES in cfglayout mode.
1099         * cfgcleanup.c (delete_dead_jump_tables_between): New function,
1100         split out from ...
1101         (delete_dead_jumptables): ... here.  Handle cfglayout mode.
1102         (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
1103         expensive CFG cleanup is called for.
1104         * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
1105         (cfg_layout_finalize): Delete dead jump tables before re-building
1106         the insns chain.
1107         * ira.c (ira): Rebuild jump labels *after* deleting unreachable
1108         basic blocks, not before.
1109         * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
1110
1111         * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
1112         insns chain of a scheduling extended basic block, they cannot appear
1113         there in cfglayout mode.
1114
1115 2013-11-24  Tobias Burnus  <burnus@net-b.de>
1116
1117         * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
1118
1119 2013-11-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1120
1121         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
1122         for little endian.
1123
1124 2013-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1125
1126         * graphite-sese-to-poly.c: Don't include extra "expr.h".
1127
1128 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1129
1130         * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
1131
1132 2013-11-23  David Edelson  <dje.gcc@gmail.com>
1133             Andrew Dixie  <andrewd@gentrack.com>
1134
1135         PR target/33704
1136         * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
1137         (COLLECT_SHARED_FINI_FUNC): Define.
1138
1139         * collect2.c (aix_shared_initname): Declare.
1140         (aix_shared_fininame): Declare.
1141         (symkind): Add SYM_AIXI and SYM_AIXD.
1142         (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
1143         (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
1144         (aixlazy_flag): Parse.
1145         (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
1146         (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
1147
1148 2013-11-23  David Edelsohn  <dje.gcc@gmail.com>
1149
1150         * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
1151         (rs6000_xcoff_select_section): Place decls with stricter alignment
1152         into named sections.
1153         (rs6000_xcoff_unique_section): Allow unique sections for
1154         uninitialized data with strict alignment.
1155
1156 2013-11-23  Jakub Jelinek  <jakub@redhat.com>
1157
1158         PR tree-optimization/59154
1159         * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
1160         rhs1 of a cast and new_op is invariant, fold_convert it.
1161         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
1162         simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
1163
1164 2013-11-23  Uros Bizjak  <ubizjak@gmail.com>
1165
1166         PR target/56788
1167         * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
1168         Declare as MULTI_ARG_1_SF instruction.
1169         <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
1170         * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
1171         from *xop_vmfrcz_<mode>.
1172         * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
1173         to merge scalar result with __A.
1174         (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
1175         result with __A.
1176
1177 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1178
1179         * gimplify.h (recalculate_side_effects): Delete.
1180         * gimplify.c (recalculate_side_effects): Make static and add comment.
1181
1182 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1183
1184         * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
1185         for the destination of a define_peephole2.  Likewise register_operand
1186         rather than arith_reg_operand.  Remove constraints from
1187         define_peephole2s.
1188
1189 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1190
1191         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
1192         Delete.
1193         (mn10300_store_multiple_operation_p): Declare.
1194         * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
1195         Rename to...
1196         (mn10300_store_multiple_operation_p): ...this and remove mode
1197         argument.
1198         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
1199         Define.
1200
1201 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1202
1203         * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
1204         (pop_multiple_operation): Delete.
1205         (analyze_push_multiple_operation): Declare.
1206         (analyze_pop_multiple_operation): Declare.
1207         * config/bfin/bfin.c (push_multiple_operation): Rename to...
1208         (analyze_push_multiple_operation): ...this and remove mode argument.
1209         (pop_multiple_operation): Rename to...
1210         (analyze_pop_multiple_operation): ...this and remove mode argument.
1211         * config/bfin/predicates.md (push_multiple_operation): Define.
1212         (pop_multiple_operation): Likewise.
1213
1214 2013-11-23  Alan Modra  <amodra@gmail.com>
1215
1216         * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
1217
1218 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1219
1220         PR sanitizer/59061
1221         * common.opt (static-liblsan): Add.
1222         * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
1223         Define.
1224         * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK.  Renumber
1225         SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
1226         SANITIZE_RETURN.
1227         * opts.c (common_handle_option): Handle -fsanitize=leak.
1228         * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
1229         (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
1230         (LIBUBSAN_EARLY_SPEC): Remove.
1231         (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
1232         (SANITIZER_SPEC): Add -fsanitize=leak handling.
1233         (sanitize_spec_function): Handle %sanitize(leak).
1234         * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
1235
1236 2013-11-22  Aldy Hernandez  <aldyh@redhat.com>
1237             Jakub Jelinek  <jakub@redhat.com>
1238
1239         * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
1240         * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
1241         (ipa_get_vector_of_formal_parm_types): ... this.  No longer static.
1242         (ipa_modify_formal_parameters): Adjust caller.  Remove
1243         synth_parm_prefix argument.  Use operator enum instead of bit fields.
1244         Add assert for properly handling vector of references.  Handle
1245         creating brand new parameters.
1246         (ipa_modify_call_arguments): Use operator enum instead of bit
1247         fields.
1248         (ipa_combine_adjustments): Same.  Assert that IPA_PARM_OP_NEW is not
1249         used.
1250         (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
1251         New functions.
1252         (ipa_dump_param_adjustments): Rename reduction to new_decl.
1253         Use operator enum instead of bit fields.
1254         * ipa-prop.h (enum ipa_parm_op): New.
1255         (struct ipa_parm_adjustment): New field op.  Rename reduction
1256         to new_decl, new_arg_prefix to arg_prefix and remove remove_param
1257         and copy_param.
1258         (ipa_modify_formal_parameters): Remove last argument.
1259         (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
1260         ipa_get_adjustment_candidate): New prototypes.
1261         * tree-sra.c (turn_representatives_into_adjustments): Use operator
1262         enum.  Set arg_prefix.
1263         (get_adjustment_for_base): Use operator enum.
1264         (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
1265         ipa-prop.c.
1266         (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
1267         (ipa_sra_modify_function_body): Same.  No longer static.
1268         (sra_ipa_reset_debug_stmts): Use operator enum.
1269         (modify_function): Do not pass prefix argument.
1270
1271 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1272
1273         * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
1274         (ubsan_pass): Ignore clobber stmts.
1275
1276         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
1277         * opts.c (common_handle_option): Add -fsanitize=return.
1278         * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
1279         or it into SANITIZE_UNDEFINED.
1280
1281         * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
1282         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
1283         * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
1284         Don't instrument accesses to VAR_DECLs which are known to fit
1285         into their bounds and the vars are known to have shadow bytes
1286         indicating allowed access.
1287         (asan_dynamic_init_call): New function.
1288         (asan_add_global): If vnode->dynamically_initialized,
1289         set __has_dynamic_init to 1 instead of 0.
1290         (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
1291         * asan.h (asan_dynamic_init_call): New prototype.
1292         * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
1293
1294 2013-11-22  Martin Jambor  <mjambor@suse.cz>
1295
1296         PR rtl-optimization/10474
1297         * ira.c (interesting_dest_for_shprep_1): New function.
1298         (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
1299         also check parallels.
1300
1301 2013-11-22  Jeff Law  <law@redhat.com>
1302
1303         * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
1304         NULL for RHS, which we used to invalidate equivalences.
1305         (record_temporary_equivalences_from_phis): New bitmap arguments
1306         and a boolean indicating if we have passed a backedge.  If we
1307         have passed a backedge, then set the appropriate bit in the
1308         bitmaps for the SRC & DEST of PHIs creating equivalences.
1309         (invalidate_equivalences, dummy_simplify): New functions.
1310         (cond_arg_set_in_b): Remove.
1311         (record_temporary_equivalences_from_stmts_at_dest): New bitmap
1312         arguments and a boolean indicating if we have passed a backedge.
1313         If we have passed a backedge, then perform invalidations as needed.
1314         (thread_around_empty_blocks): If we have seen a backedge, then
1315         use the dummy simplify routine.
1316         (thread_through_normal_block): Likewise.  Pass bitmaps and
1317         backedge status to children.  Do not pessimize so much when
1318         traversing backedges in the CFG.
1319         (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
1320         If we have seen a backedge, then use the dummy simplify routine.
1321         Do not pessimize so much when traversing backedges.
1322
1323 2013-11-22  Hans-Peter Nilsson  <hp@axis.com>
1324
1325         * config/cris/cris.c (cris_atomic_align_for_mode): New function.
1326         (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1327
1328 2013-11-22  Yuri Rumyantsev  <ysrumyan@gmail.com>
1329
1330         * config/i386/i386.c(processor_alias_table): Enable PTA_AES,
1331         PTA_PCLMUL and PTA_RDRND for Silvermont.
1332         * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
1333         for Silvermont.
1334
1335         * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
1336
1337 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
1338
1339         * hooks.h (hook_uint_mode_0): Add Prototype.
1340         * hooks.c (hook_uint_mode_0): New default function.
1341         * target.def (atomic_align_for_mode): New target hook.
1342         * tree.c (build_atomic_base): Add alignment override parameter.
1343         (build_common_tree_nodes): Use atomic alignment override.
1344         * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1345         * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
1346
1347 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
1348
1349         * gimple.h: Remove all includes.
1350         (recalculate_side_effects): Move prototype to gimplify.h.
1351         * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
1352         * gengtype.c (open_base_files): Add gimple.h include list.
1353         * gimplify.h (recalculate_side_effects): Relocate prototype here.
1354         * gimple.c: Adjust include list.
1355         (recalculate_side_effects): Move to gimplify.c.
1356         * gimplify.c: Adjust include list.
1357         (recalculate_side_effects): Relocate from gimple.c.
1358         * alias.c: Add required include files removed from gimple.h.
1359         * asan.c: Likewise.
1360         * builtins.c: Likewise.
1361         * calls.c: Likewise.
1362         * cfgexpand.c: Likewise.
1363         * cfgloop.c: Likewise.
1364         * cfgloopmanip.c: Likewise.
1365         * cgraphbuild.c: Likewise.
1366         * cgraph.c: Likewise.
1367         * cgraphclones.c: Likewise.
1368         * cgraphunit.c: Likewise.
1369         * cilk-common.c: Likewise.
1370         * data-streamer.c: Likewise.
1371         * data-streamer-in.c: Likewise.
1372         * data-streamer-out.c: Likewise.
1373         * dse.c: Likewise.
1374         * dwarf2out.c: Likewise.
1375         * emit-rtl.c: Likewise.
1376         * except.c: Likewise.
1377         * expr.c: Likewise.
1378         * fold-const.c: Likewise.
1379         * function.c: Likewise.
1380         * gimple-builder.c: Likewise.
1381         * gimple-expr.c: Likewise.
1382         * gimple-fold.c: Likewise.
1383         * gimple-iterator.c: Likewise.
1384         * gimple-low.c: Likewise.
1385         * gimple-pretty-print.c: Likewise.
1386         * gimple-ssa-isolate-paths.c: Likewise.
1387         * gimple-ssa-strength-reduction.c: Likewise.
1388         * gimple-streamer-in.c: Likewise.
1389         * gimple-streamer-out.c: Likewise.
1390         * gimple-walk.c: Likewise.
1391         * gimplify-me.c: Likewise.
1392         * graphite-blocking.c: Likewise.
1393         * graphite.c: Likewise.
1394         * graphite-clast-to-gimple.c: Likewise.
1395         * graphite-dependences.c: Likewise.
1396         * graphite-interchange.c: Likewise.
1397         * graphite-optimize-isl.c: Likewise.
1398         * graphite-poly.c: Likewise.
1399         * graphite-scop-detection.c: Likewise.
1400         * graphite-sese-to-poly.c: Likewise.
1401         * internal-fn.c: Likewise.
1402         * ipa.c: Likewise.
1403         * ipa-cp.c: Likewise.
1404         * ipa-devirt.c: Likewise.
1405         * ipa-inline-analysis.c: Likewise.
1406         * ipa-inline.c: Likewise.
1407         * ipa-profile.c: Likewise.
1408         * ipa-prop.c: Likewise.
1409         * ipa-pure-const.c: Likewise.
1410         * ipa-reference.c: Likewise.
1411         * ipa-split.c: Likewise.
1412         * ipa-utils.c: Likewise.
1413         * langhooks.c: Likewise.
1414         * lto-cgraph.c: Likewise.
1415         * lto-compress.c: Likewise.
1416         * lto-opts.c: Likewise.
1417         * lto-section-in.c: Likewise.
1418         * lto-section-out.c: Likewise.
1419         * lto-streamer.c: Likewise.
1420         * lto-streamer-in.c: Likewise.
1421         * lto-streamer-out.c: Likewise.
1422         * omp-low.c: Likewise.
1423         * opts-global.c: Likewise.
1424         * passes.c: Likewise.
1425         * predict.c: Likewise.
1426         * profile.c: Likewise.
1427         * sese.c: Likewise.
1428         * stmt.c: Likewise.
1429         * stor-layout.c: Likewise.
1430         * symtab.c: Likewise.
1431         * targhooks.c: Likewise.
1432         * toplev.c: Likewise.
1433         * tracer.c: Likewise.
1434         * trans-mem.c: Likewise.
1435         * tree-affine.c: Likewise.
1436         * tree.c: Likewise.
1437         * tree-call-cdce.c: Likewise.
1438         * tree-cfg.c: Likewise.
1439         * tree-cfgcleanup.c: Likewise.
1440         * tree-chrec.c: Likewise.
1441         * tree-complex.c: Likewise.
1442         * tree-data-ref.c: Likewise.
1443         * tree-dfa.c: Likewise.
1444         * tree-eh.c: Likewise.
1445         * tree-emutls.c: Likewise.
1446         * tree-if-conv.c: Likewise.
1447         * tree-inline.c: Likewise.
1448         * tree-into-ssa.c: Likewise.
1449         * tree-loop-distribution.c: Likewise.
1450         * tree-nested.c: Likewise.
1451         * tree-nrv.c: Likewise.
1452         * tree-object-size.c: Likewise.
1453         * tree-outof-ssa.c: Likewise.
1454         * tree-parloops.c: Likewise.
1455         * tree-phinodes.c: Likewise.
1456         * tree-predcom.c: Likewise.
1457         * tree-pretty-print.c: Likewise.
1458         * tree-profile.c: Likewise.
1459         * tree-scalar-evolution.c: Likewise.
1460         * tree-sra.c: Likewise.
1461         * tree-ssa-address.c: Likewise.
1462         * tree-ssa-alias.c: Likewise.
1463         * tree-ssa.c: Likewise.
1464         * tree-ssa-ccp.c: Likewise.
1465         * tree-ssa-coalesce.c: Likewise.
1466         * tree-ssa-copy.c: Likewise.
1467         * tree-ssa-copyrename.c: Likewise.
1468         * tree-ssa-dce.c: Likewise.
1469         * tree-ssa-dom.c: Likewise.
1470         * tree-ssa-dse.c: Likewise.
1471         * tree-ssa-forwprop.c: Likewise.
1472         * tree-ssa-ifcombine.c: Likewise.
1473         * tree-ssa-live.c: Likewise.
1474         * tree-ssa-loop.c: Likewise.
1475         * tree-ssa-loop-ch.c: Likewise.
1476         * tree-ssa-loop-im.c: Likewise.
1477         * tree-ssa-loop-ivcanon.c: Likewise.
1478         * tree-ssa-loop-ivopts.c: Likewise.
1479         * tree-ssa-loop-manip.c: Likewise.
1480         * tree-ssa-loop-niter.c: Likewise.
1481         * tree-ssa-loop-prefetch.c: Likewise.
1482         * tree-ssa-loop-unswitch.c: Likewise.
1483         * tree-ssa-math-opts.c: Likewise.
1484         * tree-ssanames.c: Likewise.
1485         * tree-ssa-operands.c: Likewise.
1486         * tree-ssa-phiopt.c: Likewise.
1487         * tree-ssa-phiprop.c: Likewise.
1488         * tree-ssa-pre.c: Likewise.
1489         * tree-ssa-propagate.c: Likewise.
1490         * tree-ssa-reassoc.c: Likewise.
1491         * tree-ssa-sccvn.c: Likewise.
1492         * tree-ssa-sink.c: Likewise.
1493         * tree-ssa-strlen.c: Likewise.
1494         * tree-ssa-structalias.c: Likewise.
1495         * tree-ssa-tail-merge.c: Likewise.
1496         * tree-ssa-ter.c: Likewise.
1497         * tree-ssa-threadedge.c: Likewise.
1498         * tree-ssa-threadupdate.c: Likewise.
1499         * tree-ssa-uncprop.c: Likewise.
1500         * tree-ssa-uninit.c: Likewise.
1501         * tree-stdarg.c: Likewise.
1502         * tree-streamer.c: Likewise.
1503         * tree-streamer-in.c: Likewise.
1504         * tree-streamer-out.c: Likewise.
1505         * tree-switch-conversion.c: Likewise.
1506         * tree-tailcall.c: Likewise.
1507         * tree-vect-data-refs.c: Likewise.
1508         * tree-vect-generic.c: Likewise.
1509         * tree-vect-loop.c: Likewise.
1510         * tree-vect-loop-manip.c: Likewise.
1511         * tree-vectorizer.c: Likewise.
1512         * tree-vect-patterns.c: Likewise.
1513         * tree-vect-slp.c: Likewise.
1514         * tree-vect-stmts.c: Likewise.
1515         * tree-vrp.c: Likewise.
1516         * tsan.c: Likewise.
1517         * ubsan.c: Likewise.
1518         * value-prof.c: Likewise.
1519         * varpool.c: Likewise.
1520         * var-tracking.c: Likewise.
1521         * vtable-verify.c: Likewise.
1522         * config/darwin.c: Likewise.
1523         * config/aarch64/aarch64-builtins.c: Likewise.
1524         * config/aarch64/aarch64.c: Likewise.
1525         * config/alpha/alpha.c: Likewise.
1526         * config/i386/i386.c: Likewise.
1527         * config/i386/winnt.c: Likewise.
1528         * config/ia64/ia64.c: Likewise.
1529         * config/m32c/m32c.c: Likewise.
1530         * config/mep/mep.c: Likewise.
1531         * config/mips/mips.c: Likewise.
1532         * config/rs6000/rs6000.c: Likewise.
1533         * config/s390/s390.c: Likewise.
1534         * config/sh/sh.c: Likewise.
1535         * config/sparc/sparc.c: Likewise.
1536         * config/spu/spu.c: Likewise.
1537         * config/stormy16/stormy16.c: Likewise.
1538         * config/tilegx/tilegx.c: Likewise.
1539         * config/tilepro/tilepro.c: Likewise.
1540         * config/xtensa/xtensa.c: Likewise.
1541
1542 2013-11-22  Richard Earnshaw  <rearnsha@arm.com>
1543
1544         PR target/59216
1545         * arm.md (negdi_extendsidi): Fix invalid split.
1546
1547 2013-11-22  Alex Velenko  <Alex.Velenko@arm.com>
1548
1549         * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
1550         (vmov_n_f64): Likewise.
1551         (vmov_n_p8): Likewise.
1552         (vmov_n_p16): Likewise.
1553         (vmov_n_s8): Likewise.
1554         (vmov_n_s16): Likewise.
1555         (vmov_n_s32): Likewise.
1556         (vmov_n_s64): Likewise.
1557         (vmov_n_u8): Likewise.
1558         (vmov_n_u16): Likewise.
1559         (vmov_n_u32): Likewise.
1560         (vmov_n_u64): Likewise.
1561         (vmovq_n_f32): Likewise.
1562         (vmovq_n_f64): Likewise.
1563         (vmovq_n_p8): Likewise.
1564         (vmovq_n_p16): Likewise.
1565         (vmovq_n_s8): Likewise.
1566         (vmovq_n_s16): Likewise.
1567         (vmovq_n_s32): Likewise.
1568         (vmovq_n_s64): Likewise.
1569         (vmovq_n_u8): Likewise.
1570         (vmovq_n_u16): Likewise.
1571         (vmovq_n_u32): Likewise.
1572         (vmovq_n_u64): Likewise.
1573
1574 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1575
1576         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1577         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
1578         (reduc_<sur>plus_<mode>): Factorize V2DI into this.
1579         (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
1580         and also change to float UNSPEC.
1581         (reduc_maxmin_uns>_<mode>): Remove V2DI.
1582         * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
1583         vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
1584         result access for big-endian.
1585         (__LANE0): New macro used to fix up lane access of 'across-lanes'
1586         intrinsics for big-endian.
1587         * config/aarch64/iterators.md (VDQV): Add V2DI.
1588         (VDQV_S): New.
1589         (vp): New mode attribute.
1590
1591 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1592
1593         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1594         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
1595         big-endian.
1596
1597 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1598
1599         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
1600         for big-endian element order.
1601         (aarch64_simd_vec_setv2di): Likewise.
1602         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
1603         *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
1604         (vec_extract): Expand using aarch64_get_lane.
1605         * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
1606
1607 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1608
1609         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
1610         and stores to be ABI compliant.
1611
1612 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1613
1614         * input.h (input_line): Remove.
1615         (input_filename): Likewise.
1616         (in_system_header): Likewise.
1617         * tree.h (EXPR_LOC_OR_HERE): Remove.
1618         * config/bfin/bfin.c (output_file_start): Remove use of
1619         input_filename macro.
1620         * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
1621         * gimplify.c (internal_get_tmp_var): Likewise.
1622         EXPR_LOC_OR_HERE macro.
1623         (shortcut_cond_expr): Likewise.
1624         * tree-diagnostic.c (diagnostic_report_current_function): Remove
1625         use of input_filename macro.
1626         * tree.c (get_file_function_name): Likewise.
1627
1628 2013-11-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
1629
1630         * store-layout.c (place-field): Fix hwi test and accessor mismatch.
1631
1632 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1633
1634         * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
1635         (same sized) elements even if the type of the CONSTRUCTOR has
1636         vector mode and target is a REG.
1637
1638 2013-11-22  Richard Biener  <rguenther@suse.de>
1639
1640         Revert
1641         2013-11-21  Richard Biener  <rguenther@suse.de>
1642
1643         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1644         nb_iterations_upper_bound by one.
1645
1646 2013-11-22  H.J. Lu  <hongjiu.lu@intel.com>
1647
1648         * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
1649         for Silvermont.
1650
1651         * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
1652         core-avx-i, core-avx2 and slm.
1653
1654 2013-11-22  Eric Botcazou  <ebotcazou@adacore.com>
1655
1656         * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
1657
1658 2013-11-22  Richard Sandiford  <rdsandiford@googlemail.com>
1659
1660         * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
1661         (stzx_24_<mode>): Likewise mra_operand.
1662
1663 2013-11-22  Jeff Law  <law@redhat.com>
1664
1665         * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
1666         (thread_block_1): Do not cancel jump threads which go from
1667         inside a loop, through the header, then back inside the loop.
1668         (bb_ends_with_multiway_branch): New function.
1669         (thread_through_all_blocks): Handle threading cases which start
1670         in a loop through the loop header to a point in the loop.
1671
1672         * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
1673         jump thread path properly.
1674
1675 2013-11-22  Trevor Saunders  <tsaunders@mozilla.com>
1676
1677         * vec.h (auto_vec): New class.
1678         * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
1679         function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
1680         ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
1681         tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
1682         tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
1683         tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1684         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
1685         tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
1686         appropriate instead of vec for local variables.
1687
1688 2013-11-21  Teresa Johnson  <tejohnson@google.com>
1689
1690         PR target/59233
1691         * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
1692         not understood by old_insns_match_p.
1693
1694 2013-11-21  Bill Schmidt  <wschmidt@vnet.ibm.com>
1695
1696         * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
1697         little endian change.
1698         (vec_pack_sfix_trunc_v2df): Likewise.
1699         (vec_pack_ufix_trunc_v2df): Likewise.
1700         * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
1701         double checking of endianness.
1702
1703 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1704
1705         * tree-vect-generic.c (optimize_vector_constructor): New function.
1706         (expand_vector_operations_1): Call it.
1707
1708 2013-11-21  Uros Bizjak  <ubizjak@gmail.com>
1709
1710         * config/i386/i386.c (ix86_expand_special_args_builtin): Use
1711         ix86_zero_extend_to_Pmode where appropriate.
1712         (ix86_expand_builtin): Ditto.
1713
1714 2013-11-21  Cary Coutant  <ccoutant@google.com>
1715
1716         * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
1717         (add_linkage_name): Don't add linkage name for -g1.
1718         (decls_for_scope): Process subblocks for -g1.
1719         (dwarf2out_source_line): Output line tables for -g1.
1720         (dwarf2out_finish): Likewise.
1721         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
1722         unused scopes for -g1.
1723         * opts.c (common_handle_option): Handle -g same as -g2.
1724         * doc/invoke.texi: Update description for -g1.
1725
1726 2013-11-21  Peter Bergner  <bergner@vnet.ibm.com>
1727
1728         * doc/extend.texi: Document htm builtins.
1729
1730 2013-11-21  Jeff Law  <law@redhat.com>
1731
1732         PR tree-optimization/59221
1733         * tree-ssa-threadedge.c (thread_across_edge): Properly manage
1734         temporary equivalences when threading through joiner blocks.
1735
1736 2013-11-21  Joseph Myers  <joseph@codesourcery.com>
1737
1738         PR rtl-optimization/55950
1739         * real.c (real_sqrt): Remove function.
1740         * real.h (real_sqrt): Remove prototype.
1741         * simplify-rtx.c (simplify_const_unary_operation): Do not fold
1742         SQRT using real_sqrt.
1743
1744 2013-11-21  Richard Biener  <rguenther@suse.de>
1745
1746         PR tree-optimization/59058
1747         * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
1748         * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
1749         * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
1750         (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
1751         (NITERS_KNOWN_P): Fold into ...
1752         (LOOP_VINFO_NITERS_KNOWN_P): ... this.
1753         (LOOP_VINFO_PEELING_FOR_NITER): Add.
1754         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
1755         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1756         (vect_do_peeling_for_alignment): Re-use precomputed niter
1757         instead of re-emitting it.
1758         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1759         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1760         * tree-vect-loop.c (vect_get_loop_niters): Use
1761         number_of_latch_executions.
1762         (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
1763         (vect_analyze_loop_form): Simplify.
1764         (vect_analyze_loop_operations): Move epilogue peeling code ...
1765         (vect_analyze_loop_2): ... here and adjust it to compute
1766         LOOP_VINFO_PEELING_FOR_NITER.
1767         (vect_estimate_min_profitable_iters): Use
1768         LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1769         (vect_build_loop_niters): Emit on the preheader.
1770         (vect_generate_tmps_on_preheader): Likewise.
1771         (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
1772         of recomputing it.  Adjust.
1773
1774 2013-11-21  Richard Biener  <rguenther@suse.de>
1775
1776         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
1777         LOC_LINE): Remove wrappers and fix all users.
1778         (struct _loop_vec_info): Remove loop_line_number member.
1779         (LOOP_VINFO_LOC): Remove.
1780         * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
1781         tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
1782         and LOC_LINE.
1783
1784 2013-11-21  Richard Biener  <rguenther@suse.de>
1785
1786         * tree-ssa-forwprop.c (simplify_vce): New function.
1787         (ssa_forward_propagate_and_combine): Call it.
1788
1789 2013-11-21  Richard Biener  <rguenther@suse.de>
1790
1791         * tree-vect-loop-manip.c (vect_build_loop_niters,
1792         vect_generate_tmps_on_preheader): Move ...
1793         * tree-vect-loop.c (vect_build_loop_niters,
1794         vect_generate_tmps_on_preheader): ... here and simplify.
1795         (vect_transform_loop): Call them here and pass down results
1796         to consumers.
1797         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
1798         Get niter variables from caller.
1799         (vect_do_peeling_for_alignment): Likewise.
1800         * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
1801         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
1802         Adjust prototypes.
1803
1804 2013-11-21  Richard Biener  <rguenther@suse.de>
1805
1806         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1807         nb_iterations_upper_bound by one.
1808
1809 2013-11-21  Richard Biener  <rguenther@suse.de>
1810
1811         PR tree-optimization/59058
1812         * tree-loop-distribution.c (struct partition_s): Add plus_one member.
1813         (build_size_arg_loc): Apply niter adjustment here.
1814         (generate_memset_builtin): Adjust.
1815         (generate_memcpy_builtin): Likewise.
1816         (classify_partition): Do not use number_of_exit_cond_executions
1817         but record whether niter needs to be adjusted.
1818
1819 2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
1820
1821         * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
1822         could throw.
1823
1824 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
1825
1826         PR target/53976
1827         * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
1828         * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
1829         * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
1830         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
1831         sh_optimize_sett_clrt pass.o to extra_objs.
1832
1833 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
1834
1835         * cfg.c (dump_edge_info): Remove redundant comment.
1836         * cfgcleanup.c (outgoing_edges_match): Reword reference to
1837         EXIT_BLOCK_PTR in comment.
1838         (try_optimize_cfg): Likewise.
1839         * cfgrtl.c (last_bb_in_partition): Likewise.
1840         * cgraph.c (cgraph_node_cannot_return): Likewise.
1841         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1842         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
1843         * ipa-split.c (consider_split): Likewise.
1844         * profile.c (find_spanning_tree): Likewise.
1845         * sched-int.h (common_sched_info_def.add_block): Likewise.
1846         * dominance.c (calc_dfs_tree_nonrec): Reword references in
1847         comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
1848         * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
1849         in comments to now removed ENTRY_BLOCK_PTR macro.
1850         (tree_forwarder_block_p): Reword reference in comment to
1851         EXIT_BLOCK_PTR.
1852         * tree-inline.c (copy_cfg_body): Reword references in comments to
1853         now removed ENTRY_BLOCK_PTR macro.
1854         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1855         * tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
1856         a comma to the comment to clarify the meaning.
1857
1858 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
1859
1860         * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
1861         Move to gimplify.c.
1862         (free_gimplify_stack): Add prototype.
1863         * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
1864         (struct gimplify_ctx): Relocate here.
1865         (gimplify_ctxp): Make static.
1866         (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a
1867         list of struct gimplify_ctx.
1868         (push_gimplify_context): Add default parameters and allocate a struct
1869         from the pool.
1870         (pop_gimplify_context): Free a struct back to the pool.
1871         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1872         gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
1873         use a local 'struct gimplify_ctx'.
1874         * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
1875         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
1876         Likewise.
1877         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1878         lower_omp_ordered, lower_omp_critical, lower_omp_for,
1879         create_task_copyfn, lower_omp_taskreg, lower_omp_target,
1880         lower_omp_teams, execute_lower_omp): Likewise.
1881         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
1882         * tree-inline.c (optimize_inline_calls): Likewise.
1883
1884 2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1885
1886         * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
1887         (vsx_extract_<mode>): Likewise.
1888         (*vsx_extract_<mode>_one_le): New LE variant on
1889         *vsx_extract_<mode>_zero.
1890         (vsx_extract_v4sf): Adjust for little endian.
1891
1892 2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>
1893
1894         PR rtl-optimization/59133
1895         * lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
1896         new pseudos.
1897         (lra_create_new_reg_with_unique_value): Pass new argument value.
1898         (lra_emit_add, lra_emit_move): Ditto.
1899         * lra-constraints.c (in_class_p): Add check for move for a new insn.
1900         (change_class): Rename to lra_change_class.  Move to lra-int.h.
1901         (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
1902         change_class.
1903         (process_addr_reg, process_addr): Ditto.
1904         (curr_insn_transform): Ditto.  Add check on old pseudo for
1905         optional reload.
1906         * lra-int.h (lra_get_regno_hard_regno): Move below.
1907         (lra_change_class): Renamed change_class from lra.c.
1908
1909 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
1910
1911         * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
1912         the children of a NULL pointer.
1913
1914 2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
1915
1916         * lra.c (lra): Set lra_in_progress before check_rtl call.
1917         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
1918         adding clobber regs when LRA is running.
1919
1920 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
1921
1922         * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
1923         restriction for ISA_MIPS32R2.
1924         (ISA_HAS_LXC1_SXC1): New macro.
1925         (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
1926         (ISA_HAS_NMADD4_NMSUB4): Likewise.
1927         (ISA_HAS_FP_RECIP_RSQRT): Likewise.
1928         (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
1929         * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
1930         ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
1931         (*<ANYF:storex>_<P:mode>): Likewise.
1932
1933 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
1934
1935         * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
1936         * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
1937         ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
1938         * config/mips/mips.md (recip_condition): Remove mode attribute.
1939         (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
1940         <recip_condition>.
1941         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
1942
1943 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1944
1945         PR target/59207
1946         * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
1947         Make sure neg2_ovf is set before being used.
1948
1949 2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
1950
1951         * plugin.def: Add comment about register_callback and
1952         invoke_plugin_callbacks_full.
1953
1954         * plugin.c (register_callback, invoke_plugin_callbacks_full):
1955         Handle PLUGIN_INCLUDE_FILE event.
1956
1957 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1958
1959         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
1960         allow subregs of TDmode in FPRs of smaller size in little-endian.
1961         (rs6000_split_multireg_move): When splitting an access to TDmode
1962         in FPRs, do not use simplify_gen_subreg.
1963
1964 2013-11-20  Joseph Myers  <joseph@codesourcery.com>
1965
1966         PR middle-end/21718
1967         * real.c: Remove comment about decimal string conversion and
1968         rounding errors.
1969         (real_from_string): Use MPFR to convert nonzero decimal constant
1970         to REAL_VALUE_TYPE.
1971
1972 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1973
1974         * config/arm/arm.c (arm_dwarf_register_span): Take into account the
1975         endianness of the D registers for the legacy encodings.
1976
1977 2013-11-20  Richard Earnshaw  <rearnsha@arm.com>
1978
1979         PR rtl-optimization/54300
1980         * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
1981         outputs in a single-set are killed from the value chains.
1982
1983 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
1984
1985         * cgraph.h (varpool_node): Add need_bounds_init field.
1986         * lto-cgraph.c (lto_output_varpool_node): Output
1987         need_bounds_init value.
1988         (input_varpool_node): Read need_bounds_init value.
1989         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
1990
1991 2013-11-20  Jan Hubicka  <jh@suse.cz>
1992
1993         * opts.c (finish_options): Imply -ffat-lto-objects with
1994         -fno-use-linker-plugin.
1995         * common.opt (fuse-linker-plugin): Add var.
1996
1997 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
1998
1999         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
2000         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
2001         (gen_type_die_with_usage): Skip pointer bounds.
2002         (dwarf2out_global_decl): Likewise.
2003
2004 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
2005
2006         * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
2007         from all insns.
2008
2009 2013-11-20  Yuri Rumyantsev  <ysrumyan@gmail.com>
2010
2011         PR target/57756
2012         * config/i386/i386.c (ix86_option_override_internal): Add missed
2013         argument prefix for 'ix86_fpmath'.
2014         * config/i386/ssemath.h: Add missed definition of
2015         TARGET_FPMATH_DEFAULT_P macros.
2016
2017 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
2018             Mike Stump  <mikestump@comcast.net>
2019             Richard Sandiford  <rdsandiford@googlemail.com>
2020
2021         * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
2022         instead of TREE_INT_CST_LOW, in cases where there is a protecting
2023         tree_fits_shwi_p or tree_fits_uhwi_p.
2024         * builtins.c (fold_builtin_powi): Likewise.
2025         * config/epiphany/epiphany.c (epiphany_special_round_type_align):
2026         Likewise.
2027         * dbxout.c (dbxout_symbol): Likewise.
2028         * expr.c (expand_expr_real_1): Likewise.
2029         * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
2030         (fold_binary_loc): Likewise.
2031         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
2032         * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
2033         * omp-low.c (lower_omp_for_lastprivate): Likewise.
2034         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2035         * stor-layout.c (compute_record_mode): Likewise.
2036         * tree-cfg.c (verify_expr): Likewise.
2037         * tree-dfa.c (get_ref_base_and_extent): Likewise.
2038         * tree-pretty-print.c (dump_array_domain): Likewise.
2039         * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
2040         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2041         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
2042         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
2043         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
2044         * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
2045         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
2046         (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
2047         (vn_reference_lookup_3, simplify_binary_expression): Likewise.
2048         * tree-ssa-structalias.c (bitpos_of_field): Likewise.
2049         (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
2050         (create_variable_info_for_1): Likewise.
2051         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
2052         (vect_verify_datarefs_alignment): Likewise.
2053         (vect_analyze_data_ref_accesses): Likewise.
2054         (vect_prune_runtime_alias_test_list): Likewise.
2055         * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
2056
2057 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
2058
2059         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
2060         overflow.  Use tree_to_shwi.
2061
2062 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
2063
2064         * fold-const.c (fold_binary_loc): Use unsigned rather than signed
2065         HOST_WIDE_INTs when folding (x >> c) << c.
2066
2067 2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2068             Dominik Vogt  <vogt@linux.vnet.ibm.com>
2069
2070         * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
2071         int comparisons with an out of range condition code.
2072         (s390_optimize_nonescaping_tx): Skip empty BBs.
2073         Generate the new tbegin RTX when removing the FPR clobbers (with
2074         two SETs).
2075         (s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
2076         result before doing the retry calculations.
2077         (s390_init_builtins): Make tbegin "returns_twice" and tabort
2078         "noreturn".
2079         * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
2080         the TDB setting part of an tbegin.
2081         ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
2082         ("tx_assist"): Set unused argument to an immediate zero instead of
2083         loading zero into a GPR and pass it as argument.
2084         * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
2085         Remove inline and related attributes.
2086         (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
2087         (__TM_is_illegal, __TM_is_footprint_exceeded)
2088         (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
2089
2090 2013-11-20  Richard Biener  <rguenther@suse.de>
2091
2092         PR lto/59035
2093         * lto-opts.c (lto_write_options): Write defaults only if
2094         they were not explicitely specified.  Also write
2095         -ffp-contract default.
2096         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
2097         conservatively.
2098         (run_gcc): Pass through -ffp-contract.
2099
2100 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2101
2102         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
2103
2104 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
2105
2106         * gcc/config/aarch64/aarch64-builtins.c
2107         (aarch64_simd_itype): Remove.
2108         (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
2109         (VAR1): Use qualifiers.
2110         (aarch64_build_scalar_type): New.
2111         (aarch64_build_vector_type): Likewise.
2112         (aarch64_build_type): Likewise.
2113         (aarch64_init_simd_builtins): Refactor, remove special cases,
2114         consolidate main loop.
2115         (aarch64_simd_expand_args): Likewise.
2116
2117 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
2118
2119         PR c/53001
2120         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
2121
2122 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
2123
2124         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
2125
2126 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2127
2128         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
2129         to "vec<>" instances.
2130         (build_pretty_printer): Register the vec<>* prettyprinter.
2131
2132 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2133
2134         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
2135         (GdbSubprinter.handles_type): New.
2136         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
2137         (GdbSubprinterRegex): New subclass of GdbSubprinter.
2138         (GdbPrettyPrinters.add_printer): Remove in favor of...
2139         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
2140         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
2141         (GdbPrettyPrinters.__call__): Update search for subprinter
2142         to use handles_type method.
2143         (build_pretty_printer): Update registration of subprinters to
2144         use the new API above, supporting multiple spelling of each type,
2145         and allowing for future regex-based subprinters.
2146
2147 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2148
2149         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
2150         V16QI vector splat case for little endian.
2151
2152 2013-11-19  Jeff Law  <law@redhat.com>
2153
2154         * tree-ssa-threadedge.c (thread_across_edge): After threading
2155         through a joiner, allow threading a normal block requiring duplication.
2156
2157         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
2158         jump threading requests that would muck up the loop structures.
2159
2160         * tree-ssa-threadupdate.c: Fix trailing whitespace.
2161         * tree-ssa-threadupdate.h: Likewise.
2162
2163 2013-11-19  Mike Stump  <mikestump@comcast.net>
2164
2165         * gdbinit.in: Add pmz to print out mpz values.
2166
2167 2013-11-20  Jan Hubicka  <jh@suse.cz>
2168
2169         * common.opt (ffat-lto-objects): Disable by default.
2170         * doc/invoke.texi (fat-lto-objects): Update documentation.
2171         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
2172
2173 2013-11-19  Martin Jambor  <mjambor@suse.cz>
2174
2175         PR rtl-optimization/59099
2176         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
2177         here.
2178         (ira): Move init_reg_equiv and call to
2179         split_live_ranges_for_shrink_wrap up, remove analyses around call
2180         to find_moveable_pseudos.
2181
2182 2013-11-20  Alan Modra  <amodra@gmail.com>
2183
2184         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
2185         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
2186         to strict alignment on older processors when little-endian.
2187         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
2188         for ELFv2.
2189
2190 2013-11-19  Teresa Johnson  <tejohnson@google.com>
2191
2192         * common/config/i386/i386-common.c: Enable
2193         -freorder-blocks-and-partition at -O2 and up for x86.
2194         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
2195         * opts.c (finish_options): Only warn if
2196         -freorder-blocks-and-partition was set on command line.
2197
2198 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
2199
2200         * final.c (final_scan_insn): Emit a label for the split
2201         cold function part.  Label name is formed by suffixing
2202         the original function name with "cold".
2203
2204 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2205
2206         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
2207         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
2208         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
2209         (EXIT_BLOCK_PTR_FOR_FN): ...this.
2210         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
2211         cfun be explicit.
2212         (EXIT_BLOCK_PTR): Likewise.
2213         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
2214         (FOR_ALL_BB_FN): Update for renaming of
2215         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
2216
2217         * cfg.c (init_flow): Likewise.
2218         (check_bb_profile): Likewise.
2219         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
2220         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
2221         * cfghooks.c (account_profile_record): Likewise.
2222         * cfgloop.c (init_loops_structure): Likewise.
2223         * cgraphbuild.c (record_eh_tables): Likewise.
2224         (compute_call_stmt_bb_frequency): Likewise.
2225         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
2226         * lto-streamer-in.c (input_cfg): Likewise.
2227         * predict.c (maybe_hot_frequency_p): Likewise.
2228         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2229         * tree-inline.c (initialize_cfun): Likewise.
2230         (copy_cfg_body): Likewise.
2231         (copy_body): Likewise.
2232         (tree_function_versioning): Likewise.
2233
2234         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
2235         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2236         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
2237         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
2238         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2239         (connect_traces): Likewise.
2240         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2241         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
2242         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
2243         macro.
2244         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
2245         EXIT_BLOCK_PTR.
2246         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
2247         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
2248         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
2249         (rotate_loop): Likewise.
2250         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
2251         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2252         EXIT_BLOCK_PTR.
2253         (alloc_aux_for_edges): Likewise.
2254         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
2255         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2256         EXIT_BLOCK_PTR.
2257         (compact_blocks): Likewise.
2258         (clear_edges): Likewise.
2259         * cfganal.c (single_pred_before_succ_order): Remove usage of
2260         ENTRY_BLOCK_PTR macro.
2261         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2262         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2263         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2264         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2265         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2266         EXIT_BLOCK_PTR.
2267         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
2268         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2269         EXIT_BLOCK_PTR.
2270         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
2271         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2272         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2273         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2274         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2275         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
2276         EXIT_BLOCK_PTR.
2277         (print_edge_list): Likewise.
2278         (create_edge_list): Likewise.
2279         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2280         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2281         EXIT_BLOCK_PTR.
2282         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
2283         macro.
2284         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2285         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2286         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
2287         (try_optimize_cfg): Likewise.
2288         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
2289         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
2290         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
2291         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
2292         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
2293         (try_forward_edges): Likewise.
2294         (try_simplify_condjump): Likewise.
2295         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
2296         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2297         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
2298         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
2299         EXIT_BLOCK_PTR.
2300         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
2301         (expand_gimple_tailcall): Likewise.
2302         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
2303         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2304         (tidy_fallthru_edges): Likewise.
2305         (verify_flow_info): Likewise.
2306         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
2307         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
2308         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
2309         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2310         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
2311         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
2312         (get_loop_body_in_dom_order): Likewise.
2313         (get_loop_body): Likewise.
2314         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
2315         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2316         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
2317         macro.
2318         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
2319         (fix_bb_placement): Likewise.
2320         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
2321         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2322         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
2323         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2324         EXIT_BLOCK_PTR.
2325         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2326         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
2327         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2328         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2329         macro.
2330         (fixup_fallthru_exit_predecessor): Remove uses of macros:
2331         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2332         (fixup_reorder_chain): Likewise.
2333         (relink_block_chain): Likewise.
2334         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
2335         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2336         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2337         (force_one_exit_fallthru): Likewise.
2338         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
2339         EXIT_BLOCK_PTR.
2340         (rtl_verify_edges): Likewise.
2341         (commit_edge_insertions): Likewise.
2342         (commit_one_edge_insertion): Likewise.
2343         (rtl_split_edge): Likewise.
2344         (force_nonfallthru_and_redirect): Likewise.
2345         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
2346         (skip_insns_after_block): Likewise.
2347         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
2348         EXIT_BLOCK_PTR.
2349         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
2350         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
2351         EXIT_BLOCK_PTR.
2352         (contains_no_active_insn_p): Likewise.
2353         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2354         (entry_of_function): Likewise.
2355         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
2356         (fixup_new_cold_bb): Likewise.
2357         (patch_jump_insn): Likewise.
2358         (try_redirect_by_replacing_jump): Likewise.
2359         (block_label): Likewise.
2360         (could_fall_through): Likewise.
2361         (can_fallthru): Likewise.
2362         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
2363         ENTRY_BLOCK_PTR macro.
2364         (rebuild_cgraph_edges): Likewise.
2365         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
2366         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2367         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
2368         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
2369         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
2370         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
2371         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
2372         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
2373         macro.
2374         (reg_nonzero_bits_for_combine): Likewise.
2375         (set_nonzero_bits_and_sign_copies): Likewise.
2376         (combine_instructions): Likewise.
2377         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
2378         EXIT_BLOCK_PTR.
2379         (bypass_conditional_jumps): Likewise.
2380         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
2381         (find_implicit_sets): Likewise.
2382         (cprop_jump): Likewise.
2383         * cse.c (cse_cc_succs): Likewise.
2384         (cse_find_path): Likewise.
2385         * df-problems.c (df_lr_confluence_0): Likewise.
2386         * df-scan.c (df_entry_block_defs_collect): Remove usage of
2387         ENTRY_BLOCK_PTR macro.
2388         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
2389         * dominance.c (iterate_fix_dominators): Remove usage of
2390         ENTRY_BLOCK_PTR macro.
2391         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2392         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
2393         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
2394         EXIT_BLOCK_PTR.
2395         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
2396         macro.
2397         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
2398         EXIT_BLOCK_PTR.
2399         * domwalk.c (cmp_bb_postorder): Likewise.
2400         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
2401         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
2402         macro.
2403         (sjlj_emit_function_enter): Likewise.
2404         * final.c (compute_alignments): Likewise.
2405         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
2406         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2407         (reposition_prologue_and_epilogue_notes): Remove usage of
2408         EXIT_BLOCK_PTR macro.
2409         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
2410         EXIT_BLOCK_PTR.
2411         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
2412         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
2413         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
2414         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
2415         (compute_code_hoist_vbeinout): Likewise.
2416         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2417         (pre_expr_reaches_here_p_work): Likewise.
2418         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2419         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
2420         EXIT_BLOCK_PTR.
2421         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
2422         ENTRY_BLOCK_PTR macro.
2423         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
2424         macro.
2425         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
2426         ENTRY_BLOCK_PTR macro.
2427         * graphite-scop-detection.c (build_scops): Likewise.
2428         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
2429         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
2430         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
2431         macro.
2432         (unlink_bb_notes): Likewise.
2433         (create_check_block_twin): Likewise.
2434         (init_before_recovery): Likewise.
2435         (sched_extend_bb): Likewise.
2436         (priority): Likewise.
2437         * hw-doloop.c (reorder_loops): Likewise.
2438         (discover_loop): Likewise.
2439         * ifcvt.c (dead_or_predicable): Remove uses of macros:
2440         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2441         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
2442         (block_has_only_trap): Likewise.
2443         (cond_exec_find_if_block): Likewise.
2444         (merge_if_block): Likewise.
2445         * ipa-inline-analysis.c (param_change_prob): Remove usage of
2446         ENTRY_BLOCK_PTR macro.
2447         (record_modified): Likewise.
2448         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
2449         EXIT_BLOCK_PTR macro.
2450         (local_pure_const): Likewise.
2451         * ipa-split.c (split_function): Remove uses of macros:
2452         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2453         (find_split_points): Likewise.
2454         (consider_split): Likewise.
2455         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
2456         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2457         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
2458         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
2459         * ira-emit.c (entered_from_non_parent_p): Remove usage of
2460         ENTRY_BLOCK_PTR macro.
2461         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
2462         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
2463         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
2464         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2465         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
2466         macro.
2467         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
2468         EXIT_BLOCK_PTR.
2469         (compute_farthest): Likewise.
2470         (compute_available): Likewise.
2471         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
2472         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
2473         EXIT_BLOCK_PTR.
2474         (compute_earliest): Likewise.
2475         (compute_antinout_edge): Likewise.
2476         * loop-iv.c (simplify_using_initial_values): Remove usage of
2477         ENTRY_BLOCK_PTR macro.
2478         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
2479         macro.
2480         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
2481         macro.
2482         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
2483         macro.
2484         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
2485         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2486         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
2487         macro.
2488         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
2489         macro.
2490         * lto-streamer-out.c (output_cfg): Likewise.
2491         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
2492         EXIT_BLOCK_PTR.
2493         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
2494         * mode-switching.c (optimize_mode_switching): Likewise.
2495         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
2496         * modulo-sched.c (rest_of_handle_sms): Likewise.
2497         (canon_loop): Likewise.
2498         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
2499         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
2500         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2501         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
2502         macro.
2503         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
2504         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
2505         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
2506         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
2507         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
2508         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
2509         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
2510         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2511         (gimple_predict_edge): Likewise.
2512         (probably_never_executed): Likewise.
2513         * profile.c (find_spanning_tree): Remove uses of macros:
2514         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2515         (branch_prob): Likewise.
2516         (compute_branch_probabilities): Likewise.
2517         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
2518         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
2519         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
2520         (set_bb_counts): Likewise.
2521         (correct_negative_edge_counts): Likewise.
2522         (get_exec_counts): Likewise.
2523         (instrument_values): Likewise.
2524         (instrument_edges): Likewise.
2525         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
2526         EXIT_BLOCK_PTR.
2527         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2528         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
2529         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2530         (reg_to_stack): Likewise.
2531         * regs.h (REG_N_SETS): Likewise.
2532         * reload.c (find_dummy_reload): Likewise.
2533         (combine_reloads): Likewise.
2534         (push_reload): Likewise.
2535         * reload1.c (has_nonexceptional_receiver): Remove usage of
2536         EXIT_BLOCK_PTR macro.
2537         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
2538         macro.
2539         (find_basic_block): Likewise.
2540         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2541         (schedule_ebbs): Likewise.
2542         * sched-int.h (sel_sched_p): Likewise.
2543         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
2544         macro.
2545         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2546         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
2547         EXIT_BLOCK_PTR.
2548         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
2549         (extend_rgns): Likewise.
2550         (find_single_block_region): Likewise.
2551         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
2552         ENTRY_BLOCK_PTR macro.
2553         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
2554         (sel_create_recovery_block): Likewise.
2555         (bb_ends_ebb_p): Likewise.
2556         (sel_bb_end): Likewise.
2557         (sel_bb_head): Likewise.
2558         (free_lv_sets): Likewise.
2559         (init_lv_sets): Likewise.
2560         (tidy_control_flow): Likewise.
2561         (maybe_tidy_empty_bb): Likewise.
2562         * sel-sched-ir.h (_succ_iter_cond): Likewise.
2563         (_succ_iter_start): Likewise.
2564         (sel_bb_empty_or_nop_p): Likewise.
2565         (get_loop_exit_edges_unique_dests): Likewise.
2566         (inner_loop_header_p): Likewise.
2567         * sel-sched.c (create_block_for_bookkeeping): Likewise.
2568         (find_block_for_bookkeeping): Likewise.
2569         * store-motion.c (remove_reachable_equiv_notes): Likewise.
2570         (insert_store): Likewise.
2571         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
2572         ENTRY_BLOCK_PTR macro.
2573         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
2574         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
2575         (gate_tm_init): Likewise.
2576         (tm_region_init): Likewise.
2577         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
2578         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2579         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
2580         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2581         EXIT_BLOCK_PTR.
2582         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2583         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
2584         EXIT_BLOCK_PTR.
2585         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2586         macro.
2587         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
2588         EXIT_BLOCK_PTR.
2589         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
2590         macro.
2591         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2592         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2593         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2594         (build_gimple_cfg): Likewise.
2595         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2596         (gimple_can_merge_blocks_p): Likewise.
2597         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
2598         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2599         * tree-complex.c (update_parameter_components): Remove usage of
2600         ENTRY_BLOCK_PTR macro.
2601         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
2602         EXIT_BLOCK_PTR macro.
2603         * tree-inline.c (tree_function_versioning): Remove uses of macros:
2604         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2605         (delete_unreachable_blocks_update_callgraph): Likewise.
2606         (initialize_cfun): Likewise.
2607         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
2608         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
2609         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
2610         * tree-into-ssa.c (update_ssa): Likewise.
2611         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
2612         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
2613         (rewrite_into_ssa): Likewise.
2614         (rewrite_debug_stmt_uses): Likewise.
2615         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
2616         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2617         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
2618         ENTRY_BLOCK_PTR macro.
2619         * tree-scalar-evolution.h (block_before_loop): Likewise.
2620         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
2621         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
2622         EXIT_BLOCK_PTR.
2623         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
2624         macro.
2625         (propagate_dereference_distances): Remove uses of macros:
2626         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2627         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
2628         macro.
2629         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
2630         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
2631         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2632         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
2633         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2634         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
2635         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
2636         (mark_control_dependent_edges_necessary): Remove uses of macros:
2637         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2638         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
2639         ENTRY_BLOCK_PTR macro.
2640         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
2641         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
2642         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2643         (calculate_live_on_exit): Likewise.
2644         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2645         (loe_visit_block): Likewise.
2646         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
2647         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2648         (live_on_entry): Likewise.
2649         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
2650         EXIT_BLOCK_PTR macro.
2651         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
2652         ENTRY_BLOCK_PTR macro.
2653         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
2654         (bound_difference): Likewise.
2655         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
2656         of EXIT_BLOCK_PTR macro.
2657         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
2658         of ENTRY_BLOCK_PTR macro.
2659         * tree-ssa-math-opts.c (register_division_in): Likewise.
2660         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
2661         * tree-ssa-pre.c (compute_avail): Likewise.
2662         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
2663         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
2664         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2665         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
2666         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
2667         EXIT_BLOCK_PTR.
2668         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
2669         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
2670         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2671         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
2672         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2673         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
2674         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2675         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
2676         (find_pdom): Likewise.
2677         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2678         * tree-stdarg.c (reachable_at_most_once): Likewise.
2679         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
2680         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2681         (eliminate_tail_call): Likewise.
2682         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
2683         macro.
2684         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
2685         * var-tracking.c (vt_initialize): Remove uses of macros:
2686         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2687         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
2688         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
2689         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
2690         EXIT_BLOCK_PTR.
2691         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
2692         macro.
2693         * config/bfin/bfin.c (hwloop_optimize): Likewise.
2694         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
2695         of EXIT_BLOCK_PTR macro.
2696         * config/arm/arm.c (require_pic_register): Remove usage of
2697         ENTRY_BLOCK_PTR macro.
2698         (arm_r3_live_at_start_p): Likewise.
2699         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
2700         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2701         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
2702         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
2703         ENTRY_BLOCK_PTR macro.
2704         * config/i386/i386.c (ix86_count_insn): Likewise.
2705         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
2706         (ix86_pad_short_function): Likewise.
2707         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2708         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
2709         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
2710         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
2711         (ix86_expand_epilogue): Likewise.
2712         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
2713         (ia64_expand_prologue): Likewise.
2714
2715 2013-11-19  Catherine Moore  <clm@codesourcery.com>
2716
2717         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
2718         * config/mips/mips.opt (mfix-rm7000): New option.
2719         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
2720         * config/mips/mips.c (mips_reorg_process_insns): Disable
2721         noreorder for TARGET_FIX_RM7000.
2722
2723 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
2724
2725         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
2726
2727 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2728
2729         * config/arm/arm.c (arm_new_rtx_costs):
2730         Handle narrow mode add-shifts properly.
2731         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
2732         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
2733         Declare extern.
2734
2735 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
2736
2737         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
2738
2739 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2740
2741         * config/rs6000/vector.md ("mov<mode>"): Do not call
2742         rs6000_emit_le_vsx_move to move into or out of GPRs.
2743         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
2744         source and destination are not GPR hard regs.
2745
2746 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2747
2748         * basic-block.h (n_edges_for_function): Rename macro to...
2749         (n_edges_for_fn): ...this.
2750         (n_edges): Eliminate macro as work towards making uses of
2751         cfun be explicit.
2752
2753         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
2754         to "n_edges_for_fn".
2755
2756         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
2757         (clear_edges): Likewise.
2758         (free_edge): Likewise.
2759         * cfghooks.c (dump_flow_info): Likewise.
2760         * cprop.c (is_too_expensive): Likewise.
2761         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
2762         * gcse.c (is_too_expensive): Likewise.
2763         (prune_insertions_deletions): Likewise.
2764         * mcf.c (create_fixup_graph): Likewise.
2765         * sched-rgn.c (haifa_find_rgns): Likewise.
2766         * tree-cfg.c (gimple_dump_cfg): Likewise.
2767         * var-tracking.c (variable_tracking_main_1): Likewise.
2768
2769 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2770
2771         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
2772         length lines.
2773
2774 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2775
2776         * config/aarch64/aarch64.md
2777         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
2778
2779 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2780
2781         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
2782
2783 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
2784
2785         * varasm.c (align_variable): Give error instead of warning for
2786         unsupported alignment.
2787         (assemble_noswitch_variable): Likewise.
2788
2789 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
2790
2791         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
2792         cb_file_change.
2793
2794 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
2795
2796         * loop-doloop.c (doloop_optimize_loops): Remove unused
2797         loop iterator argument from FOR_EACH_LOOP.
2798
2799 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2800
2801         Convert gimple types from a union to C++ inheritance.
2802         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
2803         * coretypes.h (union gimple_statement_d): Remove declaration.
2804         (gimple): Convert from being a "union gimple_statement_d *"
2805         to a "struct gimple_statement_base *".
2806         (const_gimple): Likewise (with "const").
2807         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
2808         (ggc_alloc_cleared_gimple_statement_stat): ...this.
2809         * gimple-pretty-print.c (debug): Change parameter from a
2810         "gimple_statement_d &" to a "gimple_statement_base &".
2811         (debug): Change parameter from a "gimple_statement_d *" to
2812         a "gimple_statement_base *".
2813         * gimple-pretty-print.h (debug): Update declarations as above.
2814         * gimple.c (gimple_alloc_stat): Update for renaming of
2815         ggc_alloc_cleared_gimple_statement_d_stat to
2816         ggc_alloc_cleared_gimple_statement_stat.
2817         * gimple.h: Include "is-a.h" for use by is_a_helper
2818         specializations in followup autogenerated patch.
2819         (struct gimple statement_base): Make this type usable as a base
2820         class by adding "desc", "tag" and "variable_size" to GTY, thus
2821         using opting-in to gengtype's support for simple inheritance.
2822         (gimple_statement_with_ops_base): Convert to a subclass of
2823         gimple_statement_base, dropping initial "gsbase" field.  Note that
2824         this type is abstract, with no GSS_ value, and thus no GTY tag value.
2825         (gimple_statement_with_ops): Convert to a subclass of
2826         gimple_statement_with_ops_base, dropping initial "opbase" field.
2827         Add tag value to GTY marking.  Update marking of op field to
2828         reflect how num_ops field is accessed via inheritance.
2829         (gimple_statement_with_memory_ops_base): Convert to a subclass of
2830         gimple_statement_with_ops_base, dropping initial "opbase" field.
2831         Add tag value to GTY marking.
2832         (gimple_statement_with_memory_ops): Convert to a subclass of
2833         public gimple_statement_with_memory_ops_base, dropping initial
2834         "membase" field.  Add tag value to GTY marking.  Update marking
2835         of op field to reflect how num_ops field is accessed via inheritance.
2836         (gimple_statement_call): Analogous changes that also update the
2837         marking of the "u" union.
2838         (gimple_statement_omp): Convert to a subclass of
2839         gimple_statement_base, dropping initial "gsbase" field, adding
2840         tag value to GTY marking.
2841         (gimple_statement_bind): Likewise.
2842         (gimple_statement_catch): Likewise.
2843         (gimple_statement_eh_filter): Likewise.
2844         (gimple_statement_eh_else): Likewise.
2845         (gimple_statement_eh_mnt): Likewise.
2846         (gimple_statement_phi): Likewise.
2847         (gimple_statement_eh_ctrl): Likewise.
2848         (gimple_statement_try): Likewise.
2849         (gimple_statement_wce): Likewise.
2850         (gimple_statement_asm): Convert to a subclass of
2851         gimple_statement_with_memory_ops_base, dropping initial
2852         "membase" field, adding tag value to GTY marking, and updating
2853         marking of op field.
2854         (gimple_statement_omp_critical): Convert to a subclass of
2855         gimple_statement_omp, dropping initial "omp" field, adding tag
2856         value to GTY marking.
2857         (gimple_statement_omp_for): Likewise.
2858         (gimple_statement_omp_parallel): Likewise.
2859         (gimple_statement_omp_task): Convert to a subclass of
2860         gimple_statement_omp_parallel, dropping initial "par" field,
2861         adding tag value to GTY marking.
2862         (gimple_statement_omp_sections): Convert to a subclass of
2863         gimple_statement_omp, dropping initial "omp" field, adding
2864         tag value to GTY marking.
2865         (gimple_statement_omp_continue): Convert to a subclass of
2866         gimple_statement_base, dropping initial "gsbase" field, adding
2867         tag value to GTY marking.
2868         (gimple_statement_omp_single): Convert to a subclass of
2869         gimple_statement_omp, dropping initial "omp" field, adding
2870         tag value to GTY marking.
2871         (gimple_statement_omp_atomic_load): Convert to a subclass of
2872         gimple_statement_base, dropping initial "gsbase" field, adding
2873         tag value to GTY marking.
2874         (gimple_statement_omp_atomic_store): Convert to a subclass of
2875         gimple_statement_base, dropping initial "gsbase" field, adding
2876         tag value to GTY marking.
2877         (gimple_statement_transaction): Convert to a subclass of
2878         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
2879         field, adding tag value to GTY marking.
2880         (union gimple_statement_d): Remove.
2881         * system.h (CONST_CAST_GIMPLE): Update to use
2882         "struct gimple_statement_base *" rather than
2883         "union gimple_statement_d *".
2884         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
2885         gimple_statement_d to gimple_statement_base.
2886
2887         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
2888         (gimple_set_use_ops): Port from union to usage of as_a.
2889         (gimple_set_vuse): Likewise.
2890         (gimple_set_vdef): Likewise.
2891         (gimple_call_internal_fn): Port from union to a static_cast,
2892         given that the type has already been asserted.
2893         (gimple_omp_body_ptr): Port from unchecked union usage to
2894         a static_cast.
2895         (gimple_omp_set_body): Likewise.
2896
2897         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
2898         gimple types to a true class hierarchy.
2899         (update_call_edge_frequencies): Likewise.
2900         (gsi_insert_seq_nodes_before): Likewise.
2901         (gsi_insert_seq_nodes_after): Likewise.
2902         (gsi_split_seq_after): Likewise.
2903         (gsi_set_stmt): Likewise.
2904         (gsi_split_seq_before): Likewise.
2905         (gsi_remove): Likewise.
2906         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
2907         (gsi_next): Likewise.
2908         (gsi_prev): Likewise.
2909         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
2910         * gimple-ssa.h (gimple_vuse_op): Likewise.
2911         (gimple_vdef_op): Likewise.
2912         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
2913         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
2914         * gimple.c (gimple_set_code): Likewise.
2915         (gimple_alloc_stat): Likewise.
2916         (gimple_set_subcode): Likewise.
2917         (gimple_build_call_internal_1): Likewise.
2918         (gimple_check_failed): Likewise.
2919         (gimple_call_flags): Likewise.
2920         (gimple_set_bb): Likewise.
2921         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
2922         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
2923         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
2924         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
2925         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
2926         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
2927         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
2928         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
2929         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
2930         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
2931         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
2932         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
2933         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
2934         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
2935         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
2936         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
2937         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
2938         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
2939         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
2940         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
2941         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
2942         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
2943         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
2944         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
2945         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
2946         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
2947         Likewise.
2948         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
2949         Likewise.
2950         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
2951         Likewise.
2952         (is_a_helper <const gimple_statement_omp_atomic_store>
2953         (const_gimple)): Likewise.
2954         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
2955         Likewise.
2956         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
2957         Likewise.
2958         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
2959         Likewise.
2960         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
2961         Likewise.
2962         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
2963         Likewise.
2964         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
2965         Likewise.
2966         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
2967         Likewise.
2968         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
2969         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
2970         Likewise.
2971         (gimple_seq_last): Update for conversion of gimple types to a true
2972         class hierarchy.
2973         (gimple_seq_set_last): Likewise.
2974         (gimple_code): Likewise.
2975         (gimple_bb): Likewise.
2976         (gimple_block): Likewise.
2977         (gimple_set_block): Likewise.
2978         (gimple_location): Likewise.
2979         (gimple_location_ptr): Likewise.
2980         (gimple_set_location): Likewise.
2981         (gimple_no_warning_p): Likewise.
2982         (gimple_set_no_warning): Likewise.
2983         (gimple_set_visited): Likewise.
2984         (gimple_visited_p): Likewise.
2985         (gimple_set_plf): Likewise.
2986         (gimple_plf): Likewise.
2987         (gimple_set_uid): Likewise.
2988         (gimple_uid): Likewise.
2989         (gimple_init_singleton): Likewise.
2990         (gimple_modified_p): Likewise.
2991         (gimple_set_modified): Likewise.
2992         (gimple_expr_code): Likewise.
2993         (gimple_has_volatile_ops): Likewise.
2994         (gimple_set_has_volatile_ops): Likewise.
2995         (gimple_omp_subcode): Likewise.
2996         (gimple_omp_set_subcode): Likewise.
2997         (gimple_omp_return_set_nowait): Likewise.
2998         (gimple_omp_section_set_last): Likewise.
2999         (gimple_omp_parallel_set_combined_p): Likewise.
3000         (gimple_omp_atomic_set_need_value): Likewise.
3001         (gimple_omp_atomic_set_seq_cst): Likewise.
3002         (gimple_num_ops): Likewise.
3003         (gimple_set_num_ops): Likewise.
3004         (gimple_assign_nontemporal_move_p): Likewise.
3005         (gimple_assign_set_nontemporal_move): Likewise.
3006         (gimple_assign_rhs_code): Likewise.
3007         (gimple_assign_set_rhs_code): Likewise.
3008         (gimple_call_internal_p): Likewise.
3009         (gimple_call_with_bounds_p): Likewise.
3010         (gimple_call_set_with_bounds): Likewise.
3011         (gimple_call_set_tail): Likewise.
3012         (gimple_call_tail_p): Likewise.
3013         (gimple_call_set_return_slot_opt): Likewise.
3014         (gimple_call_return_slot_opt_p): Likewise.
3015         (gimple_call_set_from_thunk): Likewise.
3016         (gimple_call_from_thunk_p): Likewise.
3017         (gimple_call_set_va_arg_pack): Likewise.
3018         (gimple_call_va_arg_pack_p): Likewise.
3019         (gimple_call_set_nothrow): Likewise.
3020         (gimple_call_set_alloca_for_var): Likewise.
3021         (gimple_call_alloca_for_var_p): Likewise.
3022         (gimple_call_copy_flags): Likewise.
3023         (gimple_cond_code): Likewise.
3024         (gimple_cond_set_code): Likewise.
3025         (gimple_cond_make_false): Likewise.
3026         (gimple_cond_make_true): Likewise.
3027         (gimple_asm_volatile_p): Likewise.
3028         (gimple_asm_set_volatile): Likewise.
3029         (gimple_asm_set_input): Likewise.
3030         (gimple_asm_input_p): Likewise.
3031         (gimple_try_kind): Likewise.
3032         (gimple_try_set_kind): Likewise.
3033         (gimple_try_catch_is_cleanup): Likewise.
3034         (gimple_try_set_catch_is_cleanup): Likewise.
3035         (gimple_wce_cleanup_eh_only): Likewise.
3036         (gimple_wce_set_cleanup_eh_only): Likewise.
3037         (gimple_debug_bind_p): Likewise.
3038         (gimple_debug_source_bind_p): Likewise.
3039         (gimple_omp_for_set_kind): Likewise.
3040         (gimple_omp_for_set_combined_p): Likewise.
3041         (gimple_omp_for_set_combined_into_p): Likewise.
3042         (gimple_omp_target_set_kind): Likewise.
3043         (gimple_transaction_subcode): Likewise.
3044         (gimple_transaction_set_subcode): Likewise.
3045         (gimple_predict_predictor): Likewise.
3046         (gimple_predict_set_predictor): Likewise.
3047         (gimple_predict_outcome): Likewise.
3048         (gimple_predict_set_outcome): Likewise.
3049         (gimple_transaction_set_label): Likewise.
3050         (gimple_transaction_set_body): Likewise.
3051         (gimple_transaction_label_ptr): Likewise.
3052         (gimple_transaction_label): Likewise.
3053         (gimple_transaction_body_ptr): Likewise.
3054         (gimple_omp_continue_set_control_use): Likewise.
3055         (gimple_omp_continue_control_use_ptr): Likewise.
3056         (gimple_omp_continue_control_use): Likewise.
3057         (gimple_omp_continue_set_control_def): Likewise.
3058         (gimple_omp_continue_control_def_ptr): Likewise.
3059         (gimple_omp_continue_control_def): Likewise.
3060         (gimple_omp_atomic_load_rhs_ptr): Likewise.
3061         (gimple_omp_atomic_load_rhs): Likewise.
3062         (gimple_omp_atomic_load_set_rhs): Likewise.
3063         (gimple_omp_atomic_load_lhs_ptr): Likewise.
3064         (gimple_omp_atomic_load_lhs): Likewise.
3065         (gimple_omp_atomic_load_set_lhs): Likewise.
3066         (gimple_omp_atomic_store_val_ptr): Likewise.
3067         (gimple_omp_atomic_store_val): Likewise.
3068         (gimple_omp_atomic_store_set_val): Likewise.
3069         (gimple_omp_for_cond): Likewise.
3070         (gimple_omp_for_set_cond): Likewise.
3071         (gimple_omp_sections_set_control): Likewise.
3072         (gimple_omp_sections_control_ptr): Likewise.
3073         (gimple_omp_sections_control): Likewise.
3074         (gimple_omp_sections_set_clauses): Likewise.
3075         (gimple_omp_sections_clauses_ptr): Likewise.
3076         (gimple_omp_sections_clauses): Likewise.
3077         (gimple_omp_teams_set_clauses): Likewise.
3078         (gimple_omp_teams_clauses_ptr): Likewise.
3079         (gimple_omp_teams_clauses): Likewise.
3080         (gimple_omp_target_set_data_arg): Likewise.
3081         (gimple_omp_target_data_arg_ptr): Likewise.
3082         (gimple_omp_target_data_arg): Likewise.
3083         (gimple_omp_target_set_child_fn): Likewise.
3084         (gimple_omp_target_child_fn_ptr): Likewise.
3085         (gimple_omp_target_child_fn): Likewise.
3086         (gimple_omp_target_set_clauses): Likewise.
3087         (gimple_omp_target_clauses_ptr): Likewise.
3088         (gimple_omp_target_clauses): Likewise.
3089         (gimple_omp_single_set_clauses): Likewise.
3090         (gimple_omp_single_clauses_ptr): Likewise.
3091         (gimple_omp_single_clauses): Likewise.
3092         (gimple_omp_task_set_arg_align): Likewise.
3093         (gimple_omp_task_arg_align_ptr): Likewise.
3094         (gimple_omp_task_arg_align): Likewise.
3095         (gimple_omp_task_set_arg_size): Likewise.
3096         (gimple_omp_task_arg_size_ptr): Likewise.
3097         (gimple_omp_task_arg_size): Likewise.
3098         (gimple_omp_task_set_copy_fn): Likewise.
3099         (gimple_omp_task_copy_fn_ptr): Likewise.
3100         (gimple_omp_task_copy_fn): Likewise.
3101         (gimple_omp_task_set_data_arg): Likewise.
3102         (gimple_omp_task_data_arg_ptr): Likewise.
3103         (gimple_omp_task_data_arg): Likewise.
3104         (gimple_omp_task_set_child_fn): Likewise.
3105         (gimple_omp_task_child_fn_ptr): Likewise.
3106         (gimple_omp_task_child_fn): Likewise.
3107         (gimple_omp_task_set_clauses): Likewise.
3108         (gimple_omp_task_clauses_ptr): Likewise.
3109         (gimple_omp_task_clauses): Likewise.
3110         (gimple_omp_parallel_set_data_arg): Likewise.
3111         (gimple_omp_parallel_data_arg_ptr): Likewise.
3112         (gimple_omp_parallel_data_arg): Likewise.
3113         (gimple_omp_parallel_set_child_fn): Likewise.
3114         (gimple_omp_parallel_child_fn_ptr): Likewise.
3115         (gimple_omp_parallel_child_fn): Likewise.
3116         (gimple_omp_parallel_set_clauses): Likewise.
3117         (gimple_omp_parallel_clauses_ptr): Likewise.
3118         (gimple_omp_parallel_clauses): Likewise.
3119         (gimple_omp_for_set_pre_body): Likewise.
3120         (gimple_omp_for_pre_body_ptr): Likewise.
3121         (gimple_omp_for_set_incr): Likewise.
3122         (gimple_omp_for_incr_ptr): Likewise.
3123         (gimple_omp_for_incr): Likewise.
3124         (gimple_omp_for_set_final): Likewise.
3125         (gimple_omp_for_final_ptr): Likewise.
3126         (gimple_omp_for_final): Likewise.
3127         (gimple_omp_for_set_initial): Likewise.
3128         (gimple_omp_for_initial_ptr): Likewise.
3129         (gimple_omp_for_initial): Likewise.
3130         (gimple_omp_for_set_index): Likewise.
3131         (gimple_omp_for_index_ptr): Likewise.
3132         (gimple_omp_for_index): Likewise.
3133         (gimple_omp_for_collapse): Likewise.
3134         (gimple_omp_for_set_clauses): Likewise.
3135         (gimple_omp_for_clauses_ptr): Likewise.
3136         (gimple_omp_for_clauses): Likewise.
3137         (gimple_omp_critical_set_name): Likewise.
3138         (gimple_omp_critical_name_ptr): Likewise.
3139         (gimple_omp_critical_name): Likewise.
3140         (gimple_eh_dispatch_set_region): Likewise.
3141         (gimple_eh_dispatch_region): Likewise.
3142         (gimple_resx_set_region): Likewise.
3143         (gimple_resx_region): Likewise.
3144         (gimple_phi_set_arg): Likewise.
3145         (gimple_phi_arg): Likewise.
3146         (gimple_phi_set_result): Likewise.
3147         (gimple_phi_result_ptr): Likewise.
3148         (gimple_phi_result): Likewise.
3149         (gimple_phi_num_args): Likewise.
3150         (gimple_phi_capacity): Likewise.
3151         (gimple_wce_set_cleanup): Likewise.
3152         (gimple_wce_cleanup_ptr): Likewise.
3153         (gimple_try_set_cleanup): Likewise.
3154         (gimple_try_set_eval): Likewise.
3155         (gimple_try_cleanup_ptr): Likewise.
3156         (gimple_try_eval_ptr): Likewise.
3157         (gimple_eh_else_set_e_body): Likewise.
3158         (gimple_eh_else_set_n_body): Likewise.
3159         (gimple_eh_else_e_body_ptr): Likewise.
3160         (gimple_eh_else_n_body_ptr): Likewise.
3161         (gimple_eh_must_not_throw_set_fndecl): Likewise.
3162         (gimple_eh_must_not_throw_fndecl): Likewise.
3163         (gimple_eh_filter_set_failure): Likewise.
3164         (gimple_eh_filter_set_types): Likewise.
3165         (gimple_eh_filter_failure_ptr): Likewise.
3166         (gimple_eh_filter_types_ptr): Likewise.
3167         (gimple_eh_filter_types): Likewise.
3168         (gimple_catch_set_handler): Likewise.
3169         (gimple_catch_set_types): Likewise.
3170         (gimple_catch_handler_ptr): Likewise.
3171         (gimple_catch_types_ptr): Likewise.
3172         (gimple_catch_types): Likewise.
3173         (gimple_asm_string): Likewise.
3174         (gimple_asm_set_label_op): Likewise.
3175         (gimple_asm_label_op): Likewise.
3176         (gimple_asm_set_clobber_op): Likewise.
3177         (gimple_asm_clobber_op): Likewise.
3178         (gimple_asm_set_output_op): Likewise.
3179         (gimple_asm_output_op_ptr): Likewise.
3180         (gimple_asm_output_op): Likewise.
3181         (gimple_asm_set_input_op): Likewise.
3182         (gimple_asm_input_op_ptr): Likewise.
3183         (gimple_asm_input_op): Likewise.
3184         (gimple_asm_nlabels): Likewise.
3185         (gimple_asm_nclobbers): Likewise.
3186         (gimple_asm_noutputs): Likewise.
3187         (gimple_asm_ninputs): Likewise.
3188         (gimple_bind_set_block): Likewise.
3189         (gimple_bind_block): Likewise.
3190         (gimple_bind_add_seq): Likewise.
3191         (gimple_bind_add_stmt): Likewise.
3192         (gimple_bind_set_body): Likewise.
3193         (gimple_bind_body_ptr): Likewise.
3194         (gimple_bind_append_vars): Likewise.
3195         (gimple_bind_set_vars): Likewise.
3196         (gimple_bind_vars): Likewise.
3197         (gimple_call_clobber_set): Likewise.
3198         (gimple_call_use_set): Likewise.
3199         (gimple_call_set_internal_fn): Likewise.
3200         (gimple_call_set_fntype): Likewise.
3201         (gimple_call_fntype): Likewise.
3202         (gimple_omp_return_lhs_ptr): Likewise.
3203         (gimple_omp_return_lhs): Likewise.
3204         (gimple_omp_return_set_lhs): Likewise.
3205         (gimple_omp_taskreg_set_data_arg): Likewise.
3206         (gimple_omp_taskreg_data_arg_ptr): Likewise.
3207         (gimple_omp_taskreg_data_arg): Likewise.
3208         (gimple_omp_taskreg_set_child_fn): Likewise.
3209         (gimple_omp_taskreg_child_fn_ptr): Likewise.
3210         (gimple_omp_taskreg_child_fn): Likewise.
3211         (gimple_omp_taskreg_set_clauses): Likewise.
3212         (gimple_omp_taskreg_clauses_ptr): Likewise.
3213         (gimple_omp_taskreg_clauses): Likewise.
3214         (gimple_vuse): Likewise.
3215         (gimple_vdef): Likewise.
3216         (gimple_vuse_ptr): Likewise.
3217         (gimple_vdef_ptr): Likewise.
3218         * tree-inline.c (copy_debug_stmt): Likewise.
3219         * tree-phinodes.c (make_phi_node): Likewise.
3220
3221         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
3222         (is_a_helper <gimple_statement_with_ops>::test): New.
3223         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
3224         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
3225
3226         * gimple-streamer-in.c (input_gimple_stmt): Port from union
3227         access to use of as_a.
3228         * gimple.c (gimple_build_asm_1): Likewise.
3229         (gimple_build_try): Likewise.  Also, return a specific subclass
3230         rather than just gimple.
3231         (gimple_build_resx): Port from union access to use of as_a.
3232         (gimple_build_eh_dispatch): Likewise.
3233         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
3234         now that gengtype no longer provides a typed allocator function.
3235         (gimple_copy): Likewise.
3236         * gimple.h (gimple_build_try): Return a specific subclass rather
3237         than just gimple.
3238         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
3239         with subclass access by making use of new return type of
3240         gimple_build_try.
3241         * tree-phinodes.c: (allocate_phi_node): Return a
3242         "gimple_statement_phi *" rather than just a gimple.
3243         (resize_phi_node): Likewise.
3244         (make_phi_node): Replace union access with subclass access by
3245         making use of new return type of allocate_phi_node.
3246         (reserve_phi_args_for_new_edge): Replace union access with as_a.
3247         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
3248         than just a gimple.
3249         (remove_phi_args): Update for change to remove_phi_arg_num.
3250
3251         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
3252         code field to reflect inheritance, rather than embedding of
3253         the base gimple type.
3254
3255 2013-11-19  Richard Biener  <rguenther@suse.de>
3256
3257         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
3258         and destructor and make fel_next a member function.
3259         (fel_next): Transform into ...
3260         (loop_iterator::next): ... this.
3261         (fel_init): Transform into ...
3262         (loop_iterator::loop_iterator): ... this.
3263         (loop_iterator::~loop_iterator): New.
3264         (FOR_EACH_LOOP): Remove loop-iterator argument.
3265         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
3266         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
3267         graphite-clast-to-gimple.c, graphite-scop-detection.c,
3268         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
3269         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
3270         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
3271         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
3272         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
3273         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3274         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3275         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
3276         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
3277         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
3278         FOR_EACH_LOOP_BREAK with break.
3279
3280 2013-11-19  Richard Biener  <rguenther@suse.de>
3281
3282         PR tree-optimization/59164
3283         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3284         Uncomment assert.
3285         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
3286         whether we can create an epilogue loop to reflect thecases where
3287         we create one.
3288
3289 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
3290
3291         * graphite-sese-to-poly.c: Include expr.h.
3292
3293 2013-11-19  Richard Biener  <rguenther@suse.de>
3294
3295         PR middle-end/58956
3296         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
3297         loads into stmts that may clobber it.
3298
3299 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
3300
3301         * cgraphunit.c (symtab_terminator): New variable.
3302         (queued_nodes): Renamed from first.  Use symtab_terminator as
3303         initializer.
3304         (analyze_functions): Adjust accordingly.
3305         (cgraph_process_new_functions): Return void.
3306         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
3307
3308 2013-11-19  Marek Polacek  <polacek@redhat.com>
3309
3310         * opts.c (common_handle_option): Add -fsanitize=null option.
3311         Turn off -fdelete-null-pointer-checks option when doing the
3312         NULL pointer checking.
3313         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
3314         * tree-pass.h (make_pass_ubsan): Declare.
3315         (make_pass_sanopt): Declare.
3316         * timevar.def (TV_TREE_UBSAN): New timevar.
3317         * passes.def: Add pass_sanopt and pass_ubsan.
3318         * ubsan.h (ubsan_null_ckind): New enum.
3319         (ubsan_mismatch_data): New struct.
3320         (ubsan_expand_null_ifn): Declare.
3321         (ubsan_create_data): Adjust declaration.
3322         (ubsan_type_descriptor): Likewise.
3323         * asan.c: Include "ubsan.h".
3324         (pass_data_sanopt): New pass.
3325         (execute_sanopt): New function.
3326         (gate_sanopt): Likewise.
3327         (make_pass_sanopt): Likewise.
3328         (class pass_sanopt): New class.
3329         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
3330         gimple-iterator.h and cfgloop.h.
3331         (PROB_VERY_UNLIKELY): Define.
3332         (tree_type_map_hash): New function.
3333         (ubsan_type_descriptor): Add new parameter.
3334         Improve type name generation.
3335         (ubsan_create_data): Add new parameter.  Add pointer data into
3336         ubsan structure.
3337         (ubsan_expand_null_ifn): New function.
3338         (instrument_member_call): Likewise.
3339         (instrument_mem_ref): Likewise.
3340         (instrument_null): Likewise.
3341         (ubsan_pass): Likewise.
3342         (gate_ubsan): Likewise.
3343         (make_pass_ubsan): Likewise.
3344         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
3345         (class pass_ubsan): New class.
3346         (pass_data_ubsan): New pass.
3347         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
3348         * internal-fn.c (expand_UBSAN_NULL): New function.
3349         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
3350         even when !flag_toplevel_reorder.
3351         * internal-fn.def (UBSAN_NULL): New.
3352
3353 2013-11-19  Jan Hubicka  <jh@suse.cz>
3354
3355         * cgraph.c (cgraph_create_indirect_edge): Use
3356         get_polymorphic_call_info.
3357         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
3358         maybe_in_construction and maybe_derived_type.
3359         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
3360         (ipa_dummy_polymorphic_call_context): New global var.
3361         (possible_polymorphic_call_targets): Add context paramter.
3362         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
3363         (possible_polymorphic_call_target_p): Likewise.
3364         (get_polymorphic_call_info): New function.
3365         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
3366         (add_type_duplicate): Remove forgotten debug output.
3367         (method_class_type): Add sanity check.
3368         (maybe_record_node): Add FINALP parameter.
3369         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
3370         by info by get_binfo_at_offset.
3371         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
3372         parameters; pass them to record-binfo.
3373         (polymorphic_call_target_d): Add context and FINAL.
3374         (polymorphic_call_target_hasher::hash): Hash context.
3375         (polymorphic_call_target_hasher::equal): Compare context.
3376         (free_polymorphic_call_targets_hash):
3377         (get_class_context): New function.
3378         (contains_type_p): New function.
3379         (get_polymorphic_call_info): New function.
3380         (walk_bases): New function.
3381         (possible_polymorphic_call_targets): Add context parameter; honnor it.
3382         (dump_possible_polymorphic_call_targets): Dump context.
3383         (possible_polymorphic_call_target_p): Add context.
3384         (update_type_inheritance_graph): Update comment.s
3385         (ipa_set_jf_known_type): Assert that compoentn type is known.
3386         (ipa_note_param_call): Do not tamper with offsets.
3387         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
3388         outer type.
3389         (update_indirect_edges_after_inlining): Likewise.
3390         (ipa_write_indirect_edge_info): Stream new fields.
3391         (ipa_read_indirect_edge_info): Stream in new fields.
3392
3393 2013-11-19  Jan Hubicka  <jh@suse.cz>
3394
3395         * tree-pretty-print.c (dump_generic_node): Print class type of
3396         OBJ_TYPE_REF.
3397
3398 2013-11-19  Joey Ye  <joey.ye@arm.com>
3399
3400         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
3401         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
3402         for new option.
3403         * config/arm/arm.c (arm_option_override): By default disable
3404         -marm-pic-data-is-text-relative.
3405         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
3406         (arm_assemble_integer): Likewise.
3407         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
3408         New macro to initialize -marm-pic-data-is-text-relative.
3409
3410 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
3411
3412         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
3413         (address_cost_data): New field.
3414         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
3415         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
3416
3417 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
3418
3419         * config/aarch64/aarch64.md: Remove v8type from all insns.
3420
3421 2013-11-19  Richard Biener  <rguenther@suse.de>
3422
3423         PR tree-optimization/57517
3424         * tree-predcom.c (combinable_refs_p): Verify the combination
3425         is always executed when the refs are.
3426
3427 2013-11-19  Jeff Law  <law@redhat.com>
3428
3429         * tree-ssa-threadupdate.c: Include ssa-iterators.h
3430         (copy_phi_arg_into_existing_phi): New function.
3431         (any_remaining_duplicated_blocks): Likewise.
3432         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
3433         blocks on a jump threading path.
3434
3435         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
3436         thread through a joiner which has the latch edge.
3437
3438 2013-11-19  Jan Hubicka  <jh@suse.cz>
3439
3440         * md.texi (setmem): Document new parameter.
3441         * optabs.c (maybe_gen_insn): Support 9 operands.
3442         * builtins.c (determine_block_size): Add probable_max_size;
3443         support anti-ranges.
3444         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
3445         probable_max_size.
3446         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
3447         emit_block_move, clear_storage_hints, set_storage_via_setmem):
3448         Likewise.
3449         * expr.h (emit_block_move_hints, clear_storage_hints,
3450         set_storage_via_setmem): Update prototype.
3451         * i386.md (setmem, movmem patterns): Add 9th operand.
3452         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
3453         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
3454         argument; pass it to decide_alg.
3455
3456 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
3457
3458         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
3459         (n_basic_blocks_for_fn): ...this.
3460
3461         (n_basic_blocks): Eliminate macro as work towards making uses of
3462         cfun be explicit.
3463
3464         * cfgloop.c (init_loops_structure): Update for renaming of
3465         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
3466         * graph.c (draw_cfg_nodes_no_loops): Likewise.
3467         * ipa-utils.c (ipa_merge_profiles): Likewise.
3468         * lto-streamer-in.c (make_new_block): Likewise.
3469         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3470         (dump_function_to_file): Likewise.
3471
3472         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
3473         macro with "n_basic_blocks_for_fn (cfun)".
3474         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
3475         (duplicate_computed_gotos): Likewise.
3476         (reorder_basic_blocks): Likewise.
3477         * bt-load.c (augment_live_range): Likewise.
3478         * cfg.c (expunge_block): Likewise.
3479         (compact_blocks): Likewise.
3480         * cfganal.c (single_pred_before_succ_order): Likewise.
3481         (compute_idf): Likewise.
3482         (flow_dfs_compute_reverse_init): Likewise.
3483         (pre_and_rev_post_order_compute): Likewise.
3484         (pre_and_rev_post_order_compute_fn): Likewise.
3485         (inverted_post_order_compute): Likewise.
3486         (post_order_compute): Likewise.
3487         (print_edge_list): Likewise.
3488         (find_unreachable_blocks): Likewise.
3489         (mark_dfs_back_edges): Likewise.
3490         * cfgcleanup.c (try_optimize_cfg): Likewise.
3491         (try_forward_edges): Likewise.
3492         * cfghooks.c (dump_flow_info): Likewise.
3493         * cfgloop.c (verify_loop_structure): Likewise.
3494         (get_loop_body): Likewise.
3495         (flow_loops_find): Likewise.
3496         * cfgloopmanip.c (add_loop): Likewise.
3497         (remove_path): Likewise.
3498         (find_path): Likewise.
3499         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3500         (rtl_verify_bb_layout): Likewise.
3501         (entry_of_function): Likewise.
3502         (rtl_create_basic_block): Likewise.
3503         * coverage.c (coverage_compute_cfg_checksum): Likewise.
3504         * cprop.c (one_cprop_pass): Likewise.
3505         (is_too_expensive): Likewise.
3506         * df-core.c (df_compute_cfg_image): Likewise.
3507         (df_compact_blocks): Likewise.
3508         (df_worklist_dataflow_doublequeue): Likewise.
3509         * dominance.c (calculate_dominance_info): Likewise.
3510         (calc_dfs_tree): Likewise.
3511         (calc_dfs_tree_nonrec): Likewise.
3512         (init_dom_info): Likewise.
3513         * domwalk.c (cmp_bb_postorder): Likewise.
3514         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3515         (generate_setjmp_warnings): Likewise.
3516         * fwprop.c (build_single_def_use_links): Likewise.
3517         * gcse.c (is_too_expensive): Likewise.
3518         (one_code_hoisting_pass): Likewise.
3519         (one_pre_gcse_pass): Likewise.
3520         * graphite.c (graphite_initialize): Likewise.
3521         * haifa-sched.c (haifa_sched_init): Likewise.
3522         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
3523         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
3524         * ira-build.c (ira_build): Likewise.
3525         * lcm.c (compute_nearerout): Likewise.
3526         (compute_available): Likewise.
3527         (compute_laterin): Likewise.
3528         (compute_antinout_edge): Likewise.
3529         * lra-lives.c (lra_create_live_ranges): Likewise.
3530         * lra.c (has_nonexceptional_receiver): Likewise.
3531         * mcf.c (create_fixup_graph): Likewise.
3532         * profile.c (branch_prob): Likewise.
3533         * reg-stack.c (convert_regs_2): Likewise.
3534         * regrename.c (regrename_analyze): Likewise.
3535         * reload1.c (has_nonexceptional_receiver): Likewise.
3536         * reorg.c (dbr_schedule): Likewise.
3537         * sched-deps.c (sched_deps_init): Likewise.
3538         * sched-ebb.c (schedule_ebbs): Likewise.
3539         * sched-rgn.c (extend_regions): Likewise.
3540         (schedule_insns): Likewise.
3541         (sched_rgn_init): Likewise.
3542         (extend_rgns): Likewise.
3543         (haifa_find_rgns): Likewise.
3544         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
3545         (sel_recompute_toporder): Likewise.
3546         * sel-sched.c (run_selective_scheduling): Likewise.
3547         * store-motion.c (one_store_motion_pass): Likewise.
3548         (remove_reachable_equiv_notes): Likewise.
3549         * tracer.c (tracer): Likewise.
3550         (tail_duplicate): Likewise.
3551         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
3552         (dump_cfg_stats): Likewise.
3553         (gimple_dump_cfg): Likewise.
3554         (create_bb): Likewise.
3555         (build_gimple_cfg): Likewise.
3556         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
3557         * tree-inline.c (optimize_inline_calls): Likewise.
3558         (fold_marked_statements): Likewise.
3559         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
3560         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3561         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3562         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
3563         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3564         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3565         * tree-ssa-pre.c (do_pre): Likewise.
3566         (init_pre): Likewise.
3567         (compute_avail): Likewise.
3568         * tree-ssa-reassoc.c (init_reassoc): Likewise.
3569         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3570         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
3571         (init_worklist): Likewise.
3572         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3573         * var-tracking.c (variable_tracking_main_1): Likewise.
3574         (vt_find_locations): Likewise.
3575         (vt_stack_adjustments): Likewise.
3576         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
3577         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
3578
3579 2013-11-18  Jan Hubicka  <jh@suse.cz>
3580
3581         * profile.c (compute_branch_probabilities): Do not sanity check
3582         run_max.
3583
3584 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
3585
3586         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
3587         GET_MODE_PRECISION.
3588         * fold-const.c (fold_single_bit_test_into_sign_test)
3589         (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
3590
3591 2013-11-18  Teresa Johnson  <tejohnson@google.com>
3592
3593         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
3594         cfglayout after bb reordering.
3595         * passes.def: Move compgotos before bb reordering since it goes into
3596         cfglayout.
3597
3598 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
3599
3600         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
3601         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
3602         static.
3603         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
3604         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
3605         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
3606         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
3607         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
3608         Remove all_lto_gen_passes.
3609         * passes.c (pass_manager::dump_passes): Remove its use.
3610         (pass_manager::register_pass): Likewise.
3611         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
3612         (pass_manager::pass_manager): Don't initialize or use it.
3613         (write_lto): New static function.
3614         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
3615         instead of using all_lto_gen_passes.
3616         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
3617         pass_ipa_lto_finish_out): Delete.
3618         * tree-pass.h (make_pass_ipa_lto_gimple_out,
3619         make_pass_ipa_lto_finish_out): Don't declare.
3620
3621 2013-11-18  Jeff Law  <law@redhat.com>
3622
3623         * tree-ssa-threadupdate.c (redirection_data): Record two
3624         duplicated blocks instead of just one.
3625         (local_info): Explain why we don't create a template for the
3626         second duplicated block in a thread path.
3627         (create_block_for_threading): Accept argument indicating array
3628         index into redirection_data to store its result.
3629         (lookup_redirection_data): Initialize both duplicate blocks.
3630         (ssa_create_duplicates): If a jump threading path needs multiple
3631         blocks duplicated, then duplicate them.
3632         (ssa_fix_duplicate_block_edges): Corresponding changes.
3633         (ssa_fixup_template_block, thread_single_edge):  Likewise.
3634
3635 2013-11-18  Marek Polacek  <polacek@redhat.com>
3636
3637         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
3638
3639 2013-11-18  Andrew Pinski <apinski@cavium.com>
3640             Steve Ellcey  <sellcey@mips.com>
3641
3642         PR target/56552
3643         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
3644         type restriction from equality_operator on conditonal move.
3645         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
3646         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
3647
3648 2013-11-18  Jeff Law  <law@redhat.com>
3649
3650         * tree-ssa-threadupdate.c: Fix file block comment.
3651         Fix minor indention issue.
3652
3653 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
3654
3655         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
3656         ix86_address_subreg_operand.  Move subreg checks to
3657         ix86_validate_address_register.  Move address override check to
3658         ix86_legitimate_address_p.
3659         (ix86_validate_address_register): New function.
3660         (ix86_legitimate_address_p): Call ix86_validate_address_register
3661         to validate base and index registers.  Add address override check
3662         from ix86_decompose_address.
3663         (ix86_decompose_address): Remove.
3664
3665 2013-11-18  Richard Biener  <rguenther@suse.de>
3666
3667         PR tree-optimization/59125
3668         PR tree-optimization/54570
3669         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
3670         is not complete do not treat component-references with offset zero
3671         but different fields as equal.
3672         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
3673         (compute_object_sizes): Apply TLC.  Propagate the constant
3674         results into all uses and fold their stmts.
3675         * passes.def (pass_all_optimizations): Move pass_object_sizes
3676         after the first pass_forwprop and before pass_fre.
3677
3678 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3679
3680         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3681         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3682         (tree_ctz): Remove cast to unsigned type.
3683         * builtins.c (fold_builtin_memory_op): Likewise.
3684         * dwarf2out.c (descr_info_loc): Likewise.
3685         * godump.c (go_output_typedef): Likewise.
3686         * omp-low.c (expand_omp_simd): Likewise.
3687         * stor-layout.c (excess_unit_span): Likewise.
3688         * tree-object-size.c (addr_object_size): Likewise.
3689         * tree-sra.c (analyze_all_variable_accesses): Likewise.
3690         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3691         (simplify_rotate): Likewise.
3692         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
3693         (handle_pointer_plus): Likewise.
3694         * tree-switch-conversion.c (check_range): Likewise.
3695         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
3696         * tsan.c (instrument_builtin_call): Likewise.
3697         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
3698         * trans-mem.c (tm_log_add): Likewise.
3699         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
3700         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
3701         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
3702         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
3703
3704 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3705
3706         * tree.h (host_integerp, tree_low_cst): Delete.
3707         * tree.c (host_integerp, tree_low_cst): Delete.
3708
3709 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3710
3711         * expr.h: Update comments to refer to tree_to_[su]hwi rather
3712         than tree_low_cst.
3713         * fold-const.c (fold_binary_loc): Likewise.
3714         * expr.c (store_constructor): Use tree_to_uhwi rather than
3715         tree_low_cst.
3716         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
3717         * stmt.c (emit_case_dispatch_table): Likewise.
3718         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
3719
3720 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3721
3722         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
3723         config/aarch64/aarch64.c, config/alpha/predicates.md,
3724         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
3725         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
3726         config/mep/mep-pragma.c, config/mips/mips.c,
3727         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
3728         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
3729         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
3730         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
3731         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
3732         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
3733         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
3734         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
3735         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
3736         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
3737
3738 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3739
3740         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
3741         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
3742         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
3743         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
3744         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
3745         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
3746         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
3747         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
3748         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
3749         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
3750         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
3751
3752 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3753
3754         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
3755         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
3756
3757 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3758
3759         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
3760         than host_integerp.
3761
3762 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3763
3764         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
3765         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
3766         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
3767         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
3768         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
3769         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
3770         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
3771         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
3772         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
3773         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
3774         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
3775         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
3776         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
3777         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
3778         tree_fits_uhwi_p throughout.
3779
3780 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3781
3782         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
3783         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
3784         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
3785         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
3786         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
3787         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
3788         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
3789         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
3790         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
3791         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
3792         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
3793         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
3794         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
3795         throughout.
3796
3797 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3798
3799         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
3800         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
3801
3802 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3803
3804         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
3805         flag if it kills its address, not its post-increment.
3806
3807 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
3808
3809         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3810         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3811         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3812         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3813         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3814         (gimple_call_with_bounds_p): New.
3815         (gimple_call_set_with_bounds): New.
3816         (gimple_call_num_nobnd_args): Remove.
3817         (gimple_call_nobnd_arg): Remove.
3818         * tree.h (CALL_WITH_BOUNDS_P): New.
3819         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3820
3821 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
3822
3823         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
3824         (symtab_node_name): Rename to symtab_node::name.
3825         (cgraph_node_asm_name): Remove.
3826         (varpool_node_asm_name): Remove.
3827         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
3828         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
3829         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
3830         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
3831         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
3832
3833 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3834
3835         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
3836         * config/arm/arm.c (arm_cortex_a53_tune): New.
3837         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
3838
3839 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3840
3841         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
3842         (case ${target}): Add bdver4.
3843         * config/i386/bdver3.md: Add bdver4.
3844         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
3845         -march=native recognize bdver4 processors.
3846         * config/i386/i386-c.c (ix86_target_macros_internal): Add
3847         bdver4 def_and_undef
3848         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
3849         (m_BDVER4): New definition.
3850         (m_AMD_MULTIPLE): Includes m_BDVER4.
3851         (processor_target_table): Add bdver4 entry.
3852         (static const char *const cpu_names): Add bdver4 entry.
3853         (software_prefetching_beneficial_p): Add bdver3.
3854         (ix86_option_override_internal): Add bdver4 instruction sets.
3855         (ix86_issue_rate): Add bdver4.
3856         (ix86_adjust_cost): Add bdver4.
3857         (ia32_multipass_dfa_lookahead): Add bdver4.
3858         (enum processor_model): Add M_AMDFAM15H_BDVER4.
3859         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
3860         (has_dispatch): Add bdver4.
3861         * config/i386/i386.h (TARGET_BDVER4): New definition.
3862         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
3863         (enum processor_type): Add PROCESSOR_BDVER4.
3864         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
3865         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
3866         * doc/extend.texi: Add details about bdver4.
3867         * doc/invoke.texi: Add details about bdver4. Add
3868         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
3869
3870 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3871
3872         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
3873         sdmode_stack_slot also in little-endian mode.
3874
3875 2013-11-17  Jan Hubicka  <jh@suse.cz>
3876
3877         * doc/md.texi (setmem, movstr): Update documentation.
3878         * builtins.c (determine_block_size): New function.
3879         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
3880         (expand_builtin_memset_args): Use it and pass it to
3881         set_storage_via_setmem.
3882         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
3883         parameters; update call to expander.
3884         (emit_block_move_hints): Add min_size/max_size parameters.
3885         (clear_storage_hints): Likewise.
3886         (set_storage_via_setmem): Likewise.
3887         (clear_storage): Update.
3888         * expr.h (emit_block_move_hints, clear_storage_hints,
3889         set_storage_via_setmem): Update prototypes.
3890         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
3891         (ix86_expand_movmem, ix86_expand_setmem): Remove.
3892         (ix86_expand_movmem, ix86_expand_setmem): Remove.
3893         * i386.md (movmem, setmem): Pass parameters.
3894
3895 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
3896
3897         PR target/59153
3898         * config/i386/i386.c (ix86_address_subreg_operand): Do not
3899         reject non-integer subregs.
3900         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
3901         Move check for invalid x32 constant addresses ...
3902         (ix86_legitimate_address_p): ... here.
3903
3904 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3905
3906         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
3907         parameter and use it in REG_FRAME_RELATED_EXPR note.
3908         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
3909         parameter.
3910         (rs6000_emit_prologue): Likewise, but for little endian VSX
3911         stores, pass the source register of the store instead.
3912
3913 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
3914
3915         * gimple.h: Reorder prototypes to match .c declaration order, and
3916         remove protyotypes for functions not in gimple.c.
3917         (LABEL): Move to tree-into-ssa.c.
3918         * gimple.c: Remove unused prototypes.
3919         (get_base_address): Move to tree.c.
3920         * tree.c (get_base_address): Relocate from gimple.c.
3921         * builtins.h (validate_gimple_arglist): Add prototype.
3922         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
3923         * cfgexpand.h: New File.
3924         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
3925         * tree.h (build_addr): Move to tree-nested.h.
3926         * tree-nested.h: New File.
3927         (build_addr, lower_nested_functions, insert_field_into_struct): Add
3928         prototypes.
3929         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
3930         * ipa-inline-analysis.c: Include cfgexpand.h.
3931         * cgraphunit.c: Include tree-nested.h.
3932         * omp-low.c: Likewise.
3933         * tree-parloops.c: Likewise.
3934         * gimple-low.h: Likewise.
3935         * tree-profile.h: Likewise.
3936         * expr.c: Include cfgexpand.h.
3937         * tree-affine.c: Likewise.
3938         * tree-ssa.c: Likewise.
3939         * tree-ssa-loop-im.c: Include trans-mem.h.
3940         * tree-ssa-tail-merge.c: Likewise.
3941         * value-prof.c: Include builtins.h and tree-nested.h.
3942         * tree-into-ssa.c (LABEL): Define here.
3943
3944 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
3945
3946         * config/arc/arc.c (arc_predicate_delay_insns): New function.
3947         (pass_data_arc_predicate_delay_insns): New pass_data instance.
3948         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
3949         (make_pass_arc_predicate_delay_insns): New function.
3950         (arc_init): Register pass_arc_predicate_delay_insns if
3951         flag_delayed_branch is active.
3952
3953 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
3954
3955         * config/arc/constraints.md (Rcq): Simplify register number test.
3956
3957 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
3958
3959         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
3960
3961 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3962
3963         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
3964         is null.
3965
3966 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
3967
3968         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
3969         * gimple-pretty-print.c (dump_omp_for): Add case for
3970         GF_OMP_FOR_KIND_CILKSIMD.
3971         * gimple.h (enum gf_mask): Restructure entries to add
3972         GF_OMP_FOR_KIND_CILKSIMD.
3973         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
3974         (gimplify_omp_for): Handle CILK_SIMD.
3975         (gimplify_expr): Add ccase for CILK_SIMD.
3976         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
3977         (build_outer_var_ref): Same.
3978         (check_omp_nesting_restrictions): Same.
3979         (lower_rec_input_clauses): Same.
3980         (lower_lastprivate_clauses): Same.
3981         (expand_omp_for): Same.
3982         (execute_expand_omp): Check flag_enable_cilkplus.
3983         (execute_lower_omp): Same.
3984         (diagnose_sb_0): Handle CILK_SIMD.
3985         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
3986         (setjmp_or_longjmp_p): New.
3987         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
3988         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
3989         * tree.def: Add tree code for CILK_SIMD.
3990
3991 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3992
3993         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
3994         Remove.
3995         (altivec_vperm_<mode>): Revert earlier little endian change.
3996         (*altivec_vperm_<mode>_internal): Remove.
3997         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
3998         (*altivec_vperm_<mode>_uns_internal): Remove.
3999         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
4000
4001 2013-11-15  Jeff Law  <law@redhat.com>
4002
4003         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
4004         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
4005         * gimple-ssa-isolate-paths.c
4006         (find_implicit_erroneous_behaviour): Corresponding changes.
4007         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
4008         (find_explicit_erroneous_behaviour): Likewise.
4009
4010 2013-11-15  Jeff Law  <law@redhat.com>
4011
4012         * ifcvt.c (find_cond_trap): Properly handle case where
4013         trap_bb == else_bb.
4014
4015 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
4016
4017         * configure: Regenerate.
4018
4019 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
4020
4021         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
4022         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
4023         where it is incorrect or missing.
4024
4025 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
4026
4027         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
4028         host_integerp test.
4029         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
4030         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
4031         constant.
4032         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
4033         pair with a TREE_CODE test and TREE_INT_CST_LOW.
4034         * tree-vect-generic.c (expand_vector_divmod): Likewise.
4035
4036 2013-11-15  Richard Biener  <rguenther@suse.de>
4037
4038         PR tree-optimization/50262
4039         * tree-ssa-alias.h (struct pt_solution): Split
4040         vars_contains_global into vars_contains_nonlocal,
4041         vars_contains_escaped and vars_contains_escaped_heap.
4042         * tree-ssa-structalias.c (label_visit): Expand comment.
4043         (handle_lhs_call): Adjust comment.
4044         (set_uids_in_ptset): Set the new flags appropriately.
4045         (pt_solution_set): Adjust.
4046         (pt_solution_set_var): Likewise.
4047         (pt_solution_ior_into): Likewise.
4048         (pt_solution_includes_global): Likewise.
4049         (pt_solutions_intersect_1): Optimize escaped handling.
4050         (compute_points_to_sets): Remove heap variable globalization.
4051         (ipa_escaped_pt): Adjust initializer.
4052         (pass_data_ipa_pta): Do not run TODO_update_ssa.
4053         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
4054         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
4055
4056 2013-11-15  Richard Biener  <rguenther@suse.de>
4057
4058         * tree-loop-distribution.c (tree_loop_distribution): Make sure
4059         to distribute all stores.
4060
4061 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4062
4063         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
4064
4065 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
4066
4067         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
4068         * configure.ac: Determine target_header_dir earlier.
4069         (--with-glibc-version): New configure option.
4070         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
4071         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
4072         * configure: Regenerate.
4073         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
4074         native toolchains for default.
4075         (--with-glibc-version): Document.
4076
4077 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
4078
4079         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
4080
4081 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
4082
4083         * lto-streamer-in.c (input function): Call cgraph_create_node if
4084         cgraph_get_node failed.
4085
4086 2013-11-14   Olivier Hainque  <hainque@adacore.com>
4087
4088         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
4089         defer allocation of DECL_IGNORED_P variables at toplevel unless really
4090         small.  Factorize size threshold computation from the existing one.
4091         (expand_used_vars): Refine comment.
4092
4093 2013-11-14  Cong Hou  <congh@google.com>
4094
4095         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
4096         address field as it can be obtained from dr.  Rename the struct.
4097         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
4098         steps of data references during sort.
4099         (vect_prune_runtime_alias_test_list): Adjust with the change to
4100         struct dr_with_seg_len.
4101         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4102         Adjust with the change to struct dr_with_seg_len.
4103
4104 2013-11-14  Jeff Law  <law@redhat.com>
4105
4106         PR middle-end/59127
4107         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
4108         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
4109         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
4110         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
4111         edges, then ignore it.  If the statement exhibiting erroneous
4112         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
4113         then we can not optimize.
4114         (find_explicit_erroneous_behaviour): Likewise.
4115
4116 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
4117
4118         * gimplify-me.h:  New file.  Add prototypes.
4119         * gimplify.h: Don't include gimple.h.
4120         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
4121         Relocate from gimple.h.
4122         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
4123         is_gimple_sizepos): Move to gimplify.h.
4124         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
4125         (enum gsi_iterator_update): Move to gimple-iterator.h.
4126         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
4127         * gimplify-me.c: New File.
4128         (force_gimple_operand_1, force_gimple_operand,
4129         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4130         gimple_regimplify_operands): Relocate from gimplify.c.
4131         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
4132         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4133         gimple_regimplify_operands): Move to gimplify-me.c.
4134         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
4135         from gimple.h.
4136         * Makefile.in (OBJS): Add gimplify-me.o
4137         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
4138         required.
4139         * cfgloopmanip.c: Likewise.
4140         * cgraphunit.c: Likewise.
4141         * cilk-common.c: Likewise.
4142         * fold-const.c: Likewise.
4143         * function.c: Likewise.
4144         * gimple-expr.c: Likewise.
4145         * gimple-fold.c: Likewise.
4146         * gimple-ssa-strength-reduction.c: Likewise.
4147         * gimple.c: Likewise.
4148         * graphite-clast-to-gimple.c: Likewise.
4149         * graphite-sese-to-poly.c: Likewise.
4150         * ipa-prop.c: Likewise.
4151         * ipa-split.c: Likewise.
4152         * ipa.c: Likewise.
4153         * langhooks.c: Likewise.
4154         * omp-low.c: Likewise.
4155         * sese.c: Likewise.
4156         * stor-layout.c: Likewise.
4157         * targhooks.c: Likewise.
4158         * trans-mem.c: Likewise.
4159         * tree-affine.c: Likewise.
4160         * tree-cfg.c: Likewise.
4161         * tree-cfgcleanup.c: Likewise.
4162         * tree-complex.c: Likewise.
4163         * tree-if-conv.c: Likewise.
4164         * tree-inline.c: Likewise.
4165         * tree-loop-distribution.c: Likewise.
4166         * tree-nested.c: Likewise.
4167         * tree-parloops.c: Likewise.
4168         * tree-predcom.c: Likewise.
4169         * tree-profile.c: Likewise.
4170         * tree-scalar-evolution.c: Likewise.
4171         * tree-sra.c: Likewise.
4172         * tree-ssa-address.c: Likewise.
4173         * tree-ssa-ccp.c: Likewise.
4174         * tree-ssa-dce.c: Likewise.
4175         * tree-ssa-forwprop.c: Likewise.
4176         * tree-ssa-ifcombine.c: Likewise.
4177         * tree-ssa-loop-im.c: Likewise.
4178         * tree-ssa-loop-ivopts.c: Likewise.
4179         * tree-ssa-loop-manip.c: Likewise.
4180         * tree-ssa-loop-niter.c: Likewise.
4181         * tree-ssa-loop-prefetch.c: Likewise.
4182         * tree-ssa-loop-unswitch.c: Likewise.
4183         * tree-ssa-math-opts.c: Likewise.
4184         * tree-ssa-phiopt.c: Likewise.
4185         * tree-ssa-phiprop.c: Likewise.
4186         * tree-ssa-pre.c: Likewise.
4187         * tree-ssa-propagate.c: Likewise.
4188         * tree-ssa-reassoc.c: Likewise.
4189         * tree-ssa-sccvn.c: Likewise.
4190         * tree-ssa-strlen.c: Likewise.
4191         * tree-ssa.c: Likewise.
4192         * tree-switch-conversion.c: Likewise.
4193         * tree-tailcall.c: Likewise.
4194         * tree-vect-data-refs.c: Likewise.
4195         * tree-vect-generic.c: Likewise.
4196         * tree-vect-loop-manip.c: Likewise.
4197         * tree-vect-loop.c: Likewise.
4198         * tree-vect-patterns.c: Likewise.
4199         * tree-vect-stmts.c: Likewise.
4200         * tree.c: Likewise.
4201         * tsan.c: Likewise.
4202         * value-prof.c: Likewise.
4203         * config/aarch64/aarch64.c: Likewise.
4204         * config/alpha/alpha.c: Likewise.
4205         * config/darwin.c: Likewise.
4206         * config/i386/i386.c: Likewise.
4207         * config/ia64/ia64.c: Likewise.
4208         * config/mep/mep.c: Likewise.
4209         * config/mips/mips.c: Likewise.
4210         * config/rs6000/rs6000.c: Likewise.
4211         * config/s390/s390.c: Likewise.
4212         * config/sh/sh.c: Likewise.
4213         * config/sparc/sparc.c: Likewise.
4214         * config/spu/spu.c: Likewise.
4215         * config/stormy16/stormy16.c: Likewise.
4216         * config/tilegx/tilegx.c: Likewise.
4217         * config/tilepro/tilepro.c: Likewise.
4218         * config/xtensa/xtensa.c: Likewise.
4219
4220 2013-11-14  Diego Novillo  <dnovillo@google.com>
4221
4222         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
4223
4224 2013-11-14  Diego Novillo  <dnovillo@google.com>
4225
4226         * tree.h: Include fold-const.h.
4227         (aggregate_value_p): Moved to function.h.
4228         (alloca_call_p): Moved to calls.h.
4229         (allocate_struct_function): Moved to function.h.
4230         (apply_tm_attr): Moved to attribs.h.
4231         (array_at_struct_end_p): Moved to expr.h.
4232         (array_ref_element_size): Moved to tree-dfa.h.
4233         (array_ref_low_bound): Moved to tree-dfa.h.
4234         (array_ref_up_bound): Moved to tree.h.
4235         (assemble_alias): Moved to cgraph.h.
4236         (bit_from_pos): Moved to stor-layout.h.
4237         (build_addr): Moved to tree-nested.h.
4238         (build_duplicate_type): Moved to tree-inline.h.
4239         (build_fold_addr_expr): Moved to fold-const.h.
4240         (build_fold_addr_expr_with_type): Moved to fold-const.h.
4241         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
4242         (build_fold_indirect_ref): Moved to fold-const.h.
4243         (build_fold_indirect_ref_loc): Moved to fold-const.h.
4244         (build_personality_function): Moved to tree.h.
4245         (build_range_check): Moved to fold-const.h.
4246         (build_simple_mem_ref): Moved to fold-const.h.
4247         (build_simple_mem_ref_loc): Moved to fold-const.h.
4248         (build_tm_abort_call): Moved to trans-mem.h.
4249         (byte_from_pos): Moved to stor-layout.h.
4250         (call_expr_flags): Moved to calls.h.
4251         (can_move_by_pieces): Moved to expr.h.
4252         (categorize_ctor_elements): Moved to expr.h.
4253         (change_decl_assembler_name): Moved to gcc-symtab.h.
4254         (combine_comparisons): Moved to fold-const.h.
4255         (complete_ctor_at_level_p): Moved to tree.h.
4256         (component_ref_field_offset): Moved to tree-dfa.h.
4257         (compute_builtin_object_size): Moved to tree-object-size.h.
4258         (compute_record_mode): Moved to stor-layout.h.
4259         (constant_boolean_node): Moved to fold-const.h.
4260         (constructor_static_from_elts_p): Moved to varasm.h.
4261         (cxx11_attribute_p): Moved to attribs.h.
4262         (debug_body): Moved to print-tree.h.
4263         (debug_find_tree): Moved to tree-inline.h.
4264         (debug_fold_checksum): Moved to fold-const.h.
4265         (debug_head): Moved to print-tree.h.
4266         (debug_head): Moved to print-tree.h.
4267         (debug_raw): Moved to print-tree.h.
4268         (debug_tree): Moved to print-tree.h.
4269         (debug_vec_tree): Moved to print-tree.h.
4270         (debug_verbose): Moved to print-tree.h.
4271         (debug_verbose): Moved to print-tree.h.
4272         (decl_attributes): Moved to attribs.h.
4273         (decl_binds_to_current_def_p): Moved to varasm.h.
4274         (decl_default_tls_model): Moved to varasm.h.
4275         (decl_replaceable_p): Moved to varasm.h.
4276         (div_if_zero_remainder): Moved to fold-const.h.
4277         (double_int mem_ref_offset): Moved to fold-const.h.
4278         (dump_addr): Moved to print-tree.h.
4279         (element_precision): Moved to machmode.h.
4280         (expand_dummy_function_end): Moved to function.h.
4281         (expand_function_end): Moved to function.h.
4282         (expand_function_start): Moved to function.h.
4283         (expand_label): Moved to stmt.h.
4284         (expr_first): Moved to tree-iterator.h.
4285         (expr_last): Moved to tree-iterator.h.
4286         (finalize_size_functions): Moved to stor-layout.h.
4287         (finish_builtin_struct): Moved to stor-layout.h.
4288         (finish_record_layout): Moved to stor-layout.h.
4289         (fixup_signed_type): Moved to stor-layout.h.
4290         (fixup_unsigned_type): Moved to stor-layout.h.
4291         (flags_from_decl_or_type): Moved to calls.h.
4292         (fold): Moved to fold-const.h.
4293         (fold_abs_const): Moved to fold-const.h.
4294         (fold_binary): Moved to fold-const.h.
4295         (fold_binary_loc): Moved to fold-const.h.
4296         (fold_binary_to_constant): Moved to fold-const.h.
4297         (fold_build1): Moved to fold-const.h.
4298         (fold_build1_initializer_loc): Moved to fold-const.h.
4299         (fold_build1_loc): Moved to fold-const.h.
4300         (fold_build1_stat_loc): Moved to fold-const.h.
4301         (fold_build2): Moved to fold-const.h.
4302         (fold_build2_initializer_loc): Moved to fold-const.h.
4303         (fold_build2_loc): Moved to fold-const.h.
4304         (fold_build2_stat_loc): Moved to fold-const.h.
4305         (fold_build3): Moved to fold-const.h.
4306         (fold_build3_loc): Moved to fold-const.h.
4307         (fold_build3_stat_loc): Moved to fold-const.h.
4308         (fold_build_call_array): Moved to fold-const.h.
4309         (fold_build_call_array_initializer): Moved to fold-const.h.
4310         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
4311         (fold_build_call_array_loc): Moved to fold-const.h.
4312         (fold_build_cleanup_point_expr): Moved to fold-const.h.
4313         (fold_convert): Moved to fold-const.h.
4314         (fold_convert_loc): Moved to fold-const.h.
4315         (fold_convertible_p): Moved to fold-const.h.
4316         (fold_defer_overflow_warnings): Moved to fold-const.h.
4317         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
4318         (fold_fma): Moved to fold-const.h.
4319         (fold_ignored_result): Moved to fold-const.h.
4320         (fold_indirect_ref): Moved to fold-const.h.
4321         (fold_indirect_ref_1): Moved to fold-const.h.
4322         (fold_indirect_ref_loc): Moved to fold-const.h.
4323         (fold_read_from_constant_string): Moved to fold-const.h.
4324         (fold_real_zero_addition_p): Moved to fold-const.h.
4325         (fold_single_bit_test): Moved to fold-const.h.
4326         (fold_strip_sign_ops): Moved to fold-const.h.
4327         (fold_ternary): Moved to fold-const.h.
4328         (fold_ternary_loc): Moved to fold-const.h.
4329         (fold_unary): Moved to tree-data-ref.h.
4330         (fold_unary_ignore_overflow): Moved to fold-const.h.
4331         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
4332         (fold_unary_loc): Moved to fold-const.h.
4333         (fold_unary_to_constant): Moved to fold-const.h.
4334         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
4335         (fold_undefer_overflow_warnings): Moved to fold-const.h.
4336         (folding_initializer): Moved to fold-const.h.
4337         (free_temp_slots): Moved to function.h.
4338         (generate_setjmp_warnings): Moved to function.h.
4339         (get_attribute_name): Moved to attribs.h.
4340         (get_identifier): Moved to stringpool.h.
4341         (get_identifier_with_length): Moved to stringpool.h.
4342         (get_inner_reference): Moved to tree.h.
4343         (gimple_alloca_call_p): Moved to calls.h.
4344         (gimplify_parameters): Moved to function.h.
4345         (highest_pow2_factor): Moved to expr.h.
4346         (indent_to): Moved to print-tree.h.
4347         (init_attributes): Moved to attribs.h.
4348         (init_dummy_function_start): Moved to function.h.
4349         (init_function_start): Moved to function.h.
4350         (init_inline_once): Moved to tree-inline.h.
4351         (init_object_sizes): Moved to tree-object-size.h.
4352         (init_temp_slots): Moved to function.h.
4353         (init_tree_optimization_optabs): Moved to optabs.h.
4354         (initialize_sizetypes): Moved to stor-layout.h.
4355         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
4356         (initializer_constant_valid_p): Moved to varasm.h.
4357         (int_const_binop): Moved to fold-const.h.
4358         (internal_reference_types): Moved to stor-layout.h.
4359         (invert_tree_comparison): Moved to fold-const.h.
4360         (invert_truthvalue): Moved to fold-const.h.
4361         (invert_truthvalue_loc): Moved to fold-const.h.
4362         (is_tm_ending_fndecl): Moved to trans-mem.h.
4363         (is_tm_may_cancel_outer): Moved to trans-mem.h.
4364         (is_tm_pure): Moved to trans-mem.h.
4365         (is_tm_safe): Moved to trans-mem.h.
4366         (layout_decl): Moved to stor-layout.h.
4367         (layout_type): Moved to stor-layout.h.
4368         (lookup_attribute_spec): Moved to attribs.h.
4369         (make_accum_type): Moved to stor-layout.h.
4370         (make_decl_one_only): Moved to varasm.h.
4371         (make_decl_rtl): Moved to tree.h.
4372         (make_decl_rtl_for_debug): Moved to varasm.h.
4373         (make_fract_type): Moved to stor-layout.h.
4374         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
4375         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
4376         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
4377         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
4378         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
4379         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
4380         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
4381         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
4382         (make_range): Moved to fold-const.h.
4383         (make_range_step): Moved to fold-const.h.
4384         (make_sat_signed_accum_type): Moved to stor-layout.h.
4385         (make_sat_signed_fract_type): Moved to stor-layout.h.
4386         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
4387         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
4388         (make_signed_accum_type): Moved to stor-layout.h.
4389         (make_signed_fract_type): Moved to stor-layout.h.
4390         (make_signed_type): Moved to stor-layout.h.
4391         (make_unsigned_accum_type): Moved to stor-layout.h.
4392         (make_unsigned_fract_type): Moved to stor-layout.h.
4393         (make_unsigned_type): Moved to stor-layout.h.
4394         (mark_decl_referenced): Moved to varasm.h.
4395         (mark_referenced): Moved to varasm.h.
4396         (may_negate_without_overflow_p): Moved to fold-const.h.
4397         (maybe_get_identifier): Moved to stringpool.h.
4398         (merge_ranges): Moved to fold-const.h.
4399         (merge_weak): Moved to varasm.h.
4400         (mode_for_size_tree): Moved to stor-layout.h.
4401         (multiple_of_p): Moved to fold-const.h.
4402         (must_pass_in_stack_var_size): Moved to calls.h.
4403         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
4404         (native_encode_expr): Moved to fold-const.h.
4405         (native_interpret_expr): Moved to fold-const.h.
4406         (non_lvalue): Moved to fold-const.h.
4407         (non_lvalue_loc): Moved to fold-const.h.
4408         (normalize_offset): Moved to stor-layout.h.
4409         (normalize_rli): Moved to stor-layout.h.
4410         (notice_global_symbol): Moved to varasm.h.
4411         (omit_one_operand): Moved to fold-const.h.
4412         (omit_one_operand_loc): Moved to fold-const.h.
4413         (omit_two_operands): Moved to fold-const.h.
4414         (omit_two_operands_loc): Moved to fold-const.h.
4415         (operand_equal_p): Moved to tree-data-ref.h.
4416         (parse_input_constraint): Moved to stmt.h.
4417         (parse_output_constraint): Moved to stmt.h.
4418         (place_field): Moved to stor-layout.h.
4419         (pop_function_context): Moved to function.h.
4420         (pop_temp_slots): Moved to function.h.
4421         (pos_from_bit): Moved to stor-layout.h.
4422         (preserve_temp_slots): Moved to function.h.
4423         (print_node): Moved to print-tree.h.
4424         (print_node_brief): Moved to print-tree.h.
4425         (print_rtl): Moved to rtl.h.
4426         (process_pending_assemble_externals): Moved to varasm.h.
4427         (ptr_difference_const): Moved to fold-const.h.
4428         (push_function_context): Moved to function.h.
4429         (push_struct_function): Moved to function.h.
4430         (push_temp_slots): Moved to function.h.
4431         (record_tm_replacement): Moved to trans-mem.h.
4432         (relayout_decl): Moved to stor-layout.h.
4433         (resolve_asm_operand_names): Moved to stmt.h.
4434         (resolve_unique_section): Moved to varasm.h.
4435         (rli_size_so_far): Moved to stor-layout.h.
4436         (rli_size_unit_so_far): Moved to stor-layout.h.
4437         (round_down): Moved to fold-const.h.
4438         (round_down_loc): Moved to fold-const.h.
4439         (round_up): Moved to fold-const.h.
4440         (round_up_loc): Moved to fold-const.h.
4441         (set_decl_incoming_rtl): Moved to emit-rtl.h.
4442         (set_decl_rtl): Moved to tree.h.
4443         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
4444         (set_user_assembler_name): Moved to varasm.h.
4445         (setjmp_call_p): Moved to calls.h.
4446         (size_binop): Moved to fold-const.h.
4447         (size_binop_loc): Moved to fold-const.h.
4448         (size_diffop): Moved to fold-const.h.
4449         (size_diffop_loc): Moved to fold-const.h.
4450         (size_int_kind): Moved to fold-const.h.
4451         (stack_protect_epilogue): Moved to function.h.
4452         (start_record_layout): Moved to stor-layout.h.
4453         (supports_one_only): Moved to varasm.h.
4454         (swap_tree_comparison): Moved to fold-const.h.
4455         (tm_malloc_replacement): Moved to trans-mem.h.
4456         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
4457         (tree build_invariant_address): Moved to fold-const.h.
4458         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
4459         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
4460         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
4461         (tree_expr_nonnegative_p): Moved to fold-const.h.
4462         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
4463         (tree_output_constant_def): Moved to varasm.h.
4464         (tree_overlaps_hard_reg_set): Moved to stmt.h.
4465         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
4466         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
4467         (tree_swap_operands_p): Moved to fold-const.h.
4468         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
4469         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
4470         (update_alignment_for_field): Moved to stor-layout.h.
4471         (use_register_for_decl): Moved to function.h.
4472         (variable_size): Moved to rtl.h.
4473         (vector_type_mode): Moved to stor-layout.h.
4474         * cgraph.h: Corresponding changes.
4475         * emit-rtl.h: Corresponding changes.
4476         * expr.h: Corresponding changes.
4477         * function.h: Corresponding changes.
4478         * optabs.h: Corresponding changes.
4479         * trans-mem.h: Corresponding changes.
4480         Protect against multiple inclusion.
4481         * tree-inline.h: Corresponding changes.
4482         * tree-iterator.h: Corresponding changes.
4483         * tree-dfa.h: Include expr.h.
4484         * tree-ssanames.h: Include stringpool.h.
4485         * attribs.h: New file.
4486         * calls.h: New file.
4487         * fold-const.h: New file.
4488         * gcc-symtab.h: New file.
4489         * print-rtl.h: New file.
4490         * print-tree.h: New file.
4491         * stmt.h: New file.
4492         * stor-layout.h: New file.
4493         * strinpool.h: New file.
4494         * tree-nested.h: New file
4495         * tree-object-size.h: New file.
4496         * varasm.h: New file.
4497
4498 2013-11-14  Diego Novillo  <dnovillo@google.com>
4499
4500         * alias.c: Include varasm.h.
4501         Include expr.h.
4502         * asan.c: Include calls.h.
4503         Include stor-layout.h.
4504         Include varasm.h.
4505         * attribs.c: Include stringpool.h.
4506         Include attribs.h.
4507         Include stor-layout.h.
4508         * builtins.c: Include stringpool.h.
4509         Include stor-layout.h.
4510         Include calls.h.
4511         Include varasm.h.
4512         Include tree-object-size.h.
4513         * calls.c: Include stor-layout.h.
4514         Include varasm.h.
4515         Include stringpool.h.
4516         Include attribs.h.
4517         * cfgexpand.c: Include stringpool.h.
4518         Include varasm.h.
4519         Include stor-layout.h.
4520         Include stmt.h.
4521         Include print-tree.h.
4522         * cgraph.c: Include varasm.h.
4523         Include calls.h.
4524         Include print-tree.h.
4525         * cgraphclones.c: Include stringpool.h.
4526         Include function.h.
4527         Include emit-rtl.h.
4528         Move inclusion of rtl.h earlier in the file.
4529         * cgraphunit.c: Include varasm.h.
4530         Include stor-layout.h.
4531         Include stringpool.h.
4532         * cilk-common.c: Include stringpool.h.
4533         Include stor-layout.h.
4534         * combine.c: Include stor-layout.h.
4535         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
4536         Include stringpool.h.
4537         Include calls.h.
4538         * config/aarch64/aarch64.c: Include stringpool.h.
4539         Include stor-layout.h.
4540         Include calls.h.
4541         Include varasm.h.
4542         * config/alpha/alpha.c: Include stor-layout.h.
4543         Include calls.h.
4544         Include varasm.h.
4545         * config/arc/arc.c: Include varasm.h.
4546         Include stor-layout.h.
4547         Include stringpool.h.
4548         Include calls.h.
4549         * config/arm/arm.c: Include stringpool.h.
4550         Include stor-layout.h.
4551         Include calls.h.
4552         Include varasm.h.
4553         * config/avr/avr-c.c: Include stor-layout.h.
4554         * config/avr/avr-log.c: Include print-tree.h.
4555         * config/avr/avr.c: Include print-tree.h.
4556         Include calls.h.
4557         Include stor-layout.h.
4558         Include stringpool.h.
4559         * config/bfin/bfin.c: Include varasm.h.
4560         Include calls.h.
4561         * config/c6x/c6x.c: Include stor-layout.h.
4562         Include varasm.h.
4563         Include calls.h.
4564         Include stringpool.h.
4565         * config/cr16/cr16.c: Include stor-layout.h.
4566         Include calls.h.
4567         * config/cris/cris.c: Include varasm.h.
4568         Include stor-layout.h.
4569         Include calls.h.
4570         Include stmt.h.
4571         * config/darwin.c: Include stringpool.h.
4572         Include varasm.h.
4573         Include stor-layout.h.
4574         * config/epiphany/epiphany.c: Include stor-layout.h.
4575         Include varasm.h.
4576         Include calls.h.
4577         Include stringpool.h.
4578         * config/fr30/fr30.c: Include stor-layout.h.
4579         Include varasm.h.
4580         * config/frv/frv.c: Include varasm.h.
4581         Include stor-layout.h.
4582         Include stringpool.h.
4583         * config/h8300/h8300.c: Include stor-layout.h.
4584         Include varasm.h.
4585         Include calls.h.
4586         Include stringpool.h.
4587         * config/i386/i386.c: Include stringpool.h.
4588         Include attribs.h.
4589         Include calls.h.
4590         Include stor-layout.h.
4591         Include varasm.h.
4592         * config/i386/winnt-cxx.c: Include stringpool.h.
4593         Include attribs.h.
4594         * config/i386/winnt.c: Include stringpool.h.
4595         Include varasm.h.
4596         * config/ia64/ia64-c.c: Include stringpool.h.
4597         * config/ia64/ia64.c: Include stringpool.h.
4598         Include stor-layout.h.
4599         Include calls.h.
4600         Include varasm.h.
4601         * config/iq2000/iq2000.c: Include stor-layout.h.
4602         Include calls.h.
4603         Include varasm.h.
4604         * config/lm32/lm32.c: Include calls.h.
4605         * config/m32c/m32c.c: Include stor-layout.h.
4606         Include varasm.h.
4607         Include calls.h.
4608         * config/m32r/m32r.c: Include stor-layout.h.
4609         Include varasm.h.
4610         Include stringpool.h.
4611         Include calls.h.
4612         * config/m68k/m68k.c: Include calls.h.
4613         Include stor-layout.h.
4614         Include varasm.h.
4615         * config/mcore/mcore.c: Include stor-layout.h.
4616         Include varasm.h.
4617         Include stringpool.h.
4618         Include calls.h.
4619         * config/mep/mep.c: Include varasm.h.
4620         Include calls.h.
4621         Include stringpool.h.
4622         Include stor-layout.h.
4623         * config/microblaze/microblaze.c: Include varasm.h.
4624         Include stor-layout.h.
4625         Include calls.h.
4626         * config/mips/mips.c: Include varasm.h.
4627         Include stringpool.h.
4628         Include stor-layout.h.
4629         Include calls.h.
4630         * config/mmix/mmix.c: Include varasm.h.
4631         Include stor-layout.h.
4632         Include calls.h.
4633         * config/mn10300/mn10300.c: Include stor-layout.h.
4634         Include varasm.h.
4635         Include calls.h.
4636         * config/moxie/moxie.c: Include stor-layout.h.
4637         Include varasm.h.
4638         Include calls.h.
4639         * config/msp430/msp430.c: Include stor-layout.h.
4640         Include calls.h.
4641         * config/nds32/nds32.c: Include stor-layout.h.
4642         Include varasm.h.
4643         Include calls.h.
4644         * config/pa/pa.c: Include stor-layout.h.
4645         Include stringpool.h.
4646         Include varasm.h.
4647         Include calls.h.
4648         * config/pdp11/pdp11.c: Include stor-layout.h.
4649         Include varasm.h.
4650         Include calls.h.
4651         * config/picochip/picochip.c: Include calls.h.
4652         Include stor-layout.h.
4653         Include stringpool.h.
4654         Include varasm.h.
4655         * config/rl78/rl78.c: Include varasm.h.
4656         Include stor-layout.h.
4657         Include calls.h.
4658         * config/rs6000/rs6000-c.c: Include stor-layout.h.
4659         Include stringpool.h.
4660         * config/rs6000/rs6000.c: Include stringpool.h.
4661         Include stor-layout.h.
4662         Include calls.h.
4663         Include print-tree.h.
4664         Include varasm.h.
4665         * config/rx/rx.c: Include varasm.h.
4666         Include stor-layout.h.
4667         Include calls.h.
4668         * config/s390/s390.c: Include print-tree.h.
4669         Include stringpool.h.
4670         Include stor-layout.h.
4671         Include varasm.h.
4672         Include calls.h.
4673         * config/score/score.c: Include stringpool.h.
4674         Include calls.h.
4675         Include varasm.h.
4676         Include stor-layout.h.
4677         * config/sh/sh-c.c: Include stringpool.h.
4678         Include attribs.h.h.
4679         * config/sh/sh.c: Include stringpool.h.
4680         Include stor-layout.h.
4681         Include calls.h.
4682         Include varasm.h.
4683         * config/sol2-c.c: Include stringpool.h.
4684         Include attribs.h.
4685         * config/sol2-cxx.c: Include stringpool.h.
4686         * config/sol2.c: Include stringpool.h.
4687         Include varasm.h.
4688         * config/sparc/sparc.c: Include stringpool.h.
4689         Include stor-layout.h.
4690         Include calls.h.
4691         Include varasm.h.
4692         * config/spu/spu-c.c: Include stringpool.h.
4693         * config/spu/spu.c: Include stringpool.h.
4694         Include stor-layout.h.
4695         Include calls.h.
4696         Include varasm.h.
4697         * config/stormy16/stormy16.c: Include stringpool.h.
4698         Include stor-layout.h.
4699         Include varasm.h.
4700         Include calls.h.
4701         * config/tilegx/tilegx.c: Include stringpool.h.
4702         Include stor-layout.h.
4703         Include varasm.h.
4704         Include calls.h.
4705         * config/tilepro/tilepro.c: Include stringpool.h.
4706         Include stor-layout.h.
4707         Include varasm.h.
4708         Include calls.h.
4709         * config/v850/v850-c.c: Include stringpool.h.
4710         Include attribs.h.
4711         * config/v850/v850.c: Include stringpool.h.
4712         Include stor-layout.h.
4713         Include varasm.h.
4714         Include calls.h.
4715         * config/vax/vax.c: Include calls.h.
4716         Include varasm.h.
4717         * config/vms/vms.c: Include stringpool.h.
4718         * config/vxworks.c: Include stringpool.h.
4719         * config/xtensa/xtensa.c: Include stringpool.h.
4720         Include stor-layout.h.
4721         Include calls.h.
4722         Include varasm.h.
4723         * convert.c: Include stor-layout.h.
4724         * coverage.c: Include stringpool.h.
4725         Include stor-layout.h.
4726         * dbxout.c: Include varasm.h.
4727         Include stor-layout.h.
4728         * dojump.c: Include stor-layout.h.
4729         * dse.c: Include stor-layout.h.
4730         * dwarf2asm.c: Include stringpool.h.
4731         Include varasm.h.
4732         * dwarf2cfi.c: Include stor-layout.h.
4733         * dwarf2out.c: Include rtl.h.
4734         Include stringpool.h.
4735         Include stor-layout.h.
4736         Include varasm.h.
4737         Include function.h.
4738         Include emit-rtl.h.
4739         Move inclusion of rtl.h earlier in the file.
4740         * emit-rtl.c: Include varasm.h.
4741         * except.c: Include stringpool.h.
4742         Include stor-layout.h.
4743         * explow.c: Include stor-layout.h.
4744         * expmed.c: Include stor-layout.h.
4745         * expr.c: Include stringpool.h.
4746         Include stor-layout.h.
4747         Include attribs.h.
4748         Include varasm.h.
4749         * final.c: Include varasm.h.
4750         * fold-const.c: Include stor-layout.h.
4751         Include calls.h.
4752         Include tree-iterator.h.
4753         * function.c: Include stor-layout.h.
4754         Include varasm.h.
4755         Include stringpool.h.
4756         * genattrtab.c (write_header): Emit includes for varasm.h,
4757         stor-layout.h and calls.h.
4758         * genautomata.c (main): Likewise.
4759         * genemit.c: Likewise.
4760         * genopinit.c: Likewise.
4761         * genoutput.c (output_prologue): Likewise.
4762         * genpeep.c: Likewise.
4763         * genpreds.c (write_insn_preds_c): Likewise.
4764         * gengtype.c (open_base_files): Add stringpool.h.
4765         * gimple-expr.c: Include stringpool.h.
4766         Include stor-layout.h.
4767         * gimple-fold.c: Include stringpool.h.
4768         Include expr.h.
4769         Include stmt.h.
4770         Include stor-layout.h.
4771         * gimple-low.c: Include tree-nested.h.
4772         Include calls.h.
4773         * gimple-pretty-print.c: Include stringpool.h.
4774         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
4775         Include expr.h.
4776         * gimple-walk.c: Include stmt.h.
4777         * gimple.c: Include calls.h.
4778         Include stmt.h.
4779         Include stor-layout.h.
4780         * gimplify.c: Include stringpool.h.
4781         Include calls.h.
4782         Include varasm.h.
4783         Include stor-layout.h.
4784         Include stmt.h.
4785         Include print-tree.h.
4786         Include expr.h.
4787         * gimplify-me.c: Include stmt.h
4788         Include stor-layout.h
4789         * internal-fn.c: Include stor-layout.h.
4790         * ipa-devirt.c: Include print-tree.h.
4791         Include calls.h.
4792         * ipa-inline-analysis.c: Include stor-layout.h.
4793         Include stringpool.h.
4794         Include print-tree.h.
4795         * ipa-inline.c: Include trans-mem.h.
4796         Include calls.h.
4797         * ipa-prop.c: Include expr.h.
4798         Include stor-layout.h.
4799         Include print-tree.h.
4800         * ipa-pure-const.c: Include print-tree.h.
4801         Include calls.h.
4802         * ipa-reference.c: Include calls.h.
4803         * ipa-split.c: Include stringpool.h.
4804         Include expr.h.
4805         Include calls.h.
4806         * ipa.c: Include calls.h.
4807         Include stringpool.h.
4808         * langhooks.c: Include stringpool.h.
4809         Include attribs.h.
4810         * lto-cgraph.c: Include stringpool.h.
4811         * lto-streamer-in.c: Include stringpool.h.
4812         * lto-streamer-out.c: Include stor-layout.h.
4813         Include stringpool.h.
4814         * omp-low.c: Include stringpool.h.
4815         Include stor-layout.h.
4816         Include expr.h.
4817         * optabs.c: Include stor-layout.h.
4818         Include stringpool.h.
4819         Include varasm.h.
4820         * passes.c: Include varasm.h.
4821         * predict.c: Include calls.h.
4822         * print-rtl.c: Include print-tree.h.
4823         * print-tree.c: Include varasm.h.
4824         Include print-rtl.h.
4825         Include stor-layout.h.
4826         * realmpfr.c: Include stor-layout.h.
4827         * reg-stack.c: Include varasm.h.
4828         * sdbout.c: Include varasm.h.
4829         Include stor-layout.h.
4830         * simplify-rtx.c: Include varasm.h.
4831         * stmt.c: Include varasm.h.
4832         Include stor-layout.h.
4833         * stor-layout.c: Include stor-layout.h.
4834         Include stringpool.h.
4835         Include varasm.h.
4836         Include print-tree.h.
4837         * symtab.c: Include rtl.h.
4838         Include print-tree.h.
4839         Include varasm.h.
4840         Include function.h.
4841         Include emit-rtl.h.
4842         * targhooks.c: Include stor-layout.h.
4843         Include varasm.h.
4844         * toplev.c: Include varasm.h.
4845         Include tree-inline.h.
4846         * trans-mem.c: Include calls.h.
4847         Include function.h.
4848         Include rtl.h.
4849         Include emit-rtl.h.
4850         * tree-affine.c: Include expr.h.
4851         * tree-browser.c: Include print-tree.h.
4852         * tree-call-cdce.c: Include stor-layout.h.
4853         * tree-cfg.c: Include trans-mem.h.
4854         Include stor-layout.h.
4855         Include print-tree.h.
4856         * tree-complex.c: Include stor-layout.h.
4857         * tree-data-ref.c: Include expr.h.
4858         * tree-dfa.c: Include stor-layout.h.
4859         * tree-eh.c: Include expr.h.
4860         Include calls.h.
4861         * tree-emutls.c: Include stor-layout.h.
4862         Include varasm.h.
4863         * tree-if-conv.c: Include stor-layout.h.
4864         * tree-inline.c: Include stor-layout.h.
4865         Include calls.h.
4866         * tree-loop-distribution.c: Include stor-layout.h.
4867         * tree-nested.c: Include stringpool.h.
4868         Include stor-layout.h.
4869         * tree-object-size.c: Include tree-object-size.h.
4870         * tree-outof-ssa.c: Include stor-layout.h.
4871         * tree-parloops.c: Include stor-layout.h.
4872         Include tree-nested.h.
4873         * tree-pretty-print.c: Include stor-layout.h.
4874         Include expr.h.
4875         * tree-profile.c: Include varasm.h.
4876         Include tree-nested.h.
4877         * tree-scalar-evolution.c: Include expr.h.
4878         * tree-sra.c: Include stor-layout.h.
4879         * tree-ssa-address.c: Include stor-layout.h.
4880         * tree-ssa-ccp.c: Include stor-layout.h.
4881         * tree-ssa-dce.c: Include calls.h.
4882         * tree-ssa-dom.c: Include stor-layout.h.
4883         * tree-ssa-forwprop.c: Include stor-layout.h.
4884         * tree-ssa-ifcombine.c: Include stor-layout.h.
4885         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
4886         * tree-ssa-loop-niter.c: Include calls.h.
4887         Include expr.h.
4888         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
4889         * tree-ssa-math-opts.c: Include stor-layout.h.
4890         * tree-ssa-operands.c: Include stmt.h.
4891         Include print-tree.h.
4892         * tree-ssa-phiopt.c: Include stor-layout.h.
4893         * tree-ssa-reassoc.c: Include stor-layout.h.
4894         * tree-ssa-sccvn.c: Include stor-layout.h.
4895         * tree-ssa-sink.c: Include stor-layout.h.
4896         * tree-ssa-strlen.c: Include stor-layout.h.
4897         * tree-ssa-structalias.c: Include stor-layout.h.
4898         Include stmt.h.
4899         * tree-ssa-tail-merge.c: Include stor-layout.h.
4900         Include trans-mem.h.
4901         * tree-ssa-uncprop.c: Include stor-layout.h.
4902         * tree-ssa.c: Include stor-layout.h.
4903         * tree-ssanames.c: Include stor-layout.h.
4904         * tree-streamer-in.c: Include stringpool.h.
4905         * tree-streamer-out.c: Include stor-layout.h.
4906         * tree-switch-conversion.c: Include varasm.h.
4907         Include stor-layout.h.
4908         * tree-tailcall.c: Include stor-layout.h.
4909         * tree-vect-data-refs.c: Include stor-layout.h.
4910         * tree-vect-generic.c: Include stor-layout.h.
4911         * tree-vect-loop.c: Include stor-layout.h.
4912         * tree-vect-patterns.c: Include stor-layout.h.
4913         * tree-vect-slp.c: Include stor-layout.h.
4914         * tree-vect-stmts.c: Include stor-layout.h.
4915         * tree-vectorizer.c: Include stor-layout.h.
4916         * tree-vrp.c: Include stor-layout.h.
4917         Include calls.h.
4918         * tree.c: Include stor-layout.h.
4919         Include calls.h.
4920         Include attribs.h.
4921         Include varasm.h.
4922         * tsan.c: Include expr.h.
4923         * ubsan.c: Include stor-layout.h.
4924         Include stringpool.h.
4925         * value-prof.c: Include tree-nested.h.
4926         Include calls.h.
4927         * var-tracking.c: Include varasm.h.
4928         Include stor-layout.h.
4929         * varasm.c: Include stor-layout.h.
4930         Include stringpool.h.
4931         Include gcc-symtab.h.
4932         Include varasm.h.
4933         * varpool.c: Include varasm.h.
4934         * vmsdbgout.c: Include varasm.h.
4935         * xcoffout.c: Include varasm.h.
4936
4937 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
4938
4939         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
4940         use (.&-4) idiom.
4941
4942 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4943
4944         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
4945
4946 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4947             Alan Modra  <amodra@gmail.com>
4948
4949         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
4950         (RS6000_SAVE_TOC): Remove.
4951         (RS6000_TOC_SAVE_SLOT): New macro.
4952         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
4953         (rs6000_parm_start): Use it.
4954         (rs6000_function_arg_advance_1): Likewise.
4955         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
4956         (rs6000_emit_epilogue): Likewise.
4957         (rs6000_call_aix): Likewise.
4958         (rs6000_output_function_prologue): Do not save/restore r11
4959         around calling _mcount for ABI_ELFv2.
4960
4961 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4962             Alan Modra  <amodra@gmail.com>
4963
4964         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
4965         Add prototype.
4966         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
4967         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
4968         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
4969         (rs6000_function_parms_need_stack): Likewise.
4970         (rs6000_reg_parm_stack_space): Likewise.
4971         (rs6000_function_arg): Do not replace BLKmode by Pmode when
4972         returning a register argument.
4973
4974 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4975             Michael Gschwind  <mkg@us.ibm.com>
4976
4977         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
4978         (ALTIVEC_ARG_MAX_RETURN): Likewise.
4979         (FUNCTION_VALUE_REGNO_P): Use them.
4980         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
4981         (rs6000_return_in_msb): New function.
4982         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
4983         Handle aggregates of up to 16 bytes for ELFv2.
4984         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
4985
4986 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4987             Michael Gschwind  <mkg@us.ibm.com>
4988
4989         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
4990         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
4991         (rs6000_discover_homogeneous_aggregate): Likewise.
4992         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
4993         (rs6000_function_arg_advance_1): Likewise.
4994         (rs6000_function_arg): Likewise.
4995         (rs6000_arg_partial_bytes): Likewise.
4996         (rs6000_psave_function_arg): Handle BLKmode arguments.
4997
4998 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4999             Michael Gschwind  <mkg@us.ibm.com>
5000
5001         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
5002         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
5003         (rs6000_discover_homogeneous_aggregate): Likewise.
5004         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
5005         (rs6000_function_arg_advance_1): Likewise.
5006         (rs6000_function_arg): Likewise.
5007         (rs6000_arg_partial_bytes): Likewise.
5008         (rs6000_psave_function_arg): Handle BLKmode arguments.
5009
5010 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5011
5012         * config/rs6000/rs6000.c (machine_function): New member
5013         r2_setup_needed.
5014         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
5015         (rs6000_output_mi_thunk): Set r2_setup_needed.
5016         (rs6000_output_function_prologue): Output global entry point
5017         prologue and local entry point marker if needed for ABI_ELFv2.
5018         Output -mprofile-kernel code here.
5019         (output_function_profiler): Do not output -mprofile-kernel
5020         code here; moved to rs6000_output_function_prologue.
5021         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
5022
5023         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
5024         (rs6000_output_function_entry): Likewise.
5025         (rs6000_assemble_integer): Likewise.
5026         (rs6000_elf_encode_section_info): Likewise.
5027         (rs6000_elf_declare_function_name): Do not create dot symbols
5028         or .opd section for ABI_ELFv2.
5029
5030         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
5031         (rs6000_trampoline_init): Likewise.
5032         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
5033
5034         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
5035         for function descriptors in ABI_ELFv2.
5036
5037         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
5038         on ABI_AIX only, not ABI_ELFv2.
5039         ("*call_value_indirect_aix<mode>"): Likewise.
5040         ("*call_indirect_elfv2<mode>"): New pattern.
5041         ("*call_value_indirect_elfv2<mode>"): Likewise.
5042
5043         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
5044         check for function descriptors in ABI_ELFv2.
5045         ("current_file_function_operand"): Likewise.
5046
5047         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
5048         (toc): Undefine.
5049         (FUNC_NAME): Define ELFv2 variant.
5050         (JUMP_TARGET): Likewise.
5051         (FUNC_START): Likewise.
5052         (HIDDEN_FUNC): Likewise.
5053         (FUNC_END): Likeiwse.
5054
5055 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5056
5057         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
5058         and --with-abi=elfv2.
5059         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
5060         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
5061         (mabi=elfv2): Likewise.
5062         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
5063         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
5064         if !RS6000_BI_ARCH.
5065         (ELFv2_ABI_CHECK): New macro.
5066         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
5067         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
5068         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
5069         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5070         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
5071
5072         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
5073         (debug_stack_info): Likewise.
5074         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
5075         (rs6000_legitimize_tls_address): Likewise.
5076         (rs6000_conditional_register_usage): Likewise.
5077         (rs6000_emit_move): Likewise.
5078         (init_cumulative_args): Likewise.
5079         (rs6000_function_arg_advance_1): Likewise.
5080         (rs6000_function_arg): Likewise.
5081         (rs6000_arg_partial_bytes): Likewise.
5082         (rs6000_output_function_entry): Likewise.
5083         (rs6000_assemble_integer): Likewise.
5084         (rs6000_savres_strategy): Likewise.
5085         (rs6000_stack_info): Likewise.
5086         (rs6000_function_ok_for_sibcall): Likewise.
5087         (rs6000_emit_load_toc_table): Likewise.
5088         (rs6000_savres_routine_name): Likewise.
5089         (ptr_regno_for_savres): Likewise.
5090         (rs6000_emit_prologue): Likewise.
5091         (rs6000_emit_epilogue): Likewise.
5092         (rs6000_output_function_epilogue): Likewise.
5093         (output_profile_hook): Likewise.
5094         (output_function_profiler): Likewise.
5095         (rs6000_trampoline_size): Likewise.
5096         (rs6000_trampoline_init): Likewise.
5097         (rs6000_elf_output_toc_section_asm_op): Likewise.
5098         (rs6000_elf_encode_section_info): Likewise.
5099         (rs6000_elf_reloc_rw_mask): Likewise.
5100         (rs6000_elf_declare_function_name): Likewise.
5101         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
5102         except that rs6000_compat_align_parm is always assumed false.
5103         (rs6000_gimplify_va_arg): Likewise.
5104         (rs6000_call_aix): Update comment.
5105         (rs6000_sibcall_aix): Likewise.
5106         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
5107         Treat ABI_ELFv2 the same as ABI_AIX.
5108         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5109         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
5110         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5111         ("load_toc_aix_si"): Likewise.
5112         ("load_toc_aix_di"): Likewise.
5113         ("call"): Likewise.
5114         ("call_value"): Likewise.
5115         ("*call_local_aix<mode>"): Likewise.
5116         ("*call_value_local_aix<mode>"): Likewise.
5117         ("*call_nonlocal_aix<mode>"): Likewise.
5118         ("*call_value_nonlocal_aix<mode>"): Likewise.
5119         ("*call_indirect_aix<mode>"): Likewise.
5120         ("*call_value_indirect_aix<mode>"): Likewise.
5121         ("sibcall"): Likewise.
5122         ("sibcall_value"): Likewise.
5123         ("*sibcall_aix<mode>"): Likewise.
5124         ("*sibcall_value_aix<mode>"): Likewise.
5125         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
5126         ("current_file_function_operand"): Likewise.
5127
5128 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5129
5130         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
5131         by making use of the fact that for vector / floating point arguments
5132         passed both in VRs/FPRs and in the fixed parameter area, the partial
5133         bytes mechanism is in fact not used.
5134
5135 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5136
5137         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
5138         (rs6000_finish_function_arg): Likewise.
5139         (rs6000_function_arg): Use rs6000_psave_function_arg and
5140         rs6000_finish_function_arg to handle both vector and floating
5141         point arguments that are also passed in GPRs / the stack.
5142
5143 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5144
5145         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
5146         (USE_ALTIVEC_FOR_ARG_P): Likewise.
5147         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
5148         (rs6000_function_arg_advance_1):Likewise.
5149         (rs6000_darwin64_record_arg_recurse): Likewise.
5150         (rs6000_function_arg): Likewise.
5151         (rs6000_arg_partial_bytes): Likewise.
5152
5153 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5154
5155         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
5156         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
5157         (rs6000_savres_strategy): Likewise.
5158         (rs6000_return_addr): Likewise.
5159         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
5160         testing for ABI_V4 (since ABI_DARWIN is impossible here).
5161         (rs6000_emit_prologue): Likewise.
5162         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
5163         (rs6000_elf_declare_function_name): Remove duplicated test.
5164         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
5165         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
5166         ("load_toc_v4_PIC_1_normal"): Likewise.
5167         ("load_toc_v4_PIC_1_476"): Likewise.
5168         ("load_toc_v4_PIC_1b"): Likewise.
5169         ("load_toc_v4_PIC_1b_normal"): Likewise.
5170         ("load_toc_v4_PIC_1b_476"): Likewise.
5171         ("load_toc_v4_PIC_2"): Likewise.
5172         ("load_toc_v4_PIC_3b"): Likewise.
5173         ("load_toc_v4_PIC_3c"): Likewise.
5174         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
5175         (RS6000_SAVE_AREA): Likewise.
5176         (FP_ARG_MAX_REG): Likewise.
5177         (RETURN_ADDRESS_OFFSET): Likewise.
5178         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
5179         of ABI_AIX.
5180         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5181         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5182
5183 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5184
5185         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
5186         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
5187         Create call insn directly instead of via various gen_... routines.
5188         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
5189         (rs6000_sibcall_aix): New function.
5190         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
5191         (TOC_SAVE_OFFSET_64BIT): Likewise.
5192         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
5193         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
5194         (AIX_FUNC_DESC_SC_32BIT): Likewise.
5195         (AIX_FUNC_DESC_SC_64BIT): Likewise.
5196         ("call" expander): Call rs6000_call_aix.
5197         ("call_value" expander): Likewise.
5198         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
5199         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5200         ("*call_indirect_aix<mode>"): ... by this insn pattern.
5201         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
5202         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5203         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
5204         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
5205         ("*call_nonlocal_aix<mode>"): ... this pattern.
5206         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
5207         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
5208         ("*call_local_aix<mode>"): New insn pattern.
5209         ("*call_value_local_aix<mode>"): Likewise.
5210         ("sibcall" expander): Call rs6000_sibcall_aix.
5211         ("sibcall_value" expander): Likewise.  Move earlier in file.
5212         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
5213         ("*sibcall_aix<mode>"): ... this pattern.
5214         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
5215         ("*sibcall_value_aix<mode>"): ... this pattern.
5216         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
5217         (rs6000_call_aix): Add prototype.
5218         (rs6000_sibcall_aix): Likewise.
5219
5220 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
5221
5222         PR sanitizer/59122
5223         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
5224         isn't confused by the artificial decl.
5225
5226 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5227
5228         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
5229         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
5230         Instead, add USEs of all modified call-saved CR fields to the
5231         insn storing the result to the stack slot, and provide an
5232         appropriate REG_FRAME_RELATED_EXPR for that insn.
5233         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
5234         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
5235
5236 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5237             Alan Modra  <amodra@gmail.com>
5238
5239         * function.c (assign_parms): Use all.reg_parm_stack_space instead
5240         of re-evaluating REG_PARM_STACK_SPACE target macro.
5241         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
5242         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
5243         (assign_parm_find_entry_rtl): Update call.
5244         * calls.c (initialize_argument_information): Update call.
5245         (emit_library_call_value_1): Likewise.
5246         * expr.h (locate_and_pad_parm): Update prototype.
5247
5248 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5249
5250         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
5251         arguments.
5252
5253 2013-11-14  DJ Delorie  <dj@redhat.com>
5254
5255         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
5256         to 16 bits.
5257
5258 2013-11-14  Jeff Law  <law@redhat.com>
5259
5260         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
5261         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
5262
5263 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5264
5265         * doc/invoke.texi: Update documentation for AArch64's -mcpu
5266         and -mtune options.
5267
5268 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5269
5270         * config/aarch64/aarch64-cores.def (example-1): Remove.
5271         (example-2): Likewise.
5272         * config/aarch64/aarch64-tune.md: Regenerate.
5273         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
5274         (generic_sched): Remove "large", "small".
5275         * config/aarch64/large.md: Delete.
5276         * config/aarch64/small.md: Delete.
5277
5278 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5279
5280         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
5281         * config/aarch64/aarch64-tune.md: Regenerate.
5282         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
5283         (generic_sched): "no" if we are tuning for cortexa15.
5284         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
5285         relative path.
5286
5287 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5288
5289         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
5290         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
5291         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
5292         (all_cores): Use cortexa53 when tuning for "generic".
5293         (aarch64_override_options): Fix comment.
5294         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
5295         * config/aarch64/aarch64-generic.md: Delete.
5296
5297 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5298
5299         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
5300
5301 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5302
5303         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
5304         (generic_rtx_cost_table): Remove.
5305         (aarch64_rtx_costs): Use fields from cpu_cost_table.
5306         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
5307         insn_extra_cost.
5308         (cpu_rtx_cost_table): Remove.
5309
5310 2013-11-14  Julian Brown  <julian@codesourcery.com>
5311             Joey Ye  <joey.ye@arm.com>
5312
5313         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
5314         (arm_v7m_tune): New.
5315         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
5316         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
5317         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
5318         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
5319
5320 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
5321
5322         PR target/57491
5323         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
5324         flag setting.
5325
5326 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
5327             Uros Bizjak  <ubizjak@gmail.com>
5328
5329         PR target/59101
5330         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
5331         operands[2] satisfies_constraint_Z that might have bit 31 set.
5332
5333 2013-11-13  Jeff Law  <law@redhat.com>
5334
5335         PR tree-optimization/59102
5336         * gimple-ssa-isolate-paths.c
5337         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
5338         gimple assignment before looking at gimple_assign_lhs.
5339
5340 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5341
5342         * ira.c: Add comment about threads at the top of file.
5343
5344 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5345
5346         * ira-color.c (coalesce_allocnos): Don't allocate and free
5347         sorted_copies.
5348
5349 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5350
5351         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
5352         equality for GIMPLE_ASSIGN.
5353
5354 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5355
5356         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
5357         function out of ...
5358         (gimple_equal_p): ... here.
5359
5360 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5361
5362         * trans-mem.c (is_tm_ending): New function.
5363         * gimple.h (is_tm_ending): Declare.
5364         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
5365         BUILT_IN_TM_COMMIT.
5366         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
5367
5368 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5369
5370         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
5371
5372 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
5373
5374         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
5375         (struct walk_stmt_info):  Relocate here from gimple.h.
5376         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
5377         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
5378         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5379         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5380         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5381         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5382         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
5383         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
5384         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5385         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5386         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5387         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5388         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
5389         (struct walk_stmt_info): Move to gimple-walk.h.
5390         (gimple_seq_set_location): Move to gimple.c
5391         * gimple-walk.c: New File.
5392         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
5393         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
5394         walk_stmt_load_store_ops): Relocate here from gimple.c.
5395         * gimple-iterator.c: Include gimple-iterator.h.
5396         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
5397         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
5398         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
5399         gimple-walk.c.
5400         (gimple_seq_set_location): Relocate from gimple.h.
5401         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
5402         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
5403         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
5404         * Makefile.in (OBJS): Add gimple-walk.o
5405         * asan.c: Update Include list as required for gimple-iterator.h and
5406         gimple-walk.h.
5407         * cfgexpand.c: Likewise.
5408         * cfgloop.c: Likewise.
5409         * cfgloopmanip.c: Likewise.
5410         * cgraph.c: Likewise.
5411         * cgraphbuild.c: Likewise.
5412         * cgraphunit.c: Likewise.
5413         * gimple-fold.c: Likewise.
5414         * gimple-low.c: Likewise.
5415         * gimple-pretty-print.c: Likewise.
5416         * gimple-ssa-isolate-paths.c: Likewise.
5417         * gimple-ssa-strength-reduction.c: Likewise.
5418         * gimple-streamer-in.c: Likewise.
5419         * gimple-streamer-out.c: Likewise.
5420         * gimplify.c: Likewise.
5421         * graphite-blocking.c: Likewise.
5422         * graphite-clast-to-gimple.c: Likewise.
5423         * graphite-dependences.c: Likewise.
5424         * graphite-interchange.c: Likewise.
5425         * graphite-optimize-isl.c: Likewise.
5426         * graphite-poly.c: Likewise.
5427         * graphite-scop-detection.c: Likewise.
5428         * graphite-sese-to-poly.c: Likewise.
5429         * graphite.c: Likewise.
5430         * ipa-inline-analysis.c: Likewise.
5431         * ipa-profile.c: Likewise.
5432         * ipa-prop.c: Likewise.
5433         * ipa-pure-const.c: Likewise.
5434         * ipa-split.c: Likewise.
5435         * lto-streamer-in.c: Likewise.
5436         * lto-streamer-out.c: Likewise.
5437         * omp-low.c: Likewise.
5438         * predict.c: Likewise.
5439         * profile.c: Likewise.
5440         * sese.c: Likewise.
5441         * tracer.c: Likewise.
5442         * trans-mem.c: Likewise.
5443         * tree-call-cdce.c: Likewise.
5444         * tree-cfg.c: Likewise.
5445         * tree-cfgcleanup.c: Likewise.
5446         * tree-complex.c: Likewise.
5447         * tree-data-ref.c: Likewise.
5448         * tree-dfa.c: Likewise.
5449         * tree-eh.c: Likewise.
5450         * tree-emutls.c: Likewise.
5451         * tree-if-conv.c: Likewise.
5452         * tree-inline.c: Likewise.
5453         * tree-into-ssa.c: Likewise.
5454         * tree-loop-distribution.c: Likewise.
5455         * tree-nested.c: Likewise.
5456         * tree-nrv.c: Likewise.
5457         * tree-object-size.c: Likewise.
5458         * tree-outof-ssa.c: Likewise.
5459         * tree-parloops.c: Likewise.
5460         * tree-predcom.c: Likewise.
5461         * tree-profile.c: Likewise.
5462         * tree-scalar-evolution.c: Likewise.
5463         * tree-sra.c: Likewise.
5464         * tree-ssa-ccp.c: Likewise.
5465         * tree-ssa-coalesce.c: Likewise.
5466         * tree-ssa-copy.c: Likewise.
5467         * tree-ssa-copyrename.c: Likewise.
5468         * tree-ssa-dce.c: Likewise.
5469         * tree-ssa-dom.c: Likewise.
5470         * tree-ssa-dse.c: Likewise.
5471         * tree-ssa-forwprop.c: Likewise.
5472         * tree-ssa-ifcombine.c: Likewise.
5473         * tree-ssa-live.c: Likewise.
5474         * tree-ssa-loop-ch.c: Likewise.
5475         * tree-ssa-loop-im.c: Likewise.
5476         * tree-ssa-loop-ivcanon.c: Likewise.
5477         * tree-ssa-loop-ivopts.c: Likewise.
5478         * tree-ssa-loop-manip.c: Likewise.
5479         * tree-ssa-loop-niter.c: Likewise.
5480         * tree-ssa-loop-prefetch.c: Likewise.
5481         * tree-ssa-loop.c: Likewise.
5482         * tree-ssa-math-opts.c: Likewise.
5483         * tree-ssa-phiopt.c: Likewise.
5484         * tree-ssa-phiprop.c: Likewise.
5485         * tree-ssa-pre.c: Likewise.
5486         * tree-ssa-propagate.c: Likewise.
5487         * tree-ssa-reassoc.c: Likewise.
5488         * tree-ssa-sink.c: Likewise.
5489         * tree-ssa-strlen.c: Likewise.
5490         * tree-ssa-structalias.c: Likewise.
5491         * tree-ssa-tail-merge.c: Likewise.
5492         * tree-ssa-ter.c: Likewise.
5493         * tree-ssa-threadedge.c: Likewise.
5494         * tree-ssa-threadupdate.c: Likewise.
5495         * tree-ssa-uncprop.c: Likewise.
5496         * tree-ssa-uninit.c: Likewise.
5497         * tree-ssa.c: Likewise.
5498         * tree-stdarg.c: Likewise.
5499         * tree-switch-conversion.c: Likewise.
5500         * tree-tailcall.c: Likewise.
5501         * tree-vect-data-refs.c: Likewise.
5502         * tree-vect-generic.c: Likewise.
5503         * tree-vect-loop-manip.c: Likewise.
5504         * tree-vect-loop.c: Likewise.
5505         * tree-vect-patterns.c: Likewise.
5506         * tree-vect-slp.c: Likewise.
5507         * tree-vect-stmts.c: Likewise.
5508         * tree-vectorizer.c: Likewise.
5509         * tree-vrp.c: Likewise.
5510         * tree.c: Likewise.
5511         * tsan.c: Likewise.
5512         * value-prof.c: Likewise.
5513         * vtable-verify.c: Likewise.
5514
5515 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
5516
5517         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
5518         fix.
5519
5520 2013-11-13  Jeff Law  <law@redhat.com>
5521
5522         * PR middle-end/59119
5523         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
5524         function, extracted from gimple_ssa_isolate_erroneous_paths.
5525         (find_explicit_erroneous_behaviour): Similarly.
5526         (insert_trap_and_remove_trailing_statements): Remove statements
5527         in reverse order.
5528
5529 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
5530
5531         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
5532         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
5533         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
5534         looking at INSN_CODE.
5535         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
5536         active_insn_p object, respect basic block boundaries.
5537         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
5538         follows immediately after the jump table data label.
5539         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
5540         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
5541         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
5542
5543 2013-11-13  Teresa Johnson  <tejohnson@google.com>
5544
5545         PR ipa/58862
5546         * predict.c (drop_profile): Error is currently too strict.
5547         (handle_missing_profiles): Pass call_count to drop_profile.
5548
5549 2013-11-13  Teresa Johnson  <tejohnson@google.com>
5550
5551         PR ipa/58862
5552         * ipa-inline.c (edge_badness): Fix overflow.
5553
5554 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5555
5556         PR rtl-optimization/59036
5557         * ira-color.c (struct allocno_color_data): Add new members
5558         first_thread_allocno, next_thread_allocno, thread_freq.
5559         (sorted_copies): New static var.
5560         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
5561         (allocno_thread_conflict_p, merge_threads)
5562         (form_threads_from_copies, form_threads_from_bucket)
5563         (form_threads_from_colorable_allocno, init_allocno_threads): New
5564         functions.
5565         (bucket_allocno_compare_func): Add comparison by thread frequency
5566         and threads.
5567         (add_allocno_to_ordered_bucket): Rename to
5568         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
5569         (push_only_colorable): Call form_threads_from_bucket.
5570         (color_pass): Call init_allocno_threads.  Use
5571         consideration_allocno_bitmap instead of coloring_allocno_bitmap
5572         for nuillify allocno color data.
5573         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
5574         (coalesce_allocnos): Use static sorted copies.
5575
5576 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
5577
5578         * passes.c (execute_todo): Don't call do_per_function if
5579         flags are zero.
5580         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
5581         execute_function_dump if dump_file is NULL.
5582
5583 2013-11-13  Martin Jambor  <mjambor@suse.cz>
5584
5585         * cgraph.c (cgraph_get_create_node): Do what
5586         cgraph_get_create_real_symbol_node used to do.
5587         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
5588         call cgraph_get_create_node.
5589         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
5590         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
5591         cgraph_get_create_node.  Assert we get a node.
5592
5593 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5594
5595         * config/aarch64/aarch64-simd.md (vec_extract): New.
5596
5597 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5598
5599         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
5600         the constraint.
5601
5602 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5603
5604         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
5605         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
5606         or if optimization is enabled.
5607         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
5608         require that all the names based on a PARM_DECL or a RESULT_DECL that
5609         isn't ignored for debug info be coalesced.
5610
5611 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5612
5613         * config/c6x/c6x.c: Include "gimple-expr.h".
5614
5615 2013-11-13  Richard Biener  <rguenther@suse.de>
5616
5617         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
5618         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
5619         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
5620         dealing with type mismatches inside component reference chains.
5621
5622 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
5623
5624         PR tree-optimization/59077
5625         * ipa-pure-const.c (better_state): Update *state.
5626
5627 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
5628
5629         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
5630         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
5631         Update offset calculations.
5632
5633 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5634
5635         PR ada/35998
5636         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
5637         for fields.  Do not add the attribute if the size is negative.
5638
5639 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5640
5641         * config/arm/arm.c: Include aarch-cost-tables.h.
5642         (generic_extra_costs): Move from here...
5643         * config/arm/aarch-cost-tables.h: ... To here.  New file.
5644
5645 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5646             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5647             Sergey Lega  <sergey.s.lega@intel.com>
5648             Anna Tikhonova  <anna.tikhonova@intel.com>
5649             Ilya Tocar  <ilya.tocar@intel.com>
5650             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5651             Ilya Verbin  <ilya.verbin@intel.com>
5652             Kirill Yukhin  <kirill.yukhin@intel.com>
5653             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5654
5655         * config/i386/i386.c (ix86_print_operand): Support z-masking.
5656         * config/i386/predicate.md (const_0_to_4_operand): New.
5657         (const_0_to_5_operand): Ditto.
5658         * config/i386/sse.md (UNSPEC_COMPRESS): New.
5659         (UNSPEC_COMPRESS_STORE): Ditto.
5660         (UNSPEC_EXPAND): Ditto.
5661         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
5662         (define_mode_attr ssescalarsize): Ditto.
5663         (avx512f_load<mode>_mask): Ditto.
5664         (avx512f_store<mode>_mask): Ditto.
5665         (avx512f_storedqu<mode>_mask): Ditto.
5666         (avx512f_vmcmp<mode>3_mask): Ditto.
5667         (avx512f_fmadd_<mode>_mask): Ditto.
5668         (avx512f_fmadd_<mode>_mask3): Ditto.
5669         (avx512f_fmsub_<mode>_mask): Ditto.
5670         (avx512f_fmsub_<mode>_mask3): Ditto.
5671         (avx512f_fnmadd_<mode>_mask): Ditto.
5672         (avx512f_fnmadd_<mode>_mask3): Ditto.
5673         (avx512f_fnmsub_<mode>_mask): Ditto.
5674         (avx512f_fnmsub_<mode>_mask3): Ditto.
5675         (avx512f_fmaddsub_<mode>_mask): Ditto.
5676         (avx512f_fmaddsub_<mode>_mask3): Ditto.
5677         (avx512f_fmsubadd_<mode>_mask): Ditto.
5678         (avx512f_fmsubadd_<mode>_mask3): Ditto.
5679         (vec_unpacku_float_lo_v16si): Ditto.
5680         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
5681         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
5682         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
5683         (vec_extract_lo_<mode>_maskm): Ditto.
5684         (vec_extract_hi_<mode>_maskm): Ditto.
5685         (avx512f_vternlog<mode>_mask): Ditto.
5686         (avx512f_shufps512_mask): Ditto.
5687         (avx512f_fixupimm<mode>_mask): Ditto.
5688         (avx512f_shufpd512_mask): Ditto.
5689         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
5690         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
5691         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
5692         (ashr<mode>3<mask_name>): Ditto.
5693         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
5694         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
5695         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
5696         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
5697         (avx512f_pshufdv3_mask): Ditto.
5698         (avx512f_perm<mode>_mask): Ditto.
5699         (avx512f_vpermi2var<mode>3_mask): Ditto.
5700         (avx512f_vpermt2var<mode>3_mask): Ditto.
5701         (avx512f_compress<mode>_mask): Ditto.
5702         (avx512f_compressstore<mode>_mask): Ditto.
5703         (avx512f_expand<mode>_mask): Ditto.
5704         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
5705         to support masking.
5706         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
5707         (<plusminus_insn><mode>3<mask_name>): Ditto.
5708         (*<plusminus_insn><mode>3<mask_name>): Ditto.
5709         (mul<mode>3<mask_name>): Ditto.
5710         (*mul<mode>3<mask_name>): Ditto.
5711         (<sse>_div<mode>3<mask_name>): Ditto.
5712         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
5713         (<sse>_sqrt<mode>2<mask_name>): Ditto.
5714         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
5715         (<code><mode>3<mask_name>/smaxmin): Ditto.
5716         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
5717         (*<code><mode>3<mask_name>/smaxmin): Ditto.
5718         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
5719         (ufloatv16siv16sf2<mask_name>): Ditto.
5720         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
5721         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
5722         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
5723         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
5724         (ufloatv8siv8df<mask_name>): Ditto.
5725         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
5726         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
5727         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
5728         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
5729         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
5730         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
5731         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
5732         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
5733         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
5734         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
5735         (vec_extract_lo_<mode><mask_name>): Ditto.
5736         (vec_extract_hi_<mode><mask_name>): Ditto.
5737         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
5738         (avx512f_movddup512<mask_name>): Ditto.
5739         (avx512f_unpcklpd512<mask_name>): Ditto.
5740         (*avx512f_unpcklpd512<mask_name>): Ditto.
5741         (*avx512f_vmscalef<mode>): Ditto.
5742         (avx512f_scalef<mode><mask_name>): Ditto.
5743         (avx512f_getexp<mode><mask_name>): Ditto.
5744         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
5745         (avx512f_rndscale<mode><mask_name>): Ditto.
5746         (avx512f_shufps512_1<mask_name>): Ditto.
5747         (avx512f_shufpd512_1<mask_name>): Ditto.
5748         (<plusminus_insn><mode>3<mask_name>): Ditto.
5749         (*<plusminus_insn><mode>3<mask_name>): Ditto.
5750         (vec_widen_umult_even_v16si<mask_name>): Ditto.
5751         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
5752         (vec_widen_smult_even_v16si<mask_name>): Ditto.
5753         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
5754         (mul<mode>3<mask_name>): Ditto.
5755         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
5756         (<shift_insn><mode>3<mask_name>): Ditto.
5757         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
5758         (avx512f_<rotate><mode><mask_name>): Ditto.
5759         (<code><mode>3<mask_name>/maxmin): Ditto.
5760         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
5761         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
5762         (*andnot<mode>3<mask_name>): Ditto.
5763         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
5764         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
5765         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
5766         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
5767         (vec_set_lo_<mode><mask_name>): Ditto.
5768         (vec_set_hi_<mode><mask_name>): Ditto.
5769         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
5770         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
5771         (avx512f_pshufd_1<mask_name>): Ditto.
5772         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
5773         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
5774         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
5775         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
5776         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
5777         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
5778         (avx512er_exp2<mode><mask_name>): Ditto.
5779         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
5780         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
5781         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
5782         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
5783         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
5784         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
5785         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
5786         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
5787         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
5788         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
5789         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
5790         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
5791         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
5792         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
5793         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
5794         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
5795         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
5796         (avx512f_getmant<mode><mask_name>): Ditto.
5797         (clz<mode>2<mask_name>): Ditto.
5798         (<mask_codefor>conflict<mode><mask_name>): Ditto.
5799         (*srcp14<mode>): Remove visibility.
5800         (*rsqrt14<mode>): Ditto.
5801         (*fma_fmsub_<mode>): Ditto.
5802         (*fma_fnmadd_<mode>): Ditto.
5803         (*avx512f_rndscale<mode>): Ditto.
5804         * config/i386/subst.md: New file.
5805
5806 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
5807
5808         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
5809         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
5810         (atomic_load_explicit, atomic_exchange_explicit)
5811         (atomic_compare_exchange_strong_explicit)
5812         (atomic_compare_exchange_weak_explicit): Use __auto_type to
5813         declare variable initialized with PTR argument.
5814
5815 2013-11-12  Jeff Law  <law@redhat.com>
5816
5817         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
5818         backedge_seen_p.  Set, use and pass it to children appropriately.
5819         (thread_through_normal_block): Similarly.
5820         (thread_across_edge): Similarly.
5821
5822         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
5823         memory references as volatile.
5824         (insert_trap_and_remove_trailing_statements): Fix comment.
5825
5826 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
5827
5828         PR other/58712
5829         * ira-costs.c (record_operand_costs): Check operands number for
5830         the single set.
5831
5832 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
5833
5834         PR target/59054
5835         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
5836         constraints that would allow DImode into the traditional Altivec
5837         registers, but cause undesirable code generation when loading 0 as
5838         a constant.
5839         (movdi_internal64): Likewise.
5840         (cmp<mode>_fpr): Do not use %x for CR register output.
5841         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
5842         -mallow-upper-sf debug switches are used.
5843
5844 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
5845
5846         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
5847         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
5848         Relocate prototypes from gimple.h.
5849         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
5850         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
5851         from gimple.h.
5852         * gimple.h: Move some prototypes to gimplify.h.
5853         (gimple_predicate, enum fallback, enum gimplify_status): Move to
5854         gimplify.h.
5855         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
5856         Relocate from gimpify.c.
5857         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5858         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
5859         is_gimple_reg_rhs) Relocate from gimplify.c.
5860         * gimplify.c (mark_addressable): Move to gimple-expr.c.
5861         (gimple_seq_add_stmt_without_update): Move to gimple.c.
5862         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5863         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
5864         is_gimple_reg_rhs): Move to gimple-expr.c.
5865         (should_carry_location_p): Move to gimple.c.
5866         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
5867         to gimple.h.
5868         (annotate_one_with_location, annotate_all_with_location_after,
5869         annotate_all_with_location): Move to gimple.c.
5870         (compare_case_labels, sort_case_labels,
5871         preprocess_case_label_vec_for_gimple): Move to gimple.c.
5872         (rhs_predicate_for): Make static.
5873         (gimplify_assign): Relocate from gimple.c.
5874         * gimple.c (gimplify_assign): Move to gimplify.c.
5875         (gimple_seq_add_stmt_without_update, should_carry_location_p,
5876         annotate_one_with_location, annotate_all_with_location_after,
5877         annotate_all_with_location, compare_case_labels, sort_case_labels,
5878         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
5879         * tree.h (unshare_expr, unshare_expr_without_location,
5880         mark_addressable): Move prototypes to gimplify.h.
5881         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
5882         tmp_var_id_num
5883         * asan.c: Include gimplify.h rather than gimple.h.
5884         * cfgloopmanip.c: Likewise.
5885         * cgraphunit.c: Likewise.
5886         * cilk-common.c: Likewise.
5887         * dwarf2out.c: Dont include gimple.h.
5888         * fold-const.c: Include gimplify.h rather than gimple.h.
5889         * function.c: Likewise.
5890         * gimple-fold.c: Likewise.
5891         * gimple-ssa-strength-reduction.c: Likewise.
5892         * graphite-clast-to-gimple.c: Likewise.
5893         * graphite-sese-to-poly.c: Likewise.
5894         * ipa-prop.c: Likewise.
5895         * ipa-split.c: Likewise.
5896         * ipa.c: Likewise.
5897         * langhooks.c: Dont include gimple.h.
5898         * loop-init.c: Include gimplify.h rather than gimple.h.
5899         * omp-low.c: Likewise.
5900         * sese.c: Likewise.
5901         * stor-layout.c: Likewise.
5902         * targhooks.c: Likewise.
5903         * trans-mem.c: Likewise.
5904         * tree-affine.c: Likewise.
5905         * tree-cfg.c: Likewise.
5906         * tree-cfgcleanup.c: Likewise.
5907         * tree-complex.c: Likewise.
5908         * tree-if-conv.c: Likewise.
5909         * tree-inline.c: Likewise.
5910         * tree-iterator.c: Likewise.
5911         * tree-loop-distribution.c: Likewise.
5912         * tree-nested.c: Likewise.
5913         * tree-parloops.c: Likewise.
5914         * tree-predcom.c: Likewise.
5915         * tree-profile.c: Likewise.
5916         * tree-scalar-evolution.c: Likewise.
5917         * tree-sra.c: Likewise.
5918         * tree-ssa-address.c: Likewise.
5919         * tree-ssa-ccp.c: Likewise.
5920         * tree-ssa-dce.c: Likewise.
5921         * tree-ssa-forwprop.c: Likewise.
5922         * tree-ssa-ifcombine.c: Likewise.
5923         * tree-ssa-loop-im.c: Likewise.
5924         * tree-ssa-loop-ivopts.c: Likewise.
5925         * tree-ssa-loop-manip.c: Likewise.
5926         * tree-ssa-loop-niter.c: Likewise.
5927         * tree-ssa-loop-prefetch.c: Likewise.
5928         * tree-ssa-loop-unswitch.c: Likewise.
5929         * tree-ssa-math-opts.c: Likewise.
5930         * tree-ssa-phiopt.c: Likewise.
5931         * tree-ssa-phiprop.c: Likewise.
5932         * tree-ssa-pre.c: Likewise.
5933         * tree-ssa-propagate.c: Likewise.
5934         * tree-ssa-reassoc.c: Likewise.
5935         * tree-ssa-sccvn.c: Likewise.
5936         * tree-ssa-strlen.c: Likewise.
5937         * tree-ssa.c: Likewise.
5938         * tree-switch-conversio: Likewise.n.c
5939         * tree-tailcall.c: Likewise.
5940         * tree-vect-data-refs.c: Likewise.
5941         * tree-vect-generic.c: Likewise.
5942         * tree-vect-loop-manip.c: Likewise.
5943         * tree-vect-loop.c: Likewise.
5944         * tree-vect-patterns.c: Likewise.
5945         * tree-vect-stmts.c: Likewise.
5946         * tsan.c: Likewise.
5947         * value-prof.c: Likewise.
5948         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
5949         * config/alpha/alpha.c: Likewise.
5950         * config/darwin.c: Likewise.
5951         * config/i386/i386.c: Likewise.
5952         * config/ia64/ia64.c: Likewise.
5953         * config/mep/mep.c: Likewise.
5954         * config/mips/mips.c: Likewise.
5955         * config/rs6000/rs6000.c: Likewise.
5956         * config/s390/s390.c: Likewise.
5957         * config/sh/sh.c: Likewise.
5958         * config/sparc/sparc.c: Likewise.
5959         * config/spu/spu.c: Likewise.
5960         * config/stormy16/stormy16.c: Likewise.
5961         * config/tilegx/tilegx.c: Likewise.
5962         * config/tilepro/tilepro.c: Likewise.
5963         * config/xtensa/xtensa.c: Likewise.
5964
5965 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
5966
5967         * tree.c (grow_tree_vec_stat): New function ...
5968         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
5969         and macro front-end.
5970
5971 2013-11-12  Marek Polacek  <polacek@redhat.com>
5972
5973         * final.c (update_alignments): Initialize label to NULL_RTX.
5974
5975 2013-11-12  Jeff Law  <law@redhat.com>
5976
5977         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
5978         (insert_trap_and_remove_trailing_statements): New argument OP which
5979         is the NULL pointer.  Emit the trap after the load/store through
5980         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
5981         when trivial to do so.
5982         (isolate_path): Corresponding changes.
5983         (gimple_ssa_isolate_erroneous_path): Likewise.
5984
5985 2013-11-12  Teresa Johnson  <tejohnson@google.com>
5986             Jan Hubicka  <jh@suse.cz>
5987
5988         * predict.c (drop_profile): New function.
5989         (handle_missing_profiles): Ditto.
5990         (counts_to_freqs): Don't overwrite estimated frequencies
5991         when function has no profile counts.
5992         * predict.h (handle_missing_profiles): Declare.
5993         * tree-inline.c (freqs_to_counts): New function.
5994         (copy_cfg_body): Invoke freqs_to_counts as needed.
5995         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
5996
5997 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
5998
5999         PR target/59088
6000         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
6001         Set for m_HASWELL.
6002         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
6003
6004 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
6005
6006         PR target/59084
6007         * config/i386/i386.c (ix86_option_override_internal): Check
6008         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
6009         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
6010         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
6011         MASK_AVX256_SPLIT_UNALIGNED_STORE.
6012
6013         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
6014         Clear m_COREI7_AVX and update comments.
6015         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
6016
6017 2013-11-12  Martin Jambor  <mjambor@suse.cz>
6018
6019         PR rtl-optimization/10474
6020         * ira.c (interesting_dest_for_shprep): New function.
6021         (split_live_ranges_for_shrink_wrap): Likewise.
6022         (find_moveable_pseudos): Move calculation of dominance info,
6023         df_analysios and the final anlyses to...
6024         (ira): ...here, call split_live_ranges_for_shrink_wrap.
6025
6026 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
6027
6028         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
6029         Handle type conversion.
6030
6031 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
6032             Jan Hubicka  <jh@suse.cz>
6033
6034         * cgraph.c (dump_cgraph_node): Profile dump added.
6035         * cgraph.h (struct cgraph_node): New time profile variable added.
6036         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
6037         * gcov-io.h (gcov_type): New profiler type introduced.
6038         * ipa-profile.c (lto_output_node): Streaming for time profile added.
6039         (input_node): Time profiler is read from LTO stream.
6040         * predict.c (maybe_hot_count_p): Hot prediction changed.
6041         * profile.c (instrument_values): New case for time profiler added.
6042         (compute_value_histograms): Read of time profile.
6043         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
6044         * tree-profile.c (init_ic_make_global_vars): Time profiler
6045         function added.
6046         (gimple_init_edge_profiler): TP function instrumentation.
6047         (gimple_gen_time_profiler): New.
6048         * value-prof.c (gimple_add_histogram_value): Support for time profiler
6049         added.
6050         (dump_histogram_value): TP type added to dumps.
6051         (visit_hist): More sensitive check that takes TP into account.
6052         (gimple_find_values_to_profile): TP instrumentation.
6053         * value-prof.h (hist_type): New histogram type added.
6054         (struct histogram_value_t): Pointer to struct function added.
6055         * libgcc/Makefile.in: New GCOV merge function for TP added.
6056         * libgcov.c: function_counter variable introduced.
6057         (_gcov_merge_time_profile): New.
6058         (_gcov_time_profiler): New.
6059
6060 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
6061             Jeff Law  <law@redhat.com>
6062
6063         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
6064         ao_ref_init_from_ptr_and_size for builtins.
6065
6066 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
6067             H.J. Lu  <hongjiu.lu@intel.com>
6068
6069         PR target/58853
6070         * config/i386/x86-tune.def
6071         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6072         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
6073         * config/i386/i386.h
6074         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6075         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
6076         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
6077         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
6078         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
6079         misaligned_prologue_used.  Check that
6080         desired_aling <= epilogue_size_needed.
6081
6082 2013-11-11  Cong Hou  <congh@google.com>
6083
6084         PR tree-optimization/59050
6085         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
6086
6087 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
6088
6089         PR middle-end/59049
6090         * expmed.c (emit_store_flag): Fail for const-const comparison.
6091
6092 2013-11-11  Tristan Gingold  <gingold@adacore.com>
6093             Eric Botcazou  <ebotcazou@adacore.com>
6094
6095         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
6096         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
6097         * tree.def (CONSTRUCTOR): Likewise.
6098         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
6099         * gimplify.c (gimplify_init_constructor): Do not clear the object when
6100         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
6101
6102 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
6103
6104         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
6105         diagnostic_finish.
6106
6107 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6108
6109         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
6110         comparisons.
6111
6112 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
6113
6114         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
6115
6116 2013-11-08  Jeff Law  <law@redhat.com>
6117
6118         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6119         threading paths first, then perform PHI node checks if applicable.
6120
6121 2013-11-10  Karlson2k  <k2k@narod.ru>
6122             Kai Tietz  <ktietz@redhat.com>
6123
6124         PR plugin/52872
6125         * configure.ac: Adding for exported symbols check
6126         and for rdynamic-check executable-extension.
6127         * configure: Regenerated.
6128
6129 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
6130
6131         * mode-switching.c (optimize_mode_switching): Mark block as
6132         nontransparent, if last_mode at block exit is different from no_mode.
6133
6134 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6135
6136         * function.c (NAME__MAIN): Move to...
6137         * cfgexpand.c (NAME__MAIN): ...here.
6138
6139 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
6140
6141         * target.def (can_use_doloop_p): New hook.
6142         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
6143         * doc/tm.texi: Regenerate.
6144         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
6145         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
6146         * hooks.c (hook_bool_dint_dint_uint_true): New function.
6147         * targhooks.h (can_use_doloop_if_innermost): Declare.
6148         * targhooks.c (can_use_doloop_if_innermost): New function.
6149         * target.h: Include double-int.h.
6150         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
6151         Remove iteration count, maximum iteration count, loop depth and
6152         enter-at-top inputs from doloop_begin and doloop_end.
6153         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
6154         interface.
6155         * config/arc/arc.c (arc_can_use_doloop_p): New function.
6156         (TARGET_CAN_USE_DOLOOP_P): Define.
6157         * config/arm/thumb2.md (doloop_end): Update for new interface.
6158         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
6159         * config/bfin/bfin.md (doloop_end): Update for new interface.
6160         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
6161         (TARGET_CAN_USE_DOLOOP_P): Define.
6162         * config/c6x/c6x.md (doloop_end): Update for new interface.
6163         * config/ia64/ia64.md (doloop_end): Update for new interface.
6164         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
6165         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
6166         interface.
6167         * config/mep/mep.c (mep_emit_doloop): Likewise.
6168         (TARGET_CAN_USE_DOLOOP_P): Define.
6169         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
6170         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
6171         * config/s390/s390.md (doloop_end): Update for new interface.
6172         * config/sh/sh.md (doloop_end): Likewise.
6173         * config/spu/spu.md (doloop_end): Likewise.
6174         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
6175         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
6176         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
6177         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
6178         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
6179         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
6180         interface.
6181         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
6182
6183 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
6184
6185         PR other/59055
6186         * doc/extend.texi: Move Cilk Plus Builtins node before Other
6187         Builtins node.
6188
6189 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
6190             Joseph Myers  <joseph@codesourcery.com>
6191
6192         * ginclude/stdatomic.h: New file.
6193         * Makefile.in (USER_H): Add stdatomic.h.
6194
6195 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6196
6197         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
6198         comparisons.
6199
6200 2013-11-08  Jeff Law  <law@redhat.com>
6201
6202         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
6203         * tree-ssa-threadupdate.c (delete_thread_path): New function.
6204         (ssa_redirect_edges, thread_block_1): Use it.
6205         (thread_through_loop_header, mark_threaded_blocks): Likewise.
6206         (thread_through_all_blocks, register_jump_thread): Likewise.
6207         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6208
6209 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
6210
6211         * config/arm/aarch-common.c
6212         (search_term): New typedef.
6213         (shift_rtx_costs): New array.
6214         (arm_rtx_shift_left_p): New.
6215         (arm_find_sub_rtx_with_search_term): Likewise.
6216         (arm_find_sub_rtx_with_code): Likewise.
6217         (arm_early_load_addr_dep): Add sanity checking.
6218         (arm_no_early_alu_shift_dep): Likewise.
6219         (arm_no_early_alu_shift_value_dep): Likewise.
6220         (arm_no_early_mul_dep): Likewise.
6221         (arm_no_early_store_addr_dep): Likewise.
6222
6223 2013-11-08  Richard Biener  <rguenther@suse.de>
6224
6225         PR tree-optimization/59047
6226         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
6227
6228 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
6229
6230         * common.opt (fcheck-pointer-bounds): Move to ...
6231         * c-family/c.opt: ... here.
6232         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
6233         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
6234         * langhooks.h (lang_hooks): Remove chkp_supported field.
6235         * toplev.c (process_options): Remove chkp_supported check.
6236
6237 2013-11-08  Richard Biener  <rguenther@suse.de>
6238
6239         PR tree-optimization/59038
6240         PR tree-optimization/58955
6241         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
6242         previous change.  Handle known dependences correctly.
6243
6244 2013-11-08  Tom de Vries  <tom@codesourcery.com>
6245
6246         * config/rs6000/t-xilinx: Remove duplicate contents.
6247
6248 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
6249             Joseph Myers  <joseph@codesourcery.com>
6250
6251         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
6252         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
6253         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
6254         (struct tree_base): Add atomic_flag field.
6255         * tree.h (TYPE_ATOMIC): New accessor macro.
6256         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
6257         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
6258         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
6259         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
6260         * tree.c (set_type_quals): Set TYPE_ATOMIC.
6261         (find_atomic_core_type): New function.
6262         (build_qualified_type): Adjust alignment for qualified types.
6263         (build_atomic_base): New function
6264         (build_common_tree_nodes): Build atomicQI_type_node,
6265         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
6266         atomicTI_type_node.
6267         * print-tree.c (print_node): Print atomic qualifier.
6268         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
6269         * target.def (atomic_assign_expand_fenv): New hook.
6270         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
6271         * doc/tm.texi: Regenerate.
6272         * targhooks.c (default_atomic_assign_expand_fenv): New function.
6273         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
6274         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
6275         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
6276         function type.
6277         * config/i386/i386.c (enum ix86_builtins): Add
6278         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
6279         IX86_BUILTIN_FNCLEX.
6280         (bdesc_special_args): Add __builtin_ia32_fnstenv,
6281         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
6282         (ix86_expand_builtin): Handle the new built-in functions.
6283         (ix86_atomic_assign_expand_fenv): New function.
6284         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
6285         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
6286         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
6287         (fnstenv, fldenv, fnstsw, fnclex): New insns.
6288
6289 2013-11-07  Steve Ellcey  <sellcey@mips.com>
6290
6291         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
6292         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
6293         (MULTILIB_DIRNAMES): Add fp64 directory.
6294         (MULTILIB_EXCEPTIONS): Add new exclusions.
6295
6296 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
6297
6298         * gimplify.c (gimple_regimplify_operands): Do not set
6299         SSA_NAME_DEF_STMT.
6300         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
6301         (rewrite_close_phi_out_of_ssa): Same.
6302         (rewrite_phi_out_of_ssa): Same.
6303         (rewrite_degenerate_phi): Same.
6304         (handle_scalar_deps_crossing_scop_limits): Same.
6305         * tree-if-conv.c (predicate_scalar_phi): Same.
6306         * tree-parloops.c (create_loads_for_reductions): Same.
6307         (create_final_loads_for_reduction): Same.
6308         (create_loads_and_stores_for_name): Same.
6309         (transform_to_exit_first_loop): Same.
6310         (create_parallel_loop): Same.
6311         * tree-ssa-loop-im.c
6312         (move_computations_dom_walker::before_dom_children): Same.
6313         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
6314         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
6315         * tree-ssa-propagate.c (substitute_and_fold): Same.
6316         * tree-vect-loop.c (vect_finalize_reduction): Same.
6317         * tree-vect-stmts.c (vectorizable_call): Same.
6318
6319 2013-11-07  Mike Stump  <mikestump@comcast.net>
6320
6321         * config/pdp11/pdp11.c: Include dbxout.h.
6322         * config/picochip/picochip.c: Likewise.
6323
6324 2013-11-07  Cong Hou  <congh@google.com>
6325
6326         PR tree-optimization/56764
6327         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6328         Combine alias checks if it is possible to amortize the runtime
6329         overhead.  Return the number of alias checks after merging.
6330         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6331         Use the function vect_create_cond_for_alias_checks () to check
6332         the number of alias checks.
6333
6334 2013-11-07  Jeff Law  <law@redhat.com>
6335
6336         * varpool.c (ctor_for_folding): Fix typo in comment.
6337
6338 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
6339
6340         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
6341         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
6342
6343 2013-11-07  Jeff Law  <law@redhat.com>
6344
6345         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
6346
6347         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
6348         No longer check if we have __builtin_trap, assume it's available.
6349
6350 2013-11-07  Diego Novillo  <dnovillo@google.com>
6351
6352         * attribs.c (lookup_scoped_attribute_spec): Make static.
6353         (get_attribute_namespace): Likewise.
6354         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
6355         (validate_arglist): Move earlier in the file. Make static.
6356         (expand_stack_restore): Move from stmt.c
6357         (expand_stack_save): Move from stmt.c
6358         (rewrite_call_expr_array): Move earlier in the file.
6359         (rewrite_call_expr_valist): Likewise.
6360         * cfgexpand.c: Include hard-reg-set.h before tree.h
6361         Include recog.h.
6362         Include output.h.
6363         (expand_asm_loc): Move from stmt.c.
6364         (n_occurrences): Move from stmt.c.
6365         (check_operand_nalternatives): Move from stmt.c.
6366         (tree_conflicts_with_clobbers_p): Move from stmt.c.
6367         (expand_asm_operands): Move from stmt.c
6368         (expand_asm_stmt): Move from stmt.c
6369         (expand_computed_goto): Move from stmt.c
6370         (expand_goto): Move from stmt.c
6371         (expand_null_return_1): Move from stmt.c
6372         (expand_null_return): Move from stmt.c
6373         (expand_value_return): Move from stmt.c
6374         (expand_return): Move from stmt.c
6375         (expand_main_function): Move from function.c
6376         (stack_protect_prologue): Move from function.c
6377         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
6378         (build_function_decl_skip_args): Move from tree.c.
6379         * explow.c (tree_expr_size): Move from tree.c.
6380         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
6381         (fields_length): Move from tree.c.
6382         * fold-const.c (size_low_cst): Move from tree.c.
6383         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
6384         (tree_expr_nonzero_p): Make static. Move earlier in the file.
6385         (fold_build3_initializer_loc): Remove.
6386         (tree_invalid_nonnegative_warnv_p): Make static.
6387         * function.c (expand_main_function): Move to cfgexpand.c.
6388         (stack_protect_prologue): Move to cfgexpand.c.
6389         (set_insn_locations): Move earlier in the file.
6390         * gimple-fold.c: Include langhooks.h.
6391         (truth_type_for): Move from tree.c.
6392         * print-tree.c (print_vec_tree): Remove.
6393         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
6394         (expand_goto): Move to cfgexpand.c.
6395         (n_occurrences): Move to cfgexpand.c.
6396         (expand_asm_loc): Move to cfgexpand.c
6397         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
6398         (expand_asm_operands): Move to cfgexpand.c.
6399         (expand_asm_stmt): Move to cfgexpand.c.
6400         (check_operand_nalternatives): Move to cfgexpand.c
6401         (expand_null_return): Move to cfgexpand.c.
6402         (expand_value_return): Move to cfgexpand.c.
6403         (expand_null_return_1): Move to cfgexpand.c.
6404         (expand_return): Move to cfgexpand.c.
6405         (expand_stack_save): Move to builtins.c.
6406         (expand_stack_restore): Move to builtins.c
6407         * symtab.c: Include output.h.
6408         (decl_assembler_name_hash): Move from tree.c.
6409         (decl_assembler_name_equal): Move from tree.c.
6410         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
6411         * tree-eh.c (in_array_bounds_p): Move from tree.c.
6412         (range_in_array_bounds_p): Move from tree.c.
6413         * tree-object-size.c (fini_object_sizes): Make static.
6414         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
6415         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
6416         * tree.c (decl_assembler_name_equal): Move to symtab.c.
6417         (tree_expr_size): Move to explow.c.
6418         (decl_assembler_name_hash): Move to symtab.c.
6419         (real_twop): Remove.
6420         (tree_expr_size): Move to explow.c.
6421         (stabilize_reference_1): Move earlier in the file. Make static.
6422         (omp_remove_redundant_declare_simd_attrs): Remove.
6423         (simple_cst_list_equal): Move earlier in the file. Make static.
6424         (size_low_cst): Move to fold-const.c.
6425         (build_type_no_quals): Remove.
6426         (build_function_type_skip_args): Move to cgraphclones.c.
6427         (build_function_decl_skip_args): Move to cgraphclones.c.
6428         (in_array_bounds_p): Move to tree-eh.c.
6429         (range_in_array_bounds_p): Move to tree-eh.c.
6430         (truth_type_for): Move to gimple-fold.c.
6431         (list_equal_p): Remove.
6432         * tree.h (decl_assembler_name_equal): Remove.
6433         (decl_assembler_name_hash): Remove.
6434         (truth_type_for): Remove.
6435         (build_type_no_quals): Remove.
6436         (build_function_decl_skip_args): Remove.
6437         (in_array_bounds_p): Remove.
6438         (range_in_array_bounds_p): Remove.
6439         (size_low_cst): Remove.
6440         (omp_remove_redundant_declare_simd_attrs): Remove.
6441         (tree_expr_size): Remove.
6442         (fields_length): Remove.
6443         (stabilize_reference_1): Remove.
6444         (expand_goto): Remove.
6445         (expand_stack_save): Remove.
6446         (expand_stack_restore): Remove.
6447         (expand_return): Remove.
6448         (fold_build3_initializer_loc): Remove.
6449         (tree_expr_nonzero_p): Remove.
6450         (tree_invalid_nonnegative_warnv_p): Remove.
6451         (tree_expr_nonzero_warnv_p): Remove.
6452         (fold_builtin_snprintf_chk): Remove.
6453         (validate_arglist): Remove.
6454         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
6455         (simple_cst_list_equal): Remove.
6456         (real_twop): Remove.
6457         (expand_main_function): Remove.
6458         (stack_protect_prologue): Remove.
6459         (print_vec_tree): Remove.
6460         (lookup_scoped_attribute_spec): Remove.
6461         (get_attribute_namespace): Remove.
6462         (expand_computed_goto): Remove.
6463         (expand_asm_stmt): Remove.
6464         (list_equal_p): Remove.
6465         (ssa_name_nonnegative_p): Remove.
6466         (fini_object_sizes): Remove.
6467         (addr_expr_of_non_mem_decl_p): Remove.
6468         (is_tm_safe_or_pure): Move to trans-mem.c.
6469         (more_const_call_expr_args_p): Remove.
6470         (save_vtable_map_decl): Remove.
6471
6472 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
6473
6474         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
6475         linker plugins, too.
6476
6477         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
6478         link to libgomp and its dependencies.
6479         * config/ia64/hpux.h (LIB_SPEC): Likewise.
6480         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6481         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6482         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
6483
6484 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
6485
6486         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
6487         (determine_value_range): Add loop argument.  Use get_range_info to
6488         improve range.
6489         (bound_difference): Adjust caller.
6490
6491 2013-11-07  Richard Biener  <rguenther@suse.de>
6492             Jakub Jelinek  <jakub@redhat.com>
6493
6494         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
6495         latches from header PHI arguments from the latch edge.
6496
6497 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
6498
6499         PR c++/58176
6500         * varasm.c (output_constant): Handle NULLPTR_TYPE.
6501
6502 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6503
6504         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
6505         misaligned_prologue_used when it has been set.
6506
6507 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
6508             Jakub Jelinek  <jakub@redhat.com>
6509
6510         PR sanitizer/59029
6511         * asan.c (get_mem_refs_of_builtin_call): Allow
6512         integer literals as addresses in instrumented builtins.
6513
6514 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6515
6516         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6517         Explain why plus_constant is not used.
6518
6519 2013-11-07  Richard Biener  <rguenther@suse.de>
6520
6521         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
6522         (canonicalize_value): ... this.  Also handle stripping of
6523         TREE_OVERFLOW.
6524         (get_value, set_lattice_value, get_value_for_expr): Adjust.
6525         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
6526         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
6527
6528 2013-11-07  Richard Biener  <rguenther@suse.de>
6529
6530         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
6531
6532 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6533
6534         PR target/59034
6535         * config/i386/i386.md (push peepholer/splitter): Use Pmode
6536         with stack_pointer_rtx.
6537
6538 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
6539
6540         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
6541         using operand_equal_p.
6542
6543 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
6544
6545         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
6546         * tree-affine.c (get_inner_reference_aff): Return base.
6547         * tree-affine.h (get_inner_reference_aff): Change prototype.
6548
6549 2013-11-06  Tobias Burnus  <burnus@net-b.de>
6550
6551         * doc/invoke.texi (Wdate-time): Fix typo.
6552
6553 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
6554
6555         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
6556         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
6557         fp_arith_reg_operand instead of arith_reg_operand.
6558
6559 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
6560
6561         * config/sh/sh.md (adddi3): Remove empty constraints.
6562         Remove can_create_pseudo_p and arith_reg_operand check.
6563         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
6564         Split before reload.
6565
6566 2013-11-06  Jeff Law  <law@redhat.com>
6567             Tom Tromey  <tromey@redhat.com>
6568
6569         * gdbinit.in: Disable strict type checking.
6570
6571 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
6572
6573         * tree-pass.h (make_pass_live_range_shrinkage): New external.
6574         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
6575         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
6576         (rest_of_handle_live_range_shrinkage): Ditto
6577         (class pass_live_range_shrinkage): Ditto.
6578         (pass_data_live_range_shrinkage): Ditto.
6579         (make_pass_live_range_shrinkage): Ditto.
6580         * sched-int.h (initialize_live_range_shrinkage): New prototype.
6581         (finish_live_range_shrinkage): Ditto.
6582         * sched-deps.c (create_insn_reg_set): Make void return value.
6583         * passes.def: Add pass_live_range_shrinkage.
6584         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
6585         * haifa-sched.c (live_range_shrinkage_p): New.
6586         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
6587         New functions.
6588         (rank_for_schedule): Add code for pressure relief through live
6589         range shrinkage.
6590         (schedule_insn): Print more debug info.
6591         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
6592         through live range shrinkage.
6593         * doc/invoke.texi (-flive-range-shrinkage): New.
6594         * common.opt (flive-range-shrinkage): New.
6595
6596 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
6597
6598         PR target/59021
6599         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
6600         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
6601         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
6602         RTXes that return in AVX256 register.
6603
6604 2013-11-06  Richard Biener  <rguenther@suse.de>
6605
6606         PR tree-optimization/58653
6607         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
6608         (prepare_initializers_chain): Adjust.
6609
6610 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
6611
6612         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
6613         (gimple_in_transaction): Use bb_in_transaction.
6614         * basic-block.h (bb_in_transaction): Relocate here and rename.
6615         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
6616
6617 2013-11-06  Richard Biener  <rguenther@suse.de>
6618
6619         * tree.c (drop_tree_overflow): New function.
6620         * tree.h (drop_tree_overflow): Declare.
6621         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
6622         * tree-vrp.c (range_int_cst_singleton_p): Use
6623         is_overflow_infinity instead of testing TREE_OVERFLOW.
6624         (extract_range_from_assert): Likewise.
6625         (zero_nonzero_bits_from_vr): Likewise.
6626         (extract_range_basic): Likewise.
6627         (register_new_assert_for): Use drop_tree_overflow.
6628         (vrp_visit_phi_node): Likewise.
6629
6630 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
6631
6632         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
6633         checking for leaf functions without dynamic stack allocation.
6634         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
6635         (ia64_expand_prologue): Likewise.
6636         * config/mips/mips.c (mips_expand_prologue): Likewise.
6637         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6638         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6639         (sparc_flat_expand_prologue): Likewise.
6640
6641 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
6642
6643         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
6644         (__ST3_LANE_FUNC): Likewise.
6645         (__ST4_LANE_FUNC): Likewise.
6646
6647 2013-11-06  Nick Clifton  <nickc@redhat.com>
6648
6649         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
6650         name returned by msp430_mcu_name.
6651         (LIB_SPEC): If a -T option has not been specified then set a
6652         default, mcu-specific, linker script.
6653         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
6654         * config/msp430/msp430.c (msp430x_names): Likewise.
6655         Alpha sort the names for ease of comparison.
6656         (msp430_mcu_name): New function:  Returns a string suitable for
6657         use as a C preprocessor symbol based upon the name of the MCU
6658         being targeted.
6659         (msp430_option_override): Accept msp430x and msp430xv2 as generic
6660         mcu names.
6661         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
6662
6663         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
6664         unless it is the last part of a spec substring.
6665         * doc/invoke.texi (Spec Files): Document space insertion
6666         behaviour of %*.
6667
6668 2013-11-06  Christian Bruel  <christian.bruel@st.com>
6669
6670         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
6671         Factorize probabilities, Use adjust_address instead of
6672         adjust_automodify_address when possible. Enable for optimize.
6673         (sh_expand_strlen): New function.
6674         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
6675         * config/sh/sh.md (strlensi): New pattern.
6676         (UNSPEC_BUILTIN_STRLEN): Define.
6677
6678 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
6679
6680         PR middle-end/58970
6681         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
6682         (expand_assignment): If *bitpos is negative, set *offset
6683         and adjust *bitpos, so that it is not negative.
6684
6685 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
6686
6687         * config/i386/bdver3.md : Added two additional decoder units
6688         to support issue rate of 4 and remodeled vector unit.
6689         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
6690         architectures is set to 4.
6691         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
6692         lookahead is set to 4 for BD architectures.
6693
6694 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6695
6696         * config/rs6000/rs6000.c (rs6000_option_override_internal):
6697         Remove restriction against use of VSX instructions when generating
6698         code for little endian mode.
6699
6700 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6701
6702         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
6703         for both big and little endian.
6704         (mulv8hi3): Swap input operands for merge high and merge low
6705         instructions for little endian.
6706
6707 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6708
6709         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
6710         define_insn to define_expand that uses even patterns for big
6711         endian and odd patterns for little endian.
6712         (vec_widen_smult_even_v16qi): Likewise.
6713         (vec_widen_umult_even_v8hi): Likewise.
6714         (vec_widen_smult_even_v8hi): Likewise.
6715         (vec_widen_umult_odd_v16qi): Likewise.
6716         (vec_widen_smult_odd_v16qi): Likewise.
6717         (vec_widen_umult_odd_v8hi): Likewise.
6718         (vec_widen_smult_odd_v8hi): Likewise.
6719         (altivec_vmuleub): New define_insn.
6720         (altivec_vmuloub): Likewise.
6721         (altivec_vmulesb): Likewise.
6722         (altivec_vmulosb): Likewise.
6723         (altivec_vmuleuh): Likewise.
6724         (altivec_vmulouh): Likewise.
6725         (altivec_vmulesh): Likewise.
6726         (altivec_vmulosh): Likewise.
6727
6728 2013-11-05  Mike Stump  <mikestump@comcast.net>
6729
6730         * Makefile.in (mostlyclean): Remove c-family objects.
6731
6732 2013-11-05  Ian Lance Taylor  <iant@google.com>
6733
6734         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
6735         If possible, add .cfi directives to record change to bx.
6736         * config/i386/i386.c (ix86_emit_cfi): New function.
6737         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
6738
6739 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
6740
6741         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
6742         immediately after a label for a tablejump pattern.
6743
6744         * config/arm/arm.c (is_jump_table): Remove.
6745         (create_fix_barrier): Use tablejump_p instead.
6746         (arm_reorg): Likewise.
6747         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
6748         (thumb2_output_casesi): Likewise.
6749         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
6750         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
6751         casesi_shift_media, casesi_load_media): Likewise.
6752         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
6753         * config/microblaze/microblaze.md: Likewise.
6754
6755 2013-11-05  Tobias Burnus  <burnus@net-b.de>
6756
6757         * doc/invoke.texi (-Wdate-time): Document.
6758
6759 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
6760
6761         * double-int.c (lshift_double, rshift_double): Remove
6762         SHIFT_COUNT_TRUNCATED handling.
6763
6764 2013-11-05  Jeff Law  <law@redhat.com>
6765
6766         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
6767         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
6768         * gimple-ssa-isolate-paths.c: New file.
6769         * gimple.c (check_loadstore): New function.
6770         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
6771         Verify OP is in the argument list and the argument corresponding
6772         to OP is a pointer type.  Use operand_equal_p rather than
6773         pointer equality when testing if OP is on the nonnull list.
6774         Use check_loadstore rather than count_ptr_derefs.  Handle
6775         GIMPLE_RETURN statements.
6776         * tree-vrp.c (infer_nonnull_range): Remove.
6777         * gimple.h (infer_nonnull_range): Declare.
6778         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
6779         * passes.def: Add pass_isolate_erroneous_paths.
6780         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
6781         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
6782         * tree-ssa.c (struct count_ptr_d): Remove.
6783         (count_ptr_derefs, count_uses_and_derefs): Remove.
6784         * tree-ssa.h (count_uses_and_derefs): Remove.
6785
6786 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
6787
6788         PR rtl-optimization/58997
6789         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
6790         get_iv_value to be in iv->mode rather than iv->extend_mode.
6791         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
6792         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
6793         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
6794         mode.
6795
6796 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
6797
6798         * gimple.h: Move some prototypes to gimple-expr.h and add to include
6799         list.
6800         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
6801         Move to gimple-expr.h.
6802         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
6803         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
6804         is_gimple_id, virtual_operand_p, is_gimple_addressable,
6805         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
6806         Relocate here.
6807         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
6808         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
6809         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
6810         is_gimple_address, is_gimple_invariant_address,
6811         is_gimple_ip_invariant_address, is_gimple_min_invariant,
6812         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
6813         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
6814         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
6815         gimple_decl_printable_name, useless_type_conversion_p,
6816         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
6817         gimple-expr.[ch].
6818         * gimple-expr.c: New File.
6819         (useless_type_conversion_p, gimple_set_body, gimple_body,
6820         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
6821         gimple_can_coalesce_p, extract_ops_from_tree_1,
6822         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
6823         is_gimple_address, is_gimple_invariant_address,
6824         is_gimple_ip_invariant_address, is_gimple_min_invariant,
6825         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
6826         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
6827         is_gimple_mem_ref_addr): Relocate here.
6828         * Makefile.in (OBJS): Add gimple-expr.o.
6829
6830 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
6831
6832         * gengtype-parse.c (struct_field_seq): Support empty structs.
6833
6834 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
6835
6836         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
6837
6838 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
6839
6840         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
6841         for !TARGET_80387.
6842         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
6843         _SOFT_FLOAT here.
6844         (LONG_DOUBLE_TYPE_SIZE): New define.
6845         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
6846
6847 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
6848
6849         PR c++/58724
6850         * doc/extend.texi [visibility ("visibility_type")]: Add example
6851         about visibility attribute on namespace declaration.
6852
6853 2013-11-05  Richard Biener  <rguenther@suse.de>
6854
6855         PR ipa/58492
6856         * passes.def (all_passes): Start with pass_fixup_cfg again.
6857
6858 2013-11-05  Richard Biener  <rguenther@suse.de>
6859
6860         PR tree-optimization/58955
6861         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
6862         edge direction.
6863
6864 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6865
6866         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
6867         little endian.
6868         (vec_pack_ufix_trunc_v2df): Likewise.
6869
6870 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
6871
6872         PR middle-end/58981
6873         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
6874         pattern, instead of word_mode.
6875
6876         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
6877         Pmode for size.
6878         (set_storage_via_setmem): Likewise.
6879
6880 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
6881
6882         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
6883         gimple.h and the rest of the condition in eliminate_build.
6884         (eliminate_build): Call new routine.
6885         * gimple.h (phi_ssa_name_p): Delete.
6886
6887 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
6888
6889         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
6890         case of no prefix and reserving zero slots, because when that's the
6891         case we'll never get here.
6892         * vec.h (va_heap::reserve): Don't try and handle
6893         vec_prefix::calculate_allocation returning zero because that should
6894         never happen.
6895
6896 2013-11-05  Richard Biener  <rguenther@suse.de>
6897
6898         PR middle-end/58941
6899         * tree-dfa.c (get_ref_base_and_extent): Merge common code
6900         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
6901         process trailing array detection before diving into the
6902         view-converted object (and possibly apply some extra offset).
6903
6904 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
6905
6906         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
6907         New function.
6908         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
6909
6910 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
6911
6912         PR tree-optimization/58958
6913         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
6914         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
6915
6916 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
6917
6918         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
6919         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
6920
6921 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
6922
6923         PR tree-optimization/58984
6924         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
6925         set *SIZE_P if non-NULL on success.
6926         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
6927         callers.
6928         (ipcp_transform_function): Likewise.  Punt if size of access
6929         is different from TYPE_SIZE on v->value's type.
6930
6931 2013-11-05  Tobias Burnus  <burnus@net-b.de>
6932
6933         * doc/invoke.texi (-fopenmp-simd): Document new option.
6934         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
6935         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
6936         * tree.c (attribute_value_equal): Ditto.
6937
6938 2013-11-04  Wei Mi  <wmi@google.com>
6939
6940         * sched-rgn.c (add_branch_dependences): Keep insns in
6941         a SCHED_GROUP at the end of BB to remain their location.
6942
6943 2013-11-04  Wei Mi  <wmi@google.com>
6944
6945         * config/i386/i386.c (memory_address_length): Extract a part
6946         of code to rip_relative_addr_p.
6947         (rip_relative_addr_p): New Function.
6948         (ix86_macro_fusion_p): Ditto.
6949         (ix86_macro_fusion_pair_p): Ditto.
6950         * config/i386/i386.h: Add new tune features about macro-fusion.
6951         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6952         * doc/tm.texi: Generated.
6953         * doc/tm.texi.in: Ditto.
6954         * haifa-sched.c (try_group_insn): New Function.
6955         (group_insns_for_macro_fusion): Ditto.
6956         (sched_init): Call group_insns_for_macro_fusion.
6957         * target.def: Add two hooks: macro_fusion_p and
6958         macro_fusion_pair_p.
6959
6960 2013-11-04  Kostya Serebryany  <kcc@google.com>
6961
6962         Update to match the changed asan API.
6963         * asan.c (asan_function_start): New function.
6964         (asan_emit_stack_protection): Update the string stored in the
6965         stack red zone to match new API.  Store the PC of the current
6966         function in the red zone.
6967         (asan_global_struct): Update the __asan_global definition to match
6968         the new API.
6969         (asan_add_global): Ditto.
6970         * asan.h (asan_function_start): New prototype.
6971         * final.c (final_start_function): Call asan_function_start.
6972         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
6973         to __asan_init_v3.
6974
6975 2013-11-04  Wei Mi  <wmi@google.com>
6976
6977         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
6978         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
6979         * config/i386/i386.c (ix86_option_override_internal): Ditto.
6980         (ix86_issue_rate): Ditto.
6981         (ix86_adjust_cost): Ditto.
6982         (ia32_multipass_dfa_lookahead): Ditto.
6983         (ix86_sched_init_global): Ditto.
6984         (get_builtin_code_for_version): Ditto.
6985         * config/i386/i386.h (enum target_cpu_default): Ditto.
6986         (enum processor_type): Ditto.
6987         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6988
6989 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
6990
6991         PR rtl-optimization/58967
6992         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
6993         !lra_in_progress for mode sizes bigger word.
6994
6995 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6996
6997         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
6998         arguments to merge instruction for little endian.
6999         (vec_widen_umult_lo_v16qi): Likewise.
7000         (vec_widen_smult_hi_v16qi): Likewise.
7001         (vec_widen_smult_lo_v16qi): Likewise.
7002         (vec_widen_umult_hi_v8hi): Likewise.
7003         (vec_widen_umult_lo_v8hi): Likewise.
7004         (vec_widen_smult_hi_v8hi): Likewise.
7005         (vec_widen_smult_lo_v8hi): Likewise.
7006
7007 2013-11-04  Ian Lance Taylor  <iant@google.com>
7008
7009         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
7010         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
7011         builtins that take pointers.
7012         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
7013         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
7014         (run_gcc): Pass -fnon-call-exceptions.
7015
7016 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
7017
7018         * optabs.c (expand_vec_perm): Revert one incorrect line from
7019         2013-10-31 change.
7020
7021         PR tree-optimization/58978
7022         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
7023         use_stmt by single_imm_use directly.  Only call single_imm_use
7024         on SSA_NAMEs.
7025
7026 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
7027
7028         PR rtl-optimization/58968
7029         * lra-spills.c (return_regno_p): New function.
7030         (lra_final_code_change): Use it.
7031
7032 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
7033
7034         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
7035         * target.def (float_exceptions_rounding_supported_p): New hook.
7036         * targhooks.c (default_float_exceptions_rounding_supported_p): New
7037         function.
7038         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
7039         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
7040         New @hook.
7041         * doc/tm.texi: Regenerate.
7042         * config.gcc (powerpc*-*-linux*): Set extra_objs.
7043         * config/rs6000/rs6000-linux.c: New file.
7044         * config/rs6000/rs6000-protos.h
7045         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
7046         * config/rs6000/linux.h
7047         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
7048         * config/rs6000/linux64.h
7049         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
7050         * config/rs6000/t-linux (rs6000-linux.o): New rule.
7051         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
7052
7053 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7054
7055         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
7056         Replace the define_insn_and_split with a define_insn and two
7057         define_splits, with the split after reload re-permuting the source
7058         register to its original value.
7059         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
7060         (*vsx_le_perm_store_v8hi): Likewise.
7061         (*vsx_le_perm_store_v16qi): Likewise.
7062
7063 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7064
7065         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
7066         little endian.
7067
7068 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
7069
7070         PR tree-optimization/58946
7071         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
7072         bbs with bbinfo[idx].op != NULL before all blocks with
7073         bbinfo[idx].op == NULL.
7074
7075 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
7076
7077         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
7078         (avr_dump_double_int_hex): Likewise.
7079         (avr_log_vadump): Remove %D and %X handling.
7080         * config/avr/avr.c (avr_double_int_push_digit): Delete.
7081         (avr_map_op_t): Change map from double_int to unsigned int.
7082         (avr_map_op): Update accordingly.
7083         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
7084         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
7085         unsigned ints rather than double_ints.
7086
7087 2013-11-03  Marek Polacek  <polacek@redhat.com>
7088
7089         Implement -fsanitize=vla-bound.
7090         * opts.c (common_handle_option): Handle vla-bound.
7091         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
7092         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
7093         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
7094
7095 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
7096
7097         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
7098         little endian.
7099
7100 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
7101
7102         * config/i386/constraints.md (Ts, Tv): New address constrains.
7103         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
7104         constraint for address_no_seg_operand.
7105         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
7106         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
7107         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
7108         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
7109         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
7110         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
7111         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
7112         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
7113         constraint for vsib_address_operand.
7114
7115 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
7116
7117         * gcse.c (pre_delete): Remove references to regmove from comments.
7118         * recog.c: (validate_replace_rtx_1): Likewise.
7119         * config/rl78/rl78.c: Likewise.
7120         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
7121         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
7122         * common/config/mmix/mmix-common.c: Likewise.
7123
7124 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
7125
7126         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
7127         * gimplify.c (gimplify_compound_lval): Likewise.
7128         * graphite-clast-to-gimple.c (gloog): Likewise.
7129         * graphite-dependences.c (loop_is_parallel_p): Likewise.
7130         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
7131         (limit_scop); Likewise.
7132         (build_scops): Likewise.
7133         (dot_scop): Likewise.
7134         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
7135         (build_scop_drs): Likewise.
7136         (insert_stmts): Likewise.
7137         (insert_out_of_ssa_copy): Likewise.
7138         (remove_phi): Likewise.
7139         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
7140         * hw-doloop.c (discover_loop): Likewise.
7141         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
7142         * tree-dfa.c (dump_enumerated_decls): Likewise.
7143         * tree-if-conv.c (if_convertable_loop_p): Likewise.
7144         * tree-inline.c (tree_function_versioning): Likewise.
7145         * tree-loop-distribution.c (build_rdg): Likewise.
7146         (rdg_flag_vertex_and_dependent): Likewise.
7147         (distribute_loop): Likewise.
7148         * tree-parloops.c (loop_parallel_p): Likewise.
7149         (eliminate_local_variables): Likewise.
7150         (separate_decls_in_region): Likewise.
7151         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
7152         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
7153         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
7154         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
7155         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
7156         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7157         (vectorizable_condition): Likewise.
7158
7159 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
7160
7161         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
7162         * configure: Regenerate.
7163         * config/i386/i386.md (*movdi_internal): Change
7164         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
7165         (*movdf_internal): Ditto.
7166         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
7167         * config/i386/sse.md (vec_concatv2di): Output interunit movq
7168         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
7169
7170 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
7171
7172         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
7173         after comment.
7174
7175 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7176
7177         Automated part of renaming of symtab_node_base to symtab_node.
7178
7179         Patch autogenerated by rename_symtab.py from
7180         https://github.com/davidmalcolm/gcc-refactoring-scripts
7181         revision 58bb219cc090b2f4516a9297d868c245495ee622
7182         with ChangeLog entry fixed up by hand.
7183
7184         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
7185         symtab_node.
7186         (cgraph_node_for_asm): Likewise.
7187         * cgraph.h (symtab_node_base): Likewise.
7188         (cgraph_node): Likewise.
7189         (varpool_node): Likewise.
7190         (is_a_helper <cgraph_node>::test): Likewise.
7191         (is_a_helper <varpool_node>::test): Likewise.
7192         (symtab_nodes): Likewise.
7193         (symtab_register_node): Likewise.
7194         (symtab_unregister_node): Likewise.
7195         (symtab_remove_node): Likewise.
7196         (symtab_get_node): Likewise.
7197         (symtab_node_for_asm): Likewise.
7198         (symtab_node_asm_name): Likewise.
7199         (symtab_node_name): Likewise.
7200         (symtab_insert_node_to_hashtable): Likewise.
7201         (symtab_add_to_same_comdat_group): Likewise.
7202         (symtab_dissolve_same_comdat_group_list): Likewise.
7203         (dump_symtab_node): Likewise.
7204         (debug_symtab_node): Likewise.
7205         (dump_symtab_base): Likewise.
7206         (verify_symtab_node): Likewise.
7207         (verify_symtab_base): Likewise.
7208         (symtab_used_from_object_file_p): Likewise.
7209         (symtab_alias_ultimate_target): Likewise.
7210         (symtab_resolve_alias): Likewise.
7211         (fixup_same_cpp_alias_visibility): Likewise.
7212         (symtab_for_node_and_aliases): Likewise.
7213         (symtab_nonoverwritable_alias): Likewise.
7214         (availability symtab_node_availability): Likewise.
7215         (symtab_semantically_equivalent_p): Likewise.
7216         (fixup_same_cpp_alias_visibility): Likewise.
7217         (symtab_prevail_in_asm_name_hash): Likewise.
7218         (cgraph): Likewise.
7219         (varpool): Likewise.
7220         (varpool_first_variable): Likewise.
7221         (varpool_next_variable): Likewise.
7222         (varpool_first_static_initializer): Likewise.
7223         (varpool_next_static_initializer): Likewise.
7224         (varpool_first_defined_variable): Likewise.
7225         (varpool_next_defined_variable): Likewise.
7226         (cgraph_first_defined_function): Likewise.
7227         (cgraph_next_defined_function): Likewise.
7228         (cgraph_first_function): Likewise.
7229         (cgraph_next_function): Likewise.
7230         (cgraph_first_function_with_gimple_body): Likewise.
7231         (cgraph_next_function_with_gimple_body): Likewise.
7232         (symtab_alias_target): Likewise.
7233         (symtab_real_symbol_p): Likewise.
7234         (symtab_can_be_discarded): Likewise.
7235         * cgraphbuild.c (mark_address): Likewise.
7236         (mark_load): Likewise.
7237         (mark_store): Likewise.
7238         * cgraphunit.c (decide_is_symbol_needed): Likewise.
7239         (first): Likewise.
7240         (enqueue_node): Likewise.
7241         (referred_to_p): Likewise.
7242         (cgraph_process_same_body_aliases): Likewise.
7243         (analyze_functions): Likewise.
7244         (handle_alias_pairs): Likewise.
7245         (output_weakrefs): Likewise.
7246         (compile): Likewise.
7247         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7248         * ipa-inline-analysis.c (inline_write_summary): Likewise.
7249         * ipa-prop.c (remove_described_reference): Likewise.
7250         (try_decrement_rdesc_refcount): Likewise.
7251         (ipa_edge_duplication_hook): Likewise.
7252         * ipa-ref.c (ipa_record_reference): Likewise.
7253         (ipa_maybe_record_reference): Likewise.
7254         (ipa_clone_ref): Likewise.
7255         (ipa_clone_references): Likewise.
7256         (ipa_clone_referring): Likewise.
7257         (ipa_find_reference): Likewise.
7258         (ipa_remove_stmt_references): Likewise.
7259         (ipa_clear_stmts_in_references): Likewise.
7260         * ipa-ref.h (symtab_node_base): Likewise.
7261         (ipa_ref): Likewise.
7262         (ipa_record_reference): Likewise.
7263         (ipa_maybe_record_reference): Likewise.
7264         (ipa_clone_references): Likewise.
7265         (ipa_clone_referring): Likewise.
7266         (ipa_clone_ref): Likewise.
7267         (ipa_find_reference): Likewise.
7268         (ipa_remove_stmt_references): Likewise.
7269         (ipa_clear_stmts_in_references): Likewise.
7270         * ipa-reference.c (ipa_reference_write_optimization_summary):
7271         Likewise.
7272         * ipa.c (enqueue_node): Likewise.
7273         (process_references): Likewise.
7274         (walk_polymorphic_call_targets): Likewise.
7275         (symtab_remove_unreachable_nodes): Likewise.
7276         (address_taken_from_non_vtable_p): Likewise.
7277         (comdat_can_be_unshared_p_1): Likewise.
7278         (comdat_can_be_unshared_p): Likewise.
7279         (can_replace_by_local_alias): Likewise.
7280         (function_and_variable_visibility): Likewise.
7281         * is-a.h: Likewise (within example in comment).
7282         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
7283         (lto_symtab_encoder_encode): Likewise.
7284         (lto_symtab_encoder_delete_node): Likewise.
7285         (lto_symtab_encoder_in_partition_p): Likewise.
7286         (lto_set_symtab_encoder_in_partition): Likewise.
7287         (output_refs): Likewise.
7288         (compute_ltrans_boundary): Likewise.
7289         (output_symtab): Likewise.
7290         (input_node): Likewise.
7291         (input_ref): Likewise.
7292         (input_edge): Likewise.
7293         (input_cgraph_1): Likewise.
7294         (input_refs): Likewise.
7295         (output_cgraph_opt_summary): Likewise.
7296         (input_node_opt_summary): Likewise.
7297         (input_cgraph_opt_section): Likewise.
7298         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7299         Likewise.
7300         * lto-streamer-out.c (lto_output): Likewise.
7301         (output_symbol_p): Likewise.
7302         (produce_symtab): Likewise.
7303         * lto-streamer.h (lto_encoder_entry): Likewise.
7304         (lto_free_function_in_decl_state_for_node): Likewise.
7305         (lto_symtab_encoder_encode): Likewise.
7306         (lto_symtab_encoder_delete_node): Likewise.
7307         (lto_symtab_encoder_in_partition_p): Likewise.
7308         (lto_set_symtab_encoder_in_partition): Likewise.
7309         (lto_symtab_encoder_lookup): Likewise.
7310         (lsei_node): Likewise.
7311         (lto_symtab_encoder_deref): Likewise.
7312         * symtab.c (symtab_hash): Likewise.
7313         (assembler_name_hash): Likewise.
7314         (symtab_nodes): Likewise.
7315         (hash_node): Likewise.
7316         (eq_node): Likewise.
7317         (hash_node_by_assembler_name): Likewise.
7318         (eq_assembler_name): Likewise.
7319         (insert_to_assembler_name_hash): Likewise.
7320         (unlink_from_assembler_name_hash): Likewise.
7321         (symtab_prevail_in_asm_name_hash): Likewise.
7322         (symtab_register_node): Likewise.
7323         (symtab_insert_node_to_hashtable): Likewise.
7324         (symtab_unregister_node): Likewise.
7325         (symtab_get_node): Likewise.
7326         (symtab_remove_node): Likewise.
7327         (symtab_initialize_asm_name_hash): Likewise.
7328         (symtab_node_for_asm): Likewise.
7329         (symtab_add_to_same_comdat_group): Likewise.
7330         (symtab_dissolve_same_comdat_group_list): Likewise.
7331         (symtab_node_asm_name): Likewise.
7332         (symtab_node_name): Likewise.
7333         (dump_symtab_base): Likewise.
7334         (dump_symtab_node): Likewise.
7335         (dump_symtab): Likewise.
7336         (debug_symtab_node): Likewise.
7337         (verify_symtab_base): Likewise.
7338         (verify_symtab_node): Likewise.
7339         (verify_symtab): Likewise.
7340         (symtab_used_from_object_file_p): Likewise.
7341         (symtab_node_availability): Likewise.
7342         (symtab_alias_ultimate_target): Likewise.
7343         (fixup_same_cpp_alias_visibility): Likewise.
7344         (symtab_resolve_alias): Likewise.
7345         (symtab_for_node_and_aliases): Likewise.
7346         (symtab_for_node_and_aliases): Likewise.
7347         (symtab_nonoverwritable_alias_1): Likewise.
7348         (symtab_nonoverwritable_alias): Likewise.
7349         (symtab_semantically_equivalent_p): Likewise.
7350         * value-prof.c (init_node_map): Likewise.
7351         * varasm.c (find_decl): Likewise.
7352         * varpool.c (varpool_node_for_asm): Likewise.
7353         (varpool_remove_unreferenced_decls): Likewise.
7354
7355 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7356
7357         Manual part of renaming of symtab_node_base to symtab_node.
7358
7359         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
7360         clashes with the preferred name for the base class.
7361         (const_symtab_node): Remove redundant typedef.
7362
7363 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7364
7365         * optabs.c (expand_vec_perm): Avoid vector mode punning
7366         SUBREGs in SET_DEST.
7367         * expmed.c (store_bit_field_1): Likewise.
7368         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
7369         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
7370         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
7371         * config/i386/i386.c (ix86_expand_vector_move_misalign,
7372         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
7373         ix86_expand_sse_unpack, ix86_expand_args_builtin,
7374         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
7375         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
7376         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
7377         expand_vec_perm_vpshufb2_vpermq,
7378         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
7379         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
7380         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
7381         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
7382         than *d itself.
7383
7384 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
7385
7386         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
7387         Use gcc_unreachable for unhandled modes.  Do not check results of
7388         expand_simple_binop.  If not expanded to target, move the result.
7389
7390 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
7391             Shiva Chen  <shiva0217@gmail.com>
7392
7393         * config.gcc (nds32*-*-*): Add nds32 target.
7394         * config/nds32/nds32.c: New file.
7395         * config/nds32/nds32.h: New file.
7396         * config/nds32/nds32.md: New file.
7397         * config/nds32/constants.md: New file.
7398         * config/nds32/constraints.md: New file.
7399         * config/nds32/iterators.md: New file.
7400         * config/nds32/nds32-doubleword.md: New file.
7401         * config/nds32/nds32-intrinsic.md: New file.
7402         * config/nds32/nds32_intrinsic.h: New file.
7403         * config/nds32/nds32-modes.def: New file.
7404         * config/nds32/nds32-multiple.md: New file.
7405         * config/nds32/nds32.opt: New file.
7406         * config/nds32/nds32-opts.h: New file.
7407         * config/nds32/nds32-protos.h: New file.
7408         * config/nds32/nds32-peephole2.md: New file.
7409         * config/nds32/pipelines.md: New file.
7410         * config/nds32/predicates.md: New file.
7411         * config/nds32/t-mlibs: New file.
7412         * common/config/nds32: New directory and files.
7413
7414         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
7415         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
7416         * doc/install.texi (Cross-Compiler-Specific Options): Document
7417         --with-nds32-lib for nds32 target.
7418         * doc/extend.texi (Function Attributes, Target Builtins): Document
7419         nds32 specific attributes.
7420
7421 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
7422
7423         * lra-constraints (process_alt_operands): Use the result
7424         elimination register for operand when matching constraints.
7425
7426 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7427
7428         * tree-vrp.c (maybe_set_nonzero_bits): New function.
7429         (remove_range_assertions): Call it.
7430
7431         * tree.c (tree_ctz): New function.
7432         * tree.h (tree_ctz): New prototype.
7433         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
7434         first argument from tree to const_tree.
7435         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
7436         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
7437         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
7438         static.
7439         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
7440         * tree-vect-loop.c (vect_analyze_loop_operations,
7441         vect_transform_loop): Don't force scalar loop for bound just because
7442         number of iterations is unknown, only do it if it is not known to be
7443         a multiple of vectorization_factor.
7444         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
7445
7446         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
7447         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
7448         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
7449         (set_nonzero_bits, get_nonzero_bits): New prototypes.
7450         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
7451         a default def isn't partially constant.
7452         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
7453         is known to be partially zero.
7454         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
7455         to see if a default def isn't partially constant.
7456         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
7457         creation of a range, if VR_RANGE, try to improve nonzero_bits from
7458         the range.
7459         (set_nonzero_bits, get_nonzero_bits): New functions.
7460
7461         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
7462         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
7463         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
7464         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
7465         uses but in the condition and ASSERT_EXPR and the other successor of
7466         the predecessor bb is __builtin_unreachable (), set_range_info of the
7467         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
7468
7469 2013-10-31  Martin Jambor  <mjambor@suse.cz>
7470
7471         PR rtl-optimization/58934
7472         Revert:
7473         2013-10-30  Martin Jambor  <mjambor@suse.cz>
7474         PR rtl-optimization/10474
7475         * ira.c (find_moveable_pseudos): Do not calculate dominance info
7476         nor df analysis.
7477         (interesting_dest_for_shprep): New function.
7478         (split_live_ranges_for_shrink_wrap): Likewise.
7479         (ira): Calculate dominance info and df analysis. Call
7480         split_live_ranges_for_shrink_wrap.
7481
7482 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
7483             Yury Gribov  <y.gribov@samsung.com>
7484
7485         PR sanitizer/58543
7486         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
7487         shadow pointer to avoid clobbering the main one.
7488
7489 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7490
7491         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
7492
7493 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7494
7495         PR bootstrap/58933
7496         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
7497         it for calling update_costs_from_allocno.
7498         (assign_hard_reg): Call restore_costs_from_copies only for
7499         !retry_p.  Pass new argument to update_costs_from_copies.
7500         (color_pass): Pass new argument to update_costs_from_copies.
7501         (ira_mark_allocation_change): Ditto.
7502
7503 2013-10-30  Sharad Singhai  <singhai@google.com>
7504
7505         PR middle-end/58134
7506         * opts.c (common_handle_option): Remove deprecated option
7507         -ftree-vectorizer-verbose.
7508         * doc/invoke.texi (Debugging Options): Ditto.
7509         * opts-global.c (handle_common_deferred_options): Ditto.
7510         (dump_remap_tree_vectorizer_verbose): Delete.
7511         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
7512
7513 2013-10-30  DJ Delorie  <dj@redhat.com>
7514
7515         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
7516         that take no arguments.
7517
7518 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7519
7520         PR other/58545
7521         * reload1.c (update_eliminables_and_spill): New function, broken
7522         out of reload.
7523         (reload): Use it.  Check for frame size change after frame size
7524         alignment, and call update_eliminables_and_spill first if continue-ing.
7525
7526 2013-10-30  Cong Hou  <congh@google.com>
7527
7528         PR target/58762
7529         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
7530         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
7531         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
7532
7533 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
7534
7535         PR rtl-optimization/58369
7536         * reload1.c (compute_reload_subreg_offset): New function.
7537         (choose_reload_regs): Use it to pass endian-correct
7538         offset to subreg_regno_offset.
7539
7540 2013-10-30  Tobias Burnus  <burnus@net-b.de>
7541
7542         PR other/33426
7543         * tree-cfg.c (replace_loop_annotate): Replace warning by
7544         warning_at.
7545
7546 2013-10-30  Jason Merrill  <jason@redhat.com>
7547
7548         * configure.ac (loose_warn): Add -Wno-format if
7549         --disable-build-format-warnings.
7550
7551 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
7552
7553         * cgraphunit.c (analyze_functions): Split symtab_node declarations
7554         onto multiple lines to make things easier for rename_symtab.py.
7555
7556         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
7557         (symtab_semantically_equivalent_p): Likewise.
7558
7559 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7560
7561         PR target/58784
7562         * lra.c (check_rtl): Remove address check before LRA work.
7563
7564 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
7565
7566         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
7567         POINTER_PLUS_EXPR in the defining statement.
7568
7569 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7570
7571         * regmove.c: Remove.
7572         * tree-pass.h (make_pass_regmove): Remove.
7573         * timevar.def (TV_REGMOVE): Remove.
7574         * passes.def (pass_regmove): Remove.
7575         * opts.c (default_options_table): Remove entry for regmove.
7576         * doc/passes.texi: Remove regmove pass description.
7577         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
7578         options.
7579         (-fdump-rtl-regmove): Ditto.
7580         * common.opt (foptimize-register-move, fregmove): Ignore.
7581         * Makefile.in (OBJS): Remove regmove.o.
7582         * regmove.c: Remove.
7583         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
7584         and type.
7585         (struct ira_allocno) New member allocno_prefs.
7586         (ALLOCNO_PREFS): New macro.
7587         (ira_prefs, ira_prefs_num): New external vars.
7588         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
7589         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
7590         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
7591         Ditto.
7592         (ira_add_allocno_copy_to_list): Remove prototype.
7593         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
7594         (ira_pref_iterator): New type.
7595         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
7596         (FOR_EACH_PREF): New macro.
7597         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
7598         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
7599         code.
7600         (ira_setup_alts): New function.
7601         (decrease_live_ranges_number): New function.
7602         (ira): Call the above function.
7603         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
7604         (ira_create_allocno): Initialize allocno prefs.
7605         (pref_pool, pref_vec): New static vars.
7606         (initiate_prefs, find_allocno_pref, ira_create_pref): New
7607         functions.
7608         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
7609         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
7610         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
7611         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
7612         (ira_add_allocno_copy_to_list): Make static.  Rename to
7613         add_allocno_copy_to_list.
7614         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
7615         swap_allocno_copy_ends_if_necessary.
7616         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
7617         ira_remove_allocno_prefs.
7618         (ira_flattening): Ditto.
7619         (ira_build): Call initiate_prefs, print_prefs.
7620         (ira_destroy): Call finish_prefs.
7621         * ira-color.c (struct update_cost_record): New.
7622         (struct allocno_color_data): Add new member update_cost_records.
7623         (update_cost_record_pool): New static var.
7624         (init_update_cost_records, get_update_cost_record): New functions.
7625         (free_update_cost_record_list, finish_update_cost_records): Ditto.
7626         (struct update_cost_queue_elem): Add member from.
7627         (initiate_cost_update): Call init_update_cost_records.
7628         (finish_cost_update): Call finish_update_cost_records.
7629         (queue_update_cost, get_next_update_cost): Add new param from.
7630         (Update_allocno_cost, update_costs_from_allocno): New functions.
7631         (update_costs_from_prefs): Ditto.
7632         (update_copy_costs): Rename to update_costs_from_copies.
7633         (restore_costs_from_copies): New function.
7634         (update_conflict_hard_regno_costs): Don't go back.
7635         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
7636         more debug info.
7637         (pop_allocnos): Add priniting more debug info.
7638         (color_allocnos): Remove prefs for conflicting hard regs.
7639         Call update_costs_from_prefs.
7640         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
7641         (get_dup_num): Rename, modify, and move to ira.c
7642         (process_regs_for_copy): Add prefs.
7643         (add_insn_allocno_copies): Put src as first arg of
7644         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
7645         * ira-costs.c (record_reg_classes): Modify and move code into
7646         record_operands_costs.
7647         (find_costs_and_classes): Create prefs for the hard reg of small
7648         reg class.
7649         (process_bb_node_for_hard_reg_moves): Add prefs.
7650
7651 2013-10-30  Richard Biener  <rguenther@suse.de>
7652
7653         PR middle-end/57100
7654         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
7655         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
7656         as worker for ...
7657         (pre_and_rev_post_order_compute): ... which now wraps it.
7658         * graph.c (draw_cfg_nodes_no_loops): Use
7659         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
7660         on cfun.
7661
7662 2013-10-30  Christian Bruel  <christian.bruel@st.com>
7663
7664         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
7665         (sh_expand_cmpstr): Handle known align and schedule improvements.
7666         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
7667         * config/sh/sh.md (cmpstrnsi): New pattern.
7668
7669 2013-10-30  Martin Jambor  <mjambor@suse.cz>
7670
7671         PR rtl-optimization/10474
7672         * ira.c (find_moveable_pseudos): Do not calculate dominance info
7673         nor df analysis.
7674         (interesting_dest_for_shprep): New function.
7675         (split_live_ranges_for_shrink_wrap): Likewise.
7676         (ira): Calculate dominance info and df analysis. Call
7677         split_live_ranges_for_shrink_wrap.
7678
7679 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7680
7681         PR target/58854
7682         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
7683
7684 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7685
7686         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
7687         * tree.h (POINTER_BOUNDS_P): New.
7688         (BOUNDED_TYPE_P): New.
7689         (BOUNDED_P): New.
7690         (pointer_bounds_type_node): New.
7691         * tree.c (build_common_tree_nodes): Initialize
7692         pointer_bounds_type_node.
7693         * gimple.h (gimple_call_get_nobnd_arg_index): New.
7694         (gimple_call_num_nobnd_args): New.
7695         (gimple_call_nobnd_arg): New.
7696         (gimple_return_retbnd): New.
7697         (gimple_return_set_retbnd): New
7698         * gimple.c (gimple_build_return): Increase number of ops
7699         for return statement.
7700         (gimple_call_get_nobnd_arg_index): New.
7701         * gimple-pretty-print.c (dump_gimple_return): Print second op.
7702
7703 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7704
7705         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
7706         with "chkp ctor" and "bnd_legacy" attributes.
7707         * gimplify.c (gimplify_init_constructor): Avoid infinite
7708         loop during gimplification of bounds initializer.
7709
7710 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7711
7712         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
7713         (handle_bnd_legacy): New.
7714         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
7715         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
7716         attributes.
7717
7718 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
7719
7720         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
7721         (BT_FN_PTR_CONST_PTR): New.
7722         (BT_FN_CONST_PTR_CONST_PTR): New.
7723         (BT_FN_PTR_CONST_PTR_SIZE): New.
7724         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
7725         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
7726         (BT_FN_VOID_CONST_PTR_SIZE): New.
7727         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
7728         * chkp-builtins.def: New.
7729         * builtins.def: include chkp-builtins.def.
7730         (DEF_CHKP_BUILTIN): New.
7731         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
7732         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
7733         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
7734         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
7735         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
7736         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
7737         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
7738         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
7739         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
7740         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
7741         * common.opt (fcheck-pointer-bounds): New.
7742         * toplev.c (process_options): Check Pointer Bounds Checker is
7743         supported.
7744         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
7745
7746 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7747
7748         * target.def (builtin_chkp_function): New.
7749         (chkp_bound_type): New.
7750         (chkp_bound_mode): New.
7751         (fn_abi_va_list_bounds_size): New.
7752         (load_bounds_for_arg): New.
7753         (store_bounds_for_arg): New.
7754         * targhooks.h (default_load_bounds_for_arg): New.
7755         (default_store_bounds_for_arg): New.
7756         (default_fn_abi_va_list_bounds_size): New.
7757         (default_chkp_bound_type): New.
7758         (default_chkp_bound_mode): New.
7759         (default_builtin_chkp_function): New.
7760         * targhooks.c (default_load_bounds_for_arg): New.
7761         (default_store_bounds_for_arg): New.
7762         (default_fn_abi_va_list_bounds_size): New.
7763         (default_chkp_bound_type): New.
7764         (default_chkp_bound_mode); New.
7765         (default_builtin_chkp_function): New.
7766         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
7767         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
7768         (TARGET_STORE_BOUNDS_FOR_ARG): New.
7769         (TARGET_BUILTIN_CHKP_FUNCTION): New.
7770         (TARGET_CHKP_BOUND_TYPE): New.
7771         (TARGET_CHKP_BOUND_MODE): New.
7772         * doc/tm.texi: Regenerated.
7773         * langhooks.h (lang_hooks): Add chkp_supported field.
7774         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
7775         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
7776
7777 2013-10-29  Andrew Pinski <apinski@cavium.com>
7778
7779         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
7780         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
7781         fails, combining the branches anyways.
7782         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
7783         increases the number of combinings.
7784         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
7785
7786 2013-10-29  Mike Stump  <mikestump@comcast.net>
7787
7788         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
7789         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
7790         (make_vector_mode): Increase namebuf to 16.
7791         (emit_insn_modes_h): When processing BImode, don't
7792         also match partial int modes.
7793         (emit_class_narrowest_mode): Likewise.
7794
7795         * config/bfin/bfin-modes.def: Add precision to PDI.
7796         * config/m32c/m32c-modes.def: Add precision to PSI.
7797         * config/msp430/msp430-modes.def: Add precision to PSI.
7798         * config/rs6000/rs6000-modes.def: Add precision to PTI.
7799         * config/sh/sh-modes.def: Add precision to PSI and PDI.
7800
7801 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
7802
7803         PR target/54236
7804         * config/sh/sh.md (*addc): Rename existing variations to ...
7805         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
7806         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
7807         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
7808         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
7809
7810 2013-10-29  Teresa Johnson  <tejohnson@google.com>
7811
7812         PR ipa/58862
7813         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
7814         insanities when updating probabilities.
7815
7816 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7817
7818         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
7819         prettyprinter for cgraph_node to reflect the conversion of the
7820         symtable types to a C++ class hierarchy: it now *is* a
7821         symtab_node_base, rather than having one (named "symbol").
7822
7823 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7824
7825         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
7826         __cilkrts_pop_frame.  If matched, then return true for built-in
7827         function name.
7828         (expand_builtin): Added BUILT_IN_CILK_DETACH and
7829         BUILT_IN_CILK_POP_FRAME case.
7830         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
7831         (lhs_cilk_detect_spawn): Likewise.
7832         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
7833         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
7834         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
7835         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
7836         (LANG_HOOKS_CILKPLUS): Likewise.
7837         * tree.h (CILK_SPAWN_FN): Likewise.
7838         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
7839         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
7840         (OBJS): Added cilk-common.o.
7841         (BUILTINS_DEF): Added cilk-builtins.def.
7842         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
7843         (lhd_cilk_detect_spawn): Likewise.
7844         * langhooks.h (lang_hooks_for_cilkplus): New struct.
7845         (struct lang_hooks): Added new field called "cilkplus."
7846         * cilk-common.c: New file.
7847         * cilk.h: Likewise.
7848         * cilk-builtins.def: Likewise.
7849         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
7850         "__cilk" macro and set it to 200.
7851         * function.h (struct function::cilk_frame_decl): New field.
7852         (struct function::is_cilk_function): Likewise.
7853         (struct function::calls_cilk_spawn): Likewise.
7854         * gimplify.c (gimplify_call_expr): Added a check if the function call
7855         being gimplified is a spawn detach point.  If so, then add pop_frame
7856         and detach function calls.
7857         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
7858         for gimplifying _Cilk_spawn and _Cilk_sync statements.
7859         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
7860         function.  If so, added a _Cilk_sync and gimplified it.
7861         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
7862         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
7863         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
7864         spawner function.
7865         (can_inline_edge_p): Prevent inling of spawnee function.
7866         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
7867         for functions that use Cilk keywords.
7868         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
7869         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
7870         CILK_SYNC_STMT cases.
7871         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
7872         trees.
7873         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
7874         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
7875         * passes.texi (Cilk Keywords): New section that describes the compiler
7876         code changes for handling Cilk Keywords.
7877
7878 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7879
7880         Patch autogenerated by refactor_symtab.py from
7881         https://github.com/davidmalcolm/gcc-refactoring-scripts
7882         revision 58bb219cc090b2f4516a9297d868c245495ee622
7883
7884         * asan.c (asan_finish_file): Update for conversion of symtab types to
7885         a true class hierarchy.
7886         * cfgexpand.c (estimated_stack_frame_size): Likewise.
7887         * cgraph.c (cgraph_get_body): Likewise.
7888         (cgraph_get_create_real_symbol_node): Likewise.
7889         (verify_cgraph_node): Likewise.
7890         (verify_edge_corresponds_to_fndecl): Likewise.
7891         (verify_edge_count_and_frequency): Likewise.
7892         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
7893         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
7894         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
7895         (cgraph_node_cannot_return): Likewise.
7896         (cgraph_set_pure_flag_1): Likewise.
7897         (cgraph_set_const_flag_1): Likewise.
7898         (cgraph_set_nothrow_flag_1): Likewise.
7899         (cgraph_make_node_local_1): Likewise.
7900         (cgraph_for_node_and_aliases): Likewise.
7901         (cgraph_for_node_thunks_and_aliases): Likewise.
7902         (cgraph_node_can_be_local_p): Likewise.
7903         (cgraph_node_cannot_be_local_p_1): Likewise.
7904         (cgraph_function_body_availability): Likewise.
7905         (dump_cgraph_node): Likewise.
7906         (cgraph_rtl_info): Likewise.
7907         (cgraph_mark_address_taken_node): Likewise.
7908         (cgraph_remove_node): Likewise.
7909         (cgraph_release_function_body): Likewise.
7910         (cgraph_update_edges_for_call_stmt_node): Likewise.
7911         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
7912         (cgraph_make_edge_direct): Likewise.
7913         (cgraph_resolve_speculation): Likewise.
7914         (cgraph_speculative_call_info): Likewise.
7915         (cgraph_turn_edge_to_speculative): Likewise.
7916         (cgraph_create_edge_1): Likewise.
7917         (cgraph_set_call_stmt): Likewise.
7918         (cgraph_node_for_asm): Likewise.
7919         (cgraph_add_thunk): Likewise.
7920         (cgraph_same_body_alias): Likewise.
7921         (cgraph_create_function_alias): Likewise.
7922         (cgraph_create_node): Likewise.
7923         (cgraph_create_empty_node): Likewise.
7924         (record_function_versions): Likewise.
7925         (used_from_object_file_p): Likewise.
7926         * cgraph.h (symtab_can_be_discarded): Likewise.
7927         (symtab_real_symbol_p): Likewise.
7928         (cgraph_mark_force_output_node): Likewise.
7929         (cgraph_edge_recursive_p): Likewise.
7930         (symtab_alias_target): Likewise.
7931         (varpool_all_refs_explicit_p): Likewise.
7932         (varpool_can_remove_if_no_refs): Likewise.
7933         (cgraph_only_called_directly_or_aliased_p): Likewise.
7934         (cgraph_next_function_with_gimple_body): Likewise.
7935         (cgraph_first_function_with_gimple_body): Likewise.
7936         (cgraph_function_with_gimple_body_p): Likewise.
7937         (cgraph_next_function): Likewise.
7938         (cgraph_first_function): Likewise.
7939         (cgraph_next_defined_function): Likewise.
7940         (cgraph_first_defined_function): Likewise.
7941         (varpool_next_defined_variable): Likewise.
7942         (varpool_first_defined_variable): Likewise.
7943         (varpool_next_static_initializer): Likewise.
7944         (varpool_first_static_initializer): Likewise.
7945         (varpool_next_variable): Likewise.
7946         (varpool_first_variable): Likewise.
7947         (varpool_node_name): Likewise.
7948         (varpool): Likewise.
7949         (cgraph): Likewise.
7950         (is_a_helper <varpool_node>::test): Likewise.
7951         (is_a_helper <cgraph_node>::test): Likewise.
7952         (varpool_variable_node): Likewise.
7953         (cgraph_function_or_thunk_node): Likewise.
7954         (varpool_alias_target): Likewise.
7955         (cgraph_alias_target): Likewise.
7956         (cgraph_node_name): Likewise.
7957         (varpool_node_asm_name): Likewise.
7958         (cgraph_node_asm_name): Likewise.
7959         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
7960         (cgraph_rebuild_references): Likewise.
7961         (rebuild_cgraph_edges): Likewise.
7962         (record_eh_tables): Likewise.
7963         (build_cgraph_edges): Likewise.
7964         (mark_store): Likewise.
7965         (mark_load): Likewise.
7966         (mark_address): Likewise.
7967         (record_type_list): Likewise.
7968         (record_reference): Likewise.
7969         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
7970         (cgraph_materialize_clone): Likewise.
7971         (cgraph_function_versioning): Likewise.
7972         (cgraph_copy_node_for_versioning): Likewise.
7973         (update_call_expr): Likewise.
7974         (cgraph_find_replacement_node): Likewise.
7975         (cgraph_create_virtual_clone): Likewise.
7976         (cgraph_clone_node): Likewise.
7977         * cgraphunit.c (compile): Likewise.
7978         (output_weakrefs): Likewise.
7979         (output_in_order): Likewise.
7980         (expand_function): Likewise.
7981         (assemble_thunks_and_aliases): Likewise.
7982         (expand_thunk): Likewise.
7983         (mark_functions_to_output): Likewise.
7984         (handle_alias_pairs): Likewise.
7985         (analyze_functions): Likewise.
7986         (walk_polymorphic_call_targets): Likewise.
7987         (varpool_finalize_decl): Likewise.
7988         (process_function_and_variable_attributes): Likewise.
7989         (cgraph_process_same_body_aliases): Likewise.
7990         (analyze_function): Likewise.
7991         (cgraph_add_new_function): Likewise.
7992         (cgraph_finalize_function): Likewise.
7993         (referred_to_p): Likewise.
7994         (cgraph_reset_node): Likewise.
7995         (cgraph_process_new_functions): Likewise.
7996         (enqueue_node): Likewise.
7997         (decide_is_symbol_needed): Likewise.
7998         * coverage.c (coverage_compute_profile_id): Likewise.
7999         * dbxout.c (dbxout_expand_expr): Likewise.
8000         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
8001         (reference_to_unused): Likewise.
8002         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
8003         * gimplify.c (unvisit_body): Likewise.
8004         (unshare_body): Likewise.
8005         * ipa-cp.c (ipcp_generate_summary): Likewise.
8006         (ipcp_decision_stage): Likewise.
8007         (identify_dead_nodes): Likewise.
8008         (decide_whether_version_node): Likewise.
8009         (decide_about_value): Likewise.
8010         (perhaps_add_new_callers): Likewise.
8011         (create_specialized_node): Likewise.
8012         (update_profiling_info): Likewise.
8013         (ipcp_propagate_stage): Likewise.
8014         (estimate_local_effects): Likewise.
8015         (good_cloning_opportunity_p): Likewise.
8016         (devirtualization_time_bonus): Likewise.
8017         (propagate_constants_accross_call): Likewise.
8018         (initialize_node_lattices): Likewise.
8019         (ipcp_cloning_candidate_p): Likewise.
8020         (determine_versionability): Likewise.
8021         (print_all_lattices): Likewise.
8022         (print_lattice): Likewise.
8023         (ipcp_discover_new_direct_edges): Likewise.
8024         * ipa-devirt.c (ipa_devirt): Likewise.
8025         (likely_target_p): Likewise.
8026         (update_type_inheritance_graph): Likewise.
8027         (possible_polymorphic_call_target_p): Likewise.
8028         (dump_possible_polymorphic_call_targets): Likewise.
8029         (devirt_variable_node_removal_hook): Likewise.
8030         (record_binfo): Likewise.
8031         (maybe_record_node): Likewise.
8032         (build_type_inheritance_graph): Likewise.
8033         * ipa-inline-analysis.c (inline_write_summary): Likewise.
8034         (inline_generate_summary): Likewise.
8035         (inline_analyze_function): Likewise.
8036         (do_estimate_growth): Likewise.
8037         (simple_edge_hints): Likewise.
8038         (estimate_node_size_and_time): Likewise.
8039         (estimate_edge_devirt_benefit): Likewise.
8040         (compute_inline_parameters): Likewise.
8041         (estimate_function_body_sizes): Likewise.
8042         (compute_bb_predicates): Likewise.
8043         (initialize_inline_failed): Likewise.
8044         (dump_inline_summary): Likewise.
8045         (dump_inline_edge_summary): Likewise.
8046         * ipa-inline-transform.c (inline_transform): Likewise.
8047         (preserve_function_body_p): Likewise.
8048         (save_inline_function_body): Likewise.
8049         (inline_call): Likewise.
8050         (clone_inlined_nodes): Likewise.
8051         (can_remove_node_now_p): Likewise.
8052         (can_remove_node_now_p_1): Likewise.
8053         * ipa-inline.c (early_inliner): Likewise.
8054         (early_inline_small_functions): Likewise.
8055         (inline_always_inline_functions): Likewise.
8056         (ipa_inline): Likewise.
8057         (flatten_function): Likewise.
8058         (inline_small_functions): Likewise.
8059         (speculation_useful_p): Likewise.
8060         (recursive_inlining): Likewise.
8061         (update_caller_keys): Likewise.
8062         (reset_edge_caches): Likewise.
8063         (update_edge_key): Likewise.
8064         (edge_badness): Likewise.
8065         (relative_time_benefit): Likewise.
8066         (want_inline_self_recursive_call_p): Likewise.
8067         (want_inline_small_function_p): Likewise.
8068         (want_early_inline_function_p): Likewise.
8069         (num_calls): Likewise.
8070         (can_early_inline_edge_p): Likewise.
8071         (can_inline_edge_p): Likewise.
8072         (report_inline_failed_reason): Likewise.
8073         * ipa-profile.c (ipa_profile): Likewise.
8074         (ipa_propagate_frequency): Likewise.
8075         (ipa_propagate_frequency_1): Likewise.
8076         (ipa_profile_generate_summary): Likewise.
8077         * ipa-prop.c (ipcp_transform_function): Likewise.
8078         (read_replacements_section): Likewise.
8079         (ipa_prop_read_section): Likewise.
8080         (ipa_modify_call_arguments): Likewise.
8081         (ipa_print_node_params): Likewise.
8082         (propagate_controlled_uses): Likewise.
8083         (update_indirect_edges_after_inlining): Likewise.
8084         (remove_described_reference): Likewise.
8085         (ipa_make_edge_direct_to_target): Likewise.
8086         (ipa_analyze_node): Likewise.
8087         (ipa_analyze_params_uses): Likewise.
8088         (ipa_compute_jump_functions): Likewise.
8089         (ipa_get_callee_param_type): Likewise.
8090         (ipa_print_node_jump_functions): Likewise.
8091         (ipa_initialize_node_params): Likewise.
8092         (ipa_populate_param_decls): Likewise.
8093         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
8094         (write_agg_replacement_chain): Likewise.
8095         (ipa_write_node_info): Likewise.
8096         (ipa_edge_duplication_hook): Likewise.
8097         (try_decrement_rdesc_refcount): Likewise.
8098         * ipa-pure-const.c (propagate_nothrow): Likewise.
8099         (propagate_pure_const): Likewise.
8100         (pure_const_read_summary): Likewise.
8101         (pure_const_write_summary): Likewise.
8102         (analyze_function): Likewise.
8103         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
8104         (ipa_ref_referring_ref_list): Likewise.
8105         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
8106         (ipa_remove_stmt_references): Likewise.
8107         (ipa_find_reference): Likewise.
8108         (ipa_dump_referring): Likewise.
8109         (ipa_dump_references): Likewise.
8110         (ipa_record_reference): Likewise.
8111         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
8112         (ipa_reference_write_optimization_summary): Likewise.
8113         (write_node_summary_p): Likewise.
8114         (propagate): Likewise.
8115         (read_write_all_from_decl): Likewise.
8116         (generate_summary): Likewise.
8117         (analyze_function): Likewise.
8118         (propagate_bits): Likewise.
8119         (ipa_reference_get_not_written_global): Likewise.
8120         (ipa_reference_get_not_read_global): Likewise.
8121         * ipa-split.c (execute_split_functions): Likewise.
8122         (split_function): Likewise.
8123         * ipa-utils.c (ipa_merge_profiles): Likewise.
8124         (dump_cgraph_node_set): Likewise.
8125         (ipa_reverse_postorder): Likewise.
8126         (ipa_edge_within_scc): Likewise.
8127         (ipa_get_nodes_in_cycle): Likewise.
8128         (ipa_free_postorder_info): Likewise.
8129         (ipa_reduced_postorder): Likewise.
8130         (searchc): Likewise.
8131         (recursive_call_p): Likewise.
8132         * ipa.c (ipa_cdtor_merge): Likewise.
8133         (record_cdtor_fn): Likewise.
8134         (function_and_variable_visibility): Likewise.
8135         (varpool_externally_visible_p): Likewise.
8136         (cgraph_externally_visible_p): Likewise.
8137         (comdat_can_be_unshared_p): Likewise.
8138         (comdat_can_be_unshared_p_1): Likewise.
8139         (address_taken_from_non_vtable_p): Likewise.
8140         (ipa_discover_readonly_nonaddressable_vars): Likewise.
8141         (symtab_remove_unreachable_nodes): Likewise.
8142         (walk_polymorphic_call_targets): Likewise.
8143         (process_references): Likewise.
8144         (enqueue_node): Likewise.
8145         (has_addr_references_p): Likewise.
8146         (cgraph_non_local_node_p_1): Likewise.
8147         * is-a.h (varpool_analyze_node): Likewise.
8148         * lto-cgraph.c (input_symtab): Likewise.
8149         (merge_profile_summaries): Likewise.
8150         (input_cgraph_1): Likewise.
8151         (input_edge): Likewise.
8152         (input_varpool_node): Likewise.
8153         (input_node): Likewise.
8154         (input_overwrite_node): Likewise.
8155         (compute_ltrans_boundary): Likewise.
8156         (output_refs): Likewise.
8157         (lto_output_varpool_node): Likewise.
8158         (lto_output_node): Likewise.
8159         (reachable_from_other_partition_p): Likewise.
8160         (referenced_from_other_partition_p): Likewise.
8161         (lto_output_edge): Likewise.
8162         (output_node_opt_summary): Likewise.
8163         (add_node_to): Likewise.
8164         (reachable_from_this_partition_p): Likewise.
8165         (lto_set_symtab_encoder_in_partition): Likewise.
8166         (lto_symtab_encoder_in_partition_p): Likewise.
8167         (lto_set_symtab_encoder_encode_initializer): Likewise.
8168         (lto_symtab_encoder_encode_initializer_p): Likewise.
8169         (lto_set_symtab_encoder_encode_body): Likewise.
8170         (lto_symtab_encoder_encode_body_p): Likewise.
8171         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8172         Likewise.
8173         * lto-streamer-in.c (lto_read_body): Likewise.
8174         (fixup_call_stmt_edges): Likewise.
8175         (fixup_call_stmt_edges_1): Likewise.
8176         * lto-streamer-out.c (produce_symtab): Likewise.
8177         (output_symbol_p): Likewise.
8178         (write_symbol): Likewise.
8179         (lto_output): Likewise.
8180         (copy_function): Likewise.
8181         (output_function): Likewise.
8182         * passes.c (function_called_by_processed_nodes_p): Likewise.
8183         (ipa_write_optimization_summaries): Likewise.
8184         (ipa_write_summaries): Likewise.
8185         (do_per_function_toporder): Likewise.
8186         (do_per_function): Likewise.
8187         (dump_passes): Likewise.
8188         * symtab.c (symtab_semantically_equivalent_p): Likewise.
8189         (symtab_nonoverwritable_alias): Likewise.
8190         (symtab_nonoverwritable_alias_1): Likewise.
8191         (symtab_for_node_and_aliases): Likewise.
8192         (symtab_resolve_alias): Likewise.
8193         (fixup_same_cpp_alias_visibility): Likewise.
8194         (symtab_alias_ultimate_target): Likewise.
8195         (symtab_used_from_object_file_p): Likewise.
8196         (verify_symtab_base): Likewise.
8197         (dump_symtab_base): Likewise.
8198         (symtab_node_name): Likewise.
8199         (symtab_node_asm_name): Likewise.
8200         (symtab_dissolve_same_comdat_group_list): Likewise.
8201         (symtab_add_to_same_comdat_group): Likewise.
8202         (symtab_unregister_node): Likewise.
8203         (symtab_insert_node_to_hashtable): Likewise.
8204         (symtab_register_node): Likewise.
8205         (unlink_from_assembler_name_hash): Likewise.
8206         (insert_to_assembler_name_hash): Likewise.
8207         (eq_assembler_name): Likewise.
8208         (hash_node_by_assembler_name): Likewise.
8209         (eq_node): Likewise.
8210         (hash_node): Likewise.
8211         * toplev.c (wrapup_global_declaration_2): Likewise.
8212         * trans-mem.c (ipa_tm_execute): Likewise.
8213         (ipa_tm_transform_clone): Likewise.
8214         (ipa_tm_transform_transaction): Likewise.
8215         (ipa_tm_transform_calls_redirect): Likewise.
8216         (ipa_tm_insert_gettmclone_call): Likewise.
8217         (ipa_tm_insert_irr_call): Likewise.
8218         (ipa_tm_create_version): Likewise.
8219         (ipa_tm_create_version_alias): Likewise.
8220         (ipa_tm_mark_forced_by_abi_node): Likewise.
8221         (ipa_tm_mark_force_output_node): Likewise.
8222         (ipa_tm_diagnose_tm_safe): Likewise.
8223         (ipa_tm_mayenterirr_function): Likewise.
8224         (ipa_tm_scan_irr_function): Likewise.
8225         (ipa_tm_note_irrevocable): Likewise.
8226         (ipa_tm_scan_calls_clone): Likewise.
8227         (get_cg_data): Likewise.
8228         * tree-eh.c (tree_could_trap_p): Likewise.
8229         * tree-emutls.c (ipa_lower_emutls): Likewise.
8230         (create_emultls_var): Likewise.
8231         (lower_emutls_function_body): Likewise.
8232         (gen_emutls_addr): Likewise.
8233         (emutls_decl): Likewise.
8234         (new_emutls_decl): Likewise.
8235         * tree-inline.c (tree_function_versioning): Likewise.
8236         (optimize_inline_calls): Likewise.
8237         (expand_call_inline): Likewise.
8238         (estimate_num_insns): Likewise.
8239         (copy_bb): Likewise.
8240         (delete_unreachable_blocks_update_callgraph): Likewise.
8241         * tree-nested.c (gimplify_all_functions): Likewise.
8242         (create_nesting_tree): Likewise.
8243         (check_for_nested_with_variably_modified): Likewise.
8244         * tree-pretty-print.c (dump_function_header): Likewise.
8245         * tree-profile.c (tree_profiling): Likewise.
8246         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
8247         (modify_function): Likewise.
8248         (convert_callers): Likewise.
8249         (convert_callers_for_node): Likewise.
8250         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8251         (associate_varinfo_to_alias): Likewise.
8252         (create_variable_info_for): Likewise.
8253         (get_constraint_for_ssa_var): Likewise.
8254         * tree-vectorizer.c (increase_alignment): Likewise.
8255         * tree.c (find_decls_types_in_var): Likewise.
8256         (find_decls_types_in_node): Likewise.
8257         (free_lang_data_in_decl): Likewise.
8258         * value-prof.c (gimple_ic_transform): Likewise.
8259         (gimple_ic): Likewise.
8260         (check_ic_target): Likewise.
8261         (init_node_map): Likewise.
8262         * varasm.c (decl_binds_to_current_def_p): Likewise.
8263         (default_binds_local_p_1): Likewise.
8264         (dump_tm_clone_pairs): Likewise.
8265         (assemble_alias): Likewise.
8266         (find_decl): Likewise.
8267         (mark_decl_referenced): Likewise.
8268         * varpool.c (varpool_for_node_and_aliases): Likewise.
8269         (varpool_extra_name_alias): Likewise.
8270         (varpool_create_variable_alias): Likewise.
8271         (add_new_static_var): Likewise.
8272         (varpool_finalize_named_section_flags): Likewise.
8273         (varpool_remove_unreferenced_decls): Likewise.
8274         (enqueue_node): Likewise.
8275         (varpool_assemble_decl): Likewise.
8276         (assemble_aliases): Likewise.
8277         (varpool_analyze_node): Likewise.
8278         (cgraph_variable_initializer_availability): Likewise.
8279         (varpool_add_new_variable): Likewise.
8280         (ctor_for_folding): Likewise.
8281         (dump_varpool_node): Likewise.
8282         (varpool_remove_initializer): Likewise.
8283         (varpool_remove_node): Likewise.
8284         (varpool_node_for_decl): Likewise.
8285         (varpool_create_empty_node): Likewise.
8286         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
8287         (ix86_get_function_versions_dispatcher): Likewise.
8288
8289 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8290
8291         * cgraph.h (symtab_node_base): Convert to a class;
8292         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
8293         chain_next/prev from symtab_node_def.
8294         (cgraph_node): Inherit from symtab_node; add GTY option
8295         tag ("SYMTAB_FUNCTION").
8296         (varpool_node): Inherit from symtab_node; add GTY option
8297         tag ("SYMTAB_VARIABLE").
8298         (symtab_node_def): Remove.
8299         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
8300         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
8301         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
8302         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
8303
8304         * ipa-ref.h (symtab_node_def): Drop.
8305         (symtab_node): Change underlying type from symtab_node_def to
8306         symtab_node_base.
8307         (const_symtab_node): Likwise.
8308
8309         * is-a.h: Update examples in comment.
8310
8311         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
8312         (assembler_name_hash): Likewise.
8313
8314 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
8315
8316         * doc/tree-ssa.texi (gimple_phi_result): Document.
8317         (gimple_phi_num_args, gimple_phi_arg): Likewise.
8318         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
8319         (PHI_RESULT, PHI_NUM_ARGS): Remove.
8320         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
8321
8322 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8323
8324         * expr.h: Revert change and include tree-core.h.
8325         * rtl.h: Revert change and don't include tree-core.h.
8326
8327 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8328
8329         * config/darwin.c: Include gimple.h.
8330         * config/i386/winnt.c: Likewise.
8331
8332 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
8333
8334         PR tree-optimization/19831
8335         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
8336
8337 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8338
8339         * tree-outof-ssa.h: Remove include files.
8340         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
8341         * expr.c: Likewise.
8342         * tree-ssa-coalesce.c: Likewise.
8343         * cfgexpand.c: Likewise.
8344         * tree-ssa-ter.c: Likewise.
8345         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
8346         * lto-streamer.h: Likewise.
8347         * cgraphbuild.c: Add gimple.h to include list.
8348         * data-streamer-in.c: Likewise.
8349         * ipa-cp.c: Likewise.
8350         * tree-streamer.c: Likewise.
8351         * lto-compress.c: Likewise.
8352         * ipa-reference.c: Likewise.
8353         * data-streamer-out.c: Likewise.
8354         * lto-cgraph.c: Likewise.
8355         * cgraphclones.c: Likewise.
8356         * ipa-utils.c: Likewise.
8357         * data-streamer.c: Likewise.
8358         * ipa-split.c: Likewise.
8359         * lto-section-in.c: Likewise.
8360         * tree-streamer-out.c: Likewise.
8361         * ipa-prop.c: Likewise.
8362         * tree-streamer-in.c: Likewise.
8363         * symtab.c: Likewise.
8364         * opts-global.c: Likewise.
8365         * lto-opts.c: Likewise.
8366         * lto-section-out.c: Likewise.
8367         * lto-streamer.c: Likewise.
8368         * rtl.h: Add tree-core.h to include list.
8369         * expr.h: Remove tree-core.h from include list.
8370         * gimple.h: Likewise.
8371         * ipa-utils.h: Likewise.
8372         * streamer-hooks.h: Likewise.
8373         * streamer-hooks.c: Include input.h.
8374
8375 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8376
8377         * config/arm/arm.c (cortexa7_extra_costs): New table.
8378         (arm_cortex_a7_tune): New.
8379         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
8380
8381 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
8382
8383         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
8384
8385 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8386
8387         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
8388         to use autogenerated markers for a class-hierarchy, every class
8389         must have a GTY marker.
8390         * gengtype.h (struct type): Add linked list of subclasses to
8391         the "s" member of the union.
8392         (add_subclass): New decl.
8393         * gengtype-state.c (read_state_struct_type): Set up subclass
8394         linked list.
8395         * gengtype.c (get_ultimate_base_class): New.
8396         (add_subclass): New.
8397         (new_structure): Set up subclass linked list.
8398         (set_gc_used_type): Propagate usage information to subclasses.
8399         (output_mangled_typename): Use get_ultimate_base_class.
8400         (walk_subclasses): Use the subclass linked list, avoiding an
8401         O(N^2) when writing out all types.
8402         (walk_type): Issue an error if the base class is missing a tag,
8403         rather than generating bogus C code.  Add a gcc_unreachable
8404         default case, in case people omit tags from concrete subclasses,
8405         or get the values wrong.
8406         (write_func_for_structure): Issue an error for subclasses for
8407         which the base doesn't have a "desc", since otherwise the
8408         autogenerated routines for the base would silently fail to visit
8409         any subclass fields.
8410         (write_root): Use get_ultimate_base_class, tweaking constness of
8411         tp to match that function's signature.
8412
8413 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8414
8415         * doc/gty.texi (GTY Options): Add note about inheritance to
8416         description of desc and tag.
8417         (Inheritance and GTY): New.
8418
8419 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8420
8421         * gengtype-parse.c (opts_have): Drop "static" so that
8422         we can use this from gengtype.c.
8423         * gengtype.c (set_gc_used_type): Mark any base class as used;
8424         update field traversal to visit inherited fields.
8425         (output_mangled_typename):  Convert references to classes within
8426         an inheritance hierarchy to reference the ultimate base class,
8427         since only it will have gt_ functions.
8428         (get_string_option): New.
8429         (walk_subclasses): New.
8430         (walk_type): Treat GTY structs that have a "desc" as being the
8431         root of an inheritance hierarchy.  Generate a switch on it
8432         within the marking function which walks all subclasses, adding
8433         cases for them via walk_subclasses.  For subclasses, visit all
8434         fields of the type (including inherited ones).
8435         (write_func_for_structure): Don't write fns for subclasses, only
8436         for the ultimate base class within an inheritance hierarchy.
8437         Subclasses-marking will be handled by the base class marking functions.
8438         (write_types): Likewise.
8439         (write_local_func_for_structure): Likewise.
8440         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
8441         a "tag" option (and are thus concrete subclasses).
8442         (write_root): Use the marker function for the ultimate base class.
8443         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
8444         (opts_have): Add declaration.
8445
8446 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
8447
8448         * lra-spills.c (lra_final_code_change): Remove useless move insns
8449         originated from moves of pseudos.
8450
8451 2013-10-28  Jeff Law  <law@redhat.com>
8452
8453         * lower-subreg.c (resolve_simple_move): Fix comment typo.
8454
8455 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
8456
8457         * df-scan.c (df_collection_rec): Adjust.
8458         (copy_defs): New constant.
8459         (copy_uses): Likewise.
8460         (copy_eq_uses): Likewise.
8461         (copy_mw): Likewise.
8462         (copy_all): Likewise.
8463         (df_insn_rescan): Adjust.
8464         (df_notes_rescan): Likewise.
8465         (df_swap_refs): Likewise.
8466         (df_sort_and_compress_refs): Likewise.
8467         (df_sort_and_compress_mws): Likewise.
8468         (df_install_refs): Likewise.
8469         (df_install_mws): Likewise.
8470         (df_refs_add_to_chains): Add flags parameter controlling which vectors
8471         are coppied.
8472         (df_bb_refs_record): Adjust.
8473         (df_record_entry_block_defs): Likewise.
8474         (df_record_exit_block_defs): Likewise.
8475         (df_refs_verify): Likewise.
8476         (df_mws_verify): Likewise.
8477         (df_insn_refs_verify): Likewise.
8478         (df_bb_verify): Likewise.
8479         * ipa-pure-const.c (finish_state): Remove.
8480         (propagate): Adjust.
8481         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
8482         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
8483         var-tracking.c: Adjust.
8484         * vec.c (stack_vecs): Remove.
8485         (register_stack_vec): Likewise.
8486         (stack_vec_register_index): Likewise.
8487         (unregister_stack_vec): Likewise.
8488         * vec.h (struct va_stack): Remove.
8489         (struct vec<T, A, vl_ptr>): Specialize as
8490         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
8491         allocation strategy compatable with the vl_ptr layout.
8492         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
8493         specialization anyway.
8494         (class stack_vec): New class.
8495         (vec_stack_alloc): Remove.
8496         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
8497
8498 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8499             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8500             Sergey Lega  <sergey.s.lega@intel.com>
8501             Anna Tikhonova  <anna.tikhonova@intel.com>
8502             Ilya Tocar  <ilya.tocar@intel.com>
8503             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8504             Ilya Verbin  <ilya.verbin@intel.com>
8505             Kirill Yukhin  <kirill.yukhin@intel.com>
8506             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8507
8508         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
8509         (*prefetch_avx512pf_<mode>): New.
8510         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
8511         (avx512f_maskcmp<mode>3): Ditto.
8512         (vashrv16si3): Ditto.
8513
8514 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8515             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8516             Sergey Lega  <sergey.s.lega@intel.com>
8517             Anna Tikhonova  <anna.tikhonova@intel.com>
8518             Ilya Tocar  <ilya.tocar@intel.com>
8519             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8520             Ilya Verbin  <ilya.verbin@intel.com>
8521             Kirill Yukhin  <kirill.yukhin@intel.com>
8522             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8523
8524         * config/i386/i386.md (any_truncate): New.
8525         (trunsuffix): Ditto.
8526         * config/i386/predicates.md (const_8_to_9_operand): New.
8527         (const_10_to_11_operand): Ditto.
8528         (const_12_to_13_operand): Ditto.
8529         (const_14_to_15_operand): Ditto.
8530         (const_16_to_19_operand): Ditto.
8531         (const_20_to_23_operand): Ditto.
8532         (const_24_to_27_operand): Ditto.
8533         (const_28_to_31_operand): Ditto.
8534         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
8535         (cvtusi2<ssescalarmodesuffix>32): New.
8536         (cvtusi2<ssescalarmodesuffix>64): Ditto.
8537         (ufloatv16siv16sf2): Ditto.
8538         (avx512f_fix_notruncv16sfv16si): Ditto.
8539         (avx512f_ufix_notruncv16sfv16si): Ditto.
8540         (avx512f_vcvtss2usi): Ditto.
8541         (avx512f_vcvtss2usiq): Ditto.
8542         (avx512f_vcvttss2usi): Ditto.
8543         (avx512f_vcvttss2usiq): Ditto.
8544         (avx512f_vcvtsd2usi): Ditto.
8545         (avx512f_vcvtsd2usiq): Ditto.
8546         (avx512f_vcvttsd2usi): Ditto.
8547         (avx512f_vcvttsd2usiq): Ditto.
8548         (ufloatv8siv8df): Ditto.
8549         (avx512f_cvtdq2pd512_2): Ditto.
8550         (avx512f_cvtpd2dq512): Ditto.
8551         (avx512f_ufix_notruncv8dfv8si): Ditto.
8552         (avx512f_cvtpd2ps512): Ditto.
8553         (vec_unpacks_lo_v16sf): Ditto.
8554         (vec_unpacks_hi_v16sf): Ditto.
8555         (vec_unpacks_float_hi_v16si): Ditto.
8556         (vec_unpacks_float_lo_v16si): Ditto.
8557         (avx512f_unpckhps512): Ditto.
8558         (avx512f_unpcklps512): Ditto.
8559         (avx512f_movshdup512): Ditto.
8560         (avx512f_movsldup512): Ditto.
8561         (vec_extract_lo_v32hi): Ditto.
8562         (vec_extract_hi_v32hi): Ditto.
8563         (vec_extract_lo_v64qi): Ditto.
8564         (vec_extract_hi_v64qi): Ditto.
8565         (avx512f_unpckhpd512): Ditto.
8566         (avx512f_movddup512): Ditto.
8567         (avx512f_unpcklpd512): Ditto.
8568         (*avx512f_unpcklpd512): Ditto.
8569         (avx512f_shufps512_1): Ditto.
8570         (avx512f_shufpd512_1): Ditto.
8571         (avx512f_interleave_highv8di): Ditto.
8572         (avx512f_interleave_lowv8di): Ditto.
8573         (PMOV_DST_MODE): Ditto.
8574         (pmov_src_mode): Ditto.
8575         (pmov_src_lower): Ditto.
8576         (pmov_suff): Ditto.
8577         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
8578         (*avx512f_<code>v8div16qi2): Ditto.
8579         (*avx512f_<code>v8div16qi2_store): Ditto.
8580         (vec_widen_umult_even_v16si): Ditto.
8581         (*vec_widen_umult_even_v16si): Ditto.
8582         (vec_widen_smult_even_v16si): Ditto.
8583         (*vec_widen_smult_even_v16si): Ditto.
8584         (avx512f_interleave_highv16si): Ditto.
8585         (avx512f_interleave_lowv16si): Ditto.
8586         (avx512f_<code>v16qiv16si2): Ditto.
8587         (avx512f_<code>v16hiv16si2): Ditto.
8588         (avx512f_<code>v8qiv8di2): Ditto.
8589         (avx512f_<code>v8hiv8di2): Ditto.
8590         (avx512f_<code>v8siv8di2): Ditto.
8591         (avx512cd_maskb_vec_dupv8di): Ditto.
8592         (avx512cd_maskw_vec_dupv16si): Ditto.
8593         (avx512f_vcvtph2ps512): Ditto.
8594         (avx512f_vcvtps2ph512): Ditto.
8595         (VEC_EXTRACT_MODE): Extened with wider modes.
8596         (VEC_PERM_AVX2): Ditto.
8597         (VEC_PERM_CONST): Ditto.
8598
8599 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8600
8601         * config/arc/arc.c (arc_ccfsm_post_advance):
8602         Add comment about TYPE_RETURN.
8603
8604 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
8605
8606         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
8607         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
8608         (strip_offset): Convert offset to unsigned number.
8609
8610 2013-10-27  Tom de Vries  <tom@codesourcery.com>
8611
8612         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
8613         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
8614
8615 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
8616
8617         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
8618         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
8619         (TARGET_BIG_ENDIAN): New macro.
8620         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
8621         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
8622         * config/sh/sh.c: Likewise.
8623         * config/sh/sh.h: Likewise.
8624
8625 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
8626
8627         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
8628         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
8629
8630 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
8631
8632         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
8633         Fix formatting.
8634         (cmpstr_t, cmpstrsi): Fix formatting.
8635
8636 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
8637
8638         PR target/52483
8639         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
8640         addressing, do not use general_operand for memory operands.
8641
8642 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
8643
8644         Revert:
8645         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8646         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8647
8648 2013-10-26  Jeff Law  <law@redhat.com>
8649
8650         * predict.c (PRED_MUDFLAP): Remove.
8651         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
8652
8653         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
8654         (OBJS): Remove tree-nomudflap.o
8655         (GTFILES): Remove tree-mudflap.c
8656         * builtins.c (expand_builtin_alloc): Remove mudflap support.
8657         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8658         (mfwrap_spec, mflib_spec): Likewise.
8659         (cpp_unique_options, cc1_options, static_specs): Likewise.
8660         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
8661         * passes.def: Likewise.
8662         * toplev.c (compile_file, process_options): Likewise.
8663         * tree-inline.c (copy_tree_r): Likewise.
8664         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
8665         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
8666         (build_constant_desc, output_constant_def_contents): Likewise.
8667         (categorize_decl_for_section): Likewise.
8668         * tree-mudflap.c: Removed.
8669         * tree-mudflap.h: Removed.
8670         * tree-nomudflap.c: Removed.
8671         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
8672         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
8673         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8674         * config/sol2.h (MFLIB_SPEC): Likewise.
8675         * doc/install.texi: Remove mudflap references.
8676         * doc/passes.texi: Similarly.
8677         * doc/sourcebuild.texi: Similarly.
8678         * doc/invoke.texi: Remove mudlfap related options.
8679
8680 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8681
8682         PR rtl-optimization/58759
8683         * lra-constraints.c (lra_constraints): Remove wrong condition to
8684         remove insn setting up an equivalent pseudo.
8685
8686 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8687
8688         * config/rs6000/rs6000-protos.h
8689         (rs6000_secondary_memory_needed_mode): New prototype.
8690         * config/rs6000/rs6000.c: Include ira.h.
8691         (TARGET_LRA_P): Redefine.
8692         (rs6000_legitimate_offset_address_p): Call
8693         legitimate_constant_pool_address_p in strict mode for LRA.
8694         (rs6000_legitimate_address_p): Ditto.
8695         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
8696         (rs6000_emit_move): Add LRA version of code to generate load/store
8697         of SDmode values.
8698         (rs6000_secondary_memory_needed_mode): New.
8699         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
8700         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
8701         constants, memory, and FP registers.
8702         (rs6000_lra_p): New.
8703         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
8704         * config/rs6000/rs6000.opt (mlra): New option.
8705         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8706
8707 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
8708
8709         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
8710         has_single_use () and not do the conversion if has_single_use ()
8711         returns false for the multiplication result.
8712
8713 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
8714
8715         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
8716         to "NODE", since this works on a "tree", not an
8717         "enum tree_code".
8718         (CONSTANT_CLASS_P): Likewise.
8719         (TYPE_P): Likewise.
8720         (DECL_P): Likewise.
8721         (INDIRECT_REF_P): Likewise.
8722         (REFERENCE_CLASS_P): Likewise.
8723         (COMPARISON_CLASS_P): Likewise.
8724         (UNARY_CLASS_P): Likewise.
8725         (BINARY_CLASS_P): Likewise.
8726         (STATEMENT_CLASS_P): Likewise.
8727         (VL_EXP_CLASS_P): Likewise.
8728         (EXPRESSION_CLASS_P): Likewise.
8729         (IS_TYPE_OR_DECL_P): Likewise.
8730
8731 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
8732
8733         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
8734         ADDR_EXPR in the defining statement.
8735
8736 2013-10-25  Richard Biener  <rguenther@suse.de>
8737
8738         PR tree-optimization/58626
8739         * tree-loop-distribution.c (enum rdg_dep_type): Remove
8740         anti_dd, output_dd and input_dd.
8741         (struct rdg_edge): Remove level and relation members.
8742         (RDGE_LEVEL, RDGE_RELATION): Remove.
8743         (dot_rdg_1): Adjust.
8744         (create_rdg_edge_for_ddr): Remove.
8745         (create_rdg_edges_for_scalar): Adjust.
8746         (create_edge_for_control_dependence): Likewise.
8747         (create_rdg_edges): Split into ...
8748         (create_rdg_flow_edges): ... this
8749         (create_rdg_cd_edges): ... and this.
8750         (free_rdg): Adjust.
8751         (build_rdg): Likewise, do not compute data dependences or
8752         add edges for them.
8753         (pg_add_dependence_edges): New function.
8754         (pgcmp): Likewise.
8755         (distribute_loop): First apply all non-dependence based
8756         partition mergings.  Then compute dependences between partitions
8757         and merge and order partitions according to them.
8758
8759 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
8760
8761         PR rtl-optimization/58831
8762         * alias.c (init_alias_analysis): At the beginning of each iteration,
8763         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
8764
8765 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
8766
8767         * recog.c (search_ofs): New static variable moved from...
8768         (peep2_find_free_register): ...here.
8769         (peephole2_optimize): Initialize it.
8770
8771 2013-10-25  Tobias Burnus  <burnus@net-b.de>
8772
8773         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
8774
8775 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
8776
8777         * config/i386/i386.h (TARGET_MPX): New define.
8778         (TARGET_MPX_P): Ditto.
8779
8780 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
8781
8782         * config/i386/constraints.md (B): New.
8783         (Ti): New.
8784         (Tb): New.
8785         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
8786         * config/i386/i386-modes.def (BND32): New.
8787         (BND64): New.
8788         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
8789         * config/i386/i386.c (isa_opts): Add mmpx.
8790         (regclass_map): Add bound registers.
8791         (dbx_register_map): Likewise.
8792         (dbx64_register_map): Likewise.
8793         (svr4_dbx_register_map): Likewise.
8794         (PTA_MPX): New.
8795         (ix86_option_override_internal): Support MPX ISA.
8796         (ix86_conditional_register_usage): Support bound registers.
8797         (print_reg): Likewise.
8798         (ix86_code_end): Add MPX bnd prefix.
8799         (output_set_got): Likewise.
8800         (ix86_output_call_insn): Likewise.
8801         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
8802         (ix86_print_operand_punct_valid_p): Likewise.
8803         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
8804         UNSPEC_BNDMK_ADDR.
8805         (ix86_class_likely_spilled_p): Add bound regs support.
8806         (ix86_hard_regno_mode_ok): Likewise.
8807         (x86_order_regs_for_local_alloc): Likewise.
8808         (ix86_bnd_prefixed_insn_p): New.
8809         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
8810         (FIXED_REGISTERS): Add bound registers.
8811         (CALL_USED_REGISTERS): Likewise.
8812         (REG_ALLOC_ORDER): Likewise.
8813         (HARD_REGNO_NREGS): Likewise.
8814         (TARGET_MPX): New.
8815         (VALID_BND_REG_MODE): New.
8816         (FIRST_BND_REG): New.
8817         (LAST_BND_REG): New.
8818         (reg_class): Add BND_REGS.
8819         (REG_CLASS_NAMES): Likewise.
8820         (REG_CLASS_CONTENTS): Likewise.
8821         (BND_REGNO_P): New.
8822         (ANY_BND_REG_P): New.
8823         (BNDmode): New.
8824         (HI_REGISTER_NAMES): Add bound registers.
8825         * config/i386/i386.md (UNSPEC_BNDMK): New.
8826         (UNSPEC_BNDMK_ADDR): New.
8827         (UNSPEC_BNDSTX): New.
8828         (UNSPEC_BNDLDX): New.
8829         (UNSPEC_BNDLDX_ADDR): New.
8830         (UNSPEC_BNDCL): New.
8831         (UNSPEC_BNDCU): New.
8832         (UNSPEC_BNDCN): New.
8833         (UNSPEC_MPX_FENCE): New.
8834         (BND0_REG): New.
8835         (BND1_REG): New.
8836         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8837         (length_immediate): Likewise.
8838         (prefix_0f): Likewise.
8839         (memory): Likewise.
8840         (prefix_rep): Check for bnd prefix.
8841         (length_nobnd): New.
8842         (length): Use length_nobnd if specified.
8843         (BND): New.
8844         (bnd_ptr): New.
8845         (BNDCHECK): New.
8846         (bndcheck): New.
8847         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
8848         (*jcc_2): Likewise.
8849         (jump): Likewise.
8850         (simple_return_internal): Likewise.
8851         (simple_return_pop_internal): Likewise.
8852         (*indirect_jump): Add MPX bnd prefix.
8853         (*tablejump_1): Likewise.
8854         (simple_return_internal_long): Likewise.
8855         (simple_return_indirect_internal): Likewise.
8856         (<mode>_mk): New.
8857         (*<mode>_mk): New.
8858         (mov<mode>): New.
8859         (*mov<mode>_internal_mpx): New.
8860         (<mode>_<bndcheck>): New.
8861         (*<mode>_<bndcheck>): New.
8862         (<mode>_ldx): New.
8863         (*<mode>_ldx): New.
8864         (<mode>_stx): New.
8865         (*<mode>_stx): New.
8866         * config/i386/predicates.md (lea_address_operand): Rename to...
8867         (address_no_seg_operand): ... this.
8868         (address_mpx_no_base_operand): New.
8869         (address_mpx_no_index_operand): New.
8870         (bnd_mem_operator): New.
8871         * config/i386/i386.opt (mmpx): New.
8872         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
8873         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
8874
8875 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
8876
8877         * mode-classes.def (MODE_POINTER_BOUNDS): New.
8878         * tree.def (POINTER_BOUNDS_TYPE): New.
8879         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
8880         (POINTER_BOUNDS_MODE): New.
8881         (make_pointer_bounds_mode): New.
8882         * machmode.h (POINTER_BOUNDS_MODE_P): New.
8883         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
8884         (layout_type): Support POINTER_BOUNDS_TYPE.
8885         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
8886         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
8887         (type_contains_placeholder_1): Likewise.
8888         * tree.h (POINTER_BOUNDS_TYPE_P): New.
8889         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
8890         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
8891
8892 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
8893
8894         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
8895         mode of address computation when calling memory_address_addr_space.
8896
8897 2013-08-24  Richard Henderson  <rth@twiddle.net>
8898
8899         PR rtl/58542
8900         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
8901         instead of create_convert_operand_to.
8902         (maybe_emit_sync_lock_test_and_set): Likewise.
8903         (expand_atomic_compare_and_swap): Likewise.
8904         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
8905
8906 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
8907
8908         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
8909         Change param_is to use the struct and not the pointer to the struct.
8910
8911 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
8912
8913         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
8914         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8915         Move to targhooks.c.
8916         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
8917         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8918         Relocate from gimplify.c.
8919         * targhooks.h: Add 2 prototypes.
8920         * tree.h: Delete 2 prototypes.
8921
8922 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
8923
8924         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
8925         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
8926
8927 2013-10-24  Cong Hou  <congh@google.com>
8928
8929         * convert.c (convert_to_real): Guard those unsafe math function
8930         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
8931         specially.
8932
8933 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
8934
8935         PR ipa/58712
8936         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
8937         as argument.
8938         (cgraph_create_edge): Use the new argument.
8939         (cgraph_create_indirect_edge): Likewise.
8940
8941 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
8942
8943         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
8944         TYPE_UNCOND_BRANCH.
8945         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
8946         changes statep->state.
8947
8948 2013-10-24  Tobias Burnus  <burnus@net-b.de>
8949
8950         PR other/33426
8951         * tree-cfg.c (replace_loop_annotate): New function.
8952         (execute_build_cfg): Call it.
8953         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
8954         * internal-fn.c (expand_ANNOTATE): New function.
8955         * internal-fn.def (ANNOTATE): Define as new internal function.
8956         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
8957         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
8958         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
8959         * doc/extend.texi (Pragmas): Document #pragma ivdep.
8960         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
8961
8962 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
8963             Marcus Shawcroft  <marcus.shawcroft@arm.com>
8964
8965         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
8966         Special case reload SP+C into none GENERAL_REGS.
8967
8968 2013-10-24  Michael Matz  <matz@suse.de>
8969
8970         * gengtype.c (is_file_equal): Check that files will be same length.
8971
8972 2013-10-25  Christian Bruel  <christian.bruel@st.com>
8973
8974         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
8975         * config/sh/t-sh (sh-mem.o): New rule.
8976         * config/sh/sh-mem.cc (expand_block_move): Moved here.
8977         (sh_expand_cmpstr): New function.
8978         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
8979         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
8980         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
8981         (rotlhi3_8): Rename.
8982
8983 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8984
8985         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
8986         * Makefile.in (CXXDEPMODE): Assign and change users.
8987         (CCDEPMODE): Delete.
8988         * configure: Regenerate.
8989
8990 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
8991
8992         * gengtype-parse.c (require_without_advance): New.
8993         (type): For GTY-marked types that are not GTY((user)), parse any
8994         base classes, requiring them to be single-inheritance, and not
8995         be templates.  For non-GTY-marked types and GTY((user)),
8996         continue to skip over any C++ inheritance specification.
8997         * gengtype-state.c (state_writer::write_state_struct_type):
8998         Write base class of type (if any).
8999         (read_state_struct_type): Read base class of type (if any).
9000         * gengtype.c (new_structure): Add a "base_class" parameter.
9001         (create_optional_field_): Update for new parameter to new_structure.
9002         (adjust_field_rtx_def): Likewise.
9003         (adjust_field_tree_exp): Likewise.
9004         * gengtype.h (struct type): Add "base_class" field to the s
9005         union field.
9006         (new_structure): Add "base" parameter.
9007
9008 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
9009
9010         PR target/57756
9011         * config/i386/i386.c (ix86_option_override_internal):
9012         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
9013         (ix86_valid_target_attribute_tree):
9014         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
9015         Change TARGET_SSE to TARGET_SSE_P (opts->...)
9016
9017 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
9018
9019         * tree-ssa-loop.h: Remove include files.
9020         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9021         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
9022         * graphite-clast-to-gimple.c: Likewise.
9023         * graphite-scop-detection.c: Likewise.
9024         * graphite-sese-to-poly.c: Likewise.
9025         * ipa-inline-analysis.c: Likewise.
9026         * ipa-pure-const.c: Likewise.
9027         * loop-init.c: Likewise.
9028         * passes.c: Likewise.
9029         * predict.c: Likewise.
9030         * tree-cfg.c: Likewise.
9031         * tree-cfgcleanup.c: Likewise.
9032         * tree-chrec.c: Likewise.
9033         * tree-data-ref.c: Likewise.
9034         * tree-loop-distribution.c: Likewise.
9035         * tree-parloops.c: Likewise.
9036         * tree-predcom.c: Likewise.
9037         * tree-scalar-evolution.c: Likewise.
9038         * tree-ssa-address.c: Likewise.
9039         * tree-ssa.c: Likewise.
9040         * tree-ssa-dce.c: Likewise.
9041         * tree-ssa-loop.c: Likewise.
9042         * tree-ssa-loop-im.c: Likewise.
9043         * tree-ssa-loop-ivcanon.c: Likewise.
9044         * tree-ssa-loop-ivopts.c: Likewise.
9045         * tree-ssa-loop-manip.c: Likewise.
9046         * tree-ssa-loop-niter.c: Likewise.
9047         * tree-ssa-loop-prefetch.c: Likewise.
9048         * tree-ssa-loop-unswitch.c: Likewise.
9049         * tree-ssa-reassoc.c: Likewise.
9050         * tree-vect-data-refs.c: Likewise.
9051         * tree-vect-loop.c: Likewise.
9052         * tree-vect-loop-manip.c: Likewise.
9053         * tree-vectorizer.c: Likewise.
9054         * tree-vect-stmts.c: Likewise.
9055         * tree-vrp.c: Likewise.
9056
9057 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9058
9059         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
9060
9061 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9062
9063         PR tree-optimization/58775
9064         PR tree-optimization/58791
9065         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
9066         (insert_stmt_after): Rewritten, don't move the stmt, but really
9067         insert it.
9068         (get_stmt_uid_with_default): Remove.
9069         (build_and_add_sum): Use insert_stmt_after and
9070         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
9071         (update_range_test): Set uid on stmts added by
9072         force_gimple_operand_gsi.  Don't immediately modify statements
9073         in inter-bb optimization, just update oe->op values.
9074         (optimize_range_tests): Return bool whether any changed have been made.
9075         (update_ops): New function.
9076         (struct inter_bb_range_test_entry): New type.
9077         (maybe_optimize_range_tests): Perform statement changes here.
9078         (not_dominated_by, appears_later_in_bb, get_def_stmt,
9079         ensure_ops_are_available): Remove.
9080         (find_insert_point): Rewritten.
9081         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
9082         return LHS of the (new resp. old) stmt.  Don't call
9083         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
9084         instead of last, move new stmt at the right place.
9085         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
9086         (negate_value): Likewise.  Set uids.
9087         (break_up_subtract_bb): Initialize uids.
9088         (reassociate_bb): Adjust rewrite_expr_tree caller.
9089         (do_reassoc): Don't call renumber_gimple_stmt_uids.
9090
9091 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
9092
9093         PR target/58838
9094         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
9095         TARGET_32BIT final condition.
9096         (mulsi3_internal2 and splitter): Same.
9097
9098 2013-10-23  Jeff Law  <law@redhat.com>
9099
9100         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
9101         through joiner blocks with abnormal outgoing edges.
9102
9103         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
9104         Add parameter JOINERS, to allow/disallow threading through joiner
9105         blocks.
9106         (thread_block): New.  Call thread_block_1.
9107         (mark_threaded_blocks): Remove code to filter out certain cases
9108         of threading through joiner blocks.
9109         (thread_through_all_blocks): Document how we can have a dangling
9110         edge AUX field and clear it.
9111
9112 2013-10-23  Ian Lance Taylor  <iant@google.com>
9113
9114         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
9115         (C++ Dialect Options): Likewise.
9116         (Optimize Options): Likewise.
9117
9118 2013-10-23  Tom de Vries  <tom@codesourcery.com>
9119
9120         PR tree-optimization/58805
9121         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
9122
9123 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9124
9125         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
9126         sequence based on get_range_info returned range.
9127
9128 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
9129
9130         * tree-ssa.h: Remove all #include's
9131         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9132         * alias.c: Move required includes from tree-ssa.h.
9133         * asan.c: Likewise.
9134         * builtins.c: Likewise.
9135         * calls.c: Likewise.
9136         * cfgexpand.c: Likewise.
9137         * cfghooks.c: Likewise.
9138         * cfgloop.c: Likewise.
9139         * cfgloopmanip.c: Likewise.
9140         * cgraph.c: Likewise.
9141         * cgraphbuild.c: Likewise.
9142         * cgraphclones.c: Likewise.
9143         * cgraphunit.c: Likewise.
9144         * dse.c: Likewise.
9145         * except.c: Likewise.
9146         * expr.c: Likewise.
9147         * final.c: Likewise.
9148         * fold-const.c: Likewise.
9149         * ggc-page.c: Likewise.
9150         * gimple-builder.c: Likewise.
9151         * gimple-fold.c: Likewise.
9152         * gimple-iterator.c: Likewise.
9153         * gimple-low.c: Likewise.
9154         * gimple-pretty-print.c: Likewise.
9155         * gimple-ssa-strength-reduction.c: Likewise.
9156         * gimple-streamer-in.c: Likewise.
9157         * gimple-streamer-out.c: Likewise.
9158         * gimplify.c: Likewise.
9159         * graphite-blocking.c: Likewise.
9160         * graphite-clast-to-gimple.c: Likewise.
9161         * graphite-dependences.c: Likewise.
9162         * graphite-interchange.c: Likewise.
9163         * graphite-optimize-isl.c: Likewise.
9164         * graphite-poly.c: Likewise.
9165         * graphite-scop-detection.c: Likewise.
9166         * graphite-sese-to-poly.c: Likewise.
9167         * graphite.c: Likewise.
9168         * ipa-cp.c: Likewise.
9169         * ipa-inline-analysis.c: Likewise.
9170         * ipa-inline-transform.c: Likewise.
9171         * ipa-inline.c: Likewise.
9172         * ipa-prop.c: Likewise.
9173         * ipa-pure-const.c: Likewise.
9174         * ipa-reference.c: Likewise.
9175         * ipa-split.c: Likewise.
9176         * ipa-utils.c: Likewise.
9177         * loop-init.c: Likewise.
9178         * lto-cgraph.c: Likewise.
9179         * lto-section-in.c: Likewise.
9180         * lto-section-out.c: Likewise.
9181         * lto-streamer-in.c: Likewise.
9182         * lto-streamer-out.c: Likewise.
9183         * lto-streamer.c: Likewise.
9184         * omp-low.c: Likewise.
9185         * passes.c: Likewise.
9186         * predict.c: Likewise.
9187         * print-tree.c: Likewise.
9188         * profile.c: Likewise.
9189         * sese.c: Likewise.
9190         * targhooks.c: Likewise.
9191         * tracer.c: Likewise.
9192         * trans-mem.c: Likewise.
9193         * tree-call-cdce.c: Likewise.
9194         * tree-cfg.c: Likewise.
9195         * tree-cfgcleanup.c: Likewise.
9196         * tree-chrec.c: Likewise.
9197         * tree-complex.c: Likewise.
9198         * tree-data-ref.c: Likewise.
9199         * tree-dfa.c: Likewise.
9200         * tree-eh.c: Likewise.
9201         * tree-emutls.c: Likewise.
9202         * tree-if-conv.c: Likewise.
9203         * tree-inline.c: Likewise.
9204         * tree-into-ssa.c: Likewise.
9205         * tree-loop-distribution.c: Likewise.
9206         * tree-mudflap.c: Likewise.
9207         * tree-nested.c: Likewise.
9208         * tree-nrv.c: Likewise.
9209         * tree-object-size.c: Likewise.
9210         * tree-outof-ssa.c: Likewise.
9211         * tree-parloops.c: Likewise.
9212         * tree-phinodes.c: Likewise.
9213         * tree-predcom.c: Likewise.
9214         * tree-pretty-print.c: Likewise.
9215         * tree-profile.c: Likewise.
9216         * tree-scalar-evolution.c: Likewise.
9217         * tree-sra.c: Likewise.
9218         * tree-ssa-address.c: Likewise.
9219         * tree-ssa-alias.c: Likewise.
9220         * tree-ssa-ccp.c: Likewise.
9221         * tree-ssa-coalesce.c: Likewise.
9222         * tree-ssa-copy.c: Likewise.
9223         * tree-ssa-copyrename.c: Likewise.
9224         * tree-ssa-dce.c: Likewise.
9225         * tree-ssa-dom.c: Likewise.
9226         * tree-ssa-dse.c: Likewise.
9227         * tree-ssa-forwprop.c: Likewise.
9228         * tree-ssa-ifcombine.c: Likewise.
9229         * tree-ssa-live.c: Likewise.
9230         * tree-ssa-loop-ch.c: Likewise.
9231         * tree-ssa-loop-im.c: Likewise.
9232         * tree-ssa-loop-ivcanon.c: Likewise.
9233         * tree-ssa-loop-ivopts.c: Likewise.
9234         * tree-ssa-loop-manip.c: Likewise.
9235         * tree-ssa-loop-niter.c: Likewise.
9236         * tree-ssa-loop-prefetch.c: Likewise.
9237         * tree-ssa-loop-unswitch.c: Likewise.
9238         * tree-ssa-loop.c: Likewise.
9239         * tree-ssa-math-opts.c: Likewise.
9240         * tree-ssa-operands.c: Likewise.
9241         * tree-ssa-phiopt.c: Likewise.
9242         * tree-ssa-phiprop.c: Likewise.
9243         * tree-ssa-pre.c: Likewise.
9244         * tree-ssa-propagate.c: Likewise.
9245         * tree-ssa-reassoc.c: Likewise.
9246         * tree-ssa-sccvn.c: Likewise.
9247         * tree-ssa-sink.c: Likewise.
9248         * tree-ssa-strlen.c: Likewise.
9249         * tree-ssa-structalias.c: Likewise.
9250         * tree-ssa-tail-merge.c: Likewise.
9251         * tree-ssa-ter.c: Likewise.
9252         * tree-ssa-threadedge.c: Likewise.
9253         * tree-ssa-threadupdate.c: Likewise.
9254         * tree-ssa-uncprop.c: Likewise.
9255         * tree-ssa-uninit.c: Likewise.
9256         * tree-ssa.c: Likewise.
9257         * tree-ssanames.c: Likewise.
9258         * tree-stdarg.c: Likewise.
9259         * tree-streamer-in.c: Likewise.
9260         * tree-switch-conversion.c: Likewise.
9261         * tree-tailcall.c: Likewise.
9262         * tree-vect-data-refs.c: Likewise.
9263         * tree-vect-generic.c: Likewise.
9264         * tree-vect-loop-manip.c: Likewise.
9265         * tree-vect-loop.c: Likewise.
9266         * tree-vect-patterns.c: Likewise.
9267         * tree-vect-slp.c: Likewise.
9268         * tree-vect-stmts.c: Likewise.
9269         * tree-vectorizer.c: Likewise.
9270         * tree-vrp.c: Likewise.
9271         * tree.c: Likewise.
9272         * tsan.c: Likewise.
9273         * value-prof.c: Likewise.
9274         * var-tracking.c: Likewise.
9275         * varpool.c: Likewise.
9276         * vtable-verify.c: Likewise.
9277
9278 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9279
9280         * config/tilegx/tilegx.c: Include "tree.h".
9281
9282 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9283
9284         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
9285         the info, not after it.
9286         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
9287         dump_ssaname_info call.
9288         (pp_gimple_stmt_1): Adjust caller.
9289         (dump_phi_nodes): Likewise.  Don't print "# " here.
9290
9291 2013-10-22  Jan Hubicka  <jh@suse.cz>
9292
9293         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
9294         tuning flag.
9295         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
9296         * i386.c (expand_small_movmem_or_setmem): New function.
9297         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
9298         function.
9299         (alg_usable_p): Add support for value ranges; cleanup.
9300         (ix86_expand_set_or_movmem): Add support for misaligned moves.
9301
9302 2013-10-22  Sterling Augustine  <saugustine@google.com>
9303
9304         * doc/invoke.texi: Document -ggnu-pubnames.
9305         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
9306         logic.
9307         * dwarf2out.c: Include gdb/gdb-index.h.
9308         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
9309         debug_generate_pub_sections.
9310         (is_java, output_pubtables, output_pubname): New functions.
9311         (include_pubname_in_output): Handle debug_generate_pub_sections at
9312         level 2.
9313         (size_of_pubnames): Use new local space_for_flags based on
9314         debug_generate_pub_sections.
9315         (output_pubnames): Unify pubnames and pubtypes output logic.
9316         Genericize comments.  Call output_pubname.
9317         (dwarf2out_finish): Move logic to output_pubnames and call it.
9318
9319 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
9320
9321         PR target/58779
9322         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
9323         Remove CCCmode handling.
9324         <case LTU>: Return 'c' suffix for CCCmode.
9325         <case GEU>: Return 'nc' suffix for CCCmode.
9326         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
9327         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
9328         (*sub<mode>3_cc_overflow): Ditto.
9329         (*subsi3_zext_cc_overflow): Ditto.
9330
9331 2013-10-22  Steve Ellcey  <sellcey@mips.com>
9332
9333         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
9334         (AND (NOT OP1) (NOT OP2)).
9335
9336 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
9337
9338         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9339         meaning of merge-high and merge-low masks for little endian; avoid
9340         use of vector-pack masks for little endian for mismatched modes.
9341
9342 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9343
9344         * config/tilepro/tilepro.c: Include "tree.h".
9345
9346 2013-10-22  Andreas Schwab  <schwab@suse.de>
9347
9348         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
9349         with PRE_DEC.
9350
9351 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
9352
9353         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
9354         [Ed Smith-Rowland]): New entries.
9355         ([Stephen M. Webb]): Update.
9356
9357 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
9358
9359         * tree-ssa-ter.h: Remove duplicate copy of file contents.
9360
9361 2013-10-21  Marek Polacek  <polacek@redhat.com>
9362
9363         PR middle-end/58809
9364         * fold-const.c (fold_range_test): Return 0 if the type is not
9365         an integral type.
9366
9367 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
9368
9369         * system.h: Move hwint.h include further down.
9370         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
9371         gcc_checking_asserts.
9372         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
9373
9374 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9375
9376         Fix volatile issues in optimize_bit_field_compare.
9377         * fold-const.c (optimize_bit_field_compare): Bail out if
9378         lvolatilep or rvolatilep.
9379
9380 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9381
9382         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
9383         and get_inner_reference returning different pmode for non-volatile
9384         bit-field members dependent on flag_strict_volatile_bitfields.
9385         * stor-layout.c (layout_decl): Remove special handling of
9386         flag_strict_volatile_bitfields.
9387         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
9388         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
9389
9390 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
9391
9392         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
9393         calculations.
9394
9395 2013-10-21  Jeff Law  <law@redhat.com>
9396
9397         * tree-ssa-threadedge.c (thread_through_normal_block): New
9398         argument VISITED.  Remove VISISTED as a local variable.  When we
9399         have a threadable jump, verify the destination of the jump has not
9400         been visised.
9401         (thread_across_edge): Allocate VISITED bitmap once at function
9402         scope and use it throughout.  Make sure to set appropriate bits in
9403         VISITED for E (start of jump thread path).
9404         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
9405         through a joiner if any edge on the path has a recorded jump thread.
9406
9407 2013-10-21  Ian Lance Taylor  <iant@google.com>
9408
9409         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
9410         don't imply that attributes can solve all problems.
9411         (Directory Options): Fix typo.
9412
9413 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9414
9415         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
9416         extend and extend_add.
9417
9418 2013-10-21  Richard Biener  <rguenther@suse.de>
9419
9420         PR tree-optimization/58794
9421         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
9422         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
9423
9424 2013-10-21  Richard Biener  <rguenther@suse.de>
9425
9426         PR middle-end/58742
9427         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
9428         to (T) X for sign-changing conversions (or no conversion).
9429
9430 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
9431
9432         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
9433
9434 2013-10-20  Jan Hubicka  <jh@suse.cz>
9435
9436         * config/i386/i386-tune.def: Add comment; organize into categories
9437
9438 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9439
9440         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
9441         argument.  Update function comment.
9442         (expand_set_or_movmem_via_rep): New function combining
9443         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
9444         (expand_movmem_via_rep_mov): Remove.
9445         expand_setmem_via_rep_stos): Remove.
9446         (expand_movmem_epilogue): Update calls correspondingly.
9447         (expand_setmem_epilogue_via_loop): Likewise.
9448         (emit_memset): New.
9449         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
9450         (expand_set_or_movmem_prologue): New function combining
9451         expand_movmem_prologue and expand_setmem_prologue.
9452         (expand_movmem_prologue): Remove.
9453         (expand_setmem_prologue): Remove.
9454         (expand_set_or_movmem_constant_prologue): New function combining
9455         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
9456         (expand_constant_movmem_prologue): Remove.
9457         (expand_constant_setmem_prologue): Remove.
9458         (promote_duplicated_reg): Allow vector-const0 value.
9459         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
9460         and ix86_expand_setmem.
9461         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
9462         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
9463
9464 2013-10-21  Diego Novillo  <dnovillo@google.com>
9465
9466         * asan.c: Include tree.h
9467         * bb-reorder.c: Likewise.
9468         * cfgcleanup.c: Likewise.
9469         * cfgloopmanip.c: Likewise.
9470         * data-streamer-in.c: Likewise.
9471         * data-streamer-out.c: Likewise.
9472         * data-streamer.c: Likewise.
9473         * dwarf2cfi.c: Likewise.
9474         * graphite-blocking.c: Likewise.
9475         * graphite-clast-to-gimple.c: Likewise.
9476         * graphite-dependences.c: Likewise.
9477         * graphite-interchange.c: Likewise.
9478         * graphite-optimize-isl.c: Likewise.
9479         * graphite-poly.c: Likewise.
9480         * graphite-scop-detection.c: Likewise.
9481         * graphite-sese-to-poly.c: Likewise.
9482         * graphite.c: Likewise.
9483         * ipa-devirt.c: Likewise.
9484         * ipa-profile.c: Likewise.
9485         * ipa.c: Likewise.
9486         * ira.c: Likewise.
9487         * loop-init.c: Likewise.
9488         * loop-unroll.c: Likewise.
9489         * lower-subreg.c: Likewise.
9490         * lto/lto-object.c: Likewise.
9491         * recog.c: Likewise.
9492         * reginfo.c: Likewise.
9493         * tree-loop-distribution.c: Likewise.
9494         * tree-parloops.c: Likewise.
9495         * tree-ssa-strlen.c: Likewise.
9496         * tree-streamer.c: Likewise.
9497         * value-prof.c: Likewise.
9498         * target-globals.c: Likewise.
9499         * expr.h: Include tree-core.h instead of tree.h.
9500         * gimple.h: Likewise.
9501         * ipa-prop.h: Likewise.
9502         * ipa-utils.h: Likewise.
9503         * lto-streamer.h: Likewise.
9504         * streamer-hooks.h: Likewise.
9505         * ipa-reference.h: Include cgraph.h instead of tree.h.
9506         * cgraph.h: Include basic-block.h instead of tree.h.
9507         * tree-streamer.h: Do not include tree.h.
9508         * genattrtab.c (write_header): Generate inclusion of tree.h.
9509         * genautomata.c (main): Likewise.
9510         * genemit.c: Likewise.
9511         * genopinit.c: Likewise.
9512         * genoutput.c (output_prologue): Likewise.
9513         * genpeep.c: Likewise.
9514
9515 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9516
9517         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
9518         little endian.
9519         (vec_unpacku_hi_v8hi): Likewise.
9520         (vec_unpacku_lo_v16qi): Likewise.
9521         (vec_unpacku_lo_v8hi): Likewise.
9522
9523 2013-10-20  Jan Hubicka  <jh@suse.cz>
9524
9525         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
9526         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
9527         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
9528
9529 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
9530
9531         * config/mips/mips.h (ISA_HAS_WSBH): Define.
9532         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
9533         constants.
9534         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
9535
9536 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
9537
9538         PR target/58603
9539         * system.h: Undef m_slot.
9540
9541 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9542
9543         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
9544         all elements for both endian flavors.
9545
9546 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
9547
9548         PR target/58792
9549         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
9550         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
9551         and SI_REG for 64bit SYSV ABI targets.
9552
9553 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
9554
9555         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
9556         to multi_reg_return.  Clarify that we are skipping USEs of multiple
9557         return registers.  Use bool type where appropriate.
9558
9559 2013-10-18  Jan Hubicka  <jh@suse.cz>
9560
9561         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
9562         for cold functions.
9563         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
9564         (X86_TUNE_PUSH_MEMORY): Likewise.
9565         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
9566         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
9567         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
9568         New.
9569         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
9570         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
9571         Remove.
9572         (ix86_option_override_internal): Update to use tune features instead
9573         of variables.
9574
9575 2013-10-18  Cong Hou  <congh@google.com>
9576
9577         PR tree-optimization/58508
9578         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
9579         statement that contains data refs with zero-step.
9580
9581 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9582
9583         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
9584         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
9585         * gimple-low.c (gimple_check_call_arg,
9586         gimple_check_call_matching_types): Move to cgraph.c.
9587         * gimple-low.h: Remove prototype.
9588         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
9589         Relocate from gimple-low.c.
9590         * cgraph.h: Add prototype.  Don't include basic-block.h.
9591         * gimplify.c: Add gimple-low to include list.
9592         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
9593         * tree-eh.c: Add gimple-low to include list.
9594         * tree-nested.c: Likewise.
9595         * cfgexpand.c: Add tree-ssa-address.h to include list.
9596         * expr.c: Likewise.
9597         * gimple-fold.c: Likewise.
9598         * gimple-ssa-strength-reduction.c: Likewise.
9599         * trans-mem.c: Likewise.
9600         * tree-mudflap.c: Likewise.
9601         * tree-ssa-loop-ivopts.c: Likewise.
9602         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
9603         (degenerate_phi_result): Move to tree-phinodes.c.
9604         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
9605         * tree-ssa-threadedge.c: Likewise.
9606         * tree-vrp.c: Likewise.
9607         * tree-phinodes.c (degenerate_phi_result): Relocate here.
9608         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
9609         * tree-phinodes.h (degenerate_phi_result): Add prototype.
9610         * tree-ssa-copy.c: Include tree-ssa-dom.h.
9611         * tree-ssa-forwprop.c: Likewise.
9612         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
9613         pass_data_cleanup_cfg_post_optimizing,
9614         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
9615         * tree-optimize.c: Delete File.
9616         * graphite.c: Include tree-cfgcleanup.h.
9617         * passes.c: Likewise.
9618         * tree-cfg.c: Likewise.
9619         * tree-profile.c: Likewise.
9620         * tree-ssa-dse.c: Likewise.
9621         * tree-ssa-loop-ivcanon.c: Likewise.
9622         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
9623         * tree-outof-ssa.c: Include sbitmap.h.
9624         * tree-ssa-live.c: Likewise.
9625         * tree-ssa-propagate.c: Likewise.
9626         * tree-ssa-structalias.c: Likewise.
9627         * tree-stdarg.c: Likewise.
9628         * Makefile.in (OBJS): Delete tree-optimize.o.
9629         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
9630         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
9631         * varasm.c: Include basic-block.h.
9632         * cfgloop.h: Include function.h instead of basic-block.h
9633         (bb_loop_depth): Move to cfgloop.c.
9634         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
9635
9636 2013-10-18  Teresa Johnson  <tejohnson@google.com>
9637
9638         * predict.c (probably_never_executed): Compare frequency-based
9639         count to number of training runs.
9640         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
9641
9642 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9643
9644         * config/arm/arm.c (cortexa9_extra_costs): New table.
9645         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
9646
9647 2013-10-18  Jeff Law  <law@redhat.com>
9648
9649         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
9650
9651         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
9652         (register_jump_thread): Add "registered_jump_thread" debug
9653         counter support.
9654         * dbgcnt.def (registered_jump_thread): New debug counter.
9655
9656 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9657
9658         * config/rs6000/rs6000.c: Include cgraph.h.
9659
9660 2013-10-18  Teresa Johnson  <tejohnson@google.com>
9661
9662         * tree-ssa-tail-merge.c (replace_block_by): Update edge
9663         weights during merging.
9664
9665 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9666
9667         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
9668         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
9669         * tree-ssa-operands.h: Remove prototype.
9670         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
9671         * gimple.c (virtual_operand_p): Relocate from gimple.c.
9672         * gimple.h: Add prototype.
9673         * gimple-ssa.h: Include tree-ssa-operands.h.
9674         * tree-dump.c: Add tree-cfg.h to include list.
9675         * tree-ssa-alias.c: Add ipa-reference.h to include list.
9676         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
9677         * config/i386/i386.c: Don't include tree-flow.h.
9678         * config/rs6000/rs6000.c: Likewise.
9679
9680 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9681
9682         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
9683
9684 2013-10-18  Richard Biener  <rguenther@suse.de>
9685
9686         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
9687         or TYPE_UNSIGNED of integral types.
9688         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
9689         NULL_TREE for zero-precision integral types.
9690
9691 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
9692
9693         * config/aarch64/arm_neon.h
9694         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
9695
9696 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
9697
9698         PR target/57756
9699         * opth-gen.awk: Define target_flags_explicit.
9700
9701 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
9702
9703         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
9704         fields to the reg_addr array that describes the valid addressing
9705         mode for any register, general purpose registers, floating point
9706         registers, and Altivec registers.
9707         (FIRST_RELOAD_REG_CLASS): Likewise.
9708         (LAST_RELOAD_REG_CLASS): Likewise.
9709         (struct reload_reg_map_type): Likewise.
9710         (reload_reg_map_type): Likewise.
9711         (RELOAD_REG_VALID): Likewise.
9712         (RELOAD_REG_MULTIPLE): Likewise.
9713         (RELOAD_REG_INDEXED): Likewise.
9714         (RELOAD_REG_OFFSET): Likewise.
9715         (RELOAD_REG_PRE_INCDEC): Likewise.
9716         (RELOAD_REG_PRE_MODIFY): Likewise.
9717         (reg_addr): Likewise.
9718         (mode_supports_pre_incdec_p): New helper functions to say whether
9719         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
9720         (mode_supports_pre_modify_p): Likewise.
9721         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
9722         print the valid address mode bits for each mode.
9723         (rs6000_debug_print_mode): Likewise.
9724         (rs6000_debug_reg_global): Likewise.
9725         (rs6000_setup_reg_addr_masks): New function to set up the address
9726         mask bits for each type.
9727         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
9728         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
9729         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
9730         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
9731         PRE_MODIFY are supported.
9732         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
9733         registers, instead of {src,dest}_av_p.
9734         (rs6000_print_options_internal): Tweak the debug output slightly.
9735
9736 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
9737
9738         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
9739         isa attribute.
9740
9741 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
9742
9743         * tree-flow.h (struct omp_region): Move to omp-low.c.
9744         Remove omp_ prototypes and variables.
9745         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
9746         (copy_var_decl): Relocate prototype from tree-flow.h.
9747         * gimple.c (copy_var_decl): Relocate from omp-low.c.
9748         * tree.h: Move prototype to omp-low.h.
9749         * omp-low.h: New File.  Relocate prototypes here.
9750         * omp-low.c (struct omp_region): Make local here.
9751         (root_omp_region): Make static.
9752         (copy_var_decl) Move to gimple.c.
9753         (new_omp_region): Make static.
9754         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
9755         * tree-cfg.c: Include omp-low.h.
9756         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
9757         * gimplify.c: Include omp-low.h.
9758         * tree-parloops.c: Likewise.
9759
9760 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
9761
9762         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
9763         operands are in memory, prefer to force non-matched operand 1 to
9764         the register.
9765
9766 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
9767
9768         PR target/58673
9769         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
9770         restrict TImode addresses to single indirect registers if both
9771         -mquad-memory and -mvsx-timode are used.
9772         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
9773         we should emit load/store quad.  Remove using %y for quad memory
9774         addresses.
9775
9776         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
9777         constraints to allow load/store quad on machines where TImode is
9778         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
9779         for TImode to load integer constants.
9780
9781 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9782
9783         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
9784
9785 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9786
9787         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
9788         handling of STACK_REG.
9789
9790 2013-10-17  Richard Biener  <rguenther@suse.de>
9791
9792         PR tree-optimization/58143
9793         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
9794         New function.
9795         (rewrite_to_defined_overflow): Likewise.
9796         (move_computations_dom_walker::before_dom): Rewrite stmts
9797         with undefined signed overflow that are not always executed
9798         into unsigned arithmetic.
9799
9800 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
9801
9802         PR target/57756
9803         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
9804         explicit isa flag to be an options variable, instead of using
9805         global_options_set.  Remove define from rs6000.h.
9806         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
9807
9808         * config/rs6000/rs6000.c (rs6000_option_override_internal):
9809         Initialize rs6000_isa_flags_explicit.
9810         (rs6000_function_specific_save): Add gcc_options* parameter, so
9811         that the powerpc builds after the 2013-10-15 changes.
9812         (rs6000_function_specific_restore): Likewise.
9813
9814 2013-10-16  DJ Delorie  <dj@redhat.com>
9815
9816         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
9817         op is a REG before checking REGNO.
9818         (rl78_alloc_physical_registers): Verify pattern is a SET before
9819         checking SET_SRC.
9820
9821 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9822
9823         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
9824         endianness.
9825         (vec_unpacks_lo_v4sf): Likewise.
9826         (vec_unpacks_float_hi_v4si): Likewise.
9827         (vec_unpacks_float_lo_v4si): Likewise.
9828         (vec_unpacku_float_hi_v4si): Likewise.
9829         (vec_unpacku_float_lo_v4si): Likewise.
9830
9831 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9832
9833         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
9834         (vsx_concat_v2sf): Likewise.
9835
9836 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
9837
9838         * config/aarch64/aarch64.md
9839         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
9840
9841 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
9842
9843         PR tree-optimization/58697
9844         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
9845         estimated_loop_iterations_int.
9846         (max_stmt_executions_int): Call get_max_loop_iterations_int.
9847         (get_max_loop_iterations_int): New.  HWINT version of
9848         get_max_loop_iterations.
9849         * cfgloop.h: Add prototypes.
9850         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
9851         * loop-unroll.c (decide_peel_once_rolling): Call
9852         get_estimated_loop_iterations_int.
9853         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
9854         * tree-ssa-loop-niter.h: Tweak prototypes.
9855
9856 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
9857
9858         * gengtype-parse.c (struct_field_seq): Ignore access-control
9859         keywords ("public:" etc).
9860
9861 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9862
9863         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
9864         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
9865
9866 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
9867
9868         * config/arm/arm.opt (mlra): New option.
9869         * config/arm/arm.c (arm_lra_p): New function.
9870         (TARGET_LRA_P): Define.
9871
9872 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
9873
9874         * tree-core.h (tree_code_name): Remove.
9875         * tree.h (get_tree_code_name): New prototype.
9876         * tree.c (tree_code_name): Make static.
9877         (get_tree_code_name): New function.
9878         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
9879         tree_class_check_failed, tree_range_check_failed,
9880         tree_not_class_check_failed, omp_clause_check_failed,
9881         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
9882         wrapper get_tree_code_name instead of calling tree_code_name directly.
9883         * tree-vrp.c (dump_asserts_for): Likewise.
9884         * tree-dump.c (dequeue_and_dump): Likewise.
9885         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
9886         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
9887         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
9888         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
9889         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
9890         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
9891         dump_gimple_omp_for): Likewise.
9892         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
9893         * tree-ssa-pre.c (print_pre_expr): Likewise.
9894         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
9895         * print-tree.c (print_node_brief, print_node): Likewise.
9896         * gimple.c (gimple_check_failed): Likewise.
9897         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
9898         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
9899         * config/mep/mep.c (mep_validate_vliw): Likewise.
9900         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
9901         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
9902
9903 2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9904
9905         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
9906         for AMD bdver3.
9907
9908 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
9909
9910         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
9911         (MULTILIB_MATCHES): Add multilib for -march=v8.
9912
9913 2013-10-15 Sriraman Tallam  <tmsriram@google.com>
9914
9915         PR target/57756
9916         * optc-save-gen.awk: Add extra parameter to the save and restore
9917         target calls.
9918         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
9919         * tree.c (build_optimization_node): New parameter.  Add extra parameter
9920         to call to cl_optimization_save.
9921         (build_target_option_node): New parameter. Add extra parameter
9922         to call to cl_target_option_save.
9923         * tree.h (build_optimization_node): New parameter.
9924         (build_target_option_node): New parameter.
9925         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
9926         build_optimization_node and build_target_option_node.
9927         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
9928         (handle_pragma_push_options): Ditto.
9929         * toplev.c (process_options): Ditto.
9930         * opts.c (init_options_struct): Check for opts_set non-null.
9931         * target.def (target_option.save): New parameter.
9932         (target_option.restore): New parameter.
9933         * tm.texi: Generate.
9934         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
9935         (ix86_pragma_target_parse): Ditto.
9936         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
9937         parameters.
9938         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
9939         to  build_optimization_node and build_target_option_node.
9940         (rs6000_valid_attribute_p): Ditto.
9941         (rs6000_pragma_target_parse): Ditto.
9942         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
9943         data.
9944         * config/i386/i386.h:
9945         TARGET_64BIT_P: New Macro
9946         TARGET_MMX_P: New Macro.
9947         TARGET_3DNOW_P: New Macro.
9948         TARGET_3DNOW_A_P: New Macro.
9949         TARGET_SSE_P: New Macro.
9950         TARGET_SSE2_P: New Macro.
9951         TARGET_SSE3_P: New Macro.
9952         TARGET_SSSE3_P: New Macro.
9953         TARGET_SSE4_1_P: New Macro.
9954         TARGET_SSE4_2_P: New Macro.
9955         TARGET_AVX_P: New Macro.
9956         TARGET_AVX2_P: New Macro.
9957         TARGET_AVX512F_P: New Macro.
9958         TARGET_AVX512PF_P: New Macro.
9959         TARGET_AVX512ER_P: New Macro.
9960         TARGET_AVX512CD_P: New Macro.
9961         TARGET_FMA_P: New Macro.
9962         TARGET_SSE4A_P: New Macro.
9963         TARGET_FMA4_P: New Macro.
9964         TARGET_XOP_P: New Macro.
9965         TARGET_LWP_P: New Macro.
9966         TARGET_ABM_P: New Macro.
9967         TARGET_BMI_P: New Macro.
9968         TARGET_BMI2_P: New Macro.
9969         TARGET_LZCNT_P: New Macro.
9970         TARGET_TBM_P: New Macro.
9971         TARGET_POPCNT_P: New Macro.
9972         TARGET_SAHF_P: New Macro.
9973         TARGET_MOVBE_P: New Macro.
9974         TARGET_CRC32_P: New Macro.
9975         TARGET_AES_P: New Macro.
9976         TARGET_PCLMUL_P: New Macro.
9977         TARGET_CMPXCHG16B_P: New Macro.
9978         TARGET_FSGSBASE_P: New Macro.
9979         TARGET_RDRND_P: New Macro.
9980         TARGET_F16C_P: New Macro.
9981         TARGET_RTM_P: New Macro.
9982         TARGET_HLE_P: New Macro.
9983         TARGET_RDSEED_P: New Macro.
9984         TARGET_PRFCHW_P: New Macro.
9985         TARGET_ADX_P: New Macro.
9986         TARGET_FXSR_P: New Macro.
9987         TARGET_XSAVE_P: New Macro.
9988         TARGET_XSAVEOPT_P: New Macro.
9989         TARGET_LP64_P: New Macro.
9990         TARGET_X32_P: New Macro.
9991         TARGET_FPMATH_DEFAULT_P: New Macro.
9992         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
9993         * config/i386/i386.c (ix86_option_override_internal): New parameters.
9994         opts and opts_set.
9995         Change ix86_tune_string to access opts->x_ix86_tune_string.
9996         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
9997         Change ix86_arch_string to access opts->x_ix86_arch_string.
9998         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
9999         Change ix86_pmode to access opts->x_ix86_pmode.
10000         Change ix86_abi to access opts->x_ix86_abi.
10001         Change ix86_cmodel to access opts->x_ix86_cmodel.
10002         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
10003         Change ix86_isa_flags_explicit to access
10004         opts->x_ix86_isa_flags_explicit.
10005         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
10006         Change ix86_regparm to access opts->x_ix86_regparm.
10007         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
10008         Change ix86_preferred_stack_boundary_arg to access
10009         opts->x_ix86_preferred_stack_boundary_arg.
10010         Change ix86_force_align_arg_pointer to access
10011         opts->x_ix86_force_align_arg_pointer.
10012         Change ix86_incoming_stack_boundar_arg to access
10013         opts->x_ix86_incoming_stack_boundar_arg.
10014         Change ix86_fpmath to access opts->x_ix86_fpmath.
10015         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
10016         Change ix86_recip_name to access opts->x_ix86_recip_name.
10017         Change ix86_stack_protector_guard to access
10018         opts->x_ix86_stack_protector_guard.
10019         Change ix86_tune_memcpy_strategy to access
10020         opts->x_ix86_tune_memcpy_strategy.
10021         Change ix86_tune_memset_strategy to access
10022         opts->x_ix86_tune_memset_strategy.
10023         Change global_options to access opts.
10024         Change global_options_set to access opts_set.
10025         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
10026         Change TARGET_MMX to TARGET_MMX_P (opts->...).
10027         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
10028         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
10029         Change TARGET_SSE to TARGET_SSE_P (opts->...).
10030         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
10031         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
10032         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
10033         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
10034         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
10035         Change TARGET_AVX to TARGET_AVX_P (opts->...).
10036         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
10037         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
10038         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
10039         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
10040         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
10041         Change TARGET_FMA to TARGET_FMA_P (opts->...).
10042         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
10043         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
10044         Change TARGET_XOP to TARGET_XOP_P (opts->...).
10045         Change TARGET_LWP to TARGET_LWP_P (opts->...).
10046         Change TARGET_ABM to TARGET_ABM_P (opts->...).
10047         Change TARGET_BMI to TARGET_BMI_P (opts->...).
10048         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
10049         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
10050         Change TARGET_TBM to TARGET_TBM_P (opts->...).
10051         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
10052         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
10053         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
10054         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
10055         Change TARGET_AES to TARGET_AES_P (opts->...).
10056         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
10057         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
10058         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
10059         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
10060         Change TARGET_F16C to TARGET_F16C_P (opts->...).
10061         Change TARGET_RTM to TARGET_RTM_P (opts->...).
10062         Change TARGET_HLE to TARGET_HLE_P (opts->...).
10063         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
10064         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
10065         Change TARGET_ADX to TARGET_ADX_P (opts->...).
10066         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
10067         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
10068         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
10069         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
10070         Change TARGET_X32 to TARGET_X32_P (opts->...).
10071         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
10072         Change TARGET_FLOAT_RETURNS_IN_80387 to
10073         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
10074         (ix86_function_specific_save): New parameter. Use opts-> fields
10075         to replace global fields.
10076         (ix86_function_specific_restore): Ditto.
10077         (ix86_valid_target_attribute_inner_p): New parameters.
10078         Fix recursive call.
10079         Fix call to ix86_handle_option and set_option.
10080         (ix86_valid_target_attribute_tree): New parameters.
10081         Change global_options to access opts.
10082         Change global_options_set to access opts_set.
10083         Fix call to ix86_valid_target_attribute_inner_p.
10084         Change ix86_tune_string to access opts->x_ix86_tune_string.
10085         Change ix86_arch_string to access opts->x_ix86_arch_string.
10086         Change ix86_fpmath to access opts->x_ix86_fpmath
10087         Fix call to ix86_option_override_internal.
10088         Fix call to ix86_add_new_builtins.
10089         Fix calls to build_optimization_node and build_target_option_node.
10090         (ix86_valid_target_attribute_p): Remove access to global_options.
10091         Use new gcc_options structure func_options.
10092         Fix call to ix86_valid_target_attribute_tree.
10093         Fix call to  build_optimization_node.
10094         (get_builtin_code_for_version): Fix call to
10095         ix86_valid_target_attribute_tree.
10096
10097 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
10098
10099         * Makefile.in (PICFLAG): New.
10100         (enable_host_shared): New.
10101         (INTERNAL_CFLAGS): Use PICFLAG.
10102         (LIBIBERTY): Use pic build of libiberty.a if configured with
10103         --enable-host-shared.
10104         * configure.ac: Add --enable-host-shared, setting up new
10105         PICFLAG variable.
10106         * configure: Regenerate.
10107         * doc/install.texi (--enable-shared): Add note contrasting it with ...
10108         (--enable-host-shared): New option.
10109
10110 2013-10-15  Richard Biener  <rguenther@suse.de>
10111
10112         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
10113         for built-in functions.
10114
10115 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
10116
10117         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
10118         (optimize_range_tests_1): New function,
10119         extracted from optimize_range_tests.
10120         (optimize_range_tests_xor): Similarly.
10121         (optimize_range_tests_diff): New function.
10122         (optimize_range_tests): Use optimize_range_tests_1.
10123
10124 2013-10-15  Cong Hou  <congh@google.com>
10125
10126         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
10127         requirement of the reduction pattern so that one operand of the
10128         reduction operation can come from outside of the loop.
10129
10130 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10131
10132         * config/arm/neon-schedgen.ml: Remove.
10133         * config/arm/cortex-a9-neon.md: Remove comment regarding
10134         neon-schedgen.ml.
10135
10136 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10137
10138         * config/arm/types: Remove old neon types.
10139
10140 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10141
10142         * config/arm/cortex-a7.md
10143         (cortex_a7_neon_type): New.
10144         (cortex_a7_neon_mul): Update for new types.
10145         (cortex_a7_neon_mla): Likewise.
10146         (cortex_a7_neon): Likewise.
10147
10148 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10149
10150         * config/arm/cortex-a15-neon.md
10151         (cortex_a15_neon_type): New,
10152
10153         (cortex_a15_neon_int_1): Remove.
10154         (cortex_a15_neon_int_2): Likewise.
10155         (cortex_a15_neon_int_3): Likewise.
10156         (cortex_a15_neon_int_4): Likewise.
10157         (cortex_a15_neon_int_5): Likewise.
10158         (cortex_a15_neon_vqneg_vqabs): Likewise.
10159         (cortex_a15_neon_vmov): Likewise.
10160         (cortex_a15_neon_vaba): Likewise.
10161         (cortex_a15_neon_vaba_qqq): Likewise.
10162         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10163         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10164         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10165         Likewise.
10166         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10167         (cortex_a15_neon_mla_qqq_8_16): Likewise.
10168         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
10169         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10170         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10171         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
10172         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10173         (cortex_a15_neon_shift_1): Likewise.
10174         (cortex_a15_neon_shift_2): Likewise.
10175         (cortex_a15_neon_shift_3): Likewise.
10176         (cortex_a15_neon_vshl_ddd): Likewise.
10177         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10178         (cortex_a15_neon_vsra_vrsra): Likewise.
10179         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10180         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10181         (cortex_a15_neon_bp_3cycle): Likewise.
10182         (cortex_a15_neon_ldm_2): Likewise.
10183         (cortex_a15_neon_stm_2): Likewise.
10184         (cortex_a15_neon_mcr): Likewise.
10185         (cortex_a15_neon_mrc): Likewise.
10186         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
10187         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
10188         (cortex_a15_neon_fp_vmul_ddd): Likewise.
10189         (cortex_a15_neon_fp_vmul_qqd): Likewise.
10190         (cortex_a15_neon_fp_vmla_ddd): Likewise.
10191         (cortex_a15_neon_fp_vmla_qqq): Likewise.
10192         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10193         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10194         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10195         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10196         (cortex_a15_neon_bp_simple): Likewise.
10197         (cortex_a15_neon_bp_2cycle): Likewise.
10198         (cortex_a15_neon_bp_3cycle): Likewise.
10199         (cortex_a15_neon_vld1_1_2_regs): Likewise.
10200         (cortex_a15_neon_vld1_3_4_regs): Likewise.
10201         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10202         (cortex_a15_neon_vld2_4_regs): Likewise.
10203         (cortex_a15_neon_vld3_vld4): Likewise.
10204         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10205         (cortex_a15_neon_vst1_3_4_regs): Likewise.
10206         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
10207         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
10208         (cortex_a15_neon_vst3_vst4): Rename to...
10209         (cortex_a15_neon_vst4): This, update for new attributes.
10210         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
10211         (cortex_a15_neon_vld3_vld4_lane): Likewise.
10212         (cortex_a15_neon_vst1_vst2_lane): Likewise.
10213         (cortex_a15_neon_vst3_vst4_lane): Likewise.
10214         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
10215         (cortex_a15_neon_ldm_2): Likewise.
10216         (cortex_a15_neon_stm_2): Likewise.
10217         (cortex_a15_neon_mcr): Likewise.
10218         (cortex_a15_neon_mcr_2_mcrr): Likewise.
10219         (cortex_a15_neon_mrc): Likewise.
10220         (cortex_a15_neon_mrrc): Likewise.
10221
10222         (cortex_a15_neon_abd): New.
10223         (cortex_a15_neon_abd_q): Likewise.
10224         (cortex_a15_neon_aba): Likewise.
10225         (cortex_a15_neon_aba_q): Likewise.
10226         (cortex_a15_neon_acc): Likewise.
10227         (cortex_a15_neon_acc_q): Likewise.
10228         (cortex_a15_neon_arith_basic): Likewise.
10229         (cortex_a15_neon_arith_complex): Likewise.
10230         (cortex_a15_neon_multiply): Likewise.
10231         (cortex_a15_neon_multiply_q): Likewise.
10232         (cortex_a15_neon_mla): Likewise.
10233         (cortex_a15_neon_mla_q): Likewise.
10234         (cortex_a15_neon_sat_mla_long): Likewise.
10235         (cortex_a15_neon_shift_acc): Likewise.
10236         (cortex_a15_neon_shift_imm_basic): Likewise.
10237         (cortex_a15_neon_shift_imm_complex): Likewise.
10238         (cortex_a15_neon_shift_reg_basic): Likewise.
10239         (cortex_a15_neon_shift_reg_basic_q): Likewise.
10240         (cortex_a15_neon_shift_reg_complex): Likewise.
10241         (cortex_a15_neon_shift_reg_complex_q): Likewise.
10242         (cortex_a15_neon_fp_negabs): Likewise
10243         (cortex_a15_neon_fp_arith): Likewise
10244         (cortex_a15_neon_fp_arith_q): Likewise
10245         (cortex_a15_neon_fp_cvt_int): Likewise
10246         (cortex_a15_neon_fp_cvt_int_q): Likewise
10247         (cortex_a15_neon_fp_cvt_16): Likewise
10248         (cortex_a15_neon_fp_mul): Likewise
10249         (cortex_a15_neon_fp_mul_q): Likewise
10250         (cortex_a15_neon_fp_mla): Likewise
10251         (cortex_a15_neon_fp_mla_q): Likewise
10252         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
10253         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
10254         (cortex_a15_neon_bitops): Likewise.
10255         (cortex_a15_neon_bitops_q): Likewise.
10256         (cortex_a15_neon_from_gp): Likewise.
10257         (cortex_a15_neon_from_gp_q): Likewise.
10258         (cortex_a15_neon_tbl3_tbl4): Likewise.
10259         (cortex_a15_neon_zip_q): Likewise.
10260         (cortex_a15_neon_to_gp): Likewise.
10261         (cortex_a15_neon_load_a): Likewise.
10262         (cortex_a15_neon_load_b): Likewise.
10263         (cortex_a15_neon_load_c): Likewise.
10264         (cortex_a15_neon_load_d): Likewise.
10265         (cortex_a15_neon_load_e): Likewise.
10266         (cortex_a15_neon_load_f): Likewise.
10267         (cortex_a15_neon_store_a): Likewise.
10268         (cortex_a15_neon_store_b): Likewise.
10269         (cortex_a15_neon_store_c): Likewise.
10270         (cortex_a15_neon_store_d): Likewise.
10271         (cortex_a15_neon_store_e): Likewise.
10272         (cortex_a15_neon_store_f): Likewise.
10273         (cortex_a15_neon_store_g): Likewise.
10274         (cortex_a15_neon_store_h): Likewise.
10275         (cortex_a15_vfp_to_from_gp): Likewise.
10276
10277 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10278
10279         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
10280
10281         (cortex_a9_neon_vshl_ddd): Remove.
10282         (cortex_a9_neon_vst3_vst4): Likewise.
10283         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10284
10285         (cortex_a9_neon_bit_ops_q): New.
10286
10287         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
10288         (cortex_a9_neon_int_2): Likewise.
10289         (cortex_a9_neon_int_3): Likewise.
10290         (cortex_a9_neon_int_4): Likewise.
10291         (cortex_a9_neon_int_5): Likewise.
10292         (cortex_a9_neon_vqneg_vqabs): Likewise.
10293         (cortex_a9_neon_vmov): Likewise.
10294         (cortex_a9_neon_vaba): Likewise.
10295         (cortex_a9_neon_vaba_qqq): Likewise.
10296         (cortex_a9_neon_shift_1): Likewise.
10297         (cortex_a9_neon_shift_2): Likewise.
10298         (cortex_a9_neon_shift_3): Likewise.
10299         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10300         (cortex_a9_neon_vsra_vrsra): Likewise.
10301         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10302         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10303         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10304         Likewise.
10305         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10306         (cortex_a9_neon_mla_qqq_8_16): Likewise.
10307         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10308         Likewise.
10309         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10310         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10311         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
10312         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10313         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
10314         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
10315         (cortex_a9_neon_fp_vsum): Likewise.
10316         (cortex_a9_neon_fp_vmul_ddd): Likewise.
10317         (cortex_a9_neon_fp_vmul_qqd): Likewise.
10318         (cortex_a9_neon_fp_vmla_ddd): Likewise.
10319         (cortex_a9_neon_fp_vmla_qqq): Likewise.
10320         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
10321         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
10322         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10323         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10324         (cortex_a9_neon_bp_simple): Likewise.
10325         (cortex_a9_neon_bp_2cycle): Likewise.
10326         (cortex_a9_neon_bp_3cycle): Likewise.
10327         (cortex_a9_neon_ldr): Likewise.
10328         (cortex_a9_neon_str): Likewise.
10329         (cortex_a9_neon_vld1_1_2_regs): Likewise.
10330         (cortex_a9_neon_vld1_3_4_regs): Likewise.
10331         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10332         (cortex_a9_neon_vld2_4_regs): Likewise.
10333         (cortex_a9_neon_vld3_vld4): Likewise.
10334         (cortex_a9_neon_vld1_vld2_lane): Likewise.
10335         (cortex_a9_neon_vld3_vld4_lane): Likewise.
10336         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10337         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10338         (cortex_a9_neon_vst1_3_4_regs): Likewise.
10339         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10340         (cortex_a9_neon_vst1_vst2_lane): Likewise.
10341         (cortex_a9_neon_vst3_vst4_lane): Likewise.
10342         (cortex_a9_neon_mcr): Likewise.
10343         (cortex_a9_neon_mcr_2_mcrr): Likewise.
10344         (cortex_a9_neon_mrc): Likewise.
10345         (cortex_a9_neon_mrrc): Likewise.
10346
10347 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10348
10349         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
10350
10351         (cortex_a8_neon_vshl_ddd): Remove.
10352         (cortex_a8_neon_vst3_vst4): Likewise.
10353         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10354
10355         (cortex_a8_neon_bit_ops_q): New.
10356
10357         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
10358         (cortex_a8_neon_int_2): Likewise..
10359         (cortex_a8_neon_int_3): Likewise.
10360         (cortex_a8_neon_int_5): Likewise.
10361         (cortex_a8_neon_vqneg_vqabs): Likewise.
10362         (cortex_a8_neon_int_4): Likewise.
10363         (cortex_a8_neon_vaba): Likewise.
10364         (cortex_a8_neon_vaba_qqq): Likewise.
10365         (cortex_a8_neon_shift_1): Likewise.
10366         (cortex_a8_neon_shift_2): Likewise.
10367         (cortex_a8_neon_shift_3): Likewise.
10368         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10369         (cortex_a8_neon_vsra_vrsra): Likewise.
10370         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10371         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10372         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10373         Likewise.
10374         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10375         (cortex_a8_neon_mla_qqq_8_16): Likewise.
10376         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10377         Likewise.
10378         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10379         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10380         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
10381         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10382         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
10383         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
10384         (cortex_a8_neon_fp_vsum): Likewise.
10385         (cortex_a8_neon_fp_vmul_ddd): Likewise.
10386         (cortex_a8_neon_fp_vmul_qqd): Likewise.
10387         (cortex_a8_neon_fp_vmla_ddd): Likewise.
10388         (cortex_a8_neon_fp_vmla_qqq): Likewise.
10389         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
10390         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
10391         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10392         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10393         (cortex_a8_neon_bp_simple): Likewise.
10394         (cortex_a8_neon_bp_2cycle): Likewise.
10395         (cortex_a8_neon_bp_3cycle): Likewise.
10396         (cortex_a8_neon_ldr): Likewise.
10397         (cortex_a8_neon_str): Likewise.
10398         (cortex_a8_neon_vld1_1_2_regs): Likewise.
10399         (cortex_a8_neon_vld1_3_4_regs): Likewise.
10400         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10401         (cortex_a8_neon_vld2_4_regs): Likewise.
10402         (cortex_a8_neon_vld3_vld4): Likewise.
10403         (cortex_a8_neon_vld1_vld2_lane): Likewise.
10404         (cortex_a8_neon_vld3_vld4_lane): Likewise.
10405         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10406         (cortex_a8_neon_vst1_3_4_regs): Likewise.
10407         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
10408         (cortex_a8_neon_vst1_vst2_lane): Likewise.
10409         (cortex_a8_neon_vst3_vst4_lane): Likewise.
10410         (cortex_a8_neon_mcr): Likewise.
10411         (cortex_a8_neon_mcr_2_mcrr): Likewise.
10412         (cortex_a8_neon_mrc): Likewise.
10413         (cortex_a8_neon_mrrc): Likewise.
10414
10415 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10416
10417         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
10418         (fp): New.
10419         * config/aarch64/aarch64-simd.md (neon_type): Remove.
10420         (aarch64_simd_dup<mode>): Add "type" attribute.
10421         (aarch64_dup_lane<mode>): Likewise.
10422         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
10423         (*aarch64_simd_mov<mode>): Likewise.
10424         (aarch64_simd_mov_from_<mode>low): Likewise.
10425         (aarch64_simd_mov_from_<mode>high): Likewise.
10426         (orn<mode>3): Likewise.
10427         (bic<mode>3): Likewise.
10428         (add<mode>3): Likewise.
10429         (sub<mode>3): Likewise.
10430         (mul<mode>3): Likewise.
10431         (*aarch64_mul3_elt<mode>): Likewise.
10432         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10433         (*aarch64_mul3_elt_to_128df): Likewise.
10434         (*aarch64_mul3_elt_to_64v2df): Likewise.
10435         (neg<mode>2): Likewise.
10436         (abs<mode>2): Likewise.
10437         (abd<mode>_3): Likewise.
10438         (aba<mode>_3): Likewise.
10439         (fabd<mode>_3): Likewise.
10440         (*fabd_scalar<mode>3): Likewise.
10441         (and<mode>3): Likewise.
10442         (ior<mode>3): Likewise.
10443         (xor<mode>3): Likewise.
10444         (one_cmpl<mode>2): Likewise.
10445         (aarch64_simd_vec_set<mode>): Likewise.
10446         (aarch64_simd_lshr<mode>): Likewise.
10447         (aarch64_simd_ashr<mode>): Likewise.
10448         (aarch64_simd_imm_shl<mode>): Likewise.
10449         (aarch64_simd_reg_sshl<mode): Likewise.
10450         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
10451         (aarch64_simd_reg_shl<mode>_signed): Likewise.
10452         (aarch64_simd_vec_setv2di): Likewise.
10453         (aarch64_simd_vec_set<mode>): Likewise.
10454         (aarch64_mla<mode>): Likewise.
10455         (*aarch64_mla_elt<mode>): Likewise.
10456         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
10457         (aarch64_mls<mode>): Likewise.
10458         (*aarch64_mls_elt<mode>): Likewise.
10459         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
10460         (<su><maxmin><mode>3): Likewise.
10461         (move_lo_quad_<mode>): Likewise.
10462         (aarch64_simd_move_hi_quad_<mode>): Likewise.
10463         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
10464         (vec_pack_trunc_<mode>): Likewise.
10465         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
10466         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
10467         (*aarch64_<su>mlal_lo<mode>): Likewise.
10468         (*aarch64_<su>mlal_hi<mode>): Likewise.
10469         (*aarch64_<su>mlsl_lo<mode>): Likewise.
10470         (*aarch64_<su>mlsl_hi<mode>): Likewise.
10471         (*aarch64_<su>mlal<mode>): Likewise.
10472         (*aarch64_<su>mlsl<mode>): Likewise.
10473         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
10474         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
10475         (add<mode>3): Likewise.
10476         (sub<mode>3): Likewise.
10477         (mul<mode>3): Likewise.
10478         (div<mode>3): Likewise.
10479         (neg<mode>2): Likewise.
10480         (abs<mode>2): Likewise.
10481         (fma<mode>4): Likewise.
10482         (*aarch64_fma4_elt<mode>): Likewise.
10483         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
10484         (*aarch64_fma4_elt_to_128df): Likewise.
10485         (*aarch64_fma4_elt_to_64v2df): Likewise.
10486         (fnma<mode>4): Likewise.
10487         (*aarch64_fnma4_elt<mode>): Likewise.
10488         (*aarch64_fnma4_elt_<vswap_width_name><mode>
10489         (*aarch64_fnma4_elt_to_128df): Likewise.
10490         (*aarch64_fnma4_elt_to_64v2df): Likewise.
10491         (<frint_pattern><mode>2): Likewise.
10492         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10493         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
10494         (vec_unpacks_lo_v4sf): Likewise.
10495         (aarch64_float_extend_lo_v2df): Likewise.
10496         (vec_unpacks_hi_v4sf): Likewise.
10497         (aarch64_float_truncate_lo_v2sf): Likewise.
10498         (aarch64_float_truncate_hi_v4sf): Likewise.
10499         (aarch64_vmls<mode>): Likewise.
10500         (<su><maxmin><mode>3): Likewise.
10501         (<maxmin_uns><mode>3): Likewise.
10502         (reduc_<sur>plus_<mode>): Likewise.
10503         (reduc_<sur>plus_v2di): Likewise.
10504         (reduc_<sur>plus_v2si): Likewise.
10505         (reduc_<sur>plus_<mode>): Likewise.
10506         (aarch64_addpv4sf): Likewise.
10507         (clz<mode>2): Likewise.
10508         (reduc_<maxmin_uns>_<mode>): Likewise.
10509         (reduc_<maxmin_uns>_v2di): Likewise.
10510         (reduc_<maxmin_uns>_v2si): Likewise.
10511         (reduc_<maxmin_uns>_<mode>): Likewise.
10512         (reduc_<maxmin_uns>_v4sf): Likewise.
10513         (aarch64_simd_bsl<mode>_internal): Likewise.
10514         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10515         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
10516         (aarch64_get_lane<mode>): Likewise.
10517         (*aarch64_combinez<mode>): Likewise.
10518         (aarch64_combine<mode>): Likewise.
10519         (aarch64_simd_combine<mode>): Likewise.
10520         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
10521         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
10522         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
10523         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
10524         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
10525         (aarch64_<sur>h<addsub><mode>): Likewise.
10526         (aarch64_<sur><addsub>hn<mode>): Likewise.
10527         (aarch64_<sur><addsub>hn2<mode>): Likewise.
10528         (aarch64_pmul<mode>): Likewise.
10529         (aarch64_<su_optab><optab><mode>): Likewise.
10530         (aarch64_<sur>qadd<mode>): Likewise.
10531         (aarch64_sqmovun<mode>): Likewise.
10532         (aarch64_<sur>qmovn<mode>): Likewise.
10533         (aarch64_s<optab><mode>): Likewise.
10534         (aarch64_sq<r>dmulh<mode>): Likewise.
10535         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10536         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
10537         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10538         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
10539         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10540         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10541         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
10542         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
10543         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10544         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
10545         (aarch64_sqdmull<mode>): Likewise.
10546         (aarch64_sqdmull_lane<mode>_internal): Likewise.
10547         (aarch64_sqdmull_n<mode>): Likewise.
10548         (aarch64_sqdmull2<mode>_internal): Likewise.
10549         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10550         (aarch64_sqdmull2_n<mode>_internal): Likewise.
10551         (aarch64_<sur>shl<mode>): Likewise.
10552         (aarch64_<sur>q<r>shl<mode>
10553         (aarch64_<sur>shll_n<mode>): Likewise.
10554         (aarch64_<sur>shll2_n<mode>): Likewise.
10555         (aarch64_<sur>shr_n<mode>): Likewise.
10556         (aarch64_<sur>sra_n<mode>): Likewise.
10557         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
10558         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
10559         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
10560         (aarch64_cm<optab><mode>): Likewise.
10561         (aarch64_cm<optab>di): Likewise.
10562         (aarch64_cm<optab><mode>): Likewise.
10563         (aarch64_cm<optab>di): Likewise.
10564         (aarch64_cmtst<mode>): Likewise.
10565         (aarch64_cmtstdi): Likewise.
10566         (aarch64_cm<optab><mode>): Likewise.
10567         (*aarch64_fac<optab><mode>): Likewise.
10568         (aarch64_addp<mode>): Likewise.
10569         (aarch64_addpdi): Likewise.
10570         (sqrt<mode>2): Likewise.
10571         (vec_load_lanesoi<mode>): Likewise.
10572         (vec_store_lanesoi<mode>): Likewise.
10573         (vec_load_lanesci<mode>): Likewise.
10574         (vec_store_lanesci<mode>): Likewise.
10575         (vec_load_lanesxi<mode>): Likewise.
10576         (vec_store_lanesxi<mode>): Likewise.
10577         (*aarch64_mov<mode>): Likewise.
10578         (aarch64_ld2<mode>_dreg): Likewise.
10579         (aarch64_ld2<mode>_dreg): Likewise.
10580         (aarch64_ld3<mode>_dreg): Likewise.
10581         (aarch64_ld3<mode>_dreg): Likewise.
10582         (aarch64_ld4<mode>_dreg): Likewise.
10583         (aarch64_ld4<mode>_dreg): Likewise.
10584         (aarch64_tbl1<mode>): Likewise.
10585         (aarch64_tbl2v16qi): Likewise.
10586         (aarch64_combinev16qi): Likewise.
10587         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
10588         (aarch64_st2<mode>_dreg): Likewise.
10589         (aarch64_st2<mode>_dreg): Likewise.
10590         (aarch64_st3<mode>_dreg): Likewise.
10591         (aarch64_st3<mode>_dreg): Likewise.
10592         (aarch64_st4<mode>_dreg): Likewise.
10593         (aarch64_st4<mode>_dreg): Likewise.
10594         (*aarch64_simd_ld1r<mode>): Likewise.
10595         (aarch64_frecpe<mode>): Likewise.
10596         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10597         (aarch64_frecps<mode>): Likewise.
10598
10599 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10600
10601         * config/arm/iterators.md (V_elem_ch): New.
10602         (q): Likewise.
10603         (VQH_type): Likewise.
10604         * config/arm/arm.md (is_neon_type): New.
10605         (conds): Use is_neon_type.
10606         (anddi3_insn): Update type attribute.
10607         (xordi3_insn): Likewise.
10608         (one_cmpldi2): Likewise.
10609         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
10610         * config/arm/neon.md (neon_mov): Update type attribute.
10611         (*movmisalign<mode>_neon_store): Likewise.
10612         (*movmisalign<mode>_neon_load): Likewise.
10613         (vec_set<mode>_internal): Likewise.
10614         (vec_set<mode>_internal): Likewise.
10615         (vec_setv2di_internal): Likewise.
10616         (vec_extract<mode>): Likewise.
10617         (vec_extract<mode>): Likewise.
10618         (vec_extractv2di): Likewise.
10619         (*add<mode>3_neon): Likewise.
10620         (adddi3_neon): Likewise.
10621         (*sub<mode>3_neon): Likewise.
10622         (subdi3_neon): Likewise.
10623         (fma<VCVTF:mode>4): Likewise.
10624         (fma<VCVTF:mode>4_intrinsic): Likewise.
10625         (*fmsub<VCVTF:mode>4): Likewise.
10626         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
10627         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
10628         (ior<mode>3): Likewise.
10629         (and<mode>3): Likewise.
10630         (orn<mode>3_neon): Likewise.
10631         (orndi3_neon): Likewise.
10632         (bic<mode>3_neon): Likewise.
10633         (bicdi3_neon): Likewise.
10634         (xor<mode>3): Likewise.
10635         (one_cmpl<mode>2): Likewise.
10636         (abs<mode>2): Likewise.
10637         (neg<mode>2): Likewise.
10638         (negdi2_neon): Likewise.
10639         (*umin<mode>3_neon): Likewise.
10640         (*umax<mode>3_neon): Likewise.
10641         (*smin<mode>3_neon): Likewise.
10642         (*smax<mode>3_neon): Likewise.
10643         (vashl<mode>3): Likewise.
10644         (vashr<mode>3_imm): Likewise.
10645         (vlshr<mode>3_imm): Likewise.
10646         (ashl<mode>3_signed): Likewise.
10647         (ashl<mode>3_unsigned): Likewise.
10648         (neon_load_count): Likewise.
10649         (ashldi3_neon_noclobber): Likewise.
10650         (ashldi3_neon): Likewise.
10651         (signed_shift_di3_neon): Likewise.
10652         (unsigned_shift_di3_neon): Likewise.
10653         (ashrdi3_neon_imm_noclobber): Likewise.
10654         (lshrdi3_neon_imm_noclobber): Likewise.
10655         (<shift>di3_neon): Likewise.
10656         (widen_ssum<mode>3): Likewise.
10657         (widen_usum<mode>3): Likewise.
10658         (quad_halves_<code>v4si): Likewise.
10659         (quad_halves_<code>v4sf): Likewise.
10660         (quad_halves_<code>v8hi): Likewise.
10661         (quad_halves_<code>v16qi): Likewise.
10662         (reduc_splus_v2di): Likewise.
10663         (neon_vpadd_internal<mode>): Likewise.
10664         (neon_vpsmin<mode>): Likewise.
10665         (neon_vpsmax<mode>): Likewise.
10666         (neon_vpumin<mode>): Likewise.
10667         (neon_vpumax<mode>): Likewise.
10668         (*ss_add<mode>_neon): Likewise.
10669         (*us_add<mode>_neon): Likewise.
10670         (*ss_sub<mode>_neon): Likewise.
10671         (*us_sub<mode>_neon): Likewise.
10672         (neon_vadd<mode>_unspec): Likewise.
10673         (neon_vaddl<mode>): Likewise.
10674         (neon_vaddw<mode>): Likewise.
10675         (neon_vhadd<mode>): Likewise.
10676         (neon_vqadd<mode>): Likewise.
10677         (neon_vaddhn<mode>): Likewise.
10678         (neon_vmul<mode>): Likewise.
10679         (neon_vfms<VCVTF:mode>): Likewise.
10680         (neon_vmlal<mode>): Likewise.
10681         (neon_vmls<mode>): Likewise.
10682         (neon_vmlsl<mode>): Likewise.
10683         (neon_vqdmulh<mode>): Likewise.
10684         (neon_vqdmlal<mode>): Likewise.
10685         (neon_vqdmlsl<mode>): Likewise.
10686         (neon_vmull<mode>): Likewise.
10687         (neon_vqdmull<mode>): Likewise.
10688         (neon_vsub<mode>_unspec): Likewise.
10689         (neon_vsubl<mode>): Likewise.
10690         (neon_vsubw<mode>): Likewise.
10691         (neon_vqsub<mode>): Likewise.
10692         (neon_vhsub<mode>): Likewise.
10693         (neon_vsubhn<mode>): Likewise.
10694         (neon_vceq<mode>): Likewise.
10695         (neon_vcge<mode>): Likewise.
10696         (neon_vcgeu<mode>): Likewise.
10697         (neon_vcgt<mode>): Likewise.
10698         (neon_vcgtu<mode>): Likewise.
10699         (neon_vcle<mode>): Likewise.
10700         (neon_vclt<mode>): Likewise.
10701         (neon_vcage<mode>): Likewise.
10702         (neon_vcagt<mode>): Likewise.
10703         (neon_vtst<mode>): Likewise.
10704         (neon_vabd<mode>): Likewise.
10705         (neon_vabdl<mode>): Likewise.
10706         (neon_vaba<mode>): Likewise.
10707         (neon_vabal<mode>): Likewise.
10708         (neon_vmax<mode>): Likewise.
10709         (neon_vmin<mode>): Likewise.
10710         (neon_vpaddl<mode>): Likewise.
10711         (neon_vpadal<mode>): Likewise.
10712         (neon_vpmax<mode>): Likewise.
10713         (neon_vpmin<mode>): Likewise.
10714         (neon_vrecps<mode>): Likewise.
10715         (neon_vrsqrts<mode>): Likewise.
10716         (neon_vqabs<mode>): Likewise.
10717         (neon_vqneg<mode>): Likewise.
10718         (neon_vcls<mode>): Likewise.
10719         (clz<mode>2): Likewise.
10720         (popcount<mode>2): Likewise.
10721         (neon_vrecpe<mode>): Likewise.
10722         (neon_vrsqrte<mode>): Likewise.
10723         (neon_vget_lane<mode>_sext_internal): Likewise.
10724         (neon_vget_lane<mode>_zext_internal): Likewise.
10725         (neon_vdup_n<mode>): Likewise.
10726         (neon_vdup_n<mode>): Likewise.
10727         (neon_vdup_nv2di): Likewise.
10728         (neon_vdup_lane<mode>_interal): Likewise.
10729         (*neon_vswp<mode>): Likewise.
10730         (neon_vcombine<mode>): Likewise.
10731         (float<mode><V_cvtto>2): Likewise.
10732         (floatuns<mode><V_cvtto>2): Likewise.
10733         (fix_trunc<mode><V_cvtto>2): Likewise.
10734         (fixuns_trunc<mode><V_cvtto>2
10735         (neon_vcvt<mode>): Likewise.
10736         (neon_vcvt<mode>): Likewise.
10737         (neon_vcvtv4sfv4hf): Likewise.
10738         (neon_vcvtv4hfv4sf): Likewise.
10739         (neon_vcvt_n<mode>): Likewise.
10740         (neon_vcvt_n<mode>): Likewise.
10741         (neon_vmovn<mode>): Likewise.
10742         (neon_vqmovn<mode>): Likewise.
10743         (neon_vqmovun<mode>): Likewise.
10744         (neon_vmovl<mode>): Likewise.
10745         (neon_vmul_lane<mode>): Likewise.
10746         (neon_vmul_lane<mode>): Likewise.
10747         (neon_vmull_lane<mode>): Likewise.
10748         (neon_vqdmull_lane<mode>): Likewise.
10749         (neon_vqdmulh_lane<mode>): Likewise.
10750         (neon_vqdmulh_lane<mode>): Likewise.
10751         (neon_vmla_lane<mode>): Likewise.
10752         (neon_vmla_lane<mode>): Likewise.
10753         (neon_vmlal_lane<mode>): Likewise.
10754         (neon_vqdmlal_lane<mode>): Likewise.
10755         (neon_vmls_lane<mode>): Likewise.
10756         (neon_vmls_lane<mode>): Likewise.
10757         (neon_vmlsl_lane<mode>): Likewise.
10758         (neon_vqdmlsl_lane<mode>): Likewise.
10759         (neon_vext<mode>): Likewise.
10760         (neon_vrev64<mode>): Likewise.
10761         (neon_vrev32<mode>): Likewise.
10762         (neon_vrev16<mode>): Likewise.
10763         (neon_vbsl<mode>_internal): Likewise.
10764         (neon_vshl<mode>): Likewise.
10765         (neon_vqshl<mode>): Likewise.
10766         (neon_vshr_n<mode>): Likewise.
10767         (neon_vshrn_n<mode>): Likewise.
10768         (neon_vqshrn_n<mode>): Likewise.
10769         (neon_vqshrun_n<mode>): Likewise.
10770         (neon_vshl_n<mode>): Likewise.
10771         (neon_vqshl_n<mode>): Likewise.
10772         (neon_vqshlu_n<mode>): Likewise.
10773         (neon_vshll_n<mode>): Likewise.
10774         (neon_vsra_n<mode>): Likewise.
10775         (neon_vsri_n<mode>): Likewise.
10776         (neon_vsli_n<mode>): Likewise.
10777         (neon_vtbl1v8qi): Likewise.
10778         (neon_vtbl2v8qi): Likewise.
10779         (neon_vtbl3v8qi): Likewise.
10780         (neon_vtbl4v8qi): Likewise.
10781         (neon_vtbl1v16qi): Likewise.
10782         (neon_vtbl2v16qi): Likewise.
10783         (neon_vcombinev16qi): Likewise.
10784         (neon_vtbx1v8qi): Likewise.
10785         (neon_vtbx2v8qi): Likewise.
10786         (neon_vtbx3v8qi): Likewise.
10787         (neon_vtbx4v8qi): Likewise.
10788         (*neon_vtrn<mode>_insn): Likewise.
10789         (*neon_vzip<mode>_insn): Likewise.
10790         (*neon_vuzp<mode>_insn): Likewise.
10791         (neon_vld1<mode>): Likewise.
10792         (neon_vld1_lane<mode>): Likewise.
10793         (neon_vld1_lane<mode>): Likewise.
10794         (neon_vld1_dup<mode>): Likewise.
10795         (neon_vld1_dup<mode>): Likewise.
10796         (neon_vld1_dupv2di): Likewise.
10797         (neon_vst1<mode>): Likewise.
10798         (neon_vst1_lane<mode>): Likewise.
10799         (neon_vst1_lane<mode>): Likewise.
10800         (neon_vld2<mode>): Likewise.
10801         (neon_vld2<mode>): Likewise.
10802         (neon_vld2_lane<mode>): Likewise.
10803         (neon_vld2_lane<mode>): Likewise.
10804         (neon_vld2_dup<mode>): Likewise.
10805         (neon_vst2<mode>): Likewise.
10806         (neon_vst2<mode>): Likewise.
10807         (neon_vst2_lane<mode>): Likewise.
10808         (neon_vst2_lane<mode>): Likewise.
10809         (neon_vld3<mode>): Likewise.
10810         (neon_vld3qa<mode>): Likewise.
10811         (neon_vld3qb<mode>): Likewise.
10812         (neon_vld3_lane<mode>): Likewise.
10813         (neon_vld3_lane<mode>): Likewise.
10814         (neon_vld3_dup<mode>): Likewise.
10815         (neon_vst3<mode>): Likewise.
10816         (neon_vst3qa<mode>): Likewise.
10817         (neon_vst3qb<mode>): Likewise.
10818         (neon_vst3_lane<mode>): Likewise.
10819         (neon_vst3_lane<mode>): Likewise.
10820         (neon_vld4<mode>): Likewise.
10821         (neon_vld4qa<mode>): Likewise.
10822         (neon_vld4qb<mode>): Likewise.
10823         (neon_vld4_lane<mode>): Likewise.
10824         (neon_vld4_lane<mode>): Likewise.
10825         (neon_vld4_dup<mode>): Likewise.
10826         (neon_vst4<mode>): Likewise.
10827         (neon_vst4qa<mode>): Likewise.
10828         (neon_vst4qb<mode>): Likewise.
10829         (neon_vst4_lane<mode>): Likewise.
10830         (neon_vst4_lane<mode>): Likewise.
10831         (neon_vec_unpack<US>_lo_<mode>): Likewise.
10832         (neon_vec_unpack<US>_hi_<mode>): Likewise.
10833         (neon_vec_<US>mult_lo_<mode>): Likewise.
10834         (neon_vec_<US>mult_hi_<mode>): Likewise.
10835         (neon_vec_<US>shiftl_<mode>): Likewise.
10836         (neon_unpack<US>_<mode>): Likewise.
10837         (neon_vec_<US>mult_<mode>): Likewise.
10838         (vec_pack_trunc_<mode>): Likewise.
10839         (neon_vec_pack_trunc_<mode>): Likewise.
10840         (neon_vabd<mode>_2): Likewise.
10841         (neon_vabd<mode>_3): Likewise.
10842
10843 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10844
10845         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
10846         (load_pair): Update type attribute.
10847         (store_pair): Update type attribute.
10848         * config/aarch64/iterators.md (q): New.
10849
10850 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10851
10852         * config/arm/types.md: Add new types for Neon insns.
10853
10854 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10855             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10856             Sergey Lega  <sergey.s.lega@intel.com>
10857             Anna Tikhonova  <anna.tikhonova@intel.com>
10858             Ilya Tocar  <ilya.tocar@intel.com>
10859             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10860             Ilya Verbin  <ilya.verbin@intel.com>
10861             Kirill Yukhin  <kirill.yukhin@intel.com>
10862             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10863
10864         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
10865         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
10866         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
10867         (rcp14<mode>): New.
10868         (srcp14<mode>): Ditto.
10869         (rsqrt14<mode>): Ditto.
10870         (rsqrt14<mode>): Ditto.
10871         (avx512f_vmscalef<mode>): Ditto.
10872         (avx512f_scalef<mode>): Ditto.
10873         (avx512f_getexp<mode>): Ditto.
10874         (avx512f_sgetexp<mode>): Ditto.
10875         (avx512f_fixupimm<mode>): Ditto.
10876         (avx512f_sfixupimm<mode>): Ditto.
10877         (avx512f_rndscale<mode>): Ditto.
10878         (*avx512er_exp2<mode>): Ditto.
10879         (*avx512er_rcp28<mode>): Ditto.
10880         (avx512er_rsqrt28<mode>): Ditto.
10881         (avx512f_getmant<mode>): Ditto.
10882         (avx512f_getmant<mode>): Ditto.
10883         (avx512f_rndscale<mode>): Fix formatting.
10884
10885 2013-10-15  Martin Jambor  <mjambor@suse.cz>
10886
10887         * ipa-utils.h (ipa_edge_within_scc): Declare.
10888         * ipa-cp.c (edge_within_scc): Moved...
10889         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
10890
10891 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10892             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10893             Sergey Lega  <sergey.s.lega@intel.com>
10894             Anna Tikhonova  <anna.tikhonova@intel.com>
10895             Ilya Tocar  <ilya.tocar@intel.com>
10896             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10897             Ilya Verbin  <ilya.verbin@intel.com>
10898             Kirill Yukhin  <kirill.yukhin@intel.com>
10899             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10900
10901         * config/i386/predicates.md (const_8_to_15_operand): New.
10902         (const_16_to_31_operand): Ditto.
10903         * config/i386/sse.md (V8FI): New.
10904         (V16FI): Ditto.
10905         (reduc_splus_v8df): Ditto.
10906         (reduc_splus_v16sf): Ditto.
10907         (avx512f_vextract<shuffletype>32x4_1): Ditto.
10908         (vec_extract_hi_<mode>): Ditto.
10909         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
10910         (vec_set_lo_<mode>): Ditto.
10911         (vec_set_hi_<mode>): Ditto.
10912         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
10913         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
10914         (avx512f_pshufd_1): Ditto.
10915         (avx512f_broadcast<mode>): Ditto.
10916         (avx512f_broadcast<mode>): Ditto.
10917         (define_split): Split vec_extract_lo into move.
10918         (ssequartermode): Ditto.
10919         (ssedoublemode): Extened with wider modes.
10920         (vec_extract_lo_<mode>): Ditto.
10921
10922 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10923             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10924             Sergey Lega  <sergey.s.lega@intel.com>
10925             Anna Tikhonova  <anna.tikhonova@intel.com>
10926             Ilya Tocar  <ilya.tocar@intel.com>
10927             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10928             Ilya Verbin  <ilya.verbin@intel.com>
10929             Kirill Yukhin  <kirill.yukhin@intel.com>
10930             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10931
10932         * config/i386/predicates.md (register_or_constm1_operand): New.
10933         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
10934         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
10935         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
10936         UNSPEC_SCATTER_PREFETCH
10937         (VI48_512): New.
10938         (avx512f_ucmp<mode>3): Ditto.
10939         (avx512f_vternlog<mode>): Ditto.
10940         (avx512f_align<mode>): Ditto.
10941         (<shift_insn><mode>3): Ditto.
10942         (avx512f_<rotate>v<mode>): Ditto.
10943         (avx512f_<rotate><mode>): Ditto.
10944         (avx512f_eq<mode>3): Ditto.
10945         (avx512f_eq<mode>3_1): Ditto.
10946         (avx512f_gt<mode>3): Ditto.
10947         (avx512f_testm<mode>3): Ditto.
10948         (avx512f_testnm<mode>3): Ditto.
10949         (avx512pf_gatherpf<mode>): Ditto.
10950         (*avx512pf_gatherpf<mode>_mask): Ditto.
10951         (*avx512pf_gatherpf<mode>): Ditto.
10952         (avx512pf_scatterpf<mode>): Ditto.
10953         (*avx512pf_scatterpf<mode>_mask): Ditto.
10954         (*avx512pf_scatterpf<mode>): Ditto.
10955         (avx512f_vec_dup_gpr<mode>): Ditto.
10956         (clz<mode>2): Ditto.
10957         (conflict<mode>): Ditto.
10958         (REDUC_SMINMAX_MODE): Extened with wider modes.
10959         (reduc_<code>_<mode>): Ditto.
10960         (vlshr<mode>3): Ditto.
10961         (vashl<mode>3): Ditto.
10962
10963 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10964             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10965             Sergey Lega  <sergey.s.lega@intel.com>
10966             Anna Tikhonova  <anna.tikhonova@intel.com>
10967             Ilya Tocar  <ilya.tocar@intel.com>
10968             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10969             Ilya Verbin  <ilya.verbin@intel.com>
10970             Kirill Yukhin  <kirill.yukhin@intel.com>
10971             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10972
10973         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
10974         UNSPEC_SCATTER.
10975         (VI48F_512): New.
10976         (avx512fmaskmode): Ditto.
10977         (bcstscalarsuff): Ditto.
10978         (avx512f_blendm<mode>): Ditto.
10979         (cmp_imm_predicate): Ditto.
10980         (avx512f_cmp<mode>3): Ditto.
10981         (avx512f_vec_dup<mode>): Ditto.
10982         (avx512f_vec_dup_mem<mode>): Ditto.
10983         (avx512f_vpermi2var<mode>3): Ditto.
10984         (avx512f_vpermt2var<mode>3): Ditto.
10985         (vec_init<mode>): Ditto.
10986         (avx512f_gathersi<mode>): Ditto.
10987         (*avx512f_gathersi<mode>): Ditto.
10988         (*avx512f_gathersi<mode>_2): Ditto.
10989         (avx512f_gatherdi<mode>): Ditto.
10990         (*avx512f_gatherdi<mode>): Ditto.
10991         (*avx512f_gatherdi<mode>_2): Ditto.
10992         (avx512f_scattersi<mode>): Ditto.
10993         (*avx512f_scattersi<mode>): Ditto.
10994         (avx512f_scatterdi<mode>): Ditto.
10995         (*avx512f_scatterdi<mode>): Ditto.
10996         (sseintprefix): Extened with wider modes.
10997         (VEC_GATHER_IDXSI): Ditto.
10998         (VEC_GATHER_IDXDI): Ditto.
10999         (VEC_GATHER_SRCDI): Ditto.
11000
11001 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
11002             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11003
11004         * config/arm/t-aprofile: New file.
11005         * config.gcc: Handle --with-multilib-list option.
11006
11007 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
11008
11009         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
11010         the input for r2.
11011
11012 2013-10-15  Richard Biener  <rguenther@suse.de>
11013
11014         * tree-loop-distribution.c (build_empty_rdg): Inline into
11015         single user.
11016         (rdg_flag_vertex): Inline into single user.
11017         (rdg_flag_vertex_and_dependent): Likewise.
11018         (build_rdg_partition_for_vertex): Remove processed bitmap.
11019         (rdg_build_partitions): Simplify.
11020
11021 2013-10-15  Richard Biener  <rguenther@suse.de>
11022
11023         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
11024         Restructure forwarding through conversions and copies to
11025         avoid performing copy-propagation the wrong way.  Adjust
11026         recursion invocations.
11027         (forward_propagate_addr_expr): Add argument stating if we
11028         are recursing from a single-use.
11029         (ssa_forward_propagate_and_combine): Adjust.
11030
11031 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
11032
11033         * dumpfile.h (gcc::dump_manager): New class, to hold state
11034         relating to dumpfile management.
11035         (get_dump_file_name): Remove in favor of method of dump_manager.
11036         (dump_initialized_p): Likewise.
11037         (dump_start): Likewise.
11038         (dump_finish): Likewise.
11039         (dump_switch_p): Likewise.
11040         (dump_register): Likewise.
11041         (get_dump_file_info): Likewise.
11042         * context.c (gcc::context::context): Construct the dump_manager
11043         instance.
11044         * context.h (gcc::context::get_dumps): New.
11045         (gcc::context::m_dumps): New.
11046         * coverage.c (coverage_init): Port to dump_manager API.
11047         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
11048         (extra_dump_files_in_use): Likewise.
11049         (extra_dump_files_alloced): Likewise.
11050         (gcc::dump_manager::dump_manager): New.
11051         (dump_register): Convert to...
11052         (gcc::dump_manager::dump_register): ...method, replacing
11053         function-static next_dump with m_next_dump field.
11054         (get_dump_file_info): Convert to...
11055         (gcc::dump_manager::get_dump_file_info): ...method.
11056         (get_dump_file_name): Convert to...
11057         (gcc::dump_manager::get_dump_file_name): ...method.
11058         (dump_start): Convert to...
11059         (gcc::dump_manager::dump_start): ...method.
11060         (dump_finish): Convert to...
11061         (gcc::dump_manager::dump_finish): ...method.
11062         (dump_begin): Replace body with...
11063         (gcc::dump_manager::dump_begin): ...new method.
11064         (dump_phase_enabled_p): Convert to...
11065         (gcc::dump_manager::dump_phase_enabled_p): ...method.
11066         (dump_phase_enabled_p): Convert to...
11067         (gcc::dump_manager::dump_phase_enabled_p): ...method.
11068         (dump_initialized_p):  Convert to...
11069         (gcc::dump_manager::dump_initialized_p): ...method.
11070         (dump_flag_name): Replace body with...
11071         (gcc::dump_manager::dump_flag_name): ...new method.
11072         (dump_enable_all): Convert to...
11073         (gcc::dump_manager::dump_enable_all): ...new method.
11074         (opt_info_enable_passes): Convert to...
11075         (gcc::dump_manager::opt_info_enable_passes): ...new method.
11076         (dump_switch_p_1): Convert to...
11077         (gcc::dump_manager::dump_switch_p_1): ...new method.
11078         (dump_switch_p):  Convert to...
11079         (gcc::dump_manager::dump_switch_p): ...new method.
11080         (opt_info_switch_p): Port to dump_manager API.
11081         (enable_rtl_dump_file): Likewise.
11082         * opts-global.c (handle_common_deferred_options): Port to new
11083         dump_manager API.
11084         * passes.c (pass_manager::finish_optimization_passes): Likewise.
11085         (pass_manager::register_one_dump_file): Likewise.
11086         (pass_manager::register_pass): Likewise.
11087         (pass_init_dump_file): Likewise.
11088         (pass_fini_dump_file): Likewise.
11089         * statistics.c (statistics_early_init): Likewise.
11090
11091 2013-10-14  Richard Biener  <rguenther@suse.de>
11092
11093         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
11094         iterative_hash_canonical_type, gimple_canonical_type_hash,
11095         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
11096         gimple_register_canonical_type, print_gimple_types_stats,
11097         free_gimple_type_tables): Move to lto/lto.c
11098         (gt-gimple.h): Do not include.
11099         * gimple.h (gimple_register_canonical_type,
11100         print_gimple_types_stats, free_gimple_type_tables): Remove.
11101         * Makefile.in (GTFILES): Remove gimple.c.
11102
11103 2013-10-14  Travis Snoozy  <quandary@remstate.com>
11104
11105         PR target/58716
11106         * config/msp430/msp430.c (msp430_option_override): Correct thinko
11107         scanning for msp430x targets.
11108
11109 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
11110
11111         PR bootstrap/58509
11112         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
11113         (registers_ok_for_ldd_peep): Move around.
11114         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
11115         * config/sparc/sparc.md (widening peepholes): Use it.
11116
11117 2013-10-14  Richard Biener  <rguenther@suse.de>
11118
11119         PR middle-end/58712
11120         PR middle-end/55358
11121         * gimple.c (iterative_hash_canonical_type): Make sure to
11122         record the hash into the correct hashtable slot.
11123
11124 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
11125
11126         PR rtl-optimization/58662
11127         * combine.c (try_combine): Take into account death nodes on I2 when
11128         splitting a PARALLEL of two independent SETs.  Fix dump message.
11129
11130 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
11131
11132         PR target/51244
11133         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
11134         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
11135         extra_objs.
11136         * config/sh/t-sh (sh_treg_combine.o): New entry.
11137         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
11138         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
11139         (register_sh_passes): New function.  Register sh_treg_combine pass.
11140         (sh_option_override): Invoke it.
11141         (sh_canonicalize_comparison): Handle op0_preserve_value.
11142         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
11143         opportunities.  Canonicalize branch condition.
11144         (nott): Allow only if pseudos can be created for non-SH2A.
11145
11146 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
11147
11148         PR target/58690
11149         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
11150         (ix86_expand_movmem): Replace copy_addr_to_reg with
11151         ix86_copy_addr_to_reg.
11152         (ix86_expand_setmem): Likewise.
11153
11154 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
11155
11156         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
11157         provided by ix86_fp_compare_mode instead of CCFPUmode.
11158
11159 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
11160
11161         * config/aarch64/arm_neon.h
11162         (vtbx<1,3>_<psu>8): Fix register constriants.
11163
11164 2013-10-11  Jeff Law  <law@redhat.com>
11165
11166         PR tree-optimization/58640
11167         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
11168         threading paths that cross over two loop entry points.
11169
11170 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11171
11172         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
11173         handle vector float as well.
11174         (*vsx_le_perm_load_v4si): Likewise.
11175         (*vsx_le_perm_store_v2di): Likewise.
11176         (*vsx_le_perm_store_v4si): Likewise.
11177
11178 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11179
11180         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
11181         directly to circumvent subtract from splat{31} workaround.
11182         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
11183         prototype.
11184         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
11185         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
11186         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
11187         (altivec_vperm_<mode>): Convert to define_insn_and_split to
11188         separate big and little endian logic.
11189         (*altivec_vperm_<mode>_internal): New define_insn.
11190         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
11191         separate big and little endian logic.
11192         (*altivec_vperm_<mode>_uns_internal): New define_insn.
11193         (vec_permv16qi): Add little endian logic.
11194
11195 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
11196
11197         * doc/extend.texi (returns_nonnull): Remove arguments.
11198
11199 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11200             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11201             Sergey Lega  <sergey.s.lega@intel.com>
11202             Anna Tikhonova  <anna.tikhonova@intel.com>
11203             Ilya Tocar  <ilya.tocar@intel.com>
11204             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11205             Ilya Verbin  <ilya.verbin@intel.com>
11206             Kirill Yukhin  <kirill.yukhin@intel.com>
11207             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11208
11209         * config/i386/sse.md (VI48F_256_512): New.
11210         (avx2_permvar<mode>): Change to ...
11211         (<avx2_avx512f>_permvar<mode>): This.
11212
11213 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11214             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11215             Sergey Lega  <sergey.s.lega@intel.com>
11216             Anna Tikhonova  <anna.tikhonova@intel.com>
11217             Ilya Tocar  <ilya.tocar@intel.com>
11218             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11219             Ilya Verbin  <ilya.verbin@intel.com>
11220             Kirill Yukhin  <kirill.yukhin@intel.com>
11221             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11222
11223         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
11224         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
11225         * config/i386/sse.md (VI4_AVX): New.
11226         (sf2simodelower): Ditto.
11227         (sse2_cvtps2dq): Change to ...
11228         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
11229
11230 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11231             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11232             Sergey Lega  <sergey.s.lega@intel.com>
11233             Anna Tikhonova  <anna.tikhonova@intel.com>
11234             Ilya Tocar  <ilya.tocar@intel.com>
11235             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11236             Ilya Verbin  <ilya.verbin@intel.com>
11237             Kirill Yukhin  <kirill.yukhin@intel.com>
11238             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11239
11240         * config/i386/sse.md (V_512): New.
11241         (VI_512): Ditto.
11242         (vcond<V_512:mode><VF_512:mode>): Ditto.
11243         (vcond<V_512:mode><VI_512:mode>): Ditto.
11244         (vcondu<V_512:mode><VI_512:mode>): Ditto.
11245
11246 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11247             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11248             Sergey Lega  <sergey.s.lega@intel.com>
11249             Anna Tikhonova  <anna.tikhonova@intel.com>
11250             Ilya Tocar  <ilya.tocar@intel.com>
11251             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11252             Ilya Verbin  <ilya.verbin@intel.com>
11253             Kirill Yukhin  <kirill.yukhin@intel.com>
11254             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11255
11256         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
11257         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
11258         (FMAMODE): Ditto.
11259         (fma<mode>4): Removed condition.
11260         (fms<mode>4): Ditto.
11261         (fnma<mode>4): Ditto.
11262         (fnms<mode>4): Ditto.
11263         (fma4i_fmadd_<mode>): Ditto.
11264         (*fma_fmadd_<mode>): Ditto.
11265         (*fma_fmsub_<mode>): Ditto.
11266         (*fma_fnmadd_<mode>): Ditto.
11267         (*fma_fnmsub_<mode>): Ditto.
11268         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
11269         (*fma_fmaddsub_<mode>): Ditto.
11270         (*fma_fmsubadd_<mode>): Ditto.
11271         (*fmai_fmadd_<mode>): Ditto.
11272         (*fmai_fmsub_<mode>): Ditto.
11273         (*fmai_fnmadd_<mode>): Ditto.
11274         (*fmai_fnmsub_<mode>): Ditto.
11275
11276 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11277             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11278             Sergey Lega  <sergey.s.lega@intel.com>
11279             Anna Tikhonova  <anna.tikhonova@intel.com>
11280             Ilya Tocar  <ilya.tocar@intel.com>
11281             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11282             Ilya Verbin  <ilya.verbin@intel.com>
11283             Kirill Yukhin  <kirill.yukhin@intel.com>
11284             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11285
11286         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
11287         (VI124_256): Changed to ...
11288         (VI124_256_48_512): This.
11289         (ssepackmode): Extended with wider modes.
11290         (<code><mode>3): Changed iterator.
11291         (*avx2_<code><mode>3): Ditto.
11292         (vec_pack_trunc_<mode>): Ditto.
11293
11294 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11295             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11296             Sergey Lega  <sergey.s.lega@intel.com>
11297             Anna Tikhonova  <anna.tikhonova@intel.com>
11298             Ilya Tocar  <ilya.tocar@intel.com>
11299             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11300             Ilya Verbin  <ilya.verbin@intel.com>
11301             Kirill Yukhin  <kirill.yukhin@intel.com>
11302             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11303
11304         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
11305         (VI8F_256_512): Ditto.
11306         (abs<mode>2): Changed iterator.
11307         (avx2_perm<mode>): Changed to ...
11308         (<avx2_avx512f>_perm<mode>): This.
11309         (avx2_perm<mode>_1): Changed to ...
11310         (<avx2_avx512f>_perm<mode>_1): This.
11311
11312 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11313             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11314             Sergey Lega  <sergey.s.lega@intel.com>
11315             Anna Tikhonova  <anna.tikhonova@intel.com>
11316             Ilya Tocar  <ilya.tocar@intel.com>
11317             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11318             Ilya Verbin  <ilya.verbin@intel.com>
11319             Kirill Yukhin  <kirill.yukhin@intel.com>
11320             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11321
11322         * config/i386/sse.md (VI48_AVX512F): New.
11323         (VI48_AVX2): Changed to ...
11324         (VI48_AVX2_48_AVX512F): This.
11325         (avx2_ashrv<mode>): Changed to ...
11326         (<avx2_avx512f>_ashrv<mode>): This.
11327         (avx2_<shift_insn>v<mode>): Changed to ...
11328         (<avx2_avx512f>_<shift_insn>v<mode>): This.
11329
11330 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11331             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11332             Sergey Lega  <sergey.s.lega@intel.com>
11333             Anna Tikhonova  <anna.tikhonova@intel.com>
11334             Ilya Tocar  <ilya.tocar@intel.com>
11335             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11336             Ilya Verbin  <ilya.verbin@intel.com>
11337             Kirill Yukhin  <kirill.yukhin@intel.com>
11338             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11339
11340         * config/i386/sse.md (VI4_AVX512F): New.
11341         (VI8_AVX2_AVX512F): Ditto.
11342         (mul<mode>3): Extended with wider modes.
11343         (*<sse4_1_avx2>_mul<mode>3): Ditto.
11344         (mul<mode>3): Ditto.
11345         (vec_widen_<s>mult_odd_<mode>): Ditto.
11346
11347 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11348             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11349             Sergey Lega  <sergey.s.lega@intel.com>
11350             Anna Tikhonova  <anna.tikhonova@intel.com>
11351             Ilya Tocar  <ilya.tocar@intel.com>
11352             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11353             Ilya Verbin  <ilya.verbin@intel.com>
11354             Kirill Yukhin  <kirill.yukhin@intel.com>
11355             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11356
11357         * config/i386/sse.md (VI2_AVX512F): New.
11358         (VI124_AVX512F): Ditto.
11359         (sseunpackmode): Extended with wider modes.
11360         (sseunpackfltmode): Ditto.
11361         (vec_unpacks_float_hi_<mode>): Ditto.
11362         (vec_unpacks_float_lo_<mode>): Ditto.
11363         (vec_unpacku_float_hi_<mode>): Ditto.
11364         (vec_unpacku_float_lo_<mode>): Ditto.
11365         (vec_unpacks_lo_<mode>): Ditto.
11366         (vec_unpacks_hi_<mode>): Ditto.
11367         (vec_unpacku_lo_<mode>): Ditto.
11368         (vec_unpacku_hi_<mode>): Ditto.
11369
11370 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11371             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11372             Sergey Lega  <sergey.s.lega@intel.com>
11373             Anna Tikhonova  <anna.tikhonova@intel.com>
11374             Ilya Tocar  <ilya.tocar@intel.com>
11375             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11376             Ilya Verbin  <ilya.verbin@intel.com>
11377             Kirill Yukhin  <kirill.yukhin@intel.com>
11378             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11379
11380         * config/i386/i386.md (multdiv): New.
11381         (multdiv_mnemonic): Ditto.
11382         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
11383         (<sse>_vm<multdiv_mnemonic><mode>3): This.
11384         (<sse>_vmdiv<mode>3): Removed.
11385
11386 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11387             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11388             Sergey Lega  <sergey.s.lega@intel.com>
11389             Anna Tikhonova  <anna.tikhonova@intel.com>
11390             Ilya Tocar  <ilya.tocar@intel.com>
11391             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11392             Ilya Verbin  <ilya.verbin@intel.com>
11393             Kirill Yukhin  <kirill.yukhin@intel.com>
11394             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11395
11396         * config/i386/sse.md (V): Extended with wider modes.
11397         (VF2): Ditto.
11398         (ssehalfvecmode): Ditto.
11399         (i128): Ditto.
11400         (ssepackfltmode): Ditto.
11401         (avx_vec_concat<mode>): Ditto.
11402         (V_256_512): New iterator.
11403         (VF2_512_256): Ditto.
11404         (si2dfmode): New attribute.
11405         (si2dfmodelower): Ditto.
11406         (sf2dfmode): Ditto.
11407         (concat_tg_mode): Ditto.
11408         (floatv4siv4df2): Changed to ...
11409         (float<si2dfmodelower><mode>2): This.
11410         (avx_cvtps2pd256): Changed to ...
11411         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
11412         (vec_pack_trunc_v4df): Changed to ...
11413         (vec_pack_trunc_<mode>): This.
11414         (avx_vpermil<mode>): Changed to ...
11415         (<sse2_avx_avx512f>_vpermil<mode>): This.
11416         (<fixsuffix>fix_truncv8dfv8si2): New.
11417         (vec_pack_sfix_trunc_v8df): Ditto.
11418         (avx512f_rndscale<mode>): Ditto.
11419         (avx512f_roundpd512): Ditto.
11420         (vec_pack_ufix_trunc_<mode>): Updated iterator.
11421
11422 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11423             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11424             Sergey Lega  <sergey.s.lega@intel.com>
11425             Anna Tikhonova  <anna.tikhonova@intel.com>
11426             Ilya Tocar  <ilya.tocar@intel.com>
11427             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11428             Ilya Verbin  <ilya.verbin@intel.com>
11429             Kirill Yukhin  <kirill.yukhin@intel.com>
11430             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11431
11432         * config/i386/i386.md (any_fix): New iterator.
11433         (fixsuffix): New attribute.
11434         * config/i386/sse.md (VF1): Extened with wider modes.
11435         (VI): Ditto.
11436         (VI_AVX2): Ditto.
11437         (VI8): Ditto.
11438         (sseintvecmodelower): Ditto.
11439         (ssescalarmode): Ditto.
11440         (ssescalarnum): Ditto.
11441         (VF1_128_256): New.
11442         (ssexmmmode): Ditto.
11443         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
11444         (<sse>_rcp<mode>2): Change iterator.
11445         (rsqrt<mode>2): Ditto.
11446         (<sse>_rsqrt<mode>2): Ditto.
11447         (avx2_vec_dup<mode>): Ditto.
11448         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
11449         (round<mode>2_sfix): Ditto.
11450         (avx2_pbroadcast<mode>): Ditto.
11451         (*andnot<mode>3): Handle XI mode.
11452         (*<code><mode>3): Ditto.
11453         (AVXTOSSEMODE): Removed.
11454         (avx_vpermil<mode>): Changed to ...
11455         (<sse2_avx_avx512f>_vpermil<mode>): This.
11456
11457 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11458             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11459             Sergey Lega  <sergey.s.lega@intel.com>
11460             Anna Tikhonova  <anna.tikhonova@intel.com>
11461             Ilya Tocar  <ilya.tocar@intel.com>
11462             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11463             Ilya Verbin  <ilya.verbin@intel.com>
11464             Kirill Yukhin  <kirill.yukhin@intel.com>
11465             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11466
11467         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
11468         (<sse>_comi): Ditto.
11469         (<sse>_ucomi): Ditto.
11470         (sse_cvtss2siq_2): Ditto.
11471         (sse2_cvtsd2si): Ditto.
11472         (sse2_cvtsd2siq): Ditto.
11473         (sse2_cvttsd2si): Ditto.
11474         (sse2_cvttsd2siq): Ditto.
11475         (<shift_insn><mode>3): Ditto.
11476         (sse2_cvtsi2sdq): Update constraint and prefix.
11477         (sse_cvtsi2ss): Update prefix.
11478         (sse_cvtsi2ssq): Ditto.
11479
11480 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11481
11482         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
11483         ignore internal calls.
11484
11485 2013-10-11  Richard Biener  <rguenther@suse.de>
11486
11487         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
11488         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
11489         TREE_OVERFLOW is set.
11490
11491 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
11492
11493         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
11494
11495         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
11496         * gimple.h: Likewise.
11497
11498         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
11499
11500         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
11501         macros.
11502
11503         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
11504
11505         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
11506         * configure: Regenerate.
11507
11508 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11509
11510         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
11511         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
11512         formatting fixes, use pp_colon instead of pp_character (..., ':'),
11513         similarly pp_right_paren.
11514         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
11515         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
11516         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
11517         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
11518         clauses.
11519         (omp_declare_simd_clauses_equal,
11520         omp_remove_redundant_declare_simd_attrs): New functions.
11521         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
11522         (walk_tree_1): Handle new OpenMP 4.0 clauses.
11523         * tree.h (OMP_LOOP_CHECK): Define.
11524         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11525         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
11526         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
11527         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
11528         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
11529         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
11530         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
11531         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
11532         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
11533         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
11534         OMP_CLAUSE_SIMDLEN_EXPR): Define.
11535         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
11536         (omp_remove_redundant_declare_simd_attrs): New prototype.
11537         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
11538         GIMPLE_OMP_TEAMS): New codes.
11539         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
11540         * omp-low.c (struct omp_context): Add cancel_label and cancellable
11541         fields.
11542         (target_nesting_level): New variable.
11543         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
11544         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
11545         for collapse > 1 static schedule unless ordered.
11546         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
11547         (determine_parallel_type): Adjust get_ws_args_for caller.
11548         (install_var_field): Handle mask & 4 for double indirection.
11549         (scan_sharing_clauses): Ignore shared clause on teams construct.
11550         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
11551         (create_omp_child_function): If inside target or declare target
11552         constructs, set "omp declare target" attribute on the child function.
11553         (find_combined_for): New function.
11554         (scan_omp_parallel): Handle combined loops.
11555         (scan_omp_target, scan_omp_teams): New functions.
11556         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
11557         restrictions and set ctx->cancellable for cancellable constructs.
11558         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
11559         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
11560         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
11561         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
11562         (omp_clause_aligned_alignment): New function.
11563         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
11564         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
11565         on teams constructs.  Handle user defined reductions and new
11566         OpenMP 4.0 clauses.
11567         (lower_reduction_clauses): Don't set placeholder to address of ref
11568         if it has already the right type.
11569         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
11570         (expand_parallel_call): Use the new non-_start suffixed builtins,
11571         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
11572         and GOMP_parallel_end after the call.
11573         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
11574         (expand_omp_for_init_counts): Handle combined loops.
11575         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
11576         loops.
11577         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
11578         end of cancellable loops.
11579         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11580         Likewise.  Handle collapse > 1 loops.
11581         (expand_omp_simd): Handle combined loops.
11582         (expand_omp_for): Add inner_stmt argument, adjust callers of
11583         expand_omp_for* functions, use expand_omp_for_static*chunk even
11584         for collapse > 1 unless ordered.
11585         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
11586         of cancellable sections.
11587         (expand_omp_single): Remove need_barrier variable, just rely on
11588         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
11589         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
11590         (expand_omp_atomic_load, expand_omp_atomic_store,
11591         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
11592         (expand_omp_target): New function.
11593         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
11594         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
11595         (build_omp_regions_1): Immediately close region for
11596         GF_OMP_TARGET_KIND_UPDATE.
11597         (maybe_add_implicit_barrier_cancel): New function.
11598         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
11599         cancellation.
11600         (lower_omp_single): Likewise.  Add clobber after the barrier.
11601         (lower_omp_taskgroup): New function.
11602         (lower_omp_for): Handle combined loops.  Adjust
11603         lower_rec_input_clauses caller.  Handle cancellation.
11604         (lower_depend_clauses): New function.
11605         (lower_omp_taskreg): Lower depend clauses.  Adjust
11606         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
11607         cancellation.
11608         (lower_omp_target, lower_omp_teams): New functions.
11609         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
11610         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
11611         and GOMP_cancellation_point calls.
11612         (lower_omp): Fold stmts inside of target region.
11613         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
11614         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11615         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
11616         (BT_FN_VOID_OMPFN_PTR_UINT,
11617         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
11618         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
11619         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
11620         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
11621         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
11622         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
11623         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
11624         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11625         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11626         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
11627         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11628         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
11629         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
11630         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
11631         BUILT_IN_GOMP_PARALLEL_END.
11632         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
11633         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11634         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11635         GF_OMP_FOR_KIND_DISTRIBUTE.
11636         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
11637         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
11638         (dump_gimple_omp_return): Print lhs if it has any.
11639         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
11640         gimple_omp_atomic_seq_cst_p.
11641         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
11642         and GIMPLE_OMP_TEAMS.
11643         * langhooks.c (lhd_omp_mappable_type): New function.
11644         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
11645         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
11646         hook.
11647         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
11648         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
11649         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
11650         (struct gimplify_omp_ctx): Add combined_loop field.
11651         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
11652         on stmts inside of target region.
11653         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
11654         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
11655         ORT_TARGET and ORT_TARGET_DATA.
11656         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
11657         Handle GOVD_MAP.
11658         (omp_notice_threadprivate_variable): Complain about threadprivate
11659         variables in target region.
11660         (omp_notice_variable): Complain about vars with non-mappable type
11661         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
11662         (omp_check_private): Ignore ORT_TARGET* regions.
11663         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
11664         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
11665         (find_combined_omp_for): New function.
11666         (gimplify_omp_for): Handle gimplification of combined loops.
11667         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
11668         OMP_TEAMS.
11669         (gimplify_omp_target_update): New function.
11670         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
11671         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
11672         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
11673         (gimplify_body): If fndecl has "omp declare target" attribute, add
11674         implicit ORT_TARGET context around it.
11675         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
11676         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
11677         * tree-nested.c (convert_nonlocal_reference_stmt,
11678         convert_local_reference_stmt, convert_gimple_call): Handle
11679         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11680         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
11681         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
11682         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
11683         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
11684         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
11685         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
11686         BUILT_IN_GOMP_LOOP_END_CANCEL,
11687         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
11688         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
11689         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
11690         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
11691         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
11692         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
11693         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
11694         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
11695         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
11696         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
11697         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
11698         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
11699         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
11700         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
11701         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
11702         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11703         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
11704         gimple_build_omp_teams): New functions.
11705         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
11706         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
11707         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
11708         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11709         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
11710         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
11711         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
11712         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
11713         GF_OMP_ATOMIC_SEQ_CST): New.
11714         (gimple_build_omp_taskgroup, gimple_build_omp_target,
11715         gimple_build_omp_teams): New prototypes.
11716         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
11717         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11718         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
11719         GIMPLE_OMP_SINGLE as end of range.
11720         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
11721         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
11722         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
11723         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
11724         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
11725         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
11726         gimple_omp_target_kind, gimple_omp_target_set_kind,
11727         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
11728         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
11729         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
11730         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
11731         gimple_omp_teams_set_clauses): New inlines.
11732         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
11733         and GIMPLE_OMP_TASKGROUP.
11734         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
11735         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
11736         enum omp_clause_proc_bind_kind): New.
11737         (union omp_clause_subcode): Add depend_kind, map_kind and
11738         proc_bind_kind fields.
11739         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
11740         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11741         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
11742         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
11743         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
11744
11745 2013-10-10  Teresa Johnson  <tejohnson@google.com>
11746
11747         * predict.c (tree_estimate_probability): Add new parameter
11748         for estimate_bb_frequencies.
11749         (estimate_bb_frequencies): Add new parameter to force estimation.
11750         (rebuild_frequencies): When max frequency in function is small,
11751         recompute counts from frequencies.
11752         * predict.h (estimate_bb_frequencies): New parameter.
11753
11754 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
11755
11756         * ipa-inline.c (ipa_inline): Fix leak of "order" when
11757         optimizations are disabled.
11758
11759 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
11760
11761         * coverage.c (coverage_finish): Fix leak of da_file_name.
11762
11763 2013-10-10  Jan Hubicka  <jh@suse.cz>
11764
11765         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
11766         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
11767         Bobcat and generic.
11768
11769 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
11770
11771         PR middle-end/58670
11772         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
11773         if any labels are in FALLTHRU_BB, use a special label emitted
11774         immediately after the asm goto insn rather than label_rtx
11775         of the LABEL_DECL.
11776         (expand_asm_stmt): Adjust caller.
11777         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
11778         edge if the last insn in predecessor is a jump with single successor,
11779         but it isn't simplejump_p.
11780
11781 2013-10-10  Richard Biener  <rguenther@suse.de>
11782
11783         PR tree-optimization/58656
11784         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
11785
11786 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11787
11788         * gimplify.c: Include expr.h and tm_p.h for targets with special
11789         va-arg padding requirements.
11790
11791 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11792
11793         * tree-flow.h: Move some prototypes to gimple.h.
11794         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
11795         * gimple.h: Relocate some prototypes from tree-flow.h
11796         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
11797         Move to gimplify.c.
11798         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
11799         (build_va_arg_indirect_ref): Relocate and make static.
11800         (std_gimplify_va_arg_expr): Relocate here.
11801         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
11802         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
11803
11804 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11805
11806         * doc/md.texi: Document the mnemonic attribute.
11807
11808 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11809
11810         PR target/57377
11811         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
11812         (set_attr_alternative x ...) when searching for user defined
11813         mnemonic attribute.
11814
11815 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11816
11817         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
11818
11819 2013-10-09  Easwaran Raman <eraman@google.com>
11820
11821         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
11822         * cfgexpand.c (defer_stack_allocation): ...use here
11823         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
11824
11825 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
11826
11827         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
11828         (operand_equal_for_value_replacement): New function, extracted from
11829         value_replacement and enhanced to catch more cases.
11830         (value_replacement): Use operand_equal_for_value_replacement.
11831
11832 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11833
11834         * loop-doloop.c (doloop_modify, doloop_optimize): Use
11835         get_max_loop_iterations.
11836
11837 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11838
11839         * config/arm/aarch-common.c (arm_early_load_addr_dep):
11840         Place comment above function.
11841
11842 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11843
11844         * tree-flow.h: Remove all remaining prototypes, enums and structs that
11845         are not related to tree-cfg.c.
11846         * tree-ssa-address.h: New file.  Relocate prototypes.
11847         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
11848         (addr_for_mem_ref): New.  Combine call to get_address_description and
11849         return addr_for_mem_ref.
11850         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
11851         * tree-ssa-live.h: Adjust prototypes.
11852         * passes.c: Include tree-ssa-live.h.
11853         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
11854         * graphite.c (graphite_transform_loops): Make static.
11855         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11856         make_pass_graphite, pass_data_graphite_transforms,
11857         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
11858         * ipa-pure-const.c (warn_function_noreturn): Make static.
11859         (execute_warn_function_noreturn, gate_warn_function_noreturn,
11860         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11861         Relocate from tree-cfg.c
11862         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
11863         static.
11864         (execute_warn_function_noreturn, gate_warn_function_noreturn,
11865         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11866         Move to ipa-pure-const.c.
11867         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
11868         Relocate from tree-optimize.c.
11869         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
11870         make_pass_fixup_cfg): Move to tree-cfg.c.
11871         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
11872         Relocate some prototypes.
11873         * tree-data-ref.h (tree_check_data_deps) Add prototype.
11874         * tree-dump.c (dump_function_to_file): Remove prototype.
11875         Add tree-flow.h to the include file.
11876         * tree-dump.h: Remove prototype.
11877         * tree-parloops.h: New File.  Add prototypes.
11878         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
11879         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
11880         from tree-ssa-loop.c.
11881         * tree-predcom.c (run_tree_predictive_commoning,
11882         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
11883         Relocate here from tree-ssa-loop.c.
11884         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
11885         ssa_name_values.release ().
11886         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
11887         (ssa_name_values): Relocate from tree-flow.h.
11888         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
11889         * tree-ssa-loop.c (run_tree_predictive_commoning,
11890         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
11891         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11892         make_pass_graphite, pass_data_graphite_transforms,
11893         make_pass_graphite_transforms, gate_tree_parallelize_loops,
11894         tree_parallelize_loops, pass_data_parallelize_loops,
11895         make_pass_parallelize_loops): Move to other files.
11896         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
11897         moved here.
11898         * tree.h: Remove prototypes from tree-address.c.
11899
11900 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11901
11902         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
11903         (struct int_tree_map): Move to tree-hasher.h
11904         (SCALE, LABEL, PERCENT): Move to gimple.h
11905         * tree-flow-inline.h: Delete.  Move functions to other files.
11906         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
11907         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
11908         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
11909         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
11910         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
11911         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
11912         * tree-hasher.h: Don't include tree-flow.h.
11913         (struct int_tree_map): Relocate from tree-flow.h.
11914         * tree-sra.c (contains_view_convert_expr_p): Relocate from
11915         tree-flow-inline.h and make static.
11916         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
11917         tree-flow-inline.h.
11918         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
11919         tree-flow-inline.h and make static.
11920         * tree.h (is_global_var, may_be_aliased): Relocate from
11921         tree-flow-inline.h.
11922         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
11923         * value-prof.c: No longer include tree-flow-inline.h.
11924         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
11925
11926 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11927
11928         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
11929         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
11930         (enum move_pos): Move to tree-ssa-loop-im.h
11931         * cfgloop.h: Move some prototypes.
11932         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
11933         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
11934         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
11935         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
11936         (loop_containing_stmt): Relocate from tree-flow-inline.h.
11937         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
11938         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
11939         (enum move_pos): Relocate here.
11940         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
11941         tree-ssa-loop.c.
11942         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
11943         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
11944         make_pass_lim): Relocate here from tree-ssa-loop.c.
11945         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
11946         tree-ssa-loop.c.
11947         (loop_edge_to_cancel, unloop_loops): Make static.
11948         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11949         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
11950         (tree_complete_unroll, gate_tree_complete_unroll,
11951         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
11952         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11953         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
11954         * tree-ssa-loop-ivopts.c: Remove local prototypes.
11955         (stmt_invariant_in_loop_p): Remove unused function.
11956         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
11957         * tree-ssa-loop-manip.h: New file.  Add prototypes.
11958         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
11959         (gcov_type_to_double_int): Move to cfgloop.h.
11960         (double_int_cmp, bound_index,
11961         estimate_numbers_of_iterations_loop): Make static.
11962         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
11963         (max_loop_iterations): Factor out get_max_loop_iterations.
11964         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
11965         cfgloop.c.
11966         * tree-ssa-loop-niter.h: New file.  Add prototypes.
11967         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
11968         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
11969         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
11970         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
11971         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
11972         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
11973         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
11974         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
11975         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
11976         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
11977         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11978         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
11979         pass_data_complete_unroll, make_pass_complete_unroll,
11980         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11981         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
11982         tree-ssa-loop-ivcanon.c.
11983         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
11984         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
11985         tree-ssa-loop-prefetch.c.
11986         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
11987         tree-ssa-loop-im.c.
11988         (get_lsm_tmp_name): Relocate and add suffix parameter.
11989         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
11990         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
11991         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
11992         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
11993         (get_estimated_loop_iterations): Factor out accessor from
11994         estimated_loop_iterations in tree-ssa-loop-niter.c.
11995         (get_max_loop_iterations): Factor out accessor from
11996         _max_loop_iterations in tree-ssa-niter.c.
11997         * loop-unroll.c (decide_unroll_constant_iterations,
11998         decide_unroll_runtime_iterations, decide_peel_simple,
11999         decide_unroll_stupid): Use new get_* accessors.
12000
12001 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
12002
12003         PR tree-optimization/20318
12004         * doc/extend.texi (returns_nonnull): New function attribute.
12005         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
12006         attribute.
12007         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
12008         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
12009
12010 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
12011
12012         PR middle-end/58570
12013         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
12014         false if both components are bitfields.
12015
12016 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12017
12018         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
12019         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
12020         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
12021         * config/aarch64/aarch64.h
12022         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
12023         * config/aarch64/aarch64-simd-builtins.def
12024         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
12025
12026 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12027
12028         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
12029
12030 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12031
12032         * config/aarch64/arm_neon.h (vdiv_f64): Added.
12033
12034 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
12035
12036         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
12037         (vneg_f64): New intrinsic.
12038         (vneg_s8): Asm replaced with C.
12039         (vneg_s16): Likewise.
12040         (vneg_s32): Likewise.
12041         (vneg_s64): New intrinsic.
12042         (vnegq_f32): Asm replaced with C.
12043         (vnegq_f64): Likewise.
12044         (vnegq_s8): Likewise.
12045         (vnegq_s16): Likewise.
12046         (vnegq_s32): Likewise.
12047         (vnegq_s64): Likewise.
12048
12049 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
12050
12051         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
12052
12053 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12054
12055         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
12056         packed stack special handling.
12057         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
12058         back to fixed stack slots for FPRs saved due to stdarg.
12059
12060 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12061
12062         * config/s390/s390.c (s390_frame_info): Restructure function.
12063
12064 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12065
12066         * config/s390/s390.c (struct s390_frame_layout): New field
12067         gpr_save_slots.
12068         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
12069         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
12070         regs_ever_clobbered to char*.
12071         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
12072         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
12073         (s390_register_info): Enable FPR save slots.  Move/Copy some
12074         functionality into ...
12075         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
12076         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
12077         function.
12078         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
12079         not imply a stack frame.
12080         (s390_init_frame_layout): Remove variable clobbered_regs.
12081         (s390_update_register_info): Remove function.
12082         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
12083         cannot be used for register renaming.
12084         (s390_hard_regno_scratch_ok): New function.
12085         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
12086         (s390_initial_elimination_offset): Change offset calculation of
12087         the return address pointer.
12088         (save_gprs): Deal with only r6 being saved from the call-saved regs.
12089         (restore_gprs): Set frame related flag.
12090         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
12091         (s390_emit_prologue): Call s390_register_info instead of
12092         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
12093         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
12094         (s390_optimize_prologue): Call s390_optimize_register_info.
12095         Try to remove also FPR slot save/restore INSNs.  Remove frame
12096         related flags from restore INSNs.
12097
12098 2013-10-08  DJ Delorie  <dj@redhat.com>
12099
12100         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
12101         (movhi): Likewise.
12102
12103         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
12104         avoid conflict with the MI use of %c.
12105         * config/rl78/rl78-real.md: change %c to %C throughout.
12106         * config/rl78/rl78-virt.md: Likewise.
12107
12108 2013-10-08  Jan Hubicka  <jh@suse.cz>
12109
12110         * config/i386/i386.c (ix86_option_override_internal): Switch
12111         to SSE math for -ffast-math when target ISA supports SSE2.
12112
12113 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
12114
12115         * tree-flow.h: Remove some prototypes.
12116         * tree.h: Remove some protypes, add a couple.
12117         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
12118         using_eh_for_cleanups_p): Add interface routines for front ends.
12119         * tree-eh.h: New file.  Add protoptyes.
12120         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
12121         (add_stmt_to_eh_lp_fn): Make static.
12122         (lower_try_finally): Use new using_eh_for_cleanups_p.
12123         * emit-rtl.c: Include tree-eh.h.
12124         * gimple.h: Include tree-eh.h.
12125
12126 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
12127
12128         PR tree-optimization/58480
12129         * tree-vrp.c (infer_nonnull_range): New function.
12130         (infer_value_range): Call infer_nonnull_range.
12131
12132 2013-10-08  Dehao Chen  <dehao@google.com>
12133
12134         PR tree-optimization/58619
12135         * tree-inline.c (copy_phis_for_bb): Combine location data
12136         only if non-null.
12137
12138 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12139
12140         PR target/58423
12141         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
12142         RTX_FRAME_RELATED_P on INSN.
12143
12144 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12145
12146         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
12147         (altivec_expand_vec_perm_const): Call it.
12148
12149 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12150
12151         * config/rs6000/vector.md (mov<mode>): Emit permuted move
12152         sequences for LE VSX loads and stores at expand time.
12153         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
12154         prototype.
12155         * config/rs6000/rs6000.c (rs6000_const_vec): New.
12156         (rs6000_gen_le_vsx_permute): New.
12157         (rs6000_gen_le_vsx_load): New.
12158         (rs6000_gen_le_vsx_store): New.
12159         (rs6000_gen_le_vsx_move): New.
12160         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
12161         (*vsx_le_perm_load_v4si): New.
12162         (*vsx_le_perm_load_v8hi): New.
12163         (*vsx_le_perm_load_v16qi): New.
12164         (*vsx_le_perm_store_v2di): New.
12165         (*vsx_le_perm_store_v4si): New.
12166         (*vsx_le_perm_store_v8hi): New.
12167         (*vsx_le_perm_store_v16qi): New.
12168         (*vsx_xxpermdi2_le_<mode>): New.
12169         (*vsx_xxpermdi4_le_<mode>): New.
12170         (*vsx_xxpermdi8_le_V8HI): New.
12171         (*vsx_xxpermdi16_le_V16QI): New.
12172         (*vsx_lxvd2x2_le_<mode>): New.
12173         (*vsx_lxvd2x4_le_<mode>): New.
12174         (*vsx_lxvd2x8_le_V8HI): New.
12175         (*vsx_lxvd2x16_le_V16QI): New.
12176         (*vsx_stxvd2x2_le_<mode>): New.
12177         (*vsx_stxvd2x4_le_<mode>): New.
12178         (*vsx_stxvd2x8_le_V8HI): New.
12179         (*vsx_stxvd2x16_le_V16QI): New.
12180
12181 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
12182
12183         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
12184
12185 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12186
12187         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
12188         loop to work also for 31bit ABI.
12189         Save the stack pointer for frame_size > 0.
12190
12191 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12192
12193         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
12194         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
12195         constraint letters from expanders.
12196         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
12197         retry count to general_operand.
12198         ("tabort"): Give operand 0 a mode.
12199         ("tabort_1"): Add mode and constraint letter for operand 0.
12200         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
12201
12202 2013-10-04  Jeff Law  <law@redhat.com>
12203
12204         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
12205
12206         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
12207         out of ...
12208         (thread_across_edge): Here.  Call it.
12209
12210 2013-10-04  Cary Coutant  <ccoutant@google.com>
12211
12212         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
12213         discarding a location list expression (or a piece of one).
12214
12215 2013-10-03  Jan Hubicka  <jh@suse.cz>
12216
12217         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
12218         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
12219         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
12220
12221 2013-10-03  Jan Hubicka  <jh@suse.cz>
12222
12223         * config/i386/i386.c (ix86_option_override_internal): Do not enable
12224         accumulate-outgoing-args when producing unwind info.
12225
12226 2013-10-03  Wei Mi  <wmi@google.com>
12227
12228         * lra-constraints.c (insert_move_for_subreg): New function
12229         extracted from simplify_operand_subreg.
12230         (simplify_operand_subreg): Add reload for paradoxical subreg.
12231
12232 2013-10-03  Rong Xu  <xur@google.com>
12233
12234         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
12235         the candidate of builtin_expect such that we should fix the
12236         size/time estimation.
12237         (estimate_function_body_sizes): Do the acutally size/time fix-up
12238         for builtin_expect.
12239
12240 2013-10-03  Rong Xu  <xur@google.com>
12241
12242         * predict.c (tree_predict_by_opcode): Get the probability
12243         for builtin_expect from param builtin_expect_probability.
12244         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
12245         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
12246         * doc/invoke.texi: Add documentation for builtin-expect-probability.
12247
12248 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
12249
12250         PR c++/19476
12251         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
12252         * calls.c (alloca_call_p): Use get_callee_fndecl.
12253         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
12254         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
12255         Likewise.
12256         (vrp_visit_stmt): Remove duplicated code.
12257
12258 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12259
12260         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
12261         ceildf2, btruncdf2, instead of vsx_* name.
12262
12263         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
12264         iterators to only do V2DF and V4SF here.  Move the DF code to
12265         rs6000.md where it is combined with SF mode.  Replace <VSv> with
12266         just 'v' since only vector operations are handled with these insns
12267         after moving the DF support to rs6000.md.
12268         (vsx_sub<mode>3): Likewise.
12269         (vsx_mul<mode>3): Likewise.
12270         (vsx_div<mode>3): Likewise.
12271         (vsx_fre<mode>2): Likewise.
12272         (vsx_neg<mode>2): Likewise.
12273         (vsx_abs<mode>2): Likewise.
12274         (vsx_nabs<mode>2): Likewise.
12275         (vsx_smax<mode>3): Likewise.
12276         (vsx_smin<mode>3): Likewise.
12277         (vsx_sqrt<mode>2): Likewise.
12278         (vsx_rsqrte<mode>2): Likewise.
12279         (vsx_fms<mode>4): Likewise.
12280         (vsx_nfma<mode>4): Likewise.
12281         (vsx_copysign<mode>3): Likewise.
12282         (vsx_btrunc<mode>2): Likewise.
12283         (vsx_floor<mode>2): Likewise.
12284         (vsx_ceil<mode>2): Likewise.
12285         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
12286         (vsx_sminsf3): Likewise.
12287         (vsx_fmadf4): Likewise.
12288         (vsx_fmsdf4): Likewise.
12289         (vsx_nfmadf4): Likewise.
12290         (vsx_nfmsdf4): Likewise.
12291         (vsx_cmpdf_internal1): Likewise.
12292
12293         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
12294         simpler to select whether a target has SPE or traditional floating
12295         point support in iterators.
12296         (TARGET_DF_SPE): Likewise.
12297         (TARGET_SF_FPR): Likewise.
12298         (TARGET_DF_FPR): Likewise.
12299         (TARGET_SF_INSN): Macros to say whether floating point support
12300         exists for a given operation for expanders.
12301         (TARGET_DF_INSN): Likewise.
12302
12303         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
12304         combining of SF/DF mode operations, using both traditional and VSX
12305         registers.
12306         (Fvsx): Likewise.
12307         (Ff): Likewise.
12308         (Fv): Likewise.
12309         (Fs): Likewise.
12310         (Ffre): Likewise.
12311         (FFRE): Likewise.
12312         (abs<mode>2): Combine SF/DF modes using traditional floating point
12313         instructions.  Add support for using the upper DF registers with
12314         VSX support, and SF registers with power8-vector support.  Update
12315         expanders for operations supported by both the SPE and traditional
12316         floating point units.
12317         (abs<mode>2_fpr): Likewise.
12318         (nabs<mode>2): Likewise.
12319         (nabs<mode>2_fpr): Likewise.
12320         (neg<mode>2): Likewise.
12321         (neg<mode>2_fpr): Likewise.
12322         (add<mode>3): Likewise.
12323         (add<mode>3_fpr): Likewise.
12324         (sub<mode>3): Likewise.
12325         (sub<mode>3_fpr): Likewise.
12326         (mul<mode>3): Likewise.
12327         (mul<mode>3_fpr): Likewise.
12328         (div<mode>3): Likewise.
12329         (div<mode>3_fpr): Likewise.
12330         (sqrt<mode>3): Likewise.
12331         (sqrt<mode>3_fpr): Likewise.
12332         (fre<Fs>): Likewise.
12333         (rsqrt<mode>2): Likewise.
12334         (cmp<mode>_fpr): Likewise.
12335         (smax<mode>3): Likewise.
12336         (smin<mode>3): Likewise.
12337         (smax<mode>3_vsx): Likewise.
12338         (smin<mode>3_vsx): Likewise.
12339         (negsf2): Delete SF operations that are merged with DF.
12340         (abssf2): Likewise.
12341         (addsf3): Likewise.
12342         (subsf3): Likewise.
12343         (mulsf3): Likewise.
12344         (divsf3): Likewise.
12345         (fres): Likewise.
12346         (fmasf4_fpr): Likewise.
12347         (fmssf4_fpr): Likewise.
12348         (nfmasf4_fpr): Likewise.
12349         (nfmssf4_fpr): Likewise.
12350         (sqrtsf2): Likewise.
12351         (rsqrtsf_internal1): Likewise.
12352         (smaxsf3): Likewise.
12353         (sminsf3): Likewise.
12354         (cmpsf_internal1): Likewise.
12355         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
12356         (negdf2): Delete DF operations that are merged with SF.
12357         (absdf2): Likewise.
12358         (nabsdf2): Likewise.
12359         (adddf3): Likewise.
12360         (subdf3): Likewise.
12361         (muldf3): Likewise.
12362         (divdf3): Likewise.
12363         (fred): Likewise.
12364         (rsqrtdf_internal1): Likewise.
12365         (fmadf4_fpr): Likewise.
12366         (fmsdf4_fpr): Likewise.
12367         (nfmadf4_fpr): Likewise.
12368         (nfmsdf4_fpr): Likewise.
12369         (sqrtdf2): Likewise.
12370         (smaxdf3): Likewise.
12371         (smindf3): Likewise.
12372         (cmpdf_internal1): Likewise.
12373         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
12374         (btrunc<mode>2): Delete separate expander, and combine with the
12375         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
12376         (btrunc<mode>2_fpr): Likewise.
12377         (ceil<mode>2): Likewise.
12378         (ceil<mode>2_fpr): Likewise.
12379         (floor<mode>2): Likewise.
12380         (floor<mode>2_fpr): Likewise.
12381         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
12382         Add support for using the upper registers with VSX and
12383         power8-vector.  Move insns to be closer to the define_expands. On
12384         VSX systems, prefer the traditional form of FMA over the VSX
12385         version, since the traditional form allows the target not to
12386         overlap with the inputs.
12387         (fms<mode>4_fpr): Likewise.
12388         (nfma<mode>4_fpr): Likewise.
12389         (nfms<mode>4_fpr): Likewise.
12390
12391 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12392             Richard Earnshaw  <richard.earnshaw@arm.com>
12393
12394         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
12395         (struct mult_cost_table): Likewise.
12396         (struct mem_cost_table): Likewise.
12397         (struct fp_cost_table): Likewise.
12398         (struct vector_cost_table): Likewise.
12399         (cpu_cost_table): Likewise.
12400         * config/arm/arm.opt (mold-rts-costs): New option.
12401         (mnew-generic-costs): Likewise.
12402         * config/arm/arm.c (generic_extra_costs): New table.
12403         (cortexa15_extra_costs): Likewise.
12404         (arm_slowmul_tune): Use NULL as new costs.
12405         (arm_fastmul_tune): Likewise.
12406         (arm_strongarm_tune): Likewise.
12407         (arm_xscale_tune): Likewise.
12408         (arm_9e_tune): Likewise.
12409         (arm_v6t2_tune): Likewise.
12410         (arm_cortex_a5_tune): Likewise.
12411         (arm_cortex_a9_tune): Likewise.
12412         (arm_v6m_tune): Likewise.
12413         (arm_fa726te_tune): Likewise.
12414         (arm_cortex_a15_tune): Use cortex15_extra_costs.
12415         (arm_cortex_tune): Use generict_extra_costs.
12416         (shifter_op_p): New function.
12417         (arm_unspec_cost): Likewise.
12418         (LIBCALL_COST): Define.
12419         (arm_new_rtx_costs): New function.
12420         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
12421         table is available. Use old costs otherwise unless mnew-generic-costs
12422         is specified.
12423         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
12424         (cpu_cost_table): Declare.
12425
12426 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12427
12428         PR target/58460
12429         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
12430         (*subs_mul_imm_<mode>)
12431         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
12432         (*sub_<shift>_<mode>)
12433         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
12434         Remove k constraint.
12435
12436 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
12437
12438         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
12439         code.
12440         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
12441
12442 2013-10-02  Teresa Johnson  <tejohnson@google.com>
12443
12444         * predict.c (probably_never_executed): New function.
12445         (probably_never_executed_bb_p): Invoke probably_never_executed.
12446         (probably_never_executed_edge_p): Ditto.
12447         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12448         Treat profile insanities conservatively.
12449
12450 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
12451
12452         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
12453
12454 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
12455
12456         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
12457         use it.  Use smaller increase for scratch.  Don't increase reject
12458         for early clobber scratch.
12459         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
12460         setting eliminated regs except setting fp from hfp.
12461         (lra_eliminate): Check lra_insn_recog_data on NULL.
12462
12463 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12464
12465         PR target/58587
12466         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
12467         setting -mvsx-timode by default until the underlying problem is fixed.
12468         (RS6000_CPU, power7 defaults): Likewise.
12469
12470 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12471
12472         * config/x-linux (host-linux.o): Remove header dependencies.
12473         Use $(COMPILE) and $(POSTCOMPILE).
12474         * config/t-linux-android (linux-android.o): Ditto.
12475
12476 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12477
12478         * Makefile.in (expmed.o-warn): Remove.
12479
12480 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12481
12482         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
12483         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
12484
12485 2013-10-02  Teresa Johnson  <tejohnson@google.com>
12486
12487         * dojump.c (do_jump_1): Divide probability between
12488         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
12489
12490 2013-10-02  Tom Tromey  <tromey@redhat.com>
12491
12492         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
12493
12494 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12495
12496         * tree-flow.h: Remove some prototypes.
12497         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
12498         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
12499         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
12500         mark_virtual_phi_result_for_renaming): Relocate here.
12501         * tree-into-ssa.h: Add prototypes.
12502         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
12503         single_pred_before_succ_order.
12504         (blocks_in_phiopt_order): Rename and move to cfganal.c.
12505         (nonfreeing_call_p) Move to gimple.c.
12506         * cfganal.c (single_pred_before_succ_order): Move and renamed from
12507         tree-ssa-phiopt.c.
12508         * basic-block.h (single_pred_before_succ_order): Add prototype.
12509         * gimple.c (nonfreeing_call_p): Relocate here.
12510         * gimple.h: Add prototype.
12511         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
12512         * tree-ssa-dom.h: New file.  Relocate prototypes here.
12513         * tree-ssa.h: Include tree-ssa-dom.h.
12514
12515 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12516
12517         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
12518         Use $(COMPILE) and $(POSTCOMPILE).
12519
12520         * config/alpha/x-alpha (driver-alpha.o): Ditto.
12521
12522 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12523
12524         * tree-flow.h: Remove some prototypes.
12525         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
12526         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12527         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
12528         propagate_tree_value*): Move from here to...
12529         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
12530         propagate_tree_value*): Relocate here.
12531         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12532         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
12533         * gimple-fold.c: Remove gimple-fold.h from include list.
12534         * tree-vrp.c: Remove gimple-fold.h from include list.
12535         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
12536         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
12537         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
12538         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
12539         * sese.c: Add tree-ssa-propagate.h to include list.
12540
12541 2013-10-02  Richard Biener  <rguenther@suse.de>
12542
12543         * tree-loop-distribution.c: Include tree-vectorizer.h for
12544         find_loop_location.
12545         (enum partition_kind): Remove PKIND_REDUCTION.
12546         (struct partition_s): Remove has_writes member, add reduction_p member.
12547         (partition_alloc): Adjust.
12548         (partition_builtin_p): Likewise.
12549         (partition_has_writes): Remove.
12550         (partition_reduction_p): New function.
12551         (partition_merge_into): Likewise.
12552         (generate_code_for_partition): Commonize builtin partition
12553         handling tail.
12554         (rdg_cannot_recompute_vertex_p): Remove.
12555         (already_processed_vertex_p): Likewise.
12556         (rdg_flag_vertex): Do not set has_writes.
12557         (classify_partition): Adjust.
12558         (rdg_build_partitions): Do not set has_writes, treat all
12559         partitions as useful.
12560         (distribute_loop): Record number of library calls generated.  Adjust.
12561         (tree_loop_distribution): Report number of loops and library
12562         calls generated as opt-info.
12563
12564 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12565
12566         * tree-flow.h: Include new .h files.  Move prototypes.
12567         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
12568         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
12569         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
12570         * tree-pretty-print.h: Add prototypes from tree-flow.h.
12571         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
12572         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
12573         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
12574         * tree.h (get_ref_base_and_extent): Move prototype out.
12575         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
12576         tree-dfa.h.
12577         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
12578         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
12579         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
12580         * tree-scalar-evolution.c: Include tree.h.
12581         * sese.c: Include tree.h.
12582         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
12583         * dwarf2out.c: Include tree-dfa.h.
12584         * tree-chrec.c: Include tree.h.
12585         * tree-data-ref.c: Include tree.h.
12586
12587 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
12588
12589         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
12590         Fix whitespace.
12591
12592 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12593
12594         * config/t-sol2 (sol2-c.o): Remove header dependencies.
12595         Use $(COMPILE) and $(POSTCOMPILE).
12596         (sol2-cxx.o): Likewise.
12597         (sol2-stubs.o): Likewise.
12598         (sol2.o): Likewise.
12599         * config/x-solaris (host-solaris.o): Likewise.
12600
12601         * config/sparc/t-sparc (sparc.o): Remove.
12602         (sparc-c.o): Remove header dependencies.
12603         Use $(COMPILE) and $(POSTCOMPILE).
12604         * config/sparc/x-sparc: Likewise.
12605
12606 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
12607
12608         * config/arc/arc-opts.h: Add 2013 to Copyright years.
12609         * config/arc/arc700.md: Likewise.
12610         * config/arc/arc-modes.def: Likewise.
12611         * config/arc/arc-simd.h: Likewise.
12612         * config/arc/t-arc-uClibc: Likewise.
12613         * config/arc/t-arc-newlib: Likewise.
12614
12615 2013-10-02  Renlin Li  <renlin.li@arm.com>
12616
12617         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12618         plus_constant.
12619         (aarch64_expand_epilogue): Likewise.
12620
12621 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12622             Yufeng Zhang  <yufeng.zhang@arm.com>
12623
12624         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
12625         declaration.
12626         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
12627         'base_in' represent a conversion and legal_cast_p_1 holds; set
12628         'base_in' with the returned value from get_unwidened.
12629
12630 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12631
12632         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
12633         plus_constant is not used.
12634
12635 2013-10-01  Wei Mi  <wmi@google.com>
12636
12637         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
12638         * config/i386/i386.md: Add define_peephole2 to
12639         break partial reg stall for cvtss2sd/cvtsd2ss.
12640
12641 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12642
12643         * config/arc/arc.c (pass_arc_ifcvt::clone):
12644         Update for ctxt_ -> m_ctxt change.
12645
12646 2013-10-01  Jeff Law  <law@redhat.com>
12647
12648         * tree-ssa-threadupdate.c (struct redirection_data): Delete
12649         outgoing_edge and intermediate_edge fields.  Instead store the path.
12650         (redirection_data::hash): Hash on the last edge's destination index.
12651         (redirection_data::equal): Check the entire thread path.
12652         (lookup_redirectio_data): Corresponding changes.
12653         (create_edge_and_update_destination_phis): Likewise.
12654         (thread_single_edge): Likewise.
12655
12656 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12657             Diego Novillo <dnovillo@google.com>
12658
12659         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
12660         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
12661         (vld32wh_insn, vld32wl_insn): Delete commented-out old
12662         versions of these patterns.
12663
12664         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
12665         (__builtin_arc_aligned): Likewise.
12666
12667         * config/arc/arc.md: Expand adc_0 comment stating the intended
12668         purpose and why it isn't ready.
12669         Replace commented out call_value_via_label_mixed with a
12670         plain comment about bl_s.
12671
12672         * config/arc/arc.c (stdio.h): Don't include directly.
12673         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
12674         Remove if (1) condition.
12675         (arc_encode_section_info): Fix comment.
12676
12677 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12678
12679         * config/arc/arc.c (arc_conditional_register_usage):
12680         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
12681         Also set reg_alloc_order for DMA config regs.
12682
12683 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12684             Jeremy Bennett  <jeremy.bennett@embecosm.com>
12685
12686         * doc/install.texi (--with-cpu): Mention ARC.
12687         (arc-*-elf32): New paragraph.
12688         (arc-linux-uclibc): Likewise.
12689         * doc/md.texi (Machine Constraints): Add ARC part.
12690         * doc/invoke.texi: (menu): Add ARC Options.
12691         (Machine Dependent Options) <ARC Options>: Add synopsis.
12692         (node ARC Options): Add.
12693         * doc/extend.texi (long_call / short_call attribute): Add ARC.
12694         (ARC Built-in Functions): New section defining
12695         generic ARC built-in functions.
12696         (ARC SIMD Built-in Functions): New section defining SIMD specific
12697         built-in functions.
12698         (Declaring Attributes of Functions): Extended
12699         description of short_call and long_call attributes for ARC and
12700         added index entries.
12701
12702 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
12703             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
12704             Joern Rennecke  <joern.rennecke@embecosm.com>
12705             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
12706             Brendan Kehoe  <brendan@zen.org>
12707             Michael Eager  <eager@eagercon.com>
12708             Simon Cook  <simon.cook@embecosm.com>
12709             Jeremy Bennett  <jeremy.bennett@embecosm.com>
12710
12711         * config/arc, common/config/arc: New directories.
12712
12713 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12714             Brendan Kehoe  <brendan@zen.org>
12715             Simon Cook  <simon.cook@embecosm.com>
12716
12717         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
12718
12719 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
12720
12721         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
12722         * tree-ssa-coalesce.h: New. Move prototype to here.
12723         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
12724         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
12725         (gimple_can_coalesce_p): Move to...
12726         * gimple.c (gimple_can_coalesce_p): Here.
12727
12728 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
12729
12730         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
12731         (dump_decl_set): Move to gimple.c.
12732         * gimple.h: Don't include tree-ssa-operands.h.
12733         (dump_decl_set): Add prototype.
12734         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12735         Move to gimple-ssa.h.
12736         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
12737         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
12738         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
12739         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
12740         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
12741         than PHI_ARG_DEF.
12742         (dump_decl_set): Relocate here.
12743         * gimple-ssa.h: New file.
12744         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12745         Relocate from gimple.h.
12746         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
12747         * tree-ssa-operands.c (swap_ssa_operands): Rename from
12748         swap_tree_operands and remove non-ssa path.
12749         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
12750         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
12751         swap_ssa_operands.
12752         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
12753         vect_is_simple_reduction_1): Use swap_ssa_operands.
12754         * tree-flow.h: Move various prototypes to tree-phinodes.h.
12755         (enum need_phi_state): Move to tree-into-ssa.c.
12756         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12757         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
12758         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
12759         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
12760         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12761         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12762         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12763         num_imm_uses): Move to ssa-iterators.h.
12764         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
12765         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
12766         tree-phinodes.h.
12767         (op_iter_done, op_iter_next_def, op_iter_next_tree,
12768         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
12769         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
12770         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
12771         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
12772         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
12773         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
12774         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
12775         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
12776         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
12777         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
12778         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
12779         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
12780         (set_phi_nodes): Move to tree-phinodes.h.
12781         * tree-ssa-operands.h (enum ssa_op_iter_type,
12782         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
12783         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
12784         (dump_decl_set): Remove prototype.
12785         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
12786         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
12787         (set_phi_nodes): Relocate from tree-flow-inline.h.
12788         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
12789         tree-flow-inline.h
12790         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
12791         include list.  Temporarily add gimple.h to include list.
12792         * ssa-iterators.h: New file.
12793         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12794         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
12795         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
12796         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
12797         Relocate from tree-ssa-operands.h.
12798         (delink_imm_use, link_imm_use_to_list, link_imm_use,
12799         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12800         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12801         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12802         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
12803         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
12804         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
12805         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
12806         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
12807         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
12808         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
12809         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
12810         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
12811         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
12812         Relocate from tree-flow-inline.h.
12813         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
12814
12815 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
12816
12817         * aarch64-simd.md
12818         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
12819         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
12820         Insert '\t' to output template.
12821         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
12822         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
12823         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
12824         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
12825
12826 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
12827
12828         * doc/install.texi (Host/target specific installation notes for GCC):
12829         Put @anchor before @heading.
12830         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
12831         Use @email for email addresses.
12832
12833 2013-10-01  Jeff Law  <law@redhat.com>
12834
12835         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
12836         a vec.  Only delete the path if we create one without successfully
12837         registering a jump thread.
12838         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
12839         as a pointer.
12840         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
12841         (paths): New vector of jump threading paths.
12842         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
12843         (THREAD_PATH): New accessor macro for the entire thread path.
12844         (lookup_redirection_data): Get intermediate and final outgoing edge
12845         from the thread path.
12846         (create_edge_and_update_destination_phis): Copy the threading path.
12847         (ssa_fix_duplicate_block_edges): Get edges and block types from the
12848         jump threading path.
12849         (ssa_redirect_edges): Get edges and block types from the jump threading
12850         path.  Free the path vector.
12851         (thread_block): Get edges from the jump threading path.  Look at the
12852         entire path to see if we thread to a loop exit.  If we cancel a jump
12853         thread request, then free the path vector.
12854         (thread_single_edge): Get edges and block types from the jump threading
12855         path.  Free the path vector.
12856         (thread_through_loop_header): Get edges and block types from the jump
12857         threading path.  Free the path vector.
12858         (mark_threaded_blocks): Iterate over the vector of paths and store
12859         the path on the appropriate edge.  Get edges and block types from the
12860         jump threading path.
12861         (mark_threaded_blocks): Get edges and block types from the jump
12862         threading path.  Free the path vector.
12863         (thread_through_all_blocks): Use the vector of paths rather than
12864         a vector of 3-edge sets.
12865         (register_jump_thread): Accept pointer to a path vector rather
12866         than the path vector itself.  Store the path vector for later use.
12867         Simplify.
12868
12869 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
12870             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12871
12872         PR target/58574
12873         * config/s390/s390.c (s390_split_branches): Modify check for table
12874         jump insns.
12875         (s390_chunkify_start): Rearrange table jump insn check in order to
12876         deal with compare and branch insns correctly.
12877
12878 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
12879
12880         PR target/58578
12881         Revert
12882         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
12883         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
12884         define_insn_and_split.
12885         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
12886         (shiftsi3_compare): New pattern.
12887         (rrx): New pattern.
12888         * config/arm/unspecs.md (UNSPEC_RRX): New.
12889
12890 2013-10-01  Alan Modra  <amodra@gmail.com>
12891
12892         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
12893         casing inout operands.
12894
12895 2013-10-01  Richard Biener  <rguenther@suse.de>
12896
12897         PR tree-optimization/58553
12898         * tree-loop-distribution.c (struct partition_s): Add niter member.
12899         (classify_partition): Populate niter member for the partition
12900         and properly identify whether the relevant store happens before
12901         or after the loop exit.
12902         (generate_memset_builtin): Use niter member from the partition.
12903         (generate_memcpy_builtin): Likewise.
12904
12905 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
12906
12907         * vec.h (vec_prefix, vec): Prefix member names with "m_".
12908         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
12909
12910 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
12911
12912         * basic-block.h (edge_list): Prefix member names with "m_".
12913         * context.h (context): Likewise.
12914         * domwalk.h (dom_walker): Likewise.
12915         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
12916         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
12917         * hash-table.h (hash_table): Likewise.
12918         * machmode.h (bit_field_mode_iterator): Likewise.
12919         * pass_manager.h (pass_list): Likewise.
12920         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
12921         * tree-pass.h (pass_data): Likewise.
12922         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
12923         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
12924         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
12925         * asan.c (pass_data_asan): Update accordingly.
12926         * cfganal.c (control_dependences::find_control_dependence): Likewise.
12927         (control_dependences::control_dependences): Likewise.
12928         (control_dependences::~control_dependences): Likewise.
12929         (control_dependences::~control_dependences): Likewise.
12930         (control_dependences::get_edges_dependent_on): Likewise.
12931         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
12932         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
12933         * context.c (gcc::context::context): Likewise.
12934         * cprop.c (pass_rtl_cprop::clone): Likewise.
12935         * domwalk.c (dom_walker::walk): Likewise.
12936         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
12937         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
12938         * mode-switching.c (pass_mode_switching::clone): Likewise.
12939         * passes.c (opt_pass::opt_pass): Likewise.
12940         (pass_manager::pass_manager): Likewise.
12941         * predict.c (pass_strip_predict_hints::clone): Likewise.
12942         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
12943         (pass_split_all_insns::clone): Likewise.
12944         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
12945         Likewise.
12946         (bit_field_mode_iterator::next_mode): Likewise.
12947         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
12948         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
12949         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
12950         * tree-complex.c (pass_lower_complex::clone): Likewise.
12951         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
12952         * tree-object-size.c (pass_object_sizes::clone): Likewise.
12953         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
12954         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
12955         (pass_fold_builtins::clone): Likewise.
12956         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
12957         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
12958         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
12959         (pass_cd_dce::clone): Likewise.
12960         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
12961         (pass_phi_only_cprop::clone): Likewise.
12962         * tree-ssa-dse.c (pass_dse::clone): Likewise.
12963         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
12964         * tree-ssa-loop.c (pass_lim::clone): Likewise.
12965         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
12966         * tree-ssa-pre.c (pass_fre::clone): Likewise.
12967         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
12968         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
12969         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
12970         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
12971         * tree-vrp.c (pass_vrp::clone): Likewise.
12972         * tsan.c (pass_tsan::clone): Likewise.
12973
12974 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
12975
12976         PR middle-end/58564
12977         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
12978         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
12979
12980         PR middle-end/58564
12981         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
12982         optimization, punt if sign_bit_p looked through any zero extension.
12983
12984 2013-09-30  Teresa Johnson  <tejohnson@google.com>
12985
12986         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
12987         Update redirected out edge count in joiner case.
12988         (ssa_redirect_edges): Common the joiner and non-joiner cases
12989         so that joiner case gets profile updates.
12990
12991 2013-09-30  Richard Biener  <rguenther@suse.de>
12992
12993         PR tree-optimization/58554
12994         * tree-loop-distribution.c (classify_partition): Require
12995         unconditionally executed stores for memcpy and memset recognition.
12996         (tree_loop_distribution): Calculate dominance info.
12997
12998 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
12999
13000         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
13001         (NO_PROFILE_COUNTERS): Likewise.
13002         (PROFILE_HOOK): Likewise.
13003         (FUNCTION_PROFILER): Likewise.
13004         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
13005
13006 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
13007
13008         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
13009         calls and defines in TARGET_MACHO conditional.
13010         (load_macho_picbase_di): Likewise.
13011         (reload_macho_picbase): Likewise.
13012         (reload_macho_picbase_si): Likewise.
13013         (reload_macho_picbase_di): Likewise.
13014         (nonlocal_goto_receiver): Likewise.
13015
13016 2013-09-30  Nick Clifton  <nickc@redhat.com>
13017
13018         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
13019         that use the MSP430X ISA.
13020         (msp430_option_override): Scan -mmcu command line option for any
13021         MCU name that supports the MSP430X ISA.
13022         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
13023         -mmcu options which enable the MSP430X ISA.
13024
13025 2013-09-30  Richard Biener  <rguenther@suse.de>
13026
13027         PR middle-end/58532
13028         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
13029         before looking for setjmp-like calls.
13030
13031 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13032
13033         PR target/10901
13034         * config/darwin-protos.h (machopic_get_function_picbase): New.
13035         * config/darwin.c (machopic_get_function_picbase): New.
13036         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
13037         label for a new func.  (load_macho_picbase_di): Likewise.
13038         (reload_macho_picbase): New expand.
13039         (reload_macho_picbase_si): New insn.
13040         (reload_macho_picbase_di): New insn.
13041         (nonlocal_goto_receiver): New define and split.
13042         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
13043         (unspecv enum): Add UNSPECV_NLGR.
13044
13045 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13046
13047         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
13048         that altivec registers are correctly sized on Darwin.
13049
13050 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
13051
13052         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
13053         darwin-driver.o): Use COMPILE and POSTCOMPILE.
13054         * config/x-darwin (host-darwin.o): Likewise.
13055         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
13056         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
13057         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
13058
13059 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
13060
13061         * doc/invoke.texi: Fix usage of @tie{} command.
13062
13063 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
13064
13065         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
13066
13067 2013-09-28  Jan Hubicka  <jh@suse.cz>
13068
13069         * config/i386/x86-tune.def: Add documentation for each of the options;
13070         add whitespace.
13071
13072 2013-09-28  Jan Hubicka  <jh@suse.cz>
13073
13074         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
13075         generic.
13076         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
13077         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
13078         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
13079         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
13080         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
13081
13082 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
13083
13084         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
13085         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
13086         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
13087         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
13088         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
13089         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
13090         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
13091         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
13092         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
13093         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
13094         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
13095         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
13096         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
13097         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
13098         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
13099         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
13100         gimple.h, godump.c, graphite-clast-to-gimple.c,
13101         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
13102         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
13103         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
13104         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13105         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
13106         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
13107         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
13108         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
13109         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
13110         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
13111         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
13112         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
13113         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
13114         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
13115         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
13116         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
13117         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
13118         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
13119         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
13120         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
13121         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
13122         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
13123         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
13124         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
13125         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13126         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13127         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
13128         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
13129         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13130         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13131         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13132         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13133         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
13134         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13135         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13136         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
13137         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
13138         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
13139         whitespace before "(".
13140
13141 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
13142
13143         * expr.h (extract_bit_field): Remove packedp parameter.
13144         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
13145         from forward declaration.
13146         (store_split_bit_field): Remove packedp arg from calls to
13147         extract_fixed_bit_field.
13148         (extract_bit_field_1): Remove packedp parameter and packedp
13149         argument from recursive calls and calls to extract_fixed_bit_field.
13150         (extract_bit_field): Remove packedp parameter and corresponding
13151         arg to extract_bit_field_1.
13152         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
13153         to issue warnings.
13154         (extract_split_bit_field): Remove packedp arg from call to
13155         extract_fixed_bit_field.
13156         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
13157         (copy_blkmode_from_reg): Likewise.
13158         (copy_blkmode_to_reg): Likewise.
13159         (read_complex_part): Likewise.
13160         (store_field): Likewise.
13161         (expand_expr_real_1): Likewise.
13162         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
13163         to extract_bit_field.
13164         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
13165         call to extract_bit_field.
13166         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
13167         call to extract_bit_field.
13168         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
13169         and special packedp behavior from -fstrict-volatile-bitfields
13170         documentation.
13171
13172 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13173
13174         * lra-eliminations.c (init_elim_table): Guard value_p.
13175
13176 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
13177
13178         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
13179         DFmode, DImode, and SFmode in the upper VSX registers based on the
13180         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
13181         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
13182         of the VSX register handling.
13183
13184         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
13185         (f32_sv): Likewise.
13186         (zero_extendsidi2_lfiwzx): Add support for loading into the
13187         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
13188         only do VSX memory options on Altivec registers.
13189         (extendsidi2_lfiwax): Likewise.
13190         (extendsfdf2_fpr): Likewise.
13191         (mov<mode>_hardfloat, SF/SD modes): Likewise.
13192         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
13193         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
13194         (movdi_internal64): Likewise.
13195
13196 2013-09-27  Xinliang David Li  <davidxl@google.com>
13197
13198         * opts.c (finish_options): Adjust parameters
13199         according to vect cost model.
13200         (common_handle_option): Set dynamic vect cost
13201         model for FDO.
13202         targhooks.c (default_add_stmt_cost): Compute stmt cost
13203         unconditionally.
13204         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13205         Use helper function.
13206         * tree-vectorizer.h (unlimited_cost_model): New function.
13207         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
13208         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
13209         function.
13210         (vect_enhance_data_refs_alignment): Ditto.
13211         * flag-types.h: New enum.
13212         * common/config/i386/i386-common.c (ix86_option_init_struct):
13213         No need to initialize vect_cost_model flag.
13214         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
13215         unconditionally.
13216
13217 2013-09-27  Diego Novillo  <dnovillo@google.com>
13218
13219         * gimple.h (enum ssa_mode): Remove.
13220
13221 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
13222
13223         * cfgloop.h (number_of_loops): Fix typo in check for null.
13224
13225 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
13226
13227         PR middle-end/58551
13228         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
13229         are children of outermost saved_cfun's loop, and set it up to
13230         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
13231         if loop != loop0 and SESE region contains bbs that belong to loop0.
13232
13233 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
13234
13235         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
13236         (binary_scale_code_p, get_base_term, get_index_term): New functions.
13237         (set_address_segment, set_address_base, set_address_index)
13238         (set_address_disp): Accept the argument unconditionally.
13239         (baseness): Remove must_be_base_p and must_be_index_p checks.
13240         (decompose_normal_address): Classify as much as possible in the
13241         main loop.
13242
13243 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
13244
13245         * cse.c (count_reg_usage): Handle INT_LIST.
13246         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
13247         * reginfo.c (reg_scan_mark_refs): Likewise.
13248         * reload1.c (eliminate_regs_1): Likewise.
13249
13250 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
13251
13252         PR middle-end/58547
13253         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
13254         signed.
13255
13256 2013-09-27  Richard Biener  <rguenther@suse.de>
13257
13258         PR tree-optimization/58459
13259         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
13260         restriction not propagating into loops.
13261
13262 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
13263
13264         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
13265         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
13266         * doc/tree-ssa.texi (Walking use-def chains): Delete.
13267
13268 2013-09-26  Richard Biener  <rguenther@suse.de>
13269
13270         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
13271
13272 2013-09-26  Richard Biener  <rguenther@suse.de>
13273
13274         * alias.h (component_uses_parent_alias_set): Rename to ...
13275         (component_uses_parent_alias_set_from): ... this.
13276         * alias.c (component_uses_parent_alias_set): Rename to ...
13277         (component_uses_parent_alias_set_from): ... this and return
13278         the desired parent.
13279         (reference_alias_ptr_type_1): Use the result from
13280         component_uses_parent_alias_set_from instead of stripping
13281         components one at a time.
13282         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13283
13284 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
13285
13286         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
13287         Move prototypes to...
13288         * tree-ssa-ter.h: New File.  Move prototypes here.
13289         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
13290         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
13291         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
13292         from is_replaceable_p.
13293         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
13294         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
13295         (process_replaceable): Use ter_is_replaceable_p.
13296         (find_replaceable_in_bb): Use ter_is_replaceable_p.
13297         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
13298         newly refactored ssa_is_replaceable_p.
13299         * cfgexpand.c: Include tree-outof-ssa.h.
13300         * ssaexpand.h: Delete.
13301
13302 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
13303
13304         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
13305         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
13306         tree-ssa.c
13307         (create_gimple_tmp): Delete.
13308         (get_expr_type, build_assign, build_type_cast): Move to...
13309         * gimple-builder.c: New File.
13310         (get_expr_type): Relocate from gimple.c.
13311         (build_assign, build_type_cast): Change to only create ssanames.
13312         * gimple.h: Move prototypes to...
13313         * gimple-builder.h: New File. Here.
13314         * tree-ssa.h: And here.
13315         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
13316         count_uses_and_derefs): Relocate from gimple.c.
13317         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
13318         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
13319         * tree-ssa-math-opts (execute_cse_reciprocals): Use
13320         gimple_replace_ssa_lhs.
13321         * asan.c: Include gimple-builder.h.
13322         * Makefile.in: Add gimple-builder.o.
13323
13324 2013-09-26  Richard Biener  <rguenther@suse.de>
13325
13326         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
13327         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
13328         (loe_visit_block): Use gcc_checking_assert.
13329         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
13330         gimple_assign_ssa_name_copy_p.
13331         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
13332         change.
13333
13334 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
13335
13336         * config/rs6000/t-rs6000 (rs6000.o): Remove.
13337         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
13338
13339 2013-09-26  Richard Biener  <rguenther@suse.de>
13340
13341         PR tree-optimization/58539
13342         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
13343         the fact that debug statements are not taking part in loop-closed
13344         SSA construction.
13345
13346 2013-09-26  Nick Clifton  <nickc@redhat.com>
13347
13348         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
13349         time warning message.
13350         (msp430_print_operand_raw): Delete unused letter parameter.
13351         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13352         (msp430_print_operand_address): New function.
13353         (msp430_print_operand): Move address printing code from here to
13354         new function.
13355         * config/msp430/msp430.md (movsipsi2): Add comment in generated
13356         assembler.
13357         (zero_extendpsisi2): Likewise.
13358         (extendpsisi2): New pattern.
13359         (andneghi3): New pattern.
13360
13361 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
13362
13363         * config/aarch64/aarch64.opt (mlra): New option.
13364         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
13365         (TARGET_LRA_P): Define.
13366
13367 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
13368
13369         * expr.c (expand_assignment): Remove obsolete comment.
13370
13371 2013-09-25  Jeff Law  <law@redhat.com>
13372
13373         * tree-flow.h (thread_through_all_blocks): Prototype moved into
13374         tree-ssa-threadupdate.h.
13375         (register_jump_thread): Similarly.
13376         * tree-ssa-threadupdate.h: New header file.
13377         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
13378         * tree-vrp.c: Likewise.
13379         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
13380         (thread_around_empty_blocks): Change type of path vector argument to
13381         an edge,type pair from just an edge.  Initialize both elements when
13382         appending to a jump threading path.  Tweak references to elements
13383         appropriately.
13384         (thread_across_edge): Similarly.  Release memory for the elements
13385         as needed.
13386         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
13387         (dump_jump_thread_path): New function broken out from
13388         register_jump_thread.
13389         (register_jump_thread): Use dump_jump_thread_path.  Change type of
13390         path vector entries.  Search the path for NULL edges and dump
13391         the path if one is found.  Tweak the conversion of path to 3-edge
13392         form to use the block copy type information embedded in the path.
13393
13394 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
13395
13396         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
13397
13398 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
13399             Vladimir Makarov  <vmakarov@redhat.com>
13400
13401         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
13402         from the least significant bit.
13403         (strip_address_mutations): Add bitfield operations handling.
13404         (must_be_index_p): Add shifting and rotate operations handling.
13405         (set_address_base): Use must_be_base_p predicate.
13406         (set_address_index): Use must_be_index_p predicate.
13407
13408 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13409             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13410             Sergey Lega  <sergey.s.lega@intel.com>
13411             Anna Tikhonova  <anna.tikhonova@intel.com>
13412             Ilya Tocar  <ilya.tocar@intel.com>
13413             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13414             Ilya Verbin  <ilya.verbin@intel.com>
13415             Kirill Yukhin  <kirill.yukhin@intel.com>
13416             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13417
13418         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13419         Use new names.
13420         (ix86_expand_vector_move_misalign): Support new unaligned load and
13421         stores and use new names.
13422         (CODE_FOR_sse2_storedqu): Rename to ...
13423         (CODE_FOR_sse2_storedquv16qi): ... this.
13424         (CODE_FOR_sse2_loaddqu): Rename to ...
13425         (CODE_FOR_sse2_loaddquv16qi): ... this.
13426         (CODE_FOR_avx_loaddqu256): Rename to ...
13427         (CODE_FOR_avx_loaddquv32qi): ... this.
13428         (CODE_FOR_avx_storedqu256): Rename to ...
13429         (CODE_FOR_avx_storedquv32qi): ... this.
13430         * config/i386/i386.md (fpint_logic): New.
13431         * config/i386/sse.md (VMOVE): Extend for AVX512.
13432         (VF): Ditto.
13433         (VF_128_256): New.
13434         (VF_512): Ditto.
13435         (VI_UNALIGNED_LOADSTORE): Ditto.
13436         (sse2_avx_avx512f): Ditto.
13437         (sse2_avx2): Extend for AVX512.
13438         (sse4_1_avx2): Ditto.
13439         (avx2_avx512f): New.
13440         (sse): Extend for AVX512.
13441         (sse2): Ditto.
13442         (sse4_1): Ditto.
13443         (avxsizesuffix): Ditto.
13444         (sseintvecmode): Ditto.
13445         (ssePSmode): Ditto.
13446         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
13447         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
13448         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13449         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
13450         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13451         (<sse2_avx_avx512f>_storedqu<mode): ... this.
13452         (<sse>_movnt<mode>): Replace constraint "x" with "v".
13453         (STORENT_MODE): Extend for AVX512.
13454         (*absneg<mode>2): Replace constraint "x" with "v".
13455         (*mul<mode>3): Ditto.
13456         (*ieee_smin<mode>3): Ditto.
13457         (*ieee_smax<mode>3): Ditto.
13458         (avx_cmp<mode>3): Replace VF with VF_128_256.
13459         (*<sse>_maskcmp<mode>3_comm): Ditto.
13460         (<sse>_maskcmp<mode>3): Ditto.
13461         (<sse>_andnot<mode>3): Extend for AVX512.
13462         (<code><mode>3, anylogic): Replace VF with VF_128_256.
13463         (<code><mode>3, fpint_logic): New.
13464         (*<code><mode>3): Extend for AVX512.
13465         (avx512flogicsuff): New.
13466         (avx512f_<logic><mode>): Ditto.
13467         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
13468         VF_128_256.
13469         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
13470         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
13471         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
13472         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
13473         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
13474         (xop_vpermil2<mode>3): Ditto.
13475         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
13476         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
13477         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
13478         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
13479
13480 2013-09-25  Tom Tromey  <tromey@redhat.com>
13481
13482         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
13483         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
13484         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
13485         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
13486         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
13487         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
13488         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
13489         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
13490         (GRAPHITE_HTAB_H): Remove.
13491
13492 2013-09-25  Tom Tromey  <tromey@redhat.com>
13493
13494         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
13495
13496 2013-09-25  Tom Tromey  <tromey@redhat.com>
13497
13498         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
13499
13500 2013-09-25  Tom Tromey  <tromey@redhat.com>
13501
13502         * config/i386/t-i386 (i386.o): Remove.
13503         (i386-c.o): Use COMPILE and POSTCOMPILE.
13504
13505 2013-09-25  Tom Tromey  <tromey@redhat.com>
13506
13507         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
13508
13509 2013-09-25  Tom Tromey  <tromey@redhat.com>
13510
13511         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
13512         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
13513         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
13514         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
13515         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
13516         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
13517         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
13518         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
13519         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
13520         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
13521         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
13522         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
13523         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
13524         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
13525         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
13526         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
13527         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
13528         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
13529         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
13530         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
13531         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
13532         (tree-ssa-pre.o, tree-ssa-sccvn.o)
13533         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
13534         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
13535         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
13536         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
13537         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
13538         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
13539         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
13540         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
13541         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
13542         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
13543         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
13544         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
13545         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
13546         (graphite-clast-to-gimple.o, graphite-dependences.o)
13547         (graphite-interchange.o, graphite-poly.o)
13548         (graphite-scop-detection.o, graphite-sese-to-poly.o)
13549         (graphite-optimize-isl.o, tree-vect-loop.o)
13550         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
13551         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
13552         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
13553         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
13554         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
13555         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
13556         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
13557         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
13558         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
13559         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
13560         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
13561         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
13562         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
13563         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
13564         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
13565         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
13566         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
13567         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
13568         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
13569         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
13570         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
13571         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
13572         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
13573         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
13574         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
13575         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
13576         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
13577         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
13578         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
13579         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
13580         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
13581         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
13582         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
13583         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
13584         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
13585         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
13586         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
13587         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
13588         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
13589         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
13590         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
13591         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
13592         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
13593         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
13594         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
13595         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
13596         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
13597         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
13598         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
13599         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
13600         (gcov-dump.o): Remove.
13601         (default-c.o): Use COMPILE and POSTCOMPILE.
13602         (CFLAGS-gcc.o): New variable.
13603         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
13604
13605 2013-09-25  Tom Tromey  <tromey@redhat.com>
13606
13607         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
13608         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
13609         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
13610         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
13611         (c-family/c-pragma.o, c-family/c-pretty-print.o)
13612         (c-family/c-semantics.o, c-family/c-ada-spec.o)
13613         (c-family/array-notation-common.o, c-family/stub-objc.o)
13614         (c-family/c-ubsan.o): Remove.
13615
13616 2013-09-25  Tom Tromey  <tromey@redhat.com>
13617
13618         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
13619
13620 2013-09-25  Tom Tromey  <tromey@redhat.com>
13621
13622         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
13623         to add -DENABLE_SHARED_LIBGCC.
13624         (gcc.o): Don't use subshell.
13625
13626 2013-09-25  Tom Tromey  <tromey@redhat.com>
13627
13628         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
13629         * configure.ac: Don't invoke AM_PROG_CC_C_O.
13630         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
13631         * configure, config.in: Rebuild.
13632
13633 2013-09-25  Tom Tromey  <tromey@redhat.com>
13634
13635         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
13636         (COMPILE, POSTCOMPILE): New variables.
13637         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
13638         (DEPFILES): New variable.
13639         Include ".Po" files.
13640         * configure.ac: Add checks for dependency checking.
13641         * configure, aclocal.m4: Regenerate.
13642
13643 2013-09-25  Tom Tromey  <tromey@redhat.com>
13644
13645         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
13646         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
13647
13648 2013-09-25  Tom Tromey  <tromey@redhat.com>
13649
13650         * Makefile.in (generated_files): Add options.h,
13651         target-hooks-def.h, insn-opinit.h,
13652         common/common-target-hooks-def.h, pass-instances.def,
13653         c-family/c-target-hooks-def.h.
13654
13655 2013-09-25  Jeff Law  <law@redhat.com>
13656
13657         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
13658         than foo[foo.length () - 1] to access last member in a vec.
13659         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
13660
13661 2013-09-25  Richard Biener  <rguenther@suse.de>
13662
13663         PR middle-end/58521
13664         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
13665
13666 2013-09-25  Jan Hubicka  <jh@suse.cz>
13667
13668         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
13669         test.
13670
13671 2013-09-25  Marek Polacek  <polacek@redhat.com>
13672
13673         PR sanitizer/58420
13674         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
13675         when determining the type name.
13676
13677 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
13678
13679         * config/sh/sh.md: Fix formatting.
13680
13681 2013-09-24  Xinliang David Li  <davidxl@google.com>
13682
13683         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
13684         max peel iterations parameter.
13685         * param.def: New parameter.
13686         * doc/invoke.texi: Document New parameter.
13687
13688 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
13689
13690         * gimple-pretty-print.c: Various whitespace tweaks.
13691         * tree-core.h: Likewise.
13692         * tree-pretty-print.c: Likewise.
13693         * tree-ssa-alias.c: Likewise.
13694         * tree-ssa-copy.c: Likewise.
13695         * tree-ssanames.c: Likewise.
13696         * tree-ssanames.h: Likewise.
13697         * tree-vrp.c: Likewise.
13698
13699 2013-09-24  Alan Modra  <amodra@gmail.com>
13700
13701         PR middle-end/57134
13702         PR middle-end/57586
13703         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
13704         for output operands that disallow regs.  Don't use EXPAND_WRITE on
13705         inout operands.
13706
13707 2013-09-24  Richard Biener  <rguenther@suse.de>
13708
13709         PR middle-end/58513
13710         * tree.c (reference_alias_ptr_type): Move ...
13711         * alias.c (reference_alias_ptr_type): ... here and implement
13712         in terms of the new reference_alias_ptr_type_1.
13713         (ref_all_alias_ptr_type_p): New helper.
13714         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
13715         use ref_all_alias_ptr_type_p.
13716         (get_deref_alias_set): Add flag_strict_aliasing check here.
13717         (reference_alias_ptr_type_1): New function, split out from ...
13718         (get_alias_set): ... here.
13719         (alias_ptr_types_compatible_p): New function.
13720         * alias.h (reference_alias_ptr_type): Declare.
13721         (alias_ptr_types_compatible_p): Likewise.
13722         * tree.h (reference_alias_ptr_type): Remove.
13723         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
13724         to compare MEM_REF alias types.
13725
13726 2013-09-24  Richard Biener  <rguenther@suse.de>
13727
13728         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
13729
13730 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13731
13732         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
13733         reload helper function arrays into a single array reg_addr.
13734         (reload_fpr_gpr): Likewise.
13735         (reload_gpr_vsx): Likewise.
13736         (reload_vsx_gpr): Likewise.
13737         (struct rs6000_reg_addr): Likewise.
13738         (reg_addr): Likewise.
13739         (rs6000_debug_reg_global): Change rs6000_vector_reload,
13740         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
13741         (rs6000_init_hard_regno_mode_ok): Likewise.
13742         (rs6000_secondary_reload_direct_move): Likewise.
13743         (rs6000_secondary_reload): Likewise.
13744
13745         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
13746         constraints: wu, ww, and wy.  Repurpose wv constraint added during
13747         power8 changes.  Put wg constraint in alphabetical order.
13748
13749         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
13750         for future work to add ISA 2.07 VSX single precision support.
13751         (-mvsx-scalar-double): Change default from -1 to 1, update
13752         documentation comment.
13753         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
13754         (-mupper-regs-df): New debug switch to control whether DF values
13755         can go in the traditional Altivec registers.
13756         (-mupper-regs-sf): New debug switch to control whether SF values
13757         can go in the traditional Altivec registers.
13758
13759         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
13760         and wy constraints.
13761         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
13762         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
13763         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
13764         (rs6000_debug_legitimate_address_p): Print if we are running
13765         before, during, or after reload.
13766         (rs6000_secondary_reload): Add a comment.
13767         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
13768
13769         * config/rs6000/constraints.md (wa constraint): Sort w<x>
13770         constraints.  Update documentation string.
13771         (wd constraint): Likewise.
13772         (wf constraint): Likewise.
13773         (wg constraint): Likewise.
13774         (wn constraint): Likewise.
13775         (ws constraint): Likewise.
13776         (wt constraint): Likewise.
13777         (wx constraint): Likewise.
13778         (wz constraint): Likewise.
13779         (wu constraint): New constraint for ISA 2.07 SFmode scalar
13780         instructions.
13781         (ww constraint): Likewise.
13782         (wy constraint): Likewise.
13783         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
13784         in the previous submissions.
13785         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
13786
13787 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
13788
13789         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
13790         (REG_BR_PROB): Say that the probability is stored in an int_list.
13791         * reg-notes.def: Update commentary to mention INT_LIST.
13792         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
13793         (INT_LIST): New rtx.
13794         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
13795         * rtlanal.c (int_reg_note_p): New function.
13796         (alloc_reg_note): Assert that the note does not have an int argument.
13797         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
13798         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
13799         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
13800         rather than an INSN_LIST.  Handle INT_LIST.
13801         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
13802         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
13803         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
13804         Manipulate them as ints rather than rtxes.
13805         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
13806         * regmove.c (copy_src_to_dest): Likewise.
13807         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
13808
13809         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
13810         into the cases that need it.
13811         * config/arm/arm.c (arm_unwind_emit): Likewise.
13812
13813         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
13814         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
13815         * loop-doloop.c (add_test, doloop_modify): Likewise.
13816         * loop-unswitch.c (compare_and_jump_seq): Likewise.
13817         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
13818         * predict.c (combine_predictions_for_insn): Likewise.
13819         * print-rtl.c (print_rtx): Handle INT_LIST.
13820         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
13821         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
13822         * config/arm/arm.c (emit_unlikely_jump): Likewise.
13823         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
13824         (ix86_split_fp_branch, predict_jump): Likewise.
13825         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
13826         * config/sh/sh.c (expand_cbranchsi4): Likewise.
13827         * config/spu/spu.c (ea_load_store_inline): Likewise.
13828
13829         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
13830         value of a REG_BR_PROB note.
13831         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13832         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
13833         * emit-rtl.c (try_split): Likewise.
13834         * predict.c (br_prob_note_reliable_p): Likewise.
13835         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
13836         * reorg.c (mostly_true_jump): Likewise.
13837         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
13838         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
13839         * config/i386/i386.c (ix86_print_operand): Likewise.
13840         * config/ia64/ia64.c (ia64_print_operand): Likewise.
13841         * config/mmix/mmix.c (mmix_print_operand): Likewise.
13842         * config/rs6000/rs6000.c (output_cbranch): Likewise.
13843         * config/s390/s390.c (s390_expand_tbegin): Likewise.
13844         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
13845         * config/sparc/sparc.c (output_cbranch): Likewise.
13846         * config/spu/spu.c (get_branch_target): Likewise.
13847         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
13848         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
13849
13850 2013-09-23  Jan Hubicka  <jh@suse.cz>
13851
13852         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
13853         for ipa-devirt.
13854         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
13855         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
13856         of external calls
13857         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
13858         (gimple_fold_call): Dump inconsistent devirtualizations; add
13859         sanity check for type based devirtualizations.
13860         * ipa-prop.c: Include ipa-utils.h
13861         (ipa_intraprocedural_devirtualization): Add sanity check.
13862         (try_make_edge_direct_virtual_call): Likewise.
13863
13864 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
13865
13866         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
13867         assignment statements.
13868
13869 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
13870
13871         * gimple-pretty-print.c (dump_ssaname_info): New function.
13872         (dump_gimple_phi): Call it.
13873         (pp_gimple_stmt_1): Likewise.
13874         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
13875         (range_info_def): Declare.
13876         * tree-pretty-print.c (pp_double_int): New function.
13877         (dump_generic_node): Call it.
13878         * tree-pretty-print.h (pp_double_int): Declare.
13879         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
13880         * tree-ssanames.h (range_info_def): New structure.
13881         (value_range_type): Move definition here.
13882         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
13883         Declare.
13884         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
13885         initialization.
13886         (set_range_info): New function.
13887         (get_range_info): Likewise.
13888         (duplicate_ssa_name_range_info): Likewise.
13889         (duplicate_ssa_name_fn): Check pointer type and call
13890         duplicate_ssa_name_range_info.
13891         * tree-ssa-copy.c (fini_copy_prop): Likewise.
13892         * tree-vrp.c (value_range_type): Remove definition, now in
13893         tree-ssanames.h.
13894         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
13895         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
13896         (SSA_NAME_RANGE_INFO): New macro.
13897
13898 2013-09-23  Richard Biener  <rguenther@suse.de>
13899
13900         PR tree-optimization/58464
13901         * tree-ssa-pre.c (phi_trans_lookup): Remove.
13902         (phi_trans_add): Change to add conditionally on being not present.
13903         (phi_translate_1): Remove recursion detection here.
13904         (phi_translate): Pre-seed the cache with NULL to catch
13905         recursion here in a more generic way.
13906         (bitmap_find_leader): Adjust comment.
13907         (get_representative_for): Dump value-numbers.
13908         (create_expression_by_pieces): Likewise.
13909         (insert_into_preds_of_block): Likewise.
13910
13911 2013-09-23  Christian Bruel  <christian.bruel@st.com>
13912
13913         PR target/58475
13914         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
13915         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
13916
13917 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
13918
13919         Revert r202780:
13920         2013-09-20  Renlin Li  <renlin.li@arm.com>
13921
13922         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13923         plus_constant.
13924         (aarch64_expand_epilogue): Likewise.
13925         (aarch64_legitimize_reload_address): Likewise.
13926
13927 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
13928
13929         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
13930         NULL_TREE before pushing them onto the vector.  Likewise for labels.
13931
13932 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
13933
13934         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
13935         comparison operators when -fno-trapping-math is in effect.
13936         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
13937         comparison operators in TFmode and assert that unsupported operators
13938         cannot reach here.
13939         (ia64_print_operand): Likewise.
13940
13941 2013-09-21  Jan Hubicka  <jh@suse.cz>
13942
13943         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
13944         (sse_typeless_stores): Enable for core
13945         (sse_load0_by_pxor): Likewise.
13946         (four_jump_limit): Disable for core.
13947         (pad_returns): Likewise.
13948         (avoid_vector_decode): Likewise.
13949         (fuse_cmp_and_branch): Enable for cores.
13950         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
13951
13952 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
13953
13954         PR middle-end/56791
13955         * config/pa/pa.c (pa_option_override): Disable auto increment and
13956         decrement instructions until reload is completed.
13957
13958         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
13959         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
13960         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13961
13962 2013-09-20  DJ Delorie  <dj@redhat.com>
13963             Nick Clifton  <nickc@redhat.com>
13964
13965         * config/rl78/rl78.c: Various whitespace and comment tweaks.
13966         (need_to_save): Save bank 0 on interrupts.
13967         (characterize_address): Strip far address wrappers.
13968         (rl78_as_legitimate_address): Likewise.
13969         (transcode_memory_rtx): Likewise.
13970         (rl78_peep_movhi_p): Disable this peephole after devirt.
13971         (rl78_propogate_register_origins): Forget all origins when a
13972         CLOBBER is seen.
13973         * config/rl78/rl78-virt.md: Various whitespace tweaks.
13974         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
13975         peephole2's.
13976         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
13977         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
13978         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
13979         relocating.
13980         * config/rl78/constraints.md: Various whitespace and paren tweaks.
13981
13982 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
13983
13984         * config/pa/pa.md: In "scc" insn patterns, change output template to
13985         handle const0_rtx in reg_or_0_operand operands.
13986
13987 2013-09-20  Martin Husemann  <martin@NetBSD.org>
13988
13989         PR target/56875
13990         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
13991         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
13992
13993 2013-09-20  Richard Biener  <rguenther@suse.de>
13994
13995         PR middle-end/58484
13996         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
13997         remembering SSA name version and block index.
13998         (new_scev_info_str): Adjust.
13999         (hash_scev_info): Likewise.  Also hash the block index.
14000         (eq_scev_info): Adjust.
14001         (find_var_scev_info): Likewise.
14002         (struct instantiate_cache_entry): Remove.
14003         (struct instantiate_cache_type): Use a htab to map name, block
14004         to chrec.
14005         (instantiate_cache_type::~instantiate_cache_type): Adjust.
14006         (get_instantiated_value_entry): Likewise.
14007         (hash_idx_scev_info, eq_idx_scev_info): New functions.
14008         (instantiate_scev_name): Adjust.
14009
14010 2013-09-20  Jeff Law  <law@redhat.com>
14011
14012         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
14013
14014 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
14015
14016         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
14017         Call aarch64_simd_expand_args to update op[argc].
14018
14019 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
14020
14021         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
14022         plugin argument.
14023
14024 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
14025
14026         * gengtype.c (file_rules): Added rule for *.cc files.
14027         (get_output_file_with_visibility): Give fatal message when no
14028         rules found.
14029
14030 2013-09-20  Renlin Li  <renlin.li@arm.com>
14031
14032         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
14033         (aarch64_expand_epilogue): Likewise.
14034         (aarch64_legitimize_reload_address): Likewise.
14035
14036 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14037
14038         PR middle-end/57748
14039         * expr.c (expand_assignment): Remove misalignp code path.
14040
14041 2013-09-20  Marek Polacek  <polacek@redhat.com>
14042
14043         PR sanitizer/58413
14044         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
14045         TYPE_PRECISION.  Add asserts.
14046
14047 2013-09-20  Richard Biener  <rguenther@suse.de>
14048
14049         PR tree-optimization/58453
14050         * tree-loop-distribution.c (distribute_loop): Apply the cost
14051         model for -ftree-loop-distribute-patterns, too.
14052
14053 2013-09-20  Richard Biener  <rguenther@suse.de>
14054
14055         PR middle-end/58473
14056         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
14057         make type comparison less strict.
14058
14059 2013-09-20  Alan Modra  <amodra@gmail.com>
14060
14061         * configure: Regenerate.
14062         * aclocal.m4: Regenerate.
14063
14064 2013-09-20  Marek Polacek  <polacek@redhat.com>
14065
14066         PR other/58467
14067         * doc/extend.texi: Document that attribute used is meant to be used
14068         on variables with static storage duration.
14069
14070 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
14071
14072         PR tree-optimization/58472
14073         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
14074         simd_lane_access set inv_p = false.
14075         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
14076         the simduid magic VAR_DECL.
14077
14078 2013-09-19  Jan Hubicka  <jh@suse.cz>
14079
14080         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
14081
14082 2013-09-17  Jeff Law  <law@redhat.com>
14083
14084         * tree-ssa-dom.c (record_temporary_equivalences): New function
14085         split out of dom_opt_dom_walker::after_dom_children.
14086         (dom_opt_dom_walker::thread_across_edge): Move common code
14087         in here from dom_opt_dom_walker::after_dom_children.
14088         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
14089
14090 2013-09-19  Jan Hubicka  <jh@suse.cz>
14091
14092         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
14093         (TARGET_GENERIC): Use PROCESOR_GENERIC
14094         (enum processor_type): Unify generic32 and 64.
14095         * i386.md (cpu): Likewise.
14096         * x86-tune.def (use_leave): Enable for generic32.
14097         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
14098         * athlon.md: Change generic64 to generic in all occurences.
14099         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
14100         (ix86_target_macros_internal): Likewise.
14101         * driver-i386.c (host_detect_local_cpu): Likewise.
14102         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
14103         to ..
14104         (generic_memcpy, generic_memset, generic_cost): This one.
14105         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
14106         (m_GENERIC32, m_GENERIC64): Remove.
14107         (m_GENERIC): Turn into one flag.
14108         (processor_target): Unify generic tunnings.
14109         (ix86_option_override_internal): Replace generic32/64 by generic.
14110         (ix86_issue_rate): Likewise.
14111         (ix86_adjust_cost): Likewise.
14112
14113 2013-09-19  Jan Hubicka  <jh@suse.cz>
14114
14115         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
14116         of speculative flag.
14117
14118 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
14119
14120         * omp-low.c (expand_omp_sections): Always pass len - 1 to
14121         GOMP_sections_start, even if !exit_reachable.
14122
14123 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14124
14125         * lra-constraints.c (need_for_all_save_p): Use macro
14126         HARD_REGNO_CALL_PART_CLOBBERED.
14127         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
14128         set up pseudo conflict hard regs.
14129
14130 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
14131
14132         PR target/58452
14133         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
14134         operands.
14135
14136 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14137
14138         PR rtl-optimization/58438
14139         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
14140         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
14141         from previous subpasses.
14142
14143 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
14144
14145         * arm.c (arm_get_frame_offsets): Validate architecture supports
14146         LDRD/STRD before accepting the tuning preference.
14147         (arm_expand_prologue): Likewise.
14148         (arm_expand_epilogue): Likewise.
14149
14150 2013-09-18  Richard Biener  <rguenther@suse.de>
14151
14152         PR tree-optimization/58417
14153         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
14154         have chrecs with symbols defined in the loop as operands.
14155         (chrec_fold_multiply): Likewise.
14156         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
14157         parameters before folding binary operations.
14158         (struct instantiate_cache_entry_hasher): Remove.
14159         (struct instantiate_cache_type): Use a pointer-map.
14160         (instantiate_cache_type::instantiate_cache_type): New function.
14161         (instantiate_cache_type::get): Likewise.
14162         (instantiate_cache_type::set): Likewise.
14163         (instantiate_cache_type::~instantiate_cache_type): Adjust.
14164         (get_instantiated_value_entry): Likewise.
14165         (global_cache): New global.
14166         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
14167         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
14168         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
14169         (instantiate_scev_name): Adjust.
14170         (instantiate_scev): Construct global instead of local cache.
14171         (resolve_mixers): Likewise.
14172
14173 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
14174             Paolo Carlini  <paolo.carlini@oracle.com>
14175
14176         PR c++/58458
14177         * doc/implement-cxx.texi: Fix references to the C++ standards.
14178
14179 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
14180
14181         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
14182         * tree-vect-data-refs.c (vect_analyze_data_refs): For
14183         simd_lane_access drs, update also DR_ALIGNED_TO.
14184
14185 2013-09-18  Marek Polacek  <polacek@redhat.com>
14186
14187         PR sanitizer/58411
14188         * doc/extend.texi: Document no_sanitize_undefined attribute.
14189         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
14190         no_sanitize_undefined attribute.
14191
14192 2013-09-18  Nick Clifton  <nickc@redhat.com>
14193
14194         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
14195         (ASM_DECLARE_FUNCTION_NAME): Define.
14196
14197 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
14198
14199         * compare-elim.c (find_comparison_dom_walker): New class
14200         (find_comparisons_in_bb): Rename to
14201         find_comparison_dom_walker::before_dom_children
14202         (find_comparisons): Adjust
14203         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
14204         adjust.
14205         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
14206         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
14207         (init_walk_dominator_tree): Remove declaration.
14208         (fini_walk_dominator_tree): Remove declaration.
14209         * fwprop.c (single_def_use_dom_walker): New class
14210         (single_def_use_enter_block): Convert to
14211         single_def_use_dom_walker::before_dom_children.
14212         (single_def_use_leave_block): Convert to
14213         single_def_use_dom_walker::after_dom_children.
14214         (build_single_def_use_links): Adjust.
14215         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
14216         class.
14217         (find_candidates_in_block): Convert to
14218         find_candidates_dom_walker::before_dom_children.
14219         (execute_strength_reduction): Adjust.
14220         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
14221         (sese_dom_walker): New class.
14222         (sese_dom_walker::sese_dom_walker): New constructor.
14223         (sese_dom_walker::~sese_dom_walker): New destructor.
14224         (build_sese_conditions_before): Convert to
14225         sese_dom_walker::before_dom_children.
14226         (build_sese_conditions_after): Convert to
14227         sese_dom_walker::after_dom_children.
14228         (build_poly_scop): Adjust
14229         * tree-into-ssa.c (rewrite_dom_walker): New class
14230         (rewrite_enter_block): Convert to
14231         rewrite_dom_walker::before_dom_children.
14232         (rewrite_leave_block): Convert to
14233         rewrite_dom_walker::after_dom_children.
14234         (rewrite_update_dom_walker): New class.
14235         (rewrite_update_enter_block): Convert to
14236         rewrite_update_dom_walker::before_dom_children.
14237         (rewrite_update_leave_block): Convert to
14238         rewrite_update_dom_walker::after_dom_children.
14239         (rewrite_blocks, rewrite_into_ssa): Adjust.
14240         (mark_def_dom_walker): New class.
14241         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
14242         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
14243         (mark_def_sites_blocks): Convert to
14244         mark_def_dom_walker::before_dom_children.
14245         (mark_def_site_blocks): Remove.
14246         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
14247         (tree_ssa_dominator_optimize): Adjust.
14248         (dom_thread_across_edge): Convert to method
14249         dom_opt_dom_walker::thread_across_edge.
14250         (dom_opt_enter_block): Convert to member function
14251         dom_opt_dom_walker::before_dom_children.
14252         (dom_opt_leave_block): Convert to member function
14253         dom_opt_dom_walker::after_dom_children.
14254         * tree-ssa-dse.c (dse_dom_walker): New class.
14255         (dse_enter_block): Convert to member function
14256         dse_dom_walker::before_dom_children.
14257         (tree_ssa_dse): Adjust.
14258         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
14259         (determine_invariantness_stmt): Convert to method
14260         invariantness_dom_walker::before_dom_children.
14261         (determine_invariantness): Remove
14262         (move_computations_dom_walker): New class.
14263         (move_computations_stmt): Convert to method
14264         move_computations_dom_walker::before_dom_children.
14265         (move_computations, tree_ssa_lim): Adjust.
14266         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
14267         (nt_init_block): Convert to method
14268         notrappping_dom_walker::before_dom_children.
14269         (nt_fini_block): Convert to method
14270         method nontrapping_dom_walker::after_dom_children.
14271         (get_non_trapping): Adjust.
14272         * tree-ssa-pre.c (eliminate_dom_walker): New class.
14273         (eliminate_bb): Convert to method
14274         eliminate_dom_walker::before_dom_children.
14275         (eliminate_leave_block): Convert to method
14276         eliminate_dom_walker::after_dom_children.
14277         (eliminate): Adjust.
14278         * tree-ssa-strlen.c (strlen_dom_walker): New class.
14279         (strlen_enter_block): Convert to method
14280         strlen_dom_walker::before_dom_children.
14281         (strlen_leave_block): Convert to method
14282         method strlen_dom_walker::after_dom_children.
14283         (tree_ssa_strlen): Adjust.
14284         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
14285         (tree_ssa_uncprop): Adjust.
14286         (uncprop_leave_block): Convert to method
14287         uncprop_dom_walker::after_dom_children.
14288         (uncprop_leave_block): Convert to method
14289         uncprop_dom_walker::before_dom_children.
14290
14291 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
14292
14293         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
14294         branch in same basic block.  Check both src and dest of the move insn.
14295
14296 2013-09-17  Nick Clifton  <nickc@redhat.com>
14297
14298         * config/rl78/rl78-real.md (bf): New pattern.
14299         (bt): New pattern.
14300         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
14301         (rl78_print_operand): Do not put a # before a %B.
14302         * config/rl78/rl78.opt: Tweak doc strings.
14303
14304 2013-09-17  DJ Delorie  <dj@redhat.com>
14305
14306         * config/rl78/constraints.md (Wcv): Allow up to $r31.
14307         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
14308         (rl78_option_override): Likewise, if -mallregs.
14309         (is_virtual_register): Likewise.
14310         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
14311         (REGNO_OK_FOR_BASE_P): Likewise.
14312         * config/rl78/rl78.opt (-mallregs): New.
14313
14314 2013-09-17  Nick Clifton  <nickc@redhat.com>
14315
14316         * config/rl78/rl78.c (need_to_save): Change return type to bool.
14317         For interrupt functions: save all call clobbered registers if the
14318         interrupt handler is not a leaf function.
14319         (rl78_expand_prologue): Always recompute the frame information.
14320         For interrupt functions: only select bank 0 if one of the bank 0
14321         registers is going to be psuhed.
14322
14323 2013-09-17  DJ Delorie  <dj@redhat.com>
14324
14325         * config/rl78/constraints.md: For each W* constraint, rename to C*
14326         and create a W* constraint that checks for an optional ES: prefix
14327         pattern also.
14328         * config/rl78/rl78.md (UNS_ES_ADDR): New.
14329         (es_addr): New.  Used to wrap far addresses.
14330         * config/rl78/rl78-protos.h (rl78_es_addr): New.
14331         (rl78_es_base): New.
14332         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
14333         wrapped far addresses.
14334         (rl78_print_operand_1): Unwrap far addresses before processing.
14335         (rl78_lo16): Wrap far addresses in unspecs.
14336         (rl78_es_addr): New.
14337         (rl78_es_base): New.
14338         (insn_ok_now): Check for not-yet-wrapped far addresses.
14339         (transcode_memory_rtx): Properly re-wrap far addresses.
14340
14341 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14342
14343         * config/sparc/t-rtems: Add leon3 multilibs.
14344
14345 2013-09-17  Cong Hou  <congh@google.com>
14346
14347         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
14348         when checking the dot production pattern. The type of rhs operand
14349         of multiply is now checked correctly.
14350
14351 2013-09-17  Jeff Law  <law@redhat.com>
14352
14353         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14354         edge implied equivalences into successor phis.
14355         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
14356         here from tree-ssa-threadedge.c.
14357         (mark_threaded_blocks): When threading through a joiner, if both
14358         successors of the joiner's clone reach the same block, verify the
14359         PHI arguments are equal.  If not, cancel the jump threading request.
14360         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
14361         tree-ssa-threadupdate.c
14362         (thread_across_edge): Don't check PHI argument equality when
14363         threading through joiner block here.
14364
14365 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
14366
14367         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
14368         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
14369         (warn_uninit, warn_uninitialized_vars,
14370         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14371         Move to tree-ssa-uninit.c.
14372         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
14373         (has_undefined_value_p): New.  Pass dependant parts of
14374         ssa_undefined_value_p.
14375         (uninit_undefined_value_p): Use has_undefined_value_p.
14376         (warn_uninit, warn_uninitialized_vars,
14377         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14378         Move from tree-ssa.c.
14379         * tree-ssa.h: Adjust prototypes.
14380
14381 2013-09-17  Jan Hubicka  <jh@suse.cz>
14382
14383         PR middle-end/58332
14384         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
14385         * ipa-inline.c (can_inline_edge_p): Do not downgrade
14386         FUNCTION_NOT_OPTIMIZED.
14387         * ipa-inline-analysis.c (compute_inline_parameters): Function
14388         not optimized is not inlinable unless it is alwaysinline.
14389         (inline_analyze_function): Force calls in not optimized
14390         function not inlinable.
14391
14392 2013-09-17  Jan Hubicka  <jh@suse.cz>
14393
14394         PR middle-end/58329
14395         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
14396         to return NULL.
14397         * ipa.c (function_and_variable_visibility): Likewise.
14398         * ipa-profile.c (ipa_profile): Likewise.
14399
14400 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14401
14402         PR ipa/58398
14403         * cgraph.c (cgraph_function_body_availability): Check for ifunc
14404         attribute, and don't inline the resolver in this case.
14405
14406 2013-09-17  Teresa Johnson  <tejohnson@google.com>
14407
14408         * coverage.c (get_coverage_counts): Add missing newline.
14409
14410 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14411
14412         PR tree-optimization/58088
14413         * fold-const.c (mask_with_trailing_zeros): New function.
14414         (fold_binary_loc): Make sure we don't recurse infinitely
14415         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
14416         Use mask_with_trailing_zeros where appropriate.
14417
14418 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
14419
14420         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
14421         of 'prev' var to get better distance estimation.
14422
14423 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14424
14425         * tree-inline.h (struct copy_body_data): Add transform_parameter.
14426         * tree-inline.c (is_parameter_of): New predicate.
14427         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
14428         a parameter has been remapped.
14429         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
14430         (optimize_inline_calls): Initialize transform_parameter.
14431         (copy_gimple_seq_and_replace_locals): Likewise.
14432         (tree_function_versioning): Likewise.
14433         (maybe_inline_call_in_expr): Likewise.
14434
14435 2013-09-17  Nick Clifton  <nickc@redhat.com>
14436
14437         * config/msp430/msp430-protos.h: Add prototypes for new functions.
14438         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
14439         interrupt handlers.
14440         (is_attr_func): New function.
14441         (msp430_is_interrupt_func): New function.
14442         (is_naked_func): New function.
14443         (is_reentrant_func): New function.
14444         (is_critical_func): New function.
14445         (msp430_start_function): Add annotations for function attributes.
14446         (msp430_attr): New function.
14447         (msp430_attribute_table): New.
14448         (msp430_function_section): New function.
14449         (TARGET_ASM_FUNCTION_SECTION): Define.
14450         (msp430_builtin): New enum.
14451         (msp430_init_builtins): New function.
14452         (msp430_builtin_devl): New function.
14453         (msp430_expand_builtin): New function.
14454         (TARGET_INIT_BUILTINS): Define.
14455         (TARGET_EXPAND_BUILTINS): Define.
14456         (TARGET_BUILTIN_DECL): Define.
14457         (msp430_expand_prologue): Add support for naked, interrupt,
14458         critical and reentrant functions.
14459         (msp430_expand_epilogue): Likewise.
14460         (msp430_print_operand): Handle 'O' character.
14461         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
14462         NO_TRAMPOLINES.
14463         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
14464         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
14465         (pushm): Use a 'n' rather than an 'i' constraint.
14466         (msp_return): Add generation of the interrupt return instruction.
14467         (disable_interrupts): New pattern.
14468         (enable_interrupts): New pattern.
14469         (push_intr_state): New pattern.
14470         (pop_intr_state): New pattern.
14471         (bic_SR): New pattern.
14472         (bis_SR): New pattern.
14473         * doc/extend.texi: Document MSP430 function attributes and builtin
14474         functions.
14475
14476 2013-09-17  Richard Biener  <rguenther@suse.de>
14477
14478         PR tree-optimization/58432
14479         * tree-loop-distribution.c (tree_loop_distribution): Also
14480         scan PHIs for outside loop uses and seed a partition from them.
14481
14482 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
14483
14484         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
14485         (restructure_reference): Call backtrace_base_for_ref.
14486
14487 2013-09-17  Alan Modra  <amodra@gmail.com>
14488
14489         PR target/57589
14490         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
14491         patch.
14492
14493 2013-09-16  DJ Delorie  <dj@redhat.com>
14494
14495         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
14496         vregs location for RL78/G10.
14497         (rl78_expand_prologue): Avoid SEL on G10.
14498         (rl78_expand_epilogue): Likewise.
14499         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
14500         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14501         __RL78_G10__ when appropriate.
14502         (ASM_SPEC): Pass -mg10 along to the assembler.
14503         * config/rl78/rl78.md (sel_rb): Disable for G10.
14504         * config/rl78/rl78.opt: Add -mg10 option.
14505         * config/rl78/t-rl78: Add -mg10 multilib.
14506
14507 2013-09-16  Xinliang David Li  <davidxl@google.com>
14508
14509         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
14510         * omp-low.c (omp_max_vf): Ditto.
14511         (expand_omp_simd): Ditto.
14512         * tree-vectorizer.c (vectorize_loops): Ditto.
14513         (gate_vect_slp): Ditto.
14514         (gate_increase_alignment): Ditto.
14515         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
14516         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
14517         (gate_tree_vectorize): Name change.
14518         (tree_vectorize): Ditto.
14519         (pass_vectorize::gate): Call new function.
14520         (pass_vectorize::execute): Ditto.
14521         * opts.c: O3 default setting change.
14522         (finish_options): Check new flag.
14523         * doc/invoke.texi: Document new flags.
14524         * common.opt: New flags.
14525
14526 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
14527
14528         * doc/tm.texi.in (Cond Exec Macros): Remove node.
14529         (Condition Code): Don't reference it.
14530         * doc/tm.texi: Regenerate.
14531
14532 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
14533
14534         PR middle-end/58418
14535         * lra-constraints.c (undo_optional_reloads): Consider all optional
14536         reload even if it did not get a hard reg.
14537
14538 2013-09-16  Teresa Johnson  <tejohnson@google.com>
14539
14540         * dumpfile.c (dump_loc): Remove newline emission.
14541         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
14542         emission to dump_printf_loc calls where missing.
14543         (vect_mark_for_runtime_alias_test): Ditto.
14544         (vect_analyze_data_ref_dependence): Ditto.
14545         (vect_analyze_data_ref_dependences): Ditto.
14546         (vect_slp_analyze_data_ref_dependence): Ditto.
14547         (vect_slp_analyze_data_ref_dependences): Ditto.
14548         (vect_compute_data_ref_alignment): Ditto.
14549         (vect_update_misalignment_for_peel): Ditto.
14550         (vect_verify_datarefs_alignment): Ditto.
14551         (vector_alignment_reachable_p): Ditto.
14552         (vect_get_data_access_cost): Ditto.
14553         (vect_enhance_data_refs_alignment): Ditto.
14554         (vect_find_same_alignment_drs): Ditto.
14555         (vect_analyze_data_refs_alignment): Ditto.
14556         (vect_analyze_group_access): Ditto.
14557         (vect_analyze_data_ref_access): Ditto.
14558         (vect_analyze_data_ref_accesses): Ditto.
14559         (vect_prune_runtime_alias_test_list): Ditto.
14560         (vect_analyze_data_refs): Ditto.
14561         (vect_create_addr_base_for_vector_ref): Ditto.
14562         (vect_create_data_ref_ptr): Ditto.
14563         (vect_grouped_store_supported): Ditto.
14564         (vect_grouped_load_supported): Ditto.
14565         * value-prof.c (check_counter): Ditto.
14566         (check_ic_target): Ditto.
14567         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
14568         (vect_recog_widen_mult_pattern): Ditto.
14569         (vect_recog_widen_sum_pattern): Ditto.
14570         (vect_recog_over_widening_pattern): Ditto.
14571         (vect_recog_widen_shift_pattern): Ditto.
14572         (vect_recog_rotate_pattern): Ditto.
14573         (vect_recog_vector_vector_shift_pattern): Ditto.
14574         (vect_recog_divmod_pattern): Ditto.
14575         (vect_recog_mixed_size_cond_pattern): Ditto.
14576         (vect_recog_bool_pattern): Ditto.
14577         (vect_pattern_recog_1): Ditto.
14578         (vect_pattern_recog): Ditto.
14579         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
14580         (vect_is_simple_iv_evolution): Ditto.
14581         (vect_analyze_scalar_cycles_1): Ditto.
14582         (vect_get_loop_niters): Ditto.
14583         (vect_analyze_loop_1): Ditto.
14584         (vect_analyze_loop_form): Ditto.
14585         (vect_analyze_loop_operations): Ditto.
14586         (vect_analyze_loop_2): Ditto.
14587         (vect_analyze_loop): Ditto.
14588         (report_vect_op): Ditto.
14589         (vect_is_slp_reduction): Ditto.
14590         (vect_is_simple_reduction_1): Ditto.
14591         (vect_get_known_peeling_cost): Ditto.
14592         (vect_estimate_min_profitable_iters): Ditto.
14593         (vect_model_reduction_cost): Ditto.
14594         (vect_model_induction_cost): Ditto.
14595         (get_initial_def_for_induction): Ditto.
14596         (vect_create_epilog_for_reduction): Ditto.
14597         (vectorizable_reduction): Ditto.
14598         (vectorizable_induction): Ditto.
14599         (vectorizable_live_operation): Ditto.
14600         (vect_loop_kill_debug_uses): Ditto.
14601         (vect_transform_loop): Ditto.
14602         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
14603         (vect_stmt_relevant_p): Ditto.
14604         (process_use): Ditto.
14605         (vect_mark_stmts_to_be_vectorized): Ditto.
14606         (vect_model_simple_cost): Ditto.
14607         (vect_model_promotion_demotion_cost): Ditto.
14608         (vect_model_store_cost): Ditto.
14609         (vect_get_store_cost): Ditto.
14610         (vect_model_load_cost): Ditto.
14611         (vect_get_load_cost): Ditto.
14612         (vect_init_vector_1): Ditto.
14613         (vect_get_vec_def_for_operand): Ditto.
14614         (vect_finish_stmt_generation): Ditto.
14615         (vectorizable_call): Ditto.
14616         (vectorizable_conversion): Ditto.
14617         (vectorizable_assignment): Ditto.
14618         (vectorizable_shift): Ditto.
14619         (vectorizable_operation): Ditto.
14620         (vectorizable_store): Ditto.
14621         (vectorizable_load): Ditto.
14622         (vectorizable_condition): Ditto.
14623         (vect_analyze_stmt): Ditto.
14624         (vect_transform_stmt): Ditto.
14625         (vect_is_simple_use): Ditto.
14626         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
14627         (vect_can_advance_ivs_p): Ditto.
14628         (vect_update_ivs_after_vectorizer): Ditto.
14629         (vect_do_peeling_for_loop_bound): Ditto.
14630         (vect_gen_niters_for_prolog_loop): Ditto.
14631         (vect_update_inits_of_drs): Ditto.
14632         (vect_create_cond_for_alias_checks): Ditto.
14633         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
14634         (vect_build_slp_tree_1): Ditto.
14635         (vect_supported_load_permutation_p): Ditto.
14636         (vect_analyze_slp_instance): Ditto.
14637         (vect_analyze_slp): Ditto.
14638         (vect_make_slp_decision): Ditto.
14639         (vect_detect_hybrid_slp): Ditto.
14640         (vect_bb_vectorization_profitable_p): Ditto.
14641         (vect_slp_analyze_bb_1): Ditto.
14642         (vect_update_slp_costs_according_to_vf): Ditto.
14643         (vect_get_mask_element): Ditto.
14644         (vect_transform_slp_perm_load): Ditto.
14645         (vect_schedule_slp_instance): Ditto.
14646         (vect_schedule_slp): Ditto.
14647         (vect_slp_transform_bb): Ditto.
14648         * profile.c (read_profile_edge_counts): Ditto.
14649         (compute_branch_probabilities): Ditto.
14650         * coverage.c (get_coverage_counts): Ditto.
14651
14652 2013-09-16  Diego Novillo  <dnovillo@google.com>
14653
14654         * tree-core.h: Add missing comment lines from refactoring of tree.h.
14655
14656 2013-09-16  Jan Hubicka  <jh@suse.cz>
14657
14658         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
14659         abstract functions; for static functions check the presence of body.
14660
14661 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14662
14663         * config/aarch64/aarch64-simd-builtins.def (fma): New.
14664         * config/aarch64/aarch64-simd.md
14665         (aarch64_mla_elt<mode>): New.
14666         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
14667         (aarch64_mls_elt<mode>): Likewise.
14668         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
14669         (aarch64_fma4_elt<mode>): Likewise.
14670         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
14671         (aarch64_fma4_elt_to_128v2df): Likewise.
14672         (aarch64_fma4_elt_to_64df): Likewise.
14673         (fnma<mode>4): Likewise.
14674         (aarch64_fnma4_elt<mode>): Likewise.
14675         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
14676         (aarch64_fnma4_elt_to_128v2df): Likewise.
14677         (aarch64_fnma4_elt_to_64df): Likewise.
14678         * config/aarch64/iterators.md (VDQSF): New.
14679         * config/aarch64/arm_neon.h
14680         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
14681         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
14682
14683 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14684
14685         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
14686         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
14687         (aarch64_mul3_elt_to_128df): Likewise.
14688         (aarch64_mul3_elt_to_64v2df): Likewise.
14689         * config/aarch64/iterators.md (VEL): Also handle DFmode.
14690         (VMUL): New.
14691         (VMUL_CHANGE_NLANES) Likewise.
14692         (h_con): Likewise.
14693         (f): Likewise.
14694         * config/aarch64/arm_neon.h
14695         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
14696
14697 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14698
14699         * config/aarch64/arm_neon.h
14700         (vcvtx_high_f32_f64): Fix parameters.
14701
14702 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14703             Uros Bizjak  <ubizjak@gmail.com>
14704
14705         * config/alpha.c: Include tree-ssanames.h.
14706
14707 2013-09-16  Richard Biener  <rguenther@suse.de>
14708
14709         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
14710         (dot_rdg_1): Handle control_dd.
14711         (create_edge_for_control_dependence): New function.
14712         (create_rdg_edges): Add control dependences if asked for.
14713         (build_rdg): Likewise.
14714         (generate_loops_for_partition): If there are not necessary
14715         control stmts remove all their dependencies.
14716         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
14717         (distribute_loop): Pass on control dependences.
14718         (tree_loop_distribution): Compute control dependences and remove
14719         restriction on number of loop nodes.
14720
14721 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
14722
14723         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
14724         for internal calls.
14725
14726 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
14727
14728         * cse.c (try_const_anchors): Punt on CC modes.
14729
14730 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14731
14732         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
14733
14734 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
14735
14736         PR target/58382
14737         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
14738         calls to word_mode.
14739
14740 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
14741
14742         PR target/48094
14743         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
14744         seen.
14745         (darwin_objc1_section): Likewise.
14746         (darwin_file_end): Emit Image Info section when required.
14747
14748 2013-09-14  Jan Hubicka  <jh@suse.cz>
14749
14750         * tree-into-ssa.c (gate_into_ssa): New.
14751         (pass_data_build_ssa): Use it.
14752         * cgraph.h (expand_thunk): Update prototype.
14753         * cgraphunit.c (analyze_function): Expand thunks early.
14754         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
14755         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
14756         set lowered flag; do not add new function.
14757         (assemble_thunks_and_aliases): Update.
14758         * tree-ssa.c (gate_init_datastructures): New gate.
14759         (pass_data_init_datastructures): Use it.
14760
14761 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
14762
14763         PR target/58269
14764         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
14765         xmm register set described in the psABI.
14766
14767 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
14768
14769         * dwarf2out.c (should_emit_struct_debug): Add check
14770         for type_decl variable is not NULL.
14771
14772 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
14773
14774         * config.gcc: Use new winnt-c.c target hooks
14775         * config/t-winnt: New file
14776         * config/winnt-c.c: New file
14777         * doc/tm.texi.in: Document new hook
14778         * doc/tm.texi: Regenerated
14779
14780 2013-09-13  Jan Hubicka  <jh@suse.cz>
14781
14782         PR middle-end/58094
14783         * ipa-inline.c (check_callers): New function.
14784         (check_caller_edge): Remove.
14785         (want_inline_function_to_all_callers_p): Also permit alises that are
14786         called dirrectly.
14787         (inline_to_all_callers): Terminate the walk when devirtualization
14788         introduce new calls.
14789
14790 2013-09-13  Jan Hubicka  <jh@suse.cz>
14791
14792         * ipa-inline-analysis.c (struct growth_data): Add node.
14793         (do_estimate_growth_1): Fix detection of recursion.
14794
14795 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
14796
14797         PR tree-optimization/58392
14798         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
14799         to avoid shadowing of outer loop variable.  If
14800         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
14801         replace_by_duplicate_decl simduid of loops that have it set and
14802         set dest_cfun->has_simduid_loops and/or
14803         dest_cfun->has_force_vect_loops.
14804         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
14805         instead of maybe_lookup_decl.
14806         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
14807         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
14808         call.  Copy over force_vect and copy and remap simduid.  Set
14809         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
14810         (copy_cfg_body): Remove blocks_to_copy argument.  Use
14811         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
14812         caller.  Don't set cfun->has_simduid_loops and/or
14813         cfun->has_force_vect_loops here.
14814         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
14815         caller.
14816         (expand_call_inline, tree_function_versioning): Adjust copy_body
14817         callers.
14818
14819 2013-09-13  Martin Jambor  <mjambor@suse.cz>
14820
14821         PR bootstrap/58388
14822         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
14823         the assert if the edge was a speculative one.
14824
14825 2013-09-13  Richard Biener  <rguenther@suse.de>
14826
14827         * tree-data-ref.h (known_dependences_p): Move here ...
14828         * tree-loop-distribution.c (known_dependences_p): ... from here.
14829         (dump_rdg_component, debug_rdg_component): Remove.
14830         (dump_rdg): Adjust.
14831         (generate_loops_for_partition): Use gimple_uid instead of
14832         relying on matching stmt visit order.
14833         (rdg_build_partitions): Take starting stmt vector.
14834         (ldist_gen): Merge into ...
14835         (distribute_loop): ... this function.  Do not compute starting
14836         vertices vector.
14837         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
14838
14839 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14840
14841         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
14842         Set type attribute correctly. Set predicable_short_it attribute.
14843         (cmpsi_shiftsi): Remove %? from output template.
14844
14845 2013-09-13  Richard Biener  <rguenther@suse.de>
14846
14847         * tree-loop-distribution.c (struct rdg_component,
14848         rdg_defs_used_in_other_loops_p, free_rdg_components,
14849         rdg_build_components): Remove.
14850         (stmts_from_loop): Do not record virtual PHIs.
14851         (generate_loops_for_partition): Skip virtual PHIs.
14852         (build_rdg_partition_for_component): Rename to ...
14853         (build_rdg_partition_for_vertex): ... this and adjust.
14854         (rdg_build_partitions): Take a vector of starting vertices
14855         instead of components.  Remove unnecessary leftover handling.
14856         (ldist_gen): Do not build components or record other stores.
14857         (distribute_loop): Do not distribute loops containing stmts
14858         with side-effects.
14859
14860 2013-09-13  Christian Bruel  <christian.bruel@st.com>
14861
14862         PR target/58314
14863         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
14864
14865 2013-09-13  Kai Tietz  <ktietz@redhat.com>
14866
14867         * config.gcc: Separate cases for mingw and cygwin targets,
14868         and add 64-bit cygwin target case.
14869
14870         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
14871         dll-export inline-functions.
14872         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
14873
14874 2013-09-13  Jeff Law  <law@redhat.com>
14875
14876         PR middle-end/58387
14877         Revert:
14878         2013-09-06  Jeff Law  <law@redhat.com>
14879
14880         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14881         edge implied equivalences into successor phis.
14882
14883 2013-09-12  DJ Delorie  <dj@redhat.com>
14884
14885         * config/rl78/rl78-virt.md: Change from | to \; for asm line
14886         separators.
14887
14888 2013-09-12  Brooks Moses  <bmoses@google.com>
14889
14890         PR driver/42955
14891         * Makefile.in: Do not install driver binaries in $(target)/bin.
14892
14893 2013-09-12  DJ Delorie  <dj@redhat.com>
14894
14895         * config/rl78/rl78.opt (mrelax): New.
14896         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
14897         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
14898
14899         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
14900         between SP and FP.
14901         (rl78_expand_epilogue): Likewise.
14902
14903 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
14904
14905         PR middle-end/58335
14906         * lra-eliminations.c (remove_reg_equal_offset_note): New.
14907         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
14908         pointer elimination with using remove_reg_equal_offset_note.
14909
14910 2013-09-12  DJ Delorie  <dj@redhat.com>
14911
14912         * config/msp430/: New port.
14913         * config.gcc (msp430): Added.
14914         * doc/invoke.texi: Document MSP430 options.
14915         * doc/install.texi: Document msp430-elf
14916         * doc/md.texi: Document msp430-elf
14917         * doc/contrib.texi: Document msp430-elf
14918
14919         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
14920         PSImode.
14921
14922 2013-09-12  Martin Jambor  <mjambor@suse.cz>
14923
14924         PR ipa/58389
14925         * ipa-prop.c (remove_described_reference): Give up if the edge in the
14926         reference descriptor is NULL.
14927         (ipa_edge_removal_hook): If owning a reference descriptor, set its
14928         edge to NULL.
14929
14930 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
14931
14932         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
14933         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
14934         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
14935         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
14936         make_temp_ssa_name): move to tree-ssanames.h
14937         * tree-ssa-alias.h: Move prototype.
14938         * tree-ssa.h: Include tree-ssanames.h.
14939         * tree-ssanames.c (FREE_SSANAMES): Move to here.
14940         * tree-ssanames.h: New.  Move items from tree-flow*.h
14941         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
14942
14943 2013-09-12  Richard Biener  <rguenther@suse.de>
14944
14945         PR tree-optimization/58404
14946         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
14947         propagate non-invariant addresses into dereferences wrapped
14948         in component references.
14949
14950 2013-09-12  Richard Biener  <rguenther@suse.de>
14951
14952         PR tree-optimization/58402
14953         * passes.def: Move pass_late_warn_uninitialized later.
14954
14955 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
14956
14957         * tree-ssa.h: New.  Move content from tree-flow.h and
14958         tree-flow-inline.h.
14959         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
14960         Move prototypes belonging to tree-ssa.c.
14961         * tree-flow-inline.h (redirect_edge_var_map_def,
14962         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
14963         tree-ssa.h.
14964         * gimple.h: Adjust prototypes.
14965         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
14966         to...
14967         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
14968         * tree.h: Move prototype to tree-ssa.h.
14969         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
14970         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
14971         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
14972         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
14973         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
14974         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
14975         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
14976         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
14977         graphite-blocking.c, graphite-clast-to-gimple.c,
14978         graphite-dependences.c, graphite-interchange.c,
14979         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
14980         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
14981         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
14982         ipa-reference.c, ipa-split.c, ipa-utils.c,
14983         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
14984         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
14985         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
14986         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
14987         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
14988         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
14989         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
14990         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
14991         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
14992         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
14993         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
14994         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
14995         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
14996         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
14997         value-prof.c, var-tracking.c,
14998         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
14999
15000 2013-09-12  Richard Biener  <rguenther@suse.de>
15001
15002         PR tree-optimization/58396
15003         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
15004         (build_rdg): Take a loop-nest parameter, fix memleaks.
15005         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
15006
15007 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
15008
15009         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
15010         for SLM.
15011
15012 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
15013
15014         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
15015         The FMA instruction names should have a 'v' prefix.
15016
15017 2013-09-12  Richard Biener  <rguenther@suse.de>
15018
15019         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
15020         (dot_rdg): Use popen instead of system in optional code.
15021         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
15022         (already_processed_vertex_p): Adjust.
15023         (has_anti_or_output_dependence, predecessor_has_mem_write,
15024         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
15025         rdg_flag_uses): Remove.
15026         (rdg_flag_vertex): Simplify.
15027         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
15028         remove recursion.
15029         (build_rdg_partition_for_component): Process the first vertex
15030         of a component only.
15031         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
15032
15033 2013-09-12  Alan Modra  <amodra@gmail.com>
15034
15035         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
15036
15037 2013-09-11  DJ Delorie  <dj@redhat.com>
15038             Nick Clifton  <nickc@redhat.com>
15039
15040         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
15041         (rl78_stack_based_mem): New.
15042         * config/rl78/constraints.md (Iv08): New.
15043         (Iv16): New.
15044         (Iv24): New.
15045         (Is09): New.
15046         (Is17): New.
15047         (Is25): New.
15048         (ISsi): New.
15049         (IShi): New.
15050         (ISqi): New.
15051         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
15052         (movhi): Likewise.
15053         (movsi): Change from expand to insn-and-split.
15054         (ashrsi3): Clobber AX.
15055         (lshrsi3): New.
15056         (ashlsi3): New.
15057         (cbranchsi4): New.
15058         * config/rl78/rl78.md (CC_REG): Fix.
15059         (addsi3): Allow memory and immediate operands.
15060         (addsi3_internal): Split into...
15061         (addsi3_internal_virt): ...new, and ...
15062         (addsi3_internal_real): ...new.
15063         (subsi): New.
15064         (subsi3_internal_virt): New.
15065         (subsi3_internal_real): New.
15066         (mulsi3): Add memory operand.
15067         (mulsi3_rl78): Likewise.
15068         (mulsi3_g13): Likewise.
15069         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
15070         (cbranchqi4_real): Add more constraint options.
15071         (cbranchhi4_real): Expand pattern.
15072         (cbranchhi4_real_signed): New.
15073         (cbranchhi4_real_inverted): New.
15074         (cbranchsi4_real_lt): New.
15075         (cbranchsi4_real_ge): New.
15076         (cbranchsi4_real_signed): New.
15077         (cbranchsi4_real): New.
15078         (peephole2): New.
15079         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
15080         constant shifts.
15081         (lshrsi3_virt): Likewise.
15082         (ashlsi3_virt): Likewise.
15083         (cbranchqi4_virt_signed): New.
15084         (cbranchhi4_virt_signed): New.
15085         (cbranchsi4_virt): New.
15086         * config/rl78/rl78.c: Whitespace fixes throughout.
15087         (move_elim_pass): New.
15088         (pass_data_rl78_move_elim): New.
15089         (pass_rl78_move_elim): New.
15090         (make_pass_rl78_move_elim): New.
15091         (rl78_devirt_info): Run devirt earlier.
15092         (rl78_move_elim_info): New.
15093         (rl78_asm_file_start): Register it.
15094         (rl78_split_movsi): New.
15095         (rl78_as_legitimate_address): Allow virtual base registers when
15096         appropriate.
15097         (rl78_addr_space_convert): Remove spurious debug stuff.
15098         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
15099         (rl78_print_operand): More cases for not printing '#'.
15100         (rl78_expand_compare): Remove most of the logic.
15101         (content_memory): New.
15102         (clear_content_memory): New.
15103         (get_content_index): New.
15104         (get_content_name): New.
15105         (display_content_memory): New.
15106         (update_content): New.
15107         (record_content): New.
15108         (already_contains): New.
15109         (insn_ok_now): Re-recog insns with virtual registers.
15110         (add_postponed_content_update): New.
15111         (process_postponed_content_update): New.
15112         (gen_and_emit_move): New.
15113         (transcode_memory_rtx): Record new location content.
15114         Use gen_and_emit_move.
15115         (force_into_acc): New.
15116         (move_to_acc): Use gen_and_emit_move.
15117         (move_from_acc): Likewise.
15118         (move_acc_to_reg): Likewise.
15119         (move_to_x): Likewise.
15120         (move_to_hl): Likewise.
15121         (move_to_de): Likewise.
15122         (rl78_alloc_physical_registers_op1): Record location content.
15123         (has_constraint): New.
15124         (rl78_alloc_physical_registers_op2): Record location content.
15125         Optimize use of HL.
15126         (rl78_alloc_physical_registers_ro1): Likewise.
15127         (rl78_alloc_physical_registers_cmp): Likewise.
15128         (rl78_alloc_physical_registers_umul): Likewise.
15129         (rl78_alloc_address_registers_macax): New.
15130         (rl78_alloc_physical_registers): Initialize and set location
15131         content memory as needed.
15132         (rl78_reorg): Make sure split2 is called.
15133         (rl78_rtx_costs): New.
15134
15135 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
15136
15137         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
15138         for (not (neg ...)) and (neg (not ...)) cases.
15139
15140 2013-09-11  Richard Biener  <rguenther@suse.de>
15141
15142         PR middle-end/58377
15143         * passes.def: Split critical edges before late uninit warning passes.
15144         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
15145
15146 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
15147
15148         PR tree-optimization/58385
15149         * fold-const.c (build_range_check): If both low and high are NULL,
15150         use omit_one_operand_loc to preserve exp side-effects.
15151
15152 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15153
15154         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
15155
15156 2013-09-11  Richard Biener  <rguenther@suse.de>
15157
15158         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
15159         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
15160         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
15161         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
15162         stmts_from_loop, known_dependences_p, build_empty_rdg,
15163         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
15164         * tree-loop-distribution.c: ... here.
15165         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
15166         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
15167         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
15168         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
15169         * tree-loop-distribution.c: ... here.
15170         * tree-loop-distribution.c: Include gimple-pretty-print.h.
15171         (struct partition_s): Add loops member.
15172         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
15173         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
15174         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
15175
15176 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15177             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15178             Sergey Lega  <sergey.s.lega@intel.com>
15179             Anna Tikhonova  <anna.tikhonova@intel.com>
15180             Ilya Tocar  <ilya.tocar@intel.com>
15181             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15182             Ilya Verbin  <ilya.verbin@intel.com>
15183             Kirill Yukhin  <kirill.yukhin@intel.com>
15184             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15185
15186         * config/i386/constraints.md (k): New.
15187         (Yk): Ditto.
15188         * config/i386/i386.c (const regclass_map): Add new mask registers.
15189         (dbx_register_map): Ditto.
15190         (dbx64_register_map): Ditto.
15191         (svr4_dbx_register_map): Ditto.
15192         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
15193         disabled.
15194         (ix86_preferred_reload_class): Disable constants for mask registers.
15195         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
15196         (ix86_hard_regno_mode_ok): Support new mask registers.
15197         (x86_order_regs_for_local_alloc): Ditto.
15198         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
15199         (FIXED_REGISTERS): Add new mask registers.
15200         (CALL_USED_REGISTERS): Ditto.
15201         (REG_ALLOC_ORDER): Ditto.
15202         (VALID_MASK_REG_MODE): New.
15203         (FIRST_MASK_REG): Ditto.
15204         (LAST_MASK_REG): Ditto.
15205         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
15206         (MAYBE_MASK_CLASS_P): New.
15207         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
15208         (REG_CLASS_CONTENTS): Ditto.
15209         (MASK_REGNO_P): New.
15210         (ANY_MASK_REG_P): Ditto.
15211         (HI_REGISTER_NAMES): Add new mask registers.
15212         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
15213         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
15214         mask registers.
15215         (attribute "type"): Add mskmov, msklog.
15216         (attribute "length_immediate"): Support them.
15217         (attribute "memory"): Ditto.
15218         (attribute "prefix_0f"): Ditto.
15219         (*movhi_internal): Support new mask registers.
15220         (*movqi_internal): Ditto.
15221         (define_split): Split out clobber pattern is a logic
15222         insn on mask registers.
15223         (*k<logic><mode>): New.
15224         (*andhi_1): Extend to support mask regs.
15225         (*andqi_1): Extend to support mask regs.
15226         (kandn<mode>): New.
15227         (define_split): Split and-not to and and not if operands
15228         are not mask regs.
15229         (*<code><mode>_1): Separate HI mode to new pattern...
15230         (*<code>hi_1): This.
15231         (*<code>qi_1): Extend to support mask regs.
15232         (kxnor<mode>): New.
15233         (kortestzhi): Ditto.
15234         (kortestchi): Ditto.
15235         (kunpckhi): Ditto.
15236         (*one_cmpl<mode>2_1): Remove HImode and handle it...
15237         (*one_cmplhi2_1): ...Here, now with mask registers support.
15238         (*one_cmplqi2_1): Support new mask registers.
15239         (HI/QImode arithmetics splitter): Don't split if mask registers
15240         are used.
15241         (HI/QImode not splitter): Ditto.
15242         * config/i386/predicated.md (mask_reg_operand): New.
15243         (general_reg_operand): Ditto.
15244
15245 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15246
15247         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
15248         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
15249
15250 2013-09-10  Jeff Law  <law@redhat.com>
15251
15252         PR tree-optimization/58380
15253         * tree-ssa-threadupdate.c (thread_block): Recognize another case
15254         of threading through a buried loop header.
15255
15256         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
15257         return value for single successor case.
15258
15259 2013-09-10  Jan Hubicka  <jh@suse.cz>
15260
15261         * ipa-devirt.c (ipa_devirt): Enable with LTO.
15262
15263 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
15264
15265         PR target/58361
15266         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
15267         support conditional execution.
15268         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
15269
15270 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
15271
15272         * lra.c (lra): Clear lra_optional_reload_pseudos before every
15273         constraint pass.
15274         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
15275         Check destination too to check move insn.
15276         (undo_optional_reloads): Add check that the original peudo did not
15277         changed its allocation and the optional reload was inherited on last
15278         inheritance pass.  Break loop after deciding to keep optional reload.
15279         (lra_undo_inheritance): Add check that inherited pseudo still in
15280         memory.
15281
15282 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
15283
15284         * config/aarch64/aarch64.md (generic_sched): New.
15285         * config/aarch64/aarch64-generic.md (load): Make conditional
15286         on generic_sched attribute.
15287         (nonload): Likewise.
15288
15289 2013-09-10  Jan Hubicka  <jh@suse.cz>
15290
15291         * lto-cgraph.c: Include ipa-utils.h.
15292         (compute_ltrans_boundary): Also add possible targets into the boundary.
15293
15294 2013-09-10  Jan Hubicka  <jh@suse.cz>
15295
15296         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
15297         VAR_DECL of vtable rather than full expression.
15298
15299 2013-09-10  Jan Hubicka  <jh@suse.cz>
15300             Paolo Carlini  <paolo.carlini@oracle.com>
15301
15302         * cgraphunit.c (analyze_functions): Save input_location, set it
15303         to UNKNOWN_LOCATION and restore it at the end.
15304
15305 2013-09-10  Martin Jambor  <mjambor@suse.cz>
15306
15307         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
15308         represented by a thunk.
15309
15310 2013-09-10  Jeff Law  <law@redhat.com>
15311
15312         PR tree-optimization/58343
15313         * tree-ssa-threadupdate.c (thread_block): Identify and disable
15314         jump threading requests through loop headers buried in the middle
15315         of a jump threading path.
15316
15317         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
15318         in return value/type.
15319
15320 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
15321
15322         PR rtl-optimization/58365
15323         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
15324         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
15325         it differs.
15326
15327 2013-09-10  Richard Biener  <rguenther@suse.de>
15328
15329         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
15330         * tree-data-ref.c (create_rdg_vertices): Collect all data
15331         references, signal failure to the caller, use data-ref API.
15332         (build_rdg): Compute data references only once.  Maintain lifetime
15333         of data references and data dependences from within RDG.
15334         (free_rdg): Free dependence relations.
15335         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
15336         inventing extra dependences.
15337         (distribute_loop): Update for RDG API changes.
15338
15339 2013-09-10  Kai Tietz  <ktietz@redhat.com>
15340
15341         * doc/invoke.texi (fms-extensions): Document changed
15342         behavior for ms-abi targets.
15343         * config/i386/i386.c (ix86_option_override_internal):
15344         Set default value of option -fms-extension for ms-abi targets.
15345
15346 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15347
15348         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
15349
15350 2013-09-10  Alan Modra  <amodra@gmail.com>
15351
15352         PR target/58330
15353         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
15354
15355 2013-09-10  Alan Modra  <amodra@gmail.com>
15356
15357         * config/rs6000/predicates.md (add_cint_operand): New.
15358         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
15359         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
15360         using add_cint_operand.
15361         (largetoc_high_plus_aix): Likewise.
15362
15363 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
15364
15365         PR tree-optimization/58364
15366         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
15367         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
15368         the current range can't be an unconditional true or false.
15369
15370 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
15371
15372         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
15373
15374 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
15375
15376         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
15377
15378 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
15379
15380         PR c++/43452
15381         * doc/invoke.texi (-Wdelete-incomplete): Document it.
15382
15383 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
15384
15385         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
15386         NO_REGS for immediate that can't be moved directly into FP_REGS.
15387
15388 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15389
15390         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
15391         comparison with negated operand.
15392         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
15393         RTL form.
15394
15395 2013-09-09  Richard Biener  <rguenther@suse.de>
15396
15397         PR middle-end/58326
15398         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
15399         of a subloop record all its block as affecting loop-closed SSA form.
15400
15401 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15402
15403         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
15404         of an rtx/bitpos pair.
15405         (store_fixed_bit_field): Update accordingly.
15406
15407 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15408
15409         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
15410         GEN_INT.
15411         * builtins.c (expand_errno_check): Likewise.
15412         * dwarf2cfi.c (init_return_column_size): Likewise.
15413         * except.c (sjlj_mark_call_sites): Likewise.
15414         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15415         * lra-constraints.c (emit_inc): Likewise.
15416         * ree.c (combine_set_extension): Likewise.
15417         * regmove.c (fixup_match_2): Likewise.
15418         * reload1.c (inc_for_reload): Likewise.
15419
15420 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15421
15422         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
15423         (force_to_mode, simplify_shift_const_1, simplify_comparison):
15424         Use gen_int_mode with the mode of the associated simplify_* call.
15425         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
15426         * expmed.c (expand_shift_1): Likewise.
15427         * function.c (instantiate_virtual_regs_in_insn): Likewise.
15428         * loop-iv.c (iv_number_of_iterations): Likewise.
15429         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15430         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15431
15432 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15433
15434         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
15435         of the associated expand_* call.
15436         (asan_emit_stack_protection): Likewise.
15437         * builtins.c (round_trampoline_addr): Likewise.
15438         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
15439         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
15440         (emit_store_flag): Likewise.
15441         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
15442         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
15443         Likewise.
15444         * function.c (instantiate_virtual_regs_in_insn): Likewise.
15445         * ifcvt.c (noce_try_store_flag_constants): Likewise.
15446         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15447         * modulo-sched.c (generate_prolog_epilog): Likewise.
15448         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
15449         (expand_ctz, expand_ffs, expand_unop): Likewise.
15450
15451 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15452
15453         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
15454         of the associated gen_rtx_* call.
15455         * caller-save.c (init_caller_save): Likewise.
15456         * combine.c (find_split_point, make_extraction): Likewise.
15457         (make_compound_operation): Likewise.
15458         * dwarf2out.c (mem_loc_descriptor): Likewise.
15459         * explow.c (plus_constant, probe_stack_range): Likewise.
15460         * expmed.c (expand_mult_const): Likewise.
15461         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
15462         * reload1.c (init_reload): Likewise.
15463         * valtrack.c (cleanup_auto_inc_dec): Likewise.
15464         * var-tracking.c (adjust_mems): Likewise.
15465         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
15466         rather than gen_rtx_fmt_ee.
15467
15468 2013-09-09  Jan Hubicka  <jh@suse.cz>
15469
15470         PR middle-end/58294
15471         * value-prof.c (gimple_ic): Copy also abnormal edges.
15472
15473 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15474
15475         * asan.c (asan_shadow_cst): Use gen_int_mode.
15476
15477 2013-09-08  Jan Hubicka  <jh@suse.cz>
15478
15479         * ipa-profile.c: Add toplevel comment.
15480         (ipa_propagate_frequency_1): Be more conservative when profile is read.
15481         (contains_hot_call_p): New function.
15482         (ipa_propagate_frequency): Set frequencies based on counts when
15483         profile is read.
15484         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
15485         profile; do not tamper with profile after inlining if it is read.
15486
15487 2013-09-08  Jan Hubicka  <jh@suse.cz>
15488
15489         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
15490         speculative edges.
15491
15492 2013-09-08  Jan Hubicka  <jh@suse.cz>
15493
15494         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
15495         summary generation.
15496
15497 2013-09-08  Jeff Law  <law@redhat.com>
15498
15499         PR bootstrap/58340
15500         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
15501         of 'found'.
15502
15503 2013-09-08  Andi Kleen  <ak@linux.intel.com>
15504
15505         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
15506
15507 2013-09-08  Jan Hubicka  <jh@suse.cz>
15508
15509         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
15510
15511 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
15512
15513         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
15514         for non-debug insns.
15515         * lra.c (new_insn_reg): Take the containing insn as a parameter.
15516         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
15517         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
15518         accordingly.
15519
15520 2013-09-08  Jan Hubicka  <jh@suse.cz>
15521
15522         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
15523         targets and devirtualize to BUILT_IN_UNREACHABLE.
15524         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
15525         * ipa.c (walk_polymorphic_call_targets): New function.
15526         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
15527         functions; use the new timevar.
15528         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
15529         was removed from the program.
15530         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
15531         not consider it in the walk when its vtable is dead.
15532         (possible_polymorphic_call_targets_1): Pass anonymous flag to
15533         record_binfo.
15534         (devirt_variable_node_removal_hook): New function.
15535         (possible_polymorphic_call_targets): Also register
15536         devirt_variable_node_removal_hook.
15537         (ipa_devirt): Do not do non-speculative devirtualization.
15538         (gate_ipa_devirt): One execute if devirtualizing speculatively.
15539
15540 2013-09-08  Jan Hubicka  <jh@suse.cz>
15541
15542         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
15543         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
15544         varpool_remove_variable_insertion_hook): Declare.
15545         * varpool.c (varpool_node_hook_list): New structure.
15546         (first_varpool_node_removal_hook,
15547         first_varpool_variable_insertion_hook): New variables.
15548         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
15549         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
15550         varpool_remove_variable_insertion_hook,
15551         varpool_call_variable_insertion_hooks): New functions.
15552         (varpool_remove_node): Use it.
15553
15554 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
15555
15556         PR c++/54941
15557         * diagnostic.c (diagnostic_build_prefix): When s.file is
15558         "<built-in>" don't output line and column numbers.
15559
15560 2013-09-06  Jan Hubicka  <jh@suse.cz>
15561
15562         * cgraphunit.c (expand_thunk): Get body before touching arguments.
15563         * lto-streamer-out.c: Stream thunks, too.
15564         * lto-streamer-in.c (input_function): Pop cfun here
15565         (lto_read_body): Instead of here.
15566
15567 2013-09-06  Caroline Tice  <cmtice@google.com>
15568
15569         * doc/install.texi: Add documentation for the --enable-vtable-verify
15570         and the --disable-libvtv configure options.
15571
15572 2013-09-06  Jeff Law  <law@redhat.com>
15573
15574         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15575         edge implied equivalences into successor phis.
15576
15577 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
15578
15579         * resource.c (mark_referenced_resources): Handle COND_EXEC.
15580
15581 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
15582
15583         * resource.c (mark_target_live_regs): Compute resources taking
15584         into account if a call is predicated or not.
15585
15586 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
15587
15588         * toplev.c (output_stack_usage): Be prepared for suffixes created by
15589         the compiler in the function names.
15590
15591 2013-09-06  Jan Hubicka  <jh@suse.cz>
15592
15593         PR middle-end/58094
15594         * ipa-inline.c (has_caller_p): New function.
15595         (want_inline_function_to_all_callers_p): Use it.
15596         (sum_callers, inline_to_all_callers): Break out from ...
15597         (ipa_inline): ... here.
15598
15599 2013-09-06  Jan Hubicka  <jh@suse.cz>
15600
15601         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
15602         only when AVX is enabled.
15603
15604 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15605
15606         * config/aarch64/aarch64.md
15607         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
15608         is fpsimd_<load/store>2.
15609         (load_pair<mode>): Likewise.
15610         (store_pair<mode>): Likewise.
15611
15612 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15613
15614         * config/arm/types.md (type): Add "mrs" type.
15615         * config/aarch64/aarch64.md
15616         (aarch64_load_tp_hard): Make type "mrs".
15617         * config/arm/arm.md
15618         (load_tp_hard): Make type "mrs".
15619         * config/arm/cortex-a15.md: Update with new attributes.
15620         * config/arm/cortex-a5.md: Update with new attributes.
15621         * config/arm/cortex-a53.md: Update with new attributes.
15622         * config/arm/cortex-a7.md: Update with new attributes.
15623         * config/arm/cortex-a8.md: Update with new attributes.
15624         * config/arm/cortex-a9.md: Update with new attributes.
15625         * config/arm/cortex-m4.md: Update with new attributes.
15626         * config/arm/cortex-r4.md: Update with new attributes.
15627         * config/arm/fa526.md: Update with new attributes.
15628         * config/arm/fa606te.md: Update with new attributes.
15629         * config/arm/fa626te.md: Update with new attributes.
15630         * config/arm/fa726te.md: Update with new attributes.
15631
15632 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15633
15634         * config/aarch64/aarch64.md
15635         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
15636         (*movtf_aarch64): Likewise.
15637         * config/arm/arm.md
15638         (thumb1_movdi_insn): Use "multiple" for type where more than one
15639         instruction is used for a move.
15640         (*arm32_movhf): Likewise.
15641         (*thumb_movdf_insn): Likewise.
15642
15643 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15644
15645         * config/arm/types.md (type): Rename fcpys to fmov.
15646         * config/arm/vfp.md
15647         (*arm_movsi_vfp): Rename type fcpys as fmov.
15648         (*thumb2_movsi_vfp): Likewise
15649         (*movhf_vfp_neon): Likewise
15650         (*movhf_vfp): Likewise
15651         (*movsf_vfp): Likewise
15652         (*thumb2_movsf_vfp): Likewise
15653         (*movsfcc_vfp): Likewise
15654         (*thumb2_movsfcc_vfp): Likewise
15655         * config/aarch64/aarch64-simd.md
15656         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
15657         * config/aarch64/aarch64.md
15658         (*movsi_aarch64): Replace type mov_reg with fmovs.
15659         (*movdi_aarch64): Likewise
15660         (*movsf_aarch64): Likewise
15661         (*movdf_aarch64): Likewise
15662         * config/arm/arm.c
15663         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
15664         * config/arm/iwmmxt.md
15665         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
15666         * config/arm/arm1020e.md: Update with new attributes.
15667         * config/arm/cortex-a15-neon.md: Update with new attributes.
15668         * config/arm/cortex-a5.md: Update with new attributes.
15669         * config/arm/cortex-a53.md: Update with new attributes.
15670         * config/arm/cortex-a7.md: Update with new attributes.
15671         * config/arm/cortex-a8-neon.md: Update with new attributes.
15672         * config/arm/cortex-a9.md: Update with new attributes.
15673         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15674         * config/arm/cortex-r4f.md: Update with new attributes.
15675         * config/arm/marvell-pj4.md: Update with new attributes.
15676         * config/arm/vfp11.md: Update with new attributes.
15677
15678 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15679
15680         * config/aarch64/aarch64.md
15681         (*madd<mode>): Fix type attribute.
15682         (*maddsi_uxtw): Likewise.
15683         (*msub<mode>): Likewise.
15684         (*msubsi_uxtw): Likewise.
15685         (<su_optab>maddsidi4): Likewise.
15686         (<su_optab>msubsidi4): Likewise.
15687
15688 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15689
15690         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
15691         * config/arm/arm.md (core_cycles): Remove fdiv.
15692         * config/arm/vfp.md:
15693         (*sqrtsf2_vfp): Update for attribute changes.
15694         (*sqrtdf2_vfp): Likewise.
15695         * config/aarch64/aarch64.md:
15696         (sqrt<mode>2): Update for attribute changes.
15697         * config/arm/arm1020e.md: Update with new attributes.
15698         * config/arm/cortex-a15-neon.md: Update with new attributes.
15699         * config/arm/cortex-a5.md: Update with new attributes.
15700         * config/arm/cortex-a53.md: Update with new attributes.
15701         * config/arm/cortex-a7.md: Update with new attributes.
15702         * config/arm/cortex-a8-neon.md: Update with new attributes.
15703         * config/arm/cortex-a9.md: Update with new attributes.
15704         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15705         * config/arm/cortex-r4f.md: Update with new attributes.
15706         * config/arm/marvell-pj4.md: Update with new attributes.
15707         * config/arm/vfp11.md: Update with new attributes.
15708
15709 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15710
15711         * config/arm/types.md
15712         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
15713         * config/aarch64/aarch64.md
15714         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
15715         new attributes.
15716         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
15717         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
15718         (float<GPI:mode><GPF:mode>2): Likewise.
15719         * config/arm/vfp.md
15720         (*truncsisf2_vfp): Update with new attributes.
15721         (*truncsidf2_vfp): Likewise.
15722         (fixuns_truncsfsi2): Likewise.
15723         (fixuns_truncdfsi2): Likewise.
15724         (*floatsisf2_vfp): Likewise.
15725         (*floatsidf2_vfp): Likewise.
15726         (floatunssisf2): Likewise.
15727         (floatunssidf2): Likewise.
15728         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
15729         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
15730         * config/arm/arm1020e.md: Update with new attributes.
15731         * config/arm/cortex-a15-neon.md: Update with new attributes.
15732         * config/arm/cortex-a5.md: Update with new attributes.
15733         * config/arm/cortex-a53.md: Update with new attributes.
15734         * config/arm/cortex-a7.md: Update with new attributes.
15735         * config/arm/cortex-a8-neon.md: Update with new attributes.
15736         * config/arm/cortex-a9.md: Update with new attributes.
15737         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15738         * config/arm/cortex-r4f.md: Update with new attributes.
15739         * config/arm/marvell-pj4.md: Update with new attributes.
15740         * config/arm/vfp11.md: Update with new attributes.
15741
15742 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15743
15744         * config/aarch64/arm_neon.h
15745         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
15746         (vqtbx<1,2,3,4><q>_s8): Likewise.
15747
15748 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15749
15750         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
15751         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
15752         (add<mode>3): Add type attribute.
15753         (add<mode>3): Likewise.
15754         (usadd<mode>3): Likewise.
15755         (ssadd<mode>3): Likewise.
15756         (sub<mode>3): Likewise.
15757         (sub<mode>3): Likewise.
15758         (ussub<mode>3): Likewise.
15759         (sssub<mode>3): Likewise.
15760         (ssmulsa3): Likewise.
15761         (usmulusa3): Likewise.
15762         (arm_usatsihi): Likewise.
15763         * config/arm/vfp.md
15764         (*movdi_vfp): Add types for all instructions.
15765         (*movdi_vfp_cortexa8): Likewise.
15766         (*movhf_vfp_neon): Likewise.
15767         (*movhf_vfp): Likewise.
15768         (*movdf_vfp): Likewise.
15769         (*thumb2_movdf_vfp): Likewise.
15770         (*thumb2_movdfcc_vfp): Likewise.
15771         * config/arm/arm.md: Add type attribute to all insn patterns.
15772         (*thumb1_adddi3): Add type attribute.
15773         (*arm_adddi3): Likewise.
15774         (*adddi_sesidi_di): Likewise.
15775         (*adddi_zesidi_di): Likewise.
15776         (*thumb1_addsi3): Likewise.
15777         (addsi3_compare0): Likewise.
15778         (*addsi3_compare0_scratch): Likewise.
15779         (*compare_negsi_si): Likewise.
15780         (cmpsi2_addneg): Likewise.
15781         (*addsi3_carryin_<optab>): Likewise.
15782         (*addsi3_carryin_alt2_<optab>): Likewise.
15783         (*addsi3_carryin_clobercc_<optab>): Likewise.
15784         (*subsi3_carryin): Likewise.
15785         (*subsi3_carryin_const): Likewise.
15786         (*subsi3_carryin_compare): Likewise.
15787         (*subsi3_carryin_compare_const): Likewise.
15788         (*arm_subdi3): Likewise.
15789         (*thumb_subdi3): Likewise.
15790         (*subdi_di_zesidi): Likewise.
15791         (*subdi_di_sesidi): Likewise.
15792         (*subdi_zesidi_di): Likewise.
15793         (*subdi_sesidi_di): Likewise.
15794         (*subdi_zesidi_ze): Likewise.
15795         (thumb1_subsi3_insn): Likewise.
15796         (*arm_subsi3_insn): Likewise.
15797         (*anddi3_insn): Likewise.
15798         (*anddi_zesidi_di): Likewise.
15799         (*anddi_sesdi_di): Likewise.
15800         (*ne_zeroextracts): Likewise.
15801         (*ne_zeroextracts): Likewise.
15802         (*ite_ne_zeroextr): Likewise.
15803         (*ite_ne_zeroextr): Likewise.
15804         (*anddi_notdi_di): Likewise.
15805         (*anddi_notzesidi): Likewise.
15806         (*anddi_notsesidi): Likewise.
15807         (andsi_notsi_si): Likewise.
15808         (thumb1_bicsi3): Likewise.
15809         (*iordi3_insn): Likewise.
15810         (*iordi_zesidi_di): Likewise.
15811         (*iordi_sesidi_di): Likewise.
15812         (*thumb1_iorsi3_insn): Likewise.
15813         (*xordi3_insn): Likewise.
15814         (*xordi_zesidi_di): Likewise.
15815         (*xordi_sesidi_di): Likewise.
15816         (*arm_xorsi3): Likewise.
15817         (*andsi_iorsi3_no): Likewise.
15818         (*smax_0): Likewise.
15819         (*smax_m1): Likewise.
15820         (*arm_smax_insn): Likewise.
15821         (*smin_0): Likewise.
15822         (*arm_smin_insn): Likewise.
15823         (*arm_umaxsi3): Likewise.
15824         (*arm_uminsi3): Likewise.
15825         (*minmax_arithsi): Likewise.
15826         (*minmax_arithsi_): Likewise.
15827         (*satsi_<SAT:code>): Likewise.
15828         (arm_ashldi3_1bit): Likewise.
15829         (arm_ashrdi3_1bit): Likewise.
15830         (arm_lshrdi3_1bit): Likewise.
15831         (*arm_negdi2): Likewise.
15832         (*thumb1_negdi2): Likewise.
15833         (*arm_negsi2): Likewise.
15834         (*thumb1_negsi2): Likewise.
15835         (*negdi_extendsid): Likewise.
15836         (*negdi_zero_extend): Likewise.
15837         (*arm_abssi2): Likewise.
15838         (*thumb1_abssi2): Likewise.
15839         (*arm_neg_abssi2): Likewise.
15840         (*thumb1_neg_abss): Likewise.
15841         (one_cmpldi2): Likewise.
15842         (extend<mode>di2): Likewise.
15843         (*compareqi_eq0): Likewise.
15844         (*arm_extendhisi2addsi): Likewise.
15845         (*arm_movdi): Likewise.
15846         (*thumb1_movdi_insn): Likewise.
15847         (*arm_movt): Likewise.
15848         (*thumb1_movsi_insn): Likewise.
15849         (pic_add_dot_plus_four): Likewise.
15850         (pic_add_dot_plus_eight): Likewise.
15851         (tls_load_dot_plus_eight): Likewise.
15852         (*thumb1_movhi_insn): Likewise.
15853         (*thumb1_movsf_insn): Likewise.
15854         (*movdf_soft_insn): Likewise.
15855         (*thumb_movdf_insn): Likewise.
15856         (cbranchsi4_insn): Likewise.
15857         (cbranchsi4_scratch): Likewise.
15858         (*negated_cbranchsi4): Likewise.
15859         (*tbit_cbranch): Likewise.
15860         (*tlobits_cbranch): Likewise.
15861         (*tstsi3_cbranch): Likewise.
15862         (*cbranchne_decr1): Likewise.
15863         (*addsi3_cbranch): Likewise.
15864         (*addsi3_cbranch_scratch): Likewise.
15865         (*arm_cmpdi_insn): Likewise.
15866         (*arm_cmpdi_unsig): Likewise.
15867         (*arm_cmpdi_zero): Likewise.
15868         (*thumb_cmpdi_zero): Likewise.
15869         (*deleted_compare): Likewise.
15870         (*mov_scc): Likewise.
15871         (*mov_negscc): Likewise.
15872         (*mov_notscc): Likewise.
15873         (*cstoresi_eq0_thumb1_insn): Likewise.
15874         (cstoresi_nltu_thumb1): Likewise.
15875         (cstoresi_ltu_thu): Likewise.
15876         (thumb1_addsi3_addgeu): Likewise.
15877         (*arm_jump): Likewise.
15878         (*thumb_jump): Likewise.
15879         (*check_arch2): Likewise.
15880         (arm_casesi_internal): Likewise.
15881         (thumb1_casesi_dispatch): Likewise.
15882         (*arm_indirect_jump): Likewise.
15883         (*thumb1_indirect_jump): Likewise.
15884         (nop): Likewise.
15885         (*and_scc): Likewise.
15886         (*ior_scc): Likewise.
15887         (*compare_scc): Likewise.
15888         (*cond_move): Likewise.
15889         (*cond_arith): Likewise.
15890         (*cond_sub): Likewise.
15891         (*cmp_ite0): Likewise.
15892         (*cmp_ite1): Likewise.
15893         (*cmp_and): Likewise.
15894         (*cmp_ior): Likewise.
15895         (*ior_scc_scc): Likewise.
15896         (*ior_scc_scc_cmp): Likewise.
15897         (*and_scc_scc): Likewise.
15898         (*and_scc_scc_cmp): Likewise.
15899         (*and_scc_scc_nod): Likewise.
15900         (*negscc): Likewise.
15901         (movcond_addsi): Likewise.
15902         (movcond): Likewise.
15903         (*ifcompare_plus_move): Likewise.
15904         (*if_plus_move): Likewise.
15905         (*ifcompare_move_plus): Likewise.
15906         (*if_move_plus): Likewise.
15907         (*ifcompare_arith_arith): Likewise.
15908         (*if_arith_arith): Likewise.
15909         (*ifcompare_arith_move): Likewise.
15910         (*if_arith_move): Likewise.
15911         (*ifcompare_move_arith): Likewise.
15912         (*if_move_arith): Likewise.
15913         (*ifcompare_move_not): Likewise.
15914         (*if_move_not): Likewise.
15915         (*ifcompare_not_move): Likewise.
15916         (*if_not_move): Likewise.
15917         (*ifcompare_shift_move): Likewise.
15918         (*if_shift_move): Likewise.
15919         (*ifcompare_move_shift): Likewise.
15920         (*if_move_shift): Likewise.
15921         (*ifcompare_shift_shift): Likewise.
15922         (*ifcompare_not_arith): Likewise.
15923         (*ifcompare_arith_not): Likewise.
15924         (*if_arith_not): Likewise.
15925         (*ifcompare_neg_move): Likewise.
15926         (*if_neg_move): Likewise.
15927         (*ifcompare_move_neg): Likewise.
15928         (*if_move_neg): Likewise.
15929         (prologue_thumb1_interwork): Likewise.
15930         (*cond_move_not): Likewise.
15931         (*sign_extract_onebit): Likewise.
15932         (*not_signextract_onebit): Likewise.
15933         (stack_tie): Likewise.
15934         (align_4): Likewise.
15935         (align_8): Likewise.
15936         (consttable_end): Likewise.
15937         (consttable_1): Likewise.
15938         (consttable_2): Likewise.
15939         (consttable_4): Likewise.
15940         (consttable_8): Likewise.
15941         (consttable_16): Likewise.
15942         (*thumb1_tablejump): Likewise.
15943         (prefetch): Likewise.
15944         (force_register_use): Likewise.
15945         (thumb_eh_return): Likewise.
15946         (load_tp_hard): Likewise.
15947         (load_tp_soft): Likewise.
15948         (tlscall): Likewise.
15949         (*arm_movtas_ze): Likewise.
15950         (*arm_rev): Likewise.
15951         (*arm_revsh): Likewise.
15952         (*arm_rev16): Likewise.
15953         * config/arm/thumb2.md
15954         (*thumb2_smaxsi3): Likewise.
15955         (*thumb2_sminsi3): Likewise.
15956         (*thumb32_umaxsi3): Likewise.
15957         (*thumb2_uminsi3): Likewise.
15958         (*thumb2_negdi2): Likewise.
15959         (*thumb2_abssi2): Likewise.
15960         (*thumb2_neg_abss): Likewise.
15961         (*thumb2_movsi_insn): Likewise.
15962         (tls_load_dot_plus_four): Likewise.
15963         (*thumb2_movhi_insn): Likewise.
15964         (*thumb2_mov_scc): Likewise.
15965         (*thumb2_mov_negs): Likewise.
15966         (*thumb2_mov_negs): Likewise.
15967         (*thumb2_mov_nots): Likewise.
15968         (*thumb2_mov_nots): Likewise.
15969         (*thumb2_movsicc_): Likewise.
15970         (*thumb2_movsfcc_soft_insn): Likewise.
15971         (*thumb2_indirect_jump): Likewise.
15972         (*thumb2_and_scc): Likewise.
15973         (*thumb2_ior_scc): Likewise.
15974         (*thumb2_ior_scc_strict_it): Likewise.
15975         (*thumb2_cond_move): Likewise.
15976         (*thumb2_cond_arith): Likewise.
15977         (*thumb2_cond_ari): Likewise.
15978         (*thumb2_cond_sub): Likewise.
15979         (*thumb2_negscc): Likewise.
15980         (*thumb2_movcond): Likewise.
15981         (thumb2_casesi_internal): Likewise.
15982         (thumb2_casesi_internal_pic): Likewise.
15983         (*thumb2_alusi3_short): Likewise.
15984         (*thumb2_mov<mode>_shortim): Likewise.
15985         (*thumb2_addsi_short): Likewise.
15986         (*thumb2_subsi_short): Likewise.
15987         (thumb2_addsi3_compare0): Likewise.
15988         (*thumb2_cbz): Likewise.
15989         (*thumb2_cbnz): Likewise.
15990         (*thumb2_one_cmplsi2_short): Likewise.
15991         (*thumb2_negsi2_short): Likewise.
15992         (*orsi_notsi_si): Likewise.
15993         * config/arm/arm1020e.md: Update with new attributes.
15994         * config/arm/arm1026ejs.md: Update with new attributes.
15995         * config/arm/arm1136jfs.md: Update with new attributes.
15996         * config/arm/arm926ejs.md: Update with new attributes.
15997         * config/arm/cortex-a15.md: Update with new attributes.
15998         * config/arm/cortex-a5.md: Update with new attributes.
15999         * config/arm/cortex-a53.md: Update with new attributes.
16000         * config/arm/cortex-a7.md: Update with new attributes.
16001         * config/arm/cortex-a8.md: Update with new attributes.
16002         * config/arm/cortex-a9.md: Update with new attributes.
16003         * config/arm/cortex-m4.md: Update with new attributes.
16004         * config/arm/cortex-r4.md: Update with new attributes.
16005         * config/arm/fa526.md: Update with new attributes.
16006         * config/arm/fa606te.md: Update with new attributes.
16007         * config/arm/fa626te.md: Update with new attributes.
16008         * config/arm/fa726te.md: Update with new attributes.
16009
16010 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
16011
16012         * config/aarch64/aarch64-simd.md
16013         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
16014         <vwx> iterator to ensure correct register choice.
16015         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
16016         (aarch64_sqdmull_n<mode>): Likewise.
16017         (aarch64_sqdmull2_n<mode>_internal): Likewise.
16018         * config/aarch64/arm_neon.h
16019         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
16020         (vml<as><q>_n_<su>16): Likewise.
16021         (vml<as>l_high_lane<q>_<su>16): Likewise.
16022         (vml<as>l_high_n_<su>16): Likewise.
16023         (vml<as>l_lane<q>_<su>16): Likewise.
16024         (vml<as>l_n_<su>16): Likewise.
16025         (vmul<q>_lane<q>_<su>16): Likewise.
16026         (vmul<q>_n_<su>16): Likewise.
16027         (vmull_lane<q>_<su>16): Likewise.
16028         (vmull_n_<su>16): Likewise.
16029         (vmull_high_lane<q>_<su>16): Likewise.
16030         (vmull_high_n_<su>16): Likewise.
16031         (vqrdmulh<q>_n_s16): Likewise.
16032
16033 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
16034
16035         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
16036         have the correct lane parameter.
16037
16038 2013-09-06  Richard Biener <rguenther@suse.de>
16039
16040         * cfganal.c (control_dependences::~control_dependences):
16041         Properly free all of the vector.
16042
16043 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
16044
16045         PR target/58269
16046         * config/i386/i386.c (ix86_conditional_register_usage):
16047         Proper initialize extended SSE registers.
16048
16049 2013-09-06  Jan Hubicka  <jh@suse.cz>
16050
16051         PR tree-optimization/58311
16052         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
16053
16054 2013-09-06  Jan Hubicka  <jh@suse.cz>
16055
16056         * Makefile.in (tree-sra.o): Update dependencies.
16057         * tree-sra.c: Include ipa-utils.h
16058         (scan_function): Use recursive_call_p.
16059         (has_caller_p): New function.
16060         (cgraph_for_node_and_aliases): Count also callers of aliases.
16061
16062 2013-09-06  Jan Hubicka  <jh@suse.cz>
16063
16064         PR middle-end/58094
16065         * cgraph.h (symtab_semantically_equivalent_p): Declare.
16066         * tree-tailcall.c: Include ipa-utils.h.
16067         (find_tail_calls): Use it.
16068         * ipa-pure-const.c (check_call): Likewise.
16069         * ipa-utils.c (recursive_call_p): New function.
16070         * ipa-utils.h (recursive_call_p): Dclare.
16071         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
16072         (symtab_semantically_equivalent_p): New function.
16073         * Makefile.in (tree-tailcall.o): Update dependencies.
16074
16075 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
16076
16077         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
16078         non-inlinable part.
16079
16080 2013-09-06  Richard Biener  <rguenther@suse.de>
16081
16082         * lto-streamer.h (lto_global_var_decls): Remove.
16083         * Makefile.in (OBJS): Remove lto-symtab.o.
16084         (lto-symtab.o): Remove.
16085         (GTFILES): Remove lto-symtab.c
16086         * lto-symtab.c: Move to lto/
16087
16088 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16089
16090         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
16091         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
16092         (UNSPEC_FPINT_RINT): New constant definitions.
16093         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
16094         definition with 2 attributes.
16095         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
16096         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
16097         definitions.
16098
16099 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16100
16101         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
16102         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
16103         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
16104         attribute to "z196_alone".
16105         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
16106         "zEC12_simple".
16107
16108 2013-09-06  Richard Biener  <rguenther@suse.de>
16109
16110         * basic-block.h (class control_dependences): New.
16111         * tree-ssa-dce.c (control_dependence_map): Remove.
16112         (cd): New global.
16113         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
16114         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
16115         find_pdom, find_control_dependence, find_all_control_dependences):
16116         Move to cfganal.c.
16117         (mark_control_dependent_edges_necessary,
16118         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
16119         tree_dce_done, perform_tree_ssa_dce): Adjust.
16120         * cfganal.c (set_control_dependence_map_bit,
16121         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
16122         find_all_control_dependences): Move from tree-ssa-dce.c and
16123         implement as methods of control_dependences class.
16124         (control_dependences::control_dependences): New.
16125         (control_dependences::~control_dependences): Likewise.
16126         (control_dependences::get_edges_dependent_on): Likewise.
16127         (control_dependences::get_edge): Likewise.
16128
16129 2013-09-04  Jan Hubicka  <jh@suse.cz>
16130
16131         * tree.c (types_same_for_odr): Drop overactive check.
16132         * ipa-devirt.c (hash_type_name): Likewise.
16133
16134 2013-09-04  Jan Hubicka  <jh@suse.cz>
16135
16136         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
16137         (analyze_functions): ... here.
16138
16139 2013-09-04  Jan Hubicka  <jh@suse.cz>
16140
16141         PR middle-end/58201
16142         * cgraphunit.c (analyze_functions): Clear AUX fields
16143         after processing; initialize assembler name has.
16144
16145 2013-09-05  Jeff Law  <law@redhat.com>
16146
16147         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
16148         from thread_around_empty_block.  Record threading path into PATH.
16149         Recurse if threading through the initial block is successful.
16150         (thread_across_edge): Corresponding changes to slightly simplify.
16151
16152 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16153
16154         * config/aarch64/aarch64.md
16155         (type): Remove frecpe, frecps, frecpx.
16156         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
16157         fix to be a TARGET_SIMD instruction.
16158         (aarch64_frecps): Remove.
16159         * config/aarch64/aarch64-simd.md
16160         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
16161         (aarch64_frecps<mode>): Handle all float/vector of float modes.
16162
16163 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16164             Sofiane Naci  <sofiane.naci@arm.com>
16165
16166         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
16167         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
16168         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
16169         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
16170         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
16171         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
16172         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
16173         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
16174         into "clz, "rbit".  Rename "shift" to "shift_imm".
16175         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
16176         changes.  Update for attribute changes all occurrences of arlo_* and
16177         shift* types.
16178         * config/arm/arm-fixed.md: Update for attribute changes
16179         all occurrences of arlo_* types.
16180         * config/arm/thumb2.md: Update for attribute changes all occurrences
16181         of arlo_* types.
16182         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
16183         (cortexa7_older_only): Likewise.
16184         (cortexa7_younger):  Likewise.
16185         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
16186         (1020alu_shift_op): Likewise.
16187         (1020alu_shift_reg_op): Likewise.
16188         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
16189         (alu_shift_op): Likewise.
16190         (alu_shift_reg_op): Likewise.
16191         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
16192         (11_alu_shift_op): Likewise.
16193         (11_alu_shift_reg_op): Likewise.
16194         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
16195         (9_alu_shift_reg_op): Likewise.
16196         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
16197         attribute changes.
16198         (cortex_a15_alu_shift): Likewise.
16199         (cortex_a15_alu_shift_reg): Likewise.
16200         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
16201         attribute changes.
16202         (cortex_a5_alu_shift): Likewise.
16203         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
16204         attribute changes.
16205         (cortex_a53_alu_shift): Likewise.
16206         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
16207         attribute changes.
16208         (cortex_a7_alu_reg): Likewise.
16209         (cortex_a7_alu_shift): Likewise.
16210         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
16211         attribute changes.
16212         (cortex_a8_alu_shift): Likewise.
16213         (cortex_a8_alu_shift_reg): Likewise.
16214         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
16215         (cortex_a9_dp_shift): Likewise.
16216         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
16217         attribute changes.
16218         * config/arm/cortex-r4.md
16219         (cortex_r4_alu): Update for attribute changes.
16220         (cortex_r4_mov): Likewise.
16221         (cortex_r4_alu_shift_reg): Likewise.
16222         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
16223         (526_alu_shift_op): Likewise.
16224         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
16225         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
16226         (626te_alu_shift_op): Likewise.
16227         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
16228         (726te_alu_shift_op): Likewise.
16229         (726te_alu_shift_reg_op): Likewise.
16230         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
16231         (mp626_alu_shift_op): Likewise.
16232         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
16233         (pj4_alu_conds): Likewise.
16234         (pj4_shift): Likewise.
16235         (pj4_shift_conds): Likewise.
16236         (pj4_alu_shift): Likewise.
16237         (pj4_alu_shift_conds): Likewise.
16238         * config/aarch64/aarch64.md: Update for attribute change
16239         all occurrences of arlo_* and shift* types.
16240
16241 2013-09-05  Mike Stump  <mikestump@comcast.net>
16242
16243         * tree.h: Move documentation for tree_function_decl to tree-core.h
16244         with the declaration.
16245
16246 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
16247
16248         PR target/58139
16249         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
16250         looking for widest mode.
16251
16252 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
16253
16254         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
16255
16256 2013-09-05  Richard Biener  <rguenther@suse.de>
16257
16258         PR tree-optimization/58137
16259         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16260         Do not create vectors of pointers.
16261         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
16262         types for the components of the vector initializer.
16263         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
16264         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
16265
16266 2013-09-05  Martin Jambor  <mjambor@suse.cz>
16267
16268         * ipa-prop.c (remove_described_reference): Accept missing references,
16269         return false if that hppens, otherwise return true.
16270         (cgraph_node_for_jfunc): New function.
16271         (try_decrement_rdesc_refcount): Likewise.
16272         (try_make_edge_direct_simple_call): Use them.
16273         (ipa_edge_removal_hook): Remove references from rdescs.
16274         (ipa_edge_duplication_hook): Clone rdescs and their references
16275         when the new edge has the same caller as the old one.
16276         * cgraph.c (cgraph_resolve_speculation): Remove speculative
16277         reference before removing any edges.
16278
16279 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
16280
16281         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
16282         initial store.
16283         * thumb2.md (thumb2_storewb_parisi): New pattern.
16284
16285 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
16286
16287         * config/aarch64/aarch64-option-extensions.def: Add
16288         AARCH64_OPT_EXTENSION of 'crc'.
16289         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
16290         (AARCH64_ISA_CRC): Ditto.
16291         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
16292         description of the CRC extension.
16293
16294 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16295
16296         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
16297         * config/rs6000/linux.h: Ditto.
16298         * alpha/linux.h: Ditto.
16299         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
16300         no_c99_libc_has_function.
16301         * config/c6x/uclinux-elf.h: Ditto.
16302         * config/lm32/uclinux-elf.h: Ditto.
16303         * config/m68k/uclinux.h: Ditto.
16304         * config/moxie/uclinux.h: Ditto.
16305         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
16306         (crisv32-*-linux*, cris-*-linux*): Ditto.
16307         * config/bfin/bfin.c: Include "tm_p.h".
16308
16309 2013-09-05  Richard Biener  <rguenther@suse.de>
16310
16311         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
16312         check for a definition without a basic-block.
16313
16314 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16315             Sofiane Naci <sofiane.naci@arm.com>
16316
16317         * config/aarch64/aarch64.md
16318         (*movti_aarch64): Rename r_2_f and f_2_r.
16319         (*movsf_aarch64): Likewise.
16320         (*movdf_aarch64): Likewise.
16321         (*movtf_aarch64): Likewise.
16322         (aarch64_movdi_<mode>low): Likewise.
16323         (aarch64_movdi_<mode>high): Likewise.
16324         (aarch64_mov<mode>high_di): Likewise.
16325         (aarch64_mov<mode>low_di): Likewise.
16326         (aarch64_movtilow_tilow): Likewise.
16327         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
16328         values to config/arm/types.md
16329         (attribute "conds"): Update for attribute change.
16330         (anddi3_insn): Likewise.
16331         (iordi3_insn): Likewise.
16332         (xordi3_insn): Likewise.
16333         (one_cmpldi2): Likewise.
16334         * config/arm/types.md (type): Add Neon types.
16335         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
16336         use "type" attribute.
16337         (movmisalign<mode>_neon_store): Likewise.
16338         (movmisalign<mode>_neon_load): Likewise.
16339         (vec_set<mode>_internal): Likewise.
16340         (vec_setv2di_internal): Likewise.
16341         (vec_extract<mode>): Likewise.
16342         (vec_extractv2di): Likewise.
16343         (add<mode>3_neon): Likewise.
16344         (adddi3_neon): Likewise.
16345         (sub<mode>3_neon): Likewise.
16346         (subdi3_neon): Likewise.
16347         (mul<mode>3_neon): Likewise.
16348         (mul<mode>3add<mode>_neon): Likewise.
16349         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16350         (fma<VCVTF:mode>4)): Likewise.
16351         (fma<VCVTF:mode>4_intrinsic): Likewise.
16352         (fmsub<VCVTF:mode>4)): Likewise.
16353         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
16354         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
16355         (ior<mode>3): Likewise.
16356         (and<mode>3): Likewise.
16357         (anddi3_neon): Likewise.
16358         (orn<mode>3_neon): Likewise.
16359         (orndi3_neon): Likewise.
16360         (bic<mode>3_neon): Likewise.
16361         (bicdi3_neon): Likewise.
16362         (xor<mode>3): Likewise.
16363         (one_cmpl<mode>2): Likewise.
16364         (abs<mode>2): Likewise.
16365         (neg<mode>2): Likewise.
16366         (umin<mode>3_neon): Likewise.
16367         (umax<mode>3_neon): Likewise.
16368         (smin<mode>3_neon): Likewise.
16369         (smax<mode>3_neon): Likewise.
16370         (vashl<mode>3): Likewise.
16371         (vashr<mode>3_imm): Likewise.
16372         (vlshr<mode>3_imm): Likewise.
16373         (ashl<mode>3_signed): Likewise.
16374         (ashl<mode>3_unsigned): Likewise.
16375         (neon_load_count): Likewise.
16376         (ashldi3_neon_noclobber): Likewise.
16377         (signed_shift_di3_neon): Likewise.
16378         (unsigned_shift_di3_neon): Likewise.
16379         (ashrdi3_neon_imm_noclobber): Likewise.
16380         (lshrdi3_neon_imm_noclobber): Likewise.
16381         (widen_ssum<mode>3): Likewise.
16382         (widen_usum<mode>3): Likewise.
16383         (quad_halves_<code>v4si): Likewise.
16384         (quad_halves_<code>v4sf): Likewise.
16385         (quad_halves_<code>v8hi): Likewise.
16386         (quad_halves_<code>v16qi): Likewise.
16387         (reduc_splus_v2di): Likewise.
16388         (neon_vpadd_internal<mode>): Likewise.
16389         (neon_vpsmin<mode>): Likewise.
16390         (neon_vpsmax<mode>): Likewise.
16391         (neon_vpumin<mode>): Likewise.
16392         (neon_vpumax<mode>): Likewise.
16393         (ss_add<mode>_neon): Likewise.
16394         (us_add<mode>_neon): Likewise.
16395         (ss_sub<mode>_neon): Likewise.
16396         (us_sub<mode>_neon): Likewise.
16397         (neon_vadd<mode>_unspec): Likewise.
16398         (neon_vaddl<mode>): Likewise.
16399         (neon_vaddw<mode>): Likewise.
16400         (neon_vhadd<mode>): Likewise.
16401         (neon_vqadd<mode>): Likewise.
16402         (neon_vaddhn<mode>): Likewise.
16403         (neon_vmul<mode>): Likewise.
16404         (neon_vmla<mode>): Likewise.
16405         (neon_vmlal<mode>): Likewise.
16406         (neon_vmls<mode>): Likewise.
16407         (neon_vmlsl<mode>): Likewise.
16408         (neon_vqdmulh<mode>): Likewise.
16409         (neon_vqdmlal<mode>): Likewise.
16410         (neon_vqdmlsl<mode>): Likewise.
16411         (neon_vmull<mode>): Likewise.
16412         (neon_vqdmull<mode>): Likewise.
16413         (neon_vsub<mode>_unspec): Likewise.
16414         (neon_vsubl<mode>): Likewise.
16415         (neon_vsubw<mode>): Likewise.
16416         (neon_vqsub<mode>): Likewise.
16417         (neon_vhsub<mode>): Likewise.
16418         (neon_vsubhn<mode>): Likewise.
16419         (neon_vceq<mode>): Likewise.
16420         (neon_vcge<mode>): Likewise.
16421         (neon_vcgeu<mode>): Likewise.
16422         (neon_vcgt<mode>): Likewise.
16423         (neon_vcgtu<mode>): Likewise.
16424         (neon_vcle<mode>): Likewise.
16425         (neon_vclt<mode>): Likewise.
16426         (neon_vcage<mode>): Likewise.
16427         (neon_vcagt<mode>): Likewise.
16428         (neon_vtst<mode>): Likewise.
16429         (neon_vabd<mode>): Likewise.
16430         (neon_vabdl<mode>): Likewise.
16431         (neon_vaba<mode>): Likewise.
16432         (neon_vabal<mode>): Likewise.
16433         (neon_vmax<mode>): Likewise.
16434         (neon_vmin<mode>): Likewise.
16435         (neon_vpaddl<mode>): Likewise.
16436         (neon_vpadal<mode>): Likewise.
16437         (neon_vpmax<mode>): Likewise.
16438         (neon_vpmin<mode>): Likewise.
16439         (neon_vrecps<mode>): Likewise.
16440         (neon_vrsqrts<mode>): Likewise.
16441         (neon_vqabs<mode>): Likewise.
16442         (neon_vqneg<mode>): Likewise.
16443         (neon_vcls<mode>): Likewise.
16444         (clz<mode>2): Likewise.
16445         (popcount<mode>2): Likewise.
16446         (neon_vrecpe): Likewise.
16447         (neon_vrsqrte): Likewise.
16448         (neon_vget_lane<mode>_sext_internal): Likewise.
16449         (neon_vget_lane<mode>_zext_internal): Likewise.
16450         (neon_vdup_n<mode>): Likewise.
16451         (neon_vdup_nv2di): Likewise.
16452         (neon_vdpu_lane<mode>_internal): Likewise.
16453         (neon_vswp<mode>): Likewise.
16454         (float<mode><V_cvtto>2): Likewise.
16455         (floatuns<mode><V_cvtto>2): Likewise.
16456         (fix_trunc<mode><V_cvtto>)2): Likewise
16457         (fixuns_trunc<mode><V_cvtto)2): Likewise.
16458         (neon_vcvt<mode>): Likewise.
16459         (neon_vcvtv4sfv4hf): Likewise.
16460         (neon_vcvtv4hfv4sf): Likewise.
16461         (neon_vcvt_n<mode>): Likewise.
16462         (neon_vmovn<mode>): Likewise.
16463         (neon_vqmovn<mode>): Likewise.
16464         (neon_vqmovun<mode>): Likewise.
16465         (neon_vmovl<mode>): Likewise.
16466         (neon_vmul_lane<mode>): Likewise.
16467         (neon_vmull_lane<mode>): Likewise.
16468         (neon_vqdmull_lane<mode>): Likewise.
16469         (neon_vqdmulh_lane<mode>): Likewise.
16470         (neon_vmla_lane<mode>): Likewise.
16471         (neon_vmlal_lane<mode>): Likewise.
16472         (neon_vqdmlal_lane<mode>): Likewise.
16473         (neon_vmls_lane<mode>): Likewise.
16474         (neon_vmlsl_lane<mode>): Likewise.
16475         (neon_vqdmlsl_lane<mode>): Likewise.
16476         (neon_vext<mode>): Likewise.
16477         (neon_vrev64<mode>): Likewise.
16478         (neon_vrev32<mode>): Likewise.
16479         (neon_vrev16<mode>): Likewise.
16480         (neon_vbsl<mode>_internal): Likewise.
16481         (neon_vshl<mode>): Likewise.
16482         (neon_vqshl<mode>): Likewise.
16483         (neon_vshr_n<mode>): Likewise.
16484         (neon_vshrn_n<mode>): Likewise.
16485         (neon_vqshrn_n<mode>): Likewise.
16486         (neon_vqshrun_n<mode>): Likewise.
16487         (neon_vshl_n<mode>): Likewise.
16488         (neon_vqshl_n<mode>): Likewise.
16489         (neon_vqshlu_n<mode>): Likewise.
16490         (neon_vshll_n<mode>): Likewise.
16491         (neon_vsra_n<mode>): Likewise.
16492         (neon_vsri_n<mode>): Likewise.
16493         (neon_vsli_n<mode>): Likewise.
16494         (neon_vtbl1v8qi): Likewise.
16495         (neon_vtbl2v8qi): Likewise.
16496         (neon_vtbl3v8qi): Likewise.
16497         (neon_vtbl4v8qi): Likewise.
16498         (neon_vtbx1v8qi): Likewise.
16499         (neon_vtbx2v8qi): Likewise.
16500         (neon_vtbx3v8qi): Likewise.
16501         (neon_vtbx4v8qi): Likewise.
16502         (neon_vtrn<mode>_internal): Likewise.
16503         (neon_vzip<mode>_internal): Likewise.
16504         (neon_vuzp<mode>_internal): Likewise.
16505         (neon_vld1<mode>): Likewise.
16506         (neon_vld1_lane<mode>): Likewise.
16507         (neon_vld1_dup<mode>): Likewise.
16508         (neon_vld1_dupv2di): Likewise.
16509         (neon_vst1<mode>): Likewise.
16510         (neon_vst1_lane<mode>): Likewise.
16511         (neon_vld2<mode>): Likewise.
16512         (neon_vld2_lane<mode>): Likewise.
16513         (neon_vld2_dup<mode>): Likewise.
16514         (neon_vst2<mode>): Likewise.
16515         (neon_vst2_lane<mode>): Likewise.
16516         (neon_vld3<mode>): Likewise.
16517         (neon_vld3qa<mode>): Likewise.
16518         (neon_vld3qb<mode>): Likewise.
16519         (neon_vld3_lane<mode>): Likewise.
16520         (neon_vld3_dup<mode>): Likewise.
16521         (neon_vst3<mode>): Likewise.
16522         (neon_vst3qa<mode>): Likewise.
16523         (neon_vst3qb<mode>): Likewise.
16524         (neon_vst3_lane<mode>): Likewise.
16525         (neon_vld4<mode>): Likewise.
16526         (neon_vld4qa<mode>): Likewise.
16527         (neon_vld4qb<mode>): Likewise.
16528         (neon_vld4_lane<mode>): Likewise.
16529         (neon_vld4_dup<mode>): Likewise.
16530         (neon_vst4<mode>): Likewise.
16531         (neon_vst4qa<mode>): Likewise.
16532         (neon_vst4qb<mode>): Likewise.
16533         (neon_vst4_lane<mode>): Likewise.
16534         (neon_vec_unpack<US>_lo_<mode>): Likewise.
16535         (neon_vec_unpack<US>_hi_<mode>): Likewise.
16536         (neon_vec_<US>mult_lo_<mode>): Likewise.
16537         (neon_vec_<US>mult_hi_<mode>): Likewise.
16538         (neon_vec_<US>shiftl_<mode>): Likewise.
16539         (neon_unpack<US>_<mode>): Likewise.
16540         (neon_vec_<US>mult_<mode>): Likewise.
16541         (vec_pack_trunc_<mode>): Likewise.
16542         (neon_vec_pack_trunk_<mode>): Likewise.
16543         (neon_vabd<mode>_2): Likewise.
16544         (neon_vabd<mode>_3): Likewise.
16545         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
16546         (thumb2_movsi_vfp): Likewise.
16547         (movdi_vfp): Likewise.
16548         (movdi_vfp_cortexa8): Likewise.
16549         (movhf_vfp_neon): Likewise.
16550         (movhf_vfp): Likewiwse.
16551         (movsf_vfp): Likewiwse.
16552         (thumb2_movsf_vfp): Likewiwse.
16553         (movdf_vfp): Likewise.
16554         (thumb2_movdf_vfp): Likewise.
16555         (movsfcc_vfp): Likewise.
16556         (thumb2_movsfcc_vfp): Likewise.
16557         (movdfcc_vfp): Likewise.
16558         (thumb2_movdfcc_vfp): Likewise.
16559         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
16560         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
16561         (v10_v2c): Likewise.
16562         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
16563         attribute change.
16564         (cortex_a15_neon_int_2): Likewise.
16565         (cortex_a15_neon_int_3): Likewise.
16566         (cortex_a15_neon_int_4): Likewise.
16567         (cortex_a15_neon_int_5): Likewise.
16568         (cortex_a15_neon_vqneg_vqabs): Likewise.
16569         (cortex_a15_neon_vmov): Likewise.
16570         (cortex_a15_neon_vaba): Likewise.
16571         (cortex_a15_neon_vaba_qqq): Likewise.
16572         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16573         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16574         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
16575         scalar_64_32_long_scalar): Likewise.
16576         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16577         (cortex_a15_neon_mla_qqq_8_16): Likewise.
16578         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16579         lotype_qdd_64_32_long): Likewise.
16580         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16581         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16582         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
16583         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16584         (cortex_a15_neon_shift_1): Likewise.
16585         (cortex_a15_neon_shift_2): Likewise.
16586         (cortex_a15_neon_shift_3): Likewise.
16587         (cortex_a15_neon_vshl_ddd): Likewise.
16588         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16589         (cortex_a15_neon_vsra_vrsra): Likewise.
16590         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
16591         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
16592         (cortex_a15_neon_fp_vmul_ddd): Likewise.
16593         (cortex_a15_neon_fp_vmul_qqd): Likewise.
16594         (cortex_a15_neon_fp_vmla_ddd): Likewise.
16595         (cortex_a15_neon_fp_vmla_qqq): Likewise.
16596         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
16597         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
16598         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16599         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16600         (cortex_a15_neon_bp_simple): Likewise.
16601         (cortex_a15_neon_bp_2cycle): Likewise.
16602         (cortex_a15_neon_bp_3cycle): Likewise.
16603         (cortex_a15_neon_vld1_1_2_regs): Likewise.
16604         (cortex_a15_neon_vld1_3_4_regs): Likewise.
16605         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16606         (cortex_a15_neon_vld2_4_regs): Likewise.
16607         (cortex_a15_neon_vld3_vld4): Likewise.
16608         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16609         (cortex_a15_neon_vst1_3_4_regs): Likewise.
16610         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
16611         (cortex_a15_neon_vst3_vst4): Likewise.
16612         (cortex_a15_neon_vld1_vld2_lane): Likewise.
16613         (cortex_a15_neon_vld3_vld4_lane" 10
16614         (cortex_a15_neon_vst1_vst2_lane): Likewise.
16615         (cortex_a15_neon_vst3_vst4_lane): Likewise.
16616         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
16617         (cortex_a15_neon_ldm_2): Likewise.0
16618         (cortex_a15_neon_stm_2): Likewise.
16619         (cortex_a15_neon_mcr): Likewise.
16620         (cortex_a15_neon_mcr_2_mcrr): Likewise.
16621         (cortex_a15_neon_mrc): Likewise.
16622         (cortex_a15_neon_mrrc): Likewise.
16623         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
16624         change.
16625         (cortex_a15_alu_shift): Likewise.
16626         (cortex_a15_alu_shift_reg): Likewise.
16627         (cortex_a15_mult32): Likewise.
16628         (cortex_a15_mult64): Likewise.
16629         (cortex_a15_block): Likewise.
16630         (cortex_a15_branch): Likewise.
16631         (cortex_a15_load1): Likewise.
16632         (cortex_a15_load3): Likewise.
16633         (cortex_a15_store1): Likewise.
16634         (cortex_a15_store3): Likewise.
16635         (cortex_a15_call): Likewise.
16636         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
16637         (cortex_a5_f2r): Likewise.
16638         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
16639         change.
16640         (cortex_a53_f2r): Likewise.
16641         * config/arm/cortex-a7.md
16642         (cortex_a7_branch): Update for attribute change.
16643         (cortex_a7_call): Likewise.
16644         (cortex_a7_alu_imm): Likewise.
16645         (cortex_a7_alu_reg): Likewise.
16646         (cortex_a7_alu_shift): Likewise.
16647         (cortex_a7_mul): Likewise.
16648         (cortex_a7_load1): Likewise.
16649         (cortex_a7_store1): Likewise.
16650         (cortex_a7_load2): Likewise.
16651         (cortex_a7_store2): Likewise.
16652         (cortex_a7_load3): Likewise.
16653         (cortex_a7_store3): Likewise.
16654         (cortex_a7_load4): Likewise.
16655         (cortex_a7_store4): Likewise.
16656         (cortex_a7_fpalu): Likewise.
16657         (cortex_a7_fconst): Likewise.
16658         (cortex_a7_fpmuls): Likewise.
16659         (cortex_a7_neon_mul): Likewise.
16660         (cortex_a7_fpmacs): Likewise.
16661         (cortex_a7_neon_mla: Likewise.
16662         (cortex_a7_fpmuld: Likewise.
16663         (cortex_a7_fpmacd: Likewise.
16664         (cortex_a7_fpfmad: Likewise.
16665         (cortex_a7_fdivs: Likewise.
16666         (cortex_a7_fdivd: Likewise.
16667         (cortex_a7_r2f: Likewise.
16668         (cortex_a7_f2r: Likewise.
16669         (cortex_a7_f_flags: Likewise.
16670         (cortex_a7_f_loads: Likewise.
16671         (cortex_a7_f_loadd: Likewise.
16672         (cortex_a7_f_stores: Likewise.
16673         (cortex_a7_f_stored: Likewise.
16674         (cortex_a7_neon): Likewise.
16675         * config/arm/cortex-a8-neon.md
16676         (cortex_a8_neon_mrc): Update for attribute change.
16677         (cortex_a8_neon_mrrc): Likewise.
16678         (cortex_a8_neon_int_1): Likewise.
16679         (cortex_a8_neon_int_2): Likewise.
16680         (cortex_a8_neon_int_3): Likewise.
16681         (cortex_a8_neon_int_4): Likewise.
16682         (cortex_a8_neon_int_5): Likewise.
16683         (cortex_a8_neon_vqneg_vqabs): Likewise.
16684         (cortex_a8_neon_vmov): Likewise.
16685         (cortex_a8_neon_vaba): Likewise.
16686         (cortex_a8_neon_vaba_qqq): Likewise.
16687         (cortex_a8_neon_vsma): Likewise.
16688         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16689         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16690         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16691         long_scalar): Likewise.
16692         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16693         (cortex_a8_neon_mla_qqq_8_16): Likewise.
16694         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16695         long_scalar_qdd_64_32_long): Likewise.
16696         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16697         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16698         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
16699         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16700         (cortex_a8_neon_shift_1): Likewise.
16701         (cortex_a8_neon_shift_2): Likewise.
16702         (cortex_a8_neon_shift_3): Likewise.
16703         (cortex_a8_neon_vshl_ddd): Likewise.
16704         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16705         (cortex_a8_neon_vsra_vrsra): Likewise.
16706         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
16707         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
16708         (cortex_a8_neon_fp_vsum): Likewise.
16709         (cortex_a8_neon_fp_vmul_ddd): Likewise.
16710         (cortex_a8_neon_fp_vmul_qqd): Likewise.
16711         (cortex_a8_neon_fp_vmla_ddd): Likewise.
16712         (cortex_a8_neon_fp_vmla_qqq): Likewise.
16713         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
16714         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
16715         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16716         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16717         (cortex_a8_neon_bp_simple): Likewise.
16718         (cortex_a8_neon_bp_2cycle): Likewise.
16719         (cortex_a8_neon_bp_3cycle): Likewise.
16720         (cortex_a8_neon_ldr): Likewise.
16721         (cortex_a8_neon_str): Likewise.
16722         (cortex_a8_neon_vld1_1_2_regs): Likewise.
16723         (cortex_a8_neon_vld1_3_4_regs): Likewise.
16724         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16725         (cortex_a8_neon_vld2_4_regs): Likewise.
16726         (cortex_a8_neon_vld3_vld4): Likewise.
16727         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16728         (cortex_a8_neon_vst1_3_4_regs): Likewise.
16729         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
16730         (cortex_a8_neon_vst3_vst4): Likewise.
16731         (cortex_a8_neon_vld1_vld2_lane): Likewise.
16732         (cortex_a8_neon_vld3_vld4_lane): Likewise.
16733         (cortex_a8_neon_vst1_vst2_lane): Likewise.
16734         (cortex_a8_neon_vst3_vst4_lane): Likewise.
16735         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
16736         (cortex_a8_neon_mcr): Likewise.
16737         (cortex_a8_neon_mcr_2_mcrr): Likewise.
16738         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
16739         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
16740         change.
16741         (ca9_neon_mrrc): Likewise.
16742         (cortex_a9_neon_int_1): Likewise.
16743         (cortex_a9_neon_int_2): Likewise.
16744         (cortex_a9_neon_int_3): Likewise.
16745         (cortex_a9_neon_int_4): Likewise.
16746         (cortex_a9_neon_int_5): Likewise.
16747         (cortex_a9_neon_vqneg_vqabs): Likewise.
16748         (cortex_a9_neon_vmov): Likewise.
16749         (cortex_a9_neon_vaba): Likewise.
16750         (cortex_a9_neon_vaba_qqq): Likewise.
16751         (cortex_a9_neon_vsma): Likewise.
16752         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16753         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16754         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16755         long_scalar): Likewise.
16756         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16757         (cortex_a9_neon_mla_qqq_8_16): Likewise.
16758         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16759         long_scalar_qdd_64_32_long): Likewise.
16760         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16761         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16762         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
16763         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16764         (cortex_a9_neon_shift_1): Likewise.
16765         (cortex_a9_neon_shift_2): Likewise.
16766         (cortex_a9_neon_shift_3): Likewise.
16767         (cortex_a9_neon_vshl_ddd): Likewise.
16768         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16769         (cortex_a9_neon_vsra_vrsra): Likewise.
16770         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
16771         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
16772         (cortex_a9_neon_fp_vsum): Likewise.
16773         (cortex_a9_neon_fp_vmul_ddd): Likewise.
16774         (cortex_a9_neon_fp_vmul_qqd): Likewise.
16775         (cortex_a9_neon_fp_vmla_ddd): Likewise.
16776         (cortex_a9_neon_fp_vmla_qqq): Likewise.
16777         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
16778         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
16779         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16780         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16781         (cortex_a9_neon_bp_simple): Likewise.
16782         (cortex_a9_neon_bp_2cycle): Likewise.
16783         (cortex_a9_neon_bp_3cycle): Likewise.
16784         (cortex_a9_neon_ldr): Likewise.
16785         (cortex_a9_neon_str): Likewise.
16786         (cortex_a9_neon_vld1_1_2_regs): Likewise.
16787         (cortex_a9_neon_vld1_3_4_regs): Likewise.
16788         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16789         (cortex_a9_neon_vld2_4_regs): Likewise.
16790         (cortex_a9_neon_vld3_vld4): Likewise.
16791         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16792         (cortex_a9_neon_vst1_3_4_regs): Likewise.
16793         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
16794         (cortex_a9_neon_vst3_vst4): Likewise.
16795         (cortex_a9_neon_vld1_vld2_lane): Likewise.
16796         (cortex_a9_neon_vld3_vld4_lane): Likewise.
16797         (cortex_a9_neon_vst1_vst2_lane): Likewise.
16798         (cortex_a9_neon_vst3_vst4_lane): Likewise.
16799         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
16800         (cortex_a9_neon_mcr): Likewise.
16801         (cortex_a9_neon_mcr_2_mcrr): Likewise.
16802         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
16803         (cortex_a9_fps): Likewise.
16804         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
16805         change.
16806         (cortex_m4_fmuls): Likewise.
16807         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
16808         change.
16809         (cortex_r4_mrc): Likewise.
16810         * config/arm/iterators.md: Update comment referring to neon_type.
16811         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
16812         (iwmmxt_movsi_insn): Likewise.
16813         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
16814         attribute change.
16815         (pj4_core_to_vfp): Likewise.
16816         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
16817         attribute change.
16818         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
16819         (vfp_fstore): Likewise.
16820         * doc/md.texi: Change references to neon_type to refer to type.
16821
16822 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
16823
16824         * tree.h (DECL_BUILT_IN): Fix typo in comment.
16825
16826 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
16827
16828         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
16829         lglobl if not weak.
16830
16831 2013-09-04  Easwaran Raman  <eraman@google.com>
16832
16833         PR middle-end/57370
16834         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
16835         (build_and_add_sum): Use it.
16836         (appears_later_in_bb): Simplify code.
16837
16838 2013-09-04  Teresa Johnson  <tejohnson@google.com>
16839
16840         * dumpfile.c (dump_finish): Don't close stderr/stdout.
16841
16842 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
16843
16844         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
16845
16846 2013-09-04  Jan Hubicka  <jh@suse.cz>
16847
16848         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
16849         * ipa-devirt.c: Include diganostic.h
16850         (odr_type_d): Add types and types_set.
16851         (hash_type_name): Work for types with vtables during LTO.
16852         (odr_hasher::remove): Fix comment; destroy types_set.
16853         (add_type_duplicate): New function,
16854         (get_odr_type): Use it.
16855         (dump_type_inheritance_graph): Dump type duplicates.
16856         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
16857         graph.
16858         * tree.c (types_same_for_odr): Give exact answers on types with
16859         virtual tables.
16860
16861 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
16862
16863         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
16864         explaining their differences.
16865
16866 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
16867
16868         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
16869
16870 2013-09-03  Jeff Law  <law@redhat.com>
16871
16872         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
16873         when not threading through a joiner block.  Pass joiner/no joiner
16874         state to register_jump_thread.
16875         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
16876         state from argument rather than implying on path length.
16877         Dump the entire jump thread path into debugging dump.
16878         * tree-flow.h (register_jump_thread): Update prototype.
16879
16880 2013-08-29  Xinliang David Li  <davidxl@google.com>
16881
16882         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16883         Remove a trivial gcc_assert.
16884
16885 2013-08-29  Xinliang David Li  <davidxl@google.com>
16886
16887         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
16888         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
16889         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16890         Delay base decl alignment adjustment.
16891         * tree-vectorizer.c (vect_destroy_datarefs): New function.
16892         * tree-vectorizer.h: New data structure.
16893         (set_dr_misalignment): New function.
16894         (dr_misalignment): Ditto.
16895         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
16896         (vectorizable_load): Ditto.
16897         (ensure_base_align): New function.
16898         (vectorize_loops): Add dbg_cnt support.
16899         (execute_vect_slp): Ditto.
16900         * dbgcnt.def: New debug counter.
16901         * Makefile: New dependency.
16902
16903 2013-09-03  Meador Inge  <meadori@codesourcery.com>
16904
16905         Revert:
16906
16907         2013-08-30  Meador Inge  <meadori@codesourcery.com>
16908
16909         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
16910
16911 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
16912
16913         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
16914         function descriptor.
16915
16916 2013-09-03  Richard Biener  <rguenther@suse.de>
16917
16918         * tree-affine.c (add_elt_to_tree): Fix association issue,
16919         avoid useless converts and make sure to always return a
16920         properly typed result.
16921
16922 2013-09-03  Richard Biener  <rguenther@suse.de>
16923
16924         PR middle-end/57656
16925         * fold-const.c (negate_expr_p): Fix division case.
16926         (negate_expr): Likewise.
16927
16928 2013-09-03  Richard Biener  <rguenther@suse.de>
16929
16930         PR lto/58285
16931         * tree-streamer-out.c: Include tm.h.
16932         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
16933
16934 2013-09-03  Jan Hubicka  <jh@suse.cz>
16935
16936         * tree-profile.c (tree_profiling): Cleanup CFG when done.
16937
16938 2013-09-03  Alan Modra  <amodra@gmail.com>
16939
16940         * config.gcc (powerpc*-*-linux*): Add support for little-endian
16941         multilibs to big-endian target and vice versa.
16942         * config/rs6000/t-linux64: Use := assignment on all vars.
16943         (MULTILIB_EXTRA_OPTS): Remove fPIC.
16944         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
16945         * config/rs6000/t-linux64le: New file.
16946         * config/rs6000/t-linux64bele: New file.
16947         * config/rs6000/t-linux64lebe: New file.
16948
16949 2013-09-02  Jan Hubicka  <jh@suse.cz>
16950
16951         * ipa-inline-transform.c (inline_transform): Do not
16952         optimize_inline_calls when not optimizing.
16953
16954 2013-09-02  Jan Hubicka  <jh@suse.cz>
16955
16956         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
16957         duplicated nodes for assembler names.
16958         * symtab.c (symtab_unregister_node): Do not attempt to unlink
16959         hard registers from assembler name hash.
16960
16961 2013-09-02  Jan Hubicka  <jh@suse.cz>
16962
16963         * ipa-split.c (execute_split_functions): Split externally visible
16964         functions called once.
16965
16966 2013-09-02  Martin Jambor  <mjambor@suse.cz>
16967
16968         PR ipa/58106
16969         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
16970         linked list.  When finding the correct duplicate, also consider also
16971         the caller in additon to its inlined_to node.
16972
16973 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
16974
16975         * config/aarch64/aarch64-simd-builtins.def
16976         (dup_lane_scalar): Remove.
16977         * config/aarch64/aarch64-simd.md
16978         (aarch64_simd_dup): Add 'w->w' alternative.
16979         (aarch64_dup_lane<mode>): Allow for VALL.
16980         (aarch64_dup_lane_scalar<mode>): Remove.
16981         (aarch64_dup_lane_<vswap_width_name><mode>): New.
16982         (aarch64_get_lane_signed<mode>): Add w->w altenative.
16983         (aarch64_get_lane_unsigned<mode>): Likewise.
16984         (aarch64_get_lane<mode>): Likewise.
16985         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
16986         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
16987         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
16988         (VCON): Change container of V2SF.
16989         (vswap_width_name): Likewise.
16990         * config/aarch64/arm_neon.h
16991         (__aarch64_vdup_lane_any): New.
16992         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
16993         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
16994         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
16995
16996 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
16997
16998         PR middle-end/56382
16999         * expr.c (emit_move_complex): Do not move complex FP values as parts if
17000         the source or the destination is a single hard register.
17001
17002 2013-09-02  Richard Biener  <rguenther@suse.de>
17003
17004         PR middle-end/57511
17005         * tree-scalar-evolution.c (instantiate_scev_name): Allow
17006         non-linear SCEVs.
17007
17008 2013-09-02  Richard Biener  <rguenther@suse.de>
17009
17010         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
17011         arithmetic to sizetype.
17012
17013 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
17014
17015         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
17016         Find auto-increment use both before and after candidate.
17017
17018 2013-09-02  Marek Polacek  <polacek@redhat.com>
17019
17020         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
17021
17022 2013-09-01  Jan Hubicka  <jh@suse.cz>
17023
17024         * Makefile.in: Add ipa-profile.o
17025         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
17026         * cgraph.c (struct cgraph_propagate_frequency_data,
17027         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
17028         ipa-profile.c; replace cgraph_ by ipa_ prefix.
17029         * cgraph.h (cgraph_propagate_frequency): Remove.
17030         * ipa-inline-analysis.c: Include ipa-utils.h;
17031         drop duplicated cfgloop.h.
17032         (inline_update_callee_summaries): Update.
17033         * ipa-profile.c: New file.
17034         * ipa-utils.h (ipa_propagate_frequency): Declare.
17035         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
17036         data-streamer.h, value-prof.h.
17037         (symtab_remove_unreachable_nodes): Update profile.
17038         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
17039         account_time_size, cmp_counts, dump_histogram,
17040         ipa_profile_generate_summary, ipa_profile_write_summary,
17041         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
17042         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
17043         Move to ipa-profile.c.
17044
17045 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
17046
17047         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
17048
17049 2013-09-01  Jan Hubicka  <jh@suse.cz>
17050
17051         * common.opt (fdevirtualize-speculatively): New function.
17052         * invoke.texi (fdevirtualize-speculatively): Document.
17053         * ipa-devirt.c: Include ipa-inline.h
17054         (likely_target_p): New function.
17055         (ipa_devirt): New function.
17056         (gate_ipa_devirt): New function.
17057         (pass_data_ipa_devirt): New static var.
17058         (pass_ipa_devirt): Likewise.
17059         (make_pass_ipa_devirt): New function.
17060         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
17061         (common_handle_option): Disable devirtualization when
17062         value range profiling is available.
17063         * passes.def (pass_ipa_devirt): Add.
17064         * timever.def (TV_IPA_DEVIRT): New timevar.
17065         * tree-pass.h (make_pass_ipa_devirt):
17066
17067 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
17068
17069         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
17070         include sanitize(undefined).
17071
17072 2013-08-31  Diego Novillo  <dnovillo@google.com>
17073
17074         * Makefile.in (TREE_CORE_H): Define.
17075         (TREE_H): Use.
17076         (GTFILES): Add tree-core.h.
17077         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
17078         size the array.
17079         * tree-core.h: New file.
17080         Move all data structures, enum, typedefs, global
17081         declarations and constants from ...
17082         * tree.h: ... here.
17083
17084 2013-08-31  Jan Hubicka  <jh@suse.cz>
17085
17086         * bulitins.c (expand_builtin): Do not early exit for gcov
17087         instrumented functions.
17088
17089 2013-08-31  Marek Polacek  <polacek@redhat.com>
17090
17091         * ubsan.c: Include tm_p.h.
17092
17093 2013-08-31  Jan Hubicka  <jh@suse.cz>
17094
17095         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
17096         warning.
17097
17098         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
17099         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
17100         * tree-cfg.c (verify_gimple_label): ... here.
17101         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
17102         (ipa_merge_profiles): New function.
17103         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
17104         (lto_input_function_body): Likewise.
17105         * ipa-utils.h (ipa_merge_profiles): Declare.
17106         * lto-streamer.h (lto_input_function_body): Update prototype.
17107         (emit_label_in_global_context_p): Remove.
17108         * lto-symtab.c: Include ipa-utils.h
17109         (lto_cgraph_replace_node): Use ipa_merge_profiles.
17110
17111 2013-08-31  Jan Hubicka  <jh@suse.cz>
17112
17113         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
17114
17115 2013-08-31  Jan Hubicka  <jh@suse.cz>
17116
17117         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
17118
17119 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
17120
17121         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
17122         "cmp" RTX before signed_comparison_operator check to account
17123         for "code" changes.
17124
17125 2013-08-30  Jan Hubicka  <jh@suse.cz>
17126
17127         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
17128         (detect_type_change_1): Rename to ...
17129         (detect_type_change): ... this one; early return on non-polymorphic
17130         types.
17131         (detect_type_change_ssa): Add comp_type parameter; update
17132         use of detect_type_change.
17133         (compute_complex_assign_jump_func): Add param_type parameter;
17134         update use of detect_type_change_ssa.
17135         (compute_complex_ancestor_jump_func): Likewise.
17136         (ipa_get_callee_param_type): New function.
17137         (ipa_compute_jump_functions_for_edge): Compute parameter type;
17138         update calls to the jump function computation functions.
17139
17140 2013-08-30  Teresa Johnson  <tejohnson@google.com>
17141             Steven Bosscher  <steven@gcc.gnu.org>
17142
17143         * cfgrtl.c (fixup_new_cold_bb): New routine.
17144         (commit_edge_insertions): Invoke fixup_partitions.
17145         (find_partition_fixes): New routine.
17146         (fixup_partitions): Ditto.
17147         (verify_hot_cold_block_grouping): Update comments.
17148         (rtl_verify_edges): Invoke find_partition_fixes.
17149         (rtl_verify_bb_pointers): Update comments.
17150         (rtl_verify_bb_layout): Ditto.
17151         * basic-block.h (probably_never_executed_edge_p): Declare.
17152         (fixup_partitions): Ditto.
17153         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
17154         * bb-reorder.c (sanitize_hot_paths): New function.
17155         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
17156         sanitize_hot_paths.
17157         * predict.c (probably_never_executed_edge_p): New routine.
17158         * cfg.c (check_bb_profile): Add partition insanity warnings.
17159
17160 2013-08-30  Meador Inge  <meadori@codesourcery.com>
17161
17162         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17163
17164 2013-08-30  Marek Polacek  <polacek@redhat.com>
17165
17166         * Makefile.in (ubsan.o): Add.
17167         (c-family/c-ubsan.o): Add.
17168         (builtins.o): Add ubsan.h dependency.
17169         * ubsan.h: New file.
17170         * ubsan.c: New file.
17171         * common.opt: Add -fsanitize=undefined option.
17172         (flag_sanitize): Add variable.
17173         (fsanitize=): Add option.  Add Driver.
17174         (fsanitize=thread): Remove option.
17175         (fsanitize=address): Likewise.
17176         (static-libubsan): New option.
17177         * doc/invoke.texi: Document the new flag and -static-libubsan.
17178         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
17179         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
17180         * builtin-attrs.def (ATTR_COLD): Define.
17181         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17182         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
17183         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
17184         * flag-types.h (sanitize_code): New enum.
17185         * opts.c (common_handle_option): Parse command line arguments
17186         of -fsanitize=.  Add -fsanitize=unreachable option.
17187         * varasm.c (get_variable_section): Adjust.
17188         (assemble_noswitch_variable): Likewise.
17189         (assemble_variable): Likewise.
17190         (output_constant_def_contents): Likewise.
17191         (categorize_decl_for_section): Likewise.
17192         (place_block_symbol): Likewise.
17193         (output_object_block): Likewise.
17194         * builtins.def: Likewise.
17195         * toplev.c (compile_file): Likewise.
17196         (process_options): Likewise.
17197         * cppbuiltin.c: Likewise.
17198         * tsan.c (tsan_pass): Likewise.
17199         (tsan_gate): Likewise.
17200         (tsan_gate_O0): Likewise.
17201         * cfgexpand.c (partition_stack_vars): Likewise.
17202         (expand_stack_vars): Likewise.
17203         (defer_stack_allocation): Likewise.
17204         (expand_used_vars): Likewise.
17205         * cfgcleanup.c (old_insns_match_p): Likewise.
17206         * asan.c (asan_finish_file): Likewise.
17207         (asan_instrument): Likewise.
17208         (gate_asan): Likewise.
17209         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
17210         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17211         (asan_global_struct): Use pointer_sized_int_node instead
17212         calling build_nonstandard_integer_type.
17213         (initialize_sanitizer_builtins): Likewise.
17214         (asan_finish_file): Likewise.
17215         * gcc.c: Document %{%:function(args):X}.
17216         (static_spec_functions): Add sanitize.
17217         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
17218         store funcval != NULL there.
17219         (do_spec_1): Adjust handle_spec_function caller.
17220         (handle_braces): Allow %:function(args) as condition.
17221         (sanitize_spec_function): New function.
17222         (ADD_STATIC_LIBUBSAN_LIBS): Define.
17223         (LIBUBSAN_SPEC): Likewise.
17224         (LIBUBSAN_EARLY_SPEC): Likewise.
17225         (SANITIZER_SPEC): Handle libubsan.
17226         (SANITIZER_EARLY_SPEC): Likewise.
17227         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
17228         instead of fsanitize=address.
17229         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
17230         instead of fsanitize=address*.
17231         * builtins.c: Include ubsan.h.
17232         (fold_builtin_0): Instrument __builtin_unreachable.
17233         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
17234         instead of flag_asan.
17235         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
17236         (pointer_sized_int_node): Define.
17237         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
17238
17239 2013-08-30  Mike Stump  <mikestump@comcast.net>
17240
17241         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
17242         with RE patterns.
17243
17244 2013-08-29  Jan Hubicka  <jh@suse.cz>
17245
17246         * cgraph.c (cgraph_function_body_availability): Handle weakref
17247         correctly.
17248         * passes.def: Remove pass_fixup_cfg.
17249         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
17250         track when we need to remove functions.
17251         (gate_ipa_inline): Execute inlining always; add comment why.
17252         (pass_data_ipa_inline): Remove TODO_remove_functions.
17253         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
17254         do not produce summaries.
17255         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
17256         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
17257         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
17258         constant pool and vtable.
17259
17260 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
17261
17262         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
17263         New arm_neon.h's internal macros to specify 64-bit constants.
17264         Avoid using stdint.h's macros.
17265
17266 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
17267
17268         * recog.c (verify_changes): Verify that changes[i].old is non-zero
17269         before applying REG_P.
17270
17271 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
17272
17273         PR tree-optimization/58277
17274         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
17275         after seeing too many stmts with vdef in between dombb and current
17276         bb, invalidate everything.
17277
17278 2013-08-30  Richard Biener  <rguenther@suse.de>
17279
17280         * fold-const.c (fold_single_bit_test): Fix overflow test.
17281
17282 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
17283
17284         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
17285         and which can live in a register, always retrieve the value on entry.
17286         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
17287         passed by invisible reference specially.
17288         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
17289         (vt_add_function_parameter): Correctly deal with a parameter passed by
17290         invisible reference.
17291
17292 2013-08-30  Jan Hubicka  <jh@suse.cz>
17293
17294         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
17295
17296 2013-08-30  Richard Biener  <rguenther@suse.de>
17297
17298         PR tree-optimization/58228
17299         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
17300         allow invariant loads in nested loop vectorization.
17301
17302 2013-08-30  Richard Biener  <rguenther@suse.de>
17303
17304         PR tree-optimization/58223
17305         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
17306         (has_anti_or_output_dependence): ... this and adjust to also
17307         look for output dependences.
17308         (mark_nodes_having_upstream_mem_writes): Adjust.
17309         (rdg_flag_uses): Likewise.
17310
17311 2013-08-30  Richard Biener  <rguenther@suse.de>
17312
17313         PR tree-optimization/58010
17314         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17315         assert that we have a loop-closed PHI.
17316
17317 2013-08-29  Jan Hubicka  <jh@suse.cz>
17318
17319         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
17320         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
17321         * lto-section-in.c (lto_free_function_in_decl_state): New function.
17322         (lto_free_function_in_decl_state_for_node): New function.
17323
17324 2013-08-29  Xinliang David Li  <davidxl@google.com>
17325
17326         * loop-unroll.c (report_unroll_peel): Minor message change.
17327         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
17328         Emit alignment peeling message with default -fopt-info.
17329         (vect_loop_versioning): Emit loop version info message.
17330         * tree-vectorizer.c (vectorize_loops): Minor message change.
17331         (execute_vect_slp): Ditto.
17332
17333 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
17334
17335         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
17336         of the clone from the DECL_NAME of the original function.
17337
17338 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
17339
17340         * passes.c (register_pass): Add overload.
17341         * tree-pass.h (register_pass): Forward declare it.  Add comment.
17342
17343 2013-08-29  Jan Hubicka  <jh@suse.cz>
17344
17345         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
17346         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
17347         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
17348         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17349         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
17350         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
17351         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17352         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
17353
17354 2013-08-29  Teresa Johnson  <tejohnson@google.com>
17355
17356         * dumpfile.c (dump_loc): Output column number.
17357         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
17358         * doc/invoke.texi: Document optall -fopt-info flag.
17359         * profile.c (read_profile_edge_counts): Use new dump framework.
17360         (compute_branch_probabilities): Ditto.
17361         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
17362         when pass not in any opt group.
17363         * pass_manager.h (pass_manager::get_pass_profile): New method.
17364         * value-prof.c (check_counter): Use new dump framework.
17365         (check_ic_target): Ditto.
17366         * coverage.c (get_coverage_counts): Ditto.
17367         (coverage_init): Setup new dump framework.
17368
17369 2013-08-29  Richard Biener  <rguenther@suse.de>
17370
17371         PR tree-optimization/58246
17372         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
17373         handle the dominance check inside a basic-block.
17374
17375 2013-08-29  Richard Biener  <rguenther@suse.de>
17376
17377         PR middle-end/57287
17378         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
17379         of default defs that appear in abnormal PHI nodes.
17380
17381 2013-08-29  Richard Biener  <rguenther@suse.de>
17382
17383         PR tree-optimization/57685
17384         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
17385         single-use operands to avoid exponential complexity.
17386
17387 2013-08-28  Dehao Chen  <dehao@google.com>
17388
17389         * ipa-inline.c (edge_badness): Fix integer underflow.
17390
17391 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
17392
17393         * gtm-builtins.def (_ITM_free): Declare leaf.
17394
17395 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
17396
17397         PR target/58067
17398         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
17399         (*tls_local_dynamic_base_64_largepic): Likewise.
17400         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
17401         Remove predicate from call operand.
17402         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
17403         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
17404
17405 2013-08-28  Jeff Law  <law@redhat.com>
17406
17407         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
17408         checks for the number of predecessors and successors allowed.
17409         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
17410         which require copying a joiner block if there is a request which
17411         is a subpath that requires no joiner block copying.
17412
17413 2013-08-28  Jan Hubicka  <jh@suse.cz>
17414
17415         * lto-streamer-out.c (DFS_write_tree_body): Drop
17416         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
17417         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
17418         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
17419         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
17420         Do not read DECL_ERROR_ISSUED.
17421         (unpack_ts_decl_with_vis_value_fields): Do not read
17422         DECL_DEFER_OUTPUT.
17423         (lto_input_ts_binfo_tree_pointers): Do not read
17424         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
17425         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
17426         write DECL_ERROR_ISSUED..
17427         (pack_ts_decl_with_vis_value_fields): Do not write
17428         DECL_DEFER_OUTPUT.
17429         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
17430         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
17431         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
17432         * tree.h (tree_decl_common): Update comment.
17433         (DECL_ERROR_ISSUED): Remove.
17434
17435 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
17436
17437         PR middle-end/58257
17438         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
17439
17440 2013-08-28  Jan Hubicka  <jh@suse.cz>
17441
17442         * builtins.def (free): Declare leaf.
17443
17444 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
17445
17446         * gdbhooks.py: New.
17447         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
17448         * configure: Regenerate.
17449
17450 2013-08-27  Martin Jambor  <mjambor@suse.cz>
17451
17452         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
17453         (ipa_ancestor_jf_data): Likewise.
17454         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
17455         (ipa_get_jf_pass_through_type_preserved): New function.
17456         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
17457         (ipa_get_jf_ancestor_type_preserved): New function.
17458         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
17459         (ipa_get_jf_ancestor_result): Likewise.
17460         (propagate_vals_accross_pass_through): Use
17461         ipa_get_jf_pass_through_result to do all the value mappings.
17462         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
17463         type_preserved flag.
17464         (ipa_set_jf_cst_copy): New function.
17465         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
17466         (ipa_set_jf_arith_pass_through): Likewise.
17467         (ipa_set_ancestor_jf): Likewise.
17468         (compute_complex_assign_jump_func): Set type_preserved instead of
17469         punting.
17470         (ipa_compute_jump_functions_for_edge): Likewise.
17471         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
17472         (update_jump_functions_after_inlining): Update type_preserved.
17473         Explicitely create jump functions when combining one with pass_through.
17474         (ipa_write_jump_function): Stream the type_preserved flags.
17475         (ipa_read_jump_function): Likewise.
17476
17477 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
17478             Aldy Hernandez  <aldyh@redhat.com>
17479
17480         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
17481         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
17482         * function.h (struct function): Add has_force_vect_loops and
17483         has_simduid_loops.
17484         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
17485         * gimple.c (gimple_build_omp_critical): Add KIND argument and
17486         handle it.
17487         * gimple.def: Update CLAUSES comments.
17488         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
17489         (gimple_build_omp_for): Add argument to prototype.
17490         (gimple_omp_for_kind): New.
17491         (gimple_omp_for_set_kind): New.
17492         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
17493         GOVD_DATA_SHARE_CLASS.
17494         (enum omp_region_type): Add ORT_SIMD.
17495         (gimple_add_tmp_var): Handle ORT_SIMD.
17496         (gimplify_var_or_parm_decl): Same.
17497         (is_gimple_stmt): Same.
17498         (omp_firstprivatize_variable): Same.
17499         (omp_add_variable): Only use splay_tree_insert if lookup failed.
17500         (omp_notice_variable): Handle ORT_SIMD.
17501         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
17502         (omp_check_private): Handle ORT_SIMD.
17503         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17504         OMP_CLAUSE_SAFELEN.
17505         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
17506         Handle OMP_CLAUSE_LASTPRIVATE.
17507         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17508         OMP_CLAUSE_SAFELEN.
17509         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
17510         (gimplify_expr): Handle OMP_SIMD.
17511         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
17512         (expand_GOMP_SIMD_VF): New.
17513         (expand_GOMP_SIMD_LAST_LANE): New.
17514         * internal-fn.def (GOMP_SIMD_LANE): New.
17515         (GOMP_SIMD_VF): New.
17516         (GOMP_SIMD_LAST_LANE): New.
17517         * omp-low.c: Include target.h.
17518         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
17519         OMP_CLAUSE_SAFELEN.
17520         (check_omp_nesting_restrictions): Same.
17521         (omp_max_vf): New.
17522         (lower_rec_simd_input_clauses): New.
17523         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
17524         OMP_CLAUSE_LINEAR.
17525         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
17526         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
17527         (expand_omp_build_assign): New.
17528         (expand_omp_for_init_counts): New.
17529         (expand_omp_for_init_vars): New.
17530         (extract_omp_for_update_vars): New.
17531         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
17532         and rewrite accordingly.
17533         (expand_omp_simd): New.
17534         (expand_omp_for): Use expand_omp_simd.
17535         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
17536         (lower_omp_for): Do not lower the body.
17537         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
17538         in their own loops.
17539         * tree-flow.h (find_omp_clause): Remove prototype.
17540         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
17541         forcing vectorization of the loop, or if flag_tree_vectorize.
17542         (gate_tree_if_conversion): Similarly.
17543         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
17544         gimple_build_omp_for.
17545         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
17546         * tree-parloops (create_parallel_loop): Pass kind argument to
17547         gimple_build_omp_for.
17548         * tree-pretty-print.c (dump_omp_clause): Add cases for
17549         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
17550         OMP_CLAUSE__SIMDUID_.
17551         (dump_generic_node): Handle OMP_SIMD.
17552         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
17553         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
17554         unroll OMP_SIMD loops here.
17555         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
17556         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
17557         loop->safelen.
17558         (vect_analyze_data_refs): Handle simd loops.
17559         * tree-vect-loop.c (vectorizable_live_operation): Handle
17560         IFN_GOMP_SIMD*.
17561         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
17562         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
17563         (vectorizable_load): Same.
17564         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
17565         (struct simduid_to_vf): New.
17566         (simduid_to_vf::hash): New.
17567         (simduid_to-vf::equal): New.
17568         (struct simd_array_to_simduid): New.
17569         (simd_array_to_simduid::hash): New.
17570         (simd_array_to_simduid::equal): New.
17571         (adjust_simduid_builtins): New.
17572         (struct note_simd_array_uses_struct): New.
17573         (note_simd_array_uses_cb): New.
17574         (note_simd_array_uses): New.
17575         (vectorize_loops): Handle simd hints and adjust simd builtins
17576         accordingly.
17577         * tree-vectorizer.h (struct _stmt_vec_info): Add
17578         simd_lane_access_p field.
17579         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
17580         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
17581         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
17582         (omp_clause_code_name): Same.
17583         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
17584         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
17585         * tree.def (OMP_SIMD): New entry.
17586         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
17587         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
17588         (OMP_CLAUSE_DECL): Adjust range for new clauses.
17589         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
17590         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
17591         (OMP_CLAUSE_LINEAR_STEP): New.
17592         (OMP_CLAUSE_SAFELEN_EXPR): New.
17593         (OMP_CLAUSE__SIMDUID__DECL): New.
17594         (find_omp_clause): New prototype.
17595
17596 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
17597
17598         * config/i386/driver-i386.c (host_detect_local_cpu): Update
17599         Haswell processor detection.
17600
17601 2013-08-27  Christian Widmer  <shadow@umbrox.de>
17602
17603         PR target/57927
17604         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
17605         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
17606         AVX2 capable processors.
17607
17608 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
17609
17610         * config/aarch64/arm_neon.h: Replace all inline asm implementations
17611         of vget_low_* with implementations in terms of other intrinsics.
17612
17613 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
17614
17615         PR middle-end/57219
17616         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
17617         values to -1, 0 and 1.
17618
17619 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
17620
17621         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
17622         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
17623         (<optab><mode>3_insn): Remove.
17624         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
17625         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17626         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17627         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
17628         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
17629         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
17630         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
17631         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
17632         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
17633         (ror<mode>3_insn): Likewise.
17634         * config/aarch64/predicates.md (aarch64_simd_register): New.
17635
17636 2013-08-27  Richard Biener  <rguenther@suse.de>
17637
17638         PR tree-optimization/57521
17639         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
17640         one edge is non-critical.
17641         (find_phi_replacement_condition): Make sure to use a non-critical
17642         edge.  Cleanup and remove old bug workarounds.
17643         (bb_postdominates_preds): Remove.
17644         (if_convertible_loop_p_1): Do not compute post-dominators.
17645         (combine_blocks): Do not free post-dominators.
17646         (main_tree_if_conversion): Likewise.
17647         (pass_data_if_conversion): Add TODO_verify_ssa.
17648
17649 2013-08-27  DJ Delorie  <dj@redhat.com>
17650
17651         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
17652
17653 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
17654
17655         * function.c (assign_parm_find_data_types): Set passed_mode and
17656         nominal_mode to the TYPE_MODE of nominal_type for the built
17657         pointer type in case of the struct-pass-by-reference.
17658
17659 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17660
17661         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
17662         (UINT16_TYPE): Change default to "unsigned int".
17663
17664         * config/avr/avr.opt (mfract-convert-truncate): New option.
17665         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
17666         is set, round negative fractional integers according to n1169
17667         when converting to integer types.
17668
17669 2013-08-26  Jan Hubicka  <jh@suse.cz>
17670
17671         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
17672         methods can not be called indirectly when their address is not taken.
17673
17674 2013-08-26  Jan Hubicka  <jh@suse.cz>
17675
17676         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
17677         ctor_for_folding.
17678
17679 2013-08-26  Jan Hubicka  <jh@suse.cz>
17680
17681         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
17682         can be unshared.
17683
17684 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17685
17686         * reload.c (find_valid_class): Allow classes that do not include
17687         FIRST_PSEUDO_REGISTER - 1.
17688
17689 2013-08-26  Jan Hubicka  <jh@suse.cz>
17690
17691         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
17692         fix edge count/frequency when speculation failed; fix type check
17693         for the direct call.
17694
17695 2013-08-26  Jan Hubicka  <jh@suse.cz>
17696
17697         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
17698
17699 2013-08-26  Jan Hubicka  <jh@suse.cz>
17700
17701         * ipa-inline-transform.c (inline_transform): Be ready for basic block
17702         to be changed by edge redirection.
17703
17704 2013-08-26  Jan Hubicka  <jh@suse.cz>
17705
17706         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
17707         formating; add sanity check.
17708         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
17709         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
17710         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
17711         (resolve_noninline_speculation): Update callee keys, too.
17712
17713 2013-08-26  Jan Hubicka  <jh@suse.cz>
17714
17715         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
17716         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
17717
17718 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17719
17720         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
17721         into proper place.
17722
17723 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
17724
17725         * config/i386/i386.c (ix86_debug_options): Remove prototype.
17726         (x86_64_elf_select_section): Ditto.
17727         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
17728         arguments.
17729         (ix86_pass_by_reference): Ditto.
17730         (output_set_got): Ditto.
17731         (ix86_unary_operator_ok): Ditto.
17732         (ix86_expand_builtin): Ditto.
17733
17734 2013-08-23  Jan Hubicka  <jh@suse.cz>
17735
17736         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
17737
17738 2013-08-23  Jan Hubicka  <jh@suse.cz>
17739
17740         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
17741         (tree_decl_with_vis): Add FINAL field.
17742
17743 2013-08-23  Jeff Law  <law@redhat.com>
17744
17745         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
17746         the debugging dump when the expression is fully redundant.
17747
17748 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17749
17750         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
17751         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
17752         * pretty-print.c (pp_formatted_text_data): Likewise.
17753         (pp_write_text_to_stream): Likewise.
17754         (pp_write_text_as_dot_label_to_stream): Likewise.
17755         (pp_append_r): Likewise.
17756         (pp_format): Likewise.
17757         (pp_flush): Likewise.
17758         (pp_clear_output_area): Likewise.
17759         (pp_append_text): Likewise.
17760         (pp_formatted_text): Likewise.
17761         (pp_remaining_character_count_for_line): Likewise.
17762         (pp_newline): Likewise.
17763         (pp_character): Likewise.
17764         (output_buffer::~output_buffer): Define.
17765         (pretty_printer::~pretty_printer): Destruct output buffer.
17766         * pretty-print.h (output_buffer::~output_buffer): Declare.
17767         (pretty_printer::~pretty_printer): Declare virtual.
17768
17769 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
17770
17771         PR other/57324
17772         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
17773         HOST_WIDE_INT_M1U): New macros.
17774         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
17775         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
17776         unsigned -1 for lshift.
17777         * cse.c (cse_insn): Likewise.
17778         * double-int.c (rshift_double, lshift_double): Likewise.
17779         * builtins.c (fold_builtin_bitop): Likewise.
17780         * combine.c (force_to_mode): Likewise.
17781         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
17782         * simplify-rtx.c (simplify_const_unary_operation,
17783         simplify_const_binary_operation): Likewise.
17784         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
17785         check_va_list_escapes): Likewise.
17786         * rtlanal.c (nonzero_bits1): Likewise.
17787         * expmed.c (expand_smod_pow2): Likewise.
17788         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
17789
17790 2013-08-23  Jan Hubicka  <jh@suse.cz>
17791
17792         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
17793         as having address taken.
17794
17795 2013-08-23  Jan Hubicka  <jh@suse.cz>
17796
17797         * ipa-utils.h (method_class_type): Declare.
17798         * ipa-devirt.c (method_class_type): Export.
17799
17800         * cgraphunit.c (analyze_functions): Do basic devirtualization;
17801         do not walk base classes of anonymous types.
17802
17803 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
17804
17805         PR rtl-optimization/58220
17806         PR regression/58221
17807         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
17808         handle SEQUENCE insns properly.
17809
17810 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17811
17812         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
17813         definition.
17814         (pp_newline_and_indent): Likewise.
17815         (pp_separate_with): Likewise.
17816         * pretty-print.c (pp_newline_and_flush): Define.
17817         (pp_newline_and_indent): Likewise.
17818         (pp_separate_with): Likewise.
17819
17820 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
17821
17822         PR target/58218
17823         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
17824         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
17825
17826 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
17827
17828         * config/i386/predicates.md (ext_sse_reg_operand): New.
17829         * config/i386/i386.md (*movti_internal): Use
17830         predicate to determine if EVEX is needed.
17831         (*movsi_internal): Ditto.
17832         (*movdf_internal): Ditto.
17833         (*movsf_internal): Ditto.
17834         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
17835
17836 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
17837
17838         PR tree-optimization/58209
17839         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
17840         (find_tail_calls): Give up for pointer result types if m is non-NULL.
17841         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
17842         emit POINTER_PLUS_EXPR.
17843         (create_tailcall_accumulator): For pointer result type accumulate in
17844         sizetype type.
17845
17846 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
17847
17848         * configure.ac: Add backslashes missing from the last change.
17849         * configure: Regenerate.
17850
17851 2013-08-22  Jan Hubicka  <jh@susue.cz>
17852
17853         * ipa.c (function_and_variable_visibility): First remember function
17854         was global and then make it local.
17855
17856 2013-08-22  Julian Brown  <julian@codesourcery.com>
17857
17858         * configure.ac: Add aarch64 to list of arches which use "nop" in
17859         debug_line test.
17860         * configure: Regenerate.
17861
17862 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17863
17864         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
17865         gnu_libc_has_function.
17866         * config/s390/tpf.h: Likewise.
17867
17868 2013-08-22  Jan Hubicka  <jh@susue.cz>
17869
17870         * timevar.c (validate_phases): Add cast.
17871
17872 2013-08-22  Jan Hubicka  <jh@susue.cz>
17873
17874         * timevar.c (validate_phases): Use size_t for memory.
17875         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
17876
17877 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17878
17879         * pretty-print.h (output_buffer::output_buffer): Declare.
17880         (pretty_printer::pretty_printer): Likewise.
17881         (pp_construct): Remove.
17882         * pretty-print.c (output_buffer::output_buffer): Define.
17883         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
17884         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
17885         (print_gimple_expr): Likewise.
17886         (print_gimple_seq): Likewise.
17887         (gimple_dump_bb): Likewise.
17888         * sched-vis.c (dump_value_slim): Likewise.
17889         (dump_insn_slim): Likewise.
17890         (dump_rtl_slim): Likewise.
17891         (str_pattern_slim): Likewise.
17892         * tree-mudflap.c (mf_varname_tree): Likewise.
17893         * graph.c (print_graph_cfg): Likewise.
17894         (start_graph_dump): Likewise.
17895         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
17896         placement-new.
17897         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
17898         pretty printer initialization.
17899         * coretypes.h (diagnostic_context): Remove superflous type alias
17900         declaration.
17901         (pretty_printer): Likewise.  Declare directly as a class.
17902         (pretty_print_info): Remove declaration as class.
17903         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
17904         and pp_clear_output_area.
17905         (asan_add_global): Likewise.
17906
17907 2013-08-22  Jan Hubicka  <jh@suse.cz>
17908
17909         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
17910         * ipa-utils.h (update_type_inheritance_graph): Declare.
17911         (possible_polymorphic_call_target_p): Declare.
17912         (possible_polymorphic_call_target_p): New.
17913         * ipa-devirt.c: Update toplevel comments.
17914         (cached_polymorphic_call_targets): Move up.
17915         (odr_type_d): Move ID down.
17916         (polymorphic_type_binfo_p): Update comment.
17917         (odr_hasher::remove): Likewise;
17918         (get_odr_type): Set anonymous_namespace.
17919         (dump_odr_type): Dump it.
17920         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
17921         (maybe_record_node): Record node in cached_polymorphic_call_targets.
17922         (record_binfo): Add comment.
17923         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
17924         built.
17925         (devirt_node_removal_hook): Do not iCE when cache is freed.
17926         (possible_polymorphic_call_target_p): New predicate.
17927         (update_type_inheritance_graph): New function.
17928
17929 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17930             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17931             Sergey Lega  <sergey.s.lega@intel.com>
17932             Anna Tikhonova  <anna.tikhonova@intel.com>
17933             Ilya Tocar  <ilya.tocar@intel.com>
17934             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17935             Ilya Verbin  <ilya.verbin@intel.com>
17936             Kirill Yukhin  <kirill.yukhin@intel.com>
17937             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17938
17939         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
17940         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
17941         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
17942         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
17943         (OPTION_MASK_ISA_AVX2_UNSET): Update.
17944         (OPTION_MASK_ISA_AVX512F_UNSET): New.
17945         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
17946         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
17947         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
17948         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
17949         OPT_mavx512pf, OPT_mavx512er cases.
17950         * config/i386/constraints.md (v): New constraint.
17951         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
17952         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
17953         (bit_AVX512CD): New.
17954         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17955         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
17956         * config/i386/i386-c.c (ix86_target_macros_internal):
17957         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
17958         __AVX512PF__.
17959         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
17960         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
17961         * config/i386/i386.c (regclass_map, dbx_register_map)
17962         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
17963         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
17964         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
17965         -mavx512pf options.
17966         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
17967         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
17968         -mavx512pf options.  Fix formatting.
17969         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
17970         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
17971         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
17972         -mavx512cd, -mavx512pf options.
17973         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
17974         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
17975         (ix86_preferred_output_reload_class): Replace SSE_REGS with
17976         ALL_SSE_REGS.
17977         (ix86_hard_regno_mode_ok): Support 512-bit registers.
17978         (ix86_set_reg_reg_cost): Ditto.
17979         (x86_order_regs_for_local_alloc): Ditto.
17980         (MAX_VECT_LEN): Extend to 64-byte.
17981         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
17982         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
17983         (TARGET_AVX512ER, TARGET_AVX512CD): New.
17984         (BIGGEST_ALIGNMENT): Extend to 512-bits.
17985         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
17986         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
17987         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
17988         (SSE_REG_MODE_P): Support new modes.
17989         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
17990         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
17991         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
17992         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
17993         (REG_CLASS_CONTENTS): Add new registers.
17994         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
17995         (EXT_REX_SSE_REGNO_P): New.
17996         (HI_REGISTER_NAMES): Add new registers.
17997         * config/i386/i386.md: Define constants for new registers.
17998         (mode): Add new 512-bit modes.
17999         (prefix): Support evex prefix.
18000         (isa): Support avx512f, noavx512f, fma_avx512f.
18001         (ssemodesuffix): Add new 512-bit modes.
18002         (movxi): New.
18003         (*movxi_internal_avx512f): Ditto.
18004         (*movdi_internal): Replace constraint "x" with the new constraint "v".
18005         Support MODE_XI.
18006         (*movsi_internal): Likewise.
18007         (*movdf_internal): Likewise.
18008         (*movsf_internal): Likewise.
18009         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
18010         (<code><mode>3): Likewise.
18011         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
18012         New.
18013         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
18014         with the new constraint "v".
18015         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
18016         modes.
18017         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
18018         with the new constraint "v".
18019         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
18020         (<sse2>_storedqu<avxsizesuffix>): Likewise.
18021         (*<plusminus_insn><mode>3): Likewise.
18022         (<sse>_vm<plusminus_insn><mode>3): Likewise.
18023         (*mul<mode>3): Likewise.
18024         (<sse>_vmmul<mode>3): Likewise.
18025         (<sse>_div<mode>3): Likewise.
18026         (<sse>_vmdiv<mode>3): Likewise.
18027         (<sse>_sqrt<mode>2): Likewise.
18028         (<sse>_vmsqrt<mode>2): Likewise.
18029         (*<code><mode>3_finite): Likewise.
18030         (*<code><mode>3) <smaxmin>: Likewise.
18031         (<sse>_vm<code><mode>3): Likewise.
18032         (*<code><mode>3) <any_logic>: Likewise.
18033         (*fma_fmadd_<mode>): Likewise.
18034         (*fma_fmsub_<mode>): Likewise.
18035         (*fma_fnmadd_<mode>): Likewise.
18036         (*fma_fnmsub_<mode>): Likewise.
18037         (*fma_fmaddsub_<mode>): Likewise.
18038         (*fma_fmsubadd_<mode>): Likewise.
18039         (*fmai_fmadd_<mode>): Likewise.
18040         (*fmai_fmsub_<mode>): Likewise.
18041         (*fmai_fnmadd_<mode>): Likewise.
18042         (*fmai_fnmsub_<mode>): Likewise.
18043         (sse_cvtsi2ss): Likewise.
18044         (sse_cvtsi2ssq): Likewise.
18045         (sse_cvtss2si): Likewise.
18046         (sse_cvtss2si_2): Likewise.
18047         (sse_cvtss2siq): Likewise.
18048         (sse_cvtss2siq_2): Likewise.
18049         (sse_cvttss2si): Likewise.
18050         (sse_cvtss2siq_2): Likewise.
18051         (float<sseintvecmodelower><mode>2): Likewise.
18052         (sse2_cvtsd2si_2): Likewise.
18053         (sse2_cvtsd2siq_2): Likewise.
18054         (*<plusminus_insn><mode>3): Likewise.
18055         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
18056         (*<sse4_1_avx2>_mul<mode>3): Likewise.
18057         (ashr<mode>3): Likewise.
18058         (<shift_insn><mode>3): Likewise.
18059         (avx2_<code><mode>3): Likewise.
18060         (*avx2_<code><mode>3): Likewise.
18061         (*andnot<mode>3): Likewise.
18062         (*<code><mode>3) <any_logic>: Likewise.
18063         (abs<mode>2): Likewise.
18064         (avx2_permvar<mode>): Likewise.
18065         (avx2_perm<mode>_1): Likewise.
18066         (*avx_vpermilp<mode>): Likewise.
18067         (avx_vpermilvar<mode>3): Likewise.
18068         (avx2_ashrv<mode>): Likewise.
18069         (avx2_<shift_insn>v<mode>): Likewise.
18070         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
18071         -mavx512cd.
18072         * doc/rtl.texi: Document XImode.
18073
18074 2013-08-21  Jeff Law  <law@redhat.com>
18075
18076         * tree-flow.h (register_jump_thread): Pass vector of edges
18077         instead of each important edge.
18078         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
18079         thread path into a vector and pass that to register_jump_thread.
18080         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
18081         passed in edge vector to the current 3-edge form.
18082
18083         Revert:
18084         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
18085
18086         * dce.c (fini_dce): Call df_analyze again just in case
18087         delete_unmarked_insns removed anything.
18088
18089 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
18090
18091         * reload.h (struct reg_equivs): Rename to ..
18092         (struct reg_equivs_s): .. this.
18093
18094 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
18095
18096         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
18097
18098 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18099
18100         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
18101
18102 2013-08-21  Jeff Law  <law@redhat.com>
18103
18104         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
18105         simplify assignments too.  If the RHS collapses to a singleton
18106         range, then return the value for the range.
18107
18108 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
18109
18110         * config/i386/sse.md (V16): Rename to...
18111         (VMOVE): this.
18112         (mov<mode>): Update iterator name.
18113         (*mov<mode>_internal): Ditto.
18114         (push<mode>1): Ditto.
18115         (movmisalign<mode>): Ditto.
18116
18117 2013-08-20  Jan Hubicka  <jh@suse.cz>
18118
18119         PR bootstrap/58186
18120         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
18121         entry for direct edges.
18122         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
18123
18124 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18125
18126         Revert my last two changes, r201865 and r201864:
18127
18128         Revert r201865:
18129         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18130
18131         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18132         instances can own GC refs.
18133
18134         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18135         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18136         (gcc::context::gt_pch_nx): Likewise.
18137         (gcc::context::gt_pch_nx):  Likewise.
18138         * ggc.h (gt_ggc_mx <T>): New.
18139         (gt_pch_nx_with_op <T>): New.
18140         (gt_pch_nx <T>): New.
18141         * passes.c (opt_pass::gt_ggc_mx): New.
18142         (opt_pass::gt_pch_nx): New.
18143         (opt_pass::gt_pch_nx_with_op): New.
18144         (pass_manager::gt_ggc_mx): New.
18145         (pass_manager::gt_pch_nx): New.
18146         (pass_manager::gt_pch_nx_with_op): New.
18147         (pass_manager::operator new): Use
18148         ggc_internal_cleared_alloc_stat rather than xcalloc.
18149         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18150         (pass_manager::gt_ggc_mx): New.
18151         (pass_manager::gt_pch_nx): New.
18152         (pass_manager::gt_pch_nx_with_op): New.
18153         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18154         (opt_pass::operator new): New.
18155         (opt_pass::gt_ggc_mx): New.
18156         (opt_pass::gt_pch_nx): New.
18157         (opt_pass::gt_pch_nx_with_op): New.
18158
18159         Revert r201864:
18160         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18161
18162         * Makefile.in (GTFILES): Add context.h.
18163         * context.c (gcc::context::operator new): New.
18164         (gcc::context::gt_ggc_mx): New.
18165         (gcc::context::gt_pch_nx): New.
18166         (gcc::context::gt_pch_nx): New.
18167         * context.h (gcc::context): Add GTY((user)) marking.
18168         (gcc::context::operator new): New.
18169         (gcc::context::gt_ggc_mx): New.
18170         (gcc::context::gt_pch_nx): New.
18171         (gcc::context::gt_pch_nx): New.
18172         (g): Add GTY marking.
18173         (gt_ggc_mx (gcc::context *)): New.
18174         (gt_pch_nx (gcc::context *)): New.
18175         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18176         void *cookie)): New.
18177         * gengtype.c (open_base_files) <ifiles>: Add context.h.
18178
18179 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
18180
18181         * dce.c (fini_dce): Call df_analyze again just in case
18182         delete_unmarked_insns removed anything.
18183
18184 2013-08-20  Teresa Johnson  <tejohnson@google.com>
18185
18186         PR rtl-optimizations/57451
18187         * final.c (reemit_insn_block_notes): Prevent lexical blocks
18188         from crossing split section boundaries.
18189
18190 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
18191
18192         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
18193         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
18194         with MULTLIB_DEFAULTS.
18195
18196 2013-08-20  Nick Clifton  <nickc@redhat.com>
18197
18198         * target.def (narrow_volatile_bitfield): Note that the default
18199         value is false, not !TARGET_STRICT_ALIGN.
18200         * doc/tm.texi: Regenerate.
18201
18202 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
18203
18204         Fix LIB_SPEC for systems without libpthread.
18205
18206         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
18207         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
18208         for Android.
18209         * config/i386/linux-common.h: Likewise.
18210         * config/mips/linux-common.h: Likewise.
18211
18212 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18213
18214         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
18215         checks.
18216
18217 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18218
18219         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18220         instances can own GC refs.
18221
18222         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18223         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18224         (gcc::context::gt_pch_nx): Likewise.
18225         (gcc::context::gt_pch_nx):  Likewise.
18226         * ggc.h (gt_ggc_mx <T>): New.
18227         (gt_pch_nx_with_op <T>): New.
18228         (gt_pch_nx <T>): New.
18229         * passes.c (opt_pass::gt_ggc_mx): New.
18230         (opt_pass::gt_pch_nx): New.
18231         (opt_pass::gt_pch_nx_with_op): New.
18232         (pass_manager::gt_ggc_mx): New.
18233         (pass_manager::gt_pch_nx): New.
18234         (pass_manager::gt_pch_nx_with_op): New.
18235         (pass_manager::operator new): Use
18236         ggc_internal_cleared_alloc_stat rather than xcalloc.
18237         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18238         (pass_manager::gt_ggc_mx): New.
18239         (pass_manager::gt_pch_nx): New.
18240         (pass_manager::gt_pch_nx_with_op): New.
18241         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18242         (opt_pass::operator new): New.
18243         (opt_pass::gt_ggc_mx): New.
18244         (opt_pass::gt_pch_nx): New.
18245         (opt_pass::gt_pch_nx_with_op): New.
18246
18247 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18248
18249         * Makefile.in (GTFILES): Add context.h.
18250         * context.c (gcc::context::operator new): New.
18251         (gcc::context::gt_ggc_mx): New.
18252         (gcc::context::gt_pch_nx): New.
18253         (gcc::context::gt_pch_nx): New.
18254         * context.h (gcc::context): Add GTY((user)) marking.
18255         (gcc::context::operator new): New.
18256         (gcc::context::gt_ggc_mx): New.
18257         (gcc::context::gt_pch_nx): New.
18258         (gcc::context::gt_pch_nx): New.
18259         (g): Add GTY marking.
18260         (gt_ggc_mx (gcc::context *)): New.
18261         (gt_pch_nx (gcc::context *)): New.
18262         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18263         void *cookie)): New.
18264         * gengtype.c (open_base_files) <ifiles>: Add context.h.
18265
18266 2013-08-20  Alan Modra  <amodra@gmail.com>
18267
18268         PR target/57865
18269         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
18270         (rs6000_emit_epilogue): Likewise.
18271
18272 2013-08-19  Dehao Chen  <dehao@google.com>
18273
18274         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
18275
18276 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
18277             Jakub Jelinek  <jakub@redhat.com>
18278
18279         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
18280         (BUILT_IN_FABSD64): Likewise.
18281         (BUILT_IN_FABSD128): Likewise.
18282         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
18283         (fold_builtin_1): Likewise.
18284         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
18285         destination and source operands.
18286         (*abstd2_fpr): Likewise.
18287         (*nabstd2_fpr): Likewise.
18288
18289 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
18290
18291         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
18292         JUMP_P and INSN_P.
18293
18294 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
18295
18296         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
18297         incomplete.
18298
18299 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18300
18301         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
18302         * builtins.c (default_libc_has_function): New.
18303         (gnu_libc_has_function): Ditto.
18304         (no_c99_libc_has_function): Ditto.
18305         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
18306         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
18307         (fold_builtin_sincos): Likewise.
18308         (fold_builtin_cexp): Likewise.
18309         * builtins.def (DEF_C94_BUILTIN): Likewise.
18310         (DEF_C99_BUILTIN): Likewise.
18311         (DEF_C99_C90RES_BUILTIN): Likewise.
18312         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
18313         definitions to using this define.
18314         * config/darwin-protos.h (darwin_libc_has_function): New.
18315         * config/darwin.c (darwin_libc_has_function): Ditto.
18316         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
18317         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
18318         * config/darwin.h: Ditto.
18319         * config/elfos.h: Ditto.
18320         * config/freebsd.h: Ditto.
18321         * config/i386/cygming.h: Ditto.
18322         * config/i386/djgpp.h: Ditto.
18323         * config/i386/i386-interix.h: Ditto.
18324         * config/microblaze/microblaze.h: Ditto.
18325         * config/mmix/mmix.h: Ditto.
18326         * config/gnu-user.h: Ditto.
18327         * config/ia64/hpux.h: Ditto.
18328         * config/pa/pa-hpux.h: Ditto.
18329         * config/pdp11/pdp11.h: Ditto.
18330         * config/picochip/picochip.h: Ditto.
18331         * config/linux.h: Ditto.
18332         * config/netbsd.h: Ditto.
18333         * config/openbsd.h: Ditto.
18334         * config/rs6000/aix43.h: Ditto.
18335         * config/rs6000/aix51.h: Ditto.
18336         * config/rs6000/aix52.h: Ditto.
18337         * config/rs6000/aix53.h: Ditto.
18338         * config/rs6000/aix61.h: Ditto.
18339         * config/rs6000/darwin.h: Ditto.
18340         * config/rs6000/linux.h: Ditto.
18341         * config/rs6000/linux64.h: Ditto.
18342         * config/s390/tpf.h: Ditto.
18343         * config/sol2-10.h: Ditto.
18344         * config/sol2.h: Ditto.
18345         * config/vms/vms.h: Ditto.
18346         * config/vxworks.h: Ditto.
18347         * config/linux-android.c (linux_android_libc_has_function):
18348         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
18349         * config/linux-protos.h (linux_android_libc_has_function):
18350         New declaration.
18351         * config/i386/i386.c (ix86_libc_has_function): New.
18352         * config/i386/i386-protos.h
18353         (ix86_libc_has_function): New declaration.
18354         * config/i386/i386.md
18355         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
18356         ("isinf<mode>2): Likewise.
18357         * convert.c (convert_to_integer): Using new target hook
18358         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
18359         TARGET_C99_FUNCTIONS.
18360         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
18361         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
18362         * coretypes.h (function_class): New enum for different
18363         classes of functions.
18364         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
18365         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
18366         (TARGET_HAS_SINCOS): Likewise.
18367         (TARGET_LIBC_HAS_FUNCTION): New.
18368         * doc/tm.texi: Regenerated.
18369         * targhooks.h (default_libc_has_function): New declaration.
18370         (no_c99_libc_has_function): Ditto.
18371         (gnu_libc_has_function): Ditto.
18372         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
18373         and TARGET_HAS_SINCOS.
18374
18375 2013-08-18  Jan Hubicka  <jh@suse.cz>
18376
18377         * Makeifle-in (ipa-devirt.o): New.
18378         (GTFILES): Add ipa-utils.h and ipa-devirt.c
18379         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
18380         (analyze_functions): Look into possible targets of polymorphic call.
18381         * dumpfile.c (dump_files): Add type-inheritance dump.
18382         * dumpfile.h (TDI_inheritance): New.
18383         * ipa-devirt.c: New file.
18384         * ipa-utils.h (odr_type_d): Forward declare.
18385         (odr_type): New type.
18386         (build_type_inheritance_graph): Declare.
18387         (possible_polymorphic_call_targets): Declare and introduce inline
18388         variant when only edge is pased.
18389         (dump_possible_polymorphic_call_targets): Likewise.
18390         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
18391         * tree.c (type_in_anonymous_namespace_p): Break out from ...
18392         (types_same_for_odr): ... here.
18393         * tree.h (type_in_anonymous_namespace_p): Declare.
18394
18395 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
18396
18397         PR tree-optimization/58006
18398         * tree-parloops.c (take_address_of): Don't ICE if get_name
18399         returns NULL.
18400         (eliminate_local_variables_stmt): Remove clobber stmts.
18401
18402 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
18403
18404         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
18405         error message is issued for an alias to undefined symbol.
18406
18407 2013-08-18  Jan Hubicka  <jh@suse.cz>
18408
18409         * cgraph.c (cgraph_create_indirect_edge): Discover
18410         polymorphic calls and record basic info into indirect_info.
18411         * gimple-fold.c (gimple_fold_call): When doing BINFO based
18412         devirtualization, ignore objc function calls.
18413         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
18414         call with no parm index info.
18415         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
18416         * tree.c (virtual_method_call_p): New function.
18417         * tree.h (virtual_method_call_p): Declare.
18418
18419 2013-08-16  Jan Hubicka  <jh@suse.cz>
18420
18421         PR middle-end/58179
18422         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
18423
18424 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
18425
18426         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
18427         attribute.
18428
18429 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
18430
18431         * gengtype.c (type_for_name): Add special-case support for
18432         locating types within the "gcc::" namespace.
18433         (open_base_files): Emit a "using namespace gcc" directive.
18434
18435 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
18436
18437         PR target/58160
18438         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
18439         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
18440
18441         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
18442         array instead of each individual operand as a separate argument.
18443         (emit_fusion_gpr_load): Likewise.
18444         (expand_fusion_gpr_load): Add new function declaration.
18445
18446         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
18447         signature to have the operands passed as an array, instead of as
18448         separate arguments.  Allow ZERO_EXTEND to be in the memory
18449         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
18450         depend on the register live/dead flags when peepholes are run.
18451         (expand_fusion_gpr_load): New function to be called from the
18452         peephole2 pass, to change the register that addis sets to be the
18453         target register.
18454         (emit_fusion_gpr_load): Change the calling signature to have the
18455         operands passed as an array, instead of as separate arguments.
18456         Allow ZERO_EXTEND to be in the memory address, and also
18457         SIGN_EXTEND if -mpower8-fusion-sign.
18458
18459         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
18460         unspec enumeration.
18461         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
18462         adjust the register addis loads up in the peephole2 pass.  Do not
18463         depend on the register live/dead state when the peephole pass is done.
18464
18465 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
18466
18467         * gengtype.c (create_user_defined_type): Ensure that the kind
18468         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
18469         declaration is seen before the GTY((user)) marking.
18470
18471 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18472
18473         PR target/58105
18474         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
18475
18476 2013-08-16  Jan Hubicka  <jh@suse.cz>
18477
18478         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
18479         arugment expected_type.
18480         (gimple_fold_call): Use it.
18481         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
18482         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
18483         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
18484         (try_make_edge_direct_virtual_call): Likewise.
18485         * tree.c (obj_type_ref_class): New.
18486         * tree.h (obj_type_ref_class): Use it.
18487
18488 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18489
18490         * sched-vis.c (rtl_slim_pp_initialized): Remove.
18491         (rtl_slim_pp): Likewise.
18492         (init_rtl_slim_pretty_print): Likewise.
18493         (dump_value_slim):  Don't call it.  Use local pretty printer.
18494         (dump_insn_slim): Likewise.
18495         (dump_rtl_slim): Likewise.
18496         (str_pattern_slim): Likewise.
18497         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
18498         Simplify.
18499
18500 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
18501
18502         PR tree-optimization/58164
18503         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
18504         walk gimple_goto_dest of GIMPLE_GOTO.
18505
18506         PR tree-optimization/58165
18507         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
18508         bi_call must be the last stmt in a bb, don't split_block, instead
18509         use fallthru edge from it and give up if there is none.
18510         Release conds vector when returning early.
18511
18512 2013-08-14  Xinliang David Li  <davidxl@google.com>
18513
18514         * config/i386/i386.c (ix86_option_override_internal):
18515         Remove unused variable and field.
18516
18517 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18518
18519         PR target/57949
18520         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
18521         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
18522         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
18523         and Linux, correct BLKmode alignment when 128-bit alignment is
18524         required and compatibility flag is not set.
18525         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
18526         for zero-size arguments when compatibility flag is not set.
18527
18528 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
18529
18530         PR tree-optimization/58145
18531         * tree-sra.c (build_ref_for_offset): If prev_base has
18532         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
18533
18534 2013-08-14  Xinliang David Li  <davidxl@google.com>
18535
18536         * config/i386/i386.c (ix86_option_override_internal):
18537         Fix uninitialized variable error.
18538
18539 2013-08-14  Xinliang David Li  <davidxl@google.com>
18540
18541         * config/i386/i386.opt: Define two new options.
18542         * config/i386/x86-tune.def: Add arch selector field in macros.
18543         * config/i386/i386.h: Adjust macro definition.
18544         * config/i386/i386.c (ix86_option_override_internal):
18545         Refactor the code.
18546         (parse_mtune_ctrl_str): New function.
18547         (set_ix86_tune_features): New function.
18548         (ix86_function_specific_restore): Call the new helper function.
18549
18550 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
18551
18552         PR rtl-optimization/57662
18553         * sel-sched.c (code_motion_process_successors): When the current insn
18554         is removed after the recursive traversal, break from the loop.
18555         Add comments and debug printouts.
18556
18557 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
18558             Alexandre Oliva  <aoliva@redhat.com>
18559
18560         PR target/58067
18561         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
18562         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
18563         there also UNSPEC_PLTOFF.
18564
18565 2013-08-14  Marek Polacek  <polacek@redhat.com>
18566
18567         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
18568         NUM_CONDITIONS bit positions.
18569
18570 2013-08-13  Cary Coutant  <ccoutant@google.com>
18571
18572         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
18573         (attr_checksum): Hash vector contents instead of pointer.
18574         (attr_checksum_ordered): Likewise.
18575
18576 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
18577
18578         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
18579         when Pmode != word_mode.  Add length_address attribute.
18580         (sse3_monitor_<mode>): Merge from sse3_monitor and
18581         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
18582         Pmode != word_mode.  Update insn length attribute.
18583         * config/i386/i386.c (ix86_option_override_internal): Update
18584         ix86_gen_monitor selection for merged sse3_monitor insn.
18585
18586 2013-08-13  Julian Brown  <julian@codesourcery.com>
18587
18588         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18589         perform invalid legitimization on greater-than-word-size modes for
18590         TARGET_E500_DOUBLE.
18591
18592 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
18593
18594         * ira.c (setup_class_translate_array): Use aclass instead of cl
18595         for classes not fully covered by allocno classes.
18596
18597 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
18598
18599         PR tree-optimization/57661
18600         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
18601         * tree-inline.c (tree_function_versioning): Initialize it.
18602         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
18603         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
18604         that is not being copied.
18605
18606         PR sanitizer/56417
18607         * asan.c (instrument_strlen_call): Fix typo in comment.
18608         Use char * type even for the lhs of POINTER_PLUS_EXPR.
18609
18610 2013-08-13  Steve Ellcey  <sellcey@mips.com>
18611
18612         * config/mips/mips.md (prefetch): Use lw instead of ld on
18613         loongson in 32bit mode.
18614
18615 2013-08-13  Nick Clifton  <nickc@redhat.com>
18616
18617         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
18618
18619 2013-08-13  Jan Hubicka  <jh@suse.cz>
18620
18621         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
18622         introduced edge; fix typo in sanity check.
18623         (cgraph_resolve_speculation): Export; improve diagnostic.
18624         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
18625         speculation at type mismatch.
18626         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
18627         (cgraph_resolve_speculation): Declare.
18628         (symtab_can_be_discarded): New function.
18629         * value-prof.c (gimple_ic_transform): Remove actual transform code.
18630         * ipa-inline-transform.c (speculation_removed): New global var.
18631         (clone_inlined_nodes): See if speculation can be removed.
18632         (inline_call): If speculations was removed, we growths may not match.
18633         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
18634         (speculation_useful_p): New function.
18635         (resolve_noninline_speculation): New function.
18636         (inline_small_functions): Resolve useless speculations.
18637         * ipa-inline.h (speculation_useful_p): Declare
18638         * ipa.c (can_replace_by_local_alias): Simplify.
18639         (ipa_profile): Produce speculative calls in non-lto, too;
18640         add simple cost model; produce local aliases.
18641
18642 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
18643
18644         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
18645         PASS_MANAGER_H.
18646
18647 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
18648
18649         * config/i386/i386.c (ix86_function_versions): Use error + inform.
18650
18651 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
18652
18653         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
18654         iterator instead of X87MODEF.
18655
18656 2013-08-12  Perez Read  <netfirewall@gmail.com>
18657
18658         PR target/58132
18659         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
18660         operand 0 for intel asm alternative.
18661         (*movabs<mode>_2): Ditto for operand 1.
18662
18663 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
18664
18665         * config/aarch64/arm_none.h
18666         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
18667
18668 2013-08-12  Nick Clifton  <nickc@redhat.com>
18669
18670         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
18671
18672 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
18673
18674         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
18675         expand for QI/HImode operand to produce more effictive code for
18676         unsigned char(short) --> float(double) conversion.
18677
18678 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
18679
18680         * doc/invoke.texi: Mention that -ftls-model does not force the final
18681         model.
18682
18683 2013-08-12  Marek Polacek  <polacek@redhat.com>
18684             Marc Glisse  <marc.glisse@inria.fr>
18685
18686         PR tree-optimization/57980
18687         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
18688         when creating -1 constant.
18689
18690 2013-08-10  Jan Hubicka  <jh@suse.cz>
18691
18692         Workaround binutils PR14342.
18693         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
18694         (gimple_init_edge_profiler): Likewise.
18695         (gimple_gen_ic_func_profiler): Likewise.
18696
18697 2013-08-09  Jan Hubicka  <jh@suse.cz>
18698
18699         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
18700
18701 2013-08-09  Xinliang David Li  <davidxl@google.com>
18702
18703         * config/i386/stringop.def: New file.
18704         * config/i386/stringop.opt: New file.
18705         * config/i386/i386-opts.h: Include stringopt.def.
18706         * config/i386/i386.opt: Include stringopt.opt.
18707         * config/i386/i386.c (ix86_option_override_internal):
18708         Override default size based stringop inline strategies with options.
18709         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
18710         New function.
18711
18712 2013-08-09  Jan Hubicka  <jh@suse.cz>
18713
18714         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
18715
18716 2013-08-09  Jan Hubicka  <jh@suse.cz>
18717
18718         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
18719         CGRAPH_FREQ_MAX.
18720         (dump_cgraph_node): Dump profile-id.
18721         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
18722         and common_target_probability.
18723         * lto-cgraph.c (lto_output_edge): Stream common targets.
18724         (lto_output_node): Stream profile ids.
18725         (input_node): Stream profile ids.
18726         (input_edge): Stream common targets.
18727         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
18728         * ipa.c: Include value-prof.h
18729         (ipa_profile_generate_summary): Turn indirect call statement histograms
18730         into common targets.
18731         (ipa_profile): Turn common targets into speculative edges.
18732
18733 2013-08-09  Jan Hubicka  <jh@suse.cz>
18734
18735         * cgraph.h (cgraph_node): Add profile_id.
18736         * value-prof.c (cgraph_node_map): Turn into pointer_map.
18737         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
18738         (del_node_map): Update.
18739         (find_func_by_funcdef_no): Replace by ...
18740         (find_func_by_profile_id): ... this one.
18741         (gimple_ic_transform): Do not remove useful histograms when
18742         speculation is not done; dump info when indirect call removal
18743         can happen at LTO.
18744         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
18745         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
18746         (__gcov_indirect_call_profiler_v2): .. this one.
18747         * profile.h (init_node_map): Update.
18748         * coverage.c (coverage_compute_profile_id): New function.
18749         * coverage.h (coverage_compute_profile_id): Declare.
18750         * tree-profile.c (init_ic_make_global_vars): Make
18751         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
18752         (gimple_init_edge_profiler): Update prototype of
18753         __gcov_indirect_call_profiler.
18754         (gimple_gen_ic_func_profiler): Simplify.
18755         (tree_profiling): Use init_node_map
18756
18757 2013-08-09  Jan Hubicka  <jh@suse.cz>
18758
18759         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
18760         non-speculative refs.
18761         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
18762         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
18763         (cgraph_set_call_stmt): Likewise.
18764         (cgraph_create_edge_1): Fix release checking compilatoin;
18765         clear lto_stmt_uid.
18766         (cgraph_free_edge): Free indirect info.
18767         (cgraph_turn_edge_to_speculative): New function.
18768         (cgraph_speculative_call_info): New function.
18769         (cgraph_make_edge_direct): Return direct edge; handle speculation.
18770         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
18771         (dump_cgraph_node): Dump speculation.
18772         (verify_edge_count_and_frequency): Accept speculative edges.
18773         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
18774         (verify_cgraph_node): Handle speculation.
18775         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
18776         (cgraph_set_call_stmt): Update prototype.
18777         (cgraph_make_edge_direct): Update prototype.
18778         (cgraph_speculative_call_info): Declare.
18779         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
18780         to change; update call of ipa_find_references.
18781         * ipa-ref.c (ipa_record_reference): Fix return value; clear
18782         lto_stmt_uid and speculative flags.
18783         (ipa_dump_references): Dump speculation.
18784         (ipa_clone_references): Clone speculative flag.
18785         (ipa_clone_referring): Likewise.
18786         (ipa_clone_ref): New function.
18787         (ipa_find_reference): Look into lto_stmt_uids
18788         (ipa_clear_stmts_in_references): Do not clear speculative calls.
18789         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
18790         (ipa_find_reference): Update declaration.
18791         (ipa_clone_ref): Declare.
18792         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
18793         stream speculative flag.
18794         (lto_output_ref): Stream statements uids and speculation.
18795         (input_ref): Likewise.
18796         (input_edge): Stream speuclation.
18797         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
18798         (cgraph_set_call_stmt_including_clones): Handle speculation.
18799         * ipa-inline.c (heap_edge_removal_hook): New function.
18800         (inline_small_functions): Register it.
18801         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
18802         also initialize refs.
18803         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
18804         edge to change.
18805         (try_make_edge_direct_simple_call): Likewise.
18806         (try_make_edge_direct_simple_call): Likewise.
18807         (update_indirect_edges_after_inlining): Likewise.
18808         (remove_described_reference): Look proper lto_stmt_uid.
18809         (propagate_controlled_uses): Likewise.
18810         (propagate_controlled_uses): Liekwise.
18811         * tree-inline.c (copy_bb): Copy speculative edges.
18812         (redirect_all_calls): New function.
18813         (copy_cfg_body): Do redirection after loop info is updated.
18814         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
18815
18816 2013-08-09  Jan Hubicka  <jh@suse.cz>
18817
18818         * lto-streamer-out.c (output_function): Renumber PHIs.
18819         * lto-streamer-in.c (input_function): Likewise.
18820
18821 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
18822
18823         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
18824         (get_lane_unsigned): Likewise.
18825         (dup_lane_scalar): Likewise.
18826         (get_lane): enable for VALL.
18827         * config/aarch64/aarch64-simd.md
18828         (aarch64_dup_lane_scalar<mode>): Remove.
18829         (aarch64_get_lane_signed<mode>): Likewise.
18830         (aarch64_get_lane_unsigned<mode>): Likewise.
18831         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
18832         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
18833         (aarch64_get_lane<mode>): Enable for all vector modes.
18834         (aarch64_get_lanedi): Remove misleading constraints.
18835         * config/aarch64/arm_neon.h
18836         (__aarch64_vget_lane_any): Define.
18837         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
18838         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
18839         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
18840         * config/aarch64/iterators.md (VDQQH): New.
18841         (VDQQHS): Likewise.
18842         (vwcore): Likewise.
18843
18844 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
18845
18846         * configure.ac: Add GAS check for LEON instructions on SPARC.
18847         * configure: Regenerate.
18848         * config.in: Likewise.
18849         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
18850         sparc*-*-* block.
18851         * config/sparc/sparc.opt (LEON, LEON3): New masks.
18852         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
18853         for LEON or LEON3.
18854         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
18855         (AS_LEON_FLAG): New macro.
18856         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
18857         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
18858         Deal with LEON and LEON3 for the memory model.
18859         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
18860         (atomic_compare_and_swap<mode>_1): Likewise.
18861         (*atomic_compare_and_swap<mode>_1): Likewise.
18862
18863 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18864
18865         * config/arm/neon.md (vcond): Fix floating-point vector
18866         comparisons against 0.
18867
18868 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
18869
18870         * lra-constraints.c (emit_spill_move): Remove assert.
18871         (process_alt_operands): Add more debugging
18872         output.  Increase reject for spilling into memory.  Decrease
18873         reject for reloading scratch.
18874         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
18875
18876 2013-08-08  Steve Ellcey  <sellcey@mips.com>
18877
18878         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
18879         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
18880         micromips incompatible.  Add nan2008.
18881         (MULTILIB_DIRNAMES): Add nan2008.
18882         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18883         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
18884         and micromips incompatible.  Add nan2008.
18885         (MULTILIB_DIRNAMES): Add nan2008.
18886         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18887
18888 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
18889
18890         PR rtl-optimization/58079
18891         * combine.c (combine_simplify_rtx): Avoid using SUBST if
18892         simplify_comparison has widened a comparison with an integer.
18893
18894 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18895
18896         * config/arm/neon.md (movmisalign<mode>): Disable when we
18897         don't allow unaligned accesses.
18898         (*movmisalign<mode>_neon_store): Likewise.
18899         (*movmisalign<mode>_neon_load): Likewise.
18900         (*movmisalign<mode>_neon_store): Likewise.
18901         (*movmisalign<mode>_neon_load): Likewise.
18902
18903 2013-08-08  Jan Hubicka  <jh@suse.cz>
18904
18905         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
18906         (make_pass_rebuild_cgraph_edges): Also clear references.
18907         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
18908         * ipa-inline-transform.c (inline_transform): Remove all references
18909         after inlining.
18910         * cgraphunit.c (expand_function): Remove all references after
18911         expansion.
18912         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
18913         (ipa_find_reference): Rewrite to iterator.
18914         (remove_stmt_references): Likewise.
18915         (ipa_clear_stmts_in_references): New function.
18916         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
18917         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
18918         clear references.
18919         * ipa-split.c (split_function): Remove references in split function.
18920
18921 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
18922
18923         PR target/57431
18924         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
18925         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
18926
18927 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
18928
18929         PR target/56979
18930         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
18931         suggested mode for the assignment isn't compatible with the
18932         registers required.
18933
18934 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18935
18936         PR target/58065
18937         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
18938
18939 2013-08-07  Xinliang David Li  <davidxl@google.com>
18940
18941         * config/i386/i386.opt: New option -mtune-ctrl=.
18942         * config/i386/x86-tune.def: New file.
18943         * config/i386/i386.h: include x86-tune.def.
18944         * config/i386/i386.c (ix86_option_override_internal):
18945         Parsing -mtune-ctrl= option and set tune features.
18946
18947 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
18948
18949         PR other/12081
18950         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
18951         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
18952         to gen_2arg_fn_t.
18953
18954 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
18955
18956         * rtl.h (update_alignments): Declare.
18957         * final.c (grow_label_align): New function extracted from...
18958         (shorten_branches): ...here.  Call it.
18959         (update_alignments): New function.
18960         * reorg.c (sibling_labels): New variable.
18961         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
18962         the new label along with it onto the sibling_labels vector.
18963         (fill_simple_delay_slots): Adjust call to get_label_before.
18964         (fill_slots_from_thread): Likewise.
18965         (relax_delay_slots): Likewise.
18966         (make_return_insns): Likewise.
18967         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
18968
18969 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
18970
18971         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
18972         document its semantics.
18973         (diagnostic_report_diagnostic): Adjust accordingly.
18974
18975 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
18976
18977         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
18978         (sparc_option_override): ...and port to new C++ pass API.
18979         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
18980
18981 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
18982
18983         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
18984
18985 2013-08-06  Caroline Tice  <cmtice@google.com>
18986
18987         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
18988         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
18989         * tree-pass.h: Add pass_vtable_verify.
18990         * varasm.c (assemble_variable): Add code to properly set the comdat
18991         section and name for the .vtable_map_vars section.
18992         (assemble_vtyv_preinit_initializer): New function.
18993         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
18994         LINK_ONCE flag.
18995         * output.h: Add function decl for assemble_vtv_preinit_initializer.
18996         * vtable-verify.c: New file.
18997         * vtable-verify.h: New file.
18998         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
18999         initialiation levels.
19000         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
19001         * passes.def: Insert pass_vtable_verify.
19002         * aclocal.m4: Reorder includes.
19003         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
19004         -fvtv-counts options.
19005         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
19006         as appropriate, if -fvtable-verify=... is used.
19007         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
19008         -fvtable-verify=... is used.
19009         * Makefile.in (OBJS):  Add vtable-verify.o to list.
19010         (vtable-verify.o): Add new build rule.
19011         (GTFILES): Add vtable-verify.c to list.
19012         * common.opt (fvtable-verify=): New flag.
19013         (vtv_priority): Values for fvtable-verify= flag.
19014         (fvtv-counts): New flag.
19015         (fvtv-debug): New flag.
19016         * tree.h (save_vtable_map_decl): New extern function decl.
19017
19018 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19019
19020         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
19021         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
19022         (pass_data_rl78_devirt): ...new pass_data instance and...
19023         (make_pass_rl78_devirt): ...new function.
19024         (rl78_asm_file_start): Port pass registration to new C++ API.
19025
19026 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
19027
19028         * coretypes.h (rtl_opt_pass): Add.
19029         (gcc::context): Add.
19030         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
19031         (epiphany_init): Port to new C++ pass API.
19032         (epiphany_optimize_mode_switching): Likewise.
19033         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
19034         (pass_manager::get_pass_mode_switching): New.
19035         (pass_manager::get_pass_peephole2): New.
19036         * mode-switching.c (pass_mode_switching): Add clone method.
19037         * recog.c (pass_peephole2): Add clone method.
19038         (pass_split_all_insns): Add clone method.
19039
19040 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
19041
19042         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
19043         (mips_option_override): ...here, porting to new C++ API for passes.
19044
19045 2013-08-06  Jan Hubicka  <jh@suse.cz>
19046
19047         * cgraph.c (cgraph_get_body): New function based on lto.c
19048         implementation.
19049         * cgraph.h (cgraph_get_body): Declare.
19050         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
19051         LTO paths.
19052         * cgraphunit.c (expand_function): Get body prior expanding.
19053         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
19054         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
19055         really need.
19056         * passes.c (do_per_function_toporder): Get body.
19057         * tree-inline.c (expand_call_inline): Get body prior inlining it.
19058         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
19059
19060 2013-08-06  Martin Jambor  <mjambor@suse.cz>
19061
19062         PR fortran/57987
19063         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
19064         is not re-finalized.  Rename second parameter to no_collect.
19065
19066 2013-08-06  Martin Jambor  <mjambor@suse.cz>
19067
19068         PR middle-end/58041
19069         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
19070         MEM_REF has proper alignment information.
19071
19072 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
19073
19074         PR other/12081
19075         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
19076         class insn_gen_fn.
19077         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
19078         rtx (*) (rtx, ...) with insn_gen_fn.
19079         * genoutput.c (output_insn_data): Cast gen_? function pointers to
19080         insn_gen_fn::stored_funcptr.  Add initializer braces.
19081
19082 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19083
19084         Rewrite how instances of passes are cloned to remove assumptions
19085         about their sizes (thus allowing pass subclasses to have
19086         additional data fields, albeit non-GC-managed ones at this point).
19087
19088         * passes.c (make_pass_instance): Now that passes have clone
19089         methods, rewrite this function to eliminate XNEW and memcpy
19090         calls that used hardcoded sizes.  Since this function no longer
19091         creates pass instances, rename it to...
19092         (add_pass_instance): ...this.  Document the old way that passes were
19093         numbered and flagged, and rework this function to continue using it.
19094         (next_pass_1): Add an initial_pass argument for use by
19095         add_pass_instance.
19096         (position_pass): When adding multiple instances of a pass, use
19097         the pass's clone method, rather than relying on the XNEW/memcpy
19098         within the former make_pass_instance (now add_pass_instance).
19099         (pass_manager::pass_manager): When invoking next_pass_1, also supply
19100         the initial instance of the current pass within the pass manager.
19101
19102 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19103
19104         This is the automated part of the conversion of passes from C
19105         structs to C++ classes.
19106
19107         Patch autogenerated by refactor_passes.py from
19108         https://github.com/davidmalcolm/gcc-refactoring-scripts
19109         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
19110
19111         * asan.c (pass_asan): Convert from a global struct to a subclass of
19112         gimple_opt_pass along with...
19113         (pass_data_asan): ...new pass_data instance and...
19114         (make_pass_asan): ...new function.
19115         (pass_asan_O0): Convert from a global struct to a subclass of
19116         gimple_opt_pass along with...
19117         (pass_data_asan_O0): ...new pass_data instance and...
19118         (make_pass_asan_O0): ...new function.
19119         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
19120         subclass of rtl_opt_pass along with...
19121         (pass_data_inc_dec): ...new pass_data instance and...
19122         (make_pass_inc_dec): ...new function.
19123         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
19124         a subclass of rtl_opt_pass along with...
19125         (pass_data_reorder_blocks): ...new pass_data instance and...
19126         (make_pass_reorder_blocks): ...new function.
19127         (pass_duplicate_computed_gotos): Convert from a global struct to a
19128         subclass of rtl_opt_pass along with...
19129         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
19130         (make_pass_duplicate_computed_gotos): ...new function.
19131         (pass_partition_blocks): Convert from a global struct to a subclass of
19132         rtl_opt_pass along with...
19133         (pass_data_partition_blocks): ...new pass_data instance and...
19134         (make_pass_partition_blocks): ...new function.
19135         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
19136         struct to a subclass of rtl_opt_pass along with...
19137         (pass_data_branch_target_load_optimize1): ...new pass_data instance
19138         and...
19139         (make_pass_branch_target_load_optimize1): ...new function.
19140         (pass_branch_target_load_optimize2): Convert from a global struct to a
19141         subclass of rtl_opt_pass along with...
19142         (pass_data_branch_target_load_optimize2): ...new pass_data instance
19143         and...
19144         (make_pass_branch_target_load_optimize2): ...new function.
19145         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
19146         of rtl_opt_pass along with...
19147         (pass_data_jump): ...new pass_data instance and...
19148         (make_pass_jump): ...new function.
19149         (pass_jump2): Convert from a global struct to a subclass of
19150         rtl_opt_pass along with...
19151         (pass_data_jump2): ...new pass_data instance and...
19152         (make_pass_jump2): ...new function.
19153         * cfgexpand.c (pass_expand): Convert from a global struct to a
19154         subclass of rtl_opt_pass along with...
19155         (pass_data_expand): ...new pass_data instance and...
19156         (make_pass_expand): ...new function.
19157         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
19158         of rtl_opt_pass along with...
19159         (pass_data_free_cfg): ...new pass_data instance and...
19160         (make_pass_free_cfg): ...new function.
19161         (pass_into_cfg_layout_mode): Convert from a global struct to a
19162         subclass of rtl_opt_pass along with...
19163         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
19164         (make_pass_into_cfg_layout_mode): ...new function.
19165         (pass_outof_cfg_layout_mode): Convert from a global struct to a
19166         subclass of rtl_opt_pass along with...
19167         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
19168         (make_pass_outof_cfg_layout_mode): ...new function.
19169         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
19170         struct to a subclass of gimple_opt_pass along with...
19171         (pass_data_build_cgraph_edges): ...new pass_data instance and...
19172         (make_pass_build_cgraph_edges): ...new function.
19173         (pass_rebuild_cgraph_edges): Convert from a global struct to a
19174         subclass of gimple_opt_pass along with...
19175         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
19176         (make_pass_rebuild_cgraph_edges): ...new function.
19177         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
19178         subclass of gimple_opt_pass along with...
19179         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
19180         and...
19181         (make_pass_remove_cgraph_callee_edges): ...new function.
19182         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
19183         struct to a subclass of rtl_opt_pass along with...
19184         (pass_data_stack_adjustments): ...new pass_data instance and...
19185         (make_pass_stack_adjustments): ...new function.
19186         * combine.c (pass_combine): Convert from a global struct to a subclass
19187         of rtl_opt_pass along with...
19188         (pass_data_combine): ...new pass_data instance and...
19189         (make_pass_combine): ...new function.
19190         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
19191         global struct to a subclass of rtl_opt_pass along with...
19192         (pass_data_compare_elim_after_reload): ...new pass_data instance
19193         and...
19194         (make_pass_compare_elim_after_reload): ...new function.
19195         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
19196         of rtl_opt_pass along with...
19197         (pass_data_rtl_cprop): ...new pass_data instance and...
19198         (make_pass_rtl_cprop): ...new function.
19199         * cse.c (pass_cse): Convert from a global struct to a subclass of
19200         rtl_opt_pass along with...
19201         (pass_data_cse): ...new pass_data instance and...
19202         (make_pass_cse): ...new function.
19203         (pass_cse2): Convert from a global struct to a subclass of
19204         rtl_opt_pass along with...
19205         (pass_data_cse2): ...new pass_data instance and...
19206         (make_pass_cse2): ...new function.
19207         (pass_cse_after_global_opts): Convert from a global struct to a
19208         subclass of rtl_opt_pass along with...
19209         (pass_data_cse_after_global_opts): ...new pass_data instance and...
19210         (make_pass_cse_after_global_opts): ...new function.
19211         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
19212         of rtl_opt_pass along with...
19213         (pass_data_ud_rtl_dce): ...new pass_data instance and...
19214         (make_pass_ud_rtl_dce): ...new function.
19215         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
19216         rtl_opt_pass along with...
19217         (pass_data_fast_rtl_dce): ...new pass_data instance and...
19218         (make_pass_fast_rtl_dce): ...new function.
19219         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
19220         a subclass of rtl_opt_pass along with...
19221         (pass_data_df_initialize_opt): ...new pass_data instance and...
19222         (make_pass_df_initialize_opt): ...new function.
19223         (pass_df_initialize_no_opt): Convert from a global struct to a
19224         subclass of rtl_opt_pass along with...
19225         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
19226         (make_pass_df_initialize_no_opt): ...new function.
19227         (pass_df_finish): Convert from a global struct to a subclass of
19228         rtl_opt_pass along with...
19229         (pass_data_df_finish): ...new pass_data instance and...
19230         (make_pass_df_finish): ...new function.
19231         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
19232         rtl_opt_pass along with...
19233         (pass_data_rtl_dse1): ...new pass_data instance and...
19234         (make_pass_rtl_dse1): ...new function.
19235         (pass_rtl_dse2): Convert from a global struct to a subclass of
19236         rtl_opt_pass along with...
19237         (pass_data_rtl_dse2): ...new pass_data instance and...
19238         (make_pass_rtl_dse2): ...new function.
19239         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
19240         subclass of rtl_opt_pass along with...
19241         (pass_data_dwarf2_frame): ...new pass_data instance and...
19242         (make_pass_dwarf2_frame): ...new function.
19243         * except.c (pass_set_nothrow_function_flags): Convert from a global
19244         struct to a subclass of rtl_opt_pass along with...
19245         (pass_data_set_nothrow_function_flags): ...new pass_data instance
19246         and...
19247         (make_pass_set_nothrow_function_flags): ...new function.
19248         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
19249         subclass of rtl_opt_pass along with...
19250         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
19251         and...
19252         (make_pass_convert_to_eh_region_ranges): ...new function.
19253         * final.c (pass_compute_alignments): Convert from a global struct to a
19254         subclass of rtl_opt_pass along with...
19255         (pass_data_compute_alignments): ...new pass_data instance and...
19256         (make_pass_compute_alignments): ...new function.
19257         (pass_final): Convert from a global struct to a subclass of
19258         rtl_opt_pass along with...
19259         (pass_data_final): ...new pass_data instance and...
19260         (make_pass_final): ...new function.
19261         (pass_shorten_branches): Convert from a global struct to a subclass of
19262         rtl_opt_pass along with...
19263         (pass_data_shorten_branches): ...new pass_data instance and...
19264         (make_pass_shorten_branches): ...new function.
19265         (pass_clean_state): Convert from a global struct to a subclass of
19266         rtl_opt_pass along with...
19267         (pass_data_clean_state): ...new pass_data instance and...
19268         (make_pass_clean_state): ...new function.
19269         * function.c (pass_instantiate_virtual_regs): Convert from a global
19270         struct to a subclass of rtl_opt_pass along with...
19271         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
19272         (make_pass_instantiate_virtual_regs): ...new function.
19273         (pass_leaf_regs): Convert from a global struct to a subclass of
19274         rtl_opt_pass along with...
19275         (pass_data_leaf_regs): ...new pass_data instance and...
19276         (make_pass_leaf_regs): ...new function.
19277         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
19278         subclass of rtl_opt_pass along with...
19279         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
19280         and...
19281         (make_pass_thread_prologue_and_epilogue): ...new function.
19282         (pass_match_asm_constraints): Convert from a global struct to a
19283         subclass of rtl_opt_pass along with...
19284         (pass_data_match_asm_constraints): ...new pass_data instance and...
19285         (make_pass_match_asm_constraints): ...new function.
19286         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
19287         subclass of rtl_opt_pass along with...
19288         (pass_data_rtl_fwprop): ...new pass_data instance and...
19289         (make_pass_rtl_fwprop): ...new function.
19290         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
19291         rtl_opt_pass along with...
19292         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
19293         (make_pass_rtl_fwprop_addr): ...new function.
19294         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
19295         rtl_opt_pass along with...
19296         (pass_data_rtl_pre): ...new pass_data instance and...
19297         (make_pass_rtl_pre): ...new function.
19298         (pass_rtl_hoist): Convert from a global struct to a subclass of
19299         rtl_opt_pass along with...
19300         (pass_data_rtl_hoist): ...new pass_data instance and...
19301         (make_pass_rtl_hoist): ...new function.
19302         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
19303         subclass of gimple_opt_pass along with...
19304         (pass_data_lower_cf): ...new pass_data instance and...
19305         (make_pass_lower_cf): ...new function.
19306         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
19307         from a global struct to a subclass of gimple_opt_pass along with...
19308         (pass_data_strength_reduction): ...new pass_data instance and...
19309         (make_pass_strength_reduction): ...new function.
19310         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
19311         of rtl_opt_pass along with...
19312         (pass_data_rtl_ifcvt): ...new pass_data instance and...
19313         (make_pass_rtl_ifcvt): ...new function.
19314         (pass_if_after_combine): Convert from a global struct to a subclass of
19315         rtl_opt_pass along with...
19316         (pass_data_if_after_combine): ...new pass_data instance and...
19317         (make_pass_if_after_combine): ...new function.
19318         (pass_if_after_reload): Convert from a global struct to a subclass of
19319         rtl_opt_pass along with...
19320         (pass_data_if_after_reload): ...new pass_data instance and...
19321         (make_pass_if_after_reload): ...new function.
19322         * init-regs.c (pass_initialize_regs): Convert from a global struct to
19323         a subclass of rtl_opt_pass along with...
19324         (pass_data_initialize_regs): ...new pass_data instance and...
19325         (make_pass_initialize_regs): ...new function.
19326         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
19327         of ipa_opt_pass_d along with...
19328         (pass_data_ipa_cp): ...new pass_data instance and...
19329         (make_pass_ipa_cp): ...new function.
19330         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
19331         global struct to a subclass of gimple_opt_pass along with...
19332         (pass_data_inline_parameters): ...new pass_data instance and...
19333         (make_pass_inline_parameters): ...new function.
19334         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
19335         subclass of gimple_opt_pass along with...
19336         (pass_data_early_inline): ...new pass_data instance and...
19337         (make_pass_early_inline): ...new function.
19338         (pass_ipa_inline): Convert from a global struct to a subclass of
19339         ipa_opt_pass_d along with...
19340         (pass_data_ipa_inline): ...new pass_data instance and...
19341         (make_pass_ipa_inline): ...new function.
19342         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
19343         struct to a subclass of gimple_opt_pass along with...
19344         (pass_data_local_pure_const): ...new pass_data instance and...
19345         (make_pass_local_pure_const): ...new function.
19346         (pass_ipa_pure_const): Convert from a global struct to a subclass of
19347         ipa_opt_pass_d along with...
19348         (pass_data_ipa_pure_const): ...new pass_data instance and...
19349         (make_pass_ipa_pure_const): ...new function.
19350         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
19351         to a subclass of ipa_opt_pass_d along with...
19352         (pass_data_ipa_reference): ...new pass_data instance and...
19353         (make_pass_ipa_reference): ...new function.
19354         * ipa-split.c (pass_split_functions): Convert from a global struct to
19355         a subclass of gimple_opt_pass along with...
19356         (pass_data_split_functions): ...new pass_data instance and...
19357         (make_pass_split_functions): ...new function.
19358         (pass_feedback_split_functions): Convert from a global struct to a
19359         subclass of gimple_opt_pass along with...
19360         (pass_data_feedback_split_functions): ...new pass_data instance and...
19361         (make_pass_feedback_split_functions): ...new function.
19362         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
19363         global struct to a subclass of simple_ipa_opt_pass along with...
19364         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
19365         instance and...
19366         (make_pass_ipa_function_and_variable_visibility): ...new function.
19367         (pass_ipa_free_inline_summary): Convert from a global struct to a
19368         subclass of simple_ipa_opt_pass along with...
19369         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
19370         (make_pass_ipa_free_inline_summary): ...new function.
19371         (pass_ipa_whole_program_visibility): Convert from a global struct to a
19372         subclass of ipa_opt_pass_d along with...
19373         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
19374         and...
19375         (make_pass_ipa_whole_program_visibility): ...new function.
19376         (pass_ipa_profile): Convert from a global struct to a subclass of
19377         ipa_opt_pass_d along with...
19378         (pass_data_ipa_profile): ...new pass_data instance and...
19379         (make_pass_ipa_profile): ...new function.
19380         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
19381         ipa_opt_pass_d along with...
19382         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
19383         (make_pass_ipa_cdtor_merge): ...new function.
19384         * ira.c (pass_ira): Convert from a global struct to a subclass of
19385         rtl_opt_pass along with...
19386         (pass_data_ira): ...new pass_data instance and...
19387         (make_pass_ira): ...new function.
19388         (pass_reload): Convert from a global struct to a subclass of
19389         rtl_opt_pass along with...
19390         (pass_data_reload): ...new pass_data instance and...
19391         (make_pass_reload): ...new function.
19392         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
19393         subclass of rtl_opt_pass along with...
19394         (pass_data_cleanup_barriers): ...new pass_data instance and...
19395         (make_pass_cleanup_barriers): ...new function.
19396         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
19397         of rtl_opt_pass along with...
19398         (pass_data_loop2): ...new pass_data instance and...
19399         (make_pass_loop2): ...new function.
19400         (pass_rtl_loop_init): Convert from a global struct to a subclass of
19401         rtl_opt_pass along with...
19402         (pass_data_rtl_loop_init): ...new pass_data instance and...
19403         (make_pass_rtl_loop_init): ...new function.
19404         (pass_rtl_loop_done): Convert from a global struct to a subclass of
19405         rtl_opt_pass along with...
19406         (pass_data_rtl_loop_done): ...new pass_data instance and...
19407         (make_pass_rtl_loop_done): ...new function.
19408         (pass_rtl_move_loop_invariants): Convert from a global struct to a
19409         subclass of rtl_opt_pass along with...
19410         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
19411         (make_pass_rtl_move_loop_invariants): ...new function.
19412         (pass_rtl_unswitch): Convert from a global struct to a subclass of
19413         rtl_opt_pass along with...
19414         (pass_data_rtl_unswitch): ...new pass_data instance and...
19415         (make_pass_rtl_unswitch): ...new function.
19416         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
19417         subclass of rtl_opt_pass along with...
19418         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
19419         and...
19420         (make_pass_rtl_unroll_and_peel_loops): ...new function.
19421         (pass_rtl_doloop): Convert from a global struct to a subclass of
19422         rtl_opt_pass along with...
19423         (pass_data_rtl_doloop): ...new pass_data instance and...
19424         (make_pass_rtl_doloop): ...new function.
19425         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
19426         a subclass of rtl_opt_pass along with...
19427         (pass_data_lower_subreg): ...new pass_data instance and...
19428         (make_pass_lower_subreg): ...new function.
19429         (pass_lower_subreg2): Convert from a global struct to a subclass of
19430         rtl_opt_pass along with...
19431         (pass_data_lower_subreg2): ...new pass_data instance and...
19432         (make_pass_lower_subreg2): ...new function.
19433         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
19434         struct to a subclass of ipa_opt_pass_d along with...
19435         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
19436         (make_pass_ipa_lto_gimple_out): ...new function.
19437         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
19438         of ipa_opt_pass_d along with...
19439         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
19440         (make_pass_ipa_lto_finish_out): ...new function.
19441         * mode-switching.c (pass_mode_switching): Convert from a global struct
19442         to a subclass of rtl_opt_pass along with...
19443         (pass_data_mode_switching): ...new pass_data instance and...
19444         (make_pass_mode_switching): ...new function.
19445         * modulo-sched.c (pass_sms): Convert from a global struct to a
19446         subclass of rtl_opt_pass along with...
19447         (pass_data_sms): ...new pass_data instance and...
19448         (make_pass_sms): ...new function.
19449         * omp-low.c (pass_expand_omp): Convert from a global struct to a
19450         subclass of gimple_opt_pass along with...
19451         (pass_data_expand_omp): ...new pass_data instance and...
19452         (make_pass_expand_omp): ...new function.
19453         (pass_lower_omp): Convert from a global struct to a subclass of
19454         gimple_opt_pass along with...
19455         (pass_data_lower_omp): ...new pass_data instance and...
19456         (make_pass_lower_omp): ...new function.
19457         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
19458         of gimple_opt_pass along with...
19459         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
19460         (make_pass_diagnose_omp_blocks): ...new function.
19461         * passes.c (pass_early_local_passes): Convert from a global struct to
19462         a subclass of simple_ipa_opt_pass along with...
19463         (pass_data_early_local_passes): ...new pass_data instance and...
19464         (make_pass_early_local_passes): ...new function.
19465         (pass_all_early_optimizations): Convert from a global struct to a
19466         subclass of gimple_opt_pass along with...
19467         (pass_data_all_early_optimizations): ...new pass_data instance and...
19468         (make_pass_all_early_optimizations): ...new function.
19469         (pass_all_optimizations): Convert from a global struct to a subclass
19470         of gimple_opt_pass along with...
19471         (pass_data_all_optimizations): ...new pass_data instance and...
19472         (make_pass_all_optimizations): ...new function.
19473         (pass_all_optimizations_g): Convert from a global struct to a subclass
19474         of gimple_opt_pass along with...
19475         (pass_data_all_optimizations_g): ...new pass_data instance and...
19476         (make_pass_all_optimizations_g): ...new function.
19477         (pass_rest_of_compilation): Convert from a global struct to a subclass
19478         of rtl_opt_pass along with...
19479         (pass_data_rest_of_compilation): ...new pass_data instance and...
19480         (make_pass_rest_of_compilation): ...new function.
19481         (pass_postreload): Convert from a global struct to a subclass of
19482         rtl_opt_pass along with...
19483         (pass_data_postreload): ...new pass_data instance and...
19484         (make_pass_postreload): ...new function.
19485         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
19486         subclass of rtl_opt_pass along with...
19487         (pass_data_gcse2): ...new pass_data instance and...
19488         (make_pass_gcse2): ...new function.
19489         * postreload.c (pass_postreload_cse): Convert from a global struct to
19490         a subclass of rtl_opt_pass along with...
19491         (pass_data_postreload_cse): ...new pass_data instance and...
19492         (make_pass_postreload_cse): ...new function.
19493         * predict.c (pass_profile): Convert from a global struct to a subclass
19494         of gimple_opt_pass along with...
19495         (pass_data_profile): ...new pass_data instance and...
19496         (make_pass_profile): ...new function.
19497         (pass_strip_predict_hints): Convert from a global struct to a subclass
19498         of gimple_opt_pass along with...
19499         (pass_data_strip_predict_hints): ...new pass_data instance and...
19500         (make_pass_strip_predict_hints): ...new function.
19501         * recog.c (pass_peephole2): Convert from a global struct to a subclass
19502         of rtl_opt_pass along with...
19503         (pass_data_peephole2): ...new pass_data instance and...
19504         (make_pass_peephole2): ...new function.
19505         (pass_split_all_insns): Convert from a global struct to a subclass of
19506         rtl_opt_pass along with...
19507         (pass_data_split_all_insns): ...new pass_data instance and...
19508         (make_pass_split_all_insns): ...new function.
19509         (pass_split_after_reload): Convert from a global struct to a subclass
19510         of rtl_opt_pass along with...
19511         (pass_data_split_after_reload): ...new pass_data instance and...
19512         (make_pass_split_after_reload): ...new function.
19513         (pass_split_before_regstack): Convert from a global struct to a
19514         subclass of rtl_opt_pass along with...
19515         (pass_data_split_before_regstack): ...new pass_data instance and...
19516         (make_pass_split_before_regstack): ...new function.
19517         (pass_split_before_sched2): Convert from a global struct to a subclass
19518         of rtl_opt_pass along with...
19519         (pass_data_split_before_sched2): ...new pass_data instance and...
19520         (make_pass_split_before_sched2): ...new function.
19521         (pass_split_for_shorten_branches): Convert from a global struct to a
19522         subclass of rtl_opt_pass along with...
19523         (pass_data_split_for_shorten_branches): ...new pass_data instance
19524         and...
19525         (make_pass_split_for_shorten_branches): ...new function.
19526         * ree.c (pass_ree): Convert from a global struct to a subclass of
19527         rtl_opt_pass along with...
19528         (pass_data_ree): ...new pass_data instance and...
19529         (make_pass_ree): ...new function.
19530         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
19531         subclass of rtl_opt_pass along with...
19532         (pass_data_stack_regs): ...new pass_data instance and...
19533         (make_pass_stack_regs): ...new function.
19534         (pass_stack_regs_run): Convert from a global struct to a subclass of
19535         rtl_opt_pass along with...
19536         (pass_data_stack_regs_run): ...new pass_data instance and...
19537         (make_pass_stack_regs_run): ...new function.
19538         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
19539         subclass of rtl_opt_pass along with...
19540         (pass_data_cprop_hardreg): ...new pass_data instance and...
19541         (make_pass_cprop_hardreg): ...new function.
19542         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
19543         subclass of rtl_opt_pass along with...
19544         (pass_data_reginfo_init): ...new pass_data instance and...
19545         (make_pass_reginfo_init): ...new function.
19546         * regmove.c (pass_regmove): Convert from a global struct to a subclass
19547         of rtl_opt_pass along with...
19548         (pass_data_regmove): ...new pass_data instance and...
19549         (make_pass_regmove): ...new function.
19550         * regrename.c (pass_regrename): Convert from a global struct to a
19551         subclass of rtl_opt_pass along with...
19552         (pass_data_regrename): ...new pass_data instance and...
19553         (make_pass_regrename): ...new function.
19554         * reorg.c (pass_delay_slots): Convert from a global struct to a
19555         subclass of rtl_opt_pass along with...
19556         (pass_data_delay_slots): ...new pass_data instance and...
19557         (make_pass_delay_slots): ...new function.
19558         (pass_machine_reorg): Convert from a global struct to a subclass of
19559         rtl_opt_pass along with...
19560         (pass_data_machine_reorg): ...new pass_data instance and...
19561         (make_pass_machine_reorg): ...new function.
19562         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
19563         of rtl_opt_pass along with...
19564         (pass_data_sched): ...new pass_data instance and...
19565         (make_pass_sched): ...new function.
19566         (pass_sched2): Convert from a global struct to a subclass of
19567         rtl_opt_pass along with...
19568         (pass_data_sched2): ...new pass_data instance and...
19569         (make_pass_sched2): ...new function.
19570         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
19571         to a subclass of rtl_opt_pass along with...
19572         (pass_data_stack_ptr_mod): ...new pass_data instance and...
19573         (make_pass_stack_ptr_mod): ...new function.
19574         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
19575         to a subclass of rtl_opt_pass along with...
19576         (pass_data_rtl_store_motion): ...new pass_data instance and...
19577         (make_pass_rtl_store_motion): ...new function.
19578         * tracer.c (pass_tracer): Convert from a global struct to a subclass
19579         of gimple_opt_pass along with...
19580         (pass_data_tracer): ...new pass_data instance and...
19581         (make_pass_tracer): ...new function.
19582         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
19583         to a subclass of gimple_opt_pass along with...
19584         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
19585         (make_pass_diagnose_tm_blocks): ...new function.
19586         (pass_lower_tm): Convert from a global struct to a subclass of
19587         gimple_opt_pass along with...
19588         (pass_data_lower_tm): ...new pass_data instance and...
19589         (make_pass_lower_tm): ...new function.
19590         (pass_tm_init): Convert from a global struct to a subclass of
19591         gimple_opt_pass along with...
19592         (pass_data_tm_init): ...new pass_data instance and...
19593         (make_pass_tm_init): ...new function.
19594         (pass_tm_mark): Convert from a global struct to a subclass of
19595         gimple_opt_pass along with...
19596         (pass_data_tm_mark): ...new pass_data instance and...
19597         (make_pass_tm_mark): ...new function.
19598         (pass_tm_edges): Convert from a global struct to a subclass of
19599         gimple_opt_pass along with...
19600         (pass_data_tm_edges): ...new pass_data instance and...
19601         (make_pass_tm_edges): ...new function.
19602         (pass_tm_memopt): Convert from a global struct to a subclass of
19603         gimple_opt_pass along with...
19604         (pass_data_tm_memopt): ...new pass_data instance and...
19605         (make_pass_tm_memopt): ...new function.
19606         (pass_ipa_tm): Convert from a global struct to a subclass of
19607         simple_ipa_opt_pass along with...
19608         (pass_data_ipa_tm): ...new pass_data instance and...
19609         (make_pass_ipa_tm): ...new function.
19610         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
19611         subclass of gimple_opt_pass along with...
19612         (pass_data_call_cdce): ...new pass_data instance and...
19613         (make_pass_call_cdce): ...new function.
19614         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
19615         subclass of gimple_opt_pass along with...
19616         (pass_data_build_cfg): ...new pass_data instance and...
19617         (make_pass_build_cfg): ...new function.
19618         (pass_split_crit_edges): Convert from a global struct to a subclass of
19619         gimple_opt_pass along with...
19620         (pass_data_split_crit_edges): ...new pass_data instance and...
19621         (make_pass_split_crit_edges): ...new function.
19622         (pass_warn_function_return): Convert from a global struct to a
19623         subclass of gimple_opt_pass along with...
19624         (pass_data_warn_function_return): ...new pass_data instance and...
19625         (make_pass_warn_function_return): ...new function.
19626         (pass_warn_function_noreturn): Convert from a global struct to a
19627         subclass of gimple_opt_pass along with...
19628         (pass_data_warn_function_noreturn): ...new pass_data instance and...
19629         (make_pass_warn_function_noreturn): ...new function.
19630         (pass_warn_unused_result): Convert from a global struct to a subclass
19631         of gimple_opt_pass along with...
19632         (pass_data_warn_unused_result): ...new pass_data instance and...
19633         (make_pass_warn_unused_result): ...new function.
19634         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
19635         a subclass of gimple_opt_pass along with...
19636         (pass_data_merge_phi): ...new pass_data instance and...
19637         (make_pass_merge_phi): ...new function.
19638         * tree-complex.c (pass_lower_complex): Convert from a global struct to
19639         a subclass of gimple_opt_pass along with...
19640         (pass_data_lower_complex): ...new pass_data instance and...
19641         (make_pass_lower_complex): ...new function.
19642         (pass_lower_complex_O0): Convert from a global struct to a subclass of
19643         gimple_opt_pass along with...
19644         (pass_data_lower_complex_O0): ...new pass_data instance and...
19645         (make_pass_lower_complex_O0): ...new function.
19646         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
19647         subclass of gimple_opt_pass along with...
19648         (pass_data_lower_eh): ...new pass_data instance and...
19649         (make_pass_lower_eh): ...new function.
19650         (pass_refactor_eh): Convert from a global struct to a subclass of
19651         gimple_opt_pass along with...
19652         (pass_data_refactor_eh): ...new pass_data instance and...
19653         (make_pass_refactor_eh): ...new function.
19654         (pass_lower_resx): Convert from a global struct to a subclass of
19655         gimple_opt_pass along with...
19656         (pass_data_lower_resx): ...new pass_data instance and...
19657         (make_pass_lower_resx): ...new function.
19658         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
19659         of gimple_opt_pass along with...
19660         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
19661         (make_pass_lower_eh_dispatch): ...new function.
19662         (pass_cleanup_eh): Convert from a global struct to a subclass of
19663         gimple_opt_pass along with...
19664         (pass_data_cleanup_eh): ...new pass_data instance and...
19665         (make_pass_cleanup_eh): ...new function.
19666         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
19667         to a subclass of simple_ipa_opt_pass along with...
19668         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
19669         (make_pass_ipa_lower_emutls): ...new function.
19670         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
19671         a subclass of gimple_opt_pass along with...
19672         (pass_data_if_conversion): ...new pass_data instance and...
19673         (make_pass_if_conversion): ...new function.
19674         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
19675         subclass of gimple_opt_pass along with...
19676         (pass_data_build_ssa): ...new pass_data instance and...
19677         (make_pass_build_ssa): ...new function.
19678         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
19679         global struct to a subclass of gimple_opt_pass along with...
19680         (pass_data_loop_distribution): ...new pass_data instance and...
19681         (make_pass_loop_distribution): ...new function.
19682         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
19683         subclass of gimple_opt_pass along with...
19684         (pass_data_mudflap_1): ...new pass_data instance and...
19685         (make_pass_mudflap_1): ...new function.
19686         (pass_mudflap_2): Convert from a global struct to a subclass of
19687         gimple_opt_pass along with...
19688         (pass_data_mudflap_2): ...new pass_data instance and...
19689         (make_pass_mudflap_2): ...new function.
19690         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
19691         subclass of gimple_opt_pass along with...
19692         (pass_data_mudflap_1): ...new pass_data instance and...
19693         (make_pass_mudflap_1): ...new function.
19694         (pass_mudflap_2): Convert from a global struct to a subclass of
19695         gimple_opt_pass along with...
19696         (pass_data_mudflap_2): ...new pass_data instance and...
19697         (make_pass_mudflap_2): ...new function.
19698         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
19699         gimple_opt_pass along with...
19700         (pass_data_nrv): ...new pass_data instance and...
19701         (make_pass_nrv): ...new function.
19702         (pass_return_slot): Convert from a global struct to a subclass of
19703         gimple_opt_pass along with...
19704         (pass_data_return_slot): ...new pass_data instance and...
19705         (make_pass_return_slot): ...new function.
19706         * tree-object-size.c (pass_object_sizes): Convert from a global struct
19707         to a subclass of gimple_opt_pass along with...
19708         (pass_data_object_sizes): ...new pass_data instance and...
19709         (make_pass_object_sizes): ...new function.
19710         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
19711         global struct to a subclass of gimple_opt_pass along with...
19712         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
19713         and...
19714         (make_pass_cleanup_cfg_post_optimizing): ...new function.
19715         (pass_fixup_cfg): Convert from a global struct to a subclass of
19716         gimple_opt_pass along with...
19717         (pass_data_fixup_cfg): ...new pass_data instance and...
19718         (make_pass_fixup_cfg): ...new function.
19719         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
19720         (make_pass_mudflap_1): ...new function.
19721         (pass_mudflap_2): Replace declaration with that of...
19722         (make_pass_mudflap_2): ...new function.
19723         (pass_asan): Replace declaration with that of...
19724         (make_pass_asan): ...new function.
19725         (pass_asan_O0): Replace declaration with that of...
19726         (make_pass_asan_O0): ...new function.
19727         (pass_tsan): Replace declaration with that of...
19728         (make_pass_tsan): ...new function.
19729         (pass_tsan_O0): Replace declaration with that of...
19730         (make_pass_tsan_O0): ...new function.
19731         (pass_lower_cf): Replace declaration with that of...
19732         (make_pass_lower_cf): ...new function.
19733         (pass_refactor_eh): Replace declaration with that of...
19734         (make_pass_refactor_eh): ...new function.
19735         (pass_lower_eh): Replace declaration with that of...
19736         (make_pass_lower_eh): ...new function.
19737         (pass_lower_eh_dispatch): Replace declaration with that of...
19738         (make_pass_lower_eh_dispatch): ...new function.
19739         (pass_lower_resx): Replace declaration with that of...
19740         (make_pass_lower_resx): ...new function.
19741         (pass_build_cfg): Replace declaration with that of...
19742         (make_pass_build_cfg): ...new function.
19743         (pass_early_tree_profile): Replace declaration with that of...
19744         (make_pass_early_tree_profile): ...new function.
19745         (pass_cleanup_eh): Replace declaration with that of...
19746         (make_pass_cleanup_eh): ...new function.
19747         (pass_sra): Replace declaration with that of...
19748         (make_pass_sra): ...new function.
19749         (pass_sra_early): Replace declaration with that of...
19750         (make_pass_sra_early): ...new function.
19751         (pass_early_ipa_sra): Replace declaration with that of...
19752         (make_pass_early_ipa_sra): ...new function.
19753         (pass_tail_recursion): Replace declaration with that of...
19754         (make_pass_tail_recursion): ...new function.
19755         (pass_tail_calls): Replace declaration with that of...
19756         (make_pass_tail_calls): ...new function.
19757         (pass_tree_loop): Replace declaration with that of...
19758         (make_pass_tree_loop): ...new function.
19759         (pass_tree_loop_init): Replace declaration with that of...
19760         (make_pass_tree_loop_init): ...new function.
19761         (pass_lim): Replace declaration with that of...
19762         (make_pass_lim): ...new function.
19763         (pass_tree_unswitch): Replace declaration with that of...
19764         (make_pass_tree_unswitch): ...new function.
19765         (pass_predcom): Replace declaration with that of...
19766         (make_pass_predcom): ...new function.
19767         (pass_iv_canon): Replace declaration with that of...
19768         (make_pass_iv_canon): ...new function.
19769         (pass_scev_cprop): Replace declaration with that of...
19770         (make_pass_scev_cprop): ...new function.
19771         (pass_empty_loop): Replace declaration with that of...
19772         (make_pass_empty_loop): ...new function.
19773         (pass_record_bounds): Replace declaration with that of...
19774         (make_pass_record_bounds): ...new function.
19775         (pass_graphite): Replace declaration with that of...
19776         (make_pass_graphite): ...new function.
19777         (pass_graphite_transforms): Replace declaration with that of...
19778         (make_pass_graphite_transforms): ...new function.
19779         (pass_if_conversion): Replace declaration with that of...
19780         (make_pass_if_conversion): ...new function.
19781         (pass_loop_distribution): Replace declaration with that of...
19782         (make_pass_loop_distribution): ...new function.
19783         (pass_vectorize): Replace declaration with that of...
19784         (make_pass_vectorize): ...new function.
19785         (pass_slp_vectorize): Replace declaration with that of...
19786         (make_pass_slp_vectorize): ...new function.
19787         (pass_complete_unroll): Replace declaration with that of...
19788         (make_pass_complete_unroll): ...new function.
19789         (pass_complete_unrolli): Replace declaration with that of...
19790         (make_pass_complete_unrolli): ...new function.
19791         (pass_parallelize_loops): Replace declaration with that of...
19792         (make_pass_parallelize_loops): ...new function.
19793         (pass_loop_prefetch): Replace declaration with that of...
19794         (make_pass_loop_prefetch): ...new function.
19795         (pass_iv_optimize): Replace declaration with that of...
19796         (make_pass_iv_optimize): ...new function.
19797         (pass_tree_loop_done): Replace declaration with that of...
19798         (make_pass_tree_loop_done): ...new function.
19799         (pass_ch): Replace declaration with that of...
19800         (make_pass_ch): ...new function.
19801         (pass_ccp): Replace declaration with that of...
19802         (make_pass_ccp): ...new function.
19803         (pass_phi_only_cprop): Replace declaration with that of...
19804         (make_pass_phi_only_cprop): ...new function.
19805         (pass_build_ssa): Replace declaration with that of...
19806         (make_pass_build_ssa): ...new function.
19807         (pass_build_alias): Replace declaration with that of...
19808         (make_pass_build_alias): ...new function.
19809         (pass_build_ealias): Replace declaration with that of...
19810         (make_pass_build_ealias): ...new function.
19811         (pass_dominator): Replace declaration with that of...
19812         (make_pass_dominator): ...new function.
19813         (pass_dce): Replace declaration with that of...
19814         (make_pass_dce): ...new function.
19815         (pass_dce_loop): Replace declaration with that of...
19816         (make_pass_dce_loop): ...new function.
19817         (pass_cd_dce): Replace declaration with that of...
19818         (make_pass_cd_dce): ...new function.
19819         (pass_call_cdce): Replace declaration with that of...
19820         (make_pass_call_cdce): ...new function.
19821         (pass_merge_phi): Replace declaration with that of...
19822         (make_pass_merge_phi): ...new function.
19823         (pass_split_crit_edges): Replace declaration with that of...
19824         (make_pass_split_crit_edges): ...new function.
19825         (pass_pre): Replace declaration with that of...
19826         (make_pass_pre): ...new function.
19827         (pass_profile): Replace declaration with that of...
19828         (make_pass_profile): ...new function.
19829         (pass_strip_predict_hints): Replace declaration with that of...
19830         (make_pass_strip_predict_hints): ...new function.
19831         (pass_lower_complex_O0): Replace declaration with that of...
19832         (make_pass_lower_complex_O0): ...new function.
19833         (pass_lower_complex): Replace declaration with that of...
19834         (make_pass_lower_complex): ...new function.
19835         (pass_lower_vector): Replace declaration with that of...
19836         (make_pass_lower_vector): ...new function.
19837         (pass_lower_vector_ssa): Replace declaration with that of...
19838         (make_pass_lower_vector_ssa): ...new function.
19839         (pass_lower_omp): Replace declaration with that of...
19840         (make_pass_lower_omp): ...new function.
19841         (pass_diagnose_omp_blocks): Replace declaration with that of...
19842         (make_pass_diagnose_omp_blocks): ...new function.
19843         (pass_expand_omp): Replace declaration with that of...
19844         (make_pass_expand_omp): ...new function.
19845         (pass_expand_omp_ssa): Replace declaration with that of...
19846         (make_pass_expand_omp_ssa): ...new function.
19847         (pass_object_sizes): Replace declaration with that of...
19848         (make_pass_object_sizes): ...new function.
19849         (pass_strlen): Replace declaration with that of...
19850         (make_pass_strlen): ...new function.
19851         (pass_fold_builtins): Replace declaration with that of...
19852         (make_pass_fold_builtins): ...new function.
19853         (pass_stdarg): Replace declaration with that of...
19854         (make_pass_stdarg): ...new function.
19855         (pass_early_warn_uninitialized): Replace declaration with that of...
19856         (make_pass_early_warn_uninitialized): ...new function.
19857         (pass_late_warn_uninitialized): Replace declaration with that of...
19858         (make_pass_late_warn_uninitialized): ...new function.
19859         (pass_cse_reciprocals): Replace declaration with that of...
19860         (make_pass_cse_reciprocals): ...new function.
19861         (pass_cse_sincos): Replace declaration with that of...
19862         (make_pass_cse_sincos): ...new function.
19863         (pass_optimize_bswap): Replace declaration with that of...
19864         (make_pass_optimize_bswap): ...new function.
19865         (pass_optimize_widening_mul): Replace declaration with that of...
19866         (make_pass_optimize_widening_mul): ...new function.
19867         (pass_warn_function_return): Replace declaration with that of...
19868         (make_pass_warn_function_return): ...new function.
19869         (pass_warn_function_noreturn): Replace declaration with that of...
19870         (make_pass_warn_function_noreturn): ...new function.
19871         (pass_cselim): Replace declaration with that of...
19872         (make_pass_cselim): ...new function.
19873         (pass_phiopt): Replace declaration with that of...
19874         (make_pass_phiopt): ...new function.
19875         (pass_forwprop): Replace declaration with that of...
19876         (make_pass_forwprop): ...new function.
19877         (pass_phiprop): Replace declaration with that of...
19878         (make_pass_phiprop): ...new function.
19879         (pass_tree_ifcombine): Replace declaration with that of...
19880         (make_pass_tree_ifcombine): ...new function.
19881         (pass_dse): Replace declaration with that of...
19882         (make_pass_dse): ...new function.
19883         (pass_nrv): Replace declaration with that of...
19884         (make_pass_nrv): ...new function.
19885         (pass_rename_ssa_copies): Replace declaration with that of...
19886         (make_pass_rename_ssa_copies): ...new function.
19887         (pass_sink_code): Replace declaration with that of...
19888         (make_pass_sink_code): ...new function.
19889         (pass_fre): Replace declaration with that of...
19890         (make_pass_fre): ...new function.
19891         (pass_check_data_deps): Replace declaration with that of...
19892         (make_pass_check_data_deps): ...new function.
19893         (pass_copy_prop): Replace declaration with that of...
19894         (make_pass_copy_prop): ...new function.
19895         (pass_vrp): Replace declaration with that of...
19896         (make_pass_vrp): ...new function.
19897         (pass_uncprop): Replace declaration with that of...
19898         (make_pass_uncprop): ...new function.
19899         (pass_return_slot): Replace declaration with that of...
19900         (make_pass_return_slot): ...new function.
19901         (pass_reassoc): Replace declaration with that of...
19902         (make_pass_reassoc): ...new function.
19903         (pass_rebuild_cgraph_edges): Replace declaration with that of...
19904         (make_pass_rebuild_cgraph_edges): ...new function.
19905         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
19906         (make_pass_remove_cgraph_callee_edges): ...new function.
19907         (pass_build_cgraph_edges): Replace declaration with that of...
19908         (make_pass_build_cgraph_edges): ...new function.
19909         (pass_local_pure_const): Replace declaration with that of...
19910         (make_pass_local_pure_const): ...new function.
19911         (pass_tracer): Replace declaration with that of...
19912         (make_pass_tracer): ...new function.
19913         (pass_warn_unused_result): Replace declaration with that of...
19914         (make_pass_warn_unused_result): ...new function.
19915         (pass_diagnose_tm_blocks): Replace declaration with that of...
19916         (make_pass_diagnose_tm_blocks): ...new function.
19917         (pass_lower_tm): Replace declaration with that of...
19918         (make_pass_lower_tm): ...new function.
19919         (pass_tm_init): Replace declaration with that of...
19920         (make_pass_tm_init): ...new function.
19921         (pass_tm_mark): Replace declaration with that of...
19922         (make_pass_tm_mark): ...new function.
19923         (pass_tm_memopt): Replace declaration with that of...
19924         (make_pass_tm_memopt): ...new function.
19925         (pass_tm_edges): Replace declaration with that of...
19926         (make_pass_tm_edges): ...new function.
19927         (pass_split_functions): Replace declaration with that of...
19928         (make_pass_split_functions): ...new function.
19929         (pass_feedback_split_functions): Replace declaration with that of...
19930         (make_pass_feedback_split_functions): ...new function.
19931         (pass_strength_reduction): Replace declaration with that of...
19932         (make_pass_strength_reduction): ...new function.
19933         (pass_ipa_lower_emutls): Replace declaration with that of...
19934         (make_pass_ipa_lower_emutls): ...new function.
19935         (pass_ipa_function_and_variable_visibility): Replace declaration with
19936         that of...
19937         (make_pass_ipa_function_and_variable_visibility): ...new function.
19938         (pass_ipa_tree_profile): Replace declaration with that of...
19939         (make_pass_ipa_tree_profile): ...new function.
19940         (pass_early_local_passes): Replace declaration with that of...
19941         (make_pass_early_local_passes): ...new function.
19942         (pass_ipa_whole_program_visibility): Replace declaration with that
19943         of...
19944         (make_pass_ipa_whole_program_visibility): ...new function.
19945         (pass_ipa_lto_gimple_out): Replace declaration with that of...
19946         (make_pass_ipa_lto_gimple_out): ...new function.
19947         (pass_ipa_increase_alignment): Replace declaration with that of...
19948         (make_pass_ipa_increase_alignment): ...new function.
19949         (pass_ipa_inline): Replace declaration with that of...
19950         (make_pass_ipa_inline): ...new function.
19951         (pass_ipa_free_lang_data): Replace declaration with that of...
19952         (make_pass_ipa_free_lang_data): ...new function.
19953         (pass_ipa_free_inline_summary): Replace declaration with that of...
19954         (make_pass_ipa_free_inline_summary): ...new function.
19955         (pass_ipa_cp): Replace declaration with that of...
19956         (make_pass_ipa_cp): ...new function.
19957         (pass_ipa_reference): Replace declaration with that of...
19958         (make_pass_ipa_reference): ...new function.
19959         (pass_ipa_pure_const): Replace declaration with that of...
19960         (make_pass_ipa_pure_const): ...new function.
19961         (pass_ipa_pta): Replace declaration with that of...
19962         (make_pass_ipa_pta): ...new function.
19963         (pass_ipa_lto_finish_out): Replace declaration with that of...
19964         (make_pass_ipa_lto_finish_out): ...new function.
19965         (pass_ipa_tm): Replace declaration with that of...
19966         (make_pass_ipa_tm): ...new function.
19967         (pass_ipa_profile): Replace declaration with that of...
19968         (make_pass_ipa_profile): ...new function.
19969         (pass_ipa_cdtor_merge): Replace declaration with that of...
19970         (make_pass_ipa_cdtor_merge): ...new function.
19971         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
19972         of...
19973         (make_pass_cleanup_cfg_post_optimizing): ...new function.
19974         (pass_init_datastructures): Replace declaration with that of...
19975         (make_pass_init_datastructures): ...new function.
19976         (pass_fixup_cfg): Replace declaration with that of...
19977         (make_pass_fixup_cfg): ...new function.
19978         (pass_expand): Replace declaration with that of...
19979         (make_pass_expand): ...new function.
19980         (pass_instantiate_virtual_regs): Replace declaration with that of...
19981         (make_pass_instantiate_virtual_regs): ...new function.
19982         (pass_rtl_fwprop): Replace declaration with that of...
19983         (make_pass_rtl_fwprop): ...new function.
19984         (pass_rtl_fwprop_addr): Replace declaration with that of...
19985         (make_pass_rtl_fwprop_addr): ...new function.
19986         (pass_jump): Replace declaration with that of...
19987         (make_pass_jump): ...new function.
19988         (pass_jump2): Replace declaration with that of...
19989         (make_pass_jump2): ...new function.
19990         (pass_lower_subreg): Replace declaration with that of...
19991         (make_pass_lower_subreg): ...new function.
19992         (pass_cse): Replace declaration with that of...
19993         (make_pass_cse): ...new function.
19994         (pass_fast_rtl_dce): Replace declaration with that of...
19995         (make_pass_fast_rtl_dce): ...new function.
19996         (pass_ud_rtl_dce): Replace declaration with that of...
19997         (make_pass_ud_rtl_dce): ...new function.
19998         (pass_rtl_dce): Replace declaration with that of...
19999         (make_pass_rtl_dce): ...new function.
20000         (pass_rtl_dse1): Replace declaration with that of...
20001         (make_pass_rtl_dse1): ...new function.
20002         (pass_rtl_dse2): Replace declaration with that of...
20003         (make_pass_rtl_dse2): ...new function.
20004         (pass_rtl_dse3): Replace declaration with that of...
20005         (make_pass_rtl_dse3): ...new function.
20006         (pass_rtl_cprop): Replace declaration with that of...
20007         (make_pass_rtl_cprop): ...new function.
20008         (pass_rtl_pre): Replace declaration with that of...
20009         (make_pass_rtl_pre): ...new function.
20010         (pass_rtl_hoist): Replace declaration with that of...
20011         (make_pass_rtl_hoist): ...new function.
20012         (pass_rtl_store_motion): Replace declaration with that of...
20013         (make_pass_rtl_store_motion): ...new function.
20014         (pass_cse_after_global_opts): Replace declaration with that of...
20015         (make_pass_cse_after_global_opts): ...new function.
20016         (pass_rtl_ifcvt): Replace declaration with that of...
20017         (make_pass_rtl_ifcvt): ...new function.
20018         (pass_into_cfg_layout_mode): Replace declaration with that of...
20019         (make_pass_into_cfg_layout_mode): ...new function.
20020         (pass_outof_cfg_layout_mode): Replace declaration with that of...
20021         (make_pass_outof_cfg_layout_mode): ...new function.
20022         (pass_loop2): Replace declaration with that of...
20023         (make_pass_loop2): ...new function.
20024         (pass_rtl_loop_init): Replace declaration with that of...
20025         (make_pass_rtl_loop_init): ...new function.
20026         (pass_rtl_move_loop_invariants): Replace declaration with that of...
20027         (make_pass_rtl_move_loop_invariants): ...new function.
20028         (pass_rtl_unswitch): Replace declaration with that of...
20029         (make_pass_rtl_unswitch): ...new function.
20030         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
20031         (make_pass_rtl_unroll_and_peel_loops): ...new function.
20032         (pass_rtl_doloop): Replace declaration with that of...
20033         (make_pass_rtl_doloop): ...new function.
20034         (pass_rtl_loop_done): Replace declaration with that of...
20035         (make_pass_rtl_loop_done): ...new function.
20036         (pass_web): Replace declaration with that of...
20037         (make_pass_web): ...new function.
20038         (pass_cse2): Replace declaration with that of...
20039         (make_pass_cse2): ...new function.
20040         (pass_df_initialize_opt): Replace declaration with that of...
20041         (make_pass_df_initialize_opt): ...new function.
20042         (pass_df_initialize_no_opt): Replace declaration with that of...
20043         (make_pass_df_initialize_no_opt): ...new function.
20044         (pass_reginfo_init): Replace declaration with that of...
20045         (make_pass_reginfo_init): ...new function.
20046         (pass_inc_dec): Replace declaration with that of...
20047         (make_pass_inc_dec): ...new function.
20048         (pass_stack_ptr_mod): Replace declaration with that of...
20049         (make_pass_stack_ptr_mod): ...new function.
20050         (pass_initialize_regs): Replace declaration with that of...
20051         (make_pass_initialize_regs): ...new function.
20052         (pass_combine): Replace declaration with that of...
20053         (make_pass_combine): ...new function.
20054         (pass_if_after_combine): Replace declaration with that of...
20055         (make_pass_if_after_combine): ...new function.
20056         (pass_ree): Replace declaration with that of...
20057         (make_pass_ree): ...new function.
20058         (pass_partition_blocks): Replace declaration with that of...
20059         (make_pass_partition_blocks): ...new function.
20060         (pass_match_asm_constraints): Replace declaration with that of...
20061         (make_pass_match_asm_constraints): ...new function.
20062         (pass_regmove): Replace declaration with that of...
20063         (make_pass_regmove): ...new function.
20064         (pass_split_all_insns): Replace declaration with that of...
20065         (make_pass_split_all_insns): ...new function.
20066         (pass_fast_rtl_byte_dce): Replace declaration with that of...
20067         (make_pass_fast_rtl_byte_dce): ...new function.
20068         (pass_lower_subreg2): Replace declaration with that of...
20069         (make_pass_lower_subreg2): ...new function.
20070         (pass_mode_switching): Replace declaration with that of...
20071         (make_pass_mode_switching): ...new function.
20072         (pass_sms): Replace declaration with that of...
20073         (make_pass_sms): ...new function.
20074         (pass_sched): Replace declaration with that of...
20075         (make_pass_sched): ...new function.
20076         (pass_ira): Replace declaration with that of...
20077         (make_pass_ira): ...new function.
20078         (pass_reload): Replace declaration with that of...
20079         (make_pass_reload): ...new function.
20080         (pass_clean_state): Replace declaration with that of...
20081         (make_pass_clean_state): ...new function.
20082         (pass_branch_prob): Replace declaration with that of...
20083         (make_pass_branch_prob): ...new function.
20084         (pass_value_profile_transformations): Replace declaration with that
20085         of...
20086         (make_pass_value_profile_transformations): ...new function.
20087         (pass_postreload_cse): Replace declaration with that of...
20088         (make_pass_postreload_cse): ...new function.
20089         (pass_gcse2): Replace declaration with that of...
20090         (make_pass_gcse2): ...new function.
20091         (pass_split_after_reload): Replace declaration with that of...
20092         (make_pass_split_after_reload): ...new function.
20093         (pass_branch_target_load_optimize1): Replace declaration with that
20094         of...
20095         (make_pass_branch_target_load_optimize1): ...new function.
20096         (pass_thread_prologue_and_epilogue): Replace declaration with that
20097         of...
20098         (make_pass_thread_prologue_and_epilogue): ...new function.
20099         (pass_stack_adjustments): Replace declaration with that of...
20100         (make_pass_stack_adjustments): ...new function.
20101         (pass_peephole2): Replace declaration with that of...
20102         (make_pass_peephole2): ...new function.
20103         (pass_if_after_reload): Replace declaration with that of...
20104         (make_pass_if_after_reload): ...new function.
20105         (pass_regrename): Replace declaration with that of...
20106         (make_pass_regrename): ...new function.
20107         (pass_cprop_hardreg): Replace declaration with that of...
20108         (make_pass_cprop_hardreg): ...new function.
20109         (pass_reorder_blocks): Replace declaration with that of...
20110         (make_pass_reorder_blocks): ...new function.
20111         (pass_branch_target_load_optimize2): Replace declaration with that
20112         of...
20113         (make_pass_branch_target_load_optimize2): ...new function.
20114         (pass_leaf_regs): Replace declaration with that of...
20115         (make_pass_leaf_regs): ...new function.
20116         (pass_split_before_sched2): Replace declaration with that of...
20117         (make_pass_split_before_sched2): ...new function.
20118         (pass_compare_elim_after_reload): Replace declaration with that of...
20119         (make_pass_compare_elim_after_reload): ...new function.
20120         (pass_sched2): Replace declaration with that of...
20121         (make_pass_sched2): ...new function.
20122         (pass_stack_regs): Replace declaration with that of...
20123         (make_pass_stack_regs): ...new function.
20124         (pass_stack_regs_run): Replace declaration with that of...
20125         (make_pass_stack_regs_run): ...new function.
20126         (pass_df_finish): Replace declaration with that of...
20127         (make_pass_df_finish): ...new function.
20128         (pass_compute_alignments): Replace declaration with that of...
20129         (make_pass_compute_alignments): ...new function.
20130         (pass_duplicate_computed_gotos): Replace declaration with that of...
20131         (make_pass_duplicate_computed_gotos): ...new function.
20132         (pass_variable_tracking): Replace declaration with that of...
20133         (make_pass_variable_tracking): ...new function.
20134         (pass_free_cfg): Replace declaration with that of...
20135         (make_pass_free_cfg): ...new function.
20136         (pass_machine_reorg): Replace declaration with that of...
20137         (make_pass_machine_reorg): ...new function.
20138         (pass_cleanup_barriers): Replace declaration with that of...
20139         (make_pass_cleanup_barriers): ...new function.
20140         (pass_delay_slots): Replace declaration with that of...
20141         (make_pass_delay_slots): ...new function.
20142         (pass_split_for_shorten_branches): Replace declaration with that of...
20143         (make_pass_split_for_shorten_branches): ...new function.
20144         (pass_split_before_regstack): Replace declaration with that of...
20145         (make_pass_split_before_regstack): ...new function.
20146         (pass_convert_to_eh_region_ranges): Replace declaration with that
20147         of...
20148         (make_pass_convert_to_eh_region_ranges): ...new function.
20149         (pass_shorten_branches): Replace declaration with that of...
20150         (make_pass_shorten_branches): ...new function.
20151         (pass_set_nothrow_function_flags): Replace declaration with that of...
20152         (make_pass_set_nothrow_function_flags): ...new function.
20153         (pass_dwarf2_frame): Replace declaration with that of...
20154         (make_pass_dwarf2_frame): ...new function.
20155         (pass_final): Replace declaration with that of...
20156         (make_pass_final): ...new function.
20157         (pass_rtl_seqabstr): Replace declaration with that of...
20158         (make_pass_rtl_seqabstr): ...new function.
20159         (pass_release_ssa_names): Replace declaration with that of...
20160         (make_pass_release_ssa_names): ...new function.
20161         (pass_early_inline): Replace declaration with that of...
20162         (make_pass_early_inline): ...new function.
20163         (pass_inline_parameters): Replace declaration with that of...
20164         (make_pass_inline_parameters): ...new function.
20165         (pass_update_address_taken): Replace declaration with that of...
20166         (make_pass_update_address_taken): ...new function.
20167         (pass_convert_switch): Replace declaration with that of...
20168         (make_pass_convert_switch): ...new function.
20169         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
20170         to a subclass of simple_ipa_opt_pass along with...
20171         (pass_data_ipa_tree_profile): ...new pass_data instance and...
20172         (make_pass_ipa_tree_profile): ...new function.
20173         * tree-sra.c (pass_sra_early): Convert from a global struct to a
20174         subclass of gimple_opt_pass along with...
20175         (pass_data_sra_early): ...new pass_data instance and...
20176         (make_pass_sra_early): ...new function.
20177         (pass_sra): Convert from a global struct to a subclass of
20178         gimple_opt_pass along with...
20179         (pass_data_sra): ...new pass_data instance and...
20180         (make_pass_sra): ...new function.
20181         (pass_early_ipa_sra): Convert from a global struct to a subclass of
20182         gimple_opt_pass along with...
20183         (pass_data_early_ipa_sra): ...new pass_data instance and...
20184         (make_pass_early_ipa_sra): ...new function.
20185         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
20186         subclass of gimple_opt_pass along with...
20187         (pass_data_ccp): ...new pass_data instance and...
20188         (make_pass_ccp): ...new function.
20189         (pass_fold_builtins): Convert from a global struct to a subclass of
20190         gimple_opt_pass along with...
20191         (pass_data_fold_builtins): ...new pass_data instance and...
20192         (make_pass_fold_builtins): ...new function.
20193         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
20194         subclass of gimple_opt_pass along with...
20195         (pass_data_copy_prop): ...new pass_data instance and...
20196         (make_pass_copy_prop): ...new function.
20197         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
20198         global struct to a subclass of gimple_opt_pass along with...
20199         (pass_data_rename_ssa_copies): ...new pass_data instance and...
20200         (make_pass_rename_ssa_copies): ...new function.
20201         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
20202         subclass of gimple_opt_pass along with...
20203         (pass_data_dce): ...new pass_data instance and...
20204         (make_pass_dce): ...new function.
20205         (pass_dce_loop): Convert from a global struct to a subclass of
20206         gimple_opt_pass along with...
20207         (pass_data_dce_loop): ...new pass_data instance and...
20208         (make_pass_dce_loop): ...new function.
20209         (pass_cd_dce): Convert from a global struct to a subclass of
20210         gimple_opt_pass along with...
20211         (pass_data_cd_dce): ...new pass_data instance and...
20212         (make_pass_cd_dce): ...new function.
20213         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
20214         subclass of gimple_opt_pass along with...
20215         (pass_data_dominator): ...new pass_data instance and...
20216         (make_pass_dominator): ...new function.
20217         (pass_phi_only_cprop): Convert from a global struct to a subclass of
20218         gimple_opt_pass along with...
20219         (pass_data_phi_only_cprop): ...new pass_data instance and...
20220         (make_pass_phi_only_cprop): ...new function.
20221         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
20222         subclass of gimple_opt_pass along with...
20223         (pass_data_dse): ...new pass_data instance and...
20224         (make_pass_dse): ...new function.
20225         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
20226         a subclass of gimple_opt_pass along with...
20227         (pass_data_forwprop): ...new pass_data instance and...
20228         (make_pass_forwprop): ...new function.
20229         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
20230         struct to a subclass of gimple_opt_pass along with...
20231         (pass_data_tree_ifcombine): ...new pass_data instance and...
20232         (make_pass_tree_ifcombine): ...new function.
20233         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
20234         subclass of gimple_opt_pass along with...
20235         (pass_data_ch): ...new pass_data instance and...
20236         (make_pass_ch): ...new function.
20237         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
20238         subclass of gimple_opt_pass along with...
20239         (pass_data_tree_loop): ...new pass_data instance and...
20240         (make_pass_tree_loop): ...new function.
20241         (pass_tree_loop_init): Convert from a global struct to a subclass of
20242         gimple_opt_pass along with...
20243         (pass_data_tree_loop_init): ...new pass_data instance and...
20244         (make_pass_tree_loop_init): ...new function.
20245         (pass_lim): Convert from a global struct to a subclass of
20246         gimple_opt_pass along with...
20247         (pass_data_lim): ...new pass_data instance and...
20248         (make_pass_lim): ...new function.
20249         (pass_tree_unswitch): Convert from a global struct to a subclass of
20250         gimple_opt_pass along with...
20251         (pass_data_tree_unswitch): ...new pass_data instance and...
20252         (make_pass_tree_unswitch): ...new function.
20253         (pass_predcom): Convert from a global struct to a subclass of
20254         gimple_opt_pass along with...
20255         (pass_data_predcom): ...new pass_data instance and...
20256         (make_pass_predcom): ...new function.
20257         (pass_vectorize): Convert from a global struct to a subclass of
20258         gimple_opt_pass along with...
20259         (pass_data_vectorize): ...new pass_data instance and...
20260         (make_pass_vectorize): ...new function.
20261         (pass_graphite): Convert from a global struct to a subclass of
20262         gimple_opt_pass along with...
20263         (pass_data_graphite): ...new pass_data instance and...
20264         (make_pass_graphite): ...new function.
20265         (pass_graphite_transforms): Convert from a global struct to a subclass
20266         of gimple_opt_pass along with...
20267         (pass_data_graphite_transforms): ...new pass_data instance and...
20268         (make_pass_graphite_transforms): ...new function.
20269         (pass_check_data_deps): Convert from a global struct to a subclass of
20270         gimple_opt_pass along with...
20271         (pass_data_check_data_deps): ...new pass_data instance and...
20272         (make_pass_check_data_deps): ...new function.
20273         (pass_iv_canon): Convert from a global struct to a subclass of
20274         gimple_opt_pass along with...
20275         (pass_data_iv_canon): ...new pass_data instance and...
20276         (make_pass_iv_canon): ...new function.
20277         (pass_scev_cprop): Convert from a global struct to a subclass of
20278         gimple_opt_pass along with...
20279         (pass_data_scev_cprop): ...new pass_data instance and...
20280         (make_pass_scev_cprop): ...new function.
20281         (pass_record_bounds): Convert from a global struct to a subclass of
20282         gimple_opt_pass along with...
20283         (pass_data_record_bounds): ...new pass_data instance and...
20284         (make_pass_record_bounds): ...new function.
20285         (pass_complete_unroll): Convert from a global struct to a subclass of
20286         gimple_opt_pass along with...
20287         (pass_data_complete_unroll): ...new pass_data instance and...
20288         (make_pass_complete_unroll): ...new function.
20289         (pass_complete_unrolli): Convert from a global struct to a subclass of
20290         gimple_opt_pass along with...
20291         (pass_data_complete_unrolli): ...new pass_data instance and...
20292         (make_pass_complete_unrolli): ...new function.
20293         (pass_parallelize_loops): Convert from a global struct to a subclass
20294         of gimple_opt_pass along with...
20295         (pass_data_parallelize_loops): ...new pass_data instance and...
20296         (make_pass_parallelize_loops): ...new function.
20297         (pass_loop_prefetch): Convert from a global struct to a subclass of
20298         gimple_opt_pass along with...
20299         (pass_data_loop_prefetch): ...new pass_data instance and...
20300         (make_pass_loop_prefetch): ...new function.
20301         (pass_iv_optimize): Convert from a global struct to a subclass of
20302         gimple_opt_pass along with...
20303         (pass_data_iv_optimize): ...new pass_data instance and...
20304         (make_pass_iv_optimize): ...new function.
20305         (pass_tree_loop_done): Convert from a global struct to a subclass of
20306         gimple_opt_pass along with...
20307         (pass_data_tree_loop_done): ...new pass_data instance and...
20308         (make_pass_tree_loop_done): ...new function.
20309         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
20310         struct to a subclass of gimple_opt_pass along with...
20311         (pass_data_cse_reciprocals): ...new pass_data instance and...
20312         (make_pass_cse_reciprocals): ...new function.
20313         (pass_cse_sincos): Convert from a global struct to a subclass of
20314         gimple_opt_pass along with...
20315         (pass_data_cse_sincos): ...new pass_data instance and...
20316         (make_pass_cse_sincos): ...new function.
20317         (pass_optimize_bswap): Convert from a global struct to a subclass of
20318         gimple_opt_pass along with...
20319         (pass_data_optimize_bswap): ...new pass_data instance and...
20320         (make_pass_optimize_bswap): ...new function.
20321         (pass_optimize_widening_mul): Convert from a global struct to a
20322         subclass of gimple_opt_pass along with...
20323         (pass_data_optimize_widening_mul): ...new pass_data instance and...
20324         (make_pass_optimize_widening_mul): ...new function.
20325         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
20326         subclass of gimple_opt_pass along with...
20327         (pass_data_phiopt): ...new pass_data instance and...
20328         (make_pass_phiopt): ...new function.
20329         (pass_cselim): Convert from a global struct to a subclass of
20330         gimple_opt_pass along with...
20331         (pass_data_cselim): ...new pass_data instance and...
20332         (make_pass_cselim): ...new function.
20333         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
20334         subclass of gimple_opt_pass along with...
20335         (pass_data_phiprop): ...new pass_data instance and...
20336         (make_pass_phiprop): ...new function.
20337         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
20338         subclass of gimple_opt_pass along with...
20339         (pass_data_pre): ...new pass_data instance and...
20340         (make_pass_pre): ...new function.
20341         (pass_fre): Convert from a global struct to a subclass of
20342         gimple_opt_pass along with...
20343         (pass_data_fre): ...new pass_data instance and...
20344         (make_pass_fre): ...new function.
20345         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
20346         subclass of gimple_opt_pass along with...
20347         (pass_data_reassoc): ...new pass_data instance and...
20348         (make_pass_reassoc): ...new function.
20349         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
20350         subclass of gimple_opt_pass along with...
20351         (pass_data_sink_code): ...new pass_data instance and...
20352         (make_pass_sink_code): ...new function.
20353         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
20354         subclass of gimple_opt_pass along with...
20355         (pass_data_strlen): ...new pass_data instance and...
20356         (make_pass_strlen): ...new function.
20357         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
20358         struct to a subclass of gimple_opt_pass along with...
20359         (pass_data_build_alias): ...new pass_data instance and...
20360         (make_pass_build_alias): ...new function.
20361         (pass_build_ealias): Convert from a global struct to a subclass of
20362         gimple_opt_pass along with...
20363         (pass_data_build_ealias): ...new pass_data instance and...
20364         (make_pass_build_ealias): ...new function.
20365         (pass_ipa_pta): Convert from a global struct to a subclass of
20366         simple_ipa_opt_pass along with...
20367         (pass_data_ipa_pta): ...new pass_data instance and...
20368         (make_pass_ipa_pta): ...new function.
20369         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
20370         subclass of gimple_opt_pass along with...
20371         (pass_data_uncprop): ...new pass_data instance and...
20372         (make_pass_uncprop): ...new function.
20373         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
20374         global struct to a subclass of gimple_opt_pass along with...
20375         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
20376         (make_pass_late_warn_uninitialized): ...new function.
20377         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
20378         to a subclass of gimple_opt_pass along with...
20379         (pass_data_init_datastructures): ...new pass_data instance and...
20380         (make_pass_init_datastructures): ...new function.
20381         (pass_early_warn_uninitialized): Convert from a global struct to a
20382         subclass of gimple_opt_pass along with...
20383         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
20384         (make_pass_early_warn_uninitialized): ...new function.
20385         (pass_update_address_taken): Convert from a global struct to a
20386         subclass of gimple_opt_pass along with...
20387         (pass_data_update_address_taken): ...new pass_data instance and...
20388         (make_pass_update_address_taken): ...new function.
20389         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
20390         struct to a subclass of gimple_opt_pass along with...
20391         (pass_data_release_ssa_names): ...new pass_data instance and...
20392         (make_pass_release_ssa_names): ...new function.
20393         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
20394         subclass of gimple_opt_pass along with...
20395         (pass_data_stdarg): ...new pass_data instance and...
20396         (make_pass_stdarg): ...new function.
20397         * tree-switch-conversion.c (pass_convert_switch): Convert from a
20398         global struct to a subclass of gimple_opt_pass along with...
20399         (pass_data_convert_switch): ...new pass_data instance and...
20400         (make_pass_convert_switch): ...new function.
20401         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
20402         to a subclass of gimple_opt_pass along with...
20403         (pass_data_tail_recursion): ...new pass_data instance and...
20404         (make_pass_tail_recursion): ...new function.
20405         (pass_tail_calls): Convert from a global struct to a subclass of
20406         gimple_opt_pass along with...
20407         (pass_data_tail_calls): ...new pass_data instance and...
20408         (make_pass_tail_calls): ...new function.
20409         * tree-vect-generic.c (pass_lower_vector): Convert from a global
20410         struct to a subclass of gimple_opt_pass along with...
20411         (pass_data_lower_vector): ...new pass_data instance and...
20412         (make_pass_lower_vector): ...new function.
20413         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
20414         gimple_opt_pass along with...
20415         (pass_data_lower_vector_ssa): ...new pass_data instance and...
20416         (make_pass_lower_vector_ssa): ...new function.
20417         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
20418         to a subclass of gimple_opt_pass along with...
20419         (pass_data_slp_vectorize): ...new pass_data instance and...
20420         (make_pass_slp_vectorize): ...new function.
20421         (pass_ipa_increase_alignment): Convert from a global struct to a
20422         subclass of simple_ipa_opt_pass along with...
20423         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
20424         (make_pass_ipa_increase_alignment): ...new function.
20425         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
20426         gimple_opt_pass along with...
20427         (pass_data_vrp): ...new pass_data instance and...
20428         (make_pass_vrp): ...new function.
20429         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
20430         subclass of simple_ipa_opt_pass along with...
20431         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
20432         (make_pass_ipa_free_lang_data): ...new function.
20433         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
20434         gimple_opt_pass along with...
20435         (pass_data_tsan): ...new pass_data instance and...
20436         (make_pass_tsan): ...new function.
20437         (pass_tsan_O0): Convert from a global struct to a subclass of
20438         gimple_opt_pass along with...
20439         (pass_data_tsan_O0): ...new pass_data instance and...
20440         (make_pass_tsan_O0): ...new function.
20441         * var-tracking.c (pass_variable_tracking): Convert from a global
20442         struct to a subclass of rtl_opt_pass along with...
20443         (pass_data_variable_tracking): ...new pass_data instance and...
20444         (make_pass_variable_tracking): ...new function.
20445         * web.c (pass_web): Convert from a global struct to a subclass of
20446         rtl_opt_pass along with...
20447         (pass_data_web): ...new pass_data instance and...
20448         (make_pass_web): ...new function.
20449         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
20450         declaration with that of...
20451         (make_pass_mode_switch_use): ...new function.
20452         (pass_resolve_sw_modes): Replace declaration with that of...
20453         (make_pass_resolve_sw_modes): ...new function.
20454         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
20455         from a global struct to a subclass of rtl_opt_pass along with...
20456         (pass_data_mode_switch_use): ...new pass_data instance and...
20457         (make_pass_mode_switch_use): ...new function.
20458         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
20459         from a global struct to a subclass of rtl_opt_pass along with...
20460         (pass_data_resolve_sw_modes): ...new pass_data instance and...
20461         (make_pass_resolve_sw_modes): ...new function.
20462         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
20463         struct to a subclass of rtl_opt_pass along with...
20464         (pass_data_insert_vzeroupper): ...new pass_data instance and...
20465         (make_pass_insert_vzeroupper): ...new function.
20466         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
20467         global struct to a subclass of rtl_opt_pass along with...
20468         (pass_data_work_around_errata): ...new pass_data instance and...
20469         (make_pass_work_around_errata): ...new function.
20470         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
20471         struct to a subclass of rtl_opt_pass along with...
20472         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
20473         (make_pass_mips_machine_reorg2): ...new function.
20474
20475 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
20476
20477         * passes.c (pass_manager::operator new): New.
20478
20479 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
20480
20481         Handwritten part of conversion of passes to C++ classes.
20482
20483         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
20484         (toplev.o): Add dep on PASS_MANAGER_H.
20485         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
20486         of early local pases to reflect this moving from a global to a
20487         member of gcc::pass_manager.
20488         (cgraph_add_new_function): Likewise.
20489         * lto-cgraph.c (lto_output_node): Update for conversion of
20490         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
20491         * passes.c (opt_pass::clone): New.
20492         (opt_pass::gate): New.
20493         (opt_pass::execute): New.
20494         (opt_pass::opt_pass): New.
20495         (pass_manager::execute_early_local_passes): New.
20496         (pass_manager::execute_pass_mode_switching): new.
20497         (finish_optimization_passes): Convert to...
20498         (pass_manager::finish_optimization_passes): ...this.
20499         (finish_optimization_passes): Update for conversion of passes to
20500         C++ classes.
20501         (register_dump_files_1): Use has_gate since we cannot portably
20502         check a vtable entry against NULL.
20503         (dump_one_pass): Likewise.
20504         (ipa_write_summaries_2): Likewise.
20505         (ipa_write_optimization_summaries_1): Likewise.
20506         (ipa_read_summaries_1): Likewise.
20507         (ipa_read_optimization_summaries_1): Likewise.
20508         (execute_ipa_stmt_fixups): Likewise.
20509         (pass_manager::pass_manager): Rewrite pass-creation, invoking
20510         pass-creation functions rather than wiring up globals, and
20511         storing the results in fields of pass_manager generated using
20512         pass-instances.def.
20513         (pass_manager::dump_profile_report): Update for conversion of
20514         passes to C++ classes.
20515         (pass_manager::execute_ipa_summary_passes): Likewise.
20516         (execute_one_ipa_transform_pass): Likewise.
20517         (execute_one_pass): Use has_gate and has_execute since we cannot
20518         portably check a vtable entry against NULL.
20519         * pass_manager.h (pass_manager::finish_optimization_passes): New.
20520         (pass_manager): Use pass-instances.def to add fields for the
20521         various pass instances.
20522         * toplev.c (finalize): Update for move of
20523         finish_optimization_passes to a method of gcc::pass_manager.
20524         * toplev.h (finish_optimization_passes): Move to method of class
20525         pass_manager.
20526         * tree-pass.h (struct pass_data): New.
20527         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
20528         (opt_pass::gate): Convert to virtual function.
20529         (opt_pass::~opt_pass): New.
20530         (opt_pass::clone): New.
20531         (opt_pass::execute): Convert to virtual function.
20532         (opt_pass::opt_pass): New.
20533         (opt_pass::ctxt_): new.
20534         (gimple_opt_pass): Convert to subclass of opt_pass.
20535         (gimple_opt_pass::gimple_opt_pass): New.
20536         (rtl_opt_pass): Convert to subclass of opt_pass.
20537         (rtl_opt_pass::rtl_opt_pass): New.
20538         (ipa_opt_pass_d): Convert to subclass of opt_pass.
20539         (ipa_opt_pass_d::ipa_opt_pass_d): New.
20540         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
20541         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
20542         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
20543         invocation of pass_mode_switching to reflect this moving from a
20544         global to a member of gcc::pass_manager.
20545         (ix86_option_override): Rework how pass_insert_vzeroupper is
20546         added to the pass_manager to reflect autogenerated changes.
20547         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
20548
20549 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
20550
20551         PR rtl-optimization/57708
20552         * recog.c (peep2_find_free_register): Validate all regs in a
20553         multi-reg mode.
20554
20555 2013-08-05  Jan Hubicka  <jh@suse.cz>
20556
20557         PR lto/57602
20558         * cgraph.c (verify_cgraph_node): Accept local flags from other
20559         partitions.
20560         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
20561         (function_and_variable_visibility): Likewise.
20562         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
20563
20564 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20565
20566         * graph.c (init_graph_slim_pretty_print): Remove.
20567         (print_graph_cfg): Do not call it.  Use local pretty printer.
20568         (start_graph_dump): Likewise.
20569
20570 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20571
20572         * gimple-pretty-print.c (buffer): Remove.
20573         (initialized): Likewise.
20574         (maybe_init_pretty_print): Likewise.
20575         (print_gimple_stmt): Do not call it.  Use non-static local
20576         pretty_printer variable.
20577         (print_gimple_expr): Likewise.
20578         (print_gimple_seq): Likewise.
20579         (gimple_dump_bb): Likewise.
20580
20581 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20582
20583         * asan.c (asan_pp): Remove.
20584         (asan_pp_initialized): Likewise.
20585         (asan_pp_initialize): Likewise.
20586         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
20587         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
20588         (asan_add_global): Likewise.
20589
20590 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20591
20592         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
20593         * diagnostic.h (diagnostic_flush_buffer): Adjust.
20594         * pretty-print.c (pp_formatted_text_data): Likewise.
20595         (pp_indent): Rename from pp_base_indent.
20596         (pp_format): Rename from pp_base_format.
20597         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
20598         (pp_format_verbatim): Rename from pp_base_format_verbatim.
20599         (pp_flush): Rename from pp_base_flush.
20600         (pp_set_line_maximum_length): Rename from
20601         pp_base_set_line_maximum_length.
20602         (pp_clear_output_area): Rename from pp_base_clear_output_area.
20603         (pp_set_prefix): Rename from pp_base_set_prefix.
20604         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
20605         (pp_emit_prefix): Rename from pp_base_emit_prefix.
20606         (pp_append_text): Rename from pp_base_append_text.
20607         (pp_formatted_text): Rename from pp_base_formatted_text.
20608         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
20609         (pp_remaining_character_count_for_line): Rename from
20610         pp_base_remaining_character_count_for_line.
20611         (pp_newline): Rename from pp_base_newline.
20612         (pp_character): Rename from pp_base_character.
20613         (pp_string): Rename from pp_base_string.
20614         (pp_maybe_space): Rename from pp_base_maybe_space.
20615         * asan.c (asan_pp_string): Adjust.
20616         (asan_emit_stack_protection): Likewise.
20617         (asan_add_global): Likewise.
20618         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
20619         * tree-mudflap.c (mf_varname_tree): Likewise.
20620         * tree-pretty-print.c (pp_tree_identifier): Rename from
20621         pp_base_tree_identifier.
20622         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
20623         Declare as function.
20624
20625 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20626
20627         * pretty-print.h (pp_bar_bar): New.
20628         (pp_ampersand_ampersand): Likewise.
20629         (pp_less_equal): Likewise.
20630         (pp_greater_equal): Likewise.
20631         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
20632         printer functions instead of pp_string or operators and punctuators.
20633         (dump_gimple_call): Likewise.
20634         (dump_gimple_omp_for): Likewise.
20635         (dump_gimple_transaction): Likewise.
20636         (dump_gimple_phi): Likewise.
20637         (pp_gimple_stmt_1): Likewise.
20638         * sched-vis.c (print_insn): Likewise.
20639         * tree-mudflap.c (mf_varname_tree): Likewise.
20640         * tree-pretty-print.c (dump_block_node): Likewise.
20641         (dump_generic_node): Likewise.
20642
20643 2013-08-02  Jan Hubicka  <jh@suse.cz>
20644
20645         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
20646         boundaries.
20647         * lto-streamer-out.c (tree_is_indexable): Results decls and
20648         parm decls are not indexable.
20649         (DFS_write_tree_body): Do not follow args and results.
20650         (hash_tree): Likewise.
20651         (output_functions): Rearrange so struct function is needed
20652         only when real body is output; be able to also ouptut abstract
20653         functions; output DECL_ARGUMENTS and DECL_RESULT.
20654         (lto_output): When not in WPA, ale store abstract functions.
20655         (write_symbol): Do not care about RESULT_DECL.
20656         (output_symbol_p): Handle correctly sbtract decls.
20657         * lto-streamer-in.c (input_function): Rearrange so struct
20658         function can be NULL at entry; allow streaming of
20659         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
20660         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
20661         sanity check during LTO.
20662         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
20663         RESULT_DECl and DECL_ARGUMENTS.
20664         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20665         Likewise.
20666
20667 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20668
20669         * pretty-print.h (pp_underscore): New.
20670         (pp_comma): Tidy.
20671         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
20672         printer functions instead of pp_character.
20673         (dump_binary_rhs): Likewise.
20674         (dump_ternary_rhs): Likewise.
20675         (dump_gimple_call_args): Likewise.
20676         (pp_points_to_solution): Likewise.
20677         (dump_gimple_call): Likewise.
20678         (dump_gimple_switch): Likewise.
20679         (dump_gimple_cond): Likewise.
20680         (dump_gimple_bind): Likewise.
20681         (dump_gimple_try): Likewise.
20682         (dump_gimple_omp_for): Likewise.
20683         (dump_gimple_omp_continue): Likewise.
20684         (dump_gimple_omp_single): Likewise.
20685         (dump_gimple_omp_sections): Likewise.
20686         (dump_gimple_omp_block): Likewise.
20687         (dump_gimple_omp_critical): Likewise.
20688         (dump_gimple_transaction): Likewise.
20689         (dump_gimple_asm): Likewise.
20690         (dump_gimple_phi): Likewise.
20691         (dump_gimple_omp_parallel): Likewise.
20692         (dump_gimple_omp_task): Likewise.
20693         (dump_gimple_omp_atomic_load): Likewise.
20694         (dump_gimple_omp_atomic_store): Likewise.
20695         (dump_gimple_mem_ops): Likewise.
20696         (pp_gimple_stmt_1): Likewise.
20697         (pp_cfg_jump): Likewise.
20698         (dump_implicit_edges): Likewise.
20699         (gimple_dump_bb_for_graph): Likewise.
20700         * graph.c (draw_cfg_node): Likewise.
20701         * langhooks.c (lhd_print_error_function): Likewise.
20702         * sched-vis.c (print_exp): Likewise.
20703         (print_value): Likewise.
20704         (print_pattern): Likewise.
20705         (print_insn): Likewise.
20706         (rtl_dump_bb_for_graph): Likewise.
20707         * tree-pretty-print.c (dump_function_declaration): Likewise.
20708         (dump_array_domain): Likewise.
20709         (dump_omp_clause): Likewise.
20710         (dump_location): Likewise.
20711         (dump_generic_node): Likewise.
20712         (print_struct_decl): Likewise.
20713         * diagnostic.c (diagnostic_show_locus): Use pp_space.
20714
20715 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20716
20717         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
20718         candidate table when replacing a candidate statement.
20719         (replace_rhs_if_not_dup): Likewise.
20720         (replace_one_candidate): Likewise.
20721
20722 2013-08-02  Jan Hubicka  <jh@suse.cz>
20723             Martin Liska  <marxin.liska@gmail.com>
20724
20725         * cgraphunit.c (add_new_function): Fix logic when adding from
20726         late IPA pass.
20727         (assemble_thunk): Rename to ...
20728         (expand_thunk); .. this one; export; get it working with
20729         general functions; make produced gimple valid.
20730         * cgraph.h (expand_thunk): Declare.
20731
20732 2013-08-02  Jan Hubicka  <jh@suse.cz>
20733
20734         * ipa-cp.c (gather_context_independent_values): Use
20735         ipa_get_param_move_cost.
20736         (get_replacement_map): Remove PARAM; move parameter folding
20737         into tree-inline.c
20738         (create_specialized_node): Update.
20739         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
20740         assert that we have gimple body; update move_cost.
20741         (count_formal_params): Assert that we have gimple body.
20742         (ipa_dump_param): New function.
20743         (ipa_alloc_node_params): Break out from ...
20744         (ipa_initialize_node_params): ... here.
20745         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
20746         (ipa_write_node_info): Stream move costs.
20747         (ipa_read_node_info): Read move costs.
20748         (ipa_update_after_lto_read): Do not recompute node params.
20749         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
20750         (ipa_get_param): Check we are not in WPA.
20751         (ipa_get_param_move_cost): New.
20752         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
20753         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
20754         parm numbers to be present.
20755
20756 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
20757
20758         PR rtl-optimization/58048
20759         * lra-constraints.c (process_alt_operands): Don't check asm
20760         operand on register.
20761
20762 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
20763
20764         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
20765         the implied StoreLoad barrier for atomic operations if before.
20766
20767 2013-08-02  Jan Hubicka  <jh@suse.cz>
20768             Martin Liska  <marxin.liska@gmail.com>
20769
20770         * cgraph.c (cgraph_function_body_availability): Do not check
20771         cgraph flags.
20772         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
20773         symtab_node_availability): Declare.
20774         * ipa.c (can_replace_by_local_alias): New.
20775         (function_and_variable_visibility): Use it.
20776         * symtab.c (symtab_for_node_and_aliases,
20777         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
20778
20779 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
20780
20781         PR rtl-optimization/57963
20782         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
20783         (lra_constraints): Use them.
20784
20785 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
20786
20787         * config/arm/types.md (define_attr "type"): Add "load_acq"
20788         and "store_rel".
20789         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
20790         changes.
20791         (cortex_a53_store1): Likewise.
20792
20793 2013-08-01  Jan Hubicka  <jh@suse.cz>
20794
20795         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
20796         partitions are not needed.
20797
20798 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
20799
20800         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
20801         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
20802         MAYBE_NON_Q_CLASS_P where appropriate.
20803
20804 2013-08-01  Jan Hubicka  <jh@suse.cz>
20805
20806         * cgraph.h (release_function_body): Declare.
20807         * tree.c (free_lang_data_in_decl): Free, parameters and return values
20808         of unused delcarations.
20809
20810 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20811
20812         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
20813         RTL form when subtracting a constant.
20814
20815 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20816
20817         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
20818         Generate canonical plus rtx with negated immediate instead of minus
20819         where appropriate.
20820         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
20821
20822 2013-08-01  Jan Hubicka  <jh@suse.cz>
20823
20824         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
20825         (cgraph_release_function_body): Likewise.
20826         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
20827         * cgraph.h (cgrpah_node): Rename abstract_and_needed
20828         to used_as_abstract_origin.
20829         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
20830         symbols used as abstract origins.
20831         * cgraphunit.c (analyze_functions): Update.
20832         * ipa.c (symtab_remove_unreachable_nodes): Recompute
20833         used_as_abstract_origin.
20834         * tree-inline.c (tree_function_versioning): Update
20835         used_as_abstract_origin; be ready for DECL_RESULT and
20836         DECL_ARGUMENTS to be NULL.
20837
20838         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
20839         for abstract functions.
20840         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
20841         real symbols.
20842
20843 2013-08-01  Jan Hubicka  <jh@suse.cz>
20844
20845         * profile.c (compute_value_histograms): Fix thinko.
20846
20847 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
20848
20849         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
20850         aarch-common-protos.h to extra_headers.
20851         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20852         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
20853         * config/aarch64/t-aarch64 (aarch-common.o): Define.
20854
20855 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
20856
20857         * config/aarch64/aarch64.md (define_attr "type"): Delete.
20858         Include "../arm/types.md".  Define "type" attribute for all patterns.
20859         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
20860         attribute changes.
20861
20862 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
20863
20864         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
20865         to support power8 load fusion.
20866         (fusion_gpr_mem_load): Likewise.
20867
20868         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
20869
20870         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
20871         declarations for power8 load fusion.
20872         (emit_fusion_gpr_load): Likewise.
20873
20874         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
20875         tuning for power8, turn on fusion mode by default.  Turn on sign
20876         extending fusion mode if normal fusion mode is on, and we are at
20877         -O2 or -O3.
20878         (fusion_gpr_load_p): New function, return true if we can fuse an
20879         addis instruction with a dependent load to a GPR.
20880         (emit_fusion_gpr_load): Emit the instructions for power8 load
20881         fusion to GPRs.
20882
20883         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
20884         (VSX load fusion peepholes): New peepholes to fuse together an
20885         addi instruction with a VSX load instruction.
20886
20887         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
20888         peepholes to fuse an addis instruction with a load to a GPR base
20889         register.  If we are supporting sign extending fusions, convert
20890         sign extending loads to zero extending loads and add an explicit
20891         sign extension.
20892
20893 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
20894
20895         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
20896         aarch-common-protos.h to extra_headers.
20897         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20898         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
20899         (arm_early_store_addr_dep): Likewise.
20900         (arm_no_early_alu_shift_dep): Likewise.
20901         (arm_no_early_alu_shift_value_dep): Likewise.
20902         (arm_no_early_mul_dep): Likewise.
20903         (arm_no_early_store_addr_dep): Likewise.
20904         (arm_mac_accumulator_is_mul_result): Likewise.
20905         (arm_mac_accumulator_is_result): Likewise.
20906         * config/arm/aarch-common.c: ... here.  New file.
20907         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
20908         here to ...
20909         (arm_early_store_addr_dep): Likewise.
20910         (arm_no_early_alu_shift_dep): Likewise.
20911         (arm_no_early_alu_shift_value_dep): Likewise.
20912         (arm_no_early_mul_dep): Likewise.
20913         (arm_no_early_store_addr_dep): Likewise.
20914         (arm_mac_accumulator_is_mul_result): Likewise.
20915         (arm_mac_accumulator_is_result): Likewise.
20916         * config/arm/aarch-common-protos.h: ... here.  New file.
20917         * config/arm/t-arm (aarch-common.o): Define.
20918
20919 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
20920
20921         * config/arm/arm.md: Include new file "types.md".
20922         (define_attr "type"): Move from here to ...
20923         (define_attr "mul32"): Likewise.
20924         (define_attr "mul64"): Likewise.
20925         * config/arm/types.md: ... here.  New file.
20926
20927 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20928
20929         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
20930         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
20931
20932 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20933
20934         * gen-pass-instances.awk: Fix offset of substr().
20935
20936 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
20937
20938         * Makefile.in (pass-instances.def): New.
20939         (passes.o): Replace dependency on passes.def with one on
20940         pass-instances.def
20941
20942         * gen-pass-instances.awk: New.
20943
20944         * passes.c (pass_manager::pass_manager): Use pass-instances.def
20945         rather than passes.def, updating local definition of NEXT_PASS
20946         macro to add an extra NUM parameter (currently unused).
20947
20948 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
20949
20950         * Makefile.in (PASS_MANAGER_H): New.
20951         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
20952         (passes.o): Likewise.
20953         (statistics.o): Likewise.
20954         (cgraphunit.o): Likewise.
20955         (context.o): Depend on PASS_MANAGER_H.
20956
20957         * pass_manager.h: New.
20958
20959         * cgraphunit.c (cgraph_add_new_function): Update for moves
20960         of globals to fields of pass_manager.
20961         (analyze_function): Likewise.
20962         (expand_function): Likewise.
20963         (ipa_passes): Likewise.
20964         (compile): Likewise.
20965
20966         * context.c (context::context): New.
20967         * context.h  (context::context): New.
20968         (context::get_passes): New.
20969         (context::passes_): New.
20970
20971         * lto-cgraph.c (input_node): Update for moves of globals to
20972         fields of pass_manager.
20973
20974         * passes.c (all_passes): Remove, in favor of a field of the
20975         same name within the new class pass_manager.
20976         (all_small_ipa_passes): Likewise.
20977         (all_lowering_passes): Likewise.
20978         (all_regular_ipa_passes): Likewise.
20979         (all_late_ipa_passes): Likewise.
20980         (all_lto_gen_passes): Likewise.
20981         (passes_by_id): Likewise.
20982         (passes_by_id_size): Likewise.
20983         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
20984         the new class pass_manager.
20985         (set_pass_for_id): Convert to...
20986         (pass_manager::set_pass_for_id): ...method.
20987         (get_pass_for_id): Convert to...
20988         (pass_manager::get_pass_for_id): ...method.
20989         (register_one_dump_file): Move body of implementation into...
20990         (pass_manager::register_one_dump_file): ...here.
20991         (register_dump_files_1): Convert to...
20992         (pass_manager::register_dump_files_1): ...method.
20993         (register_dump_files): Convert to...
20994         (pass_manager::register_dump_files): ...method.
20995         (create_pass_tab): Update for moves of globals to fields of
20996         pass_manager.
20997         (dump_passes): Move body of implementation into...
20998         (pass_manager::dump_passes): ...here.
20999         (register_pass): Move body of implementation into...
21000         (pass_manager::register_pass): ...here.
21001         (init_optimization_passes): Convert into...
21002         (pass_manager::pass_manager): ...constructor for new
21003         pass_manager class, and initialize the pass_lists array.
21004         (check_profile_consistency): Update for moves of globals to
21005         fields of pass_manager.
21006         (dump_profile_report): Move body of implementation into...
21007         (pass_manager::dump_profile_report): ...here.
21008         (ipa_write_summaries_1): Update for moves of pass lists from
21009         being globals to fields of pass_manager.
21010         (ipa_write_optimization_summaries): Likewise.
21011         (ipa_read_summaries):  Likewise.
21012         (ipa_read_optimization_summaries): Likewise.
21013         (execute_all_ipa_stmt_fixups): Likewise.
21014
21015         * statistics.c (statistics_fini): Update for moves of globals to
21016         fields of pass_manager.
21017
21018         * toplev.c (general_init): Replace call to
21019         init_optimization_passes with construction of the pass_manager
21020         instance.
21021
21022         * tree-pass.h (all_passes): Remove, in favor of a field of the
21023         same name within the new class pass_manager.
21024         (all_small_ipa_passes): Likewise.
21025         (all_lowering_passes): Likewise.
21026         (all_regular_ipa_passes): Likewise.
21027         (all_lto_gen_passes): Likewise.
21028         (all_late_ipa_passes): Likewise.
21029         (passes_by_id): Likewise.
21030         (passes_by_id_size): Likewise.
21031         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
21032         the new class pass_manager.
21033         (get_pass_for_id): Remove.
21034
21035 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
21036
21037         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
21038         configs.
21039
21040 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
21041
21042         * arm.md (mulhi3): New expand pattern.
21043
21044 2013-07-30  Jan Hubicka  <jh@suse.cz>
21045             Martin Liska  <marxin.liska@gmail.com>
21046
21047         * profile.c (compute_value_histograms): Do not ICE when
21048         there is mismatch only on some counters.
21049
21050 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
21051
21052         PR rtl-optimization/57637
21053         * function.c (move_insn_for_shrink_wrap): Also check the
21054         GEN set of the LIVE problem for the liveness analysis
21055         if it exists, otherwise give up.
21056
21057 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21058
21059         PR tree-optimization/57993
21060         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
21061         replaced statement in the candidate table.
21062         (phi_add_costs): Return infinite cost when the hidden basis does
21063         not dominate all phis on which the candidate is dependent.
21064         (replace_one_candidate): Record replaced statement in the
21065         candidate table.
21066
21067 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
21068
21069         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
21070         (ashlv2si3): New expander.
21071         (*ashlv2si3_i): New define_insn_and_split.
21072         * predicates.md (float_operation): Allow patterns with three
21073         basic sub-patterns.
21074
21075         PR rtl-optimization/58021
21076         * mode-switching.c (create_pre_exit): Always split off preceding
21077         insns if we are not at the basic block head.
21078
21079 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
21080
21081         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
21082         (UCLIBC_DYNAMIC_LINKER): New macro.
21083         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
21084         `-mnan=2008'.
21085         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
21086         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
21087         `-mnan=2008'.
21088         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
21089         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
21090         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
21091         for SF and DF modes.  Use ieee_quad_format for TF mode.
21092         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
21093         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
21094         (mips_option_override): Handle `-mnan=legacy'.
21095         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
21096         `-mabs=2008' and `-mnan=2008'.
21097         (OPTION_DEFAULT_SPECS): Add "nan" default.
21098         (ASM_SPEC): Handle `-mnan='.
21099         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
21100         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
21101         comment accordingly.
21102         (neg<mode>2): Likewise.
21103         * config/mips/mips.opt (mabs, mnan): New options.
21104         * doc/install.texi (Configuration): Document `--with-nan=' option.
21105         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
21106         `-mnan=' options.
21107         (MIPS Options): Document them.
21108         * config.gcc <mips*-*-*>: Handle `--with-nan='.
21109         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
21110         * configure: Regenerate.
21111         * config.in: Regenerate.
21112
21113 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
21114
21115         * config/i386/i386.md (float post-reload splitters): Do not check
21116         for subregs of SSE registers.
21117
21118 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
21119             H.J. Lu  <hongjiu.lu@intel.com>
21120
21121         PR target/57954
21122         PR target/57988
21123         * config/i386/i386.md (post-reload splitter
21124         to avoid partial SSE reg dependency stalls): New pattern.
21125
21126 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21127
21128         * config/s390/s390.md ("movcc"): Swap load and store instructions.
21129
21130 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
21131
21132         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
21133         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
21134
21135 2013-07-26  Cary Coutant  <ccoutant@google.com>
21136
21137         * dwarf2out.c (die_checksum_ordered): Don't include template
21138         instantiations in signature.
21139         (is_template_parameter): New function.
21140         (is_template_instantiation): New function.
21141         (generate_skeleton_bottom_up): Don't include template instantiations
21142         in type unit DIE.
21143         (generate_skeleton): Likewise.
21144         (break_out_comdat_types): Move recursive call to break out nested
21145         types earlier.
21146         (prune_unused_types_mark_generic_parms_dies): Call
21147         is_template_parameter.
21148
21149 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
21150
21151         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
21152         uses vector registers.
21153         * config/aarch64/iterators.md: Add attributes rtn and vas.
21154
21155 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21156             Richard Earnshaw  <richard.earnshaw@arm.com>
21157
21158         * combine.c (simplify_comparison): Re-canonicalize operands
21159         where appropriate.
21160         * config/arm/arm.md (movcond_addsi): New splitter.
21161
21162 2013-07-25  Sterling Augustine  <saugustine@google.com>
21163
21164         * dwarf2out.c (size_of_pubnames): Move code to...
21165         (include_pubname_in_output): ...here.  New.
21166         (want_pubnames): Rearrange.
21167         (output_pubnames): Call include_pubname_in_output.  Move assertion.
21168
21169 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
21170
21171         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
21172
21173 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
21174
21175         PR target/38836
21176         * doc/extend.texi: Remove obsolete builtins. Fix
21177         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
21178
21179 2013-07-25  Jan Hubicka  <jh@suse.cz>
21180
21181         * cgraph.c (release_function_body): Break out from ...
21182         (cgraph_release_function_body): ... this one; also release DECL_RESULT
21183         and DECL_ARGUMENTS.
21184         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
21185         old_tree in the map.
21186         (create_specialized_node): Update.
21187         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
21188         into index.
21189         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
21190         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
21191         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
21192         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
21193         DECL_RESULT.
21194
21195 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21196
21197         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
21198         addsi3_carryin_alt2_<optab>): Correct output template.
21199
21200 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21201
21202         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
21203         Adjust for arm_restrict_it.
21204         Remove trailing whitespace.
21205
21206 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
21207
21208         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
21209         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
21210
21211         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
21212
21213 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
21214
21215         PR rtl-optimization/57960
21216         * lra-constraints.c (process_alt_operands): Use the right mode
21217         when checking strict_low.
21218
21219 2013-07-25  Jan Hubicka  <jh@suse.cz>
21220
21221         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
21222         * cgraph.c (cgraph_remove_node): Do not release function body
21223         when in cgraph streaming.
21224         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
21225         in other partitions are not considered reachable; fix handling of
21226         clones.
21227
21228 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21229
21230         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
21231
21232 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21233
21234         PR target/19599
21235         PR target/57731
21236         PR target/57837
21237         * config/arm/arm.md ("*sibcall_insn): Replace use of
21238         Ss with US. Adjust output for v5 and v4t.
21239         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
21240
21241         * config/arm/constraints.md ("Ss"): Rename to US.
21242
21243 2013-07-25  Terry Guo  <terry.guo@arm.com>
21244
21245         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
21246         shift_add/shift_sub0/shift_sub1 RTXs.
21247
21248 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
21249             Anton Blanchard  <anton@au1.ibm.com>
21250
21251         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
21252         (altivec_vpks<VI_char>ss): Likewise.
21253         (altivec_vpks<VI_char>us): Likewise.
21254         (altivec_vpku<VI_char>us): Likewise.
21255         (altivec_vpku<VI_char>um): Likewise.
21256
21257 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
21258
21259         Introduce context class.
21260
21261         * Makefile.in (CONTEXT_H): New.
21262         (OBJS): Add context.o.
21263         (toplev.o): Add CONTEXT_H to dependencies.
21264         (context.o): New.
21265
21266         * toplev.c (general_init): Create the singleton gcc::context instance.
21267
21268         * context.c: New.
21269
21270         * context.h: New.
21271
21272 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
21273
21274         PR rtl-optimization/57968
21275         * mode-switching.c (create_pre_exit): Allow instructions that
21276         don't set a return register to need a non-exit mode.
21277
21278 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21279             Anton Blanchard  <anton@au1.ibm.com>
21280
21281         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
21282         operands to vperm for little endian.
21283         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
21284         of lvsl to create the control mask for a vperm for little endian.
21285
21286 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21287             Anton Blanchard  <anton@au1.ibm.com>
21288
21289         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
21290         two operands for little-endian.
21291
21292 2013-07-23  Steve Ellcey  <sellcey@mips.com>
21293
21294         * config/mips/mips.c (mips_case_values_threshold): New.
21295         (TARGET_CASE_VALUES_THRESHOLD): Define.
21296
21297 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21298             Anton Blanchard  <anton@au1.ibm.com>
21299
21300         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
21301         selection of field for vector splat in little endian mode.
21302
21303 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
21304
21305         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
21306         expanders to rs6000.md.
21307         (ior<mode>3): Likewise.
21308         (and<mode>3): Likewise.
21309         (one_cmpl<mode>2): Likewise.
21310         (nor<mode>3): Likewise.
21311         (andc<mode>3): Likewise.
21312         (eqv<mode>3): Likewise.
21313         (nand<mode>3): Likewise.
21314         (orc<mode>3): Likewise.
21315
21316         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
21317         declaration.
21318
21319         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
21320         to split multi-word logical operations.
21321         (rs6000_split_logical_di): Likewise.
21322         (rs6000_split_logical): Likewise.
21323
21324         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
21325         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
21326         and allow TImode operations in 32-bit.
21327         (vsx_and<mode>3_64bit): Likewise.
21328         (vsx_ior<mode>3_32bit): Likewise.
21329         (vsx_ior<mode>3_64bit): Likewise.
21330         (vsx_xor<mode>3_32bit): Likewise.
21331         (vsx_xor<mode>3_64bit): Likewise.
21332         (vsx_one_cmpl<mode>2_32bit): Likewise.
21333         (vsx_one_cmpl<mode>2_64bit): Likewise.
21334         (vsx_nor<mode>3_32bit): Likewise.
21335         (vsx_nor<mode>3_64bit): Likewise.
21336         (vsx_andc<mode>3_32bit): Likewise.
21337         (vsx_andc<mode>3_64bit): Likewise.
21338         (vsx_eqv<mode>3_32bit): Likewise.
21339         (vsx_eqv<mode>3_64bit): Likewise.
21340         (vsx_nand<mode>3_32bit): Likewise.
21341         (vsx_nand<mode>3_64bit): Likewise.
21342         (vsx_orc<mode>3_32bit): Likewise.
21343         (vsx_orc<mode>3_64bit): Likewise.
21344
21345         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
21346         logical types in GPRs.
21347
21348         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
21349         logical insns to rs6000.md, and allow TImode operations in
21350         32-bit.
21351         (altivec_ior<mode>3): Likewise.
21352         (altivec_xor<mode>3): Likewise.
21353         (altivec_one_cmpl<mode>2): Likewise.
21354         (altivec_nor<mode>3): Likewise.
21355         (altivec_andc<mode>3): Likewise.
21356
21357         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
21358         attributes for moving the 128-bit logical operations into
21359         rs6000.md.
21360         (BOOL_REGS_OUTPUT): Likewise.
21361         (BOOL_REGS_OP1): Likewise.
21362         (BOOL_REGS_OP2): Likewise.
21363         (BOOL_REGS_UNARY): Likewise.
21364         (BOOL_REGS_AND_CR0): Likewise.
21365         (one_cmpl<mode>2): Add support for DI logical operations on
21366         32-bit, splitting the operations to 32-bit.
21367         (anddi3): Likewise.
21368         (iordi3): Likewise.
21369         (xordi3): Likewise.
21370         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
21371         changes to combine the 32/64-bit code, allow logical operations on
21372         TI mode in 32-bit, and to use similar match_operator patterns like
21373         scalar mode uses.  Combine the Altivec and VSX code for logical
21374         operations, and move it here.
21375         (ior<mode>3, 128-bit types): Likewise.
21376         (xor<mode>3, 128-bit types): Likewise.
21377         (one_cmpl<mode>3, 128-bit types): Likewise.
21378         (nor<mode>3, 128-bit types): Likewise.
21379         (andc<mode>3, 128-bit types): Likewise.
21380         (eqv<mode>3, 128-bit types): Likewise.
21381         (nand<mode>3, 128-bit types): Likewise.
21382         (orc<mode>3, 128-bit types): Likewise.
21383         (and<mode>3_internal): Likewise.
21384         (bool<mode>3_internal): Likewise.
21385         (boolc<mode>3_internal1): Likewise.
21386         (boolc<mode>3_internal2): Likewise.
21387         (boolcc<mode>3_internal1): Likewise.
21388         (boolcc<mode>3_internal2): Likewise.
21389         (eqv<mode>3_internal1): Likewise.
21390         (eqv<mode>3_internal2): Likewise.
21391         (one_cmpl1<mode>3_internal): Likewise.
21392
21393 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
21394
21395         * config/microblaze/microblaze.c (microblaze_expand_prologue):
21396         Rename flag_stack_usage to flag_stack_usage_info.
21397
21398 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
21399
21400         * config/microblaze/sync.md: New file.
21401         * config/microblaze/microblaze.md: Include sync.md
21402         * config/microblaze/microblaze.c: Add print_operand 'y'.
21403         * config/microblaze/constraints.md: Add memory_contraint
21404         'Q' which is a single register.
21405
21406 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
21407
21408         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
21409
21410 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
21411
21412         * reload.c (find_reloads): Exit loop once we find this operand
21413         cannot be reloaded somehow for this alternative.
21414
21415         * reload.c (find_reloads): Exit loop once we find a hard register.
21416
21417         * rtlanal.c (computed_jump_p): Exit loop once we find label
21418         reference is used.
21419
21420         * i386.c (ix86_pad_returns): Exit loop after setting replace.
21421
21422         * cfgloopmanip.c (remove_path): Exit loop after setting
21423         irred_invalidated.
21424
21425         * gensupport.c (subst_dup): Avoid loop if code is not
21426         MATCH_DUP nor MATCH_OP_DUP.
21427
21428 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
21429
21430         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
21431
21432 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21433
21434         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
21435         true for SP_REGNUM if mode == ptr_mode.
21436         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
21437         with value R0_REGNUM + 31.
21438
21439 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21440
21441         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
21442         pad pointer-typed argument downward.
21443
21444 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21445
21446         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
21447         and __ILP32__ when the ILP32 model is in use.
21448
21449 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21450
21451         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
21452         (aarch64_load_symref_appropriately): In the case of
21453         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
21454         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
21455         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
21456         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
21457         if 'mode' doesn't equal to 'ptr_mode'.
21458         (aarch64_output_mi_thunk): Add an assertion on the alignment of
21459         'vcall_offset'; change to call aarch64_emit_move differently depending
21460         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
21461         to calculate the upper bound of 'vcall_offset'.
21462         (aarch64_cannot_force_const_mem): Change to also return true if
21463         mode != ptr_mode.
21464         (aarch64_legitimize_reload_address): In the case of large
21465         displacements, add new local variable 'xmode' and an assertion
21466         based on it; change to use 'xmode' to generate the new rtx and
21467         reload.
21468         (aarch64_asm_trampoline_template): Change to generate the template
21469         differently depending on TARGET_ILP32 or not; change to use
21470         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
21471         (aarch64_trampoline_size): Removed.
21472         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
21473         and replace immediate literals with it.  Change to use 'ptr_mode'
21474         instead of 'DImode' and call convert_memory_address if the mode
21475         of 'fnaddr' doesn't equal to 'ptr_mode'.
21476         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
21477         to output symbol.
21478         (aarch64_elf_asm_destructor): Likewise.
21479         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
21480         on TARGET_ILP32 instead of aarch64_trampoline_size.
21481         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
21482         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
21483         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
21484         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
21485         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
21486         (storewb_pair<GPI:mode>_<P:mode>): ... this.
21487         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
21488         depending on the value of 'mode'.
21489         (add_losym_<mode>): New.
21490         (ldr_got_small_<mode>): New, based on ldr_got_small.
21491         (ldr_got_small): Remove.
21492         (ldr_got_small_sidi): New.
21493         * config/aarch64/iterators.md (P): New.
21494         (PTR): Change to 'ptr_mode' in the condition.
21495
21496 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21497
21498         * config.gcc (aarch64*-*-*): Support --with-abi.
21499         (aarch64*-*-elf): Support --with-multilib-list.
21500         (aarch64*-*-linux*): Likewise.
21501         (supported_defaults): Add abi to aarch64*-*-*.
21502         * configure.ac: Mention AArch64 for --with-multilib-list.
21503         * configure: Re-generated.
21504         * config/aarch64/biarchilp32.h: New file.
21505         * config/aarch64/biarchlp64.h: New file.
21506         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
21507         (ABI_SPEC): Ditto.
21508         (MULTILIB_DEFAULTS): Ditto.
21509         (DRIVER_SELF_SPECS): Ditto.
21510         (ASM_SPEC): Update to also substitute -mabi.
21511         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
21512         file whose name depends on -mabi= and -mbig-endian.
21513         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
21514         TARGET_ILP32.
21515         (POINTER_SIZE): New define.
21516         (POINTERS_EXTEND_UNSIGNED): Ditto.
21517         (enum aarch64_abi_type): New enumeration tag.
21518         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
21519         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
21520         (TARGET_ILP32): New define.
21521         * config/aarch64/aarch64.opt (mabi): New.
21522         (aarch64_abi): New.
21523         (ilp32, lp64): New values for -mabi.
21524         * config/aarch64/t-aarch64 (comma): New define.
21525         (MULTILIB_OPTIONS): Ditto.
21526         (MULTILIB_DIRNAMES): Ditto.
21527         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
21528         * doc/invoke.texi: Document -mabi for AArch64.
21529
21530 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
21531
21532         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
21533
21534 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21535             Anton Blanchard  <anton@au1.ibm.com>
21536
21537         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
21538         endianness when selecting field to splat.
21539
21540 2013-07-22  Eric Christopher  <echristo@gmail.com>
21541
21542         * dwarf2out.c (die_odr_checksum): New function to use
21543         CHECKSUM_ macros and ULEB128 for DIE tag.
21544         (generate_type_signature): Use.
21545
21546 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
21547
21548         * config.gcc (sparc*-*-*): Accept leon3 processor.
21549         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
21550         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
21551         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
21552         * config/sparc/sparc.opt (enum processor_type): Add leon3.
21553         (mfix-ut699): Adjust comment.
21554         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
21555         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
21556         (CPP_CPU_SPEC): Likewise.
21557         (ASM_CPU_SPEC): Likewise.
21558         * config/sparc/sparc.c (leon3_cost): New constant.
21559         (sparc_option_override): Add leon3 support.
21560         (mem_ref): New function.
21561         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
21562         (sparc_do_work_around_errata): Look into the instruction in the delay
21563         slot and adjust accordingly.  Add fix for the data cache nullify issues
21564         of the UT699.  Change insertion position for the NOP.
21565         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
21566         (leon3_load): New reservation.
21567         (leon_store): Bump latency to 2.
21568         (grfpu): New automaton.
21569         (grfpu_alu): New unit.
21570         (grfpu_ds): Likewise.
21571         (leon_fp_alu): Adjust.
21572         (leon_fp_mult): Delete.
21573         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
21574         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
21575         * config/sparc/sparc.md (cpu): Add leon3.
21576         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
21577         (swapsi): Likewise.
21578         (atomic_test_and_set): Likewise.
21579         (ldstub): Likewise.
21580
21581 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
21582
21583         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
21584         default for R5900 targets.
21585         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
21586         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
21587         * config/mips/mips.c (mips_option_override): Report an error for
21588         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
21589         for -march=r5900 -mhard-float.
21590
21591 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
21592
21593         * df-problems.c (can_move_insns_across): Exit loop once we
21594         find a non-fixed, non-global register.
21595
21596         * ipa-pure-const.c (propagate_nothrow): Exit loop after
21597         setting can_throw.
21598
21599         * omega.c (omega_eliminate_red): Break after setting red_found.
21600         (omega_problem_has_red_equations): Similarly after setting found.
21601         (omega_query_variable): Similarly after setting coupled.
21602
21603 2013-07-22  Marek Polacek  <polacek@redhat.com>
21604
21605         * gimplify.c: Don't include gimple.h twice.
21606
21607 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21608
21609         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
21610         instead of TARGET_THUMB1.
21611         (Pz): New constraint.
21612         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
21613         encodings.
21614         (compare_negsi_si): Likewise.
21615         (compare_addsi2_op0): Likewise.
21616         (compare_addsi2_op1): Likewise.
21617         (addsi3_carryin_<optab>): Likewise.
21618         (addsi3_carryin_alt2_<optab>): Likewise.
21619         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
21620         for arm_restrict_it.
21621         (subsi3_carryin): Likewise.
21622         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
21623         (minmax_arithsi): Disable for arm_restrict_it.
21624         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
21625         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
21626         (satsi_<SAT:code>_shift): Likewise.
21627         (arm_shiftsi3): Add alternative for 16-bit encoding.
21628         (arm32_movhf): Disable for arm_restrict_it.
21629         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
21630         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
21631
21632 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
21633
21634         * config/arm/arm.md (attribute "insn"): Delete.
21635         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
21636         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
21637         (not_shiftsi): Update for attribute change.
21638         (not_shiftsi_compare0): Likewise.
21639         (not_shiftsi_compare0_scratch): Likewise.
21640         (arm_one_cmplsi2): Likewise.
21641         (thumb1_one_cmplsi2): Likewise.
21642         (notsi_compare0): Likewise.
21643         (notsi_compare0_scratch): Likewise.
21644         (thumb1_movdi_insn): Likewise.
21645         (arm_movsi_insn): Likewise.
21646         (movhi_insn_arch4): Likewise.
21647         (movhi_bytes): Likewise.
21648         (arm_movqi_insn): Likewise.
21649         (thumb1_movqi_insn): Likewise.
21650         (arm32_movhf): Likewise.
21651         (thumb1_movhf): Likewise.
21652         (arm_movsf_soft_insn): Likewise.
21653         (thumb1_movsf_insn): Likewise.
21654         (thumb_movdf_insn): Likewise.
21655         (movsicc_insn): Likewise.
21656         (movsfcc_soft_insn): Likewise.
21657         (and_scc): Likewise.
21658         (cond_move): Likewise.
21659         (if_move_not): Likewise.
21660         (if_not_move): Likewise.
21661         (if_shift_move): Likewise.
21662         (if_move_shift): Likewise.
21663         (if_shift_shift): Likewise.
21664         (if_not_arith): Likewise.
21665         (if_arith_not): Likewise.
21666         (cond_move_not): Likewise.
21667         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
21668         (neon_mov<mode>): Likewise.
21669         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
21670         (thumb2_movsi_vfp): Likewise.
21671         (movsf_vfp): Likewise.
21672         (thumb2_movsf_vfp): Likewise.
21673         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21674         change.
21675         (cortexa7_older_only): Likewise.
21676         (cortexa7_younger): Likewise.
21677         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
21678         (1020alu_shift_op): Likewise.
21679         (1020alu_shift_reg_op): Likewise.
21680         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
21681         (alu_shift_op): Likewise.
21682         (alu_shift_reg_op): Likewise.
21683         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
21684         (11_alu_shift_op): Likewise.
21685         (11_alu_shift_reg_op): Likewise.
21686         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
21687         (9_alu_shift_reg_op): Likewise.
21688         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21689         change.
21690         (cortex_a15_alu_shift): Likewise.
21691         (cortex_a15_alu_shift_reg): Likewise.
21692         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
21693         (cortex_a5_alu_shift): Likewise.
21694         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
21695         change.
21696         (cortex_a53_alu_shift): Likewise.
21697         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21698         change.
21699         (cortex_a7_alu_reg): Likewise.
21700         (cortex_a7_alu_shift): Likewise.
21701         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21702         (cortex_a8_alu_shift): Likewise.
21703         (cortex_a8_alu_shift_reg): Likewise.
21704         (cortex_a8_mov): Likewise.
21705         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
21706         (cortex_a9_dp_shift): Likewise.
21707         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
21708         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
21709         (cortex_r4_mov): Likewise.
21710         (cortex_r4_alu_shift): Likewise.
21711         (cortex_r4_alu_shift_reg): Likewise.
21712         * config/arm/fa526.md (526_alu_op): Update for attribute change.
21713         (526_alu_shift_op): Likewise.
21714         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
21715         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
21716         (626te_alu_shift_op): Likewise.
21717         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
21718         (726te_alu_op): Likewise.
21719         (726te_alu_shift_op): Likewise.
21720         (726te_alu_shift_reg_op): Likewise.
21721         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
21722         (mp626_alu_shift_op): Likewise.
21723         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
21724         (pj4_alu_e1_conds): Likewise.
21725         (pj4_alu): Likewise.
21726         (pj4_alu_conds): Likewise.
21727         (pj4_shift): Likewise.
21728         (pj4_shift_conds): Likewise.
21729         (pj4_alu_shift): Likewise.
21730         (pj4_alu_shift_conds): Likewise.
21731
21732 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21733
21734         * config/arm/predicates.md (shiftable_operator_strict_it):
21735         New predicate.
21736         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
21737         Disable cond_exec version for arm_restrict_it.
21738         (thumb2_smaxsi3): Convert to generate cond_exec.
21739         (thumb2_sminsi3): Likewise.
21740         (thumb32_umaxsi3): Likewise.
21741         (thumb2_uminsi3): Likewise.
21742         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
21743         (thumb2_neg_abssi2): Likewise.
21744         (thumb2_mov_scc): Add alternative for 16-bit encoding.
21745         (thumb2_movsicc_insn): Adjust alternatives.
21746         (thumb2_mov_negscc): Disable for arm_restrict_it.
21747         (thumb2_mov_negscc_strict_it): New pattern.
21748         (thumb2_mov_notscc_strict_it): New pattern.
21749         (thumb2_mov_notscc): Disable for arm_restrict_it.
21750         (thumb2_ior_scc): Likewise.
21751         (thumb2_ior_scc_strict_it): New pattern.
21752         (thumb2_cond_move): Adjust for arm_restrict_it.
21753         (thumb2_cond_arith): Disable for arm_restrict_it.
21754         (thumb2_cond_arith_strict_it): New pattern.
21755         (thumb2_cond_sub): Adjust for arm_restrict_it.
21756         (thumb2_movcond): Likewise.
21757         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
21758         (thumb2_zero_extendhisi2_v6): Likewise.
21759         (thumb2_zero_extendqisi2_v6): Likewise.
21760         (orsi_notsi_si): Likewise.
21761         (orsi_not_shiftsi_si): Likewise.
21762
21763 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
21764
21765         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
21766         instruction sequence is 1 byte shorter.
21767
21768 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
21769
21770         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
21771         it is not needed after split.
21772
21773 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
21774
21775         PR target/51784
21776         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
21777         second label for nonlocal goto receivers. Don't output pic base labels
21778         unless we're producing PIC; mark that action unreachable().
21779         (ix86_save_reg): If the function contains a nonlocal label, save the
21780         PIC base reg.
21781         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
21782         * config/darwin.c (emitted_pic_label_num): New GTY.
21783         (update_pic_label_number_if_needed): New.
21784         (machopic_output_function_base_name): Adjust for nonlocal receiver
21785         case.
21786         (machopic_should_output_picbase_label): New.
21787         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
21788         (nonlocal_goto_receiver): New insn and split.
21789
21790 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
21791
21792         * config/aarch64/aarch64-builtins.c
21793         (aarch64_fold_builtin): Fold abs in all modes.
21794         * config/aarch64/aarch64-simd-builtins.def
21795         (abs): Enable for all modes.
21796         * config/aarch64/arm_neon.h
21797         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
21798         (vabs_f64): Add missing intrinsic.
21799
21800 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
21801
21802         * config/aarch64/arm_neon.h (vabs_s64): New function
21803
21804 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
21805
21806         PR target/57516
21807         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
21808         * config/avr/avr.md (adjust_len): Add `round'.
21809         * config/avr/avr-protos.h (avr_out_round): New prototype.
21810         (avr_out_plus): Add `out_label' argument.
21811         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
21812         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
21813         Handle the case where `insn' is just a pattern.
21814         (avr_out_bitop): Handle the case where `insn' is just a pattern.
21815         (avr_out_round): New function.
21816         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
21817
21818 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
21819
21820         * config/microblaze/microblaze.c (microblaze_expand_prologue):
21821         Add check for flag_stack_usage to handle -fstack-usage support
21822
21823 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
21824
21825         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
21826         interaction for new Power8 flags and VSX.
21827
21828 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
21829
21830         PR middle-end/57698
21831         * tree-inline.c (expand_call_inline): Emit errors during
21832         early_inlining only if optimization is not turned on.
21833
21834 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21835
21836         * passes.def: New.
21837
21838         * passes.c (init_optimization_passes): Move the construction of
21839         the pass hierarchy into a new passes.def file.
21840
21841         * Makefile.in (passes.o): Add dependency on passes.def.
21842
21843 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21844
21845         * passes.c (init_optimization_passes): Introduce macros for
21846         constructing the tree of passes (INSERT_PASSES_AFTER,
21847         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
21848         TERMINATE_PASS_LIST).
21849
21850 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
21851             Wei Mi  <wmi@google.com>
21852
21853         PR rtl-optimization/57878
21854         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
21855         top.
21856         (reload_pseudo_compare_func): Check nregs first for reload
21857         pseudos.
21858
21859 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21860
21861         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
21862
21863 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
21864
21865         * read-rtl.c (validate_const_int): Once an invalid character is
21866         seen, quit the loop.
21867
21868         * gengtype.c (write_roots): Similarly once we find the "deletable"
21869         or "if_marked" option.
21870
21871 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
21872
21873         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
21874         "xtab" and "sat".  Move value "clz" from here to ...
21875         (attriubte "type"): ... here.
21876         (satsi_<SAT:code>): Delete "insn" attribute.
21877         (satsi_<SAT:code>_shift): Likewise.
21878         (arm_zero_extendqisi2addsi): Likewise.
21879         (arm_extendqisi2addsi): Likewise.
21880         (clzsi2): Update for attribute changes.
21881         (rbitsi2): Likewise.
21882         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
21883         attribute.
21884         (arm_usatsihi): Likewise.
21885         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21886
21887 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
21888
21889         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
21890         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
21891         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
21892         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
21893         in alphabetical order.
21894         (attribute "core_cycles"): Update for attribute changes.
21895         (arm_addsi3): Likewise.
21896         (addsi3_compare0): Likewise.
21897         (addsi3_compare0_scratch): Likewise.
21898         (addsi3_compare_op1): Likewise.
21899         (addsi3_compare_op2): Likewise.
21900         (compare_addsi2_op0): Likewise.
21901         (compare_addsi2_op1): Likewise.
21902         (addsi3_carryin_shift_<optab>): Likewise.
21903         (subsi3_carryin_shift): Likewise.
21904         (rsbsi3_carryin_shift): Likewise.
21905         (arm_subsi3_insn): Likewise.
21906         (subsi3_compare0): Likewise.
21907         (subsi3_compare): Likewise.
21908         (arm_andsi3_insn): Likewise.
21909         (thumb1_andsi3_insn): Likewise.
21910         (andsi3_compare0): Likewise.
21911         (andsi3_compare0_scratch): Likewise.
21912         (zeroextractsi_compare0_scratch
21913         (andsi_not_shiftsi_si): Likewise.
21914         (iorsi3_insn): Likewise.
21915         (iorsi3_compare0): Likewise.
21916         (iorsi3_compare0_scratch): Likewise.
21917         (arm_xorsi3): Likewise.
21918         (thumb1_xorsi3_insn): Likewise.
21919         (xorsi3_compare0): Likewise.
21920         (xorsi3_compare0_scratch): Likewise.
21921         (satsi_<SAT:code>_shift): Likewise.
21922         (rrx): Likewise.
21923         (arm_shiftsi3): Likewise.
21924         (shiftsi3_compare0): Likewise.
21925         (not_shiftsi): Likewise.
21926         (not_shiftsi_compare0): Likewise.
21927         (not_shiftsi_compare0_scratch): Likewise.
21928         (arm_one_cmplsi2): Likewise.
21929         (thumb_one_complsi2): Likewise.
21930         (notsi_compare0): Likewise.
21931         (notsi_compare0_scratch): Likewise.
21932         (thumb1_zero_extendhisi2): Likewise.
21933         (arm_zero_extendhisi2): Likewise.
21934         (arm_zero_extendhisi2_v6): Likewise.
21935         (arm_zero_extendhisi2addsi): Likewise.
21936         (thumb1_zero_extendqisi2): Likewise.
21937         (thumb1_zero_extendqisi2_v6): Likewise.
21938         (arm_zero_extendqisi2): Likewise.
21939         (arm_zero_extendqisi2_v6): Likewise.
21940         (arm_zero_extendqisi2addsi): Likewise.
21941         (thumb1_extendhisi2): Likewise.
21942         (arm_extendhisi2): Likewise.
21943         (arm_extendhisi2_v6): Likewise.
21944         (arm_extendqisi): Likewise.
21945         (arm_extendqisi_v6): Likewise.
21946         (arm_extendqisi2addsi): Likewise.
21947         (thumb1_extendqisi2): Likewise.
21948         (thumb1_movdi_insn): Likewise.
21949         (arm_movsi_insn): Likewise.
21950         (movsi_compare0): Likewise.
21951         (movhi_insn_arch4): Likewise.
21952         (movhi_bytes): Likewise.
21953         (arm_movqi_insn): Likewise.
21954         (thumb1_movqi_insn): Likewise.
21955         (arm32_movhf): Likewise.
21956         (thumb1_movhf): Likewise.
21957         (arm_movsf_soft_insn): Likewise.
21958         (thumb1_movsf_insn): Likewise.
21959         (movdf_soft_insn): Likewise.
21960         (thumb_movdf_insn): Likewise.
21961         (arm_cmpsi_insn): Likewise.
21962         (cmpsi_shiftsi): Likewise.
21963         (cmpsi_shiftsi_swp): Likewise.
21964         (arm_cmpsi_negshiftsi_si): Likewise.
21965         (movsicc_insn): Likewise.
21966         (movsfcc_soft_insn): Likewise.
21967         (arith_shiftsi): Likewise.
21968         (arith_shiftsi_compare0
21969         (arith_shiftsi_compare0_scratch
21970         (sub_shiftsi): Likewise.
21971         (sub_shiftsi_compare0
21972         (sub_shiftsi_compare0_scratch
21973         (and_scc): Likewise.
21974         (cond_move): Likewise.
21975         (if_plus_move): Likewise.
21976         (if_move_plus): Likewise.
21977         (if_move_not): Likewise.
21978         (if_not_move): Likewise.
21979         (if_shift_move): Likewise.
21980         (if_move_shift): Likewise.
21981         (if_shift_shift): Likewise.
21982         (if_not_arith): Likewise.
21983         (if_arith_not): Likewise.
21984         (cond_move_not): Likewise.
21985         (thumb1_ashlsi3): Set type attribute.
21986         (thumb1_ashrsi3): Likewise.
21987         (thumb1_lshrsi3): Likewise.
21988         (thumb1_rotrsi3): Likewise.
21989         (shiftsi3_compare0_scratch): Likewise.
21990         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
21991         (neon_mov<mode>): Likewise.
21992         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
21993         attribute changes.
21994         (thumb2_movsi_insn): Likewise.
21995         (thumb2_cmpsi_neg_shiftsi): Likewise.
21996         (thumb2_extendqisi_v6): Likewise.
21997         (thumb2_zero_extendhisi2_v6): Likewise.
21998         (thumb2_zero_extendqisi2_v6): Likewise.
21999         (thumb2_shiftsi3_short): Likewise.
22000         (thumb2_addsi3_compare0_scratch): Likewise.
22001         (orsi_not_shiftsi_si): Likewise.
22002         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
22003         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
22004         changes.
22005         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
22006         (1020alu_shift_op): Likewise.
22007         (1020alu_shift_reg_op): Likewise.
22008         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
22009         (alu_shift_op): Likewise.
22010         (alu_shift_reg_op): Likewise.
22011         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
22012         (11_alu_shift_op): Likewise.
22013         (11_alu_shift_reg_op): Likewise.
22014         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
22015         (9_alu_shift_reg_op): Likewise.
22016         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
22017         changes.
22018         (cortex_a15_alu_shift): Likewise.
22019         (cortex_a15_alu_shift_reg): Likewise.
22020         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
22021         changes.
22022         (cortex_a5_alu_shift): Likewise.
22023         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
22024         changes.
22025         (cortex_a53_alu_shift): Likewise.
22026         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
22027         changes.
22028         (cortex_a7_alu_reg): Likewise.
22029         (cortex_a7_alu_shift): Likewise.
22030         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
22031         changes.
22032         (cortex_a8_alu_shift): Likewise.
22033         (cortex_a8_alu_shift_reg): Likewise.
22034         (cortex_a8_mov): Likewise.
22035         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
22036         (cortex_a9_dp_shift): Likewise.
22037         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
22038         changes.
22039         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
22040         changes.
22041         (cortex_r4_mov): Likewise.
22042         (cortex_r4_alu_shift): Likewise.
22043         (cortex_r4_alu_shift_reg): Likewise.
22044         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
22045         (526_alu_shift_op): Likewise.
22046         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
22047         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
22048         (626te_alu_shift_op): Likewise.
22049         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
22050         (726te_alu_op): Likewise.
22051         (726te_alu_shift_op): Likewise.
22052         (726te_alu_shift_reg_op): Likewise.
22053         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
22054         (mp626_alu_shift_op): Likewise.
22055         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
22056         (pj4_alu_e1_conds): Likewise.
22057         (pj4_alu): Likewise.
22058         (pj4_alu_conds): Likewise.
22059         (pj4_shift): Likewise.
22060         (pj4_shift_conds): Likewise.
22061         (pj4_alu_shift): Likewise.
22062         (pj4_alu_shift_conds): Likewise.
22063         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22064         changes.
22065         (cortexa7_older_only): Likewise.
22066         (cortexa7_younger): Likewise.
22067
22068 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22069
22070         * ipa-pure-const.c (generate_summary): Rename to...
22071         (pure_const_generate_summary): ... this.
22072
22073 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
22074
22075         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
22076
22077 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
22078
22079         PR target/57909
22080         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
22081         usage in HI mode.
22082
22083 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22084
22085         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
22086         enabled without -march=zEC12.
22087         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
22088         flags to be set.
22089
22090 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22091
22092         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
22093         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
22094         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
22095         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
22096         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
22097         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
22098         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
22099         ISA_HAS_FP4.
22100         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
22101         and ISA_HAS_NMADD3_NMSUB3.
22102         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
22103         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
22104         (nmsub4<mode>, nmsub3<mode>): Likewise.
22105         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
22106
22107 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22108
22109         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
22110         TARGET_MIPS5400 checking.
22111
22112 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
22113             Peter Bergner  <bergner@vnet.ibm.com>
22114
22115         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
22116         registers in the comment.
22117         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
22118         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
22119         rather than FIRST_PSEUDO_REGISTERS.
22120
22121 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
22122
22123         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
22124         enable extra ISA flags with TARGET_HTM.
22125
22126 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22127
22128         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
22129         Fix comment typos.
22130
22131 2013-07-15  Cong Hou  <congh@google.com>
22132
22133         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
22134         in compare function for sorting.
22135
22136 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
22137
22138         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
22139         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
22140         * config/rs6000/rs6000.opt: Add -mhtm option.
22141         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
22142         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
22143         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22144         __HTM__ if the HTM instructions are available.
22145         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
22146         htm_spr_reg_operand): New define_predicates.
22147         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
22148         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
22149         Include htm.md.
22150         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
22151         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
22152         HTM builtin functions.
22153         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
22154         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
22155         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
22156         (rs6000_builtin_mask_calculate): Likewise.
22157         (rs6000_option_override_internal): Likewise.
22158         (bdesc_htm): Add new HTM builtin support.
22159         (htm_spr_num): New function.
22160         (htm_spr_regno): Likewise.
22161         (rs6000_htm_spr_icode): Likewise.
22162         (htm_expand_builtin): Likewise.
22163         (htm_init_builtins): Likewise.
22164         (rs6000_expand_builtin): Add support for HTM builtin functions.
22165         (rs6000_init_builtins): Likewise.
22166         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
22167         option.
22168         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
22169         (TARGET_HTM, MASK_HTM): Define macros.
22170         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
22171         (FIXED_REGISTERS): Likewise.
22172         (CALL_USED_REGISTERS): Likewise.
22173         (CALL_REALLY_USED_REGISTERS): Likewise.
22174         (REG_ALLOC_ORDER): Likewise.
22175         (enum reg_class): Likewise.
22176         (REG_CLASS_NAMES): Likewise.
22177         (REG_CLASS_CONTENTS): Likewise.
22178         (REGISTER_NAMES): Likewise.
22179         (ADDITIONAL_REGISTER_NAMES): Likewise.
22180         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
22181         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
22182         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
22183         * config/rs6000/htm.md: New file.
22184         * config/rs6000/htmintrin.h: New file.
22185         * config/rs6000/htmxlintrin.h: New file.
22186
22187 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22188
22189         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22190         Define SYMBOL_TINY_GOT, update comment.
22191         * config/aarch64/aarch64.c
22192         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
22193         (aarch64_expand_mov_immediate): Likewise.
22194         (aarch64_print_operand): Likewise.
22195         (aarch64_classify_symbol): Likewise.
22196         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
22197         (ldr_got_tiny): Define.
22198
22199 2013-07-13  Tobias Grosser  <tobias@grosser.es>
22200
22201         PR tree-optimization/54094
22202         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
22203           scheduling dimension for the parallelism check from the polyhedral
22204           information in the AST.
22205         * graphite-dependences.c (carries_deps): Do not assume the schedule is
22206           in 2D + 1 form.
22207
22208 2013-07-13  Jason Merrill  <jason@redhat.com>
22209
22210         * print-tree.c (debug_vec_tree): Use debug_raw.
22211         (debug_raw (vec<tree, va_gc> &)): New.
22212         (debug_raw (vec<tree, va_gc> *)): New.
22213         * tree.h: Declare them.
22214
22215 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
22216
22217         * ifcvt.c (ifcvt_after_combine): New static variable.
22218         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
22219         for size.
22220         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
22221         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
22222         rest_of_handle_if_after_reload): Pass new argument for if_convert.
22223
22224 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
22225
22226         * config/mips/mips.c (mips_expand_call): Remove empty statement.
22227
22228 2013-07-12  Michael Matz  <matz@suse.de>
22229
22230         PR middle-end/55771
22231         * convert.c (convert_to_real): Reject non-float inner types.
22232
22233 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
22234
22235         * config/aarch64/aarch64-protos.h
22236         (aarch64_simd_immediate_valid_for_move): Remove.
22237         * config/aarch64/aarch64.c (simd_immediate_info): New member.
22238         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
22239         cases.
22240         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
22241
22242 2013-07-11  Steve Ellcey  <sellcey@mips.com>
22243
22244         * config/mips/mips.c (mips_conditional_register_usage): Do not
22245         use t[0-7] registers in MIPS16 mode when optimizing for size.
22246
22247 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
22248
22249         * config/i386/i386.c (dispatch_function_versions): Fix array
22250         indexing of function_version_info to match actual_versions.
22251
22252 2013-07-11  Teresa Johnson  <tejohnson@google.com>
22253
22254         * vec.h (struct va_gc): Move release out-of-line.
22255         (va_gc::release): Call ggc_free on released vec.
22256
22257 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22258
22259         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
22260         Require GOT register as additional operand in UNSPEC.
22261         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
22262         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22263         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22264         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
22265         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
22266         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
22267         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
22268
22269 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
22270
22271         PR target/57631
22272         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
22273         name seen by assembler/linker rather if available.
22274
22275 2013-07-11  Andreas Schwab  <schwab@suse.de>
22276
22277         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
22278
22279 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
22280
22281         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
22282
22283 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
22284
22285         * doc/tm.texi.in: Move hook documentation to ....
22286         * target.def: ... here.
22287
22288         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
22289         text on @hook line.
22290         * doc/tm.texi: Regenerate.
22291
22292 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
22293
22294         PR c++/57869
22295         * doc/invoke.texi: Document -Wconditionally-supported.
22296
22297 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22298
22299         PR target/57844
22300         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
22301         of my_fp.
22302
22303 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22304
22305         PR target/57506
22306         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
22307         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
22308         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
22309         Remove duplicate devices.
22310         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
22311         * config/avr/t-multilib: Regenerate.
22312         * config/avr/avr-tables.opt: Regenerate.
22313         * doc/avr-mmcu.texi: Regenerate.
22314
22315 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22316
22317         PR target/56987
22318         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
22319
22320 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
22321
22322         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
22323         the cost of MULT when optimizing for size.
22324
22325 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22326
22327         * config/cr16/cr16-protos.h: Don't include target.h.
22328
22329 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
22330
22331         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
22332         adjust register size for TDmode and TFmode for VSX registers.
22333
22334 2013-07-08  Kai Tietz  <ktietz@redhat.com>
22335
22336         PR target/56892
22337         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
22338         hook_bool_const_tree_true.
22339
22340 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22341
22342         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
22343         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
22344         * config/s390/s390.md: Define FPR*_REGNUM constants.
22345         Fix FPR2_REGNUM constant (18 -> 17).
22346         ("*trunc<BFP:mode><DFP_ALL:mode>2")
22347         ("*trunc<DFP_ALL:mode><BFP:mode>2")
22348         ("trunc<BFP:mode><DFP_ALL:mode>2")
22349         ("trunc<DFP_ALL:mode><BFP:mode>2")
22350         ("*extend<BFP:mode><DFP_ALL:mode>2")
22351         ("*extend<DFP_ALL:mode><BFP:mode>2")
22352         ("extend<BFP:mode><DFP_ALL:mode>2")
22353         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
22354         FPR4_REGNUM.
22355
22356 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
22357
22358         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
22359
22360 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22361
22362         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
22363         and cfun_fpr_bit_p to cfun_fpr_save_p.
22364         (s390_frame_area, s390_register_info, s390_frame_info)
22365         (s390_emit_prologue, s390_emit_epilogue)
22366         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
22367         register numbers.
22368         * config/s390/s390.h: Define *_REGNUM macros for floating point
22369         register numbers.
22370
22371 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
22372
22373         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
22374
22375 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
22376
22377         PR rtl-optimization/57786
22378         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
22379         and break out of the loop when it is set to false.
22380
22381 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
22382
22383         PR target/57819
22384         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
22385         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
22386         (const_int 63)) 0)).
22387         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
22388         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
22389         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
22390
22391         PR rtl-optimization/57829
22392         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
22393         mask bits outside of mode are just sign-extension from mode to HWI.
22394
22395 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
22396
22397         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
22398         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
22399         adjust_address instead of change_address to keep info about alignment.
22400         (emit_strmov): Remove.
22401         (emit_memmov): New function.
22402         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
22403         (expand_movmem_epilogue): Likewise and return updated rtx for
22404         destination.
22405         (expand_constant_movmem_prologue): Likewise and return updated rtx for
22406         destination and source.
22407         (decide_alignment): Refactor, handle vector_loop.
22408         (ix86_expand_movmem): Likewise.
22409         (ix86_expand_setmem): Likewise.
22410         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
22411
22412 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
22413
22414         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
22415         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
22416
22417 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
22418
22419         * config/i386/sse.md (sse_movlhps): Change alternative 3
22420         of operand 2 to "m".
22421
22422 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
22423
22424         PR target/57807
22425         * config/i386/sse.md (iptr): New mode attribute.
22426         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
22427         (<sse>_vm<plusminus_insn><mode>3): Ditto.
22428         (<sse>_vmmul<mode>3): Ditto.
22429         (<sse>_vmdiv<mode>3): Ditto.
22430         (sse_vmrcpv4sf2): Ditto.
22431         (<sse>_vmsqrt<mode>2): Ditto.
22432         (sse_vmrsqrtv4sf2): Ditto.
22433         (<sse>_vm<code><mode>3): Ditto.
22434         (avx_vmcmp<mode>3): Ditto.
22435         (<sse>_vmmaskcmp<mode>3): Ditto.
22436         (<sse>_comi): Ditto.
22437         (<sse>_ucomi): Ditto.
22438         (*xop_vmfrcz_<mode>): Ditto.
22439         (*fmai_fmadd_<mode>): Ditto.
22440         (*fmai_fmsub_<mode>): Ditto.
22441         (*fmai_fnmadd_<mode>): Ditto.
22442         (*fmai_fnmsub_<mode>): Ditto.
22443         (*fma4i_vmfmadd_<mode>): Ditto.
22444         (*fma4i_vmfmsub_<mode>): Ditto.
22445         (*fma4i_vmfnmadd_<mode>): Ditto.
22446         (*fma4i_vmfnmsub_<mode>): Ditto.
22447         (*xop_vmfrcz_<mode>): Ditto.
22448         (sse_cvtps2pi): Ditto.
22449         (sse_cvttps2pi): Ditto.
22450         (sse_cvtss2si): Ditto.
22451         (sse_cvtss2si_2): Ditto.
22452         (sse_cvtss2siq_2): Ditto.
22453         (sse_cvttss2si): Ditto.
22454         (sse_cvttss2siq): Ditto.
22455         (sse_cvtsd2si): Ditto.
22456         (sse_cvtsd2si_2): Ditto.
22457         (sse_cvtsd2siq_2): Ditto.
22458         (sse_cvttsd2si): Ditto.
22459         (sse_cvttsd2siq): Ditto.
22460         (sse_cvtsd2ss): Ditto.
22461         (sse_cvtss2sd): Ditto.
22462         (avx2_pbroadcast<mode>): Ditto.
22463         (avx2_pbroadcast<mode>_1): Ditto.
22464         (*avx_vperm_broadcast_v4sf): Ditto.
22465
22466         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
22467         (sse_movlhps): Ditto.
22468         (sse_storehps): Ditto.
22469         (sse_loadhps): Ditto.
22470         (sse_storelps): Ditto.
22471         (sse_loadlps): Ditto.
22472         (*vec_concatv4sf): Ditto.
22473         (*vec_interleave_highv2df): Ditto.
22474         (*vec_interleave_lowv2df): Ditto.
22475         (*vec_extractv2df_1_sse): Ditto.
22476         (*vec_extractv2df_0_sse): Ditto.
22477         (sse2_storelpd): Ditto.
22478         (sse2_loadlpd): Ditto.
22479         (sse2_movsd): Ditto.
22480         (*vec_concatv4si): Ditto.
22481         (vec_concatv2di): Ditto.
22482
22483         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
22484         for Intel asm dialect.
22485         (mmx_punpcklwd): Ditto.
22486         (mmx_punpckldq): Ditto.
22487
22488         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
22489         for intel assembler dialect.
22490
22491 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
22492
22493         PR target/29776
22494         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
22495         for BUILT_IN_C{LZ,LRSB}*.
22496         * tree.h (CASE_INT_FN): Add FN##IMAX case.
22497         * tree-vrp.c (extract_range_basic): Handle
22498         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
22499         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
22500         fall thru to code calling set_value*.
22501         * builtins.c (expand_builtin): Remove *IMAX cases.
22502         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
22503         if width is bigger than 2*HWI.
22504
22505 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
22506
22507         PR rtl-optimization/55342
22508         * lra-int.h (lra_subreg_reload_pseudos): New.
22509         * lra.c: Add undoing optional reloads to the block diagram.
22510         (lra_subreg_reload_pseudos): New.
22511         (lra_optional_reload_pseudos): Change comments.
22512         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
22513         lra_optional_reload_pseudos after undo transformations.
22514         * lra-assigns.c (pseudo_prefix_title): New.
22515         (lra_setup_reg_renumber): Use it.
22516         (spill_for): Ditto.  Check subreg reload pseudos too.
22517         (assign_by_spills): Consider subreg reload pseudos too.
22518         * lra-constraints.c (simplify_operand_subreg): Use
22519         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
22520         (curr_insn_transform): Recognize and do optional reloads.
22521         (undo_optional_reloads): New.
22522         (lra_undo_inheritance): Call undo_optional_reloads.
22523
22524 2013-07-05  Thomas Quinot  <quinot@adacore.com>
22525
22526         * tree-complex.c (expand_complex_operations_1): Fix typo.
22527
22528 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
22529
22530         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
22531         (tune_params): New member 'const vec_costs'.
22532         * config/aarch64/aarch64.c (generic_vector_cost): New.
22533         (generic_tunings): New member 'generic_vector_cost'.
22534         (aarch64_builtin_vectorization_cost): New.
22535         (aarch64_add_stmt_cost): New.
22536         (TARGET_VECTORIZE_ADD_STMT_COST): New.
22537         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
22538
22539 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
22540
22541         PR target/57777
22542         * config/i386/predicates.md (vsib_address_operand): Disallow
22543         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
22544
22545 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
22546
22547         PR middle-end/55030
22548         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
22549         expand_builtin_setjmp_receiver.
22550         (expand_label): Adjust, call expand_builtin_setjmp_receiver
22551         with NULL for the label parameter.
22552         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
22553         the frame-pointer.  Adjust comments.
22554         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
22555         only if LABEL is non-NULL.
22556
22557 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
22558
22559         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
22560         (ARM_ABI_AAPCS64): Ditto.
22561         (arm_abi): Ditto.
22562         (ARM_DEFAULT_ABI): Ditto.
22563
22564 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
22565
22566         * config/aarch64/aarch64-builtins.c
22567         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
22568         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
22569         (st1): Likewise.
22570         * config/aarch64/aarch64-simd.md
22571         (aarch64_ld1<VALL:mode>): New.
22572         (aarch64_st1<VALL:mode>): Likewise.
22573         * config/aarch64/arm_neon.h
22574         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
22575
22576 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
22577
22578         * config/i386/i386.c (gate_insert_vzeroupper): Check if
22579         target ISA is AVX.
22580         (ix86_option_override_internal):Turn on all -mavx target flags by
22581         default as they are dependent on AVX anyway.
22582
22583 2013-07-02  Cary Coutant  <ccoutant@google.com>
22584
22585         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
22586         deterministic hash.
22587         (loc_checksum_ordered): Likewise.
22588         (hash_loc_operands): Remove inline keyword.
22589
22590 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
22591
22592         PR tree-optimization/57741
22593         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
22594         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
22595         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
22596         Allow REAL_CST step_exprs if flag_associative_math.
22597         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
22598
22599 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
22600
22601         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
22602
22603 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
22604
22605         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
22606
22607 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22608
22609         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
22610         encoding.
22611         (iorsi3_insn): Likewise.
22612         (arm_xorsi3): Likewise.
22613
22614 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
22615
22616         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
22617         to ...
22618         (attribute "type"): ... here, and prefix with "wmmx_".
22619         (attribute "core_cycles"): Update for attribute changes.
22620         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
22621         (tbcstv4hi): Likewise.
22622         (tbcstv2si): Likewise.
22623         (iwmmxt_iordi3): Likewise.
22624         (iwmmxt_xordi3): Likewise.
22625         (iwmmxt_anddi3): Likewise.
22626         (iwmmxt_nanddi3): Likewise.
22627         (iwmmxt_arm_movdi): Likewise.
22628         (iwmmxt_movsi_insn): Likewise.
22629         (mov<mode>_internal): Likewise.
22630         (and<mode>3_iwmmxt): Likewise.
22631         (ior<mode>3_iwmmxt): Likewise.
22632         (xor<mode>3_iwmmxt): Likewise.
22633         (add<mode>3_iwmmxt): Likewise.
22634         (ssaddv8qi3): Likewise.
22635         (ssaddv4hi3): Likewise.
22636         (ssaddv2si3): Likewise.
22637         (usaddv8qi3): Likewise.
22638         (usaddv4hi3): Likewise.
22639         (usaddv2si3): Likewise.
22640         (sub<mode>3_iwmmxt): Likewise.
22641         (sssubv8qi3): Likewise.
22642         (sssubv4hi3): Likewise.
22643         (sssubv2si3): Likewise.
22644         (ussubv8qi3): Likewise.
22645         (ussubv4hi3): Likewise.
22646         (ussubv2si3): Likewise.
22647         (mulv4hi3_iwmmxt): Likewise.
22648         (smulv4hi3_highpart): Likewise.
22649         (umulv4hi3_highpart): Likewise.
22650         (iwmmxt_wmacs): Likewise.
22651         (iwmmxt_wmacsz): Likewise.
22652         (iwmmxt_wmacu): Likewise.
22653         (iwmmxt_wmacuz): Likewise.
22654         (iwmmxt_clrdi): Likewise.
22655         (iwmmxt_clrv8qi): Likewise.
22656         (iwmmxt_clr4hi): Likewise.
22657         (iwmmxt_clr2si): Likewise.
22658         (iwmmxt_uavgrndv8qi3): Likewise.
22659         (iwmmxt_uavgrndv4hi3): Likewise.
22660         (iwmmxt_uavgv8qi3): Likewise.
22661         (iwmmxt_uavgv4hi3): Likewise.
22662         (iwmmxt_tinsrb): Likewise.
22663         (iwmmxt_tinsrh): Likewise.
22664         (iwmmxt_tinsrw): Likewise.
22665         (iwmmxt_textrmub): Likewise.
22666         (iwmmxt_textrmsb): Likewise.
22667         (iwmmxt_textrmuh): Likewise.
22668         (iwmmxt_textrmsh): Likewise.
22669         (iwmmxt_textrmw): Likewise.
22670         (iwmxxt_wshufh): Likewise.
22671         (eqv8qi3): Likewise.
22672         (eqv4hi3): Likewise.
22673         (eqv2si3): Likewise.
22674         (gtuv8qi3): Likewise.
22675         (gtuv4hi3): Likewise.
22676         (gtuv2si3): Likewise.
22677         (gtv8qi3): Likewise.
22678         (gtv4hi3): Likewise.
22679         (gtv2si3): Likewise.
22680         (smax<mode>3_iwmmxt): Likewise.
22681         (umax<mode>3_iwmmxt): Likewise.
22682         (smin<mode>3_iwmmxt): Likewise.
22683         (umin<mode>3_iwmmxt): Likewise.
22684         (iwmmxt_wpackhss): Likewise.
22685         (iwmmxt_wpackwss): Likewise.
22686         (iwmmxt_wpackdss): Likewise.
22687         (iwmmxt_wpackhus): Likewise.
22688         (iwmmxt_wpackwus): Likewise.
22689         (iwmmxt_wpackdus): Likewise.
22690         (iwmmxt_wunpckihb): Likewise.
22691         (iwmmxt_wunpckihh): Likewise.
22692         (iwmmxt_wunpckihw): Likewise.
22693         (iwmmxt_wunpckilb): Likewise.
22694         (iwmmxt_wunpckilh): Likewise.
22695         (iwmmxt_wunpckilw): Likewise.
22696         (iwmmxt_wunpckehub): Likewise.
22697         (iwmmxt_wunpckehuh): Likewise.
22698         (iwmmxt_wunpckehuw): Likewise.
22699         (iwmmxt_wunpckehsb): Likewise.
22700         (iwmmxt_wunpckehsh): Likewise.
22701         (iwmmxt_wunpckehsw): Likewise.
22702         (iwmmxt_wunpckelub): Likewise.
22703         (iwmmxt_wunpckeluh): Likewise.
22704         (iwmmxt_wunpckeluw): Likewise.
22705         (iwmmxt_wunpckelsb): Likewise.
22706         (iwmmxt_wunpckelsh): Likewise.
22707         (iwmmxt_wunpckelsw): Likewise.
22708         (ror<mode>3): Likewise.
22709         (ashr<mode>3_iwmmxt): Likewise.
22710         (lshr<mode>3_iwmmxt): Likewise.
22711         (ashl<mode>3_iwmmxt): Likewise.
22712         (ror<mode>3_di): Likewise.
22713         (ashr<mode>3_di): Likewise.
22714         (lshr<mode>3_di): Likewise.
22715         (ashl<mode>3_di): Likewise.
22716         (iwmmxt_wmadds): Likewise.
22717         (iwmmxt_wmaddu): Likewise.
22718         (iwmmxt_tmia): Likewise.
22719         (iwmmxt_tmiaph): Likewise.
22720         (iwmmxt_tmiabb): Likewise.
22721         (iwmmxt_tmiatb): Likewise.
22722         (iwmmxt_tmiabt): Likewise.
22723         (iwmmxt_tmiatt): Likewise.
22724         (iwmmxt_tmovmskb): Likewise.
22725         (iwmmxt_tmovmskh): Likewise.
22726         (iwmmxt_tmovmskw): Likewise.
22727         (iwmmxt_waccb): Likewise.
22728         (iwmmxt_wacch): Likewise.
22729         (iwmmxt_waccw): Likewise.
22730         (iwmmxt_waligni): Likewise.
22731         (iwmmxt_walignr): Likewise.
22732         (iwmmxt_walignr0): Likewise.
22733         (iwmmxt_walignr1): Likewise.
22734         (iwmmxt_walignr2): Likewise.
22735         (iwmmxt_walignr3): Likewise.
22736         (iwmmxt_wsadb): Likewise.
22737         (iwmmxt_wsadh): Likewise.
22738         (iwmmxt_wsadbz): Likewise.
22739         (iwmmxt_wsadhz): Likewise.
22740         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
22741         (iwmmxt_wabsdiffb): Likewise.
22742         (iwmmxt_wabsdiffh): Likewise.
22743         (iwmmxt_wabsdiffw): Likewise.
22744         (iwmmxt_waddsubhx): Likewise
22745         (iwmmxt_wsubaddhx): Likewise.
22746         (addc<mode>3): Likewise.
22747         (iwmmxt_avg4): Likewise.
22748         (iwmmxt_avg4r): Likewise.
22749         (iwmmxt_wmaddsx): Likewise.
22750         (iwmmxt_wmaddux): Likewise.
22751         (iwmmxt_wmaddsn): Likewise.
22752         (iwmmxt_wmaddun): Likewise.
22753         (iwmmxt_wmulwsm): Likewise.
22754         (iwmmxt_wmulwum): Likewise.
22755         (iwmmxt_wmulsmr): Likewise.
22756         (iwmmxt_wmulumr): Likewise.
22757         (iwmmxt_wmulwsmr): Likewise.
22758         (iwmmxt_wmulwumr): Likewise.
22759         (iwmmxt_wmulwl): Likewise.
22760         (iwmmxt_wqmulm): Likewise.
22761         (iwmmxt_wqmulwm): Likewise.
22762         (iwmmxt_wqmulmr): Likewise.
22763         (iwmmxt_wqmulwmr): Likewise.
22764         (iwmmxt_waddbhusm): Likewise.
22765         (iwmmxt_waddbhusl): Likewise.
22766         (iwmmxt_wqmiabb): Likewise.
22767         (iwmmxt_wqmiabt): Likewise.
22768         (iwmmxt_wqmiatb): Likewise.
22769         (iwmmxt_wqmiatt): Likewise.
22770         (iwmmxt_wqmiabbn): Likewise.
22771         (iwmmxt_wqmiabtn): Likewise.
22772         (iwmmxt_wqmiatbn): Likewise.
22773         (iwmmxt_wqmiattn): Likewise.
22774         (iwmmxt_wmiabb): Likewise.
22775         (iwmmxt_wmiabt): Likewise.
22776         (iwmmxt_wmiatb): Likewise.
22777         (iwmmxt_wmiatt): Likewise.
22778         (iwmmxt_wmiabbn): Likewise.
22779         (iwmmxt_wmiabtn): Likewise.
22780         (iwmmxt_wmiatbn): Likewise.
22781         (iwmmxt_wmiattn): Likewise.
22782         (iwmmxt_wmiawbb): Likewise.
22783         (iwmmxt_wmiawbt): Likewise.
22784         (iwmmxt_wmiawtb): Likewise.
22785         (iwmmxt_wmiawtt): Likewise.
22786         (iwmmxt_wmiawbbn): Likewise.
22787         (iwmmxt_wmiawbtn): Likewise.
22788         (iwmmxt_wmiawtbn): Likewise.
22789         (iwmmxt_wmiawttn): Likewise.
22790         (iwmmxt_wmerge): Likewise.
22791         (iwmmxt_tandc<mode>3): Likewise.
22792         (iwmmxt_torc<mode>3): Likewise.
22793         (iwmmxt_torvsc<mode>3): Likewise.
22794         (iwmmxt_textrc<mode>3): Likewise.
22795         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
22796         (wmmxt_pack): Likewise.
22797         (wmmxt_mult_c1): Likewise.
22798         (wmmxt_mult_c2): Likewise.
22799         (wmmxt_alu_c1): Likewise.
22800         (wmmxt_alu_c2): Likewise.
22801         (wmmxt_alu_c3): Likewise.
22802         (wmmxt_transfer_c1): Likewise.
22803         (wmmxt_transfer_c2): Likewise.
22804         (wmmxt_transfer_c3): Likewise.
22805         (marvell_f_iwmmxt_wstr): Likewise.
22806         (marvell_f_iwmmxt_wldr): Likewise.
22807
22808 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
22809
22810         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
22811
22812 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22813
22814         Revert:
22815         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22816         * lra-constraints.c (need_for_split_p): Check call used hard regs
22817         living through calls.
22818
22819         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
22820         call used regs for call insn.
22821
22822 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
22823
22824         PR target/57736
22825         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
22826         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
22827
22828 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
22829
22830         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
22831
22832 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22833
22834         * lra-constraints.c (need_for_split_p): Check call used hard regs
22835         living through calls.
22836
22837 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
22838
22839         PR target/57744
22840         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
22841         to tie with any other modes.  Eliminate Altivec vector mode tests,
22842         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
22843         code, to return 0 if testing MODE2 for a condition, if we've
22844         already tested MODE1 for the same condition.
22845
22846 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22847
22848         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
22849         layout.
22850
22851 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22852
22853         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22854         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
22855
22856 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22857
22858         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
22859         Define.
22860         (aarch64_symbolic_constant_p): Remove.
22861         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
22862         static.  Fix line length and white space.
22863         (aarch64_symbolic_constant_p): Remove.
22864         * config/aarch64/predicates.md (aarch64_valid_symref):
22865         Use aarch64_classify_symbol_expression.
22866
22867 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22868
22869         * config/arm/constraints.md (Ts): New constraint.
22870         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
22871         16-bit encodings.
22872         (compare_scc): Use "Ts" constraint for operand 0.
22873         (ior_scc_scc): Likewise.
22874         (and_scc_scc): Likewise.
22875         (and_scc_scc_nodom): Likewise.
22876         (ior_scc_scc_cmp): Likewise for operand 7.
22877         (and_scc_scc_cmp): Likewise.
22878         * config/arm/thumb2.md (thumb2_movsi_insn):
22879         Add alternatives for 16-bit encodings.
22880         (thumb2_movhi_insn): Likewise.
22881         (thumb2_movsicc_insn): Likewise.
22882         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
22883         (thumb2_negscc): Use "Ts" constraint.
22884         Move mvn instruction outside cond_exec block.
22885         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
22886         for 16-bit encodings.
22887
22888 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22889
22890         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
22891         encoding.
22892         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
22893         (mulsi3subsi): Likewise.
22894         (mulsidi3adddi): Likewise.
22895         (mulsidi3_v6): Likewise.
22896         (umulsidi3_v6): Likewise.
22897         (umulsidi3adddi_v6): Likewise.
22898         (smulsi3_highpart_v6): Likewise.
22899         (umulsi3_highpart_v6): Likewise.
22900         (mulhisi3tb): Likewise.
22901         (mulhisi3bt): Likewise.
22902         (mulhisi3tt): Likewise.
22903         (maddhisi4): Likewise.
22904         (maddhisi4tb): Likewise.
22905         (maddhisi4tt): Likewise.
22906         (maddhidi4): Likewise.
22907         (maddhidi4tb): Likewise.
22908         (maddhidi4tt): Likewise.
22909         (zeroextractsi_compare0_scratch): Likewise.
22910         (insv_zero): Likewise.
22911         (insv_t2): Likewise.
22912         (anddi_notzesidi_di): Likewise.
22913         (anddi_notsesidi_di): Likewise.
22914         (andsi_notsi_si): Likewise.
22915         (iordi_zesidi_di): Likewise.
22916         (xordi_zesidi_di): Likewise.
22917         (andsi_iorsi3_notsi): Likewise.
22918         (smax_0): Likewise.
22919         (smax_m1): Likewise.
22920         (smin_0): Likewise.
22921         (not_shiftsi): Likewise.
22922         (unaligned_loadsi): Likewise.
22923         (unaligned_loadhis): Likewise.
22924         (unaligned_loadhiu): Likewise.
22925         (unaligned_storesi): Likewise.
22926         (unaligned_storehi): Likewise.
22927         (extv_reg): Likewise.
22928         (extzv_t2): Likewise.
22929         (divsi3): Likewise.
22930         (udivsi3): Likewise.
22931         (arm_zero_extendhisi2addsi): Likewise.
22932         (arm_zero_extendqisi2addsi): Likewise.
22933         (compareqi_eq0): Likewise.
22934         (arm_extendhisi2_v6): Likewise.
22935         (arm_extendqisi2addsi): Likewise.
22936         (arm_movt): Likewise.
22937         (thumb2_ldrd): Likewise.
22938         (thumb2_ldrd_base): Likewise.
22939         (thumb2_ldrd_base_neg): Likewise.
22940         (thumb2_strd): Likewise.
22941         (thumb2_strd_base): Likewise.
22942         (thumb2_strd_base_neg): Likewise.
22943         (arm_negsi2): Add alternative for 16-bit encoding.
22944         (arm_one_cmplsi2): Likewise.
22945
22946 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22947
22948         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
22949         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
22950         (movdfcc): Likewise.
22951         * config/arm/vfp.md (*thumb2_movsf_vfp):
22952         Disable predication for arm_restrict_it.
22953         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
22954         (*thumb2_movdfcc_vfp): Likewise.
22955         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
22956         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
22957         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
22958         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
22959         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
22960         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
22961         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
22962         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
22963         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
22964         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
22965         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
22966         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
22967         Disable predication for arm_restrict_it.
22968
22969 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
22970
22971         * config/i386/bmiintrin.h (_bextr_u32): New.
22972         (_bextr_u64): Ditto.
22973
22974 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
22975
22976         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
22977         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
22978         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
22979         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
22980         * config/mips/n32-elf.h: ...this new file.
22981
22982 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
22983
22984         PR target/57224
22985         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
22986         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
22987
22988 2013-06-27  Catherine Moore  <clm@codesourcery.com>
22989
22990         * config/mips/mips-tables.opt: Regenerate.
22991         * config/mips/mips-cpus.def: Add m14ke and m14kec.
22992         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
22993         * doc/invoke.texi: Add -m14kc.
22994
22995 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
22996
22997         PR target/57623
22998         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
22999         constraints of operand 1 and 2.
23000
23001         PR target/57623
23002         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
23003         to match RTL canonicalization.  Swap predicates and
23004         constraints of operand 1 and 2.
23005
23006 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
23007
23008         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
23009         Process OP_INOUT regs for splitting too.
23010
23011 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
23012
23013         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
23014         decl before the loop, initialize to NULL.
23015         (vectorizable_load): Initialize ptr_incr to NULL.
23016
23017 2013-06-27  Martin Jambor  <mjambor@suse.cz>
23018
23019         PR lto/57208
23020         * ipa-ref.h (ipa_maybe_record_reference): Declare.
23021         * ipa-ref.c (ipa_maybe_record_reference): New function.
23022         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
23023         * ipa-cp.c (create_specialized_node): Record potential references from
23024         aggvals.
23025         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
23026
23027 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
23028
23029         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
23030         parameter 'mode' of type 'enum machine_mode mode'; change to pass
23031         'mode' to force_reg.
23032         (aarch64_add_offset): Update calls to aarch64_force_temporary.
23033         (aarch64_expand_mov_immediate): Likewise.
23034
23035 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
23036
23037         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
23038         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
23039
23040 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23041
23042         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
23043         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23044         (struct machine_function): Add tbegin_p.
23045         (s390_canonicalize_comparison): Fold CC mode compares to
23046         conditional jump if possible.
23047         (s390_emit_jump): Return the emitted jump.
23048         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
23049         Handle CCRAWmode compares.
23050         (s390_option_override): Default to -mhtm if available.
23051         (s390_reg_clobbered_rtx): Handle floating point regs as well.
23052         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
23053         FPRs instead of df_regs_ever_live_p.
23054         (s390_optimize_nonescaping_tx): New function.
23055         (s390_init_frame_layout): Extend clobbered_regs array to cover
23056         FPRs as well.
23057         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
23058         (s390_expand_tbegin): New function.
23059         (enum s390_builtin): New enum definition.
23060         (code_for_builtin): New array definition.
23061         (s390_init_builtins): New function.
23062         (s390_expand_builtin): New function.
23063         (TARGET_INIT_BUILTINS): Define.
23064         (TARGET_EXPAND_BUILTIN): Define.
23065         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
23066         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
23067         (s390_alc_comparison): Likewise.
23068         * config/s390/s390-modes.def: Add CCRAWmode.
23069         * config/s390/s390.h (processor_flags): Add PF_TX.
23070         (TARGET_CPU_HTM): Define macro.
23071         (TARGET_HTM): Define macro.
23072         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
23073         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
23074         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23075         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
23076         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
23077         (TBEGIN_MASK, TBEGINC_MASK): New constants.
23078         ("*cc_to_int"): Move up.
23079         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
23080         constants other than 0.
23081         ("*ccraw_to_int"): New insn and splitter definition.
23082         ("tbegin", "tbegin_nofloat", "tbegin_retry")
23083         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
23084         ("tx_assist"): New expander.
23085         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
23086         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
23087         * config/s390/s390.opt: Add -mhtm option.
23088         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
23089         * config/s390/htmxlintrin.h: New file.
23090         * config/s390/htmintrin.h: New file.
23091         * config/s390/s390intrin.h: New file.
23092         * doc/extend.texi: Document htm builtins.
23093         * config.gcc: Add the new header files to extra_headers.
23094
23095 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
23096
23097         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
23098         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
23099
23100 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
23101             Pat Haugen  <pthaugen@us.ibm.com>
23102             Peter Bergner  <bergner@vnet.ibm.com>
23103
23104         * config/rs6000/power8.md: New.
23105         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
23106         setting for power8 entry.
23107         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
23108         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
23109         test for Power4/Power5 only.
23110         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
23111         support.
23112         (force_new_group): Adjust comment.
23113         * config/rs6000/rs6000.md: Include power8.md.
23114
23115 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
23116
23117         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
23118         * config/arm/arm-protos.h (arm_max_conditional_execute): New
23119         declaration.
23120         (tune_params): Update comment.
23121         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
23122         (arm_max_conditional_execute): New function.
23123         (thumb2_final_prescan_insn): Use max_insn_skipped and
23124         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
23125
23126 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
23127
23128         PR tree-optimization/57705
23129         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
23130         SSA_NAME step, provided that it is not defined inside the loop.
23131         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
23132         (get_initial_def_for_induction): Handle SSA_NAME IV step.
23133
23134 2013-06-25  Martin Jambor  <mjambor@suse.cz>
23135
23136         PR middle-end/57670
23137         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
23138         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
23139         calls in the dump.
23140         (ipa_note_param_call): Initialize member_ptr flag.
23141         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
23142         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
23143         (ipa_write_indirect_edge_info): Stream member_ptr flag.
23144         (ipa_read_indirect_edge_info): Likewise.
23145
23146 2013-06-25  Richard Biener  <rguenther@suse.de>
23147
23148         PR middle-end/56977
23149         * passes.c (init_optimization_passes): Move pass_fold_builtins
23150         and pass_dce earlier with -Og.
23151
23152 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
23153
23154         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
23155         <BIT_FIELD_REF>: Remove trailing TAB.
23156         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
23157         remove blank line.
23158
23159 2013-06-24  Martin Jambor  <mjambor@suse.cz>
23160
23161         PR tree-optimization/57358
23162         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
23163         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
23164         (ipa_analyze_params_uses): Generate pessimistic info when true.
23165
23166 2013-06-24  Martin Jambor  <mjambor@suse.cz>
23167
23168         PR tree-optimization/57539
23169         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
23170         global.inlined_to of the new node to it.  All callers changed.
23171         * ipa-inline-transform.c (clone_inlined_nodes): New variable
23172         inlining_into, pass it to cgraph_clone_node.
23173         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
23174         ipa_free_edge_args_substructures.
23175         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
23176         rdesc linked list.  Do not assert rdesc edges have inlined caller.
23177         Assert we have found an rdesc in the rdesc list.
23178
23179 2013-06-24  Richard Biener  <rguenther@suse.de>
23180
23181         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
23182         (pointer_set_lookup): Declare.
23183         (class pointer_map): New template class implementing a
23184         generic pointer to T map.
23185         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
23186         pointer_map<T>::contains, pointer_map<T>::insert,
23187         pointer_map<T>::traverse): New functions.
23188         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
23189         (pointer_set_lookup): New function.
23190         (pointer_set_contains): Use pointer_set_lookup.
23191         (pointer_set_insert): Likewise.
23192         (insert_aux): Remove.
23193         (struct pointer_map_t): Embed a pointer_set_t.
23194         (pointer_map_create): Adjust.
23195         (pointer_map_destroy): Likewise.
23196         (pointer_map_contains): Likewise.
23197         (pointer_map_insert): Likewise.
23198         (pointer_map_traverse): Likewise.
23199         * tree-streamer.h (struct streamer_tree_cache_d): Use a
23200         pointer_map<unsigned> instead of a pointer_map_t.
23201         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
23202         (streamer_tree_cache_lookup): Likewise.
23203         (streamer_tree_cache_create): Likewise.
23204         (streamer_tree_cache_delete): Likewise.
23205         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
23206         pointer_map<unsigned> instead of a pointer_map_t.
23207         (lto_init_tree_ref_encoder): Adjust.
23208         (lto_destroy_tree_ref_encoder): Likewise.
23209         * lto-section-out.c (lto_output_decl_index): Likewise.
23210         (lto_record_function_out_decl_state): Likewise.
23211         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
23212
23213 2013-06-24  Richard Biener  <rguenther@suse.de>
23214
23215         PR tree-optimization/57488
23216         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
23217
23218 2013-06-24  Alan Modra  <amodra@gmail.com>
23219
23220         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
23221         (gen_easy_altivec_constant): Likewise.
23222         * config/rs6000/predicates.md (easy_vector_constant_add_self,
23223         easy_vector_constant_msb): Likewise.
23224
23225 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
23226
23227         PR target/57688
23228         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
23229         add missing return true.
23230
23231 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
23232
23233         PR target/52483
23234         * config/sh/predicates.md (general_extend_operand): Invoke
23235         general_movsrc_operand for memory operands.
23236         (general_movsrc_operand): Allow reg+reg addressing, do not use
23237         general_operand for memory operands.
23238
23239 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
23240
23241         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
23242         when current target options does not apply.
23243         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
23244         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
23245         * config/i386/bmiintrin.h: Pass appropriate target
23246         attributes to header.
23247         * config/i386/mmintrin.h: Ditto.
23248         * config/i386/nmmintrin.h: Ditto.
23249         * config/i386/avx2intrin.h: Ditto.
23250         * config/i386/fxsrintrin.h: Ditto.
23251         * config/i386/tbmintrin.h: Ditto.
23252         * config/i386/xsaveintrin.h: Ditto.
23253         * config/i386/f16cintrin.h: Ditto.
23254         * config/i386/xtestintrin.h: Ditto.
23255         * config/i386/xsaveoptintrin.h: Ditto.
23256         * config/i386/bmi2intrin.h: Ditto.
23257         * config/i386/lzcntintrin.h: Ditto.
23258         * config/i386/smmintrin.h: Ditto.
23259         * config/i386/wmmintrin.h: Ditto.
23260         * config/i386/x86intrin.h: Remove all header include guards.
23261         * config/i386/prfchwintrin.h: Ditto.
23262         * config/i386/pmmintrin.h: Ditto.
23263         * config/i386/tmmintrin.h: Ditto.
23264         * config/i386/xmmintrin.h: Ditto.
23265         * config/i386/popcntintrin.h: Ditto.
23266         * config/i386/rdseedintrin.h: Ditto.
23267         * config/i386/ammintrin.h: Ditto.
23268         * config/i386/emmintrin.h: Ditto.
23269         * config/i386/immintrin.h: Remove all header include guards.
23270         * config/i386/fma4intrin.h: Ditto.
23271         * config/i386/lwpintrin.h: Ditto.
23272         * config/i386/xopintrin.h: Ditto.
23273         * config/i386/ia32intrin.h: Ditto.
23274         * config/i386/avxintrin.h: Ditto.
23275         * config/i386/rtmintrin.h: Ditto.
23276         * config/i386/fmaintrin.h: Ditto.
23277         * config/i386/mm3dnow.h: Ditto.
23278
23279 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
23280
23281         * common/config/i386/i386-common.c: Handle LZCNT.
23282
23283 2013-06-22  Andi Kleen  <ak@linux.intel.com>
23284
23285         * doc/extend.texi: Use __atomic_store_n instead of
23286         __atomic_store in HLE example.
23287
23288 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
23289
23290         * config/sh/sh.c: Remove <cstdlib> workaround.
23291
23292 2013-06-21  Andi Kleen  <ak@linux.intel.com>
23293
23294         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
23295
23296 2013-06-21  Andi Kleen  <ak@linux.intel.com>
23297
23298         * doc/extend.texi: Document that __atomic_clear and
23299           __atomic_test_and_set should only be used with bool.
23300
23301 2013-06-20  Jan Hubicka  <jh@suse.cz>
23302
23303         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
23304         types_same_for_odr.
23305         * tree.c (decls_same_for_odr): New function.
23306         (same_for_edr): New function.
23307         (types_same_for_odr): New function.
23308         (get_binfo_at_offset): Use it.
23309         * tree.h (types_same_for_odr): Declare.
23310
23311 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
23312             Jason Merrill  <jason@redhat.com>
23313
23314         * system.h: Include <cstdlib> as well as <stdlib.h>.
23315
23316 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
23317
23318         PR target/57655
23319         * config/i386/i386.c (construct_container): Report error if
23320         long double is used with disabled x87 float returns.
23321
23322 2013-06-20  Jan Hubicka  <jh@suse.cz>
23323
23324         * lto-cgraph.c (input_symtab): Do not set cgraph state.
23325
23326 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
23327
23328         PR rtl-optimization/57425
23329         PR rtl-optimization/57569
23330         * alias.c (write_dependence_p): Remove parameters mem_mode and
23331         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
23332         Changed all callers.
23333         (canon_anti_dependence): Get comments and semantics in sync.
23334         Add parameter mem_canonicalized.  Changed all callers.
23335         * rtl.h (canon_anti_dependence): Update prototype.
23336
23337 2013-06-20  Richard Biener  <rguenther@suse.de>
23338
23339         * data-streamer-in.c (streamer_read_uhwi): Optimize single
23340         byte case, inline streamer_read_uchar and defer section
23341         overrun check.
23342
23343 2013-06-20  Richard Biener  <rguenther@suse.de>
23344
23345         PR tree-optimization/57584
23346         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
23347         SSA names into the expanded expression that take part in
23348         abnormal coalescing.
23349
23350 2013-06-19  Sharad Singhai  <singhai@google.com>
23351
23352         * gcov.c (print_usage): Handle new option.
23353         (process_args): Ditto.
23354         (get_gcov_intermediate_filename): New function.
23355         (output_intermediate_file): New function.
23356         (output_gcov_file): New function
23357         (generate_results): Handle new option.
23358         (release_function): Relase demangled name.
23359         (read_graph_file): Handle demangled name.
23360         (output_lines): Ditto.
23361         * doc/gcov.texi: Document gcov intermediate format.
23362
23363 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
23364
23365         PR bootstrap/57604
23366         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
23367         (lra_emit_add): Use the functions.  Add comment about Y as an
23368         address segment.
23369
23370 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
23371
23372         PR driver/57652
23373         * collect2.c (collect_atexit): New.
23374         (collect_exit): Delete.
23375         (main): Register collect_atexit with atexit.
23376         (collect_wait): Change collect_exit to exit.
23377         (do_wait): Same.
23378         * collect2.h (collect_exit): Delete.
23379         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
23380
23381 2013-06-19  Wei Mi  <wmi@google.com>
23382
23383         PR rtl-optimization/57518
23384         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
23385         if regno is used in paradoxical subreg.
23386         (update_equiv_regs): Check pdx_subregs[regno] before
23387         set a reg to be equivalent with a mem.
23388
23389 2013-06-19  Matthias Klose  <doko@ubuntu.com>
23390
23391         PR driver/57651
23392         * file-find.h (find_a_file): Add a mode parameter.
23393         * file-find.c (find_a_file): Likewise.
23394         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
23395         with X_OK for the executables.
23396         * collect2.c (main): Call find_a_file with X_OK.
23397
23398 2013-06-19  Steve Ellcey  <sellcey@mips.com>
23399
23400         PR target/56942
23401         * config/mips/mips.md (casesi_internal_mips16_<mode>):
23402         Use NEXT_INSN instead of next_real_insn.
23403
23404 2013-06-19  Jan Hubicka  <jh@suse.cz>
23405
23406         * cgraph.h (const_value_known_p): Replace by ...
23407         (ctor_for_folding): .. this one.
23408         * cgraphunit.c (process_function_and_variable_attributes): Use it.
23409         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
23410         * expr.c (expand_expr_real_1): Likewise.
23411         (string_constant): Likewise.
23412         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
23413         * ipa.c (process_references): Likewise.
23414         (symtab_remove_unreachable_nodes): Likewise.
23415         * ipa-inline-analysis.c (param_change_prob): Likewise.
23416         * gimple-fold.c (canonicalize_constructor_val): Likewise.
23417         (get_base_constructor): Likwise.
23418         * varpool.c (varpool_remove_node): Likewise.
23419         (varpool_remove_initializer): LIkewise.
23420         (dump_varpool_node): LIkwise.
23421         (const_value_known_p): Rewrite to ...
23422         (ctor_for_folding): ... this one.
23423
23424 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
23425
23426         PR driver/57651
23427         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
23428         PERSONALITY in $PATH derived prefixes.
23429
23430 2013-06-19  Jeff Law  <law@redhat.com>
23431
23432         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
23433         in comment.
23434
23435         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
23436         (simplify_bitwise_binary): Use it to simpify certain binary ops on
23437         booleans.
23438
23439 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
23440
23441         * config/arm/vfp.md: Move VFP instruction classification documentation
23442         to ...
23443         * config/arm/arm.md: ... here.  Update instruction classification
23444         documentation.
23445
23446 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
23447
23448         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
23449         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
23450         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
23451
23452 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
23453
23454         PR target/57609
23455         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23456         with NEXT_INSN.  Use tablejump_p to check for jump table data
23457         insns.
23458
23459 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
23460
23461         PR c++/56544
23462         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
23463         that now in C++ the value is correct per the C++ standards.
23464
23465 2013-06-19  Richard Biener  <rguenther@suse.de>
23466
23467         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
23468         for global context.
23469
23470 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23471
23472         Revert:
23473         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23474
23475         PR target/57609
23476         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23477         with next_active_insn.
23478
23479 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
23480
23481         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
23482         functions are inlined during failures to flag an error.
23483         * tree-inline.c (expand_call_inline): Allow the error to be flagged
23484         in early inline pass.
23485
23486 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
23487
23488         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
23489         in comments.
23490
23491 2013-06-18  Julian Brown  <julian@codesourcery.com>
23492
23493         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
23494         Permit virtual register pre-reload if !strict.
23495         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
23496         change.
23497         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
23498         prototype.
23499         * config/arm/neon.md (movmisalign<mode>): Use
23500         neon_perm_struct_or_reg_operand instead of
23501         neon_struct_or_register_operand.
23502         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
23503         neon_permissive_struct_operand instead of neon_struct_operand.
23504         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
23505         neon_vector_mem_operand.
23506         * config/arm/predicates.md (neon_struct_operand): Adjust call to
23507         neon_vector_mem_operand.
23508         (neon_permissive_struct_operand): New.
23509         (neon_struct_or_register_operand): Rename to...
23510         (neon_perm_struct_or_reg_operand): This. Adjust call to
23511         neon_vector_mem_operand.
23512
23513 2013-06-18  Richard Biener  <rguenther@suse.de>
23514
23515         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
23516         * lto-streamer.h: Include pointer-set.h.
23517         (struct lto_decl_slot): Remove.
23518         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
23519         Remove next_index entry.
23520         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23521         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23522         (lto_init_tree_ref_encoder): Adjust.
23523         (lto_destroy_tree_ref_encoder): Likewise.
23524         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23525         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23526         (lto_output_decl_index): Adjust.
23527         (lto_new_out_decl_state): Likewise.
23528         (lto_record_function_out_decl_state): Likewise.
23529         * lto-streamer-out.c (copy_function): Likewise.
23530
23531 2013-06-18  Richard Biener  <rguenther@suse.de>
23532
23533         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
23534         * cgraphunit.c: Include cfgloop.h.
23535         (init_lowered_empty_function): Initialize the loop tree.
23536         (assemble_thunk): Insert new BBs into loops.
23537
23538 2013-06-18  Richard Biener  <rguenther@suse.de>
23539
23540         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
23541         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
23542         the map from cache entry to cache index optional.
23543         (streamer_tree_cache_replace_tree): Adjust accordingly.
23544         (streamer_tree_cache_append): Likewise.
23545         (streamer_tree_cache_delete): Likewise.
23546         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
23547         streamer cache map from cache entry to cache index.
23548         * lto-streamer-out.c (create_output_block): Adjust.
23549
23550 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
23551
23552         * config/arm/arm.md (attribute "insn"): Move multiplication and
23553         division attributes to...
23554         (attribute "type"): ... here.  Remove mult.
23555         (attribute "mul32"): New attribute.
23556         (attribute "mul64"): Add umaal.
23557         (*arm_mulsi3): Update attributes.
23558         (*arm_mulsi3_v6): Likewise.
23559         (*thumb_mulsi3): Likewise.
23560         (*thumb_mulsi3_v6): Likewise.
23561         (*mulsi3_compare0): Likewise.
23562         (*mulsi3_compare0_v6): Likewise.
23563         (*mulsi_compare0_scratch): Likewise.
23564         (*mulsi_compare0_scratch_v6): Likewise.
23565         (*mulsi3addsi): Likewise.
23566         (*mulsi3addsi_v6): Likewise.
23567         (*mulsi3addsi_compare0): Likewise.
23568         (*mulsi3addsi_compare0_v6): Likewise.
23569         (*mulsi3addsi_compare0_scratch): Likewise.
23570         (*mulsi3addsi_compare0_scratch_v6): Likewise.
23571         (*mulsi3subsi): Likewise.
23572         (*mulsidi3adddi): Likewise.
23573         (*mulsi3addsi_v6): Likewise.
23574         (*mulsidi3adddi_v6): Likewise.
23575         (*mulsidi3_nov6): Likewise.
23576         (*mulsidi3_v6): Likewise.
23577         (*umulsidi3_nov6): Likewise.
23578         (*umulsidi3_v6): Likewise.
23579         (*umulsidi3adddi): Likewise.
23580         (*umulsidi3adddi_v6): Likewise.
23581         (*smulsi3_highpart_nov6): Likewise.
23582         (*smulsi3_highpart_v6): Likewise.
23583         (*umulsi3_highpart_nov6): Likewise.
23584         (*umulsi3_highpart_v6): Likewise.
23585         (mulhisi3): Likewise.
23586         (*mulhisi3tb): Likewise.
23587         (*mulhisi3bt): Likewise.
23588         (*mulhisi3tt): Likewise.
23589         (maddhisi4): Likewise.
23590         (*maddhisi4tb): Likewise.
23591         (*maddhisi4tt): Likewise.
23592         (maddhidi4): Likewise.
23593         (*maddhidi4tb): Likewise.
23594         (*maddhidi4tt): Likewise.
23595         (divsi3): Likewise.
23596         (udivsi3): Likewise.
23597         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
23598         (thumb2_mulsi_short_compare0): Likewise.
23599         (thumb2_mulsi_short_compare0_scratch): Likewise.
23600         * config/arm/arm1020e.md (1020mult1): Update attribute change.
23601         (1020mult2): Likewise.
23602         (1020mult3): Likewise.
23603         (1020mult4): Likewise.
23604         (1020mult5): Likewise.
23605         (1020mult6): Likewise.
23606         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
23607         change.
23608         (cortex_a15_mult64): Likewise.
23609         (cortex_a15_sdiv): Likewise.
23610         (cortex_a15_udiv): Likewise.
23611         * config/arm/arm1026ejs.md (mult1): Update attribute change.
23612         (mult2): Likewise.
23613         (mult3): Likewise.
23614         (mult4): Likewise.
23615         (mult5): Likewise.
23616         (mult6): Likewise.
23617         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
23618         (pj4_ir_div): Likewise.
23619         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
23620         (11_mult2): Likewise.
23621         (11_mult3): Likewise.
23622         (11_mult4): Likewise.
23623         (11_mult5): Likewise.
23624         (11_mult6): Likewise.
23625         (11_mult7): Likewise.
23626         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
23627         (cortex_a8_mla): Likewise.
23628         (cortex_a8_mull): Likewise.
23629         (cortex_a8_smulwy): Likewise.
23630         (cortex_a8_smlald): Likewise.
23631         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
23632         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
23633         (cortex_r4_mul_3): Likewise.
23634         (cortex_r4_mla_4): Likewise.
23635         (cortex_r4_mla_3): Likewise.
23636         (cortex_r4_smlald): Likewise.
23637         (cortex_r4_mull): Likewise.
23638         (cortex_r4_sdiv): Likewise.
23639         (cortex_r4_udiv): Likewise.
23640         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
23641         (cortex_a7_idiv): Likewise.
23642         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
23643         (9_mult2): Likewise.
23644         (9_mult3): Likewise.
23645         (9_mult4): Likewise.
23646         (9_mult5): Likewise.
23647         (9_mult6): Likewise.
23648         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
23649         (cortex_a53_sdiv): Likewise.
23650         (cortex_a53_udiv): Likewise.
23651         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
23652         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
23653         (mp626_mult2): Likewise.
23654         (mp626_mult3): Likewise.
23655         (mp626_mult4): Likewise.
23656         * config/arm/fa526.md (526_mult1): Update attribute change.
23657         (526_mult2): Likewise.
23658         * config/arm/arm-generic.md (mult): Update attribute change.
23659         (mult_ldsched_strongarm): Likewise.
23660         (mult_ldsched): Likewise.
23661         (multi_cycle): Likewise.
23662         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
23663         * config/arm/fa606te.md (606te_mult1): Update attribute change.
23664         (606te_mult2): Likewise.
23665         (606te_mult3): Likewise.
23666         (606te_mult4): Likewise.
23667         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
23668         (cortex_a9_mac16): Likewise.
23669         (cortex_a9_multiply): Likewise.
23670         (cortex_a9_mac): Likewise.
23671         (cortex_a9_multiply_long): Likewise.
23672         * config/arm/fa626te.md (626te_mult1): Update attribute change.
23673         (626te_mult2): Likewise.
23674         (626te_mult3): Likewise.
23675         (626te_mult4): Likewise.
23676
23677 2013-06-18  Richard Biener  <rguenther@suse.de>
23678
23679         PR lto/57334
23680         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
23681
23682 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23683
23684         PR target/57609
23685         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23686         with next_active_insn.
23687
23688 2013-06-18  Alan Modra  <amodra@gmail.com>
23689
23690         * config/rs6000/rs6000.h (enum data_align): New.
23691         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
23692         (DATA_ABI_ALIGNMENT): Define.
23693         (CONSTANT_ALIGNMENT): Correct comment.
23694         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
23695         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
23696
23697 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
23698
23699         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
23700         ATTRIBUTE_UNUSED marking.
23701
23702 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
23703
23704         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
23705         alternative and update.
23706         (aarch64_dup_lanedi): Delete.
23707         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
23708         * config/aarch64/aarch64-simd-builtins.def: Update.
23709
23710 2013-06-17  Richard Biener  <rguenther@suse.de>
23711
23712         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
23713         (lto_input_scc): Declare.
23714         (lto_input_tree_1): Likewise.
23715         (struct lto_stats_d): Add num_tree_bodies_output and
23716         num_pickle_refs_output.
23717         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
23718         (lto_read_tree_1): Split out from ...
23719         (lto_read_tree): ... this.
23720         (lto_input_scc): New function.
23721         (lto_input_tree_1): Split out from ...
23722         (lto_input_tree): ... this.  Handle LTO_tree_scc.
23723         (lto_data_in_create): Create the streamer cache without hashes.
23724         * lto-streamer-out.c (create_output_block): Create the streamer
23725         cache with hashes when not doing WPA.
23726         (lto_write_tree_1): Split out from ...
23727         (lto_write_tree): ... this.
23728         (get_symbol_initial_value): New function.
23729         (lto_output_tree_1): Split out from ...
23730         (lto_output_tree): ... this.  Write trees as series of SCCs
23731         using a DFS walk via DFS_write_tree.
23732         (struct sccs, struct scc_entry): New types.
23733         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
23734         (DFS_write_tree_body): New function.
23735         (DFS_write_tree): Likewise.
23736         (hash_tree): Likewise.
23737         (scc_entry_compare): Likewise.
23738         (hash_scc): Likewise.
23739         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
23740         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
23741         TREE_CHAIN as regular reference.
23742         (streamer_read_integer_cst): Remove.
23743         (streamer_get_pickled_tree): Adjust.
23744         * tree-streamer-out.c (streamer_write_chain): Disable streaming
23745         of DECL_EXTERNALs in BLOCK_VARS for now.
23746         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
23747         reference.
23748         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
23749         Add hash value argument and record that if hashes are recorded
23750         in the cache.
23751         (streamer_tree_cache_insert_1): Adjust.
23752         (streamer_tree_cache_insert): Likewise.
23753         (streamer_tree_cache_insert_at): Rename to ...
23754         (streamer_tree_cache_replace_tree): ... this and adjust.
23755         (streamer_tree_cache_append): Adjust.
23756         (record_common_node): Likewise.
23757         (streamer_tree_cache_create): Add argument whether to
23758         record hash values together with trees.
23759         (streamer_tree_cache_delete): Adjust.
23760         * tree-streamer.h (struct streamer_tree_cache_d): Add
23761         vector of hashes.
23762         (streamer_read_integer_cst): Remove.
23763         (streamer_tree_cache_insert): Adjust.
23764         (streamer_tree_cache_append): Likewise.
23765         (streamer_tree_cache_insert_at): Rename to ...
23766         (streamer_tree_cache_replace_tree): ... this and adjust.
23767         (streamer_tree_cache_create): Add argument whether to record hashes.
23768         (streamer_tree_cache_get): Rename to ...
23769         (streamer_tree_cache_get_tree): ... this.
23770         (streamer_tree_cache_get_hash): New function.
23771         * tree.c (cache_integer_cst): New function.
23772         * tree.h (cache_integer_cst): Declare.
23773         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
23774         * lto-symtab.c (lto_varpool_replace_node): Only release
23775         DECL_INITIAL of non-prevailing decls.
23776         * varpool.c (varpool_remove_initializer): Do not release
23777         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
23778
23779 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
23780
23781         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
23782         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
23783         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
23784         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
23785         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
23786         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
23787         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
23788         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
23789         instead of TARGET_64BIT.
23790         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
23791         Require ISA_HAS_<D>DIV.
23792
23793 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
23794
23795         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
23796         (mips*-*-linux*): Move default with_llsc setting to where other
23797         defaults are set.
23798         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
23799         with_arch block.
23800         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
23801         Likewise.  Remove default with_tune setting.  Move default float
23802         setting to its own block.  Handle with_llsc in the same block as above.
23803
23804 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
23805
23806         PR rtl-optimization/57425
23807         PR rtl-optimization/57569
23808         * alias.c (write_dependence_p): Add new parameters mem_mode,
23809         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
23810         Changed all callers.
23811         (canon_anti_dependence): New function.
23812         * cse.c (check_dependence): Use canon_anti_dependence.
23813         * cselib.c (cselib_invalidate_mem): Likewise.
23814         * rtl.h (canon_anti_dependence): Declare.
23815
23816 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
23817
23818         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
23819         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
23820         ".set mips3" for 64-bit targets.
23821
23822 2013-06-15  Dehao Chen  <dehao@google.com>
23823
23824         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
23825         * gimple-low.c (gimple_check_call_matching_types): Likewise.
23826         (gimple_check_call_args): Likewise.
23827         * value-prof.c (check_ic_target): Likewise.
23828         * ipa-inline.c (early_inliner): Likewise.
23829         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
23830         * cgraph.c (cgraph_create_edge_1): Likewise.
23831         (cgraph_make_edge_direct): Likewise.
23832
23833 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23834
23835         PR target/57615
23836         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
23837         rs6000_output_move_128bit to handle emitting quad memory
23838         operations.  Set attribute length to 8 bytes.
23839
23840 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
23841
23842         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
23843         New pattern.
23844         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
23845         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
23846         (aarch64_<su>mlsl<mode>): Likewise.
23847
23848 2013-06-14  Mike Stump  <mikestump@comcast.net>
23849
23850         * Makefile.in (TARGET_H): Add insn-codes.h.
23851
23852 2013-06-14  Alan Modra  <amodra@gmail.com>
23853
23854         PR middle-end/57134
23855         PR middle-end/57586
23856         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
23857         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
23858         bitfield expansion when EXPAND_MEMORY.
23859         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
23860
23861 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
23862
23863         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
23864         test for clearing quad memory on 32-bit later.
23865
23866 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
23867
23868         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
23869         (fold_negate_expr): Likewise.
23870         (fold_real_zero_addition_p): Handle vectors.
23871         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
23872
23873 2013-06-14  Alan Modra  <amodra@gmail.com>
23874
23875         * varasm.c (force_const_mem): Revert 2013-06-07 change.
23876
23877 2013-06-13  Jan Hubicka  <jh@suse.cz>
23878
23879         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
23880         Local comdats are not externally visible.
23881         * symtab.c (dump_symtab_base): Dump externally visible.
23882         (verify_symtab_base): Verify back links in the symtab hash.
23883
23884 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
23885
23886         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
23887         CONVERT_EXPR as equal nodes.
23888
23889 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
23890
23891         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
23892
23893 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
23894
23895         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
23896         Generalize to complex and vector.
23897         * tree.c (build_all_ones_cst): New function.
23898         * tree.h (build_all_ones_cst): Declare it.
23899
23900 2013-06-13  Alan Modra  <amodra@gmail.com>
23901
23902         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
23903         * config/rs6000/rs6000.md (signbittf2): New insn.
23904         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
23905         (abstf2_internal, cmptf_internal2): Likewise.
23906         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
23907
23908 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
23909             Pat Haugen  <pthaugen@us.ibm.com>
23910             Peter Bergner  <bergner@vnet.ibm.com>
23911
23912         * config/rs6000/rs6000.c (emit_load_locked): Add support for
23913         power8 byte, half-word, and quad-word atomic instructions.
23914         (emit_store_conditional): Likewise.
23915         (rs6000_expand_atomic_compare_and_swap): Likewise.
23916         (rs6000_expand_atomic_op): Likewise.
23917
23918         * config/rs6000/sync.md (larx): Add new modes for power8.
23919         (stcx): Likewise.
23920         (AINT): New mode iterator to include TImode as well as normal
23921         integer modes on power8.
23922         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
23923         that VSX registers are not considered.  Use AINT mode iterator
23924         instead of INT1 to allow inclusion of quad word atomic operations
23925         on power8.
23926         (load_locked<mode>): Likewise.
23927         (store_conditional<mode>): Likewise.
23928         (atomic_compare_and_swap<mode>): Likewise.
23929         (atomic_exchange<mode>): Likewise.
23930         (atomic_nand<mode>): Likewise.
23931         (atomic_fetch_<fetchop_name><mode>): Likewise.
23932         (atomic_nand_fetch<mode>): Likewise.
23933         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
23934         each type.
23935         (ATOMIC): On power8, add QImode, HImode modes.
23936         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
23937         modes that promote to SImode.
23938         (load_lockedti): Convert TImode arguments to PTImode, so that we
23939         get a guaranteed even/odd register pair.
23940         (load_lockedpti): Likewise.
23941         (store_conditionalti): Likewise.
23942         (store_conditionalpti): Likewise.
23943
23944         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
23945         atomic load/store instructions.
23946         (HSI): Likewise.
23947
23948 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
23949
23950         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
23951         loads.
23952         (insn_count): New attribute, with most cases extracted from...
23953         (length): ...here.  Redefine most cases in terms of insn_count.
23954         (single_insn): Delete.
23955         (can_delay): Use insn_count to check for single instructions.
23956         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
23957         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
23958         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
23959         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
23960         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
23961         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
23962         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
23963         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
23964         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
23965         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
23966         rather than "length".
23967         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
23968         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
23969         Use "insn_count" rather than "length".
23970         * config/mips/mips-dsp.md
23971         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
23972         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
23973         length attributes.
23974
23975 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
23976
23977         PR tree-optimization/57361
23978         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
23979
23980 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
23981
23982         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
23983         to split.
23984         (aarch64_simd_combine<mode>): New instruction expansion.
23985         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
23986         function prototype.
23987         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
23988         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
23989
23990 2013-06-12  Jan Hubicka  <jh@suse.cz>
23991
23992         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
23993         decl has when in streaming stage.
23994         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
23995         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
23996
23997 2013-06-12  Roland Stigge  <stigge@antcom.de>
23998
23999         PR target/57578
24000         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
24001
24002 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
24003
24004         PR tree-optimization/57537
24005         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
24006         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
24007
24008 2013-06-12  Richard Biener  <rguenther@suse.de>
24009
24010         * data-streamer.h (streamer_write_char_stream): CSE
24011         obs->current_pointer.
24012         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
24013         streamer_write_char_stream manually and optimize the resulting loop.
24014         (streamer_write_hwi_stream): Likewise.
24015
24016 2013-06-12  Jan Hubicka  <jh@suse.cz>
24017
24018         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
24019         * cgraph.h (varpool_create_empty_node): Declare.
24020         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
24021         duplicated nodes.
24022         * symtab.c (symtab_unregister_node): Be lax about missin entries
24023         in node hash.
24024         (symtab_get_node): Update comment.
24025         * varpool.c (varpool_create_empty_node): Break out from ...
24026         (varpool_node_for_decl): ... here.
24027         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
24028
24029 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
24030
24031         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
24032         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
24033         part.  Use straight-line flow at the end.
24034         <COMPONENT_REF>: Remove superfluous else.
24035         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
24036
24037 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
24038
24039         PR target/56564
24040         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
24041         target hook even for !TREE_PUBLIC decls.  If no resolution info
24042         is available, return false for common and external decls.
24043
24044 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24045
24046         * config/rl78/constraints.md (U): New constraint.
24047         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
24048         valloc attribute.
24049
24050 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
24051
24052         PR target/57589
24053         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
24054         to allow returning address to AT_PLATFORM name.
24055
24056 2013-06-11  Jan Hubicka  <jh@suse.cz>
24057
24058         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
24059         * cgraph.h (symtab_node_base): Add weakref flag.
24060         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
24061         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
24062         (output_weakrefs): Use weakref flag.
24063         * fold-const.c (simple_operand_p): Handle WEAK.
24064         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
24065         * ipa.c (varpool_externally_visible_p): Drop weakref.
24066         (function_and_variable_visibility): Update comment; fix weakref
24067         sanity checks; do not clear DECL_WEAK on them.
24068         * lto-cgraph.c (lto_output_node): update.
24069         (lto_output_varpool_node): Update.
24070         (input_overwrite_node): Update.
24071         (input_node): Update.
24072         (input_varpool_node): Update.
24073         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
24074         (lto_symtab_merge_symbols): Add sanity check.
24075         (lto_symtab_prevailing_decl): Do not special case weakrefs.
24076         * passes.c (rest_of_decl_compilation): Set static flag, too.
24077         * symtab.c (dump_symtab_base): Dump weakref.
24078         (verify_symtab_base): Sanity check weakrefs.
24079         (symtab_make_decl_local): Remove duplicated code.
24080         (symtab_alias_ultimate_target): Simplify.
24081         * varpool.c (varpool_create_variable_alias): Set weakref flag.
24082
24083 2013-06-11  Tom de Vries  <tom@codesourcery.com>
24084
24085         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
24086         sequence_vect == NULL.
24087
24088 2013-06-11  DJ Delorie  <dj@redhat.com>
24089
24090         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
24091         (rl78_unwind_word_mode): New.
24092
24093 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
24094
24095         * final.c (debug_prefix_maps): Make static.
24096
24097 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
24098
24099         * function.c (initial_trampoline): Remove stray copy.
24100
24101 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
24102
24103         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
24104
24105 2013-06-11  Martin Jambor  <mjambor@suse.cz>
24106
24107         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
24108         within bounds at the beginning of the function.
24109
24110 2013-06-11  Alan Modra  <amodra@gmail.com>
24111
24112         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
24113         reporting.
24114         (get_named_section): Don't NULL !DECL_P decl.
24115
24116 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
24117
24118         * doc/invoke.texi (core-avx2): Document.
24119         (slm): Likewise.
24120         (atom): Updated with MOVBE.
24121
24122 2013-06-11  Richard Biener  <rguenther@suse.de>
24123
24124         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
24125
24126 2013-06-11  Anton Blanchard  <anton@samba.org>
24127
24128         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
24129         correct shift value in little-endian mode.
24130
24131 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
24132
24133         PR target/56564
24134         * varasm.c (get_variable_align): Move #endif to the right place.
24135
24136 2013-06-10  Cary Coutant  <ccoutant@google.com>
24137
24138         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
24139         for hash so that hash table traversal order is deterministic.
24140
24141 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
24142             Pat Haugen  <pthaugen@us.ibm.com>
24143             Peter Bergner  <bergner@vnet.ibm.com>
24144
24145         * config/rs6000/vector.md (GPR move splitter): Do not split moves
24146         of vectors in GPRS if they are direct moves or quad word load or
24147         store moves.
24148
24149         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
24150         declaration.
24151         (direct_move_p): Likewise.
24152         (quad_load_store_p): Likewise.
24153
24154         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
24155         classes into bins based on the physical register type.
24156         (reg_class_to_reg_type): Likewise.
24157         (IS_STD_REG_TYPE): Likewise.
24158         (IS_FP_VECT_REG_TYPE): Likewise.
24159         (reload_fpr_gpr): Arrays to determine what insn to use if we can
24160         use direct move instructions.
24161         (reload_gpr_vsx): Likewise.
24162         (reload_vsx_gpr): Likewise.
24163         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
24164         information that is a simplification of register classes.  Also
24165         precalculate direct move reload helpers.
24166         (direct_move_p): New function to return true if the operation can
24167         be done as a direct move instruciton.
24168         (quad_load_store_p): New function to return true if the operation
24169         is a quad memory operation.
24170         (rs6000_legitimize_address): If quad memory, only allow register
24171         indirect for TImode addresses.
24172         (rs6000_legitimate_address_p): Likewise.
24173         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
24174         (rs6000_reload_register_type): Likewise.
24175         (register_to_reg_type): Return register type.
24176         (rs6000_secondary_reload_simple_move): New helper function for
24177         secondary reload and secondary memory needed to identify anything
24178         that is a simple move, and does not need reloading.
24179         (rs6000_secondary_reload_direct_move): New helper function for
24180         secondary reload to identify cases that can be done with several
24181         instructions via the direct move instructions.
24182         (rs6000_secondary_reload_move): New helper function for secondary
24183         reload to identify moves between register types that can be done.
24184         (rs6000_secondary_reload): Add support for quad memory operations
24185         and for direct move.
24186         (rs6000_secondary_memory_needed): Likewise.
24187         (rs6000_debug_secondary_memory_needed): Change argument names.
24188         (rs6000_output_move_128bit): New function to return the move to
24189         use for 128-bit moves, including knowing about the various
24190         limitations of quad memory operations.
24191
24192         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
24193         memory operations.  call rs6000_output_move_128bit for the actual
24194         instruciton(s) to generate.
24195         (vsx_movti_64bit): Likewise.
24196
24197         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
24198         (UNSPEC_P8V_MTVSRWZ): Likewise.
24199         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
24200         (UNSPEC_P8V_MTVSRD): Likewise.
24201         (UNSPEC_P8V_XXPERMDI): Likewise.
24202         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
24203         (UNSPEC_FUSION_GPR): Likewise.
24204         (FMOVE128_GPR): New iterator for direct move.
24205         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
24206         (f32_sv): Likewise.
24207         (f32_dm): Likewise.
24208         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
24209         loads and direct move instructions.
24210         (zero_extendsidi2_lfiwzx): Likewise.
24211         (extendsidi2_lfiwax): Likewise.
24212         (extendsidi2_nocell): Likewise.
24213         (floatsi<mode>2_lfiwax): Likewise.
24214         (lfiwax): Likewise.
24215         (floatunssi<mode>2_lfiwzx): Likewise.
24216         (lfiwzx): Likewise.
24217         (fix_trunc<mode>_stfiwx): Likewise.
24218         (fixuns_trunc<mode>_stfiwx): Likewise.
24219         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
24220         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
24221         (parity<mode>2_cmpb): Set length/type attr.
24222         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
24223         for 'mr.' to fast_compare.
24224         (bpermd_<mode>): Change type attr to popcnt.
24225         (p8_fmrgow_<mode>): New insns for power8 direct move support.
24226         (p8_mtvsrwz_1): Likewise.
24227         (p8_mtvsrwz_2): Likewise.
24228         (reload_fpr_from_gpr<mode>): Likewise.
24229         (p8_mtvsrd_1): Likewise.
24230         (p8_mtvsrd_2): Likewise.
24231         (p8_xxpermdi_<mode>): Likewise.
24232         (reload_vsx_from_gpr<mode>): Likewise.
24233         (reload_vsx_from_gprsf): Likewise.
24234         (p8_mfvsrd_3_<mode>): LIkewise.
24235         (reload_gpr_from_vsx<mode>): Likewise.
24236         (reload_gpr_from_vsxsf): Likewise.
24237         (p8_mfvsrd_4_disf): Likewise.
24238         (multi-word GPR splits): Do not split direct moves or quad memory
24239         operations.
24240
24241 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
24242
24243         * tree-into-ssa.c (interesting_blocks): Make static.
24244
24245 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
24246
24247         PR target/56564
24248         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
24249         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
24250         Use DATA_ABI_ALIGNMENT for that case instead if defined.
24251         (get_variable_align): New function.
24252         (get_variable_section, emit_bss, emit_common,
24253         assemble_variable_contents, place_block_symbol): Use
24254         get_variable_align instead of DECL_ALIGN.
24255         (assemble_noswitch_variable): Add align argument, use it
24256         instead of DECL_ALIGN.
24257         (assemble_variable): Adjust caller.  Use get_variable_align
24258         instead of DECL_ALIGN.
24259         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
24260         caller.
24261         (DATA_ABI_ALIGNMENT): Define.
24262         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
24263         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
24264         opt is false, only return the psABI mandated alignment increase.
24265         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
24266         (DATA_ABI_ALIGNMENT): ... this.
24267         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
24268         (DATA_ABI_ALIGNMENT): ... this.
24269         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
24270         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
24271         (DATA_ABI_ALIGNMENT): ... this.
24272         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
24273         * doc/tm.texi: Regenerated.
24274
24275 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
24276
24277         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
24278         cmp_code to construct REG_EQUAL note.
24279
24280 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
24281
24282         PR target/57568
24283         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
24284         that operands[2] doesn't overlap with operands[0].
24285
24286 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
24287             Jan Hubicka  <jh@suse.cz>
24288
24289         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
24290         hack to mark symbols as used.
24291
24292 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
24293
24294         PR rtl-optimization/57559
24295         * lra-constraints.c (process_alt_operands): Don't discourage
24296         memory with known offset for offsetable memory constraint.
24297         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
24298
24299 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
24300
24301         * varasm.c (struct oc_local_state): Reorder fields.
24302         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
24303         and adjust accordingly.
24304         (output_constructor): Reorder initialization code and adjust call to
24305         output_constructor_bitfield.
24306
24307 2013-06-07  Jan Hubicka  <jh@suse.cz>
24308
24309         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
24310
24311 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
24312
24313         * tree-object-size.c (unknown): Make const.
24314
24315 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24316
24317         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
24318         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
24319         for last alternative in the cpu_facility attribute.
24320
24321 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24322
24323         PR target/56315
24324         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
24325         (xordi3): Change operand 2 constraint to arm_xordi_operand.
24326         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
24327         * config/arm/constraints.md (Dg): New constraint.
24328         * config/arm/neon.md (xordi3_neon): Remove.
24329         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
24330         * config/arm/predicates.md (arm_xordi_operand): New predicate.
24331
24332 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24333
24334         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
24335         Clean up alternatives.
24336
24337 2013-06-07  Alan Modra  <amodra@gmail.com>
24338
24339         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
24340         va_list_gpr_size.
24341
24342 2013-06-07  Alan Modra  <amodra@gmail.com>
24343
24344         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
24345
24346 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24347
24348         * config/arm/constraints.md (Df): New constraint.
24349         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
24350         Correct length attribute for last two alternatives.
24351
24352 2013-06-07  Alan Modra  <amodra@gmail.com>
24353
24354         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24355         override user -mfp-in-toc.
24356         (offsettable_ok_by_alignment): Consider just the current access
24357         rather than the whole object, unless BLKmode.  Handle
24358         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
24359         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
24360         for -mcmodel=medium.
24361         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
24362         override user -mfp-in-toc or -msum-in-toc.  Default to
24363         -mno-fp-in-toc for -mcmodel=medium.
24364
24365 2013-06-06  DJ Delorie  <dj@redhat.com>
24366
24367         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
24368         TARGET_VALID_POINTER_MODE.
24369
24370 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
24371             Pat Haugen  <pthaugen@us.ibm.com>
24372             Peter Bergner  <bergner@vnet.ibm.com>
24373
24374         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24375         Document new power8 builtins.
24376
24377         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
24378         condition code register, to allow 128-bit logical operations to be
24379         done in the VSX or GPR registers.
24380         (nor<mode>3): Use the canonical form for nor.
24381         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
24382         vclz*, and vpopcnt* vector instructions.
24383         (nand<mode>3): Likewise.
24384         (orc<mode>3): Likewise.
24385         (clz<mode>2): LIkewise.
24386         (popcount<mode>2): Likewise.
24387
24388         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
24389         that only the GPRs are recognized.
24390
24391         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24392         support for new power8 builtins.
24393
24394         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
24395         builtin functions.
24396         (xscvdpspn): Likewise.
24397         (vclz): Likewise.
24398         (vclzb): Likewise.
24399         (vclzh): Likewise.
24400         (vclzw): Likewise.
24401         (vclzd): Likewise.
24402         (vpopcnt): Likewise.
24403         (vpopcntb): Likewise.
24404         (vpopcnth): Likewise.
24405         (vpopcntw): Likewise.
24406         (vpopcntd): Likewise.
24407         (vgbbd): Likewise.
24408         (vmrgew): Likewise.
24409         (vmrgow): Likewise.
24410         (eqv): Likewise.
24411         (eqv_v16qi3): Likewise.
24412         (eqv_v8hi3): Likewise.
24413         (eqv_v4si3): Likewise.
24414         (eqv_v2di3): Likewise.
24415         (eqv_v4sf3): Likewise.
24416         (eqv_v2df3): Likewise.
24417         (nand): Likewise.
24418         (nand_v16qi3): Likewise.
24419         (nand_v8hi3): Likewise.
24420         (nand_v4si3): Likewise.
24421         (nand_v2di3): Likewise.
24422         (nand_v4sf3): Likewise.
24423         (nand_v2df3): Likewise.
24424         (orc): Likewise.
24425         (orc_v16qi3): Likewise.
24426         (orc_v8hi3): Likewise.
24427         (orc_v4si3): Likewise.
24428         (orc_v2di3): Likewise.
24429         (orc_v4sf3): Likewise.
24430         (orc_v2df3): Likewise.
24431
24432         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
24433         allow power8 quad mode in 64-bit.
24434         (rs6000_builtin_vectorized_function): Add support to vectorize
24435         ISA 2.07 count leading zeros, population count builtins.
24436         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
24437         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
24438         (builtin_function_type): Add vgbbd builtin function which takes an
24439         unsigned argument.
24440         (altivec_expand_vec_perm_const): Add support for new power8 merge
24441         instructions.
24442
24443         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
24444         that does not include TImdoe for use with 32-bit.
24445         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
24446         instructions.
24447         (UNSPEC_VSX_CVDPSPN): Likewise.
24448         (vsx_xscvdpspn): Likewise.
24449         (vsx_xscvspdpn): Likewise.
24450         (vsx_xscvdpspn_scalar): Likewise.
24451         (vsx_xscvspdpn_directmove): Likewise.
24452         (vsx_and<mode>3): Split logical operations into 32-bit and
24453         64-bit. Add support to do logical operations on TImode as well as
24454         VSX vector types.  Allow logical operations to be done in either
24455         VSX registers or in general purpose registers in 64-bit mode.  Add
24456         splitters if GPRs were used. For AND, add clobber of CCmode to
24457         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
24458         encoding.
24459         (vsx_and<mode>3_32bit): Likewise.
24460         (vsx_and<mode>3_64bit): Likewise.
24461         (vsx_ior<mode>3): Likewise.
24462         (vsx_ior<mode>3_32bit): Likewise.
24463         (vsx_ior<mode>3_64bit): Likewise.
24464         (vsx_xor<mode>3): Likewise.
24465         (vsx_xor<mode>3_32bit): Likewise.
24466         (vsx_xor<mode>3_64bit): Likewise.
24467         (vsx_one_cmpl<mode>2): Likewise.
24468         (vsx_one_cmpl<mode>2_32bit): Likewise.
24469         (vsx_one_cmpl<mode>2_64bit): Likewise.
24470         (vsx_nor<mode>3): Likewise.
24471         (vsx_nor<mode>3_32bit): Likewise.
24472         (vsx_nor<mode>3_64bit): Likewise.
24473         (vsx_andc<mode>3): Likewise.
24474         (vsx_andc<mode>3_32bit): Likewise.
24475         (vsx_andc<mode>3_64bit): Likewise.
24476         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
24477         and xxlorc instructions.
24478         (vsx_eqv<mode>3_64bit): Likewise.
24479         (vsx_nand<mode>3_32bit): Likewise.
24480         (vsx_nand<mode>3_64bit): Likewise.
24481         (vsx_orc<mode>3_32bit): Likewise.
24482         (vsx_orc<mode>3_64bit): Likewise.
24483
24484         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
24485
24486         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
24487         instruction.
24488         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
24489         (p8_vmrgow): Likewise.
24490         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
24491         GPRs to be split under VSX.
24492         (p8v_clz<mode>2): Add power8 count leading zero support.
24493         (p8v_popcount<mode>2): Add power8 population count support.
24494         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
24495         support.
24496
24497         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
24498         instruction.
24499
24500         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
24501         builtin functions.
24502         (vec_nand): Likewise.
24503         (vec_vclz): Likewise.
24504         (vec_vclzb): Likewise.
24505         (vec_vclzd): Likewise.
24506         (vec_vclzh): Likewise.
24507         (vec_vclzw): Likewise.
24508         (vec_vgbbd): Likewise.
24509         (vec_vmrgew): Likewise.
24510         (vec_vmrgow): Likewise.
24511         (vec_vpopcnt): Likewise.
24512         (vec_vpopcntb): Likewise.
24513         (vec_vpopcntd): Likewise.
24514         (vec_vpopcnth): Likewise.
24515         (vec_vpopcntw): Likewise.
24516
24517 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24518
24519         PR rtl-optimization/57468
24520         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
24521         spilled pseudos.
24522
24523 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24524
24525         PR rtl-optimization/57459
24526         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
24527         type when setting live regs.
24528
24529 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24530
24531         * config/s390/s390.opt (mlra): New option.
24532         * config/s390/s390.c (s390_decompose_address): Check displacement
24533         for all registers for LRA.
24534         (s390_secondary_reload): Don't used secondary reloads for LRA.
24535         (s390_lra_p): New function.
24536         (TARGET_LRA_P): Define.
24537         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
24538         of attribute cpu_facility to zarch for the last alternative.
24539         (*cmpmem_short): Ditto.
24540
24541 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
24542
24543         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
24544         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
24545         (arm_expand_prologue): Likewise.
24546
24547 2013-06-06  Teresa Johnson  <tejohnson@google.com>
24548
24549         PR c++/53743
24550         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
24551         as this is now done by redirect_edge_and_branch_force.
24552         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
24553         barriers, and fix interaction with splitting.
24554         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
24555         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
24556         reflect changes made in the routine.
24557         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
24558         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
24559         since this is called in cfglayout mode, and replace partition fixup
24560         with assert as that is now done by force_nonfallthru_and_redirect.
24561         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
24562         already be marked with region crossing note.
24563         (insert_section_boundary_note): Make non-static, gate on flag
24564         has_bb_partition, rewrite to also check for multiple partitions.
24565         (rest_of_handle_reorder_blocks): Remove call to
24566         insert_section_boundary_note, now done later during free_cfg.
24567         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
24568         * bb-reorder.h (insert_section_boundary_note): Declare.
24569         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
24570         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
24571         invoke insert_section_boundary_note.
24572         (try_redirect_by_replacing_jump): Remove unnecessary
24573         check for region crossing note.
24574         (fixup_partition_crossing): New function.
24575         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
24576         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
24577         in non-cfglayout mode.
24578         (force_nonfallthru_and_redirect): Fixup partition boundaries,
24579         remove old code that tried to do this. Emit barrier correctly
24580         when we are in cfglayout mode.
24581         (last_bb_in_partition): New function.
24582         (rtl_split_edge): Correctly fixup partition boundaries.
24583         (commit_one_edge_insertion): Remove old code that tried to
24584         fixup region crossing edge since this is now handled in
24585         split_block, and set up insertion point correctly since
24586         block may now end in a jump.
24587         (verify_hot_cold_block_grouping): Guard against checking when not in
24588         linearized RTL mode.
24589         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
24590         notes.
24591         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
24592         rtl_verify_flow_info, so not called in cfglayout mode.
24593         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
24594         (fixup_reorder_chain): Remove old code that attempted to fixup region
24595         crossing note as this is now handled in force_nonfallthru_and_redirect.
24596         (duplicate_insn_chain): Don't duplicate switch section notes.
24597         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
24598         note.
24599         * basic-block.h (emit_barrier_after_bb): Declare.
24600
24601 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24602
24603         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
24604         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
24605         arm_usatsihi): Adjust alternatives for arm_restrict_it.
24606
24607 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24608
24609         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
24610         where appropriate.
24611         * config/arm/ldmstm.md: Regenerate.
24612
24613 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24614
24615         * config/arm/sync.md (atomic_loaddi_1):
24616         Disable predication for arm_restrict_it.
24617         (arm_load_exclusive<mode>): Likewise.
24618         (arm_load_exclusivesi): Likewise.
24619         (arm_load_exclusivedi): Likewise.
24620         (arm_load_acquire_exclusive<mode>): Likewise.
24621         (arm_load_acquire_exclusivesi): Likewise.
24622         (arm_load_acquire_exclusivedi): Likewise.
24623         (arm_store_exclusive<mode>): Likewise.
24624         (arm_store_exclusive<mode>): Likewise.
24625         (arm_store_release_exclusivedi): Likewise.
24626         (arm_store_release_exclusive<mode>): Likewise.
24627
24628 2013-06-06  Richard Biener  <rguenther@suse.de>
24629
24630         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
24631         after LTO_null.
24632         (lto_tag_is_tree_code_p): Adjust.
24633         (lto_tag_is_gimple_code_p): Likewise.
24634         (lto_gimple_code_to_tag): Likewise.
24635         (lto_tag_to_gimple_code): Likewise.
24636         (lto_tree_code_to_tag): Likewise.
24637         (lto_tag_to_tree_code): Likewise.
24638         * data-streamer.h (streamer_write_hwi_in_range): Use
24639         uhwi streaming to stream the normalized range.
24640         (streamer_read_hwi_in_range): Likewise.
24641
24642 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24643
24644         * config/arm/arm.md (enabled_for_depr_it): New attribute.
24645         (predicable_short_it): Likewise.
24646         (predicated): Likewise.
24647         (enabled): Handle above.
24648         (define_cond_exec): Set predicated attribute to yes.
24649
24650 2013-06-05  Mike Stump  <mikestump@comcast.net>
24651
24652         * gdbinit.in (__FUNCTION__): Add.
24653
24654 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
24655
24656         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
24657         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
24658
24659 2013-06-05  Jan Hubicka  <jh@suse.cz>
24660
24661         * varasm.c (mark_decl_referenced): Revert the removal until targets
24662         are fixed.
24663
24664 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
24665
24666         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
24667         instead of mark_decl_referenced.
24668
24669 2013-06-05  Jan Hubicka  <jh@suse.cz>
24670
24671         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
24672         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
24673         and symtab_used_from_object_file_p.
24674         (cgraph_make_node_local_1): Clear forced_by_abi.
24675         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
24676         * cgraph.h (symtab_node_base): Add forced_by_abi.
24677         (decide_is_variable_needed): Remove.
24678         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
24679         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
24680         (decide_is_symbol_needed): ... this one; handle symbols in general;
24681         always analyze virtuals; honnor forced_by_abi.
24682         (cgraph_finalize_function): Update.
24683         (varpool_finalize_decl): Update.
24684         (symbol_defined_and_needed): Remove.
24685         (analyze_functions): Update.
24686         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24687         output_refs, input_overwrite_node): Handle forced_by_abi.
24688         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
24689         (address_taken_from_non_vtable_p): ... this one.
24690         (comdat_can_be_unshared_p_1): New function.
24691         (cgraph_comdat_can_be_unshared_p): Rename to ...
24692         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
24693         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
24694         (function_and_variable_visibility): Clear forced_by_abi as needed.
24695         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
24696         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
24697         * symtab.c (dump_symtab_base): Dump forced_by_abi.
24698         * varpool.c (decide_is_variable_needed): Remove.
24699
24700 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24701
24702         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
24703         (arm_option_override): Override arm_restrict_it where appropriate.
24704         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
24705         * config/arm/arm.opt (mrestrict-it): New command-line option.
24706         * doc/invoke.texi: Document -mrestrict-it.
24707
24708 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
24709
24710         * tsan.c (tsan_atomic_table): Make const.
24711
24712 2013-06-05  Richard Biener  <rguenther@suse.de>
24713
24714         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
24715         index associated with the tree we are supposed to replace.
24716         * tree-streamer-out.c (pack_ts_base_value_fields): Output
24717         TREE_ASM_WRITTEN as zero for everything but SSA names.
24718
24719 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
24720
24721         * tree-ssa-structalias.c (call_stmt_vars): Make static.
24722
24723 2013-06-04  Jan Hubicka  <jh@suse.cz>
24724
24725         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
24726         (input_node, input_varpool_node): Handle correctly external same
24727         body aliases.
24728         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
24729         nodes at ltrans stage.
24730
24731 2013-06-04  Jan Hubicka  <jh@suse.cz>
24732
24733         * ipa-inline.c (update_caller_keys): Fix availability test.
24734         (update_callee_keys): Likewise.
24735         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
24736         to follow ELF standard.
24737
24738 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
24739
24740         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
24741         (mips64r5900el-*-elf*): New configurations.
24742         * config/mips/mips-cpus.def (r5900): New processor.
24743         * config/mips/mips-tables.opt: Regenerate.
24744         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
24745         (mips_issue_rate): Handle PROCESSOR_R5900.
24746         (mips_reorg_process_insns): Force reorder mode for the R5900.
24747         * config/mips/mips.h (TARGET_MIPS5900): Define.
24748         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
24749         TARGET_MIPS5900.
24750         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
24751         TARGET_MIPS5900.
24752         * config/mips/mips.md (processor): Add r5900.
24753         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
24754
24755 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24756
24757         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
24758         into function to generate MOVI instruction.
24759         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
24760         (aarch64_preferred_simd_mode): Turn into wrapper.
24761         (aarch64_output_scalar_simd_mov_immediate): New function.
24762         * config/aarch64/aarch64-protos.h: Add prototype for above.
24763
24764 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24765
24766         * config/aarch64/aarch64.c (simd_immediate_info): Remove
24767         element_char member.
24768         (sizetochar): Return signed char.
24769         (aarch64_simd_valid_immediate): Remove elchar and other
24770         unnecessary variables.
24771         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
24772         Calculate element_char as required.
24773         * config/aarch64/aarch64-protos.h: Update and move prototype
24774         for aarch64_output_simd_mov_immediate.
24775         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
24776         Update arguments.
24777
24778 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24779
24780         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
24781         information completed by aarch64_simd_valid_immediate.
24782         (aarch64_legitimate_constant_p): Update arguments.
24783         (aarch64_simd_valid_immediate): Work with struct rather than many
24784         pointers.
24785         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
24786         (aarch64_simd_make_constant): Update arguments.
24787         (aarch64_output_simd_mov_immediate): Work with struct rather than
24788         many pointers.  Output immediate directly rather than as operand.
24789         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24790         Update prototype.
24791         * config/aarch64/constraints.md (Dn): Update arguments.
24792
24793 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24794
24795         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
24796         longer static.
24797         (aarch64_simd_immediate_valid_for_move): Remove.
24798         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
24799         (aarch64_simd_make_constant): Update call.
24800         (aarch64_output_simd_mov_immediate): Update call.
24801         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24802         Add prototype.
24803         * config/aarch64/constraints.md (Dn): Update call.
24804
24805 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24806
24807         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
24808         return type to bool for prototype.
24809         (aarch64_legitimate_constant_p): Check for true instead of not -1.
24810         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
24811         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
24812
24813 2013-06-04  Catherine Moore  <clm@codesourcery.com>
24814
24815         * config/mips/mips.opt (meva): New.
24816         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
24817         (ASM_SPEC): Handle -meva.
24818         * doc/invoke.texi (meva):  Document.
24819
24820 2013-06-04  Alan Modra  <amodra@gmail.com>
24821
24822         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
24823         constant output.
24824
24825 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24826
24827         * rtl.def: Add extra fourth optional field to define_cond_exec.
24828         * gensupport.c (process_one_cond_exec): Process attributes from
24829         define_cond_exec.
24830         * doc/md.texi: Document fourth field in define_cond_exec.
24831
24832 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
24833
24834         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
24835         out the processing order as in store_bit_field_1.
24836
24837 2013-06-04  Jan Hubicka  <jh@suse.cz>
24838
24839         PR middle-end/57500
24840         * cgraphunit.c (cgraph_process_same_body_aliases): Create
24841         non-VAR_DECL node if it does not exist yet.
24842
24843 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
24844
24845         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
24846         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
24847         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
24848         target_cpu_default setting.
24849
24850 2013-06-03  Teresa Johnson  <tejohnson@google.com>
24851
24852         * dumpfile.c (opt_info_switch_p): Change -fopt-info
24853         default to -fopt-info=optimized instead of all.
24854         * doc/invoke.texi: Ditto.
24855         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
24856         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
24857         (execute_vect_slp): Emit BB vectorization success under
24858         MSG_OPTIMIZED_LOCATIONS.
24859         * tree-vect-slp.c (vect_slp_transform_bb): Change
24860         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
24861         * tree-vect-loop.c (vect_transform_loop): Ditto.
24862
24863 2013-06-03  Jason Merrill  <jason@redhat.com>
24864
24865         PR c++/57415
24866         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24867         Use TARGET_EXPR for C++.
24868
24869 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
24870
24871         PR rtl-optimization/57268
24872         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
24873         if DEBUG_INSN_P (insn).
24874
24875         Reapply
24876         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
24877
24878         PR rtl-optimization/57268
24879         * sched-deps.c (sched_analyze_2): Flush dependence lists if
24880         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24881
24882 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
24883
24884         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
24885         (ix86_avoid_lea_for_addr): Likewise.
24886         (exact_dependency_1): Likewise.
24887         (ix86_adjust_cost): Likewise.
24888         (swap_top_of_ready_list): Fix formatting and !reload_completed check
24889         removed.
24890         (do_reorder_for_imul): Fix typo, formatting and
24891         !reload_completed check removed.
24892         (ix86_sched_reorder): Fix typo and formatting.
24893         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
24894         list.
24895
24896 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
24897
24898         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
24899
24900 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
24901
24902         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
24903         <STRING_CST>: Likewise.
24904         <VECTOR_CST>: Likewise.
24905
24906 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
24907             Mikael Morin  <mikael@gcc.gnu.org>
24908
24909         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
24910         * config.in: Regenerated.
24911         * configure: Regenerated.
24912
24913 2013-06-01  Jan Hubicka  <jh@suse.cz>
24914
24915         PR middle-end/57366
24916         * cgraphunit.c (compile): When weakref is not supported,
24917         set up transparent aliases before final output pass.
24918         * varasm.c (assemble_alias): Do not try to do it here.
24919
24920 2013-06-01  Jan Hubicka  <jh@suse.cz>
24921
24922         PR middle-end/57467
24923         * passes.c (for_per_function): Skip unanalyzed functions.
24924
24925 2013-06-01  Jan Hubicka  <jh@suse.cz>
24926
24927         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
24928         (lto_symtab_merge_symbols_1): ... this one.
24929         (lto_symtab_merge_cgraph_nodes): Rename to ...
24930         (lto_symtab_merge_symbols): ... this one; simplify.
24931         * cgraph.c (same_body_aliases_done): Rename to ...
24932         (cpp_implicit_aliases_done): ... this one.
24933         (cgraph_create_function_alias): Update.
24934         (cgraph_same_body_alias): Update.
24935         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
24936         (verify_edge_corresponds_to_fndecl): Simplify.
24937         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
24938         (cgraph_node): Remove same_body_alias.
24939         (varpool_node): Remove alias_of and extra_name_alias.
24940         (same_body_aliases_done): Rename to ..
24941         (cpp_implicit_aliases_done): ... this one.
24942         (symtab_alias_ultimate_target): Add default parameter.
24943         (symtab_resolve_alias): New function.
24944         (fixup_same_cpp_alias_visibility): Declare.
24945         (cgraph_function_node): Add default parameter.
24946         (cgraph_node_asm_name): Likewise.
24947         (cgraph_function_or_thunk_node): Add default parameter; do
24948         not ICE when it is NULL.
24949         (varpool_variable_node): Likewise.
24950         * tree-emutls.c (create_emultls_var): Update.
24951         (ipa_lower_emutls): Update.
24952         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
24953         (cgraph_reset_node): Reset alias info.
24954         (cgraph_finalize_function): Update.
24955         (fixup_same_cpp_alias_visibility): Move to symtab.c.
24956         (analyze_function): Simplify.
24957         (cgraph_process_same_body_aliases): Simplify.
24958         (analyze_functions): Fixup same body aliases.
24959         (handle_alias_pairs): Simplify.
24960         (assemble_thunk): Update.
24961         (assemble_thunks_and_aliases): Update.
24962         (output_weakrefs): Rewrite.
24963         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
24964         (lto_output_varpool_node): Likewise.
24965         (compute_ltrans_boundary): Remve assert.
24966         (get_alias_symbol): New functoin.
24967         (input_node): Rewrite alias handling.
24968         (input_varpool_node): Likewise.
24969         * ipa-pure-const.c (propagate_pure_const): Fix formating.
24970         * ipa.c (process_references): Handle weakrefs correctly.
24971         (symtab_remove_unreachable_nodes): Likewise.
24972         * trans-mem.c (get_cg_data): Update.
24973         (ipa_tm_create_version_alias): Update.
24974         (ipa_tm_execute): Update.
24975         * symtab.c (dump_symtab_base): Dump aliases.
24976         (verify_symtab_base): Verify aliases.
24977         (symtab_node_availability): New function.
24978         (symtab_alias_ultimate_target): Simplify.
24979         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
24980         handle all the fixup cases.
24981         (symtab_resolve_alias): New function.
24982         * passes.c (ipa_write_summaries): Handle weakrefs.
24983         * varpool.c (varpool_analyze_node): Simplify.
24984         (assemble_aliases): Update.
24985         (varpool_create_variable_alias): Simplify.
24986         (varpool_extra_name_alias): Simplify.
24987         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
24988         (lto_symtab_merge_symbols): ... this one.
24989
24990 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
24991
24992         Revert
24993         PR rtl-optimization/57268
24994         * sched-deps.c (sched_analyze_2): Flush dependence lists if
24995         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24996
24997 2013-06-01  Tobias Burnus  <burnus@net-b.de>
24998
24999         Partially reverted:
25000         2013-05-31  Tobias Burnus  <burnus@net-b.de>
25001
25002         PR middle-end/57073
25003         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
25004         further up.
25005
25006 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
25007
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.
25011
25012 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
25013
25014         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
25015         unordered comparison operators when -fno-trapping-math is in effect
25016         on the e500.
25017         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
25018         and implement unordered comparison operators properly on the e500.
25019
25020 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
25021
25022         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
25023         for constant scalar integers.
25024         (simplify_relational_operation_1): Likewise.
25025
25026 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
25027
25028         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
25029         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
25030         Fix comment.
25031
25032 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25033             Igor Zamyatin  <igor.zamyatin@intel.com>
25034
25035         Silvermont (SLM) architecture performance tuning.
25036         * config/i386/i386.h (enum ix86_tune_indices): Add
25037         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
25038         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
25039
25040         * config/i386/i386.c (initial_ix86_tune_features)
25041         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
25042         (ix86_lea_outperforms): Handle Silvermont tuning.
25043         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
25044         call.
25045         (ix86_use_lea_for_mov): Likewise.
25046         (ix86_avoid_lea_for_addr): Likewise.
25047         (ix86_lea_for_add_ok): Likewise.
25048         (exact_dependency_1): New function.
25049         (exact_store_load_dependency): Likewise.
25050         (ix86_adjust_cost): Handle Silvermont tuning.
25051         (do_reoder_for_imul): Likewise.
25052         (swap_top_of_ready_list): New function.
25053         (ix86_sched_reorder): Changed to handle Silvermont tuning.
25054
25055         * config/i386/i386.md (peepholes that split memory operand in fp
25056         converts): New.
25057
25058 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25059
25060         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
25061         Remove un-necessary braces.
25062
25063 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25064
25065         * config/aarch64/aarch64.c (aarch64_classify_symbol):
25066         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
25067
25068 2013-05-31  Tobias Burnus  <burnus@net-b.de>
25069
25070         PR middle-end/57073
25071         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
25072
25073 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25074
25075         PR target/56315
25076         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
25077         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
25078         * config/arm/neon.md (iordi3_neon): Remove.
25079         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
25080         * config/arm/predicates.md (imm_for_neon_logic_operand):
25081         Move to earlier in the file.
25082         (neon_logic_op2): Likewise.
25083         (arm_iordi_operand_neon): New predicate.
25084
25085 2013-05-31  Richard Biener  <rguenther@suse.de>
25086
25087         PR tree-optimization/57478
25088         PR tree-optimization/57453
25089         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
25090         are life as well.
25091
25092 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
25093
25094         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
25095         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
25096
25097 2013-05-30  Tobias Burnus  <burnus@net-b.de>
25098             Thomas Koenig  <tkoenig@gcc.gnu.org>
25099
25100         PR middle-end/57073
25101         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
25102         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
25103
25104 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
25105
25106         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
25107
25108 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
25109
25110         * target.def (register_usage_leveling_p): New hook.
25111         * targhooks.c (default_register_usage_leveling_p): New.
25112         * targhooks.h (default_register_usage_leveling_p): New prototype.
25113         * lra-assigns.c (register_usage_leveling_p): Use the hook.
25114         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
25115         * doc/tm.texi: Update.
25116         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
25117
25118 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
25119
25120         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
25121         (*insv_reg<mode>): New define_insn.
25122
25123 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
25124
25125         PR rtl-optimization/57439
25126         * postreload.c (move2add_valid_value_p): Check that we have
25127         a zero subreg_regno_offset when accessing the register in
25128         the requested mode.
25129
25130 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25131             Igor Zamyatin  <igor.zamyatin@intel.com>
25132
25133         Silvermont (SLM) architecture pipeline model, tuning and
25134         insn selection.
25135         * config.gcc: Add slm config options and target.
25136
25137         * config/i386/slm.md: New.
25138
25139         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
25140
25141         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
25142         PROCESSOR_SLM.
25143         (ix86_target_macros_internal): Likewise.
25144
25145         * config/i386/i386.c (slm_cost): New cost.
25146         (m_SLM): New macro flag.
25147         (initial_ix86_tune_features): Set m_SLM.
25148         (x86_accumulate_outgoing_args): Likewise.
25149         (x86_arch_always_fancy_math_387): Likewise.
25150         (processor_target_table): Add slm cost.
25151         (cpu_names): Add slm cpu name.
25152         (x86_option_override_internal): Set SLM ISA.
25153         (ix86_issue_rate): New case PROCESSOR_SLM.
25154         (ia32_multipass_dfa_lookahead): Likewise.
25155         (fold_builtin_cpu): Add slm.
25156
25157         * config/i386/i386.h (TARGET_SLM): New target macro.
25158         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
25159         (processor_type): Add PROCESSOR_SLM.
25160
25161         * config/i386/i386.md (cpu): Add new value "slm".
25162         (slm.md): Include slm.md.
25163
25164 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
25165             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25166
25167         * config/arm/arm-protos.h: Add and update function protos.
25168         * config/arm/arm.c (use_simple_return_p): New added.
25169         (thumb2_expand_return): Check simple_return flag.
25170         * config/arm/arm.md: Add simple_return and conditional simple_return.
25171         * config/arm/iterators.md: Add iterator for return and simple_return.
25172
25173 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25174
25175         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
25176         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
25177         (arm_emit_vfp_multi_reg_pop): Likewise.
25178         (thumb2_emit_ldrd_pop): Likewise.
25179         (arm_expand_epilogue): Add misc REG_CFA notes.
25180         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
25181
25182 2013-05-29  Lawrence Crowl  <crowl@google.com>
25183
25184         * config/arm/t-arm: Update for below.
25185
25186         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
25187         Change type to hash_table.  Update dependent calls and types.
25188
25189         * config/i386/t-cygming: Update for below.
25190
25191         * config/i386/t-interix: Update for below.
25192
25193         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
25194         Change type to hash_table.  Update dependent calls and types.
25195         (i386_find_on_wrapper_list::wrappers): Likewise.
25196
25197         * config/ia64/t-ia64: Update for below.
25198
25199         * config/ia64/ia64.c (bundle_state_table):
25200         Change type to hash_table.  Update dependent calls and types.
25201
25202         * config/mips/mips.c (mips_reorg_process_insns::htab):
25203         Change type to hash_table.  Update dependent calls and types.
25204
25205         * config/sol2.c (solaris_comdat_htab):
25206         Change type to hash_table.  Update dependent calls and types.
25207
25208         * config/t-sol2: Update for above.
25209
25210 2013-05-29  Teresa Johnson  <tejohnson@google.com>
25211
25212         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
25213         functions are not yet marked as defined.
25214
25215 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
25216             Pat Haugen  <pthaugen@us.ibm.com>
25217             Peter Bergner  <bergner@vnet.ibm.com>
25218
25219         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
25220         instructions.
25221         (VEC_A): Likewise.
25222         (VEC_C): Likewise.
25223         (vrotl<mode>3): Likewise.
25224         (vashl<mode>3): Likewise.
25225         (vlshr<mode>3): Likewise.
25226         (vashr<mode>3): Likewise.
25227
25228         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25229         support for power8 V2DI builtins.
25230
25231         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
25232         power8 V2DI builtins.
25233         (vupkhsw): Likewise.
25234         (vupklsw): Likewise.
25235         (vaddudm): Likewise.
25236         (vminsd): Likewise.
25237         (vmaxsd): Likewise.
25238         (vminud): Likewise.
25239         (vmaxud): Likewise.
25240         (vpkudum): Likewise.
25241         (vpksdss): Likewise.
25242         (vpkudus): Likewise.
25243         (vpksdus): Likewise.
25244         (vrld): Likewise.
25245         (vsld): Likewise.
25246         (vsrd): Likewise.
25247         (vsrad): Likewise.
25248         (vsubudm): Likewise.
25249         (vcmpequd): Likewise.
25250         (vcmpgtsd): Likewise.
25251         (vcmpgtud): Likewise.
25252         (vcmpequd_p): Likewise.
25253         (vcmpgtsd_p): Likewise.
25254         (vcmpgtud_p): Likewise.
25255         (vupkhsw): Likewise.
25256         (vupklsw): Likewise.
25257         (vaddudm): Likewise.
25258         (vmaxsd): Likewise.
25259         (vmaxud): Likewise.
25260         (vminsd): Likewise.
25261         (vminud): Likewise.
25262         (vpksdss): Likewise.
25263         (vpksdus): Likewise.
25264         (vpkudum): Likewise.
25265         (vpkudus): Likewise.
25266         (vrld): Likewise.
25267         (vsld): Likewise.
25268         (vsrad): Likewise.
25269         (vsrd): Likewise.
25270         (vsubudm): Likewise.
25271
25272         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25273         support for power8 V2DI instructions.
25274
25275         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
25276         power8 V2DI instructions.  Combine pack and unpack insns to use an
25277         iterator for each mode.  Check whether a particular mode supports
25278         Altivec instructions instead of just checking TARGET_ALTIVEC.
25279         (UNSPEC_VPKUWUM): Likewise.
25280         (UNSPEC_VPKSHSS): Likewise.
25281         (UNSPEC_VPKSWSS): Likewise.
25282         (UNSPEC_VPKUHUS): Likewise.
25283         (UNSPEC_VPKSHUS): Likewise.
25284         (UNSPEC_VPKUWUS): Likewise.
25285         (UNSPEC_VPKSWUS): Likewise.
25286         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
25287         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
25288         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
25289         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
25290         (UNSPEC_VUPKHSB): Likewise.
25291         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
25292         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
25293         (UNSPEC_VUPKHSH): Likewise.
25294         (UNSPEC_VUPKLSB): Likewise.
25295         (UNSPEC_VUPKLSH): Likewise.
25296         (VI2): Likewise.
25297         (VI_char): Likewise.
25298         (VI_scalar): Likewise.
25299         (VI_unit): Likewise.
25300         (VP): Likewise.
25301         (VP_small): Likewise.
25302         (VP_small_lc): Likewise.
25303         (VU_char): Likewise.
25304         (add<mode>3): Likewise.
25305         (altivec_vaddcuw): Likewise.
25306         (altivec_vaddu<VI_char>s): Likewise.
25307         (altivec_vadds<VI_char>s): Likewise.
25308         (sub<mode>3): Likewise.
25309         (altivec_vsubcuw): Likewise.
25310         (altivec_vsubu<VI_char>s): Likewise.
25311         (altivec_vsubs<VI_char>s): Likewise.
25312         (altivec_vavgs<VI_char>): Likewise.
25313         (altivec_vcmpbfp): Likewise.
25314         (altivec_eq<mode>): Likewise.
25315         (altivec_gt<mode>): Likewise.
25316         (altivec_gtu<mode>): Likewise.
25317         (umax<mode>3): Likewise.
25318         (smax<mode>3): Likewise.
25319         (umin<mode>3): Likewise.
25320         (smin<mode>3): Likewise.
25321         (altivec_vpkuhum): Likewise.
25322         (altivec_vpkuwum): Likewise.
25323         (altivec_vpkshss): Likewise.
25324         (altivec_vpkswss): Likewise.
25325         (altivec_vpkuhus): Likewise.
25326         (altivec_vpkshus): Likewise.
25327         (altivec_vpkuwus): Likewise.
25328         (altivec_vpkswus): Likewise.
25329         (altivec_vpks<VI_char>ss): Likewise.
25330         (altivec_vpks<VI_char>us): Likewise.
25331         (altivec_vpku<VI_char>us): Likewise.
25332         (altivec_vpku<VI_char>um): Likewise.
25333         (altivec_vrl<VI_char>): Likewise.
25334         (altivec_vsl<VI_char>): Likewise.
25335         (altivec_vsr<VI_char>): Likewise.
25336         (altivec_vsra<VI_char>): Likewise.
25337         (altivec_vsldoi_<mode>): Likewise.
25338         (altivec_vupkhsb): Likewise.
25339         (altivec_vupkhs<VU_char>): Likewise.
25340         (altivec_vupkls<VU_char>): Likewise.
25341         (altivec_vupkhsh): Likewise.
25342         (altivec_vupklsb): Likewise.
25343         (altivec_vupklsh): Likewise.
25344         (altivec_vcmpequ<VI_char>_p): Likewise.
25345         (altivec_vcmpgts<VI_char>_p): Likewise.
25346         (altivec_vcmpgtu<VI_char>_p): Likewise.
25347         (abs<mode>2): Likewise.
25348         (vec_unpacks_hi_v16qi): Likewise.
25349         (vec_unpacks_hi_v8hi): Likewise.
25350         (vec_unpacks_lo_v16qi): Likewise.
25351         (vec_unpacks_hi_<VP_small_lc>): Likewise.
25352         (vec_unpacks_lo_v8hi): Likewise.
25353         (vec_unpacks_lo_<VP_small_lc>): Likewise.
25354         (vec_pack_trunc_v8h): Likewise.
25355         (vec_pack_trunc_v4si): Likewise.
25356         (vec_pack_trunc_<mode>): Likewise.
25357
25358         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
25359         V2DI builtins.
25360         (vec_vmaxsd): Likewise.
25361         (vec_vmaxud): Likewise.
25362         (vec_vminsd): Likewise.
25363         (vec_vminud): Likewise.
25364         (vec_vpksdss): Likewise.
25365         (vec_vpksdus): Likewise.
25366         (vec_vpkudum): Likewise.
25367         (vec_vpkudus): Likewise.
25368         (vec_vrld): Likewise.
25369         (vec_vsld): Likewise.
25370         (vec_vsrad): Likewise.
25371         (vec_vsrd): Likewise.
25372         (vec_vsubudm): Likewise.
25373         (vec_vupkhsw): Likewise.
25374         (vec_vupklsw): Likewise.
25375
25376 2013-05-29  Jan Hubicka  <jh@suse.cz>
25377
25378         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
25379         flags; reorder rest of fields in more consistent way.
25380         (varpool_node): Remove analyzed, finalized and alias.
25381         (cgraph_ndoe): Likewise.
25382         (symtab_alias_ultimate_target): New function.
25383         (cgraph_function_node): Move offline.
25384         (cgraph_reset_node): Declare.
25385         (cgraph_comdat_can_be_unshared_p): Remove.
25386         (varpool_remove_initializer): Declare.
25387         (varpool_first_defined_variable, varpool_next_defined_variable
25388         cgraph_first_defined_function, cgraph_next_defined_function): Update.
25389         (cgraph_function_with_gimple_body_p): Update.
25390         (varpool_all_refs_explicit_p): Update.
25391         (symtab_alias_target): New function.
25392         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
25393         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
25394         (cgraph_function_or_thunk_node): Simplify using
25395         symtab_alias_ultimate_target.
25396         (varpool_variable_node): Likewise.
25397         * cgraph.c (cgraph_create_function_alias): Update.
25398         (cgraph_add_thunk): Update.
25399         (cgraph_remove_node): Update.
25400         (dump_cgraph_node): Do not dump removed flags.
25401         (cgraph_function_body_availability): Update.
25402         (cgraph_propagate_frequency): Update.
25403         (verify_cgraph_node): Check sanity of local flag.
25404         (cgraph_function_node): Move here from cgraph.h; revamp for
25405         cgraph_function_or_thunk_node.
25406         * lto-symtab.c (lto_varpool_replace_node): Update.
25407         (lto_symtab_resolve_can_prevail_p): Update.
25408         (lto_symtab_merge_cgraph_nodes): Update.
25409         * ipa-cp.c (determine_versionability, initialize_node_lattices,
25410         propagate_constants_accross_call, devirtualization_time_bonus,
25411         ipcp_propagate_stage): Update.
25412         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
25413         * ipa-inline-transform.c (clone_inlined_nodes,
25414         preserve_function_body_p): Update.
25415         * ipa-reference.c (propagate): Update.
25416         (write_node_summary_p): Update.
25417         * toplev.c (wrapup_global_declaration_2): Update.
25418         * cgraphunit.c (cgraph_analyze_function): Rename to ...
25419         (analyze_function) ... this one.
25420         (cgraph_process_new_functions): Update.
25421         (cgraph_reset_node): Export.
25422         (cgraph_finalize_function): Update.
25423         (cgraph_add_new_function): Update.
25424         (process_function_and_variable_attributes): Update.
25425         (varpool_finalize_decl): Update.
25426         (symbol_finalized): Remove.
25427         (symbol_finalized_and_needed): Rename to ...
25428         (symbol_defined_and_needed): ... update.
25429         (cgraph_analyze_functions): Update.
25430         (handle_alias_pairs): Update.
25431         (mark_functions_to_output): Update.
25432         (assemble_thunk): Update.
25433         (output_in_order): Update.
25434         (output_weakrefs): Update.
25435         (finalize_compilation_unit): Update.
25436         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
25437         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
25438         input_node, input_varpool_node): Update.
25439         * dbxout.c (dbxout_expand_expr): Update.
25440         * cgraphclones.c (cgraph_clone_node): Update.
25441         (cgraph_copy_node_for_versioning): Update.
25442         (cgraph_materialize_clone): Update.
25443         (cgraph_materialize_all_clones): Update.
25444         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
25445         propagate_pure_const, propagate_nothrow): Update.
25446         * lto-streamer-out.c (lto_output, write_symbol): Update.
25447         * ipa-utils.c (ipa_reverse_postorder): Update.
25448         * ipa-inline.c (can_inline_edge_p): Update.
25449         (update_caller_keys, ipa_inline): Update.
25450         * dwarf2out.c (reference_to_unused,
25451         premark_types_used_by_global_vars_helper): Update.
25452         * tree-eh.c (tree_could_trap_p): Update.
25453         * ipa-split.c (consider_split, execute_split_functions): Update.
25454         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
25455         has_addr_references_p): Update; move ahead in file for better
25456         readability.
25457         (process_references): Simplify.
25458         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
25459         bodies are removed.
25460         (cgraph_comdat_can_be_unshared_p): Make static.
25461         (cgraph_externally_visible_p): Update.
25462         (varpool_externally_visible_p): Update.
25463         (function_and_variable_visibility): Update.
25464         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
25465         ipa_tm_mark_force_output_node): Update.
25466         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
25467         estimate_edge_devirt_benefit, inline_generate_summary,
25468         inline_write_summary): Update.
25469         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
25470         * ipa-prop.c (ipa_compute_jump_functions): Update.
25471         (ipa_print_node_params, ipa_prop_read_section,
25472         ipa_update_after_lto_read, read_replacements_section): Update.
25473         * varasm.c (mark_decl_referenced): Update.
25474         (assemble_alias, dump_tm_clone_pairs): Update.
25475         * tree-inline.c (copy_bb): Update.
25476         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
25477         Update.
25478         * symtab.c (dump_symtab_base): Print new flags.
25479         (verify_symtab_base): Verify new flags.
25480         (symtab_alias_ultimate_target): New function.
25481         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
25482         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
25483         Update.
25484         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
25485         Update.
25486         * i386.c (ix86_get_function_versions_dispatcher,
25487         ix86_generate_version_dispatcher_body): Update.
25488         (fold_builtin_cpu): Use varpool_add_new_variable.
25489         * varpool.c (varpool_remove_initializer): Break out from ...
25490         (varpool_remove_node): ... this one.
25491         (dump_varpool_node, varpool_node_for_asm,
25492         cgraph_variable_initializer_availability, varpool_analyze_node,
25493         varpool_assemble_decl, varpool_remove_unreferenced_decls,
25494         varpool_finalize_named_section_flags, varpool_create_variable_alias):
25495         Update.
25496
25497 2013-05-29  Jan Hubicka  <jh@suse.cz>
25498
25499         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
25500
25501 2013-05-29  Easwaran Raman  <eraman@google.com>
25502
25503         PR tree-optimization/57442
25504         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
25505         when control exits the main loop.
25506
25507 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
25508
25509         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
25510         and RX600.
25511         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
25512         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
25513         * rx/t-rx: Add rx100 under multi library matches option for nofpu
25514         option.
25515
25516 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25517
25518         PR tree-optimization/57441
25519         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
25520         Don't limit size of incr_vec to number of candidates.
25521
25522 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
25523
25524         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
25525         and mips16 directories.
25526         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
25527         (MULTILIB_DIRNAMES): Ditto.
25528         (MULTILIB_EXCEPTIONS): Add new exceptions.
25529         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
25530         (MULTILIB_DIRNAMES): Ditto.
25531         (MULTILIB_EXCEPTIONS): Add new exceptions.
25532
25533 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25534             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25535
25536         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
25537         SYMBOL_TINY_ABSOLUTE.
25538         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
25539         SYMBOL_TINY_ABSOLUTE.
25540         (aarch64_expand_mov_immediate): Likewise.
25541         (aarch64_classify_symbol): Likewise.
25542         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
25543         Permit SYMBOL_TINY_ABSOLUTE.
25544         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
25545
25546 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25547             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25548
25549         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
25550         Refactor if/switch.  Replace gcc_assert with if.
25551
25552 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
25553
25554         * config/i386/i386.c (initial_ix86_tune_features): Enable
25555         FP Reassociation for AMD bdver1 and bdver2.
25556
25557 2013-05-29  Martin Jambor  <mjambor@suse.cz>
25558
25559         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
25560         and IMAGPART_EXPR do not occur within other handled_components.
25561
25562 2013-05-29  Richard Biener  <rguenther@suse.de>
25563
25564         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
25565         access on whether the use is in the BB we currently try to
25566         vectorize.
25567         (vect_bb_vectorization_profitable_p): Pass the BB we currently
25568         vectorize to vect_bb_slp_scalar_cost.
25569
25570 2013-05-29  Richard Biener  <rguenther@suse.de>
25571
25572         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
25573         computing scalar cost offsetted by stmts that are kept live
25574         by scalar uses.
25575         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
25576         for computation of scalar cost.
25577
25578 2013-05-28  Steve Ellcey  <sellcey@mips.com>
25579
25580         * config/mips/mips-cpus.def (mips32r2): Change processor type.
25581
25582 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
25583
25584         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
25585         array notation built-in reduction functions.
25586         * doc/passes.texi (Passes): Added documentation about changes done
25587         for Cilk Plus.
25588         * doc/invoke.texi (C Dialect Options): Added documentation about
25589         the -fcilkplus flag.
25590         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
25591         (BUILTINS_DEF): Depend on cilkplus.def.
25592         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
25593         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
25594         * cilkplus.def: New file.
25595
25596 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
25597
25598         PR rtl-optimization/57439
25599         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
25600
25601 2013-05-28  Easwaran Raman  <eraman@google.com>
25602
25603         PR tree-optimization/57337
25604         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
25605         (find_insert_point): Correctly identify the insertion point
25606         when two statements with the same UID is compared.
25607
25608 2013-05-28  Richard Biener  <rguenther@suse.de>
25609
25610         PR tree-optimization/56787
25611         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
25612         from the list of data references.
25613         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
25614         clobbers.
25615         (vect_analyze_loop_operations): Likewise.
25616         (vect_transform_loop): Remove clobbers.
25617
25618 2013-05-28  Martin Jambor  <mjambor@suse.cz>
25619
25620         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
25621         and REALPART_EXPRs have scalar type.
25622
25623 2013-05-28  Richard Biener  <rguenther@suse.de>
25624
25625         PR tree-optimization/57411
25626         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
25627         virtual operands.
25628         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
25629         virtual operand propagation.
25630
25631 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
25632
25633         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
25634         destination register for bmasksi_vis.
25635         (vector_init_bshuffle): Likewise.
25636         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
25637
25638 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
25639
25640         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
25641         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
25642         mode if the instruction isn't available in the original mode.
25643         * config/sparc/sparc.opt (mfix-ut699): New option.
25644         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
25645         (divdf3): Turn into expander.
25646         (divdf3_nofix): New insn.
25647         (divdf3_fix): Likewise.
25648         (divsf3): Disable if -mfix-ut699.
25649         (sqrtdf2): Turn into expander.
25650         (sqrtdf2_nofix): New insn.
25651         (sqrtdf2_fix): Likewise.
25652         (sqrtsf2): Disable if -mfix-ut699.
25653
25654 2013-05-27  Richard Biener  <rguenther@suse.de>
25655
25656         PR middle-end/57412
25657         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
25658         block for the new loop.
25659
25660 2013-05-27  Richard Biener  <rguenther@suse.de>
25661
25662         PR tree-optimization/57343
25663         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
25664         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
25665         (number_of_iterations_cond): Do not build the folded tree.
25666
25667 2013-05-27  Richard Biener  <rguenther@suse.de>
25668
25669         Revert
25670         PR middle-end/57381
25671         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25672         OEP_CONSTANT_ADDRESS_OF retained.
25673
25674         PR tree-optimization/57417
25675         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
25676         for unchanged base.
25677         (set_ssa_val_to): Compare addresses using
25678         get_addr_base_and_unit_offset.
25679
25680 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
25681
25682         PR rtl-optimization/56833
25683         * postreload.c (move2add_record_mode): New function.
25684         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
25685         (move2add_use_add2_insn): Use move2add_record_sym_value.
25686         (move2add_use_add3_insn): Likewise.
25687         (reload_cse_move2add): Use move2add_valid_value_p and
25688         move2add_record_mode.  Invalidate call-clobbered and REG_INC
25689         affected regs by setting reg_mode to VOIDmode.
25690         (move2add_note_store): Don't pretend the inside of a SUBREG is
25691         the actual destination.  Invalidate single/leading registers by
25692         setting reg_mode to VOIDmode.
25693         Use move2add_record_sym_value, move2add_valid_value_p and
25694         move2add_record_mode.
25695
25696 2013-05-27  Richard Biener  <rguenther@suse.de>
25697
25698         PR tree-optimization/57396
25699         * tree-affine.c (double_int_constant_multiple_p): Properly
25700         return false for val == 0 and div != 0.
25701
25702 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25703
25704         * config/mips/mips.h: Use #elif in preprocessor conditions.
25705
25706 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25707
25708         PR target/53916
25709         * config/mips/constraints.md (kl): New constraint.
25710         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
25711         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
25712         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
25713         from LO for MIPS16.
25714         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
25715
25716 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25717
25718         PR target/55777
25719         * config/mips/mips.c (mips_can_inline_p): New function.
25720         (TARGET_CAN_INLINE_P): Define.
25721
25722 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
25723
25724         * sched-int.h (ds_t, dw_t): Make unsigned int.
25725         Fix documentation that describes how all the ds_t bits are used.
25726         Reserve the last bit for delayed-branch scheduling.
25727         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
25728         (BITS_PER_DEP_WEAK): Fix definition and documentation.
25729         (gen_dep_weak_1): Remove prototype.
25730         * sched-deps.c (get_dep_weak_1): Make static.
25731         * target.def (speculate_insn, needs_block_p, gen_spec_check,
25732         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
25733         * doc/tm.texi: Regenerate.
25734         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
25735
25736 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
25737
25738         PR debug/56950
25739         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
25740
25741 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
25742             Sandra Loosemore  <sandra@codesourcery.com>
25743
25744         * config.gcc (powerpc-*): Allow native for with-cpu.
25745
25746 2013-05-24  Jeff Law  <law@redhat.com>
25747
25748         PR tree-optimization/57124
25749         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
25750         conversion feeding a condition if the range has an overflow
25751         if -fstrict-overflow.  Add warnings for when we do make the
25752         transformation.
25753
25754 2013-05-24  Dehao Chen  <dehao@google.com>
25755
25756         * tree-cfg.c (locus_discrim_map): Fix the typo.
25757         (locus_discrim_hasher): Likewise.
25758         (locus_discrim_hasher::hash): Likewise.
25759         (locus_discrim_hasher::equal): Likewise.
25760
25761 2013-05-24  Martin Jambor  <mjambor@suse.cz>
25762
25763         PR tree-optimization/57294
25764         * cgraph.h (ipa_record_stmt_references): Declare.
25765         * cgraphbuild.c (ipa_record_stmt_references): New function.
25766         (build_cgraph_edges): Use ipa_record_stmt_references.
25767         (rebuild_cgraph_edges): Likewise.
25768         (cgraph_rebuild_references): Likewise.
25769         * ipa-prop.c (ipa_modify_call_arguments): Discard references
25770         associated with the old statement and build references from the
25771         newly built statements.
25772         * ipa-ref.c (ipa_remove_stmt_references): New function.
25773         * ipa-ref.h (ipa_remove_stmt_references): Declare.
25774
25775 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
25776
25777         * lra-constraints.c (emit_spill_move): Use smaller mode for
25778         mem-mem moves.
25779         (check_and_process_move): Consider mem-reg moves for secondary
25780         too.
25781         (curr_insn_transform): Don't lose insns emitted before for
25782         secondary memory moves.
25783         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
25784         reg set up in the current insn.
25785
25786 2013-05-24  Dehao Chen  <dehao@google.com>
25787
25788         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25789         hash function.
25790         (locus_descrim_hasher::equal): Likewise.
25791         (build_gimple_cfg): New discriminator assignment algorithm.
25792         (make_edges): Likewise.
25793         (next_discriminator_for_locus): Likewise.
25794         (same_line_p): Likewise.
25795         (assign_discriminators): Likewise.
25796         (make_cond_expr_edges): Likewise.
25797         (make_gimple_switch_edges): Likewise.
25798         (make_goto_expr_edges): Likewise.
25799         (make_gimple_asm_edges): Likewise.
25800
25801 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
25802
25803         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
25804         X format specifier to only display bottom 16 bits.
25805         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
25806         immediate to match for operand 2, since it will be masked.
25807
25808 2013-05-24  Richard Biener  <rguenther@suse.de>
25809
25810         PR tree-optimization/57287
25811         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
25812         all SSA names that occur in abnormal PHIs.
25813
25814 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25815
25816         PR tree-ssa/57385
25817         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
25818         that index is not negative.
25819
25820 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
25821
25822         PR rtl-optimization/55177
25823         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
25824         (simplify_byte_swapping_operation): New.
25825         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
25826         (simplify_relational_operation_1): Deal with BSWAP.
25827
25828 2013-05-23  Richard Henderson  <rth@redhat.com>
25829
25830         PR target/56742
25831         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
25832         (ix86_reorg): Call it.
25833
25834 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
25835
25836         PR target/57379
25837         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
25838         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
25839         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
25840
25841 2013-05-23  Christian Bruel  <christian.bruel@st.com>
25842
25843         PR debug/57351
25844         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
25845
25846 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25847             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25848
25849         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
25850         * config/aarch64/constraints.md (Usa): Remove.
25851         * doc/md.texi (AArch64 Usa): Remove.
25852
25853 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25854             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25855
25856         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
25857         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
25858         * config/aarch64/predicates.md (aarch64_const_address): Remove.
25859         (aarch64_mov_operand): Use aarch64_mov_operand_p.
25860
25861 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
25862
25863         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
25864         instruction (AdvSIMD).
25865         * config/aarch64/aarch64-builtins.c
25866         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
25867         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
25868
25869 2013-05-23  Martin Jambor  <mjambor@suse.cz>
25870
25871         PR middle-end/57347
25872         * tree.h (contains_bitfld_component_ref_p): Declare.
25873         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
25874         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
25875         caller.
25876         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
25877         not access a bit-field.  Assert all final offsets are byte-aligned.
25878
25879 2013-05-23  Richard Biener  <rguenther@suse.de>
25880
25881         PR tree-optimization/57380
25882         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
25883         least one invariant or re-used load.
25884         * passes.c (init_optimization_passes): Move pass_phiprop before
25885         pass_forwprop.
25886
25887 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
25888
25889         * config/aarch64/aarch64-simd.md
25890         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
25891
25892 2013-05-23  Richard Biener  <rguenther@suse.de>
25893
25894         PR middle-end/57381
25895         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25896         OEP_CONSTANT_ADDRESS_OF retained.
25897
25898 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
25899
25900         PR middle-end/57344
25901         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
25902         don't lower unit.  Handle unit not being always BITS_PER_WORD.
25903
25904 2013-05-23  Richard Biener  <rguenther@suse.de>
25905
25906         PR rtl-optimization/57341
25907         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
25908         instead of true_dependence.
25909
25910 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
25911
25912         * bb-reorder.c (branch_threshold): Make const.
25913         (exec_threshold): Ditto.
25914
25915 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
25916             Pat Haugen  <pthaugen@us.ibm.com>
25917             Peter Bergner  <bergner@vnet.ibm.com>
25918
25919         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
25920         documentation for the power8 crypto builtins.
25921
25922         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
25923
25924         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
25925         macros for defining power8 builtin functions.
25926         (BU_P8V_AV_2): Likewise.
25927         (BU_P8V_AV_P): Likewise.
25928         (BU_P8V_VSX_1): Likewise.
25929         (BU_P8V_OVERLOAD_1): Likewise.
25930         (BU_P8V_OVERLOAD_2): Likewise.
25931         (BU_CRYPTO_1): Likewise.
25932         (BU_CRYPTO_2): Likewise.
25933         (BU_CRYPTO_3): Likewise.
25934         (BU_CRYPTO_OVERLOAD_1): Likewise.
25935         (BU_CRYPTO_OVERLOAD_2): Likewise.
25936         (XSCVSPDP): Fix typo, point to the correct instruction.
25937         (VCIPHER): Add power8 crypto builtins.
25938         (VCIPHERLAST): Likewise.
25939         (VNCIPHER): Likewise.
25940         (VNCIPHERLAST): Likewise.
25941         (VPMSUMB): Likewise.
25942         (VPMSUMH): Likewise.
25943         (VPMSUMW): Likewise.
25944         (VPERMXOR_V2DI): Likewise.
25945         (VPERMXOR_V4SI: Likewise.
25946         (VPERMXOR_V8HI: Likewise.
25947         (VPERMXOR_V16QI: Likewise.
25948         (VSHASIGMAW): Likewise.
25949         (VSHASIGMAD): Likewise.
25950         (VPMSUM): Likewise.
25951         (VPERMXOR): Likewise.
25952         (VSHASIGMA): Likewise.
25953
25954         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25955         __CRYPTO__ if the crypto instructions are available.
25956         (altivec_overloaded_builtins): Add support for overloaded power8
25957         builtins.
25958
25959         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
25960         support for power8 crypto builtins.
25961         (builtin_function_type): Likewise.
25962         (altivec_init_builtins): Add support for builtins that take vector
25963         long long (V2DI) arguments.
25964
25965         * config/rs6000/crypto.md: New file, define power8 crypto
25966         instructions.
25967
25968 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
25969             Pat Haugen  <pthaugen@us.ibm.com>
25970             Peter Bergner  <bergner@vnet.ibm.com>
25971
25972         * doc/invoke.texi (Option Summary): Add power8 options.
25973         (RS/6000 and PowerPC Options): Likewise.
25974
25975         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
25976         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
25977         wm, wn, wr documentation.
25978
25979         * config/rs6000/constraints.md (wm): New constraint for VSX
25980         registers if direct move instructions are enabled.
25981         (wn): New constraint for no registers.
25982         (wq): New constraint for quad word even GPR registers.
25983         (wr): New constraint if 64-bit instructions are enabled.
25984         (wv): New constraint if power8 vector instructions are enabled.
25985         (wQ): New constraint for quad word memory locations.
25986
25987         * config/rs6000/predicates.md (const_0_to_15_operand): New
25988         constraint for 0..15 for crypto instructions.
25989         (gpc_reg_operand): If VSX allow registers in VSX registers as well
25990         as GPR and floating point registers.
25991         (int_reg_operand): New predicate to match only GPR registers.
25992         (base_reg_operand): New predicate to match base registers.
25993         (quad_int_reg_operand): New predicate to match even GPR registers
25994         for quad memory operations.
25995         (vsx_reg_or_cint_operand): New predicate to allow vector logical
25996         operations in both GPR and VSX registers.
25997         (quad_memory_operand): New predicate for quad memory operations.
25998         (reg_or_indexed_operand): New predicate for direct move support.
25999
26000         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
26001         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
26002         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
26003         (POWERPC_MASKS): Add power8 options.
26004         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
26005         various options.
26006
26007         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
26008         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
26009
26010         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
26011         (-mpower8-fusion): New power8 options.
26012         (-mpower8-fusion-sign): Likewise.
26013         (-mpower8-vector): Likewise.
26014         (-mcrypto): Likewise.
26015         (-mdirect-move): Likewise.
26016         (-mquad-memory): Likewise.
26017
26018         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
26019         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
26020         registers.
26021         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
26022         (rs6000_debug_vector_unit): Add p8_vector.
26023         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
26024         definitions.  Also print fusion state.
26025         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
26026         (rs6000_builtin_mask_calculate): Add power8 builtin support.
26027         (rs6000_option_override_internal): Add support for power8.
26028         (rs6000_common_init_builtins): Add debugging for skipped builtins
26029         if -mdebug=builtin.
26030         (rs6000_adjust_cost): Add power8 support.
26031         (rs6000_issue_rate): Likewise.
26032         (insn_must_be_first_in_group): Likewise.
26033         (insn_must_be_last_in_group): Likewise.
26034         (force_new_group): Likewise.
26035         (rs6000_register_move_cost): Likewise.
26036         (rs6000_opt_masks): Likewise.
26037
26038         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
26039         power8 capable assembler, default to power7 options.
26040         (TARGET_DIRECT_MOVE): Likewise.
26041         (TARGET_CRYPTO): Likewise.
26042         (TARGET_P8_VECTOR): Likewise.
26043         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
26044         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
26045         (VECTOR_MEM_P8_VECTOR_P): Likewise.
26046         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
26047         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
26048         (TARGET_XSCVDPSPN): Likewise.
26049         (TARGET_XSCVSPDPN): Likewsie.
26050         (TARGET_SYNC_HI_QI): Likewise.
26051         (TARGET_SYNC_TI): Likewise.
26052         (MASK_CRYPTO): Likewise.
26053         (MASK_DIRECT_MOVE): Likewise.
26054         (MASK_P8_FUSION): Likewise.
26055         (MASK_P8_VECTOR): Likewise.
26056         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
26057         temporary used by some of the direct move instructions to get two FP
26058         temporary registers does not force creation of a stack frame.
26059         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
26060         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
26061         that any VSX registers are tieable, even if they are also an
26062         Altivec vector mode.
26063         (r6000_reg_class_enum): Add wm, wr, wv constraints.
26064         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
26065         (RS6000_BTM_CRYPTO): Likewise.
26066         (RS6000_BTM_COMMON): Likewise.
26067
26068         * config/rs6000/rs6000.md (cpu attribute): Add power8.
26069         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
26070         (enum rs6000_vector): Add power8 vector support.
26071
26072 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26073
26074         PR target/19599
26075         PR target/57340
26076         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
26077         (any_sibcall_could_use_r3): this and handle indirect calls.
26078         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
26079
26080 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26081
26082         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
26083
26084 2013-05-22  Richard Biener  <rguenther@suse.de>
26085
26086         PR middle-end/57349
26087         * profile.c (branch_prob): Do not split blocks that are
26088         abnormally receiving from ECF_RETURNS_TWICE functions.
26089
26090 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26091
26092         * recog.c (offsettable_address_addr_space_p): Fix calculation of
26093         address mode.  Move pointer mode initialization to the same place.
26094
26095 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26096
26097         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
26098         while it has any effect.
26099
26100 2013-05-21  Easwaran Raman  <eraman@google.com>
26101
26102         PR tree-optimization/57322
26103         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
26104         UID of the statement added to the BB to be 1.
26105
26106 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
26107
26108         PR tree-optimization/57331
26109         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
26110         of conversion from pointer type to integral type with integer.
26111
26112 2013-05-21  Martin Jambor  <mjambor@suse.cz>
26113
26114         PR lto/57289
26115         * ipa-prop.c (ipa_read_node_info): Process param_used and
26116         controlled_uses in the same order as when writing.
26117
26118 2013-05-21  Magnus Granberg  <baldrick@free.fr>
26119
26120         PR plugins/56754
26121         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
26122
26123 2013-05-21  Richard Biener  <rguenther@suse.de>
26124
26125         PR tree-optimization/57318
26126         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
26127         estimate stmts with side-effects as likely eliminated.
26128
26129 2013-05-21  Richard Biener  <rguenther@suse.de>
26130
26131         PR tree-optimization/57330
26132         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
26133         preserve the call stmts fntype.
26134
26135 2013-05-21  Richard Biener  <rguenther@suse.de>
26136
26137         PR tree-optimization/57303
26138         * tree-ssa-sink.c (statement_sink_location): Improve killing
26139         stmt detection and properly handle self-assignments.
26140
26141 2013-05-21  Christian Bruel  <christian.bruel@st.com>
26142
26143         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
26144         spanning registers. LEAF_REG_REMAP is supported only for contiguous
26145         registers. Set register size out of the PARALLEL loop.
26146
26147 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
26148
26149         PR target/56547
26150         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
26151         (*fmasf4, *fmasf4_media): New insns.
26152
26153 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26154
26155         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
26156         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
26157         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
26158         (mips_idiv_insns): Update the comments to say that the returned
26159         instruction counts are in units of BASE_INSN_LENGTH.
26160         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
26161         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
26162         using 2 rather than 4 as the length of indirect MIPS16 and
26163         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
26164         length of a NOP.  Don't divide MIPS16 lengths by 2.
26165         (mips16_split_long_branches): Assume a branch is long if the
26166         length is greater than 4 rather than 8.
26167         * config/mips/mips.md (length): Give MIPS16 lengths directly,
26168         rather than multiplying them by 2.  Multiply instruction counts
26169         by BASE_INSN_LENGTH rather than 4.
26170         (*jump_mips16, tls_get_tp_mips16_<mode>)
26171         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
26172
26173 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26174
26175         * config/mips/mips.md (extended_mips16): Remove branch case.
26176         (length): Remove duplicated extended_mips16 test.
26177
26178 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26179
26180         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
26181
26182 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
26183
26184         * recog.h (Recog_data): Rename to...
26185         (recog_data_d): ...this.
26186         (recog_data): Update accordingly.
26187         * recog.c (recog_data): Likewise.
26188         * reload.c (save_recog_data): Likewise.
26189         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
26190         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
26191
26192 2013-05-17  Julian Brown  <julian@codesourcery.com>
26193
26194         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
26195         found in a REG_EQUAL note, invalidate it.
26196
26197 2013-05-17  Easwaran Raman  <eraman@google.com>
26198
26199         * tree-ssa-reassoc.c (find_insert_point): New function.
26200         (insert_stmt_after): Likewise.
26201         (get_def_stmt): Likewise.
26202         (ensure_ops_are_available): Likewise.
26203         (not_dominated_by): Likewise.
26204         (rewrite_expr_tree): Do not move statements beyond what is
26205         necessary. Remove call to swap_ops_for_binary_stmt...
26206         (reassociate_bb): ... and move it here.
26207         (build_and_add_sum): Assign UIDs for new statements.
26208         (linearize_expr): Likewise.
26209         (do_reassoc): Renumber gimple statement UIDs.
26210
26211 2013-05-17  Jan Hubicka  <jh@suse.cz>
26212
26213         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
26214         weakrefs.
26215         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
26216         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
26217         weakrefs.
26218         (output_weakrefs): Update.
26219
26220 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
26221             Martin Jambor  <mjambor@suse.cz>
26222
26223         PR middle-end/57276
26224         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
26225         value that corresponds to the given aggval is found in values vector.
26226
26227 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
26228
26229         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
26230         sse, sse2, sse3, ssse3 and sse4a flags to options.
26231
26232 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
26233
26234         * gengtype-state.c: (s_expr_writer): New class, to handle
26235         prettifying of output layout of s-expressions.
26236         (state_writer): New class, to write out gtype.state.
26237         (state_written_type_count): Move this variable into member data of
26238         state_writer.
26239         (s_expr_writer::s_expr_writer): New code: constructor for new class
26240         (state_writer::state_writer(): ditto
26241         (s_expr_writer::write_new_line): New function
26242         (s_expr_writer::write_any_indent): ditto
26243         (s_expr_writer::begin_s_expr): ditto
26244         (s_expr_writer::end_s_expr): ditto
26245         (write_state_fileloc): convert to method of state_writer...
26246         (state_writer:: write_state_fileloc): ...and use methods of
26247         s_expr_writer to write indentation into the gtype.state output file
26248         to visually represent the hierarchical structure of the list
26249         structures
26250         (write_state_fields): ditto, renaming to...
26251         (state_writer::write_state_fields)
26252         (write_state_a_string): ditto, renaming to...
26253         (state_writer::write_state_a_string)
26254         (write_state_string_option): ditto, renaming to...
26255         (state_writer::write_state_string_option)
26256         (write_state_type_option): ditto, renaming to...
26257         (state_writer::write_state_type_option)
26258         (write_state_nested_option): ditto, renaming to...
26259         (state_writer::write_state_nested_option)
26260         (write_state_option): ditto, renaming to...
26261         (state_writer::write_state_option)
26262         (write_state_options): ditto, renaming to...
26263         (state_writer::write_state_options)
26264         (write_state_lang_bitmap): ditto, renaming to...
26265         (state_writer::write_state_lang_bitmap)
26266         (write_state_version): ditto, renaming to...
26267         (state_writer::write_state_version)
26268         (write_state_scalar_type): ditto, renaming to...
26269         (state_writer::write_state_scalar_type)
26270         (write_state_string_type): ditto, renaming to...
26271         (state_writer::write_state_string_type)
26272         (write_state_undefined_type): ditto, renaming to...
26273         (state_writer::write_state_undefined_type)
26274         (write_state_struct_union_type): ditto, renaming to...
26275         (state_writer::write_state_struct_union_type)
26276         (write_state_struct_type): ditto, renaming to...
26277         (state_writer::write_state_struct_type)
26278         (write_state_user_struct_type): ditto, renaming to...
26279         (state_writer::write_state_user_struct_type)
26280         (write_state_lang_struct_type): ditto, renaming to...
26281         (state_writer::write_state_lang_struct_type)
26282         (write_state_param_struct_type): ditto, renaming to...
26283         (state_writer::write_state_param_struct_type)
26284         (write_state_pointer_type): ditto, renaming to...
26285         (state_writer::write_state_pointer_type)
26286         (write_state_array_type): ditto, renaming to...
26287         (state_writer::write_state_array_type)
26288         (write_state_gc_used): ditto, renaming to...
26289         (state_writer::write_state_gc_used)
26290         (write_state_common_type_content): ditto, renaming to...
26291         (state_writer::write_state_common_type_content)
26292         (write_state_type): ditto, renaming to...
26293         (state_writer::write_state_type)
26294         (write_state_pair_list): ditto, renaming to...
26295         (state_writer::write_state_pair_list)
26296         (write_state_pair): ditto, renaming to...
26297         (state_writer::write_state_pair)
26298         (write_state_typedefs): ditto, renaming to...
26299         (state_writer::write_state_typedefs)
26300         (write_state_structures): ditto, renaming to...
26301         (state_writer::write_state_structures)
26302         (write_state_param_structs): ditto, renaming to...
26303         (state_writer::write_state_param_structs)
26304         (write_state_variables): ditto, renaming to...
26305         (state_writer::write_state_variables)
26306         (write_state_srcdir): ditto, renaming to...
26307         (state_writer::write_state_srcdir)
26308         (write_state_files_list): ditto, renaming to...
26309         (state_writer::write_state_files_list)
26310         (write_state_languages): ditto, renaming to...
26311         (state_writer::write_state_languages)
26312         (write_state): create a state_writer instance and use it when
26313         writing out the state file
26314
26315 2013-05-17  Mike Stump  <mikestump@comcast.net>
26316
26317         PR rtl-optimization/57304
26318         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
26319         accessing DF_REF_REAL_LOC.
26320
26321 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26322
26323         PR rtl-optimization/57281
26324         PR rtl-optimization/57300
26325         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
26326         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
26327         what the other splitter did if the registers are dead.
26328
26329 2013-05-17  Richard Biener  <rguenther@suse.de>
26330
26331         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
26332         MEM_REF offsets.
26333
26334 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26335
26336         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
26337         linking.
26338
26339 2013-05-17  Marek Polacek  <polacek@redhat.com>
26340
26341         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
26342         length when doing non-zero store of storing '\0' to '\0'.
26343
26344 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26345
26346         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
26347         vect_external_def oprnd1 with loop_vinfo, try to emit
26348         optional cast, negation and and stmts on the loop preheader
26349         edge instead of into the pattern def seq.
26350
26351         PR tree-optimization/57051
26352         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
26353         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
26354
26355 2013-05-16  Nick Clifton  <nickc@redhat.com>
26356
26357         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
26358         (rl78_is_naked_func): New function.
26359         (rl78_expand_prologue): Skip prologue generation for naked functions.
26360         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
26361         * doc/extend.texi (naked): Add RL78 to the list of processors
26362         that supports this attribute.
26363
26364 2013-05-16  Jeff Law  <law@redhat.com>
26365
26366         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
26367
26368 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
26369
26370         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
26371         cache parameters using detect_caches_amd also for CYRIX,
26372         NSC and TM2 signatures.
26373
26374 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
26375             Dzianis Kahanovich  <mahatma@eu.by>
26376
26377         PR target/45359
26378         PR target/46396
26379         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26380         VIA/Centaur processors and determine their cache parameters
26381         using detect_caches_amd.
26382
26383 2013-05-16  Teresa Johnson  <tejohnson@google.com>
26384
26385         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
26386         (rtl_verify_edges): New function.
26387         (rtl_verify_bb_insns): Ditto.
26388         (rtl_verify_bb_pointers): Ditto.
26389         (rtl_verify_bb_insn_chain): Ditto.
26390         (rtl_verify_fallthru): Ditto.
26391         (rtl_verify_bb_layout): Ditto.
26392         (rtl_verify_flow_info_1): Outline checks into new functions.
26393         (rtl_verify_flow_info): Ditto.
26394
26395 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
26396
26397         * cfghooks.c (copy_bbs): Add update_dominance argument.
26398         * cfghooks.h (copy_bbs): Update prototype.
26399         * tree-cfg.c (gimple_duplicate_sese_region):
26400         Add update_dominance argument.
26401         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
26402         * tree-ssa-loop-ch.c (copy_loop_headers): Update
26403         gimple_duplicate_sese_region call.
26404         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
26405         Update copy_bbs call.
26406         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
26407         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
26408
26409 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
26410
26411         * tree-vectorizer.h (NUM_PATTERNS): Increment.
26412         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
26413         vect_recog_rotate_pattern.
26414         (vect_recog_rotate_pattern): New function.
26415
26416 2013-05-16  Jason Merrill  <jason@redhat.com>
26417
26418         * Makefile.in (LLINKER): New variable.
26419         (mostlyclean): Remove link mutex.
26420         * configure.ac: Handle --enable-link-mutex.
26421         * lock-and-run.sh: New script.
26422
26423 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26424
26425         PR target/19599
26426         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
26427         for NULL decl.
26428
26429 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26430
26431         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
26432
26433 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
26434
26435         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
26436         * config/arm/arm.c (next_consecutive_mem): New function.
26437         (gen_movmem_ldrd_strd): Likewise.
26438         * config/arm/arm.md (movmemqi): Update condition and code.
26439         (unaligned_loaddi, unaligned_storedi): New patterns.
26440
26441 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26442
26443         * config.gcc: Obsolete *-*-solaris2.9*.
26444         * doc/install.texi (Specific, *-*-solaris2*): Document it.
26445
26446 2013-05-16  Richard Biener  <rguenther@suse.de>
26447
26448         * passes.c (init_optimization_passes): Move pass_parallelize_loops
26449         earlier, after GRAPHITE transforms and IV canonicalization.
26450
26451 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
26452
26453         * omp-low.c (extract_omp_for_data): For collapsed loops,
26454         if at least one of the loops is known at compile time to
26455         iterate zero times, set count to 0.
26456         (expand_omp_regimplify_p): New function.
26457         (expand_omp_for_generic): For collapsed loops, if at least
26458         one of the loops isn't known to iterate at least once,
26459         add runtime check with setting count to 0.
26460         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26461         For unsigned types if it isn't known at compile time that
26462         the loop will iterate at least once, add runtime check to bypass
26463         the whole loop if initial condition isn't true.
26464
26465 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
26466
26467         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
26468
26469 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
26470
26471         PR middle-end/57286
26472         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
26473         transformations to avoid an infinite loop.
26474
26475 2013-05-16  Marek Polacek  <polacek@redhat.com>
26476
26477         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
26478
26479 2013-05-15  Leif Ekblad  <leif@rdos.net>
26480
26481         * config/i386/i386.c (ix86_decompose_address): Use
26482         DEFAULT_TLS_SEG_REG to access TLS segment register.
26483         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
26484         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
26485         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
26486
26487 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
26488
26489         PR target/57260
26490         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
26491         sibling calls to functions that would normally be lazily bound,
26492         unless $gp is call-clobbered.
26493
26494 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
26495
26496         * config/i386/i386.c (ix86_option_override_internal): Update
26497         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
26498         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
26499         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
26500         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
26501         of TARGET_3DNOW.
26502         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
26503
26504 2013-05-15  Andreas Schwab  <schwab@suse.de>
26505
26506         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
26507         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
26508         third operand.
26509
26510 2013-05-15  Teresa Johnson  <tejohnson@google.com>
26511
26512         * loop-unroll.c (report_unroll_peel): Check decision before
26513         emitting unroll/peel message.
26514
26515 2013-05-15  Teresa Johnson  <tejohnson@google.com>
26516
26517         * function.h (has_bb_partition): New rtl_data flag.
26518         (bb_reorder_complete): Ditto.
26519         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
26520         instead of flag_reorder_blocks_and_partition.
26521         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
26522         with some enhancements.
26523         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
26524         * bb-reorder.c (connect_traces): Check for has_bb_partition
26525         instead of flag_reorder_blocks_and_partition.
26526         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
26527         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
26528         verify_hot_cold_block_grouping.
26529         (partition_hot_cold_basic_blocks): Set has_bb_partition.
26530
26531 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26532
26533         PR target/19599
26534         * config/arm/predicates.md (call_insn_operand): New predicate.
26535         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
26536         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
26537         if insn is not a tail call.
26538         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
26539         registers.
26540         * config/arm/arm.h (enum reg_class): New caller save register class.
26541         (REG_CLASS_NAMES): Likewise.
26542         (REG_CLASS_CONTENTS): Likewise.
26543         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
26544         without decls.
26545
26546 2013-05-15  Richard Biener  <rguenther@suse.de>
26547
26548         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
26549         of MSG_OPTIMIZED_LOCATIONS.
26550         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
26551         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
26552         message.
26553         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
26554         of MSG_OPTIMIZED_LOCATIONS.
26555         (execute_vect_slp): Likewise.
26556         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26557         (vect_create_cond_for_alias_checks): Likewise.
26558         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
26559         (vect_recog_widen_mult_pattern): Likewise.
26560         (vect_recog_widen_sum_pattern): Likewise.
26561         (vect_recog_over_widening_pattern): Likewise.
26562         (vect_recog_widen_shift_pattern): Likewise.
26563         (vect_recog_vector_vector_shift_pattern): Likewise.
26564         (vect_recog_divmod_pattern): Likewise.
26565         (vect_recog_mixed_size_cond_pattern): Likewise.
26566         (vect_recog_bool_pattern): Likewise.
26567         (vect_pattern_recog_1): Likewise.
26568
26569 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26570
26571         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
26572         non-functions to builtin_unreachable.
26573         * ipa-inline-transform.c (inline_call): Do not assert estimates were
26574         correct when new direct edges were discovered.
26575
26576 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26577
26578         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
26579         header, print symbol order instead of node uid, print more information
26580         about indirect edge targets.
26581         (ipa_make_edge_direct_to_target): Print symbol order instead of node
26582         uids.
26583         (ipa_make_edge_direct_to_target): Likewise.
26584         (remove_described_reference): Likewise.
26585         (propagate_controlled_uses): Likewise.
26586         (ipa_print_node_params): Also print symbol order.
26587         (ipcp_transform_function): Print symbol order instead of node uids.
26588         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
26589         (cgraph_get_create_real_symbol_node): Likewise.
26590         * ipa-cp.c (print_lattice): Likewise.
26591         (print_all_lattices): Likewise.
26592         (determine_versionability): Likewise.
26593         (initialize_node_lattices): Likewise.
26594         (estimate_local_effects): Likewise.
26595         (update_profiling_info): Likewise.
26596         (create_specialized_node): Likewise.
26597         (perhaps_add_new_callers): Likewise.
26598         (decide_about_value): Likewise.
26599         (decide_whether_version_node): Likewise.
26600         (identify_dead_nodes): Likewise.
26601         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
26602         (dump_inline_summary): Likewise.
26603         (estimate_node_size_and_time): Likewise.
26604         (inline_analyze_function): Likewise.
26605         * ipa-inline.c (report_inline_failed_reason): Likewise.
26606         (want_early_inline_function_p): Likewise.
26607         (edge_badness): Likewise.
26608         (update_edge_key): Likewise.
26609         (inline_small_functions): Likewise.  Add dumping of order to two other
26610         dumps.
26611         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
26612         instead of node uids.
26613         (propagate_pure_const): Likewise.
26614         (propagate_pure_const): Likewise.
26615         * ipa-utils.c (dump_cgraph_node_set): Likewise.
26616         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
26617         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
26618         of node uids.
26619         * tree-pretty-print.c (dump_function_header): Likewise.
26620         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
26621         Print symbol order instead of node uids.
26622
26623 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26624
26625         * config/s390/s390.c (s390_register_move_cost): Don't impose the
26626         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
26627
26628 2013-05-15  Richard Biener  <rguenther@suse.de>
26629
26630         PR tree-optimization/57275
26631         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
26632         return value for fail to do runtime alias checks for gather loads.
26633
26634 2013-05-15  Jan Hubicka  <jh@suse.cz>
26635
26636         PR lto/57038
26637         PR lto/47375
26638         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
26639         weakrefs are not external.
26640         (lto_symtab_merge_decls): Fix thinko when dealing with
26641         non-lto_symtab decls.
26642         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
26643         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
26644         * varpool.c (dump_varpool_node): Dump more flags.
26645
26646 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26647
26648         * config/i386/i386.c (processor_alias_table): Add instruction
26649         FSGSBASE for AMD bdver3 architecture.
26650
26651 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26652
26653         * tree.c (warn_deprecated_use): Print file:line using locus color.
26654         * diagnostic.c (diagnostic_report_current_module): Print file:line
26655         and file:line:column using locus color.
26656
26657 2013-05-14  Mike Stump  <mikestump@comcast.net>
26658
26659         * gdbinit.in: Add __null.
26660
26661 2013-05-14  Mike Stump  <mikestump@comcast.net>
26662
26663         * recog.h: Rename struct recog_data to Recog_data.
26664         * recog.c: Likewise.
26665         * reload.c (can_reload_into): Likewise.
26666         * config/picochip/picochip.c: Likewise.
26667
26668 2013-05-14  Mike Stump  <mikestump@comcast.net>
26669
26670         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
26671
26672 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
26673
26674         * resource.h (struct resources): Remove unch_memory member.
26675         (CLEAR_RESOURCE): Don't clear unch_memory.
26676         * resource.c (mark_referenced_resources): Don't set it.
26677         (mark_set_resources): Likewise.
26678         (mark_target_live_regs): Don't clear it.
26679         (init_resource_info): Likewise.
26680         * reorg.c (resource_conflicts_p): Don't compare it.
26681         (redundant_insn): Don't set it.
26682
26683         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
26684         Remove prototypes.
26685         * emit-rtl.c (next_label): Remove unused function.
26686         (skip_consecutive_labels, link_cc0_insns): Move to ...
26687         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
26688         only place where these functions are used, and make them static.
26689
26690 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
26691
26692         * fold-const.c (fold_negate_expr): Handle vectors.
26693         (fold_truth_not_expr): Make it static.
26694         (fold_invert_truthvalue): New static function.
26695         (invert_truthvalue_loc): Handle vectors. Do not call
26696         fold_truth_not_expr directly.
26697         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
26698         <TRUTH_NOT_EXPR>: Do not cast to boolean.
26699         (fold_comparison): Handle vector constants.
26700         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
26701         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
26702         * tree.h (fold_truth_not_expr): Remove declaration.
26703
26704 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
26705
26706         * config/aarch64/aarch64-simd.md
26707         (aarch64_vcond_internal<mode>): Rename to...
26708         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
26709         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
26710         float modes. Clarify all iterator modes.
26711         (vcond<mode><mode>): Use new name for vcond expanders.
26712         (vcond<v_cmp_result><mode>): Likewise.
26713         (vcondu<mode><mode>: Likewise.
26714         * config/aarch64/iterators.md (VDQF_COND): New.
26715
26716 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
26717
26718         PR bootstrap/57266
26719         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
26720         variable for the shift amount. Check that we shift by non-negative
26721         amounts.
26722
26723 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
26724
26725         PR target/42017
26726         * config/arm/arm.h (EPILOGUE_USES): Only return true
26727         for LR_REGNUM after epilogue_completed.
26728
26729 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
26730
26731         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
26732         is error_mark_node.
26733
26734 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26735
26736         PR target/57261
26737         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
26738         and Solaris 11+/x86 with gld.
26739         * configure: Regenerate.
26740
26741 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26742
26743         * expmed.c (expand_shift_1): Canonicalize rotates by
26744         constant bitsize / 2 to bitsize - 1.
26745         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
26746         case ROTATERT>: Likewise.
26747
26748         Revert:
26749         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
26750
26751         * config/i386/i386.md (rotateinv): New code attr.
26752         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26753         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26754         roll $31, %eax, etc.
26755
26756 2013-05-14  Richard Biener  <rguenther@suse.de>
26757
26758         PR middle-end/57235
26759         * tree-eh.c (sink_clobbers): Give up for successors with
26760         multiple predecessors and no virtual uses.
26761
26762 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
26763
26764         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
26765         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
26766
26767 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26768
26769         PR middle-end/57251
26770         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
26771         the case when both op0 and op1 have VOIDmode.
26772
26773 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
26774
26775         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
26776         in multiply-accumulate mode.
26777
26778 2013-05-13  Guozhi Wei  <carrot@google.com>
26779
26780         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
26781
26782 2013-05-13  Kai Tietz  <ktietz@redhat.com>
26783
26784         PR target/56975
26785         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
26786         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
26787         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
26788         * config/i386/i386.c (ix86_option_override_internal): Likewise.
26789         (ix86_expand_prologue): Likewise.
26790         (ix86_expand_split_stack_prologue): Likewise.
26791         (legitimate_pic_address_disp_p): Likewise.
26792         (legitimize_pic_address): Likewise.
26793         (legitimize_tls_address): Likewise.
26794         (legitimize_pe_coff_symbol): Likewise.
26795         (output_pic_addr_const): Likewise.
26796         (construct_plt_address): Likewise.
26797         (ix86_expand_call): Likewise.
26798         (x86_output_mi_thunk): Likewise.
26799         (x86_function_profiler): Likewise.
26800
26801 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
26802
26803         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
26804         similar switch cases.
26805         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
26806         (aarch64_simd_mov_to_<mode>low): Delete.
26807         (aarch64_simd_mov_to_<mode>high): Delete.
26808         (move_lo_quad_<mode>): Add w<-r alternative.
26809         (aarch64_simd_move_hi_quad_<mode>): Likewise.
26810         (aarch64_simd_mov_from_*): Update type attribute.
26811         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
26812         statement.
26813
26814 2013-05-13  Jan Hubicka  <jh@suse.cz>
26815
26816         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
26817         * config/i386/i386.c (ix86_compute_frame_layout,
26818         ix86_expand_epilogue, emit_i387_cw_initialization,
26819         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
26820         ix86_local_alignment): Fix use of size/speed predicates.
26821
26822 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
26823
26824         PR tree-optimization/45216
26825         PR tree-optimization/57157
26826         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
26827         the (-Y) & (B - 1) variant if OP is |.
26828         * expmed.c (expand_shift_1): For rotations by const0_rtx just
26829         return shifted.  Use (-op1) & (prec - 1) as other_amount
26830         instead of prec - op1.
26831
26832 2013-05-13  Martin Jambor  <mjambor@suse.cz>
26833
26834         PR middle-end/42371
26835         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
26836         (ipa_constant_data): New type.
26837         (ipa_jump_func): Use ipa_constant_data to hold information about
26838         constant jump functions.
26839         (ipa_get_jf_constant): Adjust to jump function type changes.
26840         (ipa_get_jf_constant_rdesc): New function.
26841         (ipa_param_descriptor): New field controlled_uses.
26842         (ipa_get_controlled_uses): New function.
26843         (ipa_set_controlled_uses): Likewise.
26844         * ipa-ref.h (ipa_find_reference): Declare.
26845         * ipa-prop.c (ipa_cst_ref_desc): New type.
26846         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
26847         changes.
26848         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
26849         New parameter cs.  Adjust all callers.
26850         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
26851         (remove_described_reference): New function.
26852         (jfunc_rdesc_usable): Likewise.
26853         (try_make_edge_direct_simple_call): Decrement controlled use count,
26854         attempt to remove reference if it hits zero.
26855         (combine_controlled_uses_counters): New function.
26856         (propagate_controlled_uses): Likewise.
26857         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
26858         (ipa_edge_duplication_hook): Duplicate reference descriptions.
26859         (ipa_print_node_params): Print described use counter.
26860         (ipa_write_jump_function): Adjust to jump function type changes.
26861         (ipa_read_jump_function): New parameter CS, pass it to
26862         ipa_set_jf_constant.  Adjust caller.
26863         (ipa_write_node_info): Stream controlled use count
26864         (ipa_read_node_info): Likewise.
26865         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
26866         asserting.
26867         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
26868         count.  Remove cloning-added reference if it reaches zero.
26869         * ipa-ref.c (ipa_find_reference): New function.
26870
26871 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26872
26873         * config/i386/i386.c (processor_target_table): Modified default
26874         alignment values for AMD BD and BT architectures.
26875
26876 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
26877
26878         * tree-vect-generic.c (uniform_vector_p): Move ...
26879         * tree.c (uniform_vector_p): ... here.
26880         * tree.h (uniform_vector_p): Declare it.
26881         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
26882         into a scalar.
26883
26884 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
26885
26886         PR tree-optimization/57230
26887         * tree-ssa-strlen.c (handle_char_store): Record length for
26888         array store from STRING_CST.
26889
26890         PR tree-optimization/57230
26891         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
26892         check.
26893
26894 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
26895
26896         * config/epiphany/epiphany.c (epiphany_init): Check size of
26897         NUM_MODES_FOR_MODE_SWITCHING.
26898         (epiphany_expand_prologue):
26899         Remove CONFIG_REGNUM initial value handling code.
26900         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
26901         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
26902         (emit_set_fp_mode, epiphany_mode_after): Likewise.
26903         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
26904         Don't return 1 for FP_MODE_NONE.
26905         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
26906         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
26907         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
26908         * config/epiphany/epiphany.md (save_config): New pattern.
26909
26910 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
26911
26912         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
26913
26914 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
26915
26916         * config/i386/i386.md (memory): Handle sseishft1.
26917         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
26918         (*vec_extractv2di_1): Ditto.
26919
26920 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
26921
26922         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
26923         saved registers.
26924
26925 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26926
26927         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
26928         Add mthumb/march=armv7-a multilib.
26929         Add mthumb/march=armv7-r multilib.
26930         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
26931
26932 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
26933
26934         * config/v850/t-rtems: Add more multilibs.
26935
26936 2013-05-10  Richard Biener  <rguenther@suse.de>
26937
26938         PR tree-optimization/57214
26939         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
26940         not propagate from SSA names that occur in abnormal PHI nodes.
26941
26942 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
26943
26944         * stor-layout.c (element_precision): New function.
26945         * machmode.h (element_precision): Declare it.
26946         * tree.c (build_minus_one_cst): New function.
26947         (element_precision): Likewise.
26948         * tree.h (build_minus_one_cst): Declare new function.
26949         (element_precision): Likewise.
26950         * fold-const.c (operand_equal_p): Use element_precision.
26951         (fold_binary_loc): Handle vector types.
26952         * convert.c (convert_to_integer): Use element_precision.
26953         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
26954         separately.
26955
26956 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
26957
26958         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
26959         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
26960         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
26961         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26962         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
26963         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
26964         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
26965         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26966         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
26967         (Uuw8): New constraints.
26968         (Usb4): Move into alphabetical order.
26969         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
26970         (sd8_operand, ub8_operand, uw8_operand): New predicates.
26971         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
26972         previously unnamed patterns.
26973         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
26974         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
26975         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
26976         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
26977         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
26978         of specific lengths.
26979
26980 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
26981
26982         * config/i386/i386.md (rotateinv): New code attr.
26983         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26984         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26985         roll $31, %eax, etc.
26986
26987         PR tree-optimization/45216
26988         PR tree-optimization/57157
26989         * tree-ssa-forwprop.c (simplify_rotate): New function.
26990         (ssa_forward_propagate_and_combine): Call it.
26991
26992 2013-05-10  Richard Biener  <rguenther@suse.de>
26993
26994         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
26995         disable peeling when we version for aliasing.
26996         (vector_alignment_reachable_p): Honor explicit user alignment.
26997         (vect_supportable_dr_alignment): Likewise.
26998         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
26999         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
27000         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
27001         then peeling to arrange for the cost-model check to come first.
27002
27003 2013-05-10  Alan Modra  <amodra@gmail.com>
27004
27005         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
27006         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
27007         * configure: Regenerate.
27008
27009 2013-05-10  Alan Modra  <amodra@gmail.com>
27010
27011         PR target/55033
27012         * varasm.c (default_elf_select_section): Move !DECL_P check..
27013         (get_named_section): ..to here before calling get_section_name.
27014         Adjust assertion.
27015         (default_section_type_flags): Add DECL_P check.
27016         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
27017         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
27018
27019 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
27020
27021         * config/epiphany/epiphany.c (epiphany_expand_prologue):
27022         When using gen_stack_adjust_str with a register offset, add a
27023         REG_FRAME_RELATED_EXPR note.
27024
27025 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
27026
27027         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
27028         (*vec_extractv4si_zext_mem): Ditto.
27029         (*vec_extractv2di): Add 0->x and x->x alternatives.
27030         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
27031         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
27032
27033 2013-05-09  Jason Merrill  <jason@redhat.com>
27034
27035         N3639 C++1y VLA support
27036         * gimplify.c (gimplify_vla_decl): Don't touch an existing
27037         DECL_VALUE_EXPR.
27038
27039         * tree.c (build_constructor_va): New.
27040         * tree.h: Declare it.
27041
27042 2013-05-09  Martin Jambor  <mjambor@suse.cz>
27043
27044         PR lto/57084
27045         * gimple-fold.c (canonicalize_constructor_val): Call
27046         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
27047
27048 2013-05-09  Jan Hubicka  <jh@suse.cz>
27049             Richard Biener  <rguenther@suse.de>
27050
27051         PR lto/54095
27052         * symtab.c (symtab_make_decl_local): Do not add private names.
27053
27054 2013-05-09  Jan Hubicka  <jh@suse.cz>
27055
27056         PR lto/54095
27057         * symtab.c (insert_to_assembler_name_hash): Handle clones.
27058         (unlink_from_assembler_name_hash): Likewise.
27059         (symtab_prevail_in_asm_name_hash, symtab_register_node,
27060         symtab_unregister_node, symtab_initialize_asm_name_hash,
27061         change_decl_assembler_name): Update.
27062
27063 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
27064
27065         * config/aarch64/aarch64.md: New movtf split.
27066         (*movtf_aarch64): Update.
27067         (aarch64_movdi_tilow): Handle TF modes and rename to
27068         aarch64_movdi_<mode>low.
27069         (aarch64_movdi_tihigh): Handle TF modes and rename to
27070         aarch64_movdi_<mode>high
27071         (aarch64_movtihigh_di): Handle TF modes and rename to
27072         aarch64_mov<mode>high_di
27073         (aarch64_movtilow_di): Handle TF modes and rename to
27074         aarch64_mov<mode>low_di
27075         (aarch64_movtilow_tilow): Remove spurious whitespace.
27076         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
27077         splits.
27078         (aarch64_print_operand): Update.
27079
27080 2013-05-09  Alan Modra  <amodra@gmail.com>
27081
27082         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
27083         powerpc64le.
27084         * configure: Regenerate.
27085
27086 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
27087
27088         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
27089         splitter preparation statements.
27090         * config/i386/sse.md (*vec_extract* splitters): Ditto.
27091         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
27092         adjust_address_nv.
27093
27094 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27095
27096         * gimple-ssa-strength-reduction.c (count_candidates): Change
27097         return value to int.
27098         (analyze_candidates_and_replace): Change type of length to int.
27099
27100 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
27101
27102         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
27103         (*vec_extract<mode>): Use VI12_128 mode iterator.
27104         (*vec_extract<mode>_mem): Ditto.
27105         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
27106         attribute.
27107
27108 2013-05-08  Diego Novillo  <dnovillo@google.com>
27109
27110         PR bootstrap/54659
27111
27112         Revert:
27113         2012-08-17  Diego Novillo  <dnovillo@google.com>
27114
27115         PR bootstrap/54281
27116         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
27117         * config.in: Regenerate.
27118         * configure: Regenerate.
27119         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
27120
27121 2013-05-08  Jan Hubicka  <jh@suse.cz>
27122
27123         PR lto/54095
27124         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
27125         * cgraph.h (symtab_node_base): Add unique_name.
27126         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27127         input_overwrite_node, input_varpool_node): Stream unique_name.
27128         * cgraphclones.c (cgraph_create_virtual_clone,
27129         cgraph_function_versioning): Set unique_name.
27130         * ipa.c (function_and_variable_visibility): Set unique_name.
27131
27132 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27133
27134         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
27135         (alloc_cand_and_find_basis): Restrict conditional candidate
27136         processing to CAND_MULTs.
27137
27138 2013-05-08  Jan Hubicka  <jh@suse.cz>
27139
27140         PR lto/54095
27141         lto-symtab.c (lto_symtab_symbol_p): New function.
27142         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
27143         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
27144         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
27145         Skip static symbols.
27146
27147 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
27148
27149         PR tree-optimization/57200
27150         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
27151         Only call inform if the preceding warning_at returns true.
27152
27153 2013-05-07  Han Shen  <shenhan@google.com>
27154
27155         * cfgexpand.c (record_or_union_type_has_array_p): New function.
27156         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
27157         * common.opt (fstack-protector-strong): New option.
27158         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
27159         * doc/invoke.texi (Optimization Options): Document
27160         "-fstack-protector-strong".
27161         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
27162
27163 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
27164
27165         * config/mips/mips.c (mips_machine_reorg2): Return 0.
27166
27167 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
27168
27169         * ira.c (update_equiv_regs): Add insn having equiv memory even if
27170         it is not lhs of the insn.
27171         (setup_reg_equiv): Remove insn having equiv memory which it is not
27172         lhs of the insn.
27173         * lra-constraints.c (process_address): Try to improve generation
27174         code for address base + disp.
27175         (lra_constraints): Make correct the code for checking insn setting
27176         up backward equivalence.  Remove insn only if it is in the init
27177         insn list.
27178         * lra-eliminations.c (update_reg_eliminate): Change return value.
27179         (lra_eliminate): Use the result.
27180
27181 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
27182
27183         * config/i386/sse.md (ssescalarnummask): New mode attribute.
27184         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
27185         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
27186         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
27187         register target operands.
27188         (*vec_extractv8hi_sse2): New pattern.
27189         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
27190         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
27191         (*vec_extract<mode>_mem): New insn and split pattern.
27192
27193 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
27194
27195         * config/arm/arm.c (arm_asan_shadow_offset): New function.
27196         (TARGET_ASAN_SHADOW_OFFSET): Define.
27197         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
27198         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
27199
27200 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27201
27202         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
27203         (incr_vec_index): Return -1 if increment not found.
27204         (create_add_on_incoming_edge): Assert if increment not found.
27205         (record_increment): Limit number of increments recorded.
27206         (all_phi_incrs_profitable): Return false if an increment not found.
27207         (replace_profitable_candidates): Don't process increments that were
27208         not recorded.
27209         (analyze_candidates_and_replace): Limit size of incr_vec.
27210
27211 2013-05-07  Richard Biener  <rguenther@suse.de>
27212
27213         * calls.c (special_function_p): setjmp-like functions are leaf.
27214         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
27215         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
27216
27217 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
27218
27219         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
27220         (aarch64_simd_mov<mode>): New expander.
27221         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
27222         (aarch64_simd_mov_to_<mode>high): Likewise.
27223         (aarch64_simd_mov_from_<mode>low): Likewise.
27224         (aarch64_simd_mov_from_<mode>high): Likewise.
27225         (aarch64_dup_lane<mode>): Update.
27226         (aarch64_dup_lanedi): New instruction pattern.
27227         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
27228         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
27229
27230 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27231
27232         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
27233         (replace_mult_candidate): Remove unnecessary argument; remove
27234         unnecessary parameter from call to introduce_cast_before_cand.
27235         (replace_unconditional_candidate): Remove unnecessary parameter
27236         from call to replace_mult_candidate.
27237         (replace_conditional_candidate): Likewise.
27238         (insert_initializers): Use make_temp_ssa_name.
27239         (introduce_cast_before_cand): Remove unnecessary argument; use
27240         make_temp_ssa_name.
27241         (replace_one_candidate): Remove unnecessary argument; remove
27242         unnecessary parameter from calls to introduce_cast_before_cand.
27243         (replace_profitable_candidates): Remove unnecessary parameters
27244         from calls to replace_one_candidate.
27245
27246 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27247
27248         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
27249         phi def as possibly hiding a basis for a CAND_ADD whose operands
27250         have been commuted in the analysis.
27251         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
27252
27253 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27254
27255         * config/aarch64/aarch64.md
27256         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
27257         shift value between 0-4.
27258
27259 2013-05-07  Richard Biener  <rguenther@suse.de>
27260
27261         * double-int.h (rshift): New overload.
27262         * double-int.c (rshift): New function.
27263         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
27264         (create_reference_ops_from_ref): Remove.
27265         (vn_reference_insert): Use shared ops for constructing the
27266         reference and copy it.
27267
27268 2013-05-07  Richard Biener  <rguenther@suse.de>
27269
27270         PR middle-end/57190
27271         * tree-eh.c (sink_clobbers): Properly propagate
27272         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
27273
27274 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
27275
27276         PR tree-optimization/57149
27277         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
27278         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
27279         collect_phi_def_edges, execute_late_warn_uninitialized): Use
27280         uninit_undefined_value_p instead of ssa_undefined_value_p.
27281
27282         PR debug/57184
27283         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
27284         for modifier == EXPAND_INITIALIZER.
27285
27286 2013-05-07  Anton Blanchard  <anton@samba.org>
27287
27288         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
27289         for powerpc64 little endian.
27290         * configure: Regenerate.
27291
27292 2013-05-06  Graham Stott  <grahams@btinternet.com>
27293
27294         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
27295         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
27296         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
27297         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
27298
27299 2013-05-06  Graham Stott  <grahams@btinternet.com>
27300
27301         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
27302         codes which allow non-lvalues.
27303
27304 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
27305
27306         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
27307         components are all 1s.
27308         (integer_minus_onep): New function.
27309         * tree.h (integer_minus_onep): Declare it.
27310         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
27311         integer_minus_onep instead of integer_all_onesp.
27312
27313 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27314
27315         PR target/52933
27316         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
27317         variations of these patterns.
27318
27319 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
27320
27321         * config/i386/i386.md (isa): Add x64_sse4 member.
27322         (enabled): Handle x64_sse4.
27323         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
27324         instruction for 64bit SSE4_1 targets.  Update insn attributes.
27325         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
27326         instruction for SSE4_1 targets.  Update insn attributes.
27327         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27328         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
27329         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
27330         const_1 selector.
27331         (*vec_extractv4si): Rename from *sse4_1_pextrd.
27332         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
27333         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
27334
27335 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27336
27337         PR target/57108
27338         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
27339
27340 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
27341
27342         * final.c (do_assembler_dialects): Don't handle curly braces and
27343         vertical bar escaped by % as dialect delimiters.
27344         (output_asm_insn): Print curly braces and vertical bar if escaped
27345         by % and ASSEMBLER_DIALECT defined.
27346         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
27347         * doc/tm.texi: Regenerated.
27348
27349 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
27350
27351         * config/mips/mips.c: Include tree-pass.h.
27352         (mips_reorg): Split in pre- and post-dbr_schedule parts.
27353         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
27354         (pass_mips_machine_reorg2): New machine specific pass.
27355         (insert_pass_mips_machine_reorg2): New pass plugin definition.
27356         (mips_option_override): Register the new pass.
27357         * rtl.h (cleanup_barriers): Remove prototype.
27358         (dbr_schedule): Likewise.
27359         * jump.c (cleanup_barriers): Make static.
27360         * reorg.c (dbr_schedule): Likewise.
27361
27362 2013-05-06  Richard Biener  <rguenther@suse.de>
27363
27364         PR tree-optimization/57185
27365         * tree-parloops.c (add_field_for_reduction): Handle anonymous
27366         SSA names properly.
27367
27368 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
27369
27370         PR target/57106
27371         * config/i386/i386.c (add_parameter_dependencies): Add dependence
27372         between "first_arg" and "insn", not "last" and "insn".
27373
27374 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27375
27376         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
27377         (find_candidates_in_block): Re-enable slsr_process_phi.
27378         (create_phi_basis): Fix double counting of candidate adjustment.
27379
27380 2013-05-06  Richard Biener  <rguenther@suse.de>
27381
27382         PR middle-end/57147
27383         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
27384         the edge is also fallthru, preserve it and just clear the
27385         abnormal flag.
27386         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
27387         also complex, preserve that and just clear the fallthru flag.
27388         * tree-inline.c (update_ssa_across_abnormal_edges): Also
27389         update virtual operands.
27390
27391 2013-05-06  Alan Modra  <amodra@gmail.com>
27392
27393         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
27394         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
27395         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
27396         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
27397         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27398         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
27399
27400 2013-05-06  Alan Modra  <amodra@gmail.com>
27401
27402         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
27403         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
27404         (DEFAULT_ASM_ENDIAN): Define.
27405         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27406         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
27407         Update -K PIC clause from sysv4.h.
27408         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
27409         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
27410
27411 2013-05-06  Alan Modra  <amodra@gmail.com>
27412
27413         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
27414         twice for little-endian.
27415         (ashrdi3_no_power, ashrdi3): Support little-endian.
27416
27417 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27418
27419         PR target/55303
27420         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
27421         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
27422         related expanders.
27423         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
27424         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
27425         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
27426         New predicates.
27427
27428 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
27429             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27430
27431         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
27432         * config/pa/pa.opt: Make mbig-switch a no-op.
27433         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
27434         (CASE_VECTOR_MODE): Always return SImode.
27435         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
27436         for the !TARGET_BIG_SWITCH case.
27437         * config/pa/pa-linux.h: Likewise.
27438         * config/pa/pa-openbsd.h: Likewise.
27439         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
27440         * config/pa/pa.md (short_jump): Remove define_insn.
27441         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
27442         (casesi0): Remove define_insn.
27443         (type): Remove btable_branch.
27444         (pa_combine_type): Likewise.
27445         (in_nullified_branch_delay): Likewise.
27446         (in_call_delay): Likewise.
27447         (define_delay): Likewise.
27448         (define_insn_reservation "Z3"): Likewise.
27449         (define_insn_reservation "Z4"): Likewise.
27450         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
27451         (pa_adjust_insn_length): Remove adjustment for btable branches.
27452         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
27453         and mno-big-switch
27454
27455 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
27456
27457         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27458         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
27459         Add m->r,x alternatives.
27460         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
27461         splitters using SWI48x mode iterator.
27462         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
27463         TARGET_64BIT.  Add m->x alternative.
27464         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
27465         Add o->x alternative.  Enable for TARGET_SSE.
27466         (sse_storeq): Remove expander.
27467         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
27468         with memory input operand.
27469         (*vec_extractv2di_1 splitter): New.
27470         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
27471         * config/i386/i386.md (ssevecmodelower): New mode attribute.
27472
27473 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
27474
27475         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
27476         (INT_LOWPART): Delete.
27477         (extract_MB): Adjust.
27478         (extract_ME): Adjust.
27479         (print_operand): Adjust.
27480
27481 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
27482
27483         * config/rs6000/predicates.md (reg_or_add_cint_operand,
27484         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27485         (reg_or_logical_cint_operand, easy_fp_constant,
27486         logical_const_operand): Delete "CONST_DOUBLE" case.
27487         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
27488         "HOST_BITS_PER_WIDE_INT == 64" test.
27489         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
27490         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
27491         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
27492         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
27493         test.
27494         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
27495         CONST_DOUBLE DImode/VOIDmode case.
27496         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
27497         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
27498         CONST_DOUBLE VOIDmode case.
27499         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27500         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
27501         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
27502         Delete CONST_DOUBLE case.
27503         (splitters for mov FMOVE64 const_double): Delete
27504         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
27505         "HOST_BITS_PER_WIDE_INT >= 64" test.
27506         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
27507         case.
27508         (mov DI const_double): Delete.
27509
27510 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
27511
27512         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
27513         on op shows all bits zero in mode of a lowpart subreg, return zero.
27514
27515 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
27516
27517         PR target/57150
27518         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
27519         to save TFmode registers and DImode to save TImode registers for
27520         caller save operations.
27521         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
27522         mark being partially clobbered since they only use the first
27523         double word.
27524
27525         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
27526         and TDmode only use the upper 64-bits of each VSX register.
27527
27528 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27529
27530         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
27531         (find_candidates_in_block): Disable slsr_process_phi.
27532
27533 2013-05-03  Guozhi Wei  <carrot@google.com>
27534
27535         * coverage.c (coverage_obj_init): Move the construction of gcov
27536         constructor to ...
27537         (build_init_ctor): ... here.
27538
27539 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27540
27541         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
27542         (slsr_cand_d): Redefine def_phi.
27543         (stride_status, phi_adjust_status, count_phis_status): New enums.
27544         (find_phi_def): New.
27545         (find_basis_for_base_expr): New.
27546         (find_basis_for_candidate): Handle hidden bases.
27547         (alloc_cand_and_find_basis): Handle phi candidates.
27548         (slsr_process_phi): New.
27549         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
27550         (create_mul_imm_cand): Likewise.
27551         (create_add_ssa_cand): Exclude phi base candidates.
27552         (create_add_imm_cand): Likewise.
27553         (slsr_process_cast): Likewise.
27554         (slsr_process_copy): Likewise.
27555         (find_candidates_in_block): Handle phi candidates.
27556         (dump_candidate): Likewise.
27557         (unconditional_cands): Delete.
27558         (unconditional_cands_with_known_stride_p): Delete.
27559         (phi_dependent_cand_p): New.
27560         (cand_increment): Handle phi-dependent candidates.
27561         (replace_dependent): Delete.
27562         (replace_mult_candidate): New.
27563         (replace_unconditional_candidate): New.
27564         (incr_vec_index): Move to avoid forward reference.
27565         (create_add_on_incoming_edge): New.
27566         (create_phi_basis): New.
27567         (replace_dependents): Delete.
27568         (replace_conditional_candidate): New.
27569         (phi_add_costs): New.
27570         (replace_uncond_cands_and_profitable_phis): New.
27571         (record_increment): Handle phi adjustments.
27572         (record_phi_increments): New.
27573         (record_increments): Handle phi adjustments.
27574         (phi_incr_cost): New.
27575         (lowest_cost_path): Handle phis.
27576         (total_savings): Likewise.
27577         (analyze_increments): Likewise.
27578         (ncd_with_phi): New.
27579         (ncd_of_cand_and_phis): New.
27580         (nearest_common_dominator_for_cands): Handle phi increments.
27581         (all_phi_incrs_profitable): New.
27582         (replace_profitable_candidates): Handle phi-dependent candidates.
27583         (analyze_candidates_and_replace): Likewise.
27584
27585 2013-05-03  Teresa Johnson  <tejohnson@google.com>
27586
27587         PR bootstrap/57154
27588         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
27589         do not exceed REG_BR_PROB_BASE.
27590
27591 2013-05-03  Jeff Law  <law@redhat.com>
27592
27593         PR tree-optimization/57144
27594         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
27595         operand of the condition will bit into the new type when eliminating
27596         a cast feeding a condition.
27597
27598 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
27599
27600         PR rtl-optimization/57130
27601         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
27602         of COMPARE as in_code to the recursive call if needed.
27603
27604 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
27605
27606         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
27607         (enabled): Handle new members.
27608         * config/i386/sse.md (*vec_concatv2si): Merge from
27609         *vec_concatv2si_sse2 and vec_concatv2si_sse.
27610         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
27611
27612 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
27613
27614         PR tree-optimization/57027
27615         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
27616         for fnms opportunity, check we got the prerequisite kind
27617         of tree / gimple before using accessor functions.
27618
27619 2013-05-03  Richard Biener  <rguenther@suse.de>
27620
27621         * double-int.h (lshift): New overload without precision
27622         and arith argument.
27623         (operator *=, operator +=, operator -=): Move ...
27624         * double-int.c (operator *=, operator +=, operator -=): ... here
27625         and implement more efficiently.
27626         (mul_double_with_sign): Remove.
27627         (lshift_double): Adjust to take unsinged shift argument, push
27628         dispatching code to callers.
27629         (mul_double_wide_with_sign): Add early out for callers that
27630         are not interested in high parts or overflow.
27631         (lshift): New function.
27632         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
27633         dispatch code here.
27634         (lrotate, rrotate): Use logical shifts.
27635         * expr.c (get_inner_reference): Use lshift.
27636         * fixed-value.c (do_fixed_divide): Likewise.
27637         * tree-dfa.c (get_ref_base_and_extent): Likewise.
27638         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27639         (indirect_refs_may_alias_p): Likewise.
27640         (stmt_kills_ref_p_1): Likewise.
27641
27642 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
27643
27644         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
27645
27646 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
27647
27648         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
27649         scalar form of FABD instruction.
27650
27651 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
27652
27653         * lra-constraints.c (process_alt_operands): Add checking alt
27654         number to choose the best alternative.
27655
27656 2013-05-02  Richard Biener  <rguenther@suse.de>
27657
27658         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
27659         bitmap and its handling.
27660         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
27661
27662 2013-05-02  Richard Biener  <rguenther@suse.de>
27663
27664         PR middle-end/57140
27665         * tree-inline.c (copy_loops): Properly handle removed loops.
27666         (copy_cfg_body): Mark destination loops for fixup if source
27667         loops needed fixup.
27668
27669 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
27670
27671         PR target/56732
27672         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
27673         generating simple_return for naked functions.
27674
27675 2013-05-02  Martin Jambor  <mjambor@suse.cz>
27676
27677         PR middle-end/56988
27678         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
27679         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
27680         flags match.
27681         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
27682         ipa_agg_replacement_value structures.
27683         (known_aggs_to_agg_replacement_list): Likewise.
27684         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
27685         (read_agg_replacement_chain): Likewise.
27686         (ipcp_transform_function): Also check that by_ref flags match.
27687
27688 2013-05-02  Richard Biener  <rguenther@suse.de>
27689
27690         * graphds.h (struct graph): Add obstack member.
27691         * graphds.c (new_graph): Initialize obstack and allocate
27692         vertices from it.
27693         (add_edge): Allocate edge from the obstack.
27694         (free_graph): Free the obstack instead of all edges and vertices.
27695
27696 2013-05-02  Teresa Johnson  <tejohnson@google.com>
27697
27698         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
27699         divides.
27700         * cfg.c (update_bb_profile_for_threading): Ditto.
27701         * tree-inline.c (copy_bb): Ditto.
27702         (copy_edges_for_bb): Ditto.
27703         (initialize_cfun): Ditto.
27704         (copy_cfg_body): Ditto.
27705         (expand_call_inline): Ditto.
27706         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
27707         (estimate_node_size_and_time): Ditto.
27708         (inline_merge_summary): Ditto.
27709         * cgraphclones.c (cgraph_clone_edge): Ditto.
27710         (cgraph_clone_node): Ditto.
27711         * sched-rgn.c (compute_dom_prob_ps): Ditto.
27712         (compute_trg_info): Ditto.
27713
27714 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
27715
27716         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
27717         S reg when fp attribute set.
27718         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
27719
27720 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
27721
27722         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
27723         New pattern.
27724         (*and_one_cmplsi3_compare0_uxtw): Likewise.
27725         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
27726         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
27727
27728 2013-05-02  Richard Biener  <rguenther@suse.de>
27729
27730         * tree-scalar-evolution.c (scev_info_hasher): Remove.
27731         (struct instantiate_cache_entry): New type.
27732         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
27733         (struct instantiate_cache_type): New type.
27734         (set_instantiated_value, get_instantiated_value): Remove.
27735         (get_instantiated_value_entry): New function.
27736         (instantiate_scev_name): Use the new cache and adjust.
27737         (instantiate_scev_poly): Adjust.
27738         (instantiate_scev_binary): Likewise.
27739         (instantiate_array_ref): Likewise.
27740         (instantiate_scev_convert): Likewise.
27741         (instantiate_scev_not): Likewise.
27742         (instantiate_scev_3): Likewise.
27743         (instantiate_scev_2): Likewise.
27744         (instantiate_scev_r): Likewise.
27745         (instantiate_scev): Likewise.
27746         (resolve_mixers): Likewise.
27747
27748 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
27749
27750         PR target/57091
27751         * lra-constraints.c (best_small_class_operands_num): Remove.
27752         (process_alt_operands): Remove small_class_operands_num.  Take
27753         small classes operands into losers and only if the operand is not
27754         matched.  Modify debugging output.
27755         (curr_insn_transform): Remove best_small_class_operands_num.
27756         Print insn name.
27757
27758 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27759
27760         * config/aarch64/aarch64-builtins.c
27761         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
27762         * config/aarch64/aarch64-simd-builtins.def
27763         (reduc_splus_): Add new modes.
27764         (reduc_uplus_): New.
27765         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
27766         (reduc_uplus_v4sf): Likewise.
27767         (reduc_splus_v4sf): Likewise.
27768         (aarch64_addv<mode>): Likewise.
27769         (reduc_uplus_<mode>): Likewise.
27770         (reduc_splus_<mode>): Likewise.
27771         (aarch64_addvv2di): Likewise.
27772         (reduc_uplus_v2di): Likewise.
27773         (reduc_splus_v2di): Likewise.
27774         (aarch64_addvv2si): Likewise.
27775         (reduc_uplus_v2si): Likewise.
27776         (reduc_splus_v2si): Likewise.
27777         (reduc_<sur>plus_<mode>): New.
27778         (reduc_<sur>plus_v2di): Likewise.
27779         (reduc_<sur>plus_v2si): Likewise.
27780         (reduc_<sur>plus_v4sf): Likewise.
27781         (aarch64_addpv4sf): Likewise.
27782         * config/aarch64/arm_neon.h
27783         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
27784         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
27785         add UNSPEC_SADDV, UNSPEC_UADDV.
27786         (SUADDV): New.
27787         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
27788
27789 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27790
27791         * config/aarch64/arm_neon.h
27792         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
27793
27794 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27795
27796         * config/aarch64/aarch64-builtins
27797         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
27798
27799 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27800
27801         * config/aarch64/aarch64-simd-builtins.def
27802         (reduc_smax_): New.
27803         (reduc_smin_): Likewise.
27804         (reduc_umax_): Likewise.
27805         (reduc_umin_): Likewise.
27806         (reduc_smax_nan_): Likewise.
27807         (reduc_smin_nan_): Likewise.
27808         (fmax): Remove.
27809         (fmin): Likewise.
27810         (smax): Update for V2SF, V4SF and V2DF modes.
27811         (smin): Likewise.
27812         (smax_nan): New.
27813         (smin_nan): Likewise.
27814         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
27815         (<su><maxmin><mode>3): ...This, refactor.
27816         (s<maxmin><mode>3): New.
27817         (<maxmin_uns><mode>3): Likewise.
27818         (reduc_<maxmin_uns>_<mode>): Refactor.
27819         (reduc_<maxmin_uns>_v4sf): Likewise.
27820         (reduc_<maxmin_uns>_v2si): Likewise.
27821         (aarch64_<fmaxmin><mode>: Remove.
27822         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
27823         new builtin names.
27824         (vmin<q>_f<32,64>): Likewise.
27825         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27826         (FMAXMIN): New.
27827         (su): Add mappings for smax, smin, umax, umin.
27828         (maxmin): New.
27829         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27830         (FMAXMIN): Rename as...
27831         (FMAXMIN_UNS): ...This.
27832         (maxminv): Remove.
27833         (fmaxminv): Likewise.
27834         (fmaxmin): Likewise.
27835         (maxmin_uns): New.
27836         (maxmin_uns_op): Likewise.
27837
27838 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27839
27840         * config/aarch64/arm_neon.h
27841         (vac<ge, gt><sd>_f<32, 64>): Rename to...
27842         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
27843         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
27844
27845 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27846
27847         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
27848         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
27849
27850 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27851
27852         * config/aarch64/aarch64-simd.md
27853         (vcond<mode>_internal): Handle special cases for constant masks.
27854         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
27855         (vcondu<mode><mode>): Likewise.
27856         (vcond<v_cmp_result><mode>): New.
27857
27858 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27859
27860         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
27861         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
27862         * config/aarch64/aarch64-simd-builtins.def
27863         (cmeq): Update to BUILTIN_VALLDI.
27864         (cmgt): Likewise.
27865         (cmge): Likewise.
27866         (cmle): Likewise.
27867         (cmlt): Likewise.
27868         * config/aarch64/arm_neon.h
27869         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
27870         to builtins or C as appropriate.
27871
27872 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27873
27874         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
27875         (cmgeu): ...This.
27876         (cmhi): Rename to...
27877         (cmgtu): ...This.
27878         * config/aarch64/aarch64-simd.md
27879         (simd_mode): Add SF.
27880         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
27881         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
27882         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
27883         (cstore<mode>_neg): ...This.
27884         * config/aarch64/iterators.md
27885         (VALLF): new.
27886         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
27887         (COMPARISONS): New.
27888         (UCOMPARISONS): Likewise.
27889         (optab): Add missing comparisons.
27890         (n_optab): New.
27891         (cmp_1): Likewise.
27892         (cmp_2): Likewise.
27893         (CMP): Likewise.
27894         (cmp): Remove.
27895         (VCMP_S): Likewise.
27896         (VCMP_U): Likewise.
27897         (V_cmp_result): Add DF, SF modes.
27898         (v_cmp_result): Likewise.
27899         (v): Likewise.
27900         (vmtype): Likewise.
27901         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
27902
27903 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
27904
27905         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
27906         define_insn to define_insn_and_split.
27907         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
27908         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
27909         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
27910         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
27911         (thumb2_negscc): Likewise.
27912
27913 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
27914
27915         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
27916
27917 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
27918
27919         * config/arm/thumb2.md: Remove trailing whitespaces.
27920
27921 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27922
27923         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
27924         Use gen_int_mode rather than GEN_INT.
27925
27926 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
27927
27928         * value-prof.c (stream_in_histogram_value): Remove the strayed
27929         debug_gimple_stmt.
27930
27931 2013-04-30  Richard Biener  <rguenther@suse.de>
27932
27933         PR middle-end/57122
27934         * cfghooks.c (split_edge): Properly check for the loop latch edge.
27935
27936 2013-04-30  Richard Biener  <rguenther@suse.de>
27937
27938         PR middle-end/57107
27939         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
27940
27941 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
27942
27943         PR rtl-optimization/56957
27944         PR rtl-optimization/57105
27945         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
27946         variable.  Use just INSN_UID for determining whether an insn
27947         should be only disconnected from the insn stream.
27948         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
27949
27950 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
27951
27952         PR tree-optimization/57104
27953         * tsan.c (instrument_expr): Don't instrument accesses to
27954         DECL_HARD_REGISTER VAR_DECLs.
27955
27956 2013-04-30  Richard Biener  <rguenther@suse.de>
27957
27958         * function.h (loops_for_fn): New inline function.
27959         (set_loops_for_fn): Likewise.
27960         * cfgloop.h (place_new_loop): Add struct function parameter.
27961         (get_loop): Likewise.
27962         (get_loops): Likewise.
27963         (number_of_loops): Likewise.
27964         (fel_next): Adjust.
27965         (fel_init): Likewise.
27966         * cfg.c (get_loop_copy): Adjust.
27967         * cfgloop.c (flow_loops_dump): Likewise.
27968         (record_loop_exits): Likewise.
27969         (verify_loop_structure): Likewise.
27970         * cfgloopanal.c (mark_irreducible_loops): Likewise.
27971         (estimate_reg_pressure_cost): Likewise.
27972         (mark_loop_exit_edges): Likewise.
27973         * cfgloopmanip.c (place_new_loop): Likewise.
27974         (add_loop): Likewise.
27975         (duplicate_loop): Likewise.
27976         * graph.c (draw_cfg_nodes): Likewise.
27977         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
27978         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
27979         (extract_affine_chrec): Likewise.
27980         (build_scop_iteration_domain): Likewise.
27981         * graphite.c (graphite_initialize): Likewise.
27982         * ira-build.c (create_loop_tree_nodes): Likewise.
27983         (more_one_region_p): Likewise.
27984         (rebuild_regno_allocno_maps): Likewise.
27985         (mark_loops_for_removal): Likewise.
27986         (mark_all_loops_for_removal): Likewise.
27987         (remove_unnecessary_regions): Likewise.
27988         (ira_build): Likewise.
27989         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
27990         * loop-init.c (fix_loop_structure): Likewise.
27991         (gate_rtl_move_loop_invariants): Likewise.
27992         (gate_rtl_unswitch): Likewise.
27993         (gate_rtl_unroll_and_peel_loops): Likewise.
27994         (rtl_doloop): Likewise.
27995         * lto-streamer-in.c (input_cfg): Likewise.
27996         * lto-streamer-out.c (output_cfg): Likewise.
27997         * modulo-sched.c (sms_schedule): Likewise.
27998         * predict.c (tree_estimate_probability): Likewise.
27999         (tree_estimate_probability_driver): Likewise.
28000         (estimate_loops): Likewise.
28001         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
28002         (move_sese_region_to_fn): Likewise.
28003         (debug_loop_num): Likewise.
28004         * tree-chrec.c (chrec_evaluate): Likewise.
28005         (hide_evolution_in_other_loops_than_loop): Likewise.
28006         (chrec_component_in_loop_num): Likewise.
28007         (reset_evolution_in_loop): Likewise.
28008         (evolution_function_is_invariant_rec_p): Likewise.
28009         * tree-if-conv.c (main_tree_if_conversion): Likewise.
28010         * tree-inline.c (copy_loops): Likewise.
28011         (copy_cfg_body): Likewise.
28012         (tree_function_versioning): Likewise.
28013         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
28014         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
28015         Likewise.
28016         (add_to_evolution_1): Likewise.
28017         (scev_const_prop): Likewise.
28018         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
28019         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
28020         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
28021         (tree_ssa_lim_initialize): Likewise.
28022         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
28023         (verify_loop_closed_ssa): Likewise.
28024         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
28025         (tree_ssa_loop_im): Likewise.
28026         (tree_ssa_loop_unswitch): Likewise.
28027         (tree_vectorize): Likewise.
28028         (check_data_deps): Likewise.
28029         (tree_ssa_loop_ivcanon): Likewise.
28030         (tree_ssa_loop_bounds): Likewise.
28031         (tree_complete_unroll): Likewise.
28032         (tree_complete_unroll_inner): Likewise.
28033         (tree_parallelize_loops): Likewise.
28034         (tree_ssa_loop_prefetch): Likewise.
28035         (tree_ssa_loop_ivopts): Likewise.
28036         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
28037         * tree-vectorizer.c (vectorize_loops): Likewise.
28038
28039 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
28040
28041         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
28042         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
28043         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
28044         with EABI_LINK_SPEC.
28045
28046 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28047
28048         PR target/44578
28049         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
28050         alternative.
28051
28052 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
28053
28054         PR target/57097
28055         * lra-constraints.c (process_alt_operands): Discourage a bit more
28056         using memory for pseudos.  Print cost dump for alternatives.
28057         Modify cost values for conflicts with early clobbers.
28058         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
28059
28060 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28061
28062         PR target/57098
28063         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
28064
28065 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
28066
28067         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
28068         from/to S register.
28069         (movdi_aarch64): Support LDR/STR from/to D register.
28070
28071 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
28072
28073         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
28074         or higher by default.
28075
28076 2013-04-29  Richard Biener  <rguenther@suse.de>
28077
28078         PR middle-end/57075
28079         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
28080         even if not adding abnormal edges for calls that can make
28081         abnormal gotos.
28082
28083 2013-04-29  Richard Biener  <rguenther@suse.de>
28084
28085         PR middle-end/57103
28086         * tree-cfg.c (move_stmt_op): Fix condition under which to update
28087         TREE_BLOCK.
28088         (move_stmt_r): Remove redundant checking.
28089
28090 2013-04-29  Teresa Johnson  <tejohnson@google.com>
28091
28092         PR bootstrap/57077
28093         * basic-block.h (apply_scale): New function.
28094         (apply_probability): Use apply_scale.
28095         * gimple-streamer-in.c (input_bb): Ditto.
28096         * lto-streamer-in.c (input_cfg): Ditto.
28097         * lto-cgraph.c (merge_profile_summaries): Ditto.
28098         * tree-optimize.c (execute_fixup_cfg): Ditto.
28099         * tree-inline.c (copy_bb): Update comment to use apply_scale.
28100         (copy_edges_for_bb): Ditto.
28101         (copy_cfg_body): Ditto.
28102
28103 2013-04-29  Tom de Vries  <tom@codesourcery.com>
28104
28105         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
28106         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
28107         (tail_merge_optimize): Handle current_loops == NULL.
28108
28109 2013-04-26  Jeff Law  <law@redhat.com>
28110
28111         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
28112         (simplify_cond_using_ranges): Generalize code to simplify
28113         COND_EXPRs where one argument is a constant and the other
28114         is an SSA_NAME created by an integral type conversion.
28115
28116 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28117
28118         * config/arm/arm.md (store_minmaxsi): Use only when
28119         optimize_insn_for_size_p.
28120
28121 2013-04-29  Christian Bruel  <christian.bruel@st.com>
28122
28123         PR target/57108
28124         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
28125
28126 2013-04-29  Richard Biener  <rguenther@suse.de>
28127
28128         PR middle-end/57089
28129         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
28130         loop tree make sure to schedule a fixup for the child as well.
28131         (expand_omp_for_generic): Properly add loops.
28132         (expand_omp_for_static_nochunk): Likewise.
28133         (expand_omp_for_static_chunk): Likewise.
28134         (expand_omp_for): For the degenerate case fixup loops.
28135         (expand_omp_sections): Fix default bb placement in loops.
28136         (expand_omp_atomic_pipeline): Properly add loops.
28137
28138 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28139
28140         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
28141
28142 2013-04-29  Tom de Vries  <tom@codesourcery.com>
28143
28144         * tree-ssa-tail-merge.c: Update header comment.
28145
28146 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28147
28148         * config/aarch64/arm_neon.h
28149         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
28150         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
28151         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
28152         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
28153         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
28154         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
28155         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
28156         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
28157
28158 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28159
28160         * config/aarch64/aarch64-simd.md
28161         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
28162         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
28163         fix_trunc, fixuns_trunc.
28164         (ftrunc<VDQF:mode>2): New.
28165         * config/aarch64/iterators.md (optab): Add fix, fixuns.
28166         (fix_trunc_optab): New.
28167
28168 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28169
28170         * config/aarch64/aarch64-builtins.c
28171         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
28172         iceilf, lround, iroundf.
28173
28174 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28175
28176         PR target/54349
28177         * config/i386/i386.h (enum ix86_tune_indices)
28178         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
28179         New, split from X86_TUNE_INTER_UNIT_MOVES.
28180         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
28181         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
28182         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
28183         (TARGET_INTER_UNIT_MOVES): Remove.
28184         * config/i386/i386.c (initial_ix86_tune_features): Update.
28185         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
28186         (ix86_expand_convert_uns_didf_sse): Use
28187         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28188         (ix86_expand_vector_init_one_nonzero): Ditto.
28189         (ix86_expand_vector_init_interleave): Ditto.
28190         (inline_secondary_memory_needed): Return true for moves from SSE class
28191         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
28192         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
28193         * config/i386/constraints.md (Yi, Ym): Depend on
28194         TARGET_INTER_UNIT_MOVES_TO_VEC.
28195         (Yj, Yn): New constraints.
28196         * config/i386/i386.md (*movdi_internal): Change constraints of
28197         operand 1 from Yi to Yj and from Ym to Yn.
28198         (*movsi_internal): Ditto.
28199         (*movdf_internal): Ditto.
28200         (*movsf_internal): Ditto.
28201         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
28202         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28203         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
28204         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
28205         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
28206         * config/i386/sse.md (movdi_to_sse): Ditto.
28207         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
28208         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
28209         TARGET_INTER_UNIT_MOVES.
28210         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
28211         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
28212         instead of TARGET_INTER_UNIT_MOVES.
28213         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
28214         operand 1 from Yi to Yj and from Ym to Yn.
28215
28216 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28217
28218         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
28219         (float_truncate_hi_): Likewise.
28220         (float_extend_lo_): Likewise.
28221         (float_truncate_lo_): Likewise.
28222         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
28223         (aarch64_float_extend_lo_v2df): Likewise.
28224         (vec_unpacks_hi_v4sf): Likewise.
28225         (aarch64_float_truncate_lo_v2sf): Likewise.
28226         (aarch64_float_truncate_hi_v4sf): Likewise.
28227         (vec_pack_trunc_v2df): Likewise.
28228         (vec_pack_trunc_df): Likewise.
28229
28230 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28231
28232         * config/aarch64/aarch64-builtins.c
28233         (aarch64_fold_builtin): Fold float conversions.
28234         * config/aarch64/aarch64-simd-builtins.def
28235         (floatv2si, floatv4si, floatv2di): New.
28236         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
28237         * config/aarch64/aarch64-simd.md
28238         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
28239         * config/aarch64/iterators.md (FLOATUORS): New.
28240         (optab): Add float, floatuns.
28241         (su_optab): Likewise.
28242
28243 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28244
28245         * config/aarch64/aarch64-builtins.c
28246         (aarch64_builtin_vectorized_function): Use new names for
28247         fcvt builtins.
28248         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
28249         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
28250         (fcvtzu): Split as...
28251         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
28252         (fcvtas): Split as...
28253         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
28254         (fcvtau): Split as...
28255         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
28256         (fcvtps): Split as...
28257         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
28258         (fcvtpu): Split as...
28259         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
28260         (fcvtms): Split as...
28261         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
28262         (fcvtmu): Split as...
28263         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
28264         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
28265         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
28266         (lfrintnusf, lfrintnudf): Likewise.
28267         * config/aarch64/aarch64-simd.md
28268         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
28269         define_insn.
28270         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
28271         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
28272         (fcvt_pattern): Likewise.
28273
28274 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28275
28276         * config/aarch64/aarch64-simd.md
28277         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
28278         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
28279
28280 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28281
28282         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
28283         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
28284         (vrnd<a,m,n,p>_f32): Implement using builtins.
28285         (vrnd<i,x><q>_f<32, 64>): New.
28286
28287 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28288
28289         * config/aarch64/aarch64-builtins.c
28290         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
28291         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
28292         (frintz): Rename to...
28293         (btrunc): ...this.
28294         (frintp): Rename to...
28295         (ceil): ...this.
28296         (frintm): Rename to...
28297         (floor): ...this.
28298         (frinti): Rename to...
28299         (nearbyint): ...this.
28300         (frintx): Rename to...
28301         (rint): ...this.
28302         (frinta): Rename to...
28303         (round): ...this.
28304         * config/aarch64/aarch64-simd.md
28305         (aarch64_frint<frint_suffix><mode>): Delete.
28306         (<frint_pattern><mode>2): Convert to insn.
28307         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
28308         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
28309         (frint_pattern): Likewise.
28310         (frint_suffix): Likewise.
28311
28312 2013-04-29  Richard Biener  <rguenther@suse.de>
28313
28314         PR tree-optimization/57081
28315         * loop-init.c: Include tree-flow.h.
28316         (loop_optimizer_finalize): Free number of iteration estimates.
28317         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
28318
28319 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
28320
28321         PR tree-optimization/57083
28322         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
28323         non-singleton shift count range, zero extend low_bound for uns case.
28324
28325         * config/i386/predicates.md (general_vector_operand): New predicate.
28326         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
28327         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
28328         if they aren't nonimmediate operands.  If their original values
28329         satisfy const_vector_equal_evenodd_p, don't shift them.
28330         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
28331         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
28332         if not nonimmediate_operand.
28333         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
28334         instead of register_operand.
28335         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
28336
28337 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28338
28339         * stor-layout.c (finalize_size_functions): Allocate a structure and
28340         reset cfun before dumping the functions.
28341
28342 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
28343
28344         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
28345
28346         PR target/56866
28347         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
28348         use xop_pmacsdqh if uns_p.
28349         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
28350         the immediate rotate count.
28351
28352 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
28353
28354         * rtl.h (struct rtx_def): Add comment for field jump.
28355         (LRA_SUBREG_P): New macro.
28356         * recog.c (register_operand): Check LRA_SUBREG_P.
28357         * lra.c (lra): Add note at the end of RTL code. Align non-empty
28358         stack frame.
28359         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28360         (lra_final_code_change): Skip subreg change for operators.
28361         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28362         if there are no operand changes.
28363         * lra-constraints.c (curr_insn_set): New.
28364         (match_reload): Set LRA_SUBREG_P.
28365         (emit_spill_move): Ditto.
28366         (check_and_process_move): Use curr_insn_set. Process only single
28367         set insns.  Don't initialize sec_mem_p and change_p.
28368         (simplify_operand_subreg): Use LRA_SUBREG_P.
28369         (reg_in_class_p): New function.
28370         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
28371         of #ifdef.  Add code to remove cycling.
28372         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28373         non-null disp.  Reload inner instead of disp when base and index
28374         are null.  Try to put lo_sum into register.
28375         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28376         (check_and_process_move): Move code for move cost check to
28377         simple_move_p.  Remove equiv_substitution.
28378         (simple_move_p): New function.
28379         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
28380         curr_insn_set.  Call check_and_process_move only for single set
28381         insns.  Use the new function.  Move call of check_and_process_move
28382         after operand equiv substitution and address process.
28383
28384 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28385
28386         PR go/57045
28387         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
28388         with nonlocal goto receivers or returns twice calls, ignore
28389         unininitialized values from abnormal edges to nl goto receiver
28390         or returns twice call.
28391
28392 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28393
28394         PR tree-optimization/57051
28395         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
28396         and VEC_RSHIFT_EXPR if shift count is a multiple of element
28397         bitsize.
28398
28399 2013-04-26  Richard Biener  <rguenther@suse.de>
28400
28401         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
28402         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
28403         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
28404         (fixup_loop_arrays_after_move): New function.
28405         (move_sese_region_to_fn): Properly outline the loop tree parts
28406         of the SESE region.
28407
28408 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
28409
28410         * config/i386/i386.md (type, unit): Fix long lines.
28411
28412 2013-04-26  Richard Biener  <rguenther@suse.de>
28413
28414         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
28415         (lto-streamer-out.o): Likewise.
28416         * cfgloop.c (init_loops_structure): Export, add struct function
28417         argument and adjust.
28418         (flow_loops_find): Adjust.
28419         * cfgloop.h (enum loop_estimation): Add EST_LAST.
28420         (init_loops_structure): Declare.
28421         * lto-streamer-in.c: Include cfgloop.h.
28422         (input_cfg): Input the loop tree.
28423         * lto-streamer-out.c: Include cfgloop.h.
28424         (output_cfg): Output the loop tree.
28425         (output_struct_function_base): Do not drop PROP_loops.
28426
28427 2013-03-26  Richard Biener  <rguenther@suse.de>
28428
28429         * tree-cfg.c (execute_build_cfg): Build the loop tree.
28430         (pass_build_cfg): Provide PROP_loops.
28431         (move_sese_region_to_fn): Remove loops that are outlined into fn
28432         for now.
28433         * tree-inline.c: Include cfgloop.h.
28434         (initialize_cfun): Do not drop PROP_loops.
28435         (copy_loops): New function.
28436         (copy_cfg_body): Copy loop structure.
28437         (tree_function_versioning): Initialize destination loop tree.
28438         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
28439         (pass_parallelize_loops): Do IL verification.
28440         * loop-init.c (loop_optimizer_init): Fixup loops if required.
28441         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
28442         the CFG make sure we fixup loops as well.
28443         * tree-ssa-tail-merge.c: Include cfgloop.h.
28444         (replace_block_by): When merging loop latches mark loops for fixup.
28445         * lto-streamer-out.c (output_struct_function_base): Drop
28446         PROP_loops for now.
28447         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
28448         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
28449         * ipa-split.c: Include cfgloop.h.
28450         (split_function): Add the new return block to the loop tree root.
28451         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
28452         whether we have removed the forwarder block.
28453         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
28454         * cfgloop.h (place_new_loop): Declare.
28455         * cfgloopmanip.c (place_new_loop): Export.
28456         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
28457         (tree-switch-conversion.o): Likewise.
28458         (tree-complex.o): Likewise.
28459         (tree-inline.o): Likewise.
28460         (tree-ssa-tailmerge.o): Likewise.
28461         (ipa-split.o): Likewise.
28462         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
28463         (tree-ssa-copy.o): Likewise.
28464         * tree-switch-conversion.c: Include cfgloop.h
28465         (process_switch): If we emit a bit-test cascade, schedule loops
28466         for fixup.
28467         * tree-complex.c: Include cfgloop.h.
28468         (expand_complex_div_wide): Properly add new basic-blocks to loops.
28469         * asan.c: Include cfgloop.h.
28470         (create_cond_insert_point): Properly add new basic-blocks to
28471         loops, schedule loop fixup.
28472         * cfgloop.c (verify_loop_structure): Check that looks are not
28473         marked for fixup.
28474         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
28475         to loops.
28476         (expand_omp_for_generic): Likewise.
28477         (expand_omp_sections): Likewise.
28478         (expand_omp_atomic_pipeline): Schedule loops for fixup.
28479         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
28480         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
28481         is initialized, not when loops are present.
28482         * tree-parloops.c (parallelize_loops): Remove checking here.
28483         * passes.c (init_optimization_passes): Schedule a copy-propagation
28484         pass before complete unrolling of inner loops.
28485
28486 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28487
28488         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
28489         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
28490         (colorize_init): Add argument to _WIN32 version.
28491         * toplev.c: Include diagnostic-color.h.
28492         (process_options): Default to -fdiagnostics-color=auto if
28493         GCC_COLORS env var is in the environment.
28494         * common.opt (fdiagnostics-color=): Add Var and Init.
28495         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
28496         env var is in the environment, the default is auto rather than never.
28497
28498         * diagnostic.h (file_name_as_prefix): Add context argument.
28499         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
28500         the string as locus.
28501         * langhooks.c (lhd_print_error_function): Adjust caller.
28502
28503 2013-04-25  Lawrence Crowl  <crowl@google.com>
28504
28505         * var-tracking.c (shared_hash_def::htab):
28506         Change type to hash_table.  Update dependent calls and types.
28507
28508 2013-04-25  Lawrence Crowl  <crowl@google.com>
28509
28510         * Makefile.in: Update as needed below.
28511
28512         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
28513         Move declaration to after the type's method definitons.
28514
28515         * attribs.c (htab_t scoped_attributes::attribute_hash):
28516         Change type to hash_table.  Update dependent calls and types.
28517
28518         * bitmap.c (htab_t bitmap_desc_hash):
28519         Change type to hash_table.  Update dependent calls and types.
28520
28521         * cselib.c (htab_t cselib_hash_table):
28522         Change type to hash_table.  Update dependent calls and types.
28523
28524         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
28525         (hash_string_slot_node): Move implementation into lto-streamer.h
28526         struct string_slot_hasher.
28527         (eq_string_slot_node): Likewise.
28528
28529         * data-streamer-out.c: Update output_block::string_hash_table
28530         dependent calls and types.
28531
28532         * dwarf2cfi.c (htab_t trace_index):
28533         Change type to hash_table.  Update dependent calls and types.
28534
28535         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
28536         Change type to hash_table.  Update dependent calls and types.
28537         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
28538         (htab_t optimize_external_refs::map): Likewise.
28539         (htab_t output_comp_unit::extern_map): Likewise.
28540         (htab_t output_comdat_type_unit::extern_map): Likewise.
28541         (htab_t output_macinfo::macinfo_htab): Likewise.
28542         (htab_t optimize_location_lists::htab): Likewise.
28543         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
28544
28545         * except.c (htab_t ehspec_hash_type):
28546         Change type to hash_table.  Update dependent calls and types.
28547         (assign_filter_values::ttypes): Likewise.
28548         (assign_filter_values::ehspec): Likewise.
28549         (sjlj_assign_call_site_values::ar_hash): Likewise.
28550         (convert_to_eh_region_ranges::ar_hash): Likewise.
28551
28552         * gcse.c (htab_t pre_ldst_table):
28553         Change type to hash_table.  Update dependent calls and types.
28554
28555         * ggc-common.c (htab_t saving_htab):
28556         Change type to hash_table.  Update dependent calls and types.
28557         (htab_t loc_hash): Likewise.
28558         (htab_t ptr_hash): Likewise.
28559         (call_count): Rename ggc_call_count.
28560         (call_alloc): Rename ggc_call_alloc.
28561         (loc_descriptor): Rename make_loc_descriptor.
28562         (add_statistics): Rename ggc_add_statistics.
28563
28564         * ggc-common.c (saving_htab):
28565         Change type to hash_table.  Update dependent calls and types.
28566
28567         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
28568         (push_gimplify_context): Likewise.
28569         (pop_gimplify_context): Likewise.
28570         (struct gimple_temp_hash_elt): Added.
28571         (struct gimplify_hasher): Likewise.
28572         (struct gimplify_ctx.temp_htab):
28573         Change type to hash_table.  Update dependent calls and types.
28574
28575         * gimple-fold.c: Include gimplify-ctx.h.
28576
28577         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
28578         Change type to hash_table.  Update dependent calls and types.
28579         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
28580         avoid potential global name collision.
28581
28582         * gimplify.c: Include gimplify-ctx.h.
28583         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
28584         (htab_t gimplify_ctx::temp_htab):
28585         Update dependent calls and types for new type hash_table.
28586         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
28587         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
28588
28589         * gimplify-ctx.h: New.
28590         (struct gimple_temp_hash_elt): Move from gimplify.c.
28591         (class gimplify_hasher): New.
28592         (struct gimplify_ctx): Move from gimple.h.
28593         (htab_t gimplify_ctx::temp_htab):
28594         Change type to hash_table.  Update dependent calls and types.
28595
28596         * graphite-clast-to-gimple.c: Include graphite-htab.h.
28597         (htab_t ivs_params::newivs_index):
28598         Change type to hash_table.  Update dependent calls and types.
28599         (htab_t ivs_params::params_index): Likewise.
28600         (htab_t print_generated_program::params_index): Likewise.
28601         (htab_t gloog::newivs_index): Likewise.
28602         (htab_t gloog::params_index): Likewise.
28603
28604         * graphite.c: Include graphite-htab.h.
28605         4htab_t graphite_transform_loops::bb_pbb_mapping):
28606         Change type to hash_table.  Update dependent calls and types.
28607
28608         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
28609         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
28610         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
28611
28612         * graphite-dependences.c: Include graphite-htab.h.
28613         (loop_is_parallel_p): Change hash table type of parameter.
28614
28615         * graphite-htab.h: New.
28616         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
28617         (extern find_pbb_via_hash): Move from graphite-poly.h.
28618         (extern loop_is_parallel_p): Move from graphite-poly.h.
28619         (extern get_loop_body_pbbs): Move from graphite-poly.h.
28620
28621         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
28622         (extern loop_is_parallel_p): Move to graphite-htab.h.
28623         (extern get_loop_body_pbbs): Move to graphite-htab.h.
28624
28625         * haifa-sched.c (htab_t delay_htab):
28626         Change type to hash_table.  Update dependent calls and types.
28627         (htab_t delay_htab_i2): Likewise.
28628
28629         * ira-color.c (htab_t allocno_hard_regs_htab):
28630         Change type to hash_table.  Update dependent calls and types.
28631
28632         * ira-costs.c (htab_t cost_classes_htab):
28633         Change type to hash_table.  Update dependent calls and types.
28634
28635         * loop-invariant.c (htab_t merge_identical_invariants::eq):
28636         Change type to hash_table.  Update dependent calls and types.
28637
28638         * loop-iv.c (htab_t bivs):
28639         Change type to hash_table.  Update dependent calls and types.
28640
28641         * loop-unroll.c (htab_t opt_info::insns_to_split):
28642         Change type to hash_table.  Update dependent calls and types.
28643         (htab_t opt_info::insns_with_var_to_expand): Likewise.
28644
28645         * lto-streamer.h (struct string_slot): Move from data-streamer.h
28646         (struct string_slot_hasher): New.
28647         (htab_t output_block::string_hash_table):
28648         Change type to hash_table.  Update dependent calls and types.
28649
28650         * lto-streamer-in.c (freeing_string_slot_hasher): New.
28651         (htab_t file_name_hash_table):
28652         Change type to hash_table.  Update dependent calls and types.
28653
28654         * lto-streamer-out.c: Update output_block::string_hash_table dependent
28655         calls and types.
28656
28657         * lto-streamer.c (htab_t tree_htab):
28658         Change type to hash_table.  Update dependent calls and types.
28659
28660         * omp-low.c: Include gimplify-ctx.h.
28661
28662         * passes.c (htab_t name_to_pass_map):
28663         Change type to hash_table.  Update dependent calls and types.
28664         (pass_traverse): Rename to passes_pass_traverse.
28665
28666         * plugin.c (htab_t event_tab):
28667         Change type to hash_table.  Update dependent calls and types.
28668
28669         * postreload-gcse.c (htab_t expr_table):
28670         Change type to hash_table.  Update dependent calls and types.
28671         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
28672
28673         * sese.c (debug_rename_map_1): Make extern.
28674         (htab_t copy_bb_and_scalar_dependences::rename_map):
28675         Change type to hash_table.  Update dependent calls and types.
28676
28677         * sese.h (extern debug_rename_map): Move to .c file.
28678
28679         * store-motion.c (htab_t store_motion_mems_table):
28680         Change type to hash_table.  Update dependent calls and types.
28681
28682         * trans-mem.c (htab_t tm_new_mem_hash):
28683         Change type to hash_table.  Update dependent calls and types.
28684
28685         * tree-browser.c (htab_t TB_up_ht):
28686         Change type to hash_table.  Update dependent calls and types.
28687
28688         * tree-cfg.c (htab_t discriminator_per_locus):
28689         Change type to hash_table.  Update dependent calls and types.
28690
28691         * tree-complex.c: Include tree-hasher.h
28692         (htab_t complex_variable_components):
28693         Change type to hash_table.  Update dependent calls and types.
28694
28695         * tree-eh.c (htab_t finally_tree):
28696         Change type to hash_table.  Update dependent calls and types.
28697
28698         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
28699         struct int_tree_hasher.
28700         (extern int_tree_map_eq): Likewise.
28701         (uid_decl_map_hash): Removed.
28702         (extern decl_tree_map_eq): Likewise.
28703
28704         * tree-hasher.h: New.
28705         (struct int_tree_hasher): New.
28706         (typedef int_tree_htab_type): New.
28707
28708         * tree-inline.c: Include gimplify-ctx.h.
28709
28710         * tree-mudflap.c: Include gimplify-ctx.h.
28711
28712         * tree-parloops.c: Include tree-hasher.h.
28713         (htab_t eliminate_local_variables_stmt::decl_address):
28714         Change type to hash_table.  Update dependent calls and types.
28715         (htab_t separate_decls_in_region::decl_copies): Likewise.
28716
28717         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
28718         Change type to hash_table.  Update dependent calls and types.
28719
28720         * tree-sra.c (candidates):
28721         Change type to hash_table.  Update dependent calls and types.
28722
28723         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
28724         in tree-flow.h.
28725         (int_tree_map_hash): Likewise.
28726
28727         * tree-ssa-dom.c (htab_t avail_exprs):
28728         Change type to hash_table.  Update dependent calls and types.
28729
28730         * tree-ssa-live.c (var_map_base_init::tree_to_index):
28731         Change type to hash_table.  Update dependent calls and types.
28732
28733         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
28734         Change type to hash_table.  Update dependent calls and types.
28735
28736         * tree-ssa-phiopt.c (seen_ssa_names):
28737         Change type to hash_table.  Update dependent calls and types.
28738
28739         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
28740         Change type to hash_table.  Update dependent calls and types.
28741
28742         * tree-ssa-uncprop.c (equiv):
28743         Change type to hash_table.  Update dependent calls and types.
28744
28745 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
28746
28747         PR rtl-optimization/57003
28748         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
28749         call note_stores with kill_clobbered_value callback again after
28750         killing regs_invalidated_by_call.
28751
28752 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28753
28754         * config/aarch64/aarch64-simd.md
28755         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
28756         (aarch64_simd_bsl<mode>): Likewise.
28757         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
28758
28759 2013-04-25  Marek Polacek  <polacek@redhat.com>
28760
28761         PR tree-optimization/57066
28762         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
28763
28764 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28765
28766         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
28767
28768 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28769
28770         * config/aarch64/aarch64-builtins.c
28771         (aarch64_fold_builtin): New.
28772         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
28773         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
28774         * config/aarch64/aarch64-simd-builtins.def (abs): New.
28775         * config/aarch64/arm_neon.h
28776         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
28777
28778 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28779             Tejas Belagod  <tejas.belagod@arm.com>
28780
28781         * config/aarch64/aarch64-builtins.c
28782         (aarch64_gimple_fold_builtin): New.
28783         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
28784         * config/aarch64/aarch64-simd-builtins.def (addv): New.
28785         * config/aarch64/aarch64-simd.md (addpv4sf): New.
28786         (addvv4sf): Update.
28787         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
28788
28789 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28790
28791         * config/aarch64/aarch64.md
28792         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
28793
28794 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28795
28796         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
28797         (*ngcsi_uxtw): New pattern.
28798
28799 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28800             Julian Brown  <julian@codesourcery.com>
28801
28802         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
28803         (TB_DREG): Add T_V4HF.
28804         (v4hf_UP): New macro.
28805         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28806         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28807         Handle initialisation of V4HF. Adjust initialisation of reinterpret
28808         built-ins.
28809         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28810         (arm_vector_mode_supported_p): Handle V4HF.
28811         (arm_mangle_map): Handle V4HFmode.
28812         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
28813         * config/arm/arm_neon_builtins.def: Add entries for
28814         vcvtv4hfv4sf, vcvtv4sfv4hf.
28815         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
28816         (neon_vcvtv4hfv4sf): Likewise.
28817         * config/arm/neon-gen.ml: Handle half-precision floating point
28818         features.
28819         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
28820         * config/arm/arm_neon.h: Regenerate.
28821         * config/arm/neon.ml (type elts): Add F16.
28822         (type vectype): Add T_float16x4, T_floatHF.
28823         (type vecmode): Add V4HF.
28824         (type features): Add Requires_FP_bit feature.
28825         (elt_width): Handle F16.
28826         (elt_class): Likewise.
28827         (elt_of_class_width): Likewise.
28828         (mode_of_elt): Refactor.
28829         (type_for_elt): Handle F16, fix error messages.
28830         (vectype_size): Handle T_float16x4.
28831         (vcvt_sh): New function.
28832         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
28833         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
28834         (string_of_mode): Handle V4HF.
28835         * doc/arm-neon-intrinsics.texi: Regenerate.
28836
28837 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28838
28839         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
28840         format specifier in 'X' case.
28841
28842 2013-04-25  Alan Modra  <amodra@gmail.com>
28843
28844         PR target/57052
28845         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
28846         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
28847         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
28848         Repeat for many other rotate/shift and mask patterns using subregs.
28849         Name lshiftrt insns.
28850         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
28851         on WORDS_BIG_ENDIAN.
28852
28853 2013-04-25  Alan Modra  <amodra@gmail.com>
28854
28855         * config.gcc: Support little-endian powerpc-linux targets.
28856         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
28857         (LINK_OS_LINUX_SPEC): Define.
28858         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
28859         Preserve MASK_LITTLE_ENDIAN.
28860         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
28861         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
28862         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
28863         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
28864         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
28865         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
28866         Correct fp word order for little-endian.  Don't shift toc entries
28867         smaller than a word for little-endian.
28868         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
28869         (bswapdi2 splits): Correct low-part subreg for little-endian.
28870         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
28871         low/high where such is correct only for be.
28872         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
28873         little-endian for -mcall-aixdesc.
28874
28875 2013-04-25  Alan Modra  <amodra@gmail.com>
28876
28877         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
28878         replace_equiv_address_nv.
28879
28880 2013-04-25  Alan Modra  <amodra@gmail.com>
28881
28882         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
28883
28884 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28885
28886         Revert:
28887         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28888         * rtl.h (struct rtx_def): ...
28889
28890 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28891
28892         PR rtl-optimizations/57046
28893         * lra-constraints (split_reg): Set up lra_risky_transformations_p
28894         for multi-reg splits.
28895
28896 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
28897
28898         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
28899
28900 2013-04-24  Sterling Augustine  <saugustine@google.com>
28901
28902         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
28903         (comp_dir_string, debug_str_dwo_section): New.
28904         (DEBUG_STR_DWO_SECTION): Rename to ...
28905         (DEBUG_DWO_STR_SECTION): ... this.
28906         (DEBUG_NORM_STR_SECTION): Delete.
28907         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
28908         (DEBUG_STR_DWO_SECTION_FLAGS): New.
28909         (find_AT_string): Move most logic to ...
28910         (find_AT_string_in_table): ... here.  New.
28911         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
28912         add_skeleton_AT_string.  Delete logic.
28913         (output_skeleton_debug_sections): Remove call to
28914         add_top_level_skeleton_die_attrs.
28915         (add_comp_dir_attribute): Move logic to comp_dir_string.
28916         (dwarf2out_init): Initialize debug_str_dwo_section.
28917         (output_indirect_string): Call find_string_form.
28918         (output_indirect_strings): Rewrite.
28919         (prune_unused_types): Empty skeleton_debug_str_hash.
28920         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
28921         (dwarf2out_finish):  Call output_indirect_strings.
28922
28923 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
28924
28925         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
28926
28927 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28928
28929         * rtl.h (struct rtx_def): Add comment for field jump.
28930         (LRA_SUBREG_P): New macro.
28931         * recog.c (register_operand): Check LRA_SUBREG_P.
28932         * lra.c (lra): Add note at the end of RTL code. Align non-empty
28933         stack frame.
28934         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28935         (lra_final_code_change): Skip subreg change for operators.
28936         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28937         if there are no operand changes.
28938         * lra-constraints.c (curr_insn_set): New.
28939         (match_reload): Set LRA_SUBREG_P.
28940         (emit_spill_move): Ditto.
28941         (check_and_process_move): Use curr_insn_set. Process only single
28942         set insns.  Don't initialize sec_mem_p and change_p.
28943         (simplify_operand_subreg): Use LRA_SUBREG_P.
28944         (reg_in_class_p): New function.
28945         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
28946         of #ifdef.  Add code to remove cycling.
28947         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28948         non-null disp.  Reload inner instead of disp when base and index
28949         are null.  Try to put lo_sum into register.
28950         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28951         (check_and_process_move): Move code for move cost check to
28952         simple_move_p.  Remove equiv_substitution.
28953         (simple_move_p): New function.
28954         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
28955         curr_insn_set.  Call check_and_process_move only for single set
28956         insns.  Use the new function.  Move call of check_and_process_move
28957         after operand equiv substitution and address process.
28958
28959 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
28960
28961         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
28962         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
28963         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
28964
28965 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
28966
28967         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
28968
28969 2013-04-24  Marek Polacek  <polacek@redhat.com>
28970
28971         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
28972         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
28973         (select_loops_exit_conditions): Likewise.
28974         (number_of_iterations_for_all_loops): Likewise.
28975         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
28976         (scev_analysis): Likewise.
28977
28978 2013-04-02  Catherine Moore  <clm@codesourcery.com>
28979             Chao-ying Fu  <fu@mips.com>
28980
28981         * config/mips/micromips.md (jraddiusp): New pattern.
28982         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
28983         instruction if possible.
28984
28985 2013-04-24  Alan Modra  <amodra@gmail.com>
28986
28987         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
28988
28989 2013-04-24  Julian Brown  <julian@codesourcery.com>
28990             Chung-Lin Tang  <cltang@codesourcery.com>
28991
28992         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
28993         dependency behavior in enumeration type DIE generation. Add TODO note
28994         to comments about future DW_FORM_sdata/udata re-work of related code.
28995
28996 2013-04-23  Lawrence Crowl  <crowl@google.com>
28997
28998         * Makefile.in: Update as needed below.
28999
29000         * hash-table.h (class hash_table):
29001         Correct many methods with parameter types compare_type to the correct
29002         value_type.  (Correct code was unlikely to notice the change.)
29003         (hash_table::elements_with_deleted) New.
29004         (class hashtable::iterator): New.
29005         (hashtable::begin()): New.
29006         (hashtable::end()): New.
29007         (FOR_EACH_HASH_TABLE_ELEMENT): New.
29008
29009         * statistics.c (statistics_hashes):
29010         Change type to hash_table.  Update dependent calls and types.
29011
29012         * tree-into-ssa.c (var_infos):
29013         Change type to hash_table.  Update dependent calls and types.
29014
29015         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
29016         Change type to hash_table.  Update dependent calls and types.
29017
29018         * tree-ssa-loop-im.c (struct mem_ref.refs):
29019         Change type to hash_table.  Update dependent calls and types.
29020
29021         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
29022         Change type to hash_table.  Update dependent calls and types.
29023
29024         * tree-ssa-sccvn.c (vn_tables_s::nary):
29025         Change type to hash_table.  Update dependent calls and types.
29026         (vn_tables_s::phis): Likewise.
29027         (vn_tables_s::references): Likewise.
29028
29029         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
29030         (vn_reference_eq): Update parameter and return types.
29031
29032         * tree-ssa-structalias.c (pointer_equiv_class_table):
29033         Change type to hash_table.  Update dependent calls and types.
29034         (location_equiv_class_table): Likewise.
29035
29036         * tree-vect-data-refs.c: Consequential changes for making
29037         peeling a hash_table.
29038
29039         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
29040         (destroy_loop_vec_info): Dependent hash_table update.
29041
29042         * tree-vectorizer.h (peeling_htab):
29043         Change type to hash_table.  Update dependent calls and types.
29044
29045 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
29046
29047         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
29048         to check the register content is equal or not.
29049         * lra-constraints.c (match_reload): Use lra_assign_reg_val
29050         to assign register content record.
29051         * lra-eliminations.c (update_reg_eliminate): Use
29052         lra_update_reg_val_offset to update register content offset.
29053         * lra-int.h (struct lra_reg): Add offset member.
29054         (lra_reg_val_equal_p): New static inline function.
29055         (lra_update_reg_val_offset): New static inline function.
29056         (lra_assign_reg_val): New static inline function.
29057         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
29058         to assign register content record.
29059         (initialize_lra_reg_info_element): Initial offset to zero.
29060
29061 2013-04-23  Catherine Moore  <clm@codesourcery.com>
29062
29063         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
29064         operands.  Record compression.
29065
29066 2013-04-23  Xinliang David Li  <davidxl@google.com>
29067
29068         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
29069
29070 2013-04-23  Richard Biener  <rguenther@suse.de>
29071
29072         PR middle-end/57036
29073         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
29074         parameter, only add abnormal goto edges from the copied body
29075         if the call could perform abnormal gotos.
29076         (copy_cfg_body): Adjust.
29077
29078 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
29079
29080         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
29081
29082 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
29083
29084         * coretypes.h (gimple_stmt_iterator): Add struct to make
29085         compatible with C.
29086
29087 2013-04-23  Richard Biener  <rguenther@suse.de>
29088
29089         PR tree-optimization/57026
29090         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
29091         from SSA names occuring in abnormal PHI nodes.
29092
29093 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29094
29095         * lto/lto.c (print_lto_report_1): Fix LTO report names.
29096
29097 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29098
29099         * lto/lto.c (print_lto_report_1): Declare early.
29100         (read_cgraph_and_symbols): Call print_lto_report_1 early.
29101
29102 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29103
29104         * common.opt (-flto-report-wpa): Add.
29105         * doc/invoke.texi (-flto-report-wpa): Add.
29106         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
29107         (lto_main): dito.
29108
29109 2013-04-22  Xinliang David Li  <davidxl@google.com>
29110
29111         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
29112         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
29113         * Makefile.in: New dependency
29114
29115             David Daney <ddaney.cavm@gmail.com>
29116
29117         * configure.ac (gcc_cv_as_micromips_support):  Use the
29118         --fatal-warnings option.
29119         * configure: Regenerate.
29120
29121 2013-04-22  Marek Polacek  <polacek@redhat.com>
29122
29123         PR sanitizer/56990
29124         * tsan.c (instrument_expr): Don't instrument expression
29125         in case its size is zero.
29126
29127 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
29128
29129         PR target/57032
29130         Revert:
29131         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
29132
29133         * config/alpha/alpha.c (TARGET_LRA_P): New define.
29134
29135 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29136
29137         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
29138         (gimple_stmt_iterator): New typedef.
29139         * gimple.h (gimple_stmt_iterator): Rename to...
29140         (gimple_stmt_iterator_d): ... This.
29141         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
29142         trees be valid for GIMPLE and GENERIC.
29143         (TARGET_GIMPLE_FOLD_BUILTIN): New.
29144         * gimple-fold.c (gimple_fold_call): Call target hook
29145         gimple_fold_builtin.
29146         * hooks.c (hook_bool_gsiptr_false): New.
29147         * hooks.h (hook_bool_gsiptr_false): New.
29148         * target.def (fold_stmt): New.
29149         * doc/tm.texi: Regenerate.
29150
29151 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
29152
29153         PR target/57018
29154         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
29155         a set sp if no stack realignment.
29156
29157 2013-04-22  Nick Clifton  <nickc@redhat.com>
29158
29159         * config.gcc (tilegx-linux): Extend extra_objs rather than
29160         overwriting it.
29161         (tilepro-linux): Likewise.
29162
29163 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29164
29165         * config/aarch64/aarch64-builtins.c
29166         (CF): Remove.
29167         (CF0, CF1, CF2, CF3, CF4, CF10): New.
29168         (VAR<1-12>): Add MAP parameter.
29169         (BUILTIN_*): Likewise.
29170         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
29171         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
29172         (aarch64_ushl_n<mode>): Likewise.
29173         (aarch64_sshr_n<mode>): Likewise.
29174         (aarch64_ushr_n<mode>): Likewise.
29175         (aarch64_<maxmin><mode>): Likewise.
29176         (aarch64_sqrt<mode>): Likewise.
29177         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
29178         (vshr<q>_n_*): Likewise.
29179
29180 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29181
29182         * config/aarch64/aarch64-builtins.c
29183         (aarch64_simd_builtin_type_mode): Handle SF types.
29184         (sf_UP): Define.
29185         (BUILTIN_GPF): Define.
29186         (aarch64_init_simd_builtins): Handle SF types.
29187         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
29188         (frecps): Likewise.
29189         (frecpx): Likewise.
29190         * config/aarch64/aarch64-simd.md
29191         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
29192         (aarch64_frecpe<mode>): New.
29193         (aarch64_frecps<mode>): Likewise.
29194         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
29195         (v8type): Add frecp<esx>.
29196         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
29197         (aarch64_frecps<mode>): Likewise.
29198         * config/aarch64/iterators.md (FRECP): New.
29199         (frecp_suffix): Likewise.
29200         * config/aarch64/arm_neon.h
29201         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
29202
29203 2013-04-22  Christian Bruel  <christian.bruel@st.com>
29204
29205         PR target/56995
29206         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
29207         (REG_CLASS_NAMES): Idem.
29208         (REG_CLASS_CONTENTS): Idem.
29209         (REGCLASS_HAS_FP_REG): Idem.
29210         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
29211         (sh_conditional_register_usage): Idem.
29212
29213 2013-04-21  Jeff Law  <law@redhat.com>
29214
29215         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
29216         (ssa_forward_propagate_and_combine): Use it.
29217
29218 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29219
29220         * lra.c: Update the flow chart diagram.
29221
29222 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29223
29224         PR rtl-optimization/56847
29225         * lra-constraints.c (process_alt_operands): Discourage alternative
29226         with non-matche doffsettable memory constraint fro memory with
29227         known offset.
29228
29229 2013-04-19  Richard Biener  <rguenther@suse.de>
29230
29231         PR tree-optimization/56982
29232         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
29233         function.
29234         * gimplify.c (gimplify_call_expr): Notice special calls.
29235         (gimplify_modify_expr): Likewise.
29236         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
29237         abnormal control flow receivers.
29238         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
29239         in the same way as cfun->has_nonlocal_labels.
29240         (gimple_purge_dead_abnormal_call_edges): Likewise.
29241         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
29242         receivers start a basic-block.
29243
29244 2013-04-19  Richard Biener  <rguenther@suse.de>
29245
29246         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
29247         member ...
29248         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
29249         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
29250         (SLP_TREE_LOAD_PERMUTATION): Add.
29251         (vect_transform_slp_perm_load): Adjust prototype.
29252         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
29253         (vect_free_slp_instance): Likewise.
29254         (vect_create_new_slp_node): Likewise.
29255         (vect_supported_slp_permutation_p): Remove.
29256         (vect_slp_rearrange_stmts): Adjust.
29257         (vect_supported_load_permutation_p): Likewise.  Inline
29258         vect_supported_slp_permutation_p here.
29259         (vect_analyze_slp_instance): Compute load permutations per
29260         slp node instead of per instance.
29261         (vect_get_slp_defs): Adjust.
29262         (vect_transform_slp_perm_load): Likewise.
29263         (vect_schedule_slp_instance): Remove redundant code.
29264         (vect_schedule_slp): Remove hack for PR56270, add it ...
29265         * tree-vect-stmts.c (vectorizable_load): ... here, do not
29266         CSE loads for SLP.  Adjust.
29267
29268 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
29269
29270         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
29271         spelling in two comments.
29272
29273 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
29274
29275         PR target/56797
29276         * config/arm/arm.c (load_multiple_sequence): Require SP
29277         as base register for loads if SP is in the register list.
29278
29279 2013-04-19  Martin Jambor  <mjambor@suse.cz>
29280
29281         PR tree-optimization/56718
29282         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
29283         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
29284         and made public.  Adjusted all callers.
29285         (ipa_intraprocedural_devirtualization): New function.
29286         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
29287         (ipa_intraprocedural_devirtualization): Likewise.
29288         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
29289
29290 2013-04-19  Richard Biener  <rguenther@suse.de>
29291
29292         PR tree-optimization/57000
29293         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
29294
29295 2013-04-19  Terry Guo  <terry.guo@arm.com>
29296
29297         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
29298         Replace with ...
29299         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
29300         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
29301         (cortex_m4_fmacs): Use new reservations.
29302         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
29303
29304 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
29305
29306         PR rtl-optimization/56999
29307         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
29308         related code.
29309         (lra_coalesce): Remove split_origin_bitmap and related code.
29310         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
29311         ranges if necessary.
29312
29313 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
29314
29315         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
29316         New array.
29317         (ix86_expand_call): Remove clobbered_registers array and use
29318         x86_64_ms_sysv_extra_clobbered_registers instead.
29319         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
29320         Declare here.
29321         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
29322         predicate.
29323         * config/i386/i386.md (*call_rex64_ms_sysv): Use
29324         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
29325         (*call_value_rex64_ms_sysv): Ditto.
29326
29327 2013-04-18  Cary Coutant  <ccoutant@google.com>
29328
29329         * dwarf2out.c (output_pubnames): Check die_perennial_p of
29330         parent instead of die_mark.
29331
29332 2013-04-18  Diego Novillo  <dnovillo@google.com>
29333
29334         * gimple.c (create_gimple_tmp): New.
29335         (get_expr_type): New.
29336         (build_assign): New.
29337         (build_type_cast): New.
29338         * gimple.h (enum ssa_mode): Define.
29339         (gimple_seq_set_location): New.
29340         * asan.c (build_check_stmt): Change some gimple_build_* calls
29341         to use build_assign and build_type_cast.
29342
29343 2013-04-18  Richard Biener  <rguenther@suse.de>
29344
29345         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29346         handle negative step.  Remove redundant checks.
29347         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
29348         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
29349         for negative step and grouped loads fail to vectorize.
29350
29351 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29352
29353         * emit-rtl.c (reset_insn_used_flags): New function.
29354         (reset_all_used_flags): Use it.
29355         (verify_insn_sharing): New function.
29356         (verify_rtl_sharing): Fix verification for SEQUENCEs.
29357
29358 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
29359
29360         PR tree-optimization/56984
29361         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
29362         and (x >> M) >= N don't register any assertion if N << M is the
29363         minimum value.
29364
29365 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29366
29367         * lower-subreg.c (resolve_simple_move): If called self-recursive,
29368         do not delete_insn insns that have not yet been emitted, only
29369         unlink them with remove_insn.
29370         * df-scan.c (df_insn_delete): Revert r197492.
29371
29372 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
29373
29374         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
29375         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
29376
29377 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
29378
29379         * config/arm/arm.md (movsicc_insn): Convert define_insn into
29380         define_insn_and_split.
29381         (and_scc,ior_scc,negscc): Likewise.
29382         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
29383
29384 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
29385
29386         * config/arm/arm.c (use_return_insn): Return 0 for targets that
29387         can benefit from using a sequence of LDRD instructions in epilogue
29388         instead of a single LDM instruction.
29389
29390 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29391
29392         PR 45688
29393         * doc/extend.texi: Fix typo.
29394
29395 2013-04-17  Richard Biener  <rguenther@suse.de>
29396
29397         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
29398         (vect_build_slp_tree): ... here.
29399         (vect_build_slp_tree_1): Compute which stmts of the SLP group
29400         match.  Remove special-casing of mismatched complex loads.
29401         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
29402         re-try the match with swapped commutative operands.
29403         (vect_supported_load_permutation_p): Remove special-casing of
29404         mismatched complex loads.
29405         (vect_analyze_slp_instance): Adjust.
29406
29407 2013-04-17  Richard Biener  <rguenther@suse.de>
29408
29409         PR rtl-optimization/56921
29410         * cfgloop.h (struct loop): Add simple_loop_desc member.
29411         (struct niter_desc): Mark with GTY(()).
29412         (simple_loop_desc): Do not use aux field but simple_loop_desc.
29413         * loop-iv.c (get_simple_loop_desc): Likewise.
29414         (free_simple_loop_desc): Likewise.
29415
29416         Revert
29417         2013-04-16  Richard Biener  <rguenther@suse.de>
29418
29419         PR rtl-optimization/56921
29420         * loop-init.c (pass_rtl_move_loop_invariants): Add
29421         TODO_do_not_ggc_collect to todo_flags_finish.
29422         (pass_rtl_unswitch): Same.
29423         (pass_rtl_unroll_and_peel_loops): Same.
29424         (pass_rtl_doloop): Same.
29425
29426 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
29427
29428         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
29429         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
29430         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
29431         references.
29432         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
29433         * tree-streamer.c (record_common_node): Adjust reference in comment.
29434
29435 2013-04-17  Terry Guo  <terry.guo@arm.com>
29436
29437         * config/arm/cortex-m4.md: Add a new bypass.
29438
29439 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29440
29441         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
29442         New pattern.
29443         (*subs_<optab><mode>_multp2): New pattern.
29444         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29445         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29446
29447 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29448
29449         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
29450         (*subs_mul_imm_<mode>): New pattern.
29451
29452 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
29453
29454         PR target/56948
29455         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
29456         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
29457         (vsx_movti_32bit): Change j->wa to O->wa.
29458
29459 2013-04-16  Richard Biener  <rguenther@suse.de>
29460
29461         PR rtl-optimization/56921
29462         * loop-init.c (pass_rtl_move_loop_invariants): Add
29463         TODO_do_not_ggc_collect to todo_flags_finish.
29464         (pass_rtl_unswitch): Same.
29465         (pass_rtl_unroll_and_peel_loops): Same.
29466         (pass_rtl_doloop): Same.
29467
29468 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
29469
29470         * config/arm/arm.c (emit_multi_reg_push): New declaration
29471         for an existing function.
29472         (arm_emit_strd_push): New function.
29473         (arm_expand_prologue): Used here.
29474         (arm_emit_ldrd_pop): New function.
29475         (arm_expand_epilogue): Used here.
29476         (arm_get_frame_offsets): Update condition.
29477         (arm_emit_multi_reg_pop): Add a special case for load of a single
29478         register with writeback.
29479
29480 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
29481
29482         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
29483         description.
29484
29485 2013-04-16  Richard Biener  <rguenther@suse.de>
29486
29487         PR tree-optimization/56756
29488         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
29489         (first_mem_ref_loc): New.
29490         (execute_sm): Place the load temporarily before a previous
29491         access instead of in the latch edge to ensure its SSA dependencies
29492         are defined at points dominating the load.
29493
29494 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
29495
29496         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
29497         correct fix by moving header and footer insn to the footer of
29498         the merged basic block.  Clear BB_END of the merged-away block.
29499
29500         PR middle-end/43631
29501         * emit-rtl.c (make_note_raw): New function.
29502         (link_insn_into_chain): New static inline function.
29503         (add_insn): Use it.
29504         (add_insn_before, add_insn_after): Factor insn chain linking code...
29505         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
29506         using link_insn_into_chain.
29507         (note_outside_basic_block_p): New helper function for emit_note_after
29508         and emit_note_before.
29509         (emit_note_after): Use nobb variant of add_insn_after if the note
29510         should not be contained in a basic block.
29511         (emit_note_before): Use nobb variant of add_insn_before if the note
29512         should not be contained in a basic block.
29513         (emit_note_copy): Use make_note_raw.
29514         (emit_note): Likewise.
29515         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
29516         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
29517         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
29518         the moved barrier the tail of the basic block it follows.
29519         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
29520
29521 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
29522
29523         PR tree-optimization/56962
29524         * gimple-ssa-strength-reduction.c (record_increment): Only set
29525         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
29526         either rhs1 or rhs2 is equal to c->base_expr.
29527
29528 2013-04-15  Richard Biener  <rguenther@suse.de>
29529
29530         PR tree-optimization/56933
29531         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
29532         member.
29533         (GROUP_READ_WRITE_DEPENDENCE): Remove.
29534         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
29535         * tree-vect-data-refs.c (vect_analyze_group_access): Move
29536         dependence check ...
29537         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
29538         ... here.
29539         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
29540         GROUP_READ_WRITE_DEPENDENCE.
29541
29542 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29543
29544         * emit-rtl.c (reset_all_used_flags): New function.
29545         (verify_rtl_sharing): Call reset_all_used_flags before and after
29546         performing the checks.
29547
29548 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29549
29550         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
29551         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
29552         * config/arm/constraints.md (De): New constraint.
29553         * config/arm/neon.md (anddi3_neon): Delete.
29554         (neon_vand<mode>): Expand to standard anddi3 pattern.
29555         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
29556         Move earlier in the file.
29557         (neon_inv_logic_op2): Likewise.
29558         (arm_anddi_operand_neon): New predicate.
29559
29560 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29561
29562         * configure.ac (gcc_cv_ld_as_needed): Set
29563         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
29564         Use -z ignore, -z record on *-*-solaris2*.
29565         (HAVE_LD_AS_NEEDED): Update comment.
29566         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
29567         * configure: Regenerate.
29568         * config.in: Regenerate.
29569         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
29570         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
29571         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
29572         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
29573         equivalents.  Fix markup.
29574         * doc/tm.texi: Regenerate.
29575
29576 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
29577
29578         * config/i386/i386.opt: New option mstack-protector-guard=.
29579         * config/i386/i386-opts.h: Add enum stack_protector_guard.
29580         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
29581         TARGET_SSP_TLS_GUARD.
29582         * config/i386/i386.c (ix86_option_override_internal): Set
29583         ix86_stack_protector_guard.
29584         * config/i386/i386.md (stack_protect_set): Enable for
29585         TARGET_SSP_TLS_GUARD only.
29586         (stack_protect_set_<mode>): Ditto.
29587         (stack_protect_test): Ditto.
29588         (stack_protect_test_<mode>): Ditto.
29589         * doc/invoke.texi (i386 Option): Document.
29590
29591 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
29592
29593         PR target/56890
29594         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
29595         (S_MODES): Set H_MODE bit.
29596         (SF_MODES): Set only S_MODE and SF_MODE bits.
29597         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
29598         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
29599         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
29600         <MODE_FLOAT>: Likewise.
29601
29602 2013-04-15  Joey Ye  <joey.ye@arm.com>
29603
29604         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
29605
29606 2013-04-15  Joey Ye  <joey.ye@arm.com>
29607
29608         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
29609         for real far jump.
29610         (thumb_far_jump_used_p): Count instruction size and set
29611         far_jump_used.
29612
29613 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
29614
29615         * reorg.c (fill_simple_delay_slots): Reindent block of code.
29616         * resource.c (mark_target_live_regs): Reformat conditional block.
29617
29618 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
29619
29620         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
29621         notes, they are emitted only just before final.
29622         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
29623
29624 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
29625
29626         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
29627         * cfgrtl.c (delete_insn): Call it here instead.
29628         * lra-spills.c (lra_final_code_change): Use delete_insn.
29629         * haifa-sched.c (sched_remove_insn): Likewise.
29630         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
29631         returning to the nop pool.
29632         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
29633         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
29634
29635 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
29636
29637         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
29638         * doc/tm.texi: Regenerated.
29639
29640 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
29641
29642         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
29643         QImode checks.
29644
29645 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
29646
29647         * df-core.c (df_find_def): Compare register numbers.
29648         (df_find_use): Likewise.
29649
29650 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
29651
29652         PR target/56903
29653         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
29654         lra_in_progress for return.
29655
29656 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
29657
29658         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
29659         define_insn into define_insn_and_split and emit movsicc patterns.
29660
29661 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
29662
29663         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
29664
29665 2013-04-12  Richard Biener  <rguenther@suse.de>
29666
29667         * tree-pass.h (TODO_do_not_ggc_collect): New.
29668         * passes.c (execute_one_ipa_transform_pass): Honor
29669         TODO_do_not_ggc_collect.
29670         (execute_one_pass): Likewise.
29671
29672         Revert
29673         2013-04-10  Richard Biener  <rguenther@suse.de>
29674
29675         * passes.c (init_optimization_passes): Remove reload pass.
29676         * ira.c (do_reload): Merge into ...
29677         (ira): ... this.
29678         (rest_of_handle_reload): Remove.
29679         (pass_reload): Likewise.
29680         * config/i386/i386.c (ix86_option_override): Refer to ira instead
29681         of reload for vzeroupper pass placement.
29682
29683 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
29684
29685         PR tree-optimization/56918
29686         PR tree-optimization/56920
29687         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
29688         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
29689         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
29690         use wide_mul_with_sign method.
29691
29692 2013-04-12  Richard Biener  <rguenther@suse.de>
29693
29694         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
29695         not be considered a gimple constant.
29696
29697 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
29698
29699         * fold-const.c (const_binop): Handle vector shifts by a scalar.
29700         (fold_binary_loc): Call const_binop also for mixed vector-scalar
29701         operations.
29702
29703 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29704             Jakub Jelinek  <jakub@redhat.com>
29705
29706         * opts.c: Include diagnostic-color.h.
29707         (common_handle_option): Handle OPT_fdiagnostics_color_.
29708         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
29709         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
29710         (diagnostic-color.o): New.
29711         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
29712         (diagnostic_color_rule): New enum.
29713         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
29714         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
29715         the location string.
29716         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
29717         either NULL, or color kind.
29718         * diagnostic-color.c: New file.
29719         * diagnostic-color.h: New file.
29720         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
29721         arguments.
29722         * doc/invoke.texi (-fdiagnostics-color): Document.
29723         * pretty-print.h (pp_show_color): Define.
29724         (struct pretty_print_info): Add show_color field.
29725         * diagnostic.c: Include diagnostic-color.h.
29726         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
29727         macros.  Colorize error:, warning: etc. strings and also the location
29728         string.
29729         (diagnostic_show_locus): Colorize the caret line.
29730         * pretty-print.c: Include diagnostic-color.h.
29731         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
29732         inside of %< %> quotes or quoted through q format modifier.
29733
29734 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29735
29736         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
29737
29738 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29739
29740         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
29741         code in CC_NZ mode.
29742         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
29743         pattern.
29744
29745 2013-04-11  Marek Polacek  <polacek@redhat.com>
29746
29747         PR tree-optimization/48184
29748         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
29749
29750 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
29751
29752         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
29753         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
29754         (skip_simple_arithmetic): Tidy up.
29755         * tree.h (skip_simple_constant_arithmetic): Declare.
29756
29757 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29758
29759         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
29760
29761 2013-04-11  Richard Biener  <rguenther@suse.de>
29762
29763         * tree-vect-loop.c (get_initial_def_for_induction): Properly
29764         generate vector constants.
29765
29766 2013-04-11  Richard Biener  <rguenther@suse.de>
29767
29768         PR tree-optimization/56878
29769         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
29770         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
29771         New function.
29772         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29773         Prefer to align the DR with the most invariant base address.
29774
29775 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29776
29777         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
29778         comment.
29779
29780 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
29781
29782         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
29783         floating-point vector comparisons against 0.
29784
29785 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
29786
29787         PR tree-optimization/56899
29788         * fold-const.c (extract_muldiv_1): Apply distributive law
29789         only if TYPE_OVERFLOW_WRAPS (ctype).
29790
29791 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
29792
29793         PR target/56124
29794         * ira-costs.c (scan_one_insn): Check whether the source rtx of
29795         loading has side effect.
29796
29797 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
29798
29799         * config/sparc/sparc.c: Include tree-pass.h.
29800         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
29801         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
29802         head of file.  Change return type.  Split off gate function.
29803         (sparc_gate_work_around_errata): New function.
29804         (pass_work_around_errata): New pass definition.
29805         (insert_pass_work_around_errata) New pass insert definition to
29806         insert pass_work_around_errata just after delayed-branch scheduling.
29807         (sparc_option_override): Insert the pass.
29808         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
29809
29810 2013-04-10  David S. Miller  <davem@davemloft.net>
29811
29812         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
29813         or -mcpu=hypersparc.
29814
29815         * target.def (cstore_mode): New hook.
29816         * target.h: Include insn-codes.h
29817         * targhooks.c: Likewise.
29818         (default_cstore_mode): New function.
29819         * targhooks.h: Declare it.
29820         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
29821         * doc/tm.texi: Rebuild.
29822         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
29823         target hook, rather than inspecting the insn_data.
29824         * config/sparc/sparc.c (sparc_cstore_mode): New function.
29825         (TARGET_CSTORE_MODE): Redefine.
29826         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
29827         result patterns.
29828         * config/sparc/predicates.md (cstore_result_operand): New special
29829         predicate.
29830         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
29831         Use it for operand 0.
29832         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
29833         (*snesi_special): Likewise.
29834         (*snesi_zero): Likewise.
29835         (*seqsi_zero): Likewise.
29836         (*sltu_insn): Likewise.
29837         (*sgeu_insn): Likewise.
29838         (*seqdi_special): Make operand 0 and comparison operation be of
29839         DImode.
29840         (*snedi_special): Likewise.
29841         (*snedi_special_vis3): Likewise.
29842         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
29843         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
29844         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
29845         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
29846         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
29847         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
29848         (*sltu_extend_sp64): Likewise.
29849         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
29850         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
29851         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
29852         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
29853         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
29854
29855 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
29856
29857         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
29858         (aarch64_start_file): Use the new function.
29859
29860 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29861             Jason Merrill  <jason@redhat.com>
29862
29863         * common.opt: Add -gdwarf.
29864         * opts.c (common_handle_option): Handle it.
29865         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
29866
29867 2013-04-10  Richard Biener  <rguenther@suse.de>
29868
29869         * passes.c (execute_todo): Do not call ggc_collect conditional here.
29870         (execute_one_ipa_transform_pass): But unconditionally here.
29871         (execute_one_pass): And here.
29872         (init_optimization_passes): Remove reload pass.
29873         * tree-pass.h (TODO_ggc_collect): Remove.
29874         (pass_reload): Likewise.
29875         * ira.c (do_reload): Merge into ...
29876         (ira): ... this.
29877         (rest_of_handle_reload): Remove.
29878         (pass_reload): Likewise.
29879         * config/i386/i386.c (ix86_option_override): Refer to ira instead
29880         of reload for vzeroupper pass placement.
29881         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
29882         and todo_flags_finish of all passes.
29883
29884 2013-04-10  Richard Biener  <rguenther@suse.de>
29885
29886         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
29887         first_const_oprnd field, rename first_def_type to first_op_type.
29888         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
29889         (vect_get_and_check_slp_defs): Always use the type of the
29890         operand.  Allow mixed vect_external_def, vect_constant_def types.
29891         (vect_get_constant_vectors): Handle mixed vect_external_def,
29892         vect_constant_def types.
29893
29894 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
29895
29896         PR tree-optimization/55524
29897         * tree-ssa-math-opts.c
29898         (convert_mult_to_fma): Don't use an fms construct
29899         when we don't have an fms operation, but fnma, and it looks
29900         likely that we'll be able to use the latter.
29901
29902 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
29903
29904         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
29905         function.
29906         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
29907         inline fail caused by overwritable functions.
29908
29909 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
29910
29911         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
29912         unnecessary bits in the constant power of two case.
29913
29914 2013-04-10  Richard Biener  <rguenther@suse.de>
29915
29916         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
29917         broken code swapping operands.
29918         (vect_build_slp_tree): Do not compute load permutations here.
29919         (vect_analyze_slp_instance): Compute load permutations here,
29920         after building the SLP tree.
29921
29922 2013-04-09  Christian Bruel  <christian.bruel@st.com>
29923
29924         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
29925         of next/prev_real_insn.
29926
29927 2013-04-09  Jan Hubicka  <jh@suse.cz>
29928
29929         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
29930         Drop aliased parameter.
29931         (function_and_variable_visibility): Do not handle alias pairs.
29932         * cgraph.c (varpool_externally_visible_p): Update prototype.
29933         * varpool.c (varpool_add_new_variable): Update.
29934
29935 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29936
29937         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
29938
29939 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
29940
29941         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
29942
29943         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
29944
29945 2013-04-09  Marek Polacek  <polacek@redhat.com>
29946
29947         PR tree-optimization/48762
29948         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
29949
29950 2013-04-09  Richard Biener  <rguenther@suse.de>
29951
29952         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
29953         dealing with cost.
29954         (vect_build_slp_tree): Likewise.
29955         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
29956         calculating the cost of a SLP instance.
29957         (vect_analyze_slp_instance): Use it from here, after building
29958         the SLP tree.
29959
29960 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
29961
29962         PR middle-end/56883
29963         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
29964         expand_omp_for_static_chunk): Use simple_p = true in
29965         force_gimple_operand_gsi calls when assigning to addressable decls.
29966
29967 2013-04-09  Jeff Law  <law@redhat.com>
29968
29969         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
29970         when the boolean was created by converting a wider object which
29971         had a boolean range.
29972
29973 2013-04-09  Richard Biener  <rguenther@suse.de>
29974
29975         * tree-vectorizer.h (slp_void_p): Remove.
29976         (slp_tree): Typedef before _slp_tree declaration.
29977         (struct _slp_tree): Use a vector of slp_tree as children.
29978         (vect_get_place_in_interleaving_chain): Remove.
29979         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
29980         Move ...
29981         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
29982         and make static.
29983         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
29984         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
29985         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
29986         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
29987         Use slp_node instead of slp_void_p and adjust.
29988
29989 2013-04-09  Richard Biener  <rguenther@suse.de>
29990
29991         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
29992         work that is not necessary.
29993
29994 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
29995
29996         PR tree-optimization/56854
29997         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
29998         forward into clobber stmts if it would change MEM_REF lhs into
29999         non-MEM_REF.
30000
30001 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
30002
30003         * tree.c (type_hash_lookup, type_hash_add): Make static.
30004         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
30005
30006 2013-04-09  Richard Biener  <rguenther@suse.de>
30007
30008         * tree.h (unsave_expr_now): Remove.
30009         * tree-inline.c (mark_local_for_remap_r): Remove.
30010         (unsave_expr_1): Likewise.
30011         (unsave_r): Likewise.
30012         (unsave_expr_now): Likewise.
30013         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
30014         (propagate_tree_value): Likewise.
30015
30016 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
30017
30018         * doc/rtl.texi (sequence): Rewrite documentation to match the
30019         current use of SEQUENCE rtl objects.
30020         * rtl.def (SEQUENCE): Likewise.
30021
30022         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
30023         Update documentation.
30024         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
30025         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
30026
30027         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
30028
30029 2013-04-08  Teresa Johnson  <tejohnson@google.com>
30030
30031         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
30032         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
30033         methods.
30034         (estimate_edge_size_and_time): Add comment to suggest using rounding
30035         methods.
30036         (estimate_node_size_and_time): Ditto.
30037         (remap_edge_change_prob): Use helper rounding divide methods.
30038         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
30039         (gimple_mod_pow2_value_transform): Ditto.
30040         (gimple_mod_subtract_transform): Ditto.
30041         (gimple_ic_transform): Ditto.
30042         (gimple_stringops_transform): Ditto.
30043         * stmt.c (conditional_probability): Ditto.
30044         (emit_case_dispatch_table): Ditto.
30045         * lto-cgraph.c (merge_profile_summaries): Ditto.
30046         * tree-optimize.c (execute_fixup_cfg): Ditto.
30047         * cfgcleanup.c (try_forward_edges): Ditto.
30048         * cfgloopmanip.c (scale_loop_profile): Ditto.
30049         (loopify): Ditto.
30050         (duplicate_loop_to_header_edge): Ditto.
30051         (lv_adjust_loop_entry_edge): Ditto.
30052         * tree-vect-loop.c (vect_transform_loop): Ditto.
30053         * profile.c (compute_branch_probabilities): Ditto.
30054         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
30055         * lto-streamer-in.c (input_cfg): Ditto.
30056         * gimple-streamer-in.c (input_bb): Ditto.
30057         * ipa-cp.c (update_profiling_info): Ditto.
30058         (update_specialized_profile): Ditto.
30059         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
30060         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
30061         rounding methods.
30062         * sched-rgn.c (compute_dom_prob_ps): Ditto.
30063         (compute_trg_info): Ditto.
30064         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
30065         (purge_dead_edges): Ditto.
30066         * loop-unswitch.c (unswitch_loop): Ditto.
30067         * cgraphclones.c (cgraph_clone_edge): Ditto.
30068         (cgraph_clone_node): Ditto.
30069         * tree-inline.c (copy_bb): Ditto.
30070         (copy_edges_for_bb): Ditto.
30071         (initialize_cfun): Ditto.
30072         (copy_cfg_body): Ditto.
30073         (expand_call_inline): Ditto.
30074
30075 2013-04-08  Kai Tietz  <ktietz@redhat.com>
30076
30077         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
30078         TARGET_CYGWIN64 by TARGET_64BIT.
30079
30080 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
30081
30082         * config/epiphany/epiphany.md (GPR_1): New constant.
30083         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
30084         * config/epiphany/epiphany.c (gen_compare_reg):
30085         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
30086         is already in place.
30087         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
30088         Don't require being called during rtl expansion; If y operlaps r0,
30089         return 0.
30090         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
30091         (epiphany_expand_epilogue): Likewise.
30092
30093         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
30094         Don't use CC_FPmode for ORDERED / UNORDERED.
30095         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
30096
30097         * config/epiphany/constraints.md (CnL): New constraint.
30098         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
30099         * config/epiphany/predicates.md (add_operand): Allow 1024.
30100
30101         * config/epiphany/epiphany.md (logical_op): New code iterator.
30102         (op_mnc): New code attribute.
30103         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
30104         (mov_f+1, mov_f+2): New peephole2 patterns.
30105
30106         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
30107         (cstoresi4): Also allow re-use of zero result when doing a NE
30108         comparison to a non-zero operand.
30109         Use (clobber (scratch)) for first insn if the gpr output is not needed.
30110
30111         * config/epiphany/epiphany.md (<insn_opname>v2si3):
30112         Use gen_addsi3_i / gen_subsi3_i.
30113
30114 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
30115
30116         PR c++/34949
30117         PR c++/50243
30118         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
30119         contain anything but clobbers, at most one __builtin_stack_restore,
30120         optionally debug stmts and final resx, and if it has at least one
30121         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
30122         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
30123         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
30124         which isn't defaut definition, remove them.
30125         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
30126         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
30127         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
30128         with MEM_REF LHS with SSA_NAME address.
30129
30130 2013-04-08  Jeff Law  <law@redhat.com>
30131
30132         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
30133
30134 2013-04-08  Richard Biener  <rguenther@suse.de>
30135
30136         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
30137         extra newline.
30138         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
30139         determined vector type.
30140         (vect_analyze_data_refs): Likewise.
30141         (vect_get_new_vect_var): Adjust.
30142         (vect_create_destination_var): Preserve SSA name versions.
30143         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
30144         not dump anything here.
30145
30146 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
30147
30148         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
30149         Add member lr_slot_known.
30150         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
30151         if necessary.
30152         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
30153         Remove code that sets lr_slot_offset according to what a previous
30154         version of epiphany_emit_save_restore used to do.
30155         (epiphany_emit_save_restore): When doing an lr save or restore,
30156         set/verify lr_slot_known and lr_slot_offset.
30157
30158 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
30159
30160         PR target/54338
30161         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
30162         in ALL_REGS.
30163
30164 2013-04-08  Richard Biener  <rguenther@suse.de>
30165
30166         * alias.c (find_base_term): Fix thinko in previous change.
30167
30168 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
30169
30170         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
30171         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
30172         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
30173         if possible to compute val.
30174         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
30175         For QImode integers don't require anything about precision.  Use
30176         const_with_all_bytes_same to find out if the constant doesn't have
30177         repeated bytes in it.
30178
30179 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30180
30181         * config/s390/s390.c (s390_expand_insv): Only accept insertions
30182         within mode size.
30183
30184 2013-04-08  Marek Polacek  <polacek@redhat.com>
30185
30186         PR rtl-optimization/48182
30187         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
30188         value to 1.
30189
30190 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30191
30192         PR target/55487
30193         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
30194         nuses, make sure we have a label.
30195
30196 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30197
30198         PR target/56843
30199         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
30200         (rs6000_emit_swdiv_low_precision): Remove.
30201         (rs6000_emit_swdiv): Rewrite to handle between one and four
30202         iterations of Newton-Raphson generally; modify required number of
30203         iterations for some cases.
30204         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
30205
30206 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
30207
30208         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
30209         set-but-unused variable.
30210
30211         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
30212         basic blocks of released function bodies garbage-collectable.
30213
30214         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
30215         (struct rtl_opt_pass): Add TODO_df_finish.
30216
30217         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
30218
30219 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30220
30221         * config/arm/constraints.md (q): New constraint.
30222         * config/arm/ldrdstrd.md: New file.
30223         * config/arm/arm.md (ldrdstrd.md) New include.
30224         (arm_movdi): Use "q" instead of "r" constraint
30225         for double-word memory access.
30226         (movdf_soft_insn): Likewise.
30227         * config/arm/vfp.md (movdi_vfp): Likewise.
30228         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
30229         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
30230         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
30231         (mem_ok_for_ldrd_strd): Likewise.
30232         (output_move_double): Update assertion.
30233
30234 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30235
30236         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
30237
30238 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30239
30240         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
30241         define_insn_and_split.
30242         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
30243
30244 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30245
30246         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
30247         define_insn_and_split.
30248         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
30249         (shiftsi3_compare): New pattern.
30250         (rrx): New pattern.
30251         * config/arm/unspecs.md (UNSPEC_RRX): New.
30252
30253 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30254
30255         * config/arm/arm.md (negdi_extendsidi): New pattern.
30256         (negdi_zero_extendsidi): Likewise.
30257
30258 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30259
30260         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
30261         define_insn_and_split.
30262         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
30263         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
30264
30265 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30266
30267         * config/arm/arm.md (arm_subdi3): Convert define_insn into
30268         define_insn_and_split.
30269         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
30270         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
30271
30272 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30273
30274         * config/arm/arm.md (subsi3_carryin): New pattern.
30275         (subsi3_carryin_const): Likewise.
30276         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
30277         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
30278
30279 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30280
30281         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
30282
30283 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30284
30285         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
30286         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
30287
30288 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30289
30290         * config/arm/arm.c (arm_expand_builtin): Change fcode
30291         type to unsigned int.
30292
30293 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30294
30295         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
30296
30297 2013-04-04  Ian Lance Taylor  <iant@google.com>
30298
30299         * doc/standards.texi (Standards): The Go frontend supports the Go 1
30300         language standard.
30301
30302 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
30303
30304         PR middle-end/56729
30305         * df-scan.c (df_insn_delete): Disable failing assert.
30306
30307 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30308
30309         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
30310         New function prototype.
30311         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
30312         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
30313         (arm_builtin_vectorized_function): New function.
30314
30315 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30316
30317         * config/arm/arm_neon_builtins.def: New file.
30318         * config/arm/arm.c (neon_builtin_data): Move contents to
30319         arm_neon_builtins.def.
30320         (enum arm_builtins): Include neon builtin definitions.
30321         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
30322         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
30323
30324 2013-04-04  Marek Polacek  <polacek@redhat.com>
30325
30326         PR tree-optimization/48186
30327         * predict.c (maybe_hot_frequency_p): Return false if
30328         HOT_BB_FREQUENCY_FRACTION is 0.
30329         (cgraph_maybe_hot_edge_p): Likewise.
30330
30331 2013-04-04  Richard Biener  <rguenther@suse.de>
30332
30333         PR tree-optimization/56826
30334         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
30335         more accurately.
30336
30337 2013-04-04  Richard Biener  <rguenther@suse.de>
30338
30339         PR tree-optimization/56213
30340         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
30341         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
30342
30343 2013-04-04  Richard Biener  <rguenther@suse.de>
30344
30345         PR tree-optimization/56837
30346         * tree-loop-distribution.c (classify_partition): For non-zero
30347         values require that the value has the same precision as its
30348         mode to be useful as memset value.
30349
30350 2013-04-03  Nick Clifton  <nickc@redhat.com>
30351
30352         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
30353         (fmssf4): Use fmsf.s on E3V5 architectures.
30354         (fnmasf4): Use fnmaf.s on E3V5 architectures.
30355         (fnmssf4): Use fnmsf.s on E3V5 architectures.
30356
30357 2013-04-03  Jeff Law  <law@redhat.com>
30358
30359         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
30360         (lra-eliminations.o): Likewise.
30361
30362 2013-04-03  Teresa Johnson  <tejohnson@google.com>
30363
30364         * gcov-io.c (compute_working_sets): Moved most of body of old
30365         compute_working_sets here from profile.c.
30366         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
30367         (gcov_working_set_t): Moved typedef here from basic-block.h
30368         (compute_working_set): Declare.
30369         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
30370         (get_working_sets): Renamed from compute_working_set,
30371         replace most of body with call to new compute_working_sets.
30372         (get_exec_counts): Replace call to compute_working_sets
30373         to get_working_sets.
30374         * profile.h (get_working_sets): Renamed from compute_working_set.
30375         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
30376         to get_working_sets.
30377         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
30378         * gcov-dump.c (dump_working_sets): New function.
30379
30380 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
30381
30382         * hwint.c (sext_hwi, zext_hwi): New functions.
30383         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
30384         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
30385         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
30386         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
30387         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
30388         (sext_hwi, zext_hwi): New functions.
30389
30390 2013-04-03  Jeff Law  <law@redhat.com>
30391
30392         PR tree-optimization/56799
30393         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
30394         back test for widening conversion erroneously dropped in prior change.
30395
30396 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30397
30398         PR target/56809
30399         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
30400         instead of next_real_insn.
30401
30402 2013-04-03  Marek Polacek  <polacek@redhat.com>
30403
30404         PR sanitizer/55702
30405         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
30406
30407 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30408
30409         PR target/56809
30410         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
30411         next_real_insn.
30412         (thumb1_output_casesi): Likewise.
30413         (thumb2_output_casesi): Likewise.
30414
30415 2013-04-03  Richard Biener  <rguenther@suse.de>
30416
30417         PR tree-optimization/56817
30418         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
30419         Split out ...
30420         (tree_unroll_loops_completely_1): ... new function to manually
30421         walk the loop tree, properly defering outer loops of unrolled
30422         loops to later iterations.
30423
30424 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30425
30426         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
30427         (vectorizable_load): Likewise.
30428         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
30429         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
30430
30431 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30432
30433         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
30434         BIT_FIELD_REF.
30435
30436 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30437
30438         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
30439
30440 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
30441
30442         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
30443
30444 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30445
30446         PR tree-optimization/56790
30447         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
30448         folding.
30449
30450 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30451
30452         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30453         Handle VEC_MERGE.
30454         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
30455         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
30456         equal arguments.
30457
30458 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
30459
30460         PR c/19449
30461         * tree.h (force_folding_builtin_constant_p): New decl.
30462         * builtins.c (force_folding_builtin_constant_p): New variable.
30463         (fold_builtin_constant_p): Fold immediately also if
30464         force_folding_builtin_constant_p.
30465
30466 2013-04-03  Richard Biener  <rguenther@suse.de>
30467
30468         PR tree-optimization/56812
30469         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
30470         DRs of the same interleaving chain are independent.
30471
30472 2013-04-02  Jason Merrill  <jason@redhat.com>
30473
30474         * gdbinit.in (pbb): Use debug fn.
30475
30476 2013-04-02  Lawrence Crowl  <crowl@google.com>
30477
30478         * sese.h (struct ivtype_map_elt_s): Remove unused.
30479         (extern debug_ivtype_map): Remove unused.
30480         (extern eq_ivtype_map_elts): Remove unused.
30481         * sese.c (debug_ivtype_map): Removed unused.
30482         (debug_ivtype_map_1): Removed unused.
30483         (debug_ivtype_elt): Remove unused.
30484         (eq_ivtype_map_elts): Remove unused.
30485
30486 2013-04-02  Kai Tietz  <ktietz@redhat.com>
30487
30488         PR target/52790
30489         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
30490         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
30491         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
30492         function.
30493         (legitimize_pe_coff_symbol): Likewise.
30494         (is_imported_p): New helper-function.
30495         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
30496         for Windows x64 targets.
30497         (ix86_expand_prologue): Optimize for pe-coff targets.
30498         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
30499         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
30500         medium/large code-model.
30501         (legitimize_pic_address): Likewise.
30502         (legitimize_tls_address): Likewise.
30503         (ix86_expand_call): Likewise.
30504         (x86_output_mi_thunk): Likewise.
30505         (get_dllimport_decl): Add new beimport argument.
30506         (construct_plt_address): Don't assert for x64 pe-coff targets.
30507         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
30508         targets.
30509         (SYMBOL_FLAG_STUBVAR): New macro.
30510         (SYMBOL_REF_STUBVAR_P): Likewise.
30511         * config/i386/winnt.c (stub_list): New structure.
30512         (stub_head): New local variable.
30513         (i386_pe_record_stub): New function.
30514         (i386_pe_file_end): Emit refptr-stubs.
30515
30516 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
30517
30518         PR rtl-optimization/56745
30519         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
30520         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
30521
30522         PR c++/34949
30523         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
30524         and both of them are MEM_REFs, just compare first argument for
30525         equality and attempt to deal even with differing offsets.
30526
30527         PR c++/34949
30528         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
30529         of gimple_clobber_p to be MEM_REF.
30530         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
30531         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
30532         after gimplification.
30533         * asan.c (get_mem_ref_of_assignment): Don't instrument
30534         gimple_clobber_p stmts.
30535         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
30536         gimple_clobber_p stmt if they have MEM_REF lhs and
30537         are dead because of another gimple_clobber_p stmt.
30538         * tree-ssa-live.c (clear_unused_block_pointer): Treat
30539         gimple_clobber_p stmts like debug stmts.
30540         (remove_unused_locals): Remove clobbers with MEM_REF lhs
30541         that refer to unused VAR_DECLs or uninitialized values.
30542         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
30543         gimple_clobber_p stmts if they refer to removed parameters.
30544         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
30545         formatting.
30546
30547 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
30548
30549         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
30550         using SWI48 mode attribute.
30551
30552 2013-04-02  Wei Mi  <wmi@google.com>
30553
30554         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
30555         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
30556         *<rotate_insn><mode>3_mask in i386.md.
30557
30558 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
30559
30560         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
30561
30562 2013-04-02  Richard Biener  <rguenther@suse.de>
30563
30564         PR tree-optimization/56778
30565         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30566         Runtime alias tests are not supported for gather loads.
30567         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
30568         stmts referenced from SSA operands before updating SSA form.
30569
30570 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
30571             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30572
30573         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
30574         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
30575         * config/arm/cortex-a53.md: New file.
30576         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
30577         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
30578         * config/arm/arm.c (arm_issue_rate): Likewise.
30579         * config/arm/arm-tune.md: Regenerate
30580         * config/arm/arm-tables.opt: Regenerate.
30581         * config/arm/arm-cores.def: Add cortex-a53.
30582
30583 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
30584
30585         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
30586         non-static link.
30587
30588 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30589
30590         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
30591         scalar load/store operations using B/H registers.
30592         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
30593
30594 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30595
30596         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
30597         scalar move.
30598         * config/aarch64/aarch64.c
30599         (aarch64_simd_scalar_immediate_valid_for_move): New.
30600         * config/aarch64/aarch64-protos.h
30601         (aarch64_simd_scalar_immediate_valid_for_move): New.
30602         * config/aarch64/constraints.md (Dh, Dq): New.
30603         * config/aarch64/iterators.md (hq): New.
30604
30605 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
30606
30607         * reorg.c (get_branch_condition): Deal with conditional returns.
30608         (fill_simple_delay_slots): Remove dead code dealing with jumps.
30609
30610 2013-04-01  Wei Mi  <wmi@google.com>
30611
30612         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
30613         Truncate operand 2 using %b asm operand modifier.
30614         (*<shift_insn><mode>3_mask): Ditto.
30615         (*<rotate_insn><mode>3_mask): Ditto.
30616
30617 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
30618
30619         PR middle-end/56798
30620         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
30621
30622 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
30623
30624         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
30625         of next_real_insn.
30626         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
30627
30628 2013-03-30  Lawrence Crowl  <crowl@google.com>
30629
30630         * dse.c (clear_alias_sets): Remove never set.
30631         (disqualified_clear_alias_sets): Remove never set.
30632         (clear_alias_mode_pool): Remove never set.
30633         (dse_step0): Remove condition that is never true.
30634         (canon_address): Remove condition that is never true.
30635         (dse_step7): Remove condition that is never true.
30636         (rest_of_handle_dse): Remove condition that is never true.
30637         (rest_of_handle_dse::did_global): Remove never read from above.
30638         (dse_step2_spill): Remove never called from above.
30639         (dse_step5_spill): Remove never called from above.
30640
30641 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
30642
30643         * doc/md.texi (Standard Names) <casesi>: Update documentation for
30644         JUMP_TABLE_DATA changes.
30645         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
30646         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
30647         (Insns) <jump_table_data>: New entry.
30648         * doc/tm.texi: Regenerate.
30649
30650         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
30651
30652         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
30653         for table jump at the end of a basic block using tablejump_p.
30654         * targhooks.c (default_invalid_within_doloop): Likewise.
30655         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
30656         target hook implementation that is identical to the default hook.
30657         (rs6000_invalid_within_doloop): Remove.
30658
30659         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
30660         unused variable from tablejump_p call.
30661
30662         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
30663         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
30664         (INSN_DELETED_P): Likewise.
30665         (emit_jump_table_data): New prototype.
30666         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
30667         after 4th as unused.
30668         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
30669         * sched-vis.c (print_insn): Likewise.
30670         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
30671         insn for compatibility with back ends that use next_active_insn to
30672         identify jump table data.
30673         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
30674         (remove_insn): Likewise.
30675         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
30676         to be emitted.
30677         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
30678         (emit_jump_table_data): New function.
30679
30680         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
30681         basic block, a JUMP_TABLE_DATA never is.
30682         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
30683         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
30684         off from code handling real insns.
30685         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
30686         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
30687         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
30688         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
30689         is not a NONDEBUG_INSN_P.
30690         * ira-costs.c (scan_one_insn): Likewise.
30691         * jump.c (mark_all_labels): Likewise.
30692         (mark_jump_label_1): Likewise.
30693         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30694         * lra.c (get_insn_freq): Expect all insns reaching here to be in
30695         a basic block.
30696         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
30697         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
30698         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
30699         JUMP_TABLE_DATA_P insns.
30700         (calculate_elim_costs_all_insns): Likewise.
30701         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
30702         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
30703         (delete_output_reload): Code style fixups.
30704         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
30705         insn flags on this non-insn.
30706         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
30707         as scheduling barriers, for pre-change compatibility.
30708         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
30709         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
30710
30711         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
30712         redundant JUMP_TABLE_DATA_P test.
30713         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
30714         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30715         (frv_for_each_packet): Likewise.
30716         * config/i386/i386.c (min_insn_size): Likewise.
30717         (ix86_avoid_jump_mispredicts): Likewise.
30718         * config/m32r/m32r.c (m32r_is_insn): Likewise.
30719         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
30720         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30721         (mips16_insn_length): Robustify.
30722         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
30723         (mips16_split_long_branches): Likewise.
30724         * config/pa/pa.c (pa_combine_instructions): Likewise.
30725         * config/rs6000/rs6000.c (get_next_active_insn): Treat
30726         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
30727         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
30728         as contributing to pool range lengths.
30729         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
30730         Remove redundant JUMP_TABLE_DATA_P test.
30731         (sh_loop_align): Likewise.
30732         (split_branches): Likewise.
30733         (sh_insn_length_adjustment): Likewise.
30734         * config/spu/spu.c (get_branch_target): Likewise.
30735
30736 2013-03-29  Jan Hubicka  <jh@suse.cz>
30737
30738         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
30739         gcov streaming; stream hot bb threshold to ltrans.
30740         * predict.c (get_hot_bb_threshold): Break out from ....
30741         (maybe_hot_count_p): ... here.
30742         (set_hot_bb_threshold): New function.
30743         * lto-section-in.c (lto_section_name): Add profile.
30744         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
30745         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
30746         and data-streamer.h
30747         (histogram_entry): New structure.
30748         (histogram, histogram_pool): New global vars.
30749         (histogram_hash): New structure.
30750         (histogram_hash::hash): New method.
30751         (histogram_hash::equal): Likewise.
30752         (account_time_size): New function.
30753         (cmp_counts): New function.
30754         (dump_histogram): New function.
30755         (ipa_profile_generate_summary): New function.
30756         (ipa_profile_write_summary): New function.
30757         (ipa_profile_read_summary): New function.
30758         (ipa_profile): Decide on threshold.
30759         (pass_ipa_profile): Add ipa_profile_write_summary and
30760         ipa_profile_read_summary.
30761         * Makefile.in (ipa.o): Update dependencies.
30762         * lto-streamer.h (LTO_section_ipa_profile): New section.
30763
30764 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
30765
30766         * tree.h (VAR_P): New.
30767
30768 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
30769
30770         PR lto/56777
30771         * doc/invoke.texi ([-fwhole-program]): Fix typo.
30772
30773 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
30774
30775         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
30776         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30777         (control_flow_insn_p): Likewise.
30778         * cfgrtl.c (duplicate_insn_chain): Likewise.
30779         * final.c (get_attr_length_1): Likewise.
30780         (shorten_branches): Likewise.
30781         (final_scan_insn): Likewise.
30782         * function.c (instantiate_virtual_regs): Likewise.
30783         * gcse.c (insert_insn_end_basic_block): Likewise.
30784         * ira-costs.c (scan_one_insn): Likewise.
30785         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30786         * lra.c (check_rtl): Likewise.
30787         * reload1.c (elimination_costs_in_insn): Likewise.
30788         * reorg.c (follow_jumps): Likewise.
30789
30790         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
30791         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30792         (thumb_far_jump_used_p): Likewise.
30793         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
30794         (workaround_speculation): Likewise.
30795         (add_sched_insns_for_speculation): Likewise.
30796         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
30797         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30798         (frv_for_each_packet): Likewise.
30799         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
30800         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
30801         (final_emit_insn_group_barriers): Likewise.
30802         * config/m32r/m32r.c (m32r_is_insn): Likewise.
30803         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30804         (mips16_insn_length): Likewise.
30805         * config/pa/pa.c (pa_reorg): Likewise.
30806         (pa_combine_instructions): Likewise.
30807         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
30808         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
30809         (sh_reorg): Likewise.
30810         (split_branches): Likewise.
30811         * config/spu/spu.c (get_branch_target): Likewise.
30812
30813         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
30814         JUMP_TABLE_DATA_P.
30815
30816 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
30817
30818         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
30819         Fix declaration name.
30820
30821 2013-03-28  Lawrence Crowl  <crowl@google.com>
30822
30823         * graphds.h (struct graph.indicies): Remove unused.
30824         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
30825         (SCOP_ORIGINAL_PDDRS): Remove unused.
30826         * sese.h (extern insert_loop_close_phis): Removed unused.
30827         (extern insert_guard_phis): Removed unused.
30828         (extern ivtype_map_elt_info): Removed unused.
30829         (new_ivtype_map_elt): Removed unused.
30830         * sese.c (ivtype_map_elt_info): Removed unused.
30831
30832 2013-03-28  Lawrence Crowl  <crowl@google.com>
30833
30834         * Makefile.in: Add several missing include dependences.
30835         (DUMPFILE_H): New.
30836         (test-dump.o): New.  This object is not added to any executable,
30837         but is present for ad-hoc testing.
30838         * bitmap.c
30839         (debug (const bitmap_head_def &)): New.
30840         (debug (const bitmap_head_def *)): New.
30841         * bitmap.h
30842         (extern debug (const bitmap_head_def &)): New.
30843         (extern debug (const bitmap_head_def *)): New.
30844         * cfg.c
30845         (debug (edge_def &)): New.
30846         (debug (edge_def *)): New.
30847         * cfghooks.c
30848         (debug (basic_block_def &)): New.
30849         (debug (basic_block_def *)): New.
30850         * dumpfile.h
30851         (dump_node (const_tree, int, FILE *)): Correct source file.
30852         * dwarf2out.c
30853         (debug (die_struct &)): New.
30854         (debug (die_struct *)): New.
30855         * dwarf2out.h
30856         (extern debug (die_struct &)): New.
30857         (extern debug (die_struct *)): New.
30858         * gimple-pretty-print.c
30859         (debug (gimple_statement_d &)): New.
30860         (debug (gimple_statement_d *)): New.
30861         * gimple-pretty-print.h
30862         (extern debug (gimple_statement_d &)): New.
30863         (extern debug (gimple_statement_d *)): New.
30864         * ira-build.c
30865         (debug (ira_allocno_copy &)): New.
30866         (debug (ira_allocno_copy *)): New.
30867         (debug (ira_allocno &)): New.
30868         (debug (ira_allocno *)): New.
30869         * ira-int.h
30870         (extern debug (ira_allocno_copy &)): New.
30871         (extern debug (ira_allocno_copy *)): New.
30872         (extern debug (ira_allocno &)): New.
30873         (extern debug (ira_allocno *)): New.
30874         * ira-lives.c
30875         (debug (live_range &)): New.
30876         (debug (live_range *)): New.
30877         * lra-int.h
30878         (debug (lra_live_range &)): New.
30879         (debug (lra_live_range *)): New.
30880         * lra-lives.c
30881         (debug (lra_live_range &)): New.
30882         (debug (lra_live_range *)): New.
30883         * omega.c
30884         (debug (omega_pb_d &)): New.
30885         (debug (omega_pb_d *)): New.
30886         * omega.h
30887         (extern debug (omega_pb_d &)): New.
30888         (extern debug (omega_pb_d *)): New.
30889         * print-rtl.c
30890         (debug (const rtx_def &)): New.
30891         (debug (const rtx_def *)): New.
30892         * print-tree.c
30893         (debug_tree (tree): Move within file.
30894         (debug_raw (const tree_node &)): New.
30895         (debug_raw (const tree_node *)): New.
30896         (dump_tree_via_hooks (const tree_node *, int)): New.
30897         (debug (const tree_node &)): New.
30898         (debug (const tree_node *)): New.
30899         (debug_verbose (const tree_node &)): New.
30900         (debug_verbose (const tree_node *)): New.
30901         (debug_head (const tree_node &)): New.
30902         (debug_head (const tree_node *)): New.
30903         (debug_body (const tree_node &)): New.
30904         (debug_body (const tree_node *)): New.
30905         (debug_vec_tree (tree): Move and reimplement in terms of dump.
30906         (debug (vec<tree, va_gc> &)): New.
30907         (debug (vec<tree, va_gc> *)): New.
30908         * rtl.h
30909         (extern debug (const rtx_def &)): New.
30910         (extern debug (const rtx_def *)): New.
30911         * sbitmap.c
30912         (debug_raw (simple_bitmap_def &)): New.
30913         (debug_raw (simple_bitmap_def *)): New.
30914         (debug (simple_bitmap_def &)): New.
30915         (debug (simple_bitmap_def *)): New.
30916         * sbitmap.h
30917         (extern debug (simple_bitmap_def &)): New.
30918         (extern debug (simple_bitmap_def *)): New.
30919         (extern debug_raw (simple_bitmap_def &)): New.
30920         (extern debug_raw (simple_bitmap_def *)): New.
30921         * sel-sched-dump.c
30922         (debug (vinsn_def &)): New.
30923         (debug (vinsn_def *)): New.
30924         (debug_verbose (vinsn_def &)): New.
30925         (debug_verbose (vinsn_def *)): New.
30926         (debug (expr_def &)): New.
30927         (debug (expr_def *)): New.
30928         (debug_verbose (expr_def &)): New.
30929         (debug_verbose (expr_def *)): New.
30930         (debug (vec<rtx> &)): New.
30931         (debug (vec<rtx> *)): New.
30932         * sel-sched-dump.h
30933         (extern debug (vinsn_def &)): New.
30934         (extern debug (vinsn_def *)): New.
30935         (extern debug_verbose (vinsn_def &)): New.
30936         (extern debug_verbose (vinsn_def *)): New.
30937         (extern debug (expr_def &)): New.
30938         (extern debug (expr_def *)): New.
30939         (extern debug_verbose (expr_def &)): New.
30940         (extern debug_verbose (expr_def *)): New.
30941         (extern debug (vec<rtx> &)): New.
30942         (extern debug (vec<rtx> *)): New.
30943         * sel-sched-ir.h
30944         (_list_iter_cond_expr): Make inline instead of static.
30945         * sreal.c
30946         (debug (sreal &)): New.
30947         (debug (sreal *)): New.
30948         * sreal.h
30949         (extern debug (sreal &)): New.
30950         (extern debug (sreal *)): New.
30951         * tree.h
30952         (extern debug_raw (const tree_node &)): New.
30953         (extern debug_raw (const tree_node *)): New.
30954         (extern debug (const tree_node &)): New.
30955         (extern debug (const tree_node *)): New.
30956         (extern debug_verbose (const tree_node &)): New.
30957         (extern debug_verbose (const tree_node *)): New.
30958         (extern debug_head (const tree_node &)): New.
30959         (extern debug_head (const tree_node *)): New.
30960         (extern debug_body (const tree_node &)): New.
30961         (extern debug_body (const tree_node *)): New.
30962         (extern debug (vec<tree, va_gc> &)): New.
30963         (extern debug (vec<tree, va_gc> *)): New.
30964         * tree-cfg.c
30965         (debug (struct loop &)): New.
30966         (debug (struct loop *)): New.
30967         (debug_verbose (struct loop &)): New.
30968         (debug_verbose (struct loop *)): New.
30969         * tree-dump.c: Add header dependence.
30970         * tree-flow.h
30971         (extern debug (struct loop &)): New.
30972         (extern debug (struct loop *)): New.
30973         (extern debug_verbose (struct loop &)): New.
30974         (extern debug_verbose (struct loop *)): New.
30975         * tree-data-ref.c
30976         (debug (data_reference &)): New.
30977         (debug (data_reference *)): New.
30978         (debug (vec<data_reference_p> &)): New.
30979         (debug (vec<data_reference_p> *)): New.
30980         (debug (vec<ddr_p> &)): New.
30981         (debug (vec<ddr_p> *)): New.
30982         * tree-data-ref.h
30983         (extern debug (data_reference &)): New.
30984         (extern debug (data_reference *)): New.
30985         (extern debug (vec<data_reference_p> &)): New.
30986         (extern debug (vec<data_reference_p> *)): New.
30987         (extern debug (vec<ddr_p> &)): New.
30988         (extern debug (vec<ddr_p> *)): New.
30989         * tree-ssa-alias.c
30990         (debug (pt_solution &)): New.
30991         (debug (pt_solution *)): New.
30992         * tree-ssa-alias.h
30993         (extern debug (pt_solution &)): New.
30994         (extern debug (pt_solution *)): New.
30995         * tree-ssa-alias.c
30996         (debug (_var_map &)): New.
30997         (debug (_var_map *)): New.
30998         (debug (tree_live_info_d &)): New.
30999         (debug (tree_live_info_d *)): New.
31000         * tree-ssa-alias.h
31001         (extern debug (_var_map &)): New.
31002         (extern debug (_var_map *)): New.
31003         (extern debug (tree_live_info_d &)): New.
31004         (extern debug (tree_live_info_d *)): New.
31005
31006 2013-03-28  Jan Hubicka  <jh@suse.cz>
31007
31008         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
31009
31010 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
31011
31012         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
31013         record only when desired or required.
31014
31015 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
31016
31017         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
31018         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
31019
31020 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31021
31022         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
31023         (*andsi3_compare0_uxtw): New pattern.
31024         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
31025         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
31026
31027 2013-03-28  Jan Hubicka  <jh@suse.cz>
31028
31029         * data-streamer-in.c (streamer_read_gcov_count): New function.
31030         * gimple-streamer-out.c: Include value-prof.h.
31031         (output_gimple_stmt): Output histogram.
31032         (output_bb): Use streamer_write_gcov_count.
31033         * value-prof.c: Include data-streamer.h
31034         (dump_histogram_value): Add HIST_TYPE_MAX.
31035         (stream_out_histogram_value): New function.
31036         (stream_in_histogram_value): New function.
31037         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
31038         (stream_out_histogram_value, stream_in_histogram_value): Declare.
31039         * data-streamer-out.c (streamer_write_gcov_count): New function.
31040         (streamer_write_gcov_count_stream): New function.
31041         * lto-cgraph.c (lto_output_edge): Update counter streaming.
31042         (lto_output_node): Likewise.
31043         (input_node, input_edge): Likewise.
31044         * lto-streamer-out.c (output_cfg): Update streaming.
31045         * lto-streamer-in.c (input_cfg): Likewise.
31046         * data-streamer.h (streamer_write_gcov_count,
31047         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
31048         * gimple-streamer-in.c: Include value-prof.h
31049         (input_gimple_stmt): Input histograms.
31050         (input_bb): Update profile streaming.
31051
31052 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
31053
31054         * genmodes.c (emit_max_int): New function.
31055         (emit_insn_modes_h): Added call to emit_max_function.
31056         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
31057         Added doc.
31058         * machmode.def: Fixed comment.
31059
31060 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
31061
31062         * combine.c (try_combine): Removed useless assert.
31063         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
31064
31065 2013-03-28  Marek Polacek  <polacek@redhat.com>
31066             Richard Biener  <rguenther@suse.de>
31067
31068         PR tree-optimization/56695
31069         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
31070         build signed result of a vector comparison.
31071         * tree-cfg.c (verify_gimple_comparison): Check that a result
31072         of a vector comparison has signed type.
31073
31074 2013-03-28  Richard Biener  <rguenther@suse.de>
31075
31076         PR tree-optimization/37021
31077         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
31078         do not restrict gaps between groups.
31079         * tree-vect-stmts.c (vectorizable_load): Properly account for
31080         a gap between groups.
31081
31082 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
31083
31084         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
31085         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
31086         is not enabled.
31087
31088 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
31089
31090         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
31091         * doc/extend.texi (Named Address Spaces): Ditto.
31092         (Variable Attributes): Ditto.
31093
31094 2013-03-27  Kai Tietz  <ktietz@redhat.com>
31095
31096         * config.build: Add support for cygwin x64 target.
31097         * config.gcc: Likewise.
31098         * config.host: Likewise.
31099         * configure.ac: Likewise
31100         * configure: Regenerated.
31101
31102 2013-03-27  Kai Tietz  <ktietz@redhat.com>
31103
31104         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
31105         * config/i386/t-cygwin-w64: New file.
31106         * config/i386/cygwin-w64.h: New file.
31107         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
31108         and add support for x64-cygwin target.
31109         (CPP_SPEC): Likewise.
31110         (CXX_WRAP_SPEC_LIST): Undefine before define.
31111         (LIBGCJ_SONAME): Use 15 as version.
31112
31113 2013-03-27  Richard Biener  <rguenther@suse.de>
31114
31115         PR tree-optimization/56716
31116         * tree-ssa-structalias.c (perform_var_substitution): Adjust
31117         dumping for ref nodes.
31118
31119 2013-03-27  Martin Jambor  <mjambor@suse.cz>
31120
31121         PR tree-optimization/55334
31122         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
31123         restricted pointers to arrays.
31124
31125 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
31126
31127         * Makefile.in (.SUFFIXES): Add .cc.
31128         (.c.o): Apply same recipe for implicit rule .cc.o.
31129
31130 2013-03-27  Richard Biener  <rguenther@suse.de>
31131
31132         PR tree-optimization/37021
31133         * tree-vect-data-refs.c (vect_check_strided_load): Allow
31134         REALPART/IMAGPART_EXPRs around the supported refs.
31135         * tree-ssa-structalias.c (find_func_aliases): Assume that
31136         floating-point values are not used to transfer pointers.
31137
31138 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
31139
31140         * target.def (TARGET_HAS_IFUNC_P): New target hook.
31141         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
31142         * doc/tm.texi: Regenerate.
31143         * targhooks.h (default_has_ifunc_p): New.
31144         * targhooks.c (default_has_ifunc_p): Ditto.
31145         * config/linux-protos.h: New file.
31146         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
31147         hook for linux which disables support of indirect functions in android.
31148         * config/linux-android.c: New file.
31149         * config/t-linux-android.c: Ditto.
31150         * config.gcc: Added new object file linux-android.o.
31151         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
31152         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
31153         * varasm.c (do_assemble_alias): Likewise.
31154         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
31155         doesn't support indirect functions.
31156         * configure: Regenerate.
31157
31158 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
31159
31160         PR target/56102
31161         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
31162         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
31163         mult-word mode.
31164
31165 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31166
31167         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
31168
31169 2013-03-27  Terry Guo  <terry.guo@arm.com>
31170
31171         * config/arm/arm-cores.def: Added core cortex-r7.
31172         * config/arm/arm-tune.md: Regenerated.
31173         * config/arm/arm-tables.opt: Regenerated.
31174         * doc/invoke.texi: Added entry for core cortex-r7.
31175
31176 2013-03-27  Walter Lee  <walt@tilera.com>
31177
31178         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
31179         double-decrement of next_scratch_regno.
31180
31181 2013-03-27  Walter Lee  <walt@tilera.com>
31182
31183         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
31184         input operands.
31185         (insn_v1mulus): Ditto.
31186         (insn_v2muls): Ditto.
31187
31188 2013-03-27  Walter Lee  <walt@tilera.com>
31189
31190         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
31191         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
31192
31193 2013-03-27  Walter Lee  <walt@tilera.com>
31194
31195         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
31196         (*sibcall_value): Ditto.
31197
31198 2013-03-27  Walter Lee  <walt@tilera.com>
31199
31200         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
31201         (insn_mnz_v8qi): ... this ...
31202         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
31203         vector equivalent.
31204         (insn_v<n>mnz): Replaced by ...
31205         (insn_v1mnz): ... this ...
31206         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
31207         equivalent.
31208         (insn_mz_<mode>): Replaced by ...
31209         (insn_mz_v8qi): ... this ...
31210         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
31211         vector equivalent.
31212         (insn_v<n>mz): Replaced by ...
31213         (insn_v1mz): ... this ...
31214         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
31215         equivalent.
31216
31217 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
31218
31219         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
31220
31221 2013-03-26  Roland McGrath  <mcgrathr@google.com>
31222
31223         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
31224         than fprintf with a non-constant, non-format string.
31225
31226 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
31227
31228         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
31229         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
31230         operand 0 predicate.
31231         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
31232         attribute.  Use general_x64nomem_operand as operand 1 predicate.
31233         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
31234         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
31235         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
31236         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
31237         (mov<mode>_insv_1): Remove expander.  Merge insn with
31238         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
31239         Use general_x64nomem_operand as operand 1 predicate.
31240         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
31241         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
31242         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
31243         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
31244         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
31245         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
31246         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
31247         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
31248         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
31249         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
31250         (general_x64nomem_operand): Ditto.
31251
31252 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31253
31254         * config/rtems.opt: Add -pthread option.
31255
31256 2013-03-26  Richard Biener  <rguenther@suse.de>
31257
31258         * alias.c (find_base_term): Avoid redundant and not used recursion.
31259         (base_alias_check): Get the initial base term from the caller.
31260         (true_dependence_1): Compute and pass base terms to base_alias_check.
31261         (write_dependence_p): Likewise.
31262         (may_alias_p): Likewise.
31263
31264 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
31265
31266         * config/aarch64/aarch64.c (aarch64_classify_address): Support
31267         PC-relative load in SI modes and above only.
31268
31269 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
31270
31271         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
31272         * config/arm/iwmmxt.md (WCGR0): Update.
31273         (WCGR1, WCGR2, WCGR3): Likewise.
31274
31275 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
31276
31277         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
31278         Use x64 and nox64 isa attributes.
31279
31280 2013-03-26  Richard Biener  <rguenther@suse.de>
31281
31282         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
31283         alignment computations and rely on get_object_alignment_1
31284         for the !TYPE_P case.
31285         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
31286
31287 2013-03-26  Walter Lee  <walt@tilera.com>
31288
31289         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
31290         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
31291
31292 2013-03-25  Jeff Law  <law@redhat.com>
31293
31294         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
31295         check for INTEGRAL_TYPE_P that was missing due to checking in
31296         wrong version of prior patch.
31297
31298 2013-03-25  Walter Lee  <walt@tilera.com>
31299
31300         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
31301         TILEGX_INSN_SHUFFLEBYTES1.
31302         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
31303         shufflebytes1.
31304         (tilegx_builtins): Ditto.
31305         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
31306
31307 2013-03-25  Walter Lee  <walt@tilera.com>
31308
31309         * config/tilegx/tilegx.md (floatsisf2): New pattern.
31310         (floatunssisf2): New pattern.
31311         (floatsidf2): New pattern.
31312         (floatunssidf2): New pattern.
31313
31314 2013-03-25  Walter Lee  <walt@tilera.com>
31315
31316         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
31317         tests for constraint J, K, N, P.
31318
31319 2013-03-25  Walter Lee  <walt@tilera.com>
31320
31321         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
31322         Use indirect/pcrel encoding.
31323         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
31324         Ditto.
31325
31326 2013-03-25  Steve Ellcey  <sellcey@mips.com>
31327
31328         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
31329         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
31330         * config/mips/mips.c (mips_option_override): Set IMADD default.
31331         * config/mips/mips.h (PTF_AVOID_IMADD): New.
31332         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
31333         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
31334         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
31335         * doc/invoke.texi (-mimadd/-mno-imadd): New.
31336
31337 2013-03-25  Jeff Law  <law@redhat.com>
31338
31339         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
31340         slightly to avoid creating and folding useless trees.  Simplify
31341         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
31342
31343 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
31344
31345         * config/i386/i386.md (*zero_extendsidi2): Merge with
31346         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
31347         * config/i386/predicates.md (x86_64_zext_operand): Rename from
31348         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
31349         targets.  Clarify comment.
31350
31351 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31352
31353         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
31354         pass-through jump functions differently.
31355         (ipa_read_jump_function): Likewise.  Also use setter functions to set
31356         up jump functions.
31357
31358 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31359
31360         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
31361         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
31362         process it.
31363         (ipa_get_indirect_edge_target): New function.
31364         (devirtualization_time_bonus): New parameter known_aggs, pass it to
31365         ipa_get_indirect_edge_target.  Update all callers.
31366         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
31367         ipa_get_indirect_edge_target_1 instead of calling
31368         ipa_get_indirect_edge_target.
31369         (create_specialized_node): Pass aggvlas to
31370         ipcp_discover_new_direct_edges.
31371
31372 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31373
31374         * config/arm/arm.md (f_sels, f_seld): New types.
31375         (*cmov<mode>): New pattern.
31376         * config/arm/predicates.md (arm_vsel_comparison_operator): New
31377         predicate.
31378
31379 2013-03-25  Kai Tietz  <ktietz@redhat.com>
31380
31381         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
31382         POSIX-printf for mingw-hosted  builds.
31383
31384 2013-03-25  Richard Biener  <rguenther@suse.de>
31385
31386         PR middle-end/56694
31387         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
31388         must-not-throw stmt location.
31389
31390 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31391
31392         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
31393         Emit load-acquire versions when acq is true.
31394         (arm_emit_store_exclusive): Add rel parameter.
31395         Emit store-release versions when rel is true.
31396         (arm_split_compare_and_swap): Use acquire-release instructions
31397         instead.
31398         of barriers when appropriate.
31399         (arm_split_atomic_op): Likewise.
31400         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
31401         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
31402         (VUNSPEC_SLX): Likewise.
31403         (VUNSPEC_LDA): Likewise.
31404         (VUNSPEC_STL): Likewise.
31405         * config/arm/sync.md (atomic_load<mode>): New pattern.
31406         (atomic_store<mode>): Likewise.
31407         (arm_load_acquire_exclusive<mode>): Likewise.
31408         (arm_load_acquire_exclusivesi): Likewise.
31409         (arm_load_acquire_exclusivedi): Likewise.
31410         (arm_store_release_exclusive<mode>): Likewise.
31411
31412 2013-03-25  Catherine Moore  <clm@codesourcery.com>
31413
31414         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
31415         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
31416         * config/mip/predicates.md (lwsp_swsp_operand,
31417         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
31418         sb16_operand, db4_operand, db7_operand, ib3_operand,
31419         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
31420         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
31421         andi16_operand): New predicates.
31422         * config/mips/mips.md (compression): New attribute.
31423         (enabled): New attribute.
31424         (length): Consider compression in computing length.
31425         (shift_compression): New code attribute.
31426         (*add<mode>3): New operands. Record compression.
31427         (sub<mode>3): Likewise.
31428         (one_cmpl<mode>2): Likewise.
31429         (*and<mode>3): Likewise.
31430         (*ior<mode>3): Likewise.
31431         (unnamed pattern for xor): Likewise.
31432         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
31433         (*<optab><mode>3): Likewise.
31434         (*mov<mode>_internal: Likewise.
31435         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
31436         (mips_unsigned_immediate_p): New.
31437         (umips_lwsp_swsp_address_p): New.
31438         (m16_based_address_p): New.
31439         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
31440         (mips_unsigned_immediate_p): New prototype.
31441         (lwsp_swsp_address_p): New prototype.
31442         (m16_based_address_p): New prototype.
31443         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
31444         (mips_signed_immediate_p): New function.
31445         (m16_based_address_p): New function.
31446         (lwsp_swsp_address_p): New function.
31447         (mips_print_operand_punctuation): Recognize short delay slot insns
31448         for microMIPS.add<mode>3"
31449
31450 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31451
31452         PR target/56720
31453         * config/arm/iterators.md (v_cmp_result): New mode attribute.
31454         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
31455
31456 2013-03-25  Richard Biener  <rguenther@suse.de>
31457
31458         PR tree-optimization/56689
31459         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
31460         any edge.
31461
31462 2013-03-25  Richard Biener  <rguenther@suse.de>
31463
31464         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
31465         of bitmap.
31466         (memory_references): Likewise.
31467         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
31468         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
31469         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
31470         (gather_mem_refs_in_loops): Fold into ...
31471         (analyze_memory_references): ... this.  Move initialization
31472         to tree_ssa_lim_initialize.
31473         (fill_always_executed_in): Rename to ...
31474         (fill_always_executed_in_1): ... this.
31475         (fill_always_executed_in): Move contains_call computation to
31476         this new function from ...
31477         (tree_ssa_lim_initialize): ... here.
31478         (tree_ssa_lim): Call fill_always_executed_in.
31479
31480 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
31481
31482         * postreload.c (reload_combine): Fix code detecting returns.
31483
31484 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
31485
31486         * function.c (emit_use_return_register_into_block): On cc0 targets,
31487         do not emit the sequence between cc0 setter and user.
31488
31489 2013-03-25  Kai Tietz  <ktietz@redhat.com>
31490
31491         * config/i386/predicates.md (local_symbolic_operand): Interpret
31492         dll-imported symbols as none-local.
31493
31494 2013-03-25  Richard Biener  <rguenther@suse.de>
31495
31496         * tree-ssa-loop-im.c (struct depend): Remove.
31497         (struct lim_aux_data): Make depends a vec of gimples.
31498         (free_lim_aux_data): Adjust.
31499         (add_dependency): Likewise.
31500         (set_level): Likewise.
31501
31502 2013-03-25  Richard Biener  <rguenther@suse.de>
31503
31504         PR middle-end/56434
31505         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
31506         the pointer returned by calls with ECF_MALLOC set.
31507
31508 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
31509
31510         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
31511
31512 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
31513
31514         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
31515         using MMXMODE mode iterator.
31516         (*move<mode>_internal): Merge with *movv2sf_internal and
31517         *movv2sf_internal_rex64 using MMXMODE mode iterator.
31518
31519 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
31520
31521         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
31522         (record_last_mem_set_info): Likewise.
31523
31524         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
31525         of XNEWVEC followed by memset.
31526         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
31527
31528 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
31529
31530         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31531         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
31532         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
31533         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
31534         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
31535         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
31536         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
31537         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
31538         BARRIER_P instead of GET_CODE.
31539
31540 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31541
31542         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
31543         inaccuracy in the probing code.
31544
31545         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
31546         (ctrapdi4): Likewise.
31547
31548 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31549
31550         * calls.c (expand_call): Add missing guard to code handling return
31551         of non-BLKmode structures in MSB.
31552         * function.c (expand_function_end): Likewise.
31553
31554 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31555
31556         * combine.c (try_combine): Adjust comment.  Do not add the set of
31557         insn #0 if the destination indirectly is set or dies in insn #2.
31558         Tidy up code to distribute a new note.
31559
31560 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31561
31562         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
31563         also for alternatives 16 and 17.
31564
31565 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31566
31567         * config/i386/sse.md (*mov<mode>_internal): Merge with
31568         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
31569         Emit insn template depending on type attribute.  Use
31570         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31571         movd instead of movq mnemonic for interunit moves.  Rewrite mode
31572         attribute calculation.  Remove unit attribute calculation.
31573         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
31574         Set prefix_data16 attribute for DImode ssemov types.
31575         Use Ym instead of y for SSE-MMX conversion alternatives.
31576         Reorder operand constraints.
31577
31578 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
31579
31580         * df.h (df_insn_delete): Adjust prototype.
31581         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
31582         and let it decide whether mark the basic block dirty.
31583         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
31584         * df-scan.c (df_insn_info_delete): New helper function, split
31585         off from df_insn_delete.
31586         (df_scan_free_bb_info): Use it.
31587         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
31588         Likewise.
31589         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
31590         that the insn is actually an insn and it has a non-NULL basic block.
31591         Do not mark basic block dirty if only deleting a DEBUG_INSN.
31592
31593 2013-03-22  Richard Biener  <rguenther@suse.de>
31594
31595         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
31596         dep_ref members.
31597         (mem_ref_alloc): Do not allocate them.
31598         (refs_independent_p): Do not query or maintain a cache.
31599
31600 2013-03-22  Richard Biener  <rguenther@suse.de>
31601
31602         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
31603         (gather_mem_refs_in_loops): Do not compute it.
31604         (analyze_memory_references): Do not allocate it.
31605         (tree_ssa_lim_finalize): Do not free it.
31606         (for_all_locs_in_loop): Do not query all_refs_in_loop.
31607
31608 2013-03-22  Richard Biener  <rguenther@suse.de>
31609
31610         * is-a.h (as_a): Use gcc_checking_assert.
31611
31612 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
31613
31614         * config/aarch64/aarch64.c (aarch64_print_operand): New
31615         format specifier for printing a constant in hex.
31616         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
31617         format specifier for printing second operand.
31618
31619 2013-03-22  Richard Biener  <rguenther@suse.de>
31620
31621         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
31622         bitmaps.
31623         (gather_mem_refs_in_loops): Perform store accumulation here.
31624         (create_vop_ref_mapping_loop): Remove.
31625         (create_vop_ref_mapping): Likewise.
31626         (analyze_memory_references): Initialize refs_stored_in_loop.
31627         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
31628         (record_indep_loop): Remove.
31629         (record_dep_loop): New function.
31630         (ref_indep_loop_p_1): Adjust to only walk over references
31631         in the loop, not its subloops.
31632         (ref_indep_loop_p): Rename to ...
31633         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
31634         maintaining a more fine-grained cache.
31635         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
31636         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
31637
31638 2013-03-22  Richard Biener  <rguenther@suse.de>
31639
31640         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
31641         (struct mem_ref): Make accesses_in_loop a vec of a vec of
31642         aggregate mem_ref_loc.
31643         (free_mem_ref_locs): Inline into ...
31644         (memref_free): ... this and adjust.
31645         (mem_ref_alloc): Adjust.
31646         (mem_ref_locs_alloc): Remove.
31647         (record_mem_ref_loc): Adjust.
31648         (get_all_locs_in_loop): Rewrite into ...
31649         (for_all_locs_in_loop): ... this iterator.
31650         (rewrite_mem_ref_loc): New functor.
31651         (rewrite_mem_refs): Use for_all_locs_in_loop.
31652         (sm_set_flag_if_changed): New functor.
31653         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
31654         (ref_always_accessed): New functor.
31655         (ref_always_accessed_p): Use for_all_locs_in_loop.
31656
31657 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31658
31659         * tree-pass.h (PROP_gimple_lvec): New.
31660         * passes.c (dump_properties): Handle PROP_gimple_lvec.
31661         (init_optimization_passes): Move pass_lower_vector.
31662         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
31663         PROP_gimple_lvec.
31664         (pass_lower_vector): Provide PROP_gimple_lvec.
31665         (pass_lower_vector_ssa): Likewise.
31666         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
31667
31668 2013-03-21  Mark Wielaard  <mjw@redhat.com>
31669
31670         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
31671
31672 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
31673
31674         * config/i386/i386.md (*movdi_internal): Disparage slightly
31675         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
31676         conversion alternatives.
31677
31678 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
31679
31680         PR middle-end/48087
31681         * diagnostic.def (DK_WERROR): New kind.
31682         * diagnostic.h (werrorcount): Define.
31683         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
31684         promoted to DK_ERROR, increment DK_WERROR counter instead of
31685         DK_ERROR counter.
31686         * toplev.c (toplev_main): Call print_ignored_options even if
31687         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
31688         even if just werrorcount is non-zero.
31689
31690         PR debug/55608
31691         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
31692         on failure.
31693         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
31694         (string_cst_pool_decl): New function.
31695         (optimize_one_addr_into_implicit_ptr): New function.
31696         (resolve_addr_in_expr): Optimize DWARF location expression
31697         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
31698         which doesn't live in memory, but has DW_AT_location or
31699         DW_AT_const_value, or refers to a string literal, into
31700         DW_OP_GNU_implicit_pointer.
31701         (optimize_location_into_implicit_ptr): New function.
31702         (resolve_addr): If removing DW_AT_location of a variable because
31703         it was DW_OP_addr of address of the variable, but the variable doesn't
31704         live in memory, try to emit const value attribute for the initializer.
31705
31706 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31707
31708         * tree.h (VECTOR_TYPE_P): New macro.
31709         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
31710         TYPE_MODE): Use it.
31711         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
31712         VEC_COND_EXPR cannot be lvalues.
31713         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
31714
31715 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31716
31717         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
31718         Restrict the transformation to equal modes.
31719
31720 2013-03-21  Richard Biener  <rguenther@suse.de>
31721
31722         PR tree-optimization/39326
31723         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
31724         (MEM_ANALYZABLE): Adjust.
31725         (record_mem_ref_loc): Move bitmap ops ...
31726         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
31727         unanalyzable refs, do not record locations for it.
31728         (analyze_memory_references): Allocate ref zero as shared
31729         unanalyzable ref.
31730         (refs_independent_p): Do not test for unanalyzed mems here.
31731         (ref_indep_loop_p_1): Special-case disambiguation against
31732         the unanalyzed ref.
31733         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
31734
31735 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
31736
31737         * config/arm/arm-protos.h (tune_params): Add
31738         prefer_neon_for_64bits field.
31739         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
31740         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
31741         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
31742         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
31743         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
31744         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
31745         (arm_option_override): Handle -mneon-for-64bits new option.
31746         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
31747         (prefer_neon_for_64bits): Declare new variable.
31748         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
31749         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
31750         (arch_enabled): Handle new arch types. Remove support for onlya8
31751         and nota8.
31752         (one_cmpldi2): Use new arch names.
31753         (zero_extend<mode>di2, extend<mode>di2): Ditto.
31754         * config/arm/arm.opt (mneon-for-64bits): Add option.
31755         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
31756         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
31757         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
31758         of onlya8.
31759         * doc/invoke.texi (-mneon-for-64bits): Document.
31760
31761 2013-03-21  Richard Biener  <rguenther@suse.de>
31762
31763         PR tree-optimization/39326
31764         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
31765         (sort_bbs_in_loop_postorder_cmp): New function.
31766         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
31767
31768 2013-03-21  Richard Biener  <rguenther@suse.de>
31769
31770         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
31771         (vect_insert_into_interleaving_chain): Likewise.
31772         (vect_drs_dependent_in_basic_block): Inline ...
31773         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
31774         split out from ...
31775         (vect_analyze_data_ref_dependence): ... here.  Simplify.
31776         (vect_check_interleaving): Simplify.
31777         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
31778         (vect_slp_analyze_data_ref_dependences): ... this new function.
31779         (dr_group_sort_cmp): New function.
31780         (vect_analyze_data_ref_accesses): Compute data-reference groups
31781         here instead of in vect_analyze_data_ref_dependence.  Use
31782         a more efficient algorithm.
31783         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
31784         vect_slp_analyze_data_ref_dependences.  Call
31785         vect_analyze_data_ref_accesses earlier.
31786         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
31787         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
31788         (vect_slp_analyze_data_ref_dependences): New prototype.
31789
31790 2013-03-21  Richard Biener  <rguenther@suse.de>
31791
31792         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
31793         ref is stored in the loop.
31794         (find_refs_for_sm): Walk only over all stores.
31795         (store_motion_loop): Allocate from lim_bitmap_obstack.
31796         (store_motion): Likewise.
31797
31798 2013-03-21  Richard Biener  <rguenther@suse.de>
31799
31800         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
31801         Update virtual SSA form.
31802
31803 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31804
31805         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
31806         * configure: Regenerate.
31807         * config.in: Regenerate.
31808         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
31809         if !HAVE_LD_EH_FRAME_CIEV3.
31810
31811 2013-03-21  Richard Biener  <rguenther@suse.de>
31812
31813         * tree-cfg.c (verify_expr_no_block): New function.
31814         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
31815         nor DECL_VALUE_EXPR have locations with associated blocks.
31816         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
31817         (clear_unused_block_pointer): Remove code dealing with
31818         blocks in DECL_DEBUG_EXPR locations.
31819
31820 2013-03-21  Richard Biener  <rguenther@suse.de>
31821
31822         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
31823         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
31824         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
31825         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
31826         instead of DECL_DEBUG_EXPR_IS_FROM.
31827         * gimplify.c (gimplify_modify_expr): Likewise.
31828         * tree-cfg.c (verify_expr_location_1): Likewise.
31829         * tree-complex.c (create_one_component_var): Likewise.
31830         * tree-sra.c (create_access_replacement): Likewise.
31831         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
31832         (clear_unused_block_pointer): Likewise.
31833         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
31834         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
31835         * var-tracking.c (var_debug_decl): Likewise.
31836         (track_expr_p): Likewise.
31837         * tree-inline.c (add_local_variables): Likewise.  Set
31838         DECL_HAS_DEBUG_EXPR_P after copying it.
31839         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
31840         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
31841
31842 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
31843
31844         PR bootstrap/56656
31845         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
31846         * configure: Regenerate.
31847         * config.in: Regenerate.
31848         * config/i386/i386.md (*movdf_internal): Use
31849         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31850         movd instead of movq mnemonic for interunit moves.
31851         (*movdi_internal): Ditto.
31852
31853 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31854
31855         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
31856         (abd<mode>_3): New pattern.
31857         (aba<mode>_3): New pattern.
31858         (fabd<mode>_3): New pattern.
31859
31860 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31861
31862         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
31863         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
31864         occurrence of REGISTER_PREFIX as its empty string.
31865
31866 2013-03-20  Jeff Law  <law@redhat.com>
31867
31868         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
31869         addititional equivalences for equality comparisons between an SSA_NAME
31870         and a constant where the SSA_NAME was set from a widening conversion.
31871
31872 2013-03-20  Walter Lee  <walt@tilera.com>
31873
31874         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
31875
31876 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31877
31878         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
31879         depending on type attribute.
31880         (*movti_internal): Ditto.
31881         (*movtf_internal): Ditto.
31882         (*movxf_internal): Ditto.
31883         (*movdf_internal): Ditto.
31884         (*movsf_internal): Ditto.
31885
31886 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31887
31888         * config/i386/i386.md (*movti_internal): Set prefix attribute to
31889         maybe_vex for sselog1 and ssemov types.
31890         (*movdi_internal): Reorder operand constraints.
31891         (*movsi_internal): Ditto.  Set prefix attribute to
31892         maybe_vex for sselog1 and ssemov types.
31893         (*movtf_internal): Set prefix attribute to maybe_vex
31894         for sselog1 and ssemov types.
31895         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
31896         DImode ssemov types.  Reorder operand constraints.
31897         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
31898         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
31899         attribute for SImode ssemov types.  Reorder operand constraints.
31900
31901 2013-03-20  Martin Jambor  <mjambor@suse.cz>
31902
31903         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
31904         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
31905
31906 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
31907
31908         * config/rs6000/predicates.md (indexed_address, update_address_mem
31909         update_indexed_address_mem): New predicates.
31910         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
31911         attribute for load/store instructions.
31912         * config/rs6000/dfp.md (movsd_store): Likewise.
31913         (movsd_load): Likewise.
31914         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
31915         (unnamed HI->DI extend define_insn): Likewise.
31916         (unnamed SI->DI extend define_insn): Likewise.
31917         (unnamed QI->SI extend define_insn): Likewise.
31918         (unnamed QI->HI extend define_insn): Likewise.
31919         (unnamed HI->SI extend define_insn): Likewise.
31920         (unnamed HI->SI extend define_insn): Likewise.
31921         (extendsfdf2_fpr): Likewise.
31922         (movsi_internal1): Likewise.
31923         (movsi_internal1_single): Likewise.
31924         (movhi_internal): Likewise.
31925         (movqi_internal): Likewise.
31926         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
31927         attribute for load/store instructions.
31928         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
31929         instructions.
31930         (mov<mode>_softfloat): Likewise.
31931         (mov<mode>_hardfloat32): Likewise.
31932         (mov<mode>_hardfloat64): Likewise.
31933         (mov<mode>_softfloat64): Likewise.
31934         (movdi_internal32): Likewise.
31935         (movdi_internal64): Likewise.
31936         (probe_stack_<mode>): Likewise.
31937
31938 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
31939
31940         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
31941         floating point, and decimal floating point to reload iterator.
31942
31943         * config/rs6000/constraints.md (wl constraint): New constraints to
31944         return FLOAT_REGS if certain options are used to reduce the number
31945         of separate patterns that exist in the file.
31946         (wx constraint): Likewise.
31947         (wz constraint): Likewise.
31948
31949         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31950         -mdebug=reg, print wg, wl, wx, and wz constraints.
31951         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
31952         Initialize the reload functions for 64-bit binary/decimal floating
31953         point types.
31954         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
31955         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
31956         create the buffer on the stack to overcome not having a 32-bit
31957         load and store.
31958         (rs6000_emit_move): Likewise.
31959         (rs6000_secondary_memory_needed_rtx): Likewise.
31960         (rs6000_alloc_sdmode_stack_slot): Likewise.
31961         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
31962         via xxlxor, just like DFmode 0.0.
31963
31964         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
31965         define as 1 if we are running on a power7 or newer.
31966         (enum r6000_reg_class_enum): Add new constraints.
31967
31968         * config/rs6000/dfp.md (movsd): Delete, combine with binary
31969         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
31970         with other moves by using conditional constraits (wg).  Use LFIWZX
31971         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
31972         (movsd splitter): Likewise.
31973         (movsd_hardfloat): Likewise.
31974         (movsd_softfloat): Likewise.
31975
31976         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
31977         binary and decimal floating point moves.
31978         (fmove_ok): New attributes to combine binary and decimal floating
31979         point moves, and to combine power6x (mfpgpr) moves along normal
31980         floating moves.
31981         (real_value_to_target): Likewise.
31982         (f32_lr): Likewise.
31983         (f32_lm): Likewise.
31984         (f32_li): Likewise.
31985         (f32_sr): Likewise.
31986         (f32_sm): Likewise.
31987         (f32_si): Likewise.
31988         (movsf): Combine binary and decimal floating point moves.  Combine
31989         power6x (mfpgpr) moves with other moves by using conditional
31990         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
31991         (mov<mode> for SFmode/SDmode); Likewise.
31992         (SFmode/SDmode splitters): Likewise.
31993         (movsf_hardfloat): Likewise.
31994         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
31995         (movsf_softfloat): Likewise.
31996         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
31997
31998         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
31999         wx and wz constraints.
32000
32001         * config/rs6000/constraints.md (wg constraint): New constraint to
32002         return FLOAT_REGS if -mmfpgpr (power6x) was used.
32003
32004         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
32005         constraint.
32006
32007         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
32008         -mdebug=reg, print wg, wl, wx, and wz constraints.
32009         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
32010         Initialize the reload functions for 64-bit binary/decimal floating
32011         point types.
32012         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
32013         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
32014         create the buffer on the stack to overcome not having a 32-bit
32015         load and store.
32016         (rs6000_emit_move): Likewise.
32017         (rs6000_secondary_memory_needed_rtx): Likewise.
32018         (rs6000_alloc_sdmode_stack_slot): Likewise.
32019         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
32020         via xxlxor, just like DFmode 0.0.
32021
32022         * config/rs6000/dfp.md (movdd): Delete, combine with binary
32023         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
32024         with other moves by using conditional constraits (wg).  Use LFIWZX
32025         and STFIWX for loading SDmode on power7.
32026         (movdd splitters): Likewise.
32027         (movdd_hardfloat32): Likewise.
32028         (movdd_softfloat32): Likewise.
32029         (movdd_hardfloat64_mfpgpr): Likewise.
32030         (movdd_hardfloat64): Likewise.
32031         (movdd_softfloat64): Likewise.
32032
32033         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
32034         64-bit binary and decimal floating point moves.
32035         (FMOVE64X): Likewise.
32036         (movdf): Combine 64-bit binary and decimal floating point moves.
32037         Combine power6x (mfpgpr) moves with other moves by using
32038         conditional constraits (wg).
32039         (mov<mode> for DFmode/DDmode): Likewise.
32040         (DFmode/DDmode splitters): Likewise.
32041         (movdf_hardfloat32): Likewise.
32042         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
32043         (movdf_softfloat32): Likewise.
32044         (movdf_hardfloat64_mfpgpr): Likewise.
32045         (movdf_hardfloat64): Likewise.
32046         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
32047         (movdf_softfloat64): Likewise.
32048         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
32049         (reload_<mode>_load): Move to later in the file so they aren't in
32050         the middle of the floating point move insns.
32051         (reload_<mode>_store): Likewise.
32052
32053         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
32054         constraint.
32055
32056         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
32057         constraint if -mdebug=reg.
32058         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
32059         Enable using dd reload support if needed.
32060
32061         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
32062         binary and decimal floating point moves in rs6000.md.
32063         (movtd_internal): Likewise.
32064
32065         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
32066         decimal floating point moves.
32067         (movtf): Likewise.
32068         (movtf_internal): Likewise.
32069         (mov<mode>_internal, TDmode/TFmode): Likewise.
32070         (movtf_softfloat): Likewise.
32071         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
32072
32073         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
32074         movdi_internal64, using wg constraint for move direct operations.
32075         (movdi_internal64): Likewise.
32076
32077         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
32078         MODES_TIEABLE_P for selected modes.  Print the numerical value of
32079         the various virtual registers. Use GPR/FPR first/last values,
32080         instead of hard coding the register numbers.  Print which modes
32081         have reload functions registered.
32082         (rs6000_option_override_internal): If -mdebug=reg, trace the options
32083         settings before/after setting cpu, target and subtarget settings.
32084         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
32085         and for secondary reload failures in rs6000_secondary_reload_inner.
32086         (rs6000_secondary_reload_fail): Likewise.
32087         (rs6000_secondary_reload_inner): Likewise.
32088
32089         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
32090         macros for first/last GPR and FPR registers.
32091         (LAST_GPR_REGNO): Likewise.
32092         (FIRST_FPR_REGNO): Likewise.
32093         (LAST_FPR_REGNO): Likewise.
32094
32095         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
32096         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
32097         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
32098         (vcond<mode><mode>): Likewise.
32099         (vcondu<mode><mode>): Likewise.
32100         (vector_gtu<mode>): Likewise.
32101         (vector_gte<mode>): Likewise.
32102         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
32103         to prevent the compiler from converting DImode operations to TImode.
32104         (ior<mode>3): Likewise.
32105         (and<mode>3): Likewise.
32106         (one_cmpl<mode>2): Likewise.
32107         (nor<mode>3): Likewise.
32108         (andc<mode>3): Likewise.
32109
32110         * config/rs6000/constraints.md (wt constraint): New constraint
32111         that returns VSX_REGS if TImode is allowed in VSX registers.
32112
32113         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
32114         constant under VSX.
32115
32116         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
32117         similar to TImode, but it is restricted to being in the GPRs.
32118
32119         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
32120         TImode to occupy a single VSX register.
32121
32122         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
32123         -mvsx-timode for power7/power8.
32124         (power7 cpu): Likewise.
32125         (power8 cpu): Likewise.
32126
32127         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
32128         sure that TFmode/TDmode take up two registers if they are ever
32129         allowed in the upper VSX registers.
32130         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
32131         registers.
32132         (rs6000_init_hard_regno_mode_ok): Likewise.
32133         (rs6000_debug_reg_global): Add debugging for PTImode and wt
32134         constraint.  Print if LRA is turned on.
32135         (rs6000_option_override_internal): Give an error if -mvsx-timode
32136         and VSX is not enabled.
32137         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
32138         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
32139         to reg+offset addressing.  Use PTImode when checking offset
32140         addresses for validity.
32141         (reg_offset_addressing_ok_p): Likewise.
32142         (rs6000_legitimate_offset_address_p): Likewise.
32143         (rs6000_legitimize_address): Likewise.
32144         (rs6000_legitimize_reload_address): Likewise.
32145         (rs6000_legitimate_address_p): Likewise.
32146         (rs6000_eliminate_indexed_memrefs): Likewise.
32147         (rs6000_emit_move): Likewise.
32148         (rs6000_secondary_reload): Likewise.
32149         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
32150         reloads to fpr registers to continue to use reg+offset addressing,
32151         but 64-bit reloads to altivec registers need reg+reg addressing.
32152         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
32153         it.  Treat LO_SUM like a PLUS operation.
32154         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
32155         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
32156         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
32157         registers to share a register with a smaller sized type, since VSX
32158         puts scalars in the upper 64-bits.
32159         (print_operand): Add support for PTImode.
32160         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
32161         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
32162         registers, but don't have arithmetic support.
32163         (rs6000_memory_move_cost): Add test for VSX.
32164         (rs6000_opt_masks): Add -mvsx-timode.
32165
32166         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
32167         for TImode.
32168         (VSs): Likewise.
32169         (VSr): Use wt constraint for TImode.
32170         (VSv): Drop TImode support.
32171         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
32172         (vsx_movti_64bit): Likewise.
32173         (vsx_movti_32bit): Likewise.
32174         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
32175         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
32176         one '?' on the appropriate output constraint.  Do not allow TImode
32177         logical operations on 32-bit systems.
32178         (vsx_ior<mode>3): Likewise.
32179         (vsx_xor<mode>3): Likewise.
32180         (vsx_one_cmpl<mode>2): Likewise.
32181         (vsx_nor<mode>3): Likewise.
32182         (vsx_andc<mode>3): Likewise.
32183         (vsx_concat_<mode>): Likewise.
32184         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
32185
32186         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
32187         OPTION_MASK_VSX_TIMODE.
32188         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
32189         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
32190
32191         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
32192         (TI2 iterator): New iterator for TImode, PTImode.
32193         (wd mode attribute): Add values for vector types.
32194         (movti_string): Replace TI move operations with operations for TImode
32195         and PTImode.  Add support for TImode being allowed in VSX registers.
32196         (mov<mode>_string, TImode/PTImode): Likewise.
32197         (movti_ppc64): Likewise.
32198         (mov<mode>_ppc64, TImode/PTImode): Likewise.
32199         (TI mode splitters): Likewise.
32200
32201         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
32202         constraint.
32203
32204 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
32205
32206         PR tree-optimization/56355
32207         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
32208         Also handle integers with undefined overflow.
32209
32210 2013-03-20  Catherine Moore  <clm@codesourcery.com>
32211             Maciej W. Rozycki  <macro@codesourcery.com>
32212             Tom de Vries  <tom@codesourcery.com>
32213             Nathan Sidwell  <nathan@codesourcery.com>
32214             Iain Sandoe  <iain@codesourcery.com>
32215             Nathan Froyd  <froydnj@codesourcery.com>
32216             Chao-ying Fu  <fu@mips.com>
32217
32218         * doc/extend.texi: (micromips, nomicromips, nocompression):
32219         Document new function attributes.
32220         * doc/invoke.texi (minterlink-compressed, mmicromips,
32221         m14k, m14ke, m14kec): Document new options.
32222         (minterlink-mips16): Update documentation.
32223         * doc/md.texi (ZC, ZD): Document new constraints.
32224         * configure.ac (gcc_cv_as_micromips): Check if linker
32225         supports the .set micromips directive.
32226         * configure: Regenerate.
32227         * config.in: Regenerate.
32228         * config/mips/mips-tables.opt: Regenerate.
32229         * config/mips/micromips.md: New file.
32230         * constraints.md (ZC, ZD): New constraints.
32231         * config/mips/predicates.md (movep_src_register): New predicate.
32232         (movep_src_operand): New predicate.
32233         (non_volatile_mem_operand): New predicate.
32234         * config/mips/mips.md (multimem): New type.
32235         (length): Differentiate between 17-bit and 18-bit branch offsets.
32236         (MOVEP1, MOVEP2): New mode iterator.
32237         (mov_<load>l): Use ZC constraint.
32238         (mov_<load>r): Likewise.
32239         (mov_<store>l): Likewise.
32240         (mov_<store>r): Likewise.
32241         (*branch_equality<mode>_inverted): Add microMIPS support.
32242         (*branch_equality<mode>): Likewise.
32243         (*jump_absolute): Likewise.
32244         (indirect_jump_<mode>): Likewise.
32245         (tablejump_<mode>): Likewise.
32246         (<optab>_internal): Likewise.
32247         (sibcall_internal): Likewise.
32248         (sibcall_value_internal): Likewise.
32249         (prefetch): Use constraint ZD.
32250         * config/mips/mips.opt (minterlink-compressed): New option.
32251         (minterlink-mips16): Now an alias for minterlink-compressed.
32252         (mmicromips): New option.
32253         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32254         (compare_and_swap_12): Likewise.
32255         (sync_add<mode>): Likewise.
32256         (sync_<optab>_12): Likewise.
32257         (sync_old_<optab>_12): Likewise.
32258         (sync_new_<optab>_12): Likewise.
32259         (sync_nand_12): Likewise.
32260         (sync_old_nand_12): Likewise.
32261         (sync_new_nand_12): Likewise.
32262         (sync_sub<mode>): Likewise.
32263         (sync_old_add<mode>): Likewise.
32264         (sync_old_sub<mode>): Likewise.
32265         (sync_new_add<mode>): Likewise.
32266         (sync_new_sub<mode>): Likewise.
32267         (sync_<optab><mode>): Likewise.
32268         (sync_old_<optab><mode>): Likewise.
32269         (sync_new_<optab><mode>): Likewise.
32270         (sync_nand<mode>): Likewise.
32271         (sync_old_nand<mode>): Likewise.
32272         (sync_new_nand<mode>): Likewise.
32273         (sync_lock_test_and_set<mode>): Likewise.
32274         (test_and_set_12): Likewise.
32275         (atomic_compare_and_swap<mode>): Likewise.
32276         (atomic_exchange<mode>_llsc): Likewise.
32277         (atomic_fetch_add<mode>_llsc): Likewise.
32278         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32279         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32280         (umips_save_restore_pattern_p): Likewise.
32281         (umips_load_store_pair_p): Likewise.
32282         (umips_output_load_store_pair): Likewise.
32283         (umips_movep_target_p): Likewise.
32284         (umips_12bit_offset_address_p): Likewise.
32285         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32286         (mips_base_mips16): Rename this...
32287         (mips_base_compression_flags): ...to this. Update all uses.
32288         (mips_attribute_table): Add micromips, nomicromips and nocompression.
32289         (mips_mips16_decl_p): Delete.
32290         (mips_nomips16_decl_p): Delete.
32291         (mips_get_compress_on_flags): New function.
32292         (mips_get_compress_off_flags): New function.
32293         (mips_get_compress_mode): New function.
32294         (mips_get_compress_on_name): New function.
32295         (mips_get_compress_off_name): New function.
32296         (mips_insert_attributes): Support multiple compression types.
32297         (mips_merge_decl_attributes): Likewise.
32298         (umips_12bit_offset_address_p): New function.
32299         (mips_start_function_definition): Emit .set micromips directive.
32300         (mips_call_may_need_jalx_p): New function.
32301         (mips_function_ok_for_sibcall): Add microMIPS support.
32302         (mips_print_operand_punctuation): Support short delay slots and
32303         compact jumps.
32304         (umips_swm_mask, umips_swm_encoding): New.
32305         (umips_build_save_restore): New function.
32306         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32307         (was_mips16_p): Remove.
32308         (old_compression_mode): New.
32309         (mips_set_compression_mode): New function.
32310         (mips_set_current_function): Add microMIPS support.
32311         (mips_option_override): Likewise.
32312         (umips_save_restore_pattern_p): New function.
32313         (umips_output_save_restore): New function.
32314         (umips_load_store_pair_p_1): New function.
32315         (umips_load_store_pair_p): New function.
32316         (umips_output_load_store_pair_1): New function.
32317         (umips_output_load_store_pair): New function.
32318         (umips_movep_target_p) New function.
32319         (mips_prepare_pch_save): Add microMIPS support.
32320         * config/mips/mips.h (TARGET_COMPRESSION): New.
32321         (TARGET_CPU_CPP_BUILTINS): Update macro
32322         to use new compression flags and to support microMIPS.
32323         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32324         (MIPS_ARCH_FLOAT_SPEC): Likewise.
32325         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32326         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32327         (ASM_SPEC): Support mmicromips and mno-micromips.
32328         (M16STORE_REG_P): New macro.
32329         (MIPS_CALL): Support TARGET_MICROMIPS.
32330         (MICROMIPS_J): New macro.
32331         (mips_base_mips16): Rename this...
32332         (mips_base_compression_flags): ...to this.
32333         (UMIPS_12BIT_OFFSET_P): New macro.
32334         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32335         (MULTILIB_DIRNAMES): Likewise.
32336 2013-03-20  Richard Biener  <rguenther@suse.de>
32337
32338         PR tree-optimization/56661
32339         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
32340         the result does not have to be distinct.
32341
32342 2013-03-20  Richard Biener  <rguenther@suse.de>
32343
32344         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
32345         remap_gimple_op_r.
32346
32347 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32348             Steven Bosscher  <steven@gcc.gnu.org>
32349
32350         PR rtl-optimization/56605
32351         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
32352
32353 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
32354
32355         PR bootstrap/56656
32356         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
32357         that require movd instead of movq.
32358
32359 2013-03-20  Richard Biener  <rguenther@suse.de>
32360
32361         * tree-ssa-structalias.c (struct variable_info): Add pointer
32362         to the first field of an aggregate with sub-vars.  Make
32363         this and the pointer to the next subfield its ID.
32364         (vi_next): New function.
32365         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
32366         storedanything_id, integer_id): Increment by one.
32367         (new_var_info, get_call_vi, lookup_call_clobber_vi,
32368         get_call_clobber_vi): Adjust.
32369         (solution_set_expand): Simplify and speedup.
32370         (solution_set_add): Inline into ...
32371         (set_union_with_increment): ... this.  Adjust accordingly.
32372         (do_sd_constraint): Likewise.
32373         (do_ds_constraint): Likewise.
32374         (do_complex_constraint): Simplify.
32375         (build_pred_graph): Adjust.
32376         (solve_graph): Likewise.  Simplify and speedup.
32377         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
32378         get_constraint_for_component_ref, get_constraint_for_1,
32379         first_vi_for_offset, first_or_preceding_vi_for_offset,
32380         create_function_info_for, create_variable_info_for_1,
32381         create_variable_info_for, intra_create_variable_infos): Adjust.
32382         (init_base_vars): Push NULL for ID zero.
32383         (compute_points_to_sets): Adjust.
32384
32385 2013-03-20  Richard Biener  <rguenther@suse.de>
32386
32387         * cfgloop.c (verify_loop_structure): Streamline and avoid
32388         ICEing on corrupt loop tree.
32389         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
32390         loop tree.
32391
32392 2013-03-20  Richard Biener  <rguenther@suse.de>
32393
32394         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
32395         check whether an SSA update is needed.
32396
32397 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
32398
32399         * config/mips/constraints.md (T): Rename to...
32400         (Yf): ...this.
32401         (U): Rename to...
32402         (Yd): ...this.
32403         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
32404         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
32405
32406 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32407
32408         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
32409         (*subsi3_carryin_uxtw): Likewise.
32410
32411 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32412
32413         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
32414         (*rorsi3_insn_uxtw): Likewise.
32415
32416 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32417
32418         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
32419         (*extrsi5_insn_uxtw): Likewise.
32420
32421 2013-03-19  Richard Biener  <rguenther@suse.de>
32422
32423         PR tree-optimization/56273
32424         * passes.c (init_optimization_passes): Move second VRP after DOM.
32425
32426 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
32427
32428         * config/i386/i386.md (*movti_internal): Merge from
32429         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
32430         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
32431         nox64 isa attributes.
32432
32433 2013-03-18  Richard Biener  <rguenther@suse.de>
32434
32435         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
32436         (unite): Likewise.
32437         (merge_node_constraints): Likewise.
32438         (build_succ_graph): Likewise.
32439         (valid_graph_edge): Inline into single caller.
32440         (unify_nodes): Likewise.  Use bitmap_set_bit return value
32441         and cache varinfo.
32442         (scc_visit): Fix formatting and variable use.
32443         (do_sd_constraint): Use gcc_checking_assert.
32444         (do_ds_constraint): Likewise.
32445         (do_complex_constraint): Likewise.
32446         (condense_visit): Likewise.  Cleanup.
32447         (dump_pred_graph): New function.
32448         (perform_var_substitution): Dump the pred-graph before
32449         variable substitution.
32450         (find_equivalent_node): Use gcc_checking_assert.
32451         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
32452
32453 2013-03-18  Richard Biener  <rguenther@suse.de>
32454
32455         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32456         Remove cond_expr_stmt_list argument and do not gimplify the
32457         built expression.
32458         (vect_loop_versioning): Adjust.
32459         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
32460         Cleanup to use less temporaries.
32461         (vect_create_data_ref_ptr): Cleanup.
32462
32463 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
32464
32465         PR tree-optimization/56635
32466         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
32467         require types_compatible_p types.
32468
32469 2013-03-18  Nick Clifton  <nickc@redhat.com>
32470
32471         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
32472         spurious backslash.
32473
32474         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
32475         Add missing line to comment describing function.
32476
32477 2013-03-18  Richard Biener  <rguenther@suse.de>
32478
32479         PR tree-optimization/56210
32480         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32481         Handle string / character search functions.
32482         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32483
32484 2013-03-18  Richard Biener  <rguenther@suse.de>
32485
32486         PR middle-end/56483
32487         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
32488         and implement properly.
32489         * gimple.h (gimple_cond_single_var_p): Remove.
32490
32491 2013-03-18  Richard Biener  <rguenther@suse.de>
32492
32493         * tree-data-ref.h (find_data_references_in_loop): Declare.
32494         * tree-data-ref.c (get_references_in_stmt): Use a stack
32495         vector pre-allocated in the callers.
32496         (find_data_references_in_stmt): Adjust.
32497         (graphite_find_data_references_in_stmt): Likewise.
32498         (create_rdg_vertices): Likewise.
32499         (find_data_references_in_loop): Export.
32500         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
32501         Compute dependences here...
32502         (vect_analyze_data_refs): ...not here.  When we encounter
32503         a non-vectorizable data reference in basic-block vectorization
32504         truncate the data reference vector.  Do not bother to
32505         fixup data-dependence information for gather loads.
32506         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
32507         of data references, as reported.
32508
32509 2013-03-18  Richard Biener  <rguenther@suse.de>
32510
32511         PR tree-optimization/3713
32512         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
32513         has_constants and expr.
32514         (stmt_has_constants): Properly valueize SSA names when deciding
32515         whether the stmt has constants.
32516
32517 2013-03-18  Richard Biener  <rguenther@suse.de>
32518
32519         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
32520         whole function when there is nothing to do.
32521         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
32522         * tree-vectorizer.c (vectorize_loops): Update virtual and
32523         loop-closed SSA once.
32524         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
32525
32526 2013-03-18  Richard Biener  <rguenther@suse.de>
32527
32528         PR middle-end/56113
32529         * domwalk.c (bb_postorder): New global static.
32530         (cmp_bb_postorder): New function.
32531         (walk_dominator_tree): Replace scheme imposing an order for
32532         visiting dominator sons by one sorting them at the time they
32533         are pushed on the stack.
32534
32535 2013-03-18  Richard Biener  <rguenther@suse.de>
32536
32537         PR tree-optimization/39326
32538         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
32539         (struct mem_ref): Replace mem member with ao_ref typed member.
32540         (MEM_ANALYZABLE): Adjust.
32541         (memref_eq): Likewise.
32542         (mem_ref_alloc): Likewise.
32543         (gather_mem_refs_stmt): Likewise.
32544         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
32545         (execute_sm_if_changed_flag_set): Adjust.
32546         (execute_sm): Likewise.
32547         (ref_always_accessed_p): Likewise.
32548         (refs_independent_p): Likewise.
32549         (can_sm_ref_p): Likewise.
32550
32551 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
32552
32553         PR c/56566
32554         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
32555         return 1 even for !unsignedp.
32556
32557 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32558
32559         * config/i386/i386.md (isa): Add x64 and nox64.
32560         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
32561         (*pushtf): Enable *roF alternative for x64 isa only.
32562         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
32563         mode attribute of integer alternatives to DImode for TARGET_64BIT.
32564         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
32565         (*movtf_internal): Merge from *movtf_internal_rex64 and
32566         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
32567         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
32568         nox64 isa attributes.
32569         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
32570         nox64 isa attributes.
32571         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
32572
32573 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32574
32575         * config/alpha/alpha.c (TARGET_LRA_P): New define.
32576
32577 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
32578
32579         PR target/56640
32580         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
32581         class names.  Remove trailing comma after "ALL_REGS".
32582
32583 2013-03-16  Jan Hubicka  <jh@suse.cz>
32584
32585         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
32586         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
32587         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
32588         of cgraph_get_create_node.
32589         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32590
32591 2013-03-16  Jason Merrill  <jason@redhat.com>
32592
32593         PR debug/49090
32594         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
32595         with DW_AT_default_value.
32596
32597 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
32598
32599         * BASE-VER: Set to 4.9.0.
32600
32601 2013-03-14  Andi Kleen  <ak@linux.intel.com>
32602
32603         PR target/56619
32604         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
32605         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
32606         Document _x* TSX intrinsics.
32607
32608 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
32609             David Holsgrove  <david.holsgrove@xilinx.com>
32610
32611         * configure.ac: Add MicroBlaze TLS support detection.
32612         * configure: Regenerate.
32613         * config/microblaze/microblaze-protos.h
32614         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
32615         symbol_mentioned_p, label_mentioned_p): Add prototypes.
32616         * config/microblaze/microblaze.c (microblaze_address_type): Add
32617         ADDRESS_TLS and tls_reloc address types.
32618         (microblaze_address_info): Add tls_reloc.
32619         (TARGET_HAVE_TLS): Define.
32620         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
32621          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
32622          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
32623         load_tls_operand,  microblaze_call_tls_get_addr,
32624         microblaze_legitimize_tls_address): New functions.
32625         (microblaze_classify_unspec): Handle UNSPEC_TLS.
32626         (get_base_reg): Use microblaze_tls_symbol_p.
32627         (microblaze_classify_address): Handle TLS.
32628         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
32629         label_mentioned_p and microblaze_tls_referenced_p.
32630         (microblaze_legitimize_address): Handle TLS.
32631         (microblaze_address_insns): Handle ADDRESS_TLS.
32632         (pic_address_needs_scratch): Handle TLS.
32633         (print_operand_address): Handle TLS.
32634         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
32635         (microblaze_expand_move): Handle TLS.
32636         (microblaze_legitimate_constant_p): Check
32637         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
32638         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
32639         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
32640         (PIC_OFFSET_TABLE_REGNUM): Set.
32641         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
32642         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
32643         (addsi3, movsi_internal2, movdf_internal): Update constraints
32644         * config/microblaze/predicates.md (arith_plus_operand): Define
32645         (move_operand): Redefine as move_src_operand,
32646         check microblaze_tls_referenced_p.
32647
32648 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
32649
32650         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
32651         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
32652
32653 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
32654
32655         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
32656         CC mode for AND.
32657
32658 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
32659
32660         PR tree-optimization/53265
32661         * common.opt (Waggressive-loop-optimizations): New option.
32662         * tree-ssa-loop-niter.c: Include tree-pass.h.
32663         (do_warn_aggressive_loop_optimizations): New function.
32664         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
32665         if number_of_latch_executions returned constant.
32666         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
32667         early.  If number_of_latch_executions returned constant, set
32668         nb_iterations_upper_bound back to it.
32669         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
32670         field.
32671         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
32672         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
32673
32674         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
32675         (MULTILIB_OSDIRNAMES): Set.
32676         * genmultilib: If defaultosdirname doesn't start with :: , set
32677         defaultosdirname2 instead, clear it and emit two . multilib_raw
32678         entries instead of just one.
32679
32680 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
32681
32682         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32683         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
32684         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32685         (SUBTARGET_OVERRIDE_OPTIONS): New.
32686
32687 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
32688
32689         PR target/49880
32690         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
32691         (musermode): Convert to Var(TARGET_USERMODE).
32692         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
32693         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
32694         * config/sh/sh.c (sh_option_override): Use
32695         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
32696         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
32697         condition.
32698         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
32699         TARGET_SH4.
32700         (udivsi3_i4_single, divsi3_i4_single): Use
32701         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
32702
32703 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
32704
32705         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
32706         default setting.
32707
32708 2013-03-13  Richard Biener  <rguenther@suse.de>
32709
32710         PR tree-optimization/56608
32711         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
32712         calls when vectorizing basic-blocks.
32713
32714 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
32715
32716         PR plugins/45078
32717         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
32718         tm_file.
32719
32720 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
32721
32722         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
32723
32724 2013-03-11  Jan Hubicka  <jh@suse.cz>
32725
32726         PR lto/56557
32727         * lto-streamer-out.c (output_symbol_p): Skip references from
32728         constructors of external variables.
32729
32730 2013-03-11  Jan Hubicka  <jh@suse.cz>
32731
32732         PR middle-end/56571
32733         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
32734         from pseudos.
32735         * emit-rtl.c (verify_rtx_sharing): Likewise.
32736         (copy_insn_1): Likewise.
32737         * rtl.c (copy_rtx): Likewise.
32738
32739 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
32740
32741         PR target/56591
32742         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
32743         output_operand_lossage message.
32744
32745 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
32746
32747         PR target/56470
32748         * arm.c (shift_op): Validate RTL pattern on the fly.
32749         (arm_print_operand, case 'S'): Don't use shift_operator to validate
32750         the RTL.
32751
32752 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32753
32754         PR target/56347
32755         * config/pa/pa.md (call_value): Check for calls to powf and direct to
32756         new call patterns that clobber %fr12.
32757         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
32758         split and postreload patterns.
32759         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
32760         registers %fr12 and %fr12R as call used.
32761
32762 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
32763
32764         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
32765         (canon_address, record_store, replace_read, check_mem_read_rtx,
32766         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
32767         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
32768         rest_of_handle_dse): Likewise.
32769
32770 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
32771
32772         PR middle-end/56524
32773         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
32774         Add base_optabs.
32775         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
32776         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
32777         (save_optabs_if_changed): Replace with...
32778         (init_tree_optimization_optabs): ...this.
32779         * optabs.c (save_optabs_if_changed): Rename to...
32780         (init_tree_optimization_optabs): ...this.  Take the optimization node
32781         as argument.  Do nothing if the base optabs are already correct.
32782         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
32783         to recompute optabs.
32784         * function.h (function): Remove optabs field.
32785         * function.c (invoke_set_current_function_hook): Call
32786         init_tree_optimization_optabs.  Use the result to initialize
32787         this_fn_optabs.
32788
32789 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
32790
32791         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
32792         if GTMA_HAS_NO_INSTRUMENTATION.
32793         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
32794         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
32795         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
32796         * gimple-pretty-print.c (dump_gimple_transaction): Handle
32797         GTMA_HAS_NO_INSTRUMENTATION.
32798
32799 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
32800
32801         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
32802         libasan_preinit.o.
32803
32804 2013-03-08  Marek Polacek  <polacek@redhat.com>
32805             Jakub Jelinek  <jakub@redhat.com>
32806
32807         PR tree-optimization/56478
32808         * predict.c (is_comparison_with_loop_invariant_p): Change the
32809         type of loop_step to tree.
32810         (predict_loops): Adjust.
32811         (predict_iv_comparison): Perform the computations on double_ints.
32812
32813 2013-03-08  Richard Biener  <rguenther@suse.de>
32814
32815         PR tree-optimization/56570
32816         * tree-cfg.c (verify_expr_location_1): Verify locations for
32817         DECL_DEBUG_EXPR.
32818         * tree-sra.c (create_access_replacement): Strip locations
32819         from DECL_DEBUG_EXPRs.
32820
32821 2013-03-08  Richard Biener  <rguenther@suse.de>
32822
32823         * tree-inline.c (expand_call_inline): Do not associate
32824         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
32825         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
32826
32827 2013-03-08  Richard Biener  <rguenther@suse.de>
32828
32829         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
32830         or block changes with -Og.  Fix for location / block encoding
32831         changes and PHI arguments with locations.
32832
32833 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
32834
32835         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
32836         for all counters.
32837         (struct output_info): Likewise.
32838         (register_overhead): Remove bad gcc_assert.
32839         (bitmap_find_bit): If there is only a single bitmap element, do not
32840         count a miss as a search.
32841         (print_statistics): Update for counter type changes.
32842         (dump_bitmap_statistics): Likewise.  Print headers such that they
32843         are properly lined up with the printed counters.
32844
32845 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
32846
32847         PR tree-optimization/56559
32848         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
32849         check that it has only a single use.
32850
32851 2013-03-07  Richard Biener  <rguenther@suse.de>
32852
32853         * doc/invoke.texi (fwhole-program): Discourage use in combination
32854         with -flto.
32855
32856 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
32857
32858         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
32859
32860         PR tree-optimization/56539
32861         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
32862         instead of GSI_CONTINUE_LINKING as last argument to
32863         force_gimple_operand_gsi.  Adjust function comment.
32864
32865         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
32866         aarch64-cores.def.
32867
32868         PR middle-end/56548
32869         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
32870         promoted mode, convert the result back to the original mode.
32871
32872 2013-03-06  Richard Biener  <rguenther@suse.de>
32873
32874         PR middle-end/56294
32875         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
32876         (insert_updated_phi_nodes_compare_uids): New function.
32877         (update_ssa): Sort symbols_to_rename after UID before
32878         traversing it to insert PHI nodes.
32879
32880 2013-03-06  Richard Biener  <rguenther@suse.de>
32881
32882         PR middle-end/50494
32883         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
32884         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
32885
32886         Revert
32887         2013-02-13  Richard Biener  <rguenther@suse.de>
32888
32889         PR lto/50494
32890         * varasm.c (output_constant_def_1): Get the decl representing
32891         the constant as argument.
32892         (output_constant_def): Wrap output_constant_def_1.
32893         (make_decl_rtl): Use output_constant_def_1 with the decl
32894         representing the constant.
32895         (build_constant_desc): Optionally re-use a decl already
32896         representing the constant.
32897         (tree_output_constant_def): Adjust.
32898
32899 2013-03-06  Joey Ye  <joey.ye@arm.com>
32900
32901         PR lto/50293
32902         * gcc.c (convert_white_space): New function.
32903         (main): Handles white space in function name.
32904
32905 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
32906
32907         PR target/56529
32908         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
32909         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
32910         to SH_DIV_CALL_TABLE for TARGET_SH2.
32911         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
32912         list.
32913         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
32914         call-table options.
32915
32916 2013-03-05  Sterling Augustine  <saugustine@google.com>
32917             Cary Coutant  <ccoutant@google.com>
32918
32919         PR debug/55364
32920         * dwarf2out.c (resolve_addr): Don't call
32921         remove_loc_list_addr_table_entries a second time for the same
32922         expression.
32923
32924 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32925
32926         PR debug/56510
32927         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
32928         (avoid_complex_debug_insns): New function.
32929         (expand_debug_locations): Call it.
32930
32931         PR rtl-optimization/56484
32932         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
32933         lifetimes of hard registers on small register class machines.
32934
32935 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
32936
32937         * config/microblaze/microblaze-protos.h: Rename
32938         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
32939         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
32940         fast_interrupt.
32941         (microblaze_fast_interrupt_function_p): New function.
32942         (microblaze_is_interrupt_handler): Rename to
32943         microblaze_is_interrupt_variant and add fast_interrupt check.
32944         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
32945         (save_restore_insns): Likewise.
32946         (compute_frame_size): Likewise.
32947         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
32948         (microblaze_globalize_label): Likewise.
32949         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
32950         * config/microblaze/microblaze.md: Use wrapper
32951         microblaze_is_interrupt_variant.
32952
32953 2013-03-05  Kai Tietz  <ktietz@redhat.com>
32954
32955         * sdbout.c (sdbout_one_type): Switch to current function's section
32956         supporting cold/hot.
32957
32958 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
32959
32960         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
32961         -mxl-reorder.
32962
32963 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32964
32965         PR middle-end/56461
32966         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
32967         if VALGRIND_GET_VBITS is defined, temporarily make object
32968         memory all defined, and restore previous valgrind addressability
32969         and definability afterwards.  Free this_object at the end.
32970
32971         PR middle-end/56461
32972         * lra.c (lra): Call lra_clear_live_ranges if live_p,
32973         right before calling lra_create_live_ranges, also call it
32974         when clearing live_p.  Only call lra_clear_live_ranges
32975         at the end if live_p.
32976
32977         PR middle-end/56461
32978         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
32979
32980 2013-03-05  Richard Biener  <rguenther@suse.de>
32981
32982         PR tree-optimization/56521
32983         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
32984         value-id.
32985
32986 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
32987
32988         PR c++/55135
32989         * except.h (remove_unreachable_eh_regions): New prototype.
32990         * except.c (remove_eh_handler_splicer): New function, split out
32991         of remove_eh_handler.
32992         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
32993         warning about running it on many EH regions one at a time.
32994         (remove_unreachable_eh_regions_worker): New function, walk the
32995         EH tree in depth-first order and remove non-marked regions.
32996         (remove_unreachable_eh_regions): New function.
32997         * tree-eh.c (mark_reachable_handlers): New function, split out
32998         from remove_unreachable_handlers.
32999         (remove_unreachable_handlers): Use mark_reachable_handlers and
33000         remove_unreachable_eh_regions.
33001         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
33002         and remove_unreachable_eh_regions.
33003
33004 2013-03-05  Richard Biener  <rguenther@suse.de>
33005
33006         PR middle-end/56525
33007         * loop-init.c (fix_loop_structure): Remove loops in two stages,
33008         not freeing them until the end.
33009
33010 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33011
33012         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
33013
33014 2013-03-05  Richard Biener  <rguenther@suse.de>
33015
33016         PR tree-optimization/56270
33017         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
33018         of loads after scheduling an SLP instance.
33019
33020 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33021
33022         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
33023         tic6x.exp.
33024         (check_gcc_parallelize): Run guality.exp as a separate job from
33025         vect.exp with unsorted.exp and $(dg_target_exps) separately from
33026         struct-layout-1.exp with stackalign.exp.
33027
33028         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
33029
33030         PR middle-end/56461
33031         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
33032         load_index sbitmap even if some bit in it isn't set.
33033
33034         PR middle-end/56461
33035         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
33036         (discover_iteration_bound_by_body_walk): Change queues to
33037         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
33038         spelling in comment.  Call safe_push on queues[bound_index] directly.
33039         Release queues[queue_index] in every iteration unconditionally.
33040         Release bounds vector.
33041
33042         PR middle-end/56461
33043         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
33044         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
33045         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
33046         inner_phis vector.
33047
33048 2013-03-05  Richard Biener  <rguenther@suse.de>
33049
33050         PR lto/56515
33051         * tree-inline.c (remap_blocks_to_null): New function.
33052         (expand_call_inline): When expanding a call stmt without
33053         an associated block inline remap all callee blocks to NULL.
33054
33055 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
33056
33057         PR rtl-optimization/56494
33058         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
33059         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
33060         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
33061
33062         PR middle-end/56461
33063         * sel-sched-ir.c (free_sched_pools): Release
33064         succs_info_pool.stack[succs_info_pool.max_top] vectors too
33065         if succs_info_pool.max_top isn't -1.
33066
33067         PR bootstrap/56509
33068         * opts.c (opts_obstack, opts_concat): Moved to...
33069         * opts-common.c (opts_obstack, opts_concat): ... here.
33070
33071 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
33072
33073         PR middle-end/56461
33074         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
33075
33076 2013-03-04  Martin Jambor  <mjambor@suse.cz>
33077
33078         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
33079         all appropriate places.
33080
33081 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
33082
33083         PR tree-optimization/56424
33084         * ipa-split.c (split_function): Do not set the RSO flag if result is
33085         not by reference and its type is a register type.
33086
33087 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
33088
33089         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
33090         (microblaze_legitimate_pic_operand): Likewise
33091         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
33092         new function microblaze_legitimate_pic_operand
33093         * config/microblaze/microblaze-protos.h
33094         (microblaze_legitimate_pic_operand): Declare.
33095
33096 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33097
33098         * config/microblaze/predicates.md (call_insn_simple_operand):
33099         New predicate for supported rtx code types.
33100         * config/microblaze/microblaze.md (call_internal1): Use
33101         call_insn_simple_operand predicate.
33102
33103 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
33104
33105         PR middle-end/56461
33106         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
33107         partitions.ordered_remove.
33108
33109         PR middle-end/56461
33110         * tree-vect-stmts.c (vectorizable_conversion): Don't call
33111         vec_oprnds0.create (1) for modifier == NONE.
33112
33113         PR middle-end/56461
33114         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
33115         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
33116         vec_oprnds1 right before pushing anything to it for
33117         scalar_shift_arg.
33118
33119         PR middle-end/56461
33120         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
33121         set nbbs to 0 instead of having separate code path.
33122         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
33123         instead of false as last argument if returning NULL.
33124
33125 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
33126
33127         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
33128         the attribute is now called "target" instead of "option".
33129         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
33130         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
33131         attribute/pragma name for TARGET_OPTION_VALID_P and
33132         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
33133         * doc/tm.texi: Regenerated.
33134
33135 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
33136
33137         * config/microblaze/microblaze.c:
33138         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
33139         * config/microblaze/microblaze.h: Add -mxl-reorder to
33140         DRIVER_SELF_SPECS.
33141         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
33142         instructions emitted if TARGET_REORDER.
33143         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
33144         or 0 for -m/-mno case, but initialises as 2 to detect default use case
33145         separately.
33146
33147 2013-03-01  Xinliang David Li  <davidxl@google.com>
33148
33149         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
33150         walk length.
33151
33152 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
33153
33154         PR middle-end/56461
33155         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
33156         vector even when returning true.  Fix up function comment formatting.
33157
33158         PR middle-end/56461
33159         * ira-build.c (ira_loop_nodes_count): New variable.
33160         (create_loop_tree_nodes): Initialize it.
33161         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
33162
33163         PR middle-end/56461
33164         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
33165         method on dr_chain and result_chain.
33166         * tree-vect-stmts.c (vectorizable_store): Only call
33167         result_chain.create if j == 0.
33168
33169         PR middle-end/56461
33170         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
33171         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
33172         before overwriting it.
33173
33174 2013-03-01  Tobias Burnus  <burnus@net-b.de>
33175
33176         * doc/extended.texi (C Extensions): Change order in @menu
33177         to match @node.
33178         (Other MIPS Built-in Functions): Move last MIPS entry before
33179         "picoChip Built-in Functions".
33180         (SH Built-in Functions): Move after RX Built-in Functions.
33181         * doc/gcc.texi (Introduction): Change order in @menu
33182         to match @node.
33183         * doc/md.texi (Constraints): Ditto.
33184         * gty.texi (Type Information): Ditto.
33185         (User-provided marking routines for template types): Make
33186         subsection.
33187         * doc/invoke.texi (AArch64 Options): Move before
33188         "Adapteva Epiphany Options".
33189
33190 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
33191             Jakub Jelinek  <jakub@redhat.com>
33192
33193         PR sanitizer/56454
33194         * asan.c (gate_asan): Lookup no_sanitize_address instead of
33195         no_address_safety_analysis attribute.
33196         * doc/extend.texi (no_address_safety_attribute): Rename to
33197         no_sanitize_address attribute, mention no_address_safety_analysis
33198         attribute as deprecated alias.
33199
33200 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
33201
33202         PR middle-end/56461
33203         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
33204         type to vec<vec<tree> > *.
33205         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
33206         to be vec<tree> instead of vec<tree> *, set vec_defs
33207         to vNULL and call vec_defs.create (number_of_vects), adjust other
33208         uses of vec_defs.
33209         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
33210         vectorizable_condition): Adjust vect_get_slp_defs callers.
33211
33212 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33213
33214         * config/aarch64/aarch64.c
33215         (aarch64_float_const_representable): Remove unused variable.
33216
33217 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33218
33219         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
33220
33221 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33222
33223         * config/aarch64/aarch64-builtins.c
33224         (aarch64_init_simd_builtins): Make static.
33225
33226 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33227
33228         * config/aarch64/aarch64.c
33229         (aarch64_simd_make_constant): Make static.
33230
33231 2013-02-28  Martin Jambor  <mjambor@suse.cz>
33232
33233         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
33234         with no initialization to the RHS of debug statements.
33235
33236 2013-02-28  Martin Jambor  <mjambor@suse.cz>
33237
33238         PR tree-optimization/56294
33239         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
33240         Adjust dumping.
33241         (get_access_replacement): Do not call create_access_replacement.
33242         Assert a replacement exists.
33243         (get_repl_default_def_ssa_name): Create the replacement declaration
33244         itself.
33245
33246 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33247
33248         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
33249         final_end_function.
33250
33251 2013-02-28  Marek Polacek  <polacek@redhat.com>
33252
33253         PR rtl-optimization/56466
33254         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
33255         if we're changing a loop.
33256         (peel_loops_completely): Likewise.
33257
33258 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
33259
33260         PR c++/55813
33261         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
33262
33263 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33264
33265         PR target/56445
33266         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
33267         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
33268         INTX_FTYPE_FX, FX_FTYPE_INTX.
33269         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
33270
33271 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33272
33273         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
33274         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
33275         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
33276         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
33277         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
33278         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
33279         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
33280         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
33281         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
33282         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
33283         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
33284         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
33285         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
33286         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
33287         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
33288         (avrxmega6): Increase max flash segments from 5 to 6.
33289         * config/avr/t-multilib: Regenerate.
33290         * config/avr/avr-tables.opt: Regenerate.
33291         * doc/avr-mmcu.texi: Regenerate.
33292
33293 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33294
33295         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
33296         (avr_device_to_arch): Rename to avr_device_to_ld.
33297         (avr_device_to_as): New prototype.
33298         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
33299         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
33300         * config/avr/driver-avr.c (avr_device_to_as): New.
33301         (avr_device_to_arch): Rename to avr_device_to_ld.
33302
33303 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33304
33305         PR middle-end/56461
33306         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
33307         method on dr_chain and result_chain.
33308
33309         PR middle-end/56461
33310         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
33311         pointer_set_destroy on not_executed_last_iteration.
33312
33313         PR middle-end/56461
33314         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
33315
33316         PR middle-end/56461
33317         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
33318         FOR_EACH_DEFINED_FUNCTION when freeing state.
33319
33320         PR middle-end/56461
33321         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
33322         pool_free.
33323         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
33324         overwriting it.
33325
33326         PR middle-end/56461
33327         * ipa-cp.c (decide_whether_version_node): Call vec_free on
33328         known_aggs[i].items and release known_aggs vector.
33329
33330         PR middle-end/56461
33331         * ipa-reference.c (propagate): Free node_info even for alias nodes.
33332
33333 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33334
33335         * config/microblaze/microblaze.c (microblaze_emit_compare):
33336         Use xor for EQ/NE comparisions.
33337         * config/microblaze/microblaze.md (cstoresf4): Add constraints
33338         (cbranchsf4): Adjust operator to comparison_operator.
33339
33340 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33341
33342         PR middle-end/56461
33343         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
33344         vector.
33345         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
33346         vec_safe_push, always update *slot.
33347         (redirect_edge_var_map_clear): Use vec_free.
33348         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
33349         (free_var_map_entry): Use vec_free.
33350         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
33351         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
33352
33353 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
33354
33355         PR middle-end/45472
33356         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
33357         when the may_trap_p bit of the exprs being merged differs.
33358         Reorder tests for speculativeness in the logical and operator.
33359
33360 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33361
33362         * incpath.c (add_standard_paths): Use reconcat instead of concat
33363         where appropriate and avoid leaking memory.
33364
33365         * opts.h: Include obstack.h.
33366         (opts_concat): New prototype.
33367         (opts_obstack): New declaration.
33368         * opts.c (opts_concat): New function.
33369         (opts_obstack): New variable.
33370         (init_options_struct): Call gcc_init_obstack on opts_obstack.
33371         (finish_options): Use opts_concat instead of concat
33372         and XOBNEWVEC instead of XNEWVEC.
33373         * opts-common.c (generate_canonical_option, decode_cmdline_option,
33374         generate_option): Likewise.
33375         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
33376         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
33377
33378         PR target/56455
33379         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
33380         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
33381
33382 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
33383
33384         PR middle-end/56461
33385         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
33386
33387 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
33388
33389         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
33390         (arm_block_move_unaligned_straight): Likewise.
33391         (arm_adjust_block_mem): Likewise.
33392
33393 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
33394
33395         PR target/48901
33396         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
33397         temp, cond and label.
33398         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
33399
33400         PR target/52500
33401         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
33402         * config/c6x/c6x.h (dbx_register_map): Update declaration.
33403
33404         PR target/52501
33405         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
33406         of prologue/epilogue functions.
33407
33408         PR target/52550
33409         * config/tilegx/tilegx.c (tilegx_expand_prologue):
33410         Remove unused variable cfa_offset.
33411         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
33412
33413         PR target/54639
33414         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
33415         type promotion to unsigned.
33416
33417         PR target/54640
33418         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
33419         for HOST_WIDE_INT of 32 bit / same size as int.
33420         (arm_block_move_unaligned_straight): Likewise.
33421         (arm_adjust_block_mem): Likewise.
33422
33423         PR target/54662
33424         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
33425         ALL_CFLAGS.
33426
33427 2013-02-26  Marek Polacek  <polacek@redhat.com>
33428
33429         PR tree-optimization/56426
33430         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
33431
33432 2013-02-26  Richard Biener  <rguenther@suse.de>
33433
33434         PR target/56444
33435         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
33436         unused variable loops.
33437
33438 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
33439
33440         PR tree-optimization/56448
33441         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
33442         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
33443         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
33444         later operands of the references, or even first operand for
33445         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
33446
33447         PR tree-optimization/56443
33448         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
33449         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
33450         to type_for_mode langhook.
33451
33452 2013-02-25  Matt Turner  <mattst88@gmail.com>
33453
33454         * doc/invoke.texi: Document r4700.
33455
33456 2013-02-25  Richard Biener  <rguenther@suse.de>
33457
33458         PR tree-optimization/56175
33459         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
33460         split out from ...
33461         (simplify_bitwise_binary): ... here.  Also guard the conversion
33462         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
33463
33464 2013-02-25  Catherine Moore  <clm@codesourcery.com>
33465
33466         Revert:
33467         2013-02-24  Catherine Moore  <clm@codesourcery.com>
33468             Maciej W. Rozycki  <macro@codesourcery.com>
33469             Tom de Vries  <tom@codesourcery.com>
33470             Nathan Sidwell  <nathan@codesourcery.com>
33471             Iain Sandoe  <iain@codesourcery.com>
33472             Nathan Froyd  <froydnj@codesourcery.com>
33473             Chao-ying Fu  <fu@mips.com>
33474
33475         * doc/extend.texi: (micromips, nomicromips, nocompression):
33476         Document new function attributes.
33477         * doc/invoke.texi (minterlink-compressed, mmicromips,
33478         m14k, m14ke, m14kec): Document new options.
33479         (minterlink-mips16): Update documentation.
33480         * doc/md.texi (ZC, ZD): Document new constraints.
33481         * configure.ac (gcc_cv_as_micromips): Check if linker
33482         supports the .set micromips directive.
33483         * configure: Regenerate.
33484         * config.in: Regenerate.
33485         * config/mips/mips-tables.opt: Regenerate.
33486         * config/mips/micromips.md: New file.
33487         * constraints.md (ZC, AD): New constraints.
33488         * config/mips/predicates.md (movep_src_register): New predicate.
33489         (movep_src_operand): New predicate.
33490         (non_volatile_mem_operand): New predicate.
33491         * config/mips/mips.md (multimem): New type.
33492         (length): Differentiate between 17-bit and 18-bit branch offsets.
33493         (MOVEP1, MOVEP2): New mode iterator.
33494         (mov_<load>l): Use ZC constraint.
33495         (mov_<load>r): Likewise.
33496         (mov_<store>l): Likewise.
33497         (mov_<store>r): Likewise.
33498         (*branch_equality<mode>_inverted): Add microMIPS support.
33499         (*branch_equality<mode>): Likewise.
33500         (*jump_absolute): Likewise.
33501         (indirect_jump_<mode>): Likewise.
33502         (tablejump_<mode>): Likewise.
33503         (<optab>_internal): Likewise.
33504         (sibcall_internal): Likewise.
33505         (sibcall_value_internal): Likewise.
33506         (prefetch): Use constraint ZD.
33507         * config/mips/mips.opt (minterlink-compressed): New option.
33508         (minterlink-mips16): Now an alias for minterlink-compressed.
33509         (mmicromips): New option.
33510         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33511         (compare_and_swap_12): Likewise.
33512         (sync_add<mode>): Likewise.
33513         (sync_<optab>_12): Likewise.
33514         (sync_old_<optab>_12): Likewise.
33515         (sync_new_<optab>_12): Likewise.
33516         (sync_nand_12): Likewise.
33517         (sync_old_nand_12): Likewise.
33518         (sync_new_nand_12): Likewise.
33519         (sync_sub<mode>): Likewise.
33520         (sync_old_add<mode>): Likewise.
33521         (sync_old_sub<mode>): Likewise.
33522         (sync_new_add<mode>): Likewise.
33523         (sync_new_sub<mode>): Likewise.
33524         (sync_<optab><mode>): Likewise.
33525         (sync_old_<optab><mode>): Likewise.
33526         (sync_new_<optab><mode>): Likewise.
33527         (sync_nand<mode>): Likewise.
33528         (sync_old_nand<mode>): Likewise.
33529         (sync_new_nand<mode>): Likewise.
33530         (sync_lock_test_and_set<mode>): Likewise.
33531         (test_and_set_12): Likewise.
33532         (atomic_compare_and_swap<mode>): Likewise.
33533         (atomic_exchange<mode>_llsc): Likewise.
33534         (atomic_fetch_add<mode>_llsc): Likewise.
33535         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33536         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33537         (umips_save_restore_pattern_p): Likewise.
33538         (umips_load_store_pair_p): Likewise.
33539         (umips_output_load_store_pair): Likewise.
33540         (umips_movep_target_p): Likewise.
33541         (umips_12bit_offset_address_p): Likewise.
33542         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33543         (mips_base_mips16): Rename this...
33544         (mips_base_compression_flags): ...to this. Update all uses.
33545         (mips_attribute_table): Add micromips, nomicromips and nocompression.
33546         (mips_mips16_decl_p): Delete.
33547         (mips_nomips16_decl_p): Delete.
33548         (mips_get_compress_on_flags): New function.
33549         (mips_get_compress_off_flags): New function.
33550         (mips_get_compress_mode): New function.
33551         (mips_get_compress_on_name): New function.
33552         (mips_get_compress_off_name): New function.
33553         (mips_insert_attributes): Support multiple compression types.
33554         (mips_merge_decl_attributes): Likewise.
33555         (umips_12bit_offset_address_p): New function.
33556         (mips_start_function_definition): Emit .set micromips directive.
33557         (mips_call_may_need_jalx_p): New function.
33558         (mips_function_ok_for_sibcall): Add microMIPS support.
33559         (mips_print_operand_punctuation): Support short delay slots and
33560         compact jumps.
33561         (umips_swm_mask, umips_swm_encoding): New.
33562         (umips_build_save_restore): New function.
33563         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33564         (was_mips16_p): Remove.
33565         (old_compression_mode): New.
33566         (mips_set_compression_mode): New function.
33567         (mips_set_current_function): Add microMIPS support.
33568         (mips_option_override): Likewise.
33569         (umips_save_restore_pattern_p): New function.
33570         (umips_output_save_restore): New function.
33571         (umips_load_store_pair_p_1): New function.
33572         (umips_load_store_pair_p): New function.
33573         (umips_output_load_store_pair_1): New function.
33574         (umips_output_load_store_pair): New function.
33575         (umips_movep_target_p) New function.
33576         (mips_prepare_pch_save): Add microMIPS support.
33577         * config/mips/mips.h (TARGET_COMPRESSION): New.
33578         (TARGET_CPU_CPP_BUILTINS): Update macro
33579         to use new compression flags and to support microMIPS.
33580         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33581         (MIPS_ARCH_FLOAT_SPEC): Likewise.
33582         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33583         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33584         (ASM_SPEC): Support mmicromips and mno-micromips.
33585         (M16STORE_REG_P): New macro.
33586         (MIPS_CALL): Support TARGET_MICROMIPS.
33587         (MICROMIPS_J): New macro.
33588         (mips_base_mips16): Rename this...
33589         (mips_base_compression_flags): ...to this.
33590         (UMIPS_12BIT_OFFSET_P): New macro.
33591         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33592         (MULTILIB_DIRNAMES): Likewise.
33593
33594 2013-02-25  Tom de Vries  <tom@codesourcery.com>
33595
33596         PR rtl-optimization/56131
33597         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
33598         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
33599         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
33600
33601 2013-02-25  Tobias Burnus  <burnus@net-b.de>
33602
33603         * doc/invoke.texi (-fsanitize=): Move from optimization
33604         to debugging options.
33605
33606 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
33607
33608         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
33609
33610 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
33611             Alexander Monakov  <amonakov@ispras.ru>
33612
33613         PR middle-end/56077
33614         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
33615         flush pending lists also on non-jumps.  Adjust comment.
33616
33617 2013-02-24  Catherine Moore  <clm@codesourcery.com>
33618             Maciej W. Rozycki  <macro@codesourcery.com>
33619             Tom de Vries  <tom@codesourcery.com>
33620             Nathan Sidwell  <nathan@codesourcery.com>
33621             Iain Sandoe  <iain@codesourcery.com>
33622             Nathan Froyd  <froydnj@codesourcery.com>
33623             Chao-ying Fu  <fu@mips.com>
33624
33625         * doc/extend.texi: (micromips, nomicromips, nocompression):
33626         Document new function attributes.
33627         * doc/invoke.texi (minterlink-compressed, mmicromips,
33628         m14k, m14ke, m14kec): Document new options.
33629         (minterlink-mips16): Update documentation.
33630         * doc/md.texi (ZC, ZD): Document new constraints.
33631         * configure.ac (gcc_cv_as_micromips): Check if linker
33632         supports the .set micromips directive.
33633         * configure: Regenerate.
33634         * config.in: Regenerate.
33635         * config/mips/mips-tables.opt: Regenerate.
33636         * config/mips/micromips.md: New file.
33637         * constraints.md (ZC, AD): New constraints.
33638         * config/mips/predicates.md (movep_src_register): New predicate.
33639         (movep_src_operand): New predicate.
33640         (non_volatile_mem_operand): New predicate.
33641         * config/mips/mips.md (multimem): New type.
33642         (length): Differentiate between 17-bit and 18-bit branch offsets.
33643         (MOVEP1, MOVEP2): New mode iterator.
33644         (mov_<load>l): Use ZC constraint.
33645         (mov_<load>r): Likewise.
33646         (mov_<store>l): Likewise.
33647         (mov_<store>r): Likewise.
33648         (*branch_equality<mode>_inverted): Add microMIPS support.
33649         (*branch_equality<mode>): Likewise.
33650         (*jump_absolute): Likewise.
33651         (indirect_jump_<mode>): Likewise.
33652         (tablejump_<mode>): Likewise.
33653         (<optab>_internal): Likewise.
33654         (sibcall_internal): Likewise.
33655         (sibcall_value_internal): Likewise.
33656         (prefetch): Use constraint ZD.
33657         * config/mips/mips.opt (minterlink-compressed): New option.
33658         (minterlink-mips16): Now an alias for minterlink-compressed.
33659         (mmicromips): New option.
33660         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33661         (compare_and_swap_12): Likewise.
33662         (sync_add<mode>): Likewise.
33663         (sync_<optab>_12): Likewise.
33664         (sync_old_<optab>_12): Likewise.
33665         (sync_new_<optab>_12): Likewise.
33666         (sync_nand_12): Likewise.
33667         (sync_old_nand_12): Likewise.
33668         (sync_new_nand_12): Likewise.
33669         (sync_sub<mode>): Likewise.
33670         (sync_old_add<mode>): Likewise.
33671         (sync_old_sub<mode>): Likewise.
33672         (sync_new_add<mode>): Likewise.
33673         (sync_new_sub<mode>): Likewise.
33674         (sync_<optab><mode>): Likewise.
33675         (sync_old_<optab><mode>): Likewise.
33676         (sync_new_<optab><mode>): Likewise.
33677         (sync_nand<mode>): Likewise.
33678         (sync_old_nand<mode>): Likewise.
33679         (sync_new_nand<mode>): Likewise.
33680         (sync_lock_test_and_set<mode>): Likewise.
33681         (test_and_set_12): Likewise.
33682         (atomic_compare_and_swap<mode>): Likewise.
33683         (atomic_exchange<mode>_llsc): Likewise.
33684         (atomic_fetch_add<mode>_llsc): Likewise.
33685         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33686         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33687         (umips_save_restore_pattern_p): Likewise.
33688         (umips_load_store_pair_p): Likewise.
33689         (umips_output_load_store_pair): Likewise.
33690         (umips_movep_target_p): Likewise.
33691         (umips_12bit_offset_address_p): Likewise.
33692         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33693         (mips_base_mips16): Rename this...
33694         (mips_base_compression_flags): ...to this. Update all uses.
33695         (mips_attribute_table): Add micromips, nomicromips and nocompression.
33696         (mips_mips16_decl_p): Delete.
33697         (mips_nomips16_decl_p): Delete.
33698         (mips_get_compress_on_flags): New function.
33699         (mips_get_compress_off_flags): New function.
33700         (mips_get_compress_mode): New function.
33701         (mips_get_compress_on_name): New function.
33702         (mips_get_compress_off_name): New function.
33703         (mips_insert_attributes): Support multiple compression types.
33704         (mips_merge_decl_attributes): Likewise.
33705         (umips_12bit_offset_address_p): New function.
33706         (mips_start_function_definition): Emit .set micromips directive.
33707         (mips_call_may_need_jalx_p): New function.
33708         (mips_function_ok_for_sibcall): Add microMIPS support.
33709         (mips_print_operand_punctuation): Support short delay slots and
33710         compact jumps.
33711         (umips_swm_mask, umips_swm_encoding): New.
33712         (umips_build_save_restore): New function.
33713         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33714         (was_mips16_p): Remove.
33715         (old_compression_mode): New.
33716         (mips_set_compression_mode): New function.
33717         (mips_set_current_function): Add microMIPS support.
33718         (mips_option_override): Likewise.
33719         (umips_save_restore_pattern_p): New function.
33720         (umips_output_save_restore): New function.
33721         (umips_load_store_pair_p_1): New function.
33722         (umips_load_store_pair_p): New function.
33723         (umips_output_load_store_pair_1): New function.
33724         (umips_output_load_store_pair): New function.
33725         (umips_movep_target_p) New function.
33726         (mips_prepare_pch_save): Add microMIPS support.
33727         * config/mips/mips.h (TARGET_COMPRESSION): New.
33728         (TARGET_CPU_CPP_BUILTINS): Update macro
33729         to use new compression flags and to support microMIPS.
33730         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33731         (MIPS_ARCH_FLOAT_SPEC): Likewise.
33732         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33733         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33734         (ASM_SPEC): Support mmicromips and mno-micromips.
33735         (M16STORE_REG_P): New macro.
33736         (MIPS_CALL): Support TARGET_MICROMIPS.
33737         (MICROMIPS_J): New macro.
33738         (mips_base_mips16): Rename this...
33739         (mips_base_compression_flags): ...to this.
33740         (UMIPS_12BIT_OFFSET_P): New macro.
33741         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33742         (MULTILIB_DIRNAMES): Likewise.
33743
33744 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
33745
33746         PR target/52555
33747         * target-globals.c (save_target_globals): For init_reg_sets and
33748         target_reinit remporarily set this_fn_optabs to this_target_optabs.
33749
33750 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
33751
33752         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
33753         * config/aarch64/t-aarch64
33754         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
33755
33756 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
33757
33758         PR inline-asm/56148
33759         * lra-constraints.c (process_alt_operands): Reload operand
33760         conflicting with earlier clobber only if no more other conflicting
33761         operands.
33762
33763 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
33764
33765         PR sanitizer/56393
33766         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
33767         if not linking a shared library.
33768
33769 2013-02-22  Seth LaForge  <sethml@google.com>
33770
33771         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
33772
33773 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
33774
33775         * config/arm/arm.md (split for extendsidi): Update condition.
33776         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
33777         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
33778         (qhs_zextenddi_cstr): Likewise.
33779
33780 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
33781
33782         PR middle-end/56420
33783         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
33784         avoid signed wrapping.
33785         (expand_mult): Handle properly multiplication by
33786         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
33787         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
33788         in the compiler if coeff is HOST_WIDE_INT_MIN.
33789         (expand_divmod): Don't make ext_op1 static, change it's type to
33790         uhwi.  Avoid undefined behavior in -INTVAL (op1).
33791
33792         PR rtl-optimization/50339
33793         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
33794         field.
33795         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
33796         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
33797         into splitting_ashiftrt field.
33798         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
33799         ASHIFTRT.
33800         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
33801         choices.
33802
33803 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
33804
33805         PR middle-end/56108
33806         * trans-mem.c (execute_tm_mark): Do not expand transactions that
33807         are sure to go irrevocable.
33808
33809 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
33810
33811         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
33812         scalars are valid operands.
33813
33814 2013-02-21  Martin Jambor  <mjambor@suse.cz>
33815
33816         PR tree-optimization/56310
33817         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
33818         only matching indices and non-negative final offsets.
33819         (intersect_aggregates_with_edge): Pass src_idx to
33820         agg_replacements_to_vector.  Pass src_idx insstead of index to
33821         intersect_with_agg_replacements.
33822
33823 2013-02-21  Martin Jambor  <mjambor@suse.cz>
33824
33825         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
33826         instead of hard-wired defaults.
33827
33828 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
33829
33830         * doc/invoke.texi (MIPS Options): Update documentation of the
33831         floating-point multiply-accumulate instruction restrictions.
33832
33833 2013-02-21  Kostya Serebryany  <kcc@google.com>
33834
33835         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
33836         asan_shadow_offset on x86_64 linux.
33837
33838 2013-02-21  Richard Biener  <rguenther@suse.de>
33839
33840         PR tree-optimization/56415
33841         Revert
33842         2013-02-11  Richard Biener  <rguenther@suse.de>
33843
33844         PR tree-optimization/56273
33845         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33846         first VRP run.
33847
33848 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
33849
33850         PR bootstrap/56258
33851         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
33852         instead of @itemx.
33853
33854         PR inline-asm/56405
33855         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
33856         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
33857
33858 2013-02-20  Jan Hubicka  <jh@suse.cz>
33859
33860         PR tree-optimization/56265
33861         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
33862         when target is referenced for first time.
33863
33864 2013-02-20  Richard Biener  <rguenther@suse.de>
33865
33866         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
33867         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
33868         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
33869         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
33870         not return anything.
33871         (rename_ssa_copies): Do not remove unused locals.
33872         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
33873         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
33874         * passes.c (execute_function_todo): Do not schedule unused locals
33875         removal if cleanup_tree_cfg did something.
33876         * tree-ssa-live.c (remove_unused_locals): Dump statistics
33877         about the number of removed locals.
33878
33879 2013-02-20  Richard Biener  <rguenther@suse.de>
33880
33881         PR tree-optimization/56398
33882         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
33883
33884 2013-02-20  Martin Jambor  <mjambor@suse.cz>
33885
33886         PR tree-optimization/55334
33887         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
33888         restricted pointers to arrays.
33889
33890 2013-02-20  Richard Biener  <rguenther@suse.de>
33891             Jakub Jelinek  <jakub@redhat.com>
33892
33893         PR tree-optimization/56396
33894         * tree-ssa-ccp.c (n_const_val): New static variable.
33895         (get_value): Return NULL for SSA names we don't have a lattice
33896         entry for.
33897         (ccp_initialize): Initialize n_const_val.
33898         * tree-ssa-copy.c (n_copy_of): New static variable.
33899         (init_copy_prop): Initialize n_copy_of.
33900         (get_value): Return NULL_TREE for SSA names we don't have a
33901         lattice entry for.
33902
33903 2013-02-20  Martin Jambor  <mjambor@suse.cz>
33904
33905         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
33906
33907 2013-02-20  Richard Biener  <rguenther@suse.de>
33908
33909         * genpreds.c (write_lookup_constraint): Do not compare first
33910         letter of the constraint again.
33911
33912 2013-02-20  Richard Biener  <rguenther@suse.de>
33913
33914         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
33915         and ceil_log2.
33916         (get_use_iv_cost): Terminate hashtable walk when coming across
33917         an empty entry.
33918
33919 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
33920
33921         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
33922         reassociation for avx2 targets.
33923
33924 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33925
33926         * config/microblaze/microblaze.c: microblaze_has_clz = 0
33927         Add version check for v8.10.a to enable microblaze_has_clz
33928         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
33929         version and TARGET_PATTERN_COMPARE check
33930         * config/microblaze/microblaze.md: New clzsi2 instruction
33931
33932 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33933
33934         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
33935         function before branching.
33936
33937 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
33938
33939         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
33940         DUMP_INSN_RTX_UID.
33941         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
33942
33943 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
33944
33945         PR middle-end/55889
33946         * sel-sched.c: Include ira.h.
33947         (implicit_clobber_conflict_p): New function.
33948         (moveup_expr): Use it.
33949         * Makefile.in (sel-sched.o): Depend on ira.h.
33950
33951 2013-02-19  Richard Biener  <rguenther@suse.de>
33952
33953         PR tree-optimization/56384
33954         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
33955         (vn_hash_type): Split out from ...
33956         (vn_hash_constant_with_type): ... here.
33957         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
33958         (vn_phi_eq): Compare types from vn_phi_s structure.
33959         (vn_phi_lookup): Populate vn_phi_s type.
33960         (vn_phi_insert): Likewise.
33961
33962 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
33963
33964         PR tree-optimization/56350
33965         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
33966         if haven't found reduction or nested cycle operand, rather than
33967         asserting we must find it.
33968
33969         PR tree-optimization/56381
33970         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
33971         to fold_build3.
33972
33973 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
33974             Jakub Jelinek  <jakub@redhat.com>
33975
33976         PR target/52555
33977         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
33978         (swap_optab_enable): Same.
33979         (init_all_optabs): Use argument instead of global.
33980         * tree.h (struct tree_optimization_option): New field target_optabs.
33981         * expr.h (init_all_optabs): Add argument to prototype.
33982         (TREE_OPTIMIZATION_OPTABS): New.
33983         (save_optabs_if_changed): Protoize.
33984         * optabs.h: Declare this_fn_optabs.
33985         * optabs.c (save_optabs_if_changed): New.
33986         Declare this_fn_optabs.
33987         (init_optabs): Add argument to init_all_optabs() call.
33988         * function.c (invoke_set_current_function_hook): Handle per
33989         function optabs.
33990         * function.h (struct function): New field optabs.
33991         * config/mips/mips.c (mips_set_mips16_mode): Handle when
33992         optimization_current_node has changed.
33993         * target-globals.h (save_target_globals_default_opts): Protoize.
33994         * target-globals.c (save_target_globals_default_opts): New.
33995
33996 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33997
33998         PR target/56347
33999         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
34000         registers %fr12 and %fr12R as call used.
34001
34002         PR target/56214
34003         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
34004         and HImode, require all displacements to be an integer multiple of
34005         their mode size.
34006         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
34007         only allow QImode and HImode when reload is in progress and strict is
34008         true.  Likewise for symbolic addresses.  Use base14_operand to check
34009         displacements in REG+BASE addresses.
34010
34011 2013-02-18  Richard Biener  <rguenther@suse.de>
34012
34013         PR tree-optimization/56366
34014         * tree-vect-loop.c (get_initial_def_for_induction): Properly
34015         handle sign-conversion of outer-loop initial induction value.
34016
34017 2013-02-18  Richard Biener  <rguenther@suse.de>
34018
34019         PR middle-end/56349
34020         * cfghooks.c (merge_blocks): If we merge a latch into another
34021         block adjust references to it.
34022         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
34023         (verify_loop_structure): Verify that a recorded latch is in fact
34024         a latch.
34025
34026 2013-02-18  Richard Biener  <rguenther@suse.de>
34027
34028         PR tree-optimization/56321
34029         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
34030         order SSA name release and virtual operand unlinking.
34031
34032 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34033
34034         * config/microblaze/microblaze.md (save_stack_block): Define.
34035         (restore_stack_block): Likewise.
34036
34037 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34038
34039         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
34040         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
34041         * config/microblaze/microblaze.c (microblaze_option_override):
34042         Bail out early for PIC modes when target does not support PIC.
34043
34044 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34045
34046         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
34047         Replace with a microblaze version.
34048         (microblaze_trampoline_init): Adapt for microblaze.
34049         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
34050         microblaze.
34051
34052 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
34053             Dodji Seketeli  <dodji@redhat.com>
34054
34055         PR asan/56330
34056         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
34057         (instrument_mem_region_access): Do not forget to always put
34058         instrumentation of the of 'base' and 'base + len' in a "if (len !=
34059         0) statement, even for cases where either 'base' or 'base + len'
34060         are not instrumented -- because they have been previously
34061         instrumented.  Simplify the logic by putting all the statements
34062         instrument 'base + len' inside a sequence, and then insert that
34063         sequence right before the current insertion point.  Then, to
34064         instrument 'base + len', just get an iterator on that statement.
34065         And do not forget to update the pointer to iterator the function
34066         received as argument.
34067
34068 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
34069
34070         PR rtl-optimization/56348
34071         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
34072
34073 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
34074
34075         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
34076         (clean_graph_dump_file): Pass base to start_graph_dump.
34077
34078 2013-02-14  Richard Henderson  <rth@redhat.com>
34079
34080         PR target/55941
34081         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
34082
34083 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
34084
34085         * collect2-aix.h: Define F_LOADONLY.
34086
34087 2013-02-14  Richard Biener  <rguenther@suse.de>
34088
34089         PR lto/50494
34090         * varasm.c (output_constant_def_1): Get the decl representing
34091         the constant as argument.
34092         (output_constant_def): Wrap output_constant_def_1.
34093         (make_decl_rtl): Use output_constant_def_1 with the decl
34094         representing the constant.
34095         (build_constant_desc): Optionally re-use a decl already
34096         representing the constant.
34097         (tree_output_constant_def): Adjust.
34098
34099 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
34100
34101         Fix an asan crash
34102         * asan.c (instrument_builtin_call):  Really put the length of the
34103         second source argument into src1_len.
34104
34105 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
34106
34107         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
34108         argument.  If it is false, don't create edge from then_bb to
34109         fallthru_bb.
34110         (insert_if_then_before_iter): Pass true to it.
34111         (build_check_stmt): Pass false to it.
34112         (transform_statements): Flush hash table only on extended basic
34113         block boundaries, rather than at the beginning of every bb.
34114         Don't flush hash table on nonfreeing_call_p calls.
34115         * tree-flow.h (nonfreeing_call_p): New prototype.
34116         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
34117
34118 2013-02-13  David S. Miller  <davem@davemloft.net>
34119
34120         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
34121
34122 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
34123
34124         PR target/56184
34125         * ira.c (max_regno_before_ira): Move from ...
34126         (ira): ... here.
34127         (fix_reg_equiv_init): Use max_regno_before_ira instead of
34128         vec_safe_length.
34129
34130 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
34131
34132         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
34133
34134 2013-02-13  Richard Biener  <rguenther@suse.de>
34135
34136         PR lto/56295
34137         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
34138         globals in MEM_REFs.
34139
34140 2013-02-13  Richard Biener  <rguenther@suse.de>
34141
34142         * loop-init.c (loop_optimizer_init): Clear loop state when
34143         re-initializing preserved loops.
34144         * loop-unswitch.c (unswitch_single_loop): Return whether
34145         we unswitched the loop.  Do not verify loop state here.
34146         (unswitch_loops): When we unswitched a loop discover new loops.
34147
34148 2013-02-13  Kostya Serebryany  <kcc@google.com>
34149
34150         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
34151         on x86_64 linux.
34152         * sanitizer.def: Rename __asan_init to __asan_init_v1.
34153
34154 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
34155
34156         Avoid instrumenting duplicated memory access in the same basic block
34157         * Makefile.in (asan.o): Add new dependency on hash-table.h
34158         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
34159         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
34160         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
34161         (free_mem_ref_resources, has_mem_ref_been_instrumented)
34162         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
34163         (get_mem_ref_of_assignment): New functions.
34164         (get_mem_refs_of_builtin_call): Extract from
34165         instrument_builtin_call and tweak a little bit to make it fit with
34166         the new signature.
34167         (instrument_builtin_call): Use the new
34168         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
34169         of is_gimple_builtin_call.
34170         (instrument_derefs, instrument_mem_region_access): Insert the
34171         instrumented memory reference into the hash table.
34172         (maybe_instrument_assignment): Renamed instrument_assignment into
34173         this, and change it to advance the iterator when instrumentation
34174         actually happened and return true in that case.  This makes it
34175         homogeneous with maybe_instrument_assignment, and thus give a
34176         chance to callers to be more 'regular'.
34177         (transform_statements): Clear the memory reference hash table
34178         whenever we enter a new BB, when we cross a function call, or when
34179         we are done transforming statements.  Use
34180         maybe_instrument_assignment instead of instrumentation.  No more
34181         need to special case maybe_instrument_assignment and advance the
34182         iterator after calling it; it's now handled just like
34183         maybe_instrument_call.  Update comment.
34184
34185 2013-02-13  Richard Biener  <rguenther@suse.de>
34186
34187         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
34188         Fix loop discovery code.
34189
34190 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
34191
34192         PR inline-asm/56148
34193         * lra-constraints.c (process_alt_operands): Match early clobber
34194         operand with itself.  Check conflicts with earlyclobber only if
34195         the operand is not reloaded.  Prefer to reload conflicting operand
34196         if earlyclobber and matching operands are the same.
34197
34198 2013-02-12  Richard Biener  <rguenther@suse.de>
34199
34200         PR lto/56297
34201         * lto-streamer-out.c (write_symbol): Do not output symbols
34202         for hard register variables.
34203
34204 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
34205
34206         PR target/54222
34207         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
34208         (umulsidi3_insn, mulsidi3_insn): New insns.
34209
34210 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
34211
34212         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
34213         (struct tune_params): Add vec_costs field.
34214         * config/arm/arm.c (arm_builtin_vectorization_cost)
34215         (arm_add_stmt_cost): New functions.
34216         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
34217         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
34218         (arm_default_vec_cost): New struct of type cpu_vec_costs.
34219         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
34220         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
34221         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
34222         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
34223
34224 2013-02-12  Richard Biener  <rguenther@suse.de>
34225
34226         PR lto/56295
34227         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
34228         decls again if possible.
34229
34230 2013-02-12  Richard Biener  <rguenther@suse.de>
34231
34232         PR middle-end/56288
34233         * tree-ssa.c (verify_ssa_name): Fix check, move
34234         SSA_NAME_IN_FREE_LIST check up.
34235
34236 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
34237             Steven Bosscher   <steven@gcc.gnu.org>
34238
34239         PR rtl-optimization/56151
34240         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
34241         equal to op0 or op1, and last_insn pattern is CODE operation
34242         with MEM dest and one of the operands matches that MEM.
34243
34244 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
34245
34246         * doc/extend.texi: Document Function Multiversioning and "default"
34247         parameter string to target attribute.
34248         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
34249         target attribute parameter is "default".
34250         (ix86_compare_version_priority): Remove checks for target attribute.
34251         (ix86_mangle_function_version_assembler_name): Change error to sorry.
34252         Remove check for target attribute equal to NULL. Add assert.
34253         (ix86_generate_version_dispatcher_body): Change error to sorry.
34254
34255 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
34256             Jack Howarth  <howarth@bromo.med.uc.edu>
34257             Patrick Marlier  <patrick.marlier@gmail.com>
34258
34259         PR libitm/55693
34260         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
34261         define ENDFILE_SPEC as TM_DESTRUCTOR.
34262         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
34263
34264 2013-02-11  Alexander Potapenko  <glider@google.com>
34265             Jack Howarth  <howarth@bromo.med.uc.edu>
34266             Jakub Jelinek  <jakub@redhat.com>
34267
34268         PR sanitizer/55617
34269         * config/darwin.c (cdtor_record): Rename ctor_record.
34270         (sort_cdtor_records): Rename sort_ctor_records.
34271         (finalize_dtors): New routine to sort destructors by
34272         priority before use in assemble_integer.
34273         (machopic_asm_out_destructor): Use finalize_dtors if needed.
34274
34275 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
34276
34277         PR rtl-optimization/56275
34278         * simplify-rtx.c (avoid_constant_pool_reference): Check that
34279         offset is non-negative and less than cmode size before
34280         calling simplify_subreg.
34281
34282 2013-02-11  Richard Biener  <rguenther@suse.de>
34283
34284         PR tree-optimization/56264
34285         * cfgloop.h (fix_loop_structure): Adjust prototype.
34286         * loop-init.c (fix_loop_structure): Return the number of
34287         newly discovered loops.
34288         * tree-cfgcleanup.c (repair_loop_structures): When new loops
34289         are discovered, do a full loop-closed SSA rewrite.
34290
34291 2013-02-11  Richard Biener  <rguenther@suse.de>
34292
34293         PR tree-optimization/56273
34294         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34295         first VRP run.
34296         (check_array_ref): Fix missing newline in dumps.
34297         (search_for_addr_array): Likewise.
34298
34299 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
34300
34301         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
34302
34303 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
34304
34305         PR target/56256
34306         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
34307
34308 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
34309
34310         PR rtl-optimization/56246
34311         * lra-constraints.c (simplify_operand_subreg): Try to reuse
34312         reload pseudo.
34313         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
34314         constraints are satisfied.
34315
34316 2013-02-08  Jeff Law  <law@redhat.com>
34317
34318         PR debug/53948
34319         * emit-rtl.c (reg_is_parm_p): New function.
34320         * regs.h (reg_is_parm_p): New prototype.
34321         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
34322         callee-clobbered registers.
34323
34324 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
34325
34326         PR target/56043
34327         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
34328         If there is no implicit builtin declaration, just return NULL.
34329
34330 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34331
34332         * config/i386/sse.md (FMAMODEM): New mode iterator.
34333         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
34334         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
34335
34336 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34337
34338         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
34339         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
34340         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
34341
34342 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34343
34344         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
34345         (microblaze*-*-elf): Likewise.
34346         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
34347         LINK_SPEC.
34348         * config/microblaze/microblaze-c.c: Add builtin defines for
34349         _LITTLE_ENDIAN and _BIG_ENDIAN.
34350         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
34351         add to TARGET_DEFAULT flags.
34352         Expand ASM_SPEC and LINK_SPEC.
34353         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
34354         * config/microblaze/microblaze.md: Update extendsidi2 and
34355         movdi_internal instructions to use low-order / high-order reg
34356         print_operands.
34357         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
34358         options and inversemask / mask of LITTLE_ENDIAN.
34359         * config/microblaze/t-microblaze: Expand multilib options to
34360         include mlittle-endian (le) and update exceptions patterns.
34361
34362 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
34363
34364         PR rtl-optimization/56195
34365         * lra-constraints.c (get_reload_reg): Don't reuse regs
34366         if they have smaller mode than requested, if they have
34367         wider mode than requested, try to return a SUBREG.
34368
34369         PR tree-optimization/56250
34370         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
34371         if type is unsigned and code isn't MULT_EXPR.
34372
34373 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
34374
34375         PR tree-optimization/56064
34376         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
34377         bits according to mode.
34378         * fixed-value.h (fixed_from_double_int)
34379         (const_fixed_from_double_int): Adjust comments.
34380
34381 2013-02-08  Richard Biener  <rguenther@suse.de>
34382
34383         PR lto/56231
34384         * lto-streamer.h (struct data_in): Remove current_file, current_line
34385         and current_col members.
34386         * lto-streamer-out.c (lto_output_location): Stream changed bits
34387         en-block for efficiency.
34388         * lto-streamer-in.c (clear_line_info): Remove.
34389         (lto_input_location): Cache current file, line and column
34390         globally via local statics.  Read changed bits en-block.
34391         (input_function): Do not call clear_line_info.
34392         (lto_read_body): Likewise.
34393         (lto_input_toplevel_asms): Likewise.
34394
34395 2013-02-08  Michael Matz  <matz@suse.de>
34396
34397         PR tree-optimization/52448
34398         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
34399         (nt_call_phase): New static.
34400         (add_or_mark_expr): Only mark accesses with newer phase than any
34401         call seen.
34402         (nonfreeing_call_p): New.
34403         (nt_init_block): Update nt_call_phase, mark blocks as visited.
34404         (nt_fini_block): Keep blocks marked as visited.
34405         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
34406
34407 2013-02-08  Richard Biener  <rguenther@suse.de>
34408
34409         * ira.c (ira): Free broken dominator information.
34410
34411 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34412
34413         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
34414
34415 2013-02-08  Marek Polacek  <polacek@redhat.com>
34416
34417         * cfgloop.c (verify_loop_structure): Add more checking of headers.
34418
34419 2013-02-08  Richard Biener  <rguenther@suse.de>
34420
34421         PR middle-end/56181
34422         * cfgloop.h (flow_loops_find): Adjust.
34423         (bb_loop_header_p): Declare.
34424         * cfgloop.c (bb_loop_header_p): New function split out from ...
34425         (flow_loops_find): ... here.  Adjust function signature,
34426         support incremental loop structure update.
34427         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
34428         * cfgloopmanip.c (fix_loop_structure): Move ...
34429         * loop-init.c (fix_loop_structure): ... here.
34430         (apply_loop_flags): Split out from ...
34431         (loop_optimizer_init): ... here.
34432         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
34433         in incremental mode, only remove dead loops here.
34434
34435 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
34436
34437         PR target/54222
34438         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
34439         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
34440         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
34441         (*round<mode>3.libgcc): New insns for fixed-modes.
34442         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
34443         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
34444         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
34445         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
34446         implementations.  Define to __builtin_avr_absFX,
34447         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
34448         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
34449         __builtin_avr_countlsFX, respectively.
34450         * config/avr/avr-c.c (target.h): Include it.
34451         (enum avr_builtin_id): New enum.
34452         (avr_resolve_overloaded_builtin): New static function.
34453         (avr_register_target_pragmas): Use it to set
34454         targetm.resolve_overloaded_builtin.
34455         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
34456         tree nodes used by DEF_BUILTIN.
34457         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
34458         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
34459         <AVR_BUILTIN_xxBITS>: Same.
34460
34461 2013-02-08  Richard Biener  <rguenther@suse.de>
34462
34463         * cfgloop.c (verify_loop_structure): Properly handle
34464         a loop exiting to another loop header.
34465         * ira-int.h (ira_loops): Remove.
34466         * ira.c (ira_loops): Remove.
34467         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
34468         (do_reload): Use loop_optimizer_finalize.
34469         * ira-build.c (create_loop_tree_nodes): Use get_loops and
34470         number_of_loops to access the loop tree.
34471         (more_one_region_p): Likewise.
34472         (finish_loop_tree_nodes): Likewise.
34473         (rebuild_regno_allocno_maps): Likewise.
34474         (mark_loops_for_removal): Likewise.
34475         (mark_all_loops_for_removal): Likewise.
34476         (remove_unnecessary_regions): Likewise.
34477         (ira_build): Likewise.
34478         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
34479
34480 2013-02-08  Richard Biener  <rguenther@suse.de>
34481
34482         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
34483         * ipa-pure-const.c (analyze_function): Avoid calling
34484         mark_irreducible_loops twice.
34485         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
34486
34487 2013-02-07  David S. Miller  <davem@davemloft.net>
34488
34489         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
34490         on 'reg'.
34491         * var-tracking.c (vt_add_function_parameter): Test the presence of
34492         HAVE_window_save properly and do not remap argument registers when
34493         we have a leaf function.
34494
34495 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
34496
34497         PR bootstrap/56227
34498         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
34499         instead of "ll".
34500         * config/i386/i386.c (ix86_print_operand): Ditto.
34501
34502 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
34503
34504         * lra-constraints.c (process_alt_operands): Fix recently added comment.
34505
34506 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
34507
34508         PR rtl-optimization/56225
34509         * lra-constraints.c (process_alt_operands): Check that reload hard
34510         reg can hold value for strict_low_part.
34511
34512 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
34513
34514         PR debug/56154
34515         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
34516         dwarf2out_end_function.
34517         (in_first_function_p, maybe_at_text_label_p,
34518         first_loclabel_num_not_at_text_label): New variables.
34519         (dwarf2out_var_location): In the first function find out
34520         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
34521         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
34522         functions.
34523
34524 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
34525
34526         PR rtl-optimization/56178
34527         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
34528         SUBREG of a register.  Tidy up related block of code.
34529         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
34530         note if the source is a register or a SUBREG of a register.
34531
34532 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
34533
34534         PR target/56228
34535         * config/rs6000/rs6000.md (ptrm): New mode attr.
34536         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
34537         call_value_indirect_aix<pttrsize>,
34538         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
34539         m in constraints.
34540
34541 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34542
34543         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
34544         if -bnortl. Convert to strcmp and strncmp.
34545
34546 2013-02-07  Alan Modra  <amodra@gmail.com>
34547
34548         PR target/54009
34549         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
34550         addresses won't wrap when offsetting.
34551         (rs6000_secondary_reload): Provide secondary reloads needed for
34552         wrapping LO_SUM addresses.
34553
34554 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
34555
34556         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
34557         MACH, just __MACH__.
34558
34559 2013-02-06  Richard Biener  <rguenther@suse.de>
34560
34561         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
34562         instead of calling fix_loop_structure.
34563
34564 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
34565
34566         PR middle-end/56217
34567         * omp-low.c (use_pointer_for_field): Return false if
34568         lower_send_shared_vars doesn't generate any copy-out code.
34569
34570 2013-02-06  Tom de Vries  <tom@codesourcery.com>
34571
34572         PR rtl-optimization/56131
34573         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
34574         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
34575         of the label is NULL.  Add comment.
34576
34577 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
34578
34579         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
34580
34581         PR sanitizer/55374
34582         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
34583         (STATIC_LIBTSAN_LIBS): Likewise.
34584         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
34585         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
34586         is defined, don't add anything else beyond that.
34587         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
34588         (LINK_COMMAND_SPEC): Use them.
34589
34590         PR tree-optimization/56205
34591         * tree-stdarg.c (check_all_va_list_escapes): Return true if
34592         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
34593         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
34594
34595 2013-02-05  Richard Biener  <rguenther@suse.de>
34596
34597         PR tree-optimization/53342
34598         PR tree-optimization/53185
34599         * tree-vectorizer.h (vect_check_strided_load): Remove.
34600         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
34601         not disallow peeling for vectorized strided loads.
34602         (vect_check_strided_load): Make static and simplify.
34603         (vect_analyze_data_refs): Adjust.
34604         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
34605         correctly when vectorizing strided loads.
34606
34607 2013-02-05  Richard Biener  <rguenther@suse.de>
34608
34609         * doc/install.texi: Refer to ISL, not PPL.
34610
34611 2013-02-05  Jan Hubicka  <jh@suse.cz>
34612
34613         PR tree-optimization/55789
34614         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
34615
34616 2013-02-05  Jan Hubicka  <jh@suse.cz>
34617
34618         PR tree-optimization/55789
34619         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
34620         the dead call anyway.
34621
34622 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
34623
34624         PR sanitizer/55374
34625         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
34626
34627 2013-02-04  Alexander Potapenko  <glider@google.com>
34628             Jack Howarth  <howarth@bromo.med.uc.edu>
34629             Jakub Jelinek  <jakub@redhat.com>
34630
34631         PR sanitizer/55617
34632         * config/darwin.c (sort_ctor_records): Stabilized qsort
34633         on constructor priority by using original position.
34634         (finalize_ctors): New routine to sort constructors by
34635         priority before use in assemble_integer.
34636         (machopic_asm_out_constructor): Use finalize_ctors if needed.
34637
34638 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
34639
34640         PR libstdc++/54314
34641         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
34642         about visibility on artificial decls.
34643         * config/sol2.c (solaris_assemble_visibility): Likewise.
34644
34645 2013-02-04  Kai Tietz  <ktietz@redhat.com>
34646
34647         PR target/56186
34648         * config/i386/i386.c (function_value_ms_64): Add additional valtype
34649         argument and improve checking of return-argument types for 16-byte
34650         modes.
34651         (ix86_function_value_1): Add additional valtype argument on call
34652         of function_value_64.
34653         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
34654         handling infunction_value_64 function.
34655
34656 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
34657
34658         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
34659
34660 2013-02-04  Richard Biener  <rguenther@suse.de>
34661
34662         PR tree-optimization/56188
34663         * tree-ssa-structalias.c (label_visit): Consider case with
34664         initially non-empty points-to set.
34665         (perform_var_substitution): Dump node mapping and clean up.
34666
34667 2013-02-04  Richard Guenther  <rguenther@suse.de>
34668
34669         PR lto/56168
34670         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
34671         node prevail as last resort.
34672         (lto_symtab_merge_decls): Remove guard on LTRANS here.
34673         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
34674
34675 2013-02-04  Richard Biener  <rguenther@suse.de>
34676
34677         PR tree-optimization/56113
34678         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
34679         Merge into ...
34680         (equiv_class_lookup_or_add): ... this.
34681         (label_visit): Adjust and fix error in previous patch.
34682         (perform_var_substitution): Adjust.
34683
34684 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
34685
34686         * config/sh/divtab.c: Fix formatting and comments throughout the file.
34687         * config/sh/sh4-300.md: Likewise.
34688         * config/sh/sh4a.md: Likewise.
34689         * config/sh/constraints.md: Likewise.
34690         * config/sh/sh.md: Likewise.
34691         * config/sh/netbsd-elf.h: Likewise.
34692         * config/sh/predicates.md: Likewise.
34693         * config/sh/sh-protos.h: Likewise.
34694         * config/sh/ushmedia.h: Likewise.
34695         * config/sh/linux.h: Likewise.
34696         * config/sh/sh.c: Likewise.
34697         * config/sh/superh.h: Likewise.
34698         * config/sh/elf.h: Likewise.
34699         * config/sh/sh4.md: Likewise.
34700         * config/sh/sh.h: Likewise.
34701
34702 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34703
34704         * config/pa/constraints.md: Adjust unused letters.  Change "T"
34705         constraint to match_test floating_point_store_memory_operand().
34706         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
34707         (base14_operand): New.
34708         (floating_point_store_memory_operand): New.
34709         (integer_store_memory_operand): Revise to use base14_operand and
34710         reg_plus_base_memory_operand.
34711         (move_dest_operand): Allow symbolic_memory_operands.
34712         (symbolic_memory_operand): Check for LO_SOM.
34713         (symbolic_operand): Change default case to break.
34714         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
34715         CONST_DOUBLE values to be reloaded by putting them into memory when
34716         the destination is a floating point register.
34717         (movdf): Remove code to handle CONST_DOUBLE.
34718         (movsf): Likewise.
34719         (reload_indf_r1): New.
34720         (reload_insf_r1): New.
34721         Consistently use "Q" and "T" constraints with integer and floating
34722         point move instructions, respectively.
34723         (movdi): Remove FAIL.
34724         Change predicate for source operand unamed DImode move from
34725         general_operand to move_src_operand.
34726         (umulsidi3): Change predicate for destination operand to
34727         register_operand.
34728         Likewise for similar unamed patterns.
34729         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
34730         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
34731         (hppa_legitimize_address): Simplify mask calculation.
34732         (pa_emit_move_sequence): Revised handling of secondary reloads from
34733         REG+D addresses for floating point loads and stores.  Directly handle
34734         loading CONST0_RTX (mode) to a floating point register.
34735         (pa_secondary_reload): Handle reloading DF and SFmode constant values
34736         to floating point registers.  Don't restrict secondary reloads to
34737         floating point registers to integer modes.  Revise some comments and
34738         cleanup some code.
34739         (TARGET_LEGITIMATE_ADDRESS_P): Define.
34740         (pa_legitimate_address_p): New.
34741         (pa_legitimize_reload_address): New.
34742         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
34743         (STRICT_REG_OK_FOR_BASE_P): New.
34744         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
34745         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
34746
34747 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
34748             Andrew Dixie  <andrewd@gentrack.com>
34749
34750         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
34751         flag set.
34752
34753 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
34754
34755         * expmed.c (extract_bit_field_1): Pass the full width of the
34756         structure to get_best_reg_extraction_insn.
34757
34758 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
34759
34760         PR target/54601
34761         * configure.ac (use_cxa_atexit): Add AIX.
34762         * configure: Regenerate.
34763
34764         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
34765
34766 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
34767
34768         PR debug/54793
34769         * final.c (need_profile_function): New variable.
34770         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
34771         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
34772         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
34773         notes, targetm.asm_out.function_prologue doesn't emit anything,
34774         HAVE_prologue and profiler should be emitted before prologue,
34775         set need_profile_function instead of emitting it.
34776         (final_scan_insn): If need_profile_function, emit
34777         profile_function on the first NOTE_INSN_BASIC_BLOCK or
34778         NOTE_INSN_FUNCTION_BEG note.
34779
34780 2013-02-01  Richard Henderson  <rth@redhat.com>
34781
34782         * config/rs6000/rs6000.md (smulditi3): New.
34783         (umulditi3): New.
34784
34785         * config/alpha/alpha.md (umulditi3): New.
34786
34787 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
34788
34789         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
34790         (ASM_OUTPUT_ALIGNED_LOCAL): New.
34791
34792 2013-02-01  Richard Biener  <rguenther@suse.de>
34793
34794         PR tree-optimization/56113
34795         * tree-ssa-structalias.c (label_visit): Reduce work for
34796         single-predecessor nodes.
34797
34798 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
34799
34800         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
34801         range isn't testing for zero.
34802
34803 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
34804
34805         PR middle-end/56113
34806         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
34807
34808 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
34809             Nick Clifton  <nickc@redhat.com>
34810
34811         * config/v850/constraints.md (Q): Define as a memory constraint.
34812         * config/v850/predicates.md (label_ref_operand): New predicate.
34813         (e3v5_shift_operand): New predicate.
34814         (ior_operator): New predicate.
34815         * config/v850/t-v850: Add e3v5 multilib.
34816         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
34817         (v850_gen_movdi): Prototype.
34818         * config/v850/v850.c: Add support for e3v5 architecture.
34819         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
34820         TARGET_V850E_UP.
34821         (construct_save_jarl): Add e3v5 long JARL support.
34822         (v850_adjust_insn_length): New function.  Adjust length of call
34823         insns when using e3v5 instructions.
34824         (v850_gen_movdi): New function: Generate instructions to move a
34825         DImode value.
34826         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
34827         (CPP_SPEC): Define __v850e3v5__ as appropriate.
34828         (TARGET_USE_FPU): Enable for e3v5.
34829         (CONST_OK_FOR_W): New macro.
34830         (ADJUST_INSN_LENGTH): Define.
34831         * config/v850/v850.md (UNSPEC_LOOP): Define.
34832         (attr cpu): Add v850e3v5.
34833         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
34834         (movdi): New pattern.
34835         (movdi_internal): New pattern.
34836         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
34837         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
34838         (cstoresf4): Likewise.
34839         (cstoredf4): Likewise.
34840         (insv): New pattern.
34841         (rotlso3_a): New pattern.
34842         (rotlsi3_b): New pattern
34843         (rotlsi3_v850e3v5): New pattern.
34844         (doloop_begin): New pattern.
34845         (fix_loop_counter): New pattern.
34846         (doloop_end): New pattern.
34847         (branch_normal): Add e3v5 long branch support.
34848         (branch_invert): Likewise.
34849         (branch_z_normal): Likewise.
34850         (branch_z_invert): Likewise.
34851         (branch_nz_normal): Likewise.
34852         (branch_nz_invert): Likewise.
34853         (call_internal_short): Add e3v5 register-indirect JARL support.
34854         (call_internal_long): Likewise.
34855         (call_value_internal_short): Likewise.
34856         (call_value_internal_long): Likewise.
34857         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
34858         (mloop): New option.
34859         * config.gcc: Add support for configuring v840e3v5 target.
34860         * doc/invoke.texi: Document new v850 specific command line options.
34861
34862 2013-01-31  Paul Koning  <ni1d@arrl.net>
34863
34864         PR debug/55059
34865         PR debug/54508
34866         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
34867         children if parent is a class.
34868         (prune_unused_types_prune): Don't add DW_AT_declaration.
34869
34870 2013-01-31  Richard Biener  <rguenther@suse.de>
34871
34872         PR tree-optimization/56157
34873         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
34874         match up operand with SLP child.
34875
34876 2013-01-31  Jason Merrill  <jason@redhat.com>
34877
34878         PR debug/54410
34879         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
34880         parameters the first time.
34881         (gen_scheduled_generic_parms_dies): Check completeness here.
34882
34883 2013-01-31  Richard Biener  <rguenther@suse.de>
34884
34885         PR middle-end/53073
34886         * common.opt (faggressive-loop-optimizations): New flag,
34887         enabled by default.
34888         * doc/invoke.texi (faggressive-loop-optimizations): Document.
34889         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
34890         infer_loop_bounds_from_undefined by it.
34891
34892 2013-01-31  Richard Biener  <rguenther@suse.de>
34893
34894         PR tree-optimization/56150
34895         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
34896         visit virtual operands.
34897         (find_uses_to_rename_bb): Likewise.
34898
34899 2013-01-31  Richard Biener  <rguenther@suse.de>
34900
34901         PR tree-optimization/56150
34902         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
34903         mixed store non-store stmts.
34904
34905 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
34906
34907         PR sanitizer/55374
34908         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
34909         LIBASAN_EARLY_SPEC is defined.
34910         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
34911         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
34912         before %o.
34913         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
34914
34915         PR c++/55742
34916         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
34917         invalid args instead of ICEing on it.
34918         (ix86_valid_target_attribute_tree): Return error_mark_node if
34919         ix86_valid_target_attribute_inner_p failed.
34920         (ix86_valid_target_attribute_p): Return false only if
34921         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
34922         target("default") attribute.
34923         (sorted_attr_string): Change argument from const char * to tree,
34924         merge in all target attribute arguments rather than just one.
34925         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
34926         instead of free.  Avoid using strcat.
34927         (ix86_mangle_function_version_assembler_name): Mangle
34928         target("default") as if no target attribute is present.  Adjust
34929         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
34930         instead of xmalloc and XDELETEVEC instead of free.
34931         (ix86_function_versions): Don't return true if one of the decls
34932         doesn't have target attribute.  If they don't and one of the decls
34933         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
34934         sorted_attr_string caller.  Use XDELETEVEC instead of free.
34935         (ix86_supports_function_versions): Remove.
34936         (make_name): Fix up formatting.
34937         (make_dispatcher_decl): Remove resolver_name and its initialization.
34938         Avoid leaking memory.
34939         (is_function_default_version): Return true if there is
34940         target("default") attribute rather than no target attribute at all.
34941         (make_resolver_func): Avoid leaking memory.
34942         (ix86_generate_version_dispatcher_body): Likewise.
34943         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
34944         * target.def (supports_function_versions): Remove.
34945         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
34946         * doc/tm.texi: Regenerated.
34947
34948 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34949
34950         PR rtl-optimization/56144
34951         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
34952         for values with side effects.
34953
34954 2013-01-30  Richard Biener  <rguenther@suse.de>
34955
34956         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
34957         (sparseset_pop): Likewise.
34958         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
34959         to be able to use quick_push in the worker loop.
34960
34961 2013-01-30  Marek Polacek  <polacek@redhat.com>
34962
34963         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
34964
34965 2013-01-30  Richard Biener  <rguenther@suse.de>
34966
34967         PR lto/56147
34968         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
34969
34970 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
34971
34972         PR tree-optimization/56064
34973         * fixed-value.c (fixed_from_double_int): New function.
34974         * fixed-value.h (fixed_from_double_int): New prototype.
34975         (const_fixed_from_double_int): New static inline function.
34976         * fold-const.c (native_interpret_fixed): New static function.
34977         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
34978         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
34979         (native_encode_fixed): New static function.
34980         (native_encode_expr) <FIXED_CST>: Use it.
34981         (native_interpret_int): Move double_int worker code to...
34982         * double-int.c (double_int::from_buffer): ...this new static method.
34983         * double-int.h (double_int::from_buffer): Prototype it.
34984
34985 2013-01-30  Richard Biener  <rguenther@suse.de>
34986
34987         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
34988         New pointer-map and obstack.
34989         (init_alias_vars): Allocate pointer-map and obstack.
34990         (delete_points_to_sets): Free them.
34991         (find_what_var_points_to): Cache result.
34992         (find_what_p_points_to): Adjust for changed interface of
34993         find_what_var_points_to.
34994         (compute_points_to_sets): Likewise.
34995         (ipa_pta_execute): Likewise.
34996
34997 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34998
34999         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
35000         * configure: Regenerate.
35001         * config.in: Regenerate.
35002         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
35003         #nobits/#progbits if supported.
35004
35005 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
35006
35007         PR target/56121
35008         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
35009         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
35010         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
35011
35012 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35013
35014         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
35015         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
35016
35017 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35018
35019         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
35020         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
35021
35022 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35023
35024         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
35025         declaration.
35026         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
35027         * config/arm/cortex-a7.md: New bypasses using
35028         arm_mac_accumulator_is_result.
35029
35030 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35031
35032         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
35033         (cortex_a7_neon_mla): Likewise.
35034         (cortex_a7_fpfmad): New reservation.
35035         (cortex_a7_fpmacs): Use ffmas and update required units.
35036         (cortex_a7_fpmuld): Update required units and latency.
35037         (cortex_a7_fpmacd): Likewise.
35038         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
35039         (cortex_a7_neon). Likewise.
35040         (bypass) Update participating units.
35041
35042 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
35043
35044         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
35045         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
35046         from fmac to ffma.
35047         * config/arm/vfp11.md (vfp_farith): Use ffmas.
35048         (vfp_fmul): Use ffmad.
35049         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
35050         (cortex_r4_fmacd): Use ffmad.
35051         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
35052         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
35053         (cortex_a9_fmacd): Use ffmad.
35054         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
35055         (cortex_a8_vfp_macd): Use ffmad.
35056         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
35057         (cortex_a5_fpmacd): Use ffmad.
35058         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
35059         (cortex_a15_vfp_macd): Use ffmad.
35060         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
35061
35062 2013-01-29  Jason Merrill  <jason@redhat.com>
35063
35064         PR libstdc++/54314
35065         * varasm.c (default_assemble_visibility): Don't warn about
35066         visibility on artificial decls.
35067
35068 2013-01-29  Richard Biener  <rguenther@suse.de>
35069
35070         PR tree-optimization/56113
35071         * tree-ssa-structalias.c (equiv_class_lookup): Also return
35072         the bitmap leader.
35073         (label_visit): Free duplicate bitmaps and record the leader instead.
35074         (perform_var_substitution): Adjust.
35075
35076 2013-01-29  Richard Biener  <rguenther@suse.de>
35077
35078         PR tree-optimization/55270
35079         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
35080         the CFG, schedule loops for fixup.
35081
35082 2013-01-29  Nick Clifton  <nickc@redhat.com>
35083
35084         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
35085         SP_REG.
35086
35087 2013-01-28  Leif Ekblad  <leif@rdos.net>
35088
35089         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
35090         * config/i386/i386.h (TARGET_RDOS): New macro.
35091         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
35092         * config/i386/i386.c (ix86_option_override_internal): For 64bit
35093         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
35094         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
35095         DEFAULT_LARGE_SECTION_THRESHOLD.
35096         * config/i386/i386.md (R14_REG, R15_REG): New constants.
35097         * config/i386/rdos.h: New file.
35098         * config/i386/rdos64.h: New file.
35099
35100 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
35101
35102         PR other/54814
35103         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
35104         TEST_HARD_REG_BIT.
35105
35106 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
35107
35108         PR rtl-optimization/56117
35109         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
35110         call cselib_lookup_from_insn on the MEM before calling
35111         add_insn_mem_dependence.
35112
35113 2013-01-28  Richard Biener  <rguenther@suse.de>
35114
35115         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
35116         to a stmt that didn't have one.
35117         (copy_phis_for_bb): Likewise for PHI arguments.
35118         (copy_debug_stmt): Likewise for debug stmts.
35119
35120 2013-01-28  Richard Biener  <rguenther@suse.de>
35121
35122         PR tree-optimization/56034
35123         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
35124         (partition_builtin_p): Adjust.
35125         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
35126         it is the last partition.
35127         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
35128         up the vertex for the definition.
35129         (classify_partition): Classify whether a partition is a
35130         PKIND_REDUCTION, thus has uses outside of the loop.
35131         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
35132         Merge all PKIND_REDUCTION partitions into the last partition.
35133         (tree_loop_distribution): Seed partitions from reductions as well.
35134
35135 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
35136
35137         PR tree-optimization/56125
35138         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
35139         pow(x,c) into sqrt(x) * powi(x, n/2) or
35140         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
35141         optimizing for size.
35142         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
35143         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
35144         integer.
35145
35146         PR tree-optimization/56094
35147         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
35148         to UNKNOWN_LOCATION while gimplifying expr.
35149
35150 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
35151
35152         PR target/56114
35153         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
35154         operand 0 in movabs insn template for -masm=intel asm alternative.
35155         (*movabs<mode>_2): Ditto for operand 1.
35156
35157 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
35158
35159         PR target/54663
35160         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
35161         of microblaze-c.o
35162
35163 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
35164
35165         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
35166         tm_file.
35167
35168 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
35169
35170         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
35171         Undef to avoid warning.
35172
35173 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35174
35175         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
35176         * configure: Regenerate.
35177
35178 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
35179
35180         PR tree-optimization/56098
35181         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
35182         for stmts with volatile ops.
35183         (cond_store_replacement): Don't optimize if assign has volatile ops.
35184         (cond_if_else_store_replacement_1): Don't optimize if either
35185         then_assign or else_assign have volatile ops.
35186         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
35187         volatile ops.
35188
35189 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35190
35191         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
35192
35193 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35194
35195         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
35196         missing ':' in asm example.
35197
35198 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
35199
35200         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
35201         entries into lane and laneq entries.
35202         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
35203         Remove AdvSIMD scalar modes.
35204         (aarch64_sq<r>dmulh_laneq<mode>): New.
35205         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
35206         modes.
35207         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
35208         builtin implementations to relfect changes in RTL in aarch64-simd.md.
35209         * config/aarch64/iterators.md (VCOND): New.
35210         (VCONQ): New.
35211
35212 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35213
35214         PR target/54222
35215         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
35216         Add NULL LIBNAME argument to existing definitions.
35217         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
35218         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
35219         * config/avr/avr.c (DEF_BUILTIN): Same.
35220         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
35221         (avr_expand_builtin): Expand to a vanilla call if a libgcc
35222         implementation is available (DECL_ASSEMBLER_NAME is set).
35223         (avr_fold_absfx): New static function.
35224         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
35225         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
35226         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
35227         AVR_BUILTIN_ABSLLK.
35228         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
35229         (abshk, absk, abslk, absllk): Provide as static inline functions.
35230
35231 2013-01-25  Marek Polacek  <polacek@redhat.com>
35232
35233         PR tree-optimization/56035
35234         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
35235
35236 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
35237
35238         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
35239         (*movtf_internal_rex64): Add (!o,C) alternative
35240         (*movxf_internal_rex64): Ditto.
35241         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
35242
35243 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
35244
35245         * doc/invoke.texi: fix typo.
35246         * doc/objc.texi: fix typo.
35247
35248 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
35249
35250         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
35251         for the first two alternatives.
35252
35253 2013-01-24  Diego Novillo  <dnovillo@google.com>
35254
35255         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
35256         (ggc-zone.o): Remove.
35257         * configure.ac: Remove option --with-gc.
35258         * configure: Re-generate.
35259         * doc/install.texi: Remove documentation for --with-gc.
35260         * gengtype.c (write_enum_defn): Remove.  Update all users.
35261         (write_Types_process_field): Remove generation of gt_e_* argument.
35262         (output_type_enum): Remove.  Update all users.
35263         (write_enum_defn): Remove.  Update all users.
35264         (enum alloc_zone): Remove.  Update all users.
35265         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
35266         * ggc-common.c (ggc_splay_alloc): Remove first argument.
35267         Update all callers.
35268         (struct ptr_data): Remove field TYPE.  Update all users.
35269         (gt_pch_note_object): Remove argument TYPE.  Update all users.
35270         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
35271         Update all users.
35272         * ggc-none.c (ggc_alloc_typed_stat): Remove.
35273         (struct alloc_zone): Remove.
35274         (ggc_internal_alloc_zone_stat): Remove.
35275         (ggc_internal_cleared_alloc_zone_stat): Remove.
35276         * ggc-page.c (ggc_alloc_typed_stat): Remove.
35277         (ggc_pch_count_object): Remove last argument.  Update all users.
35278         (ggc_pch_alloc_object): Remove last argument.  Update all users.
35279         (struct alloc_zone): Remove.
35280         * ggc-zone.c: Remove.
35281         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
35282         (struct alloc_zone): Remove.
35283         (ggc_alloc_typed_stat): Remove.
35284         (ggc_alloc_typed): Remove.
35285         (ggc_splay_alloc): Remove first argument.
35286         (rtl_zone): Remove.  Update all users.
35287         (tree_zone): Remove.  Update all users.
35288         (tree_id_zone): Remove.  Update all users.
35289         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
35290         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
35291         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
35292         * tree-ssanames.c: Remove references to zone allocator in comments.
35293
35294 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
35295
35296         * config/avr/avr.c (avr_out_fract): Make register numbers that
35297         might be outside of source operand signed.
35298
35299 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
35300
35301         * config/i386/constraints.md (Yf): New constraint.
35302         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
35303         of f constraint to conditionaly disable x87 register preferences.
35304         (*movdf_internal): Ditto.
35305         (*movsf_internal): Ditto.
35306
35307 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
35308
35309         PR inline-asm/55934
35310         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
35311         that have operands with impossible constraints.
35312         Add a FIXME for a speed-up opportunity.
35313         * lra-constraints.c (process_alt_operands): Verify that a class
35314         selected from constraints on asms is valid for the operand mode.
35315         (curr_insn_transform): Remove incorrect comment.
35316
35317 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
35318
35319         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
35320         TOC operand is a valid symbol ref in the constant pool.
35321
35322 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
35323
35324         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
35325
35326 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
35327
35328         PR target/54222
35329         * config/avr/stdfix.h: New file.
35330         * t-avr (stdfix-gcc.h): New rule to build it.
35331         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
35332
35333 2013-01-23  Kostya Serebryany  <kcc@google.com>
35334
35335         * config/darwin.h: remove dependency on
35336         CoreFoundation (asan on Mac OS).
35337
35338 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
35339
35340         PR target/49069
35341         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
35342         instead of cmpdi_operand for first comparison operand.
35343         Don't assert that comparison operands aren't both constants.
35344
35345 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35346
35347         * doc/install.texi (Downloading the Source): Update references to
35348         downloading separate components.
35349
35350 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35351
35352         * doc/extend.texi (__int128): Improve grammar.
35353
35354 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
35355
35356         PR target/56028
35357         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
35358         alternative to (o,r).
35359         (*movdi_internal_rex64): Remove (!o,n) alternative.
35360         (DImode immediate->memory splitter): Remove.
35361         (DImode immediate->memory peephole2): Remove.
35362         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
35363         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
35364         alternative to (!o,*r).
35365         (*movtf_internal_sse): New pattern.
35366         (*movxf_internal_rex64): New pattern.
35367         (*movxf_internal): Disable for TARGET_64BIT.
35368         (*movdf_internal_rex64): Remove (!o,F) alternative.
35369
35370 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
35371
35372         PR middle-end/56074
35373         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
35374         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
35375         * tree-vect-loop-manip.c (find_loop_location): Also ignore
35376         stmt locations where LOCATION_LOCUS of the stmt location is
35377         UNKNOWN_LOCATION or BUILTINS_LOCATION.
35378
35379         PR target/55686
35380         * config/i386/i386.md (UNSPEC_STOS): New.
35381         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
35382         *strsetqi_1): Add UNSPEC_STOS.
35383
35384 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
35385
35386         PR c++/56067
35387         * doc/invoke.texi: Remove left over -Wsynth example.
35388
35389 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
35390
35391         PR tree-optimization/56051
35392         * fold-const.c (fold_binary_loc): Don't fold
35393         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
35394         a narrowing conversion, or widening conversion from signed
35395         to unsigned.
35396
35397 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
35398
35399         PR rtl-optimization/56023
35400         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
35401         dependent on debug instruction.
35402
35403 2013-01-21  Martin Jambor  <mjambor@suse.cz>
35404
35405         PR middle-end/56022
35406         * function.c (allocate_struct_function): Call
35407         invoke_set_current_function_hook earlier.
35408
35409 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
35410
35411         * reload1.c (init_reload): Only initialize reload_obstack
35412         during the first call.
35413
35414 2013-01-21  Marek Polacek  <polacek@redhat.com>
35415
35416         * cfgloop.c (verify_loop_structure): Fix up grammar.
35417
35418 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
35419
35420         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
35421         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
35422
35423 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35424
35425         PR target/56058
35426         * config/arm/marvell-pj4.md: Update copyright year.
35427         Fix up use of alu to alu_reg and simple_alu_imm.
35428
35429 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
35430
35431         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
35432
35433 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
35434
35435         PR target/55433
35436         * lra-constraints.c (curr_insn_transform): Don't reuse original
35437         insn for secondary memory move when memory mode should be different.
35438
35439 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35440
35441         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
35442         atomic_storedi_1): New patterns.
35443
35444 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
35445
35446         btver2 pipeline descriptions.
35447         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
35448         descriptions.
35449         * config/i386/i386.md (btver2_decode): New type attributes.
35450         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
35451         type attributes.
35452         * config/i386/btver2.md: New file describing btver2 pipelines.
35453
35454 2013-01-19  Andrew Pinski  <apinski@cavium.com>
35455
35456         PR tree-optimization/52631
35457         * tree-ssa-sccvn (visit_use): Before looking up the original
35458         statement, try looking up the simplified expression.
35459
35460 2013-01-19  Anthony Green  <green@moxielogic.com>
35461
35462         * config/moxie/moxie.c (moxie_expand_prologue): Set
35463         current_function_static_stack_size.
35464
35465 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
35466
35467         PR tree-optimization/56029
35468         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
35469         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
35470
35471 2013-01-18  Sharad Singhai  <singhai@google.com>
35472
35473         PR tree-optimization/55995
35474         * dumpfile.c (dump_loc): Print location only if available.
35475         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
35476
35477 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
35478
35479         PR target/55433
35480         * lra-constraints.c (curr_insn_transform): Reuse original insn for
35481         secondary memory move.
35482         (inherit_reload_reg): Use rclass instead of cl for
35483         check_secondary_memory_needed_p.
35484
35485 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
35486
35487         PR middle-end/56015
35488         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
35489         the case where writing real complex part of target modifies op1.
35490
35491 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
35492
35493         * config/aarch64/aarch64-simd.md
35494         (aarch64_vcond_internal<mode>): Handle unordered cases.
35495         * config/aarch64/iterators.md (v_cmp_result): New.
35496
35497 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
35498             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35499
35500         * config/arm/marvell-pj4.md: New file.
35501         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
35502         * config/arm/arm.md (generic_sched): Add marvell_pj4.
35503         (generic_vfp): Likewise.
35504         * config/arm/arm-cores.def: Add marvell-pj4.
35505         * config/arm/arm-tune.md: Regenerate.
35506         * config/arm/arm-tables.opt: Regenerate.
35507         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
35508         * doc/invoke.texi: Document marvell-pj4.
35509
35510 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
35511
35512         * config/aarch64/arm_neon.h: Map scalar types to standard types.
35513
35514 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35515
35516         PR debug/54114
35517         PR debug/54402
35518         PR debug/49888
35519         * var-tracking.c (negative_power_of_two_p): New.
35520         (global_get_addr_cache, local_get_addr_cache): New.
35521         (get_addr_from_global_cache, get_addr_from_local_cache): New.
35522         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
35523         heading comment.
35524         (vt_stack_offset_p): Remove.
35525         (vt_canon_true_dep): Always canonicalize loc's address.
35526         (clobber_overlapping_mems): Make sure we have a MEM.
35527         (local_get_addr_clear_given_value): New.
35528         (val_reset): Clear local cached entries.
35529         (compute_bb_dataflow): Create and release the local cache.
35530         Disable duplicate MEMs clobbering.
35531         (emit_notes_in_bb): Clobber MEMs likewise.
35532         (vt_emit_notes): Create and release the local cache.
35533         (vt_initialize, vt_finalize): Create and release the global
35534         cache, respectively.
35535         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
35536
35537 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35538
35539         PR libmudflap/53359
35540         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
35541         not found in the symtab.
35542
35543 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35544
35545         PR debug/56006
35546         PR rtl-optimization/55547
35547         PR rtl-optimization/53827
35548         PR debug/53671
35549         PR debug/49888
35550         * alias.c (offset_overlap_p): New, factored out of...
35551         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
35552         the conservative special case for symbolic constants.  Don't
35553         adjust zero sizes on alignment.
35554
35555 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
35556
35557         PR rtl-optimization/52573
35558         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
35559         REG_UNUSED for the same register.
35560
35561 2013-01-17  Richard Biener  <rguenther@suse.de>
35562             Marek Polacek  <polacek@redhat.com>
35563
35564         PR rtl-optimization/55833
35565         * loop-unswitch.c (unswitch_loops): Move loop verification...
35566         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
35567         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
35568         Set it to true when we're removing a loop from hierarchy tree in
35569         an irreducible region.
35570         (fix_bb_placements): Adjust caller.
35571         (fix_loop_placements): Likewise.
35572
35573 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
35574
35575         * config/avr/builtins.def (DEF_BUILTIN): Factor out
35576         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
35577         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
35578         Remove ID.  Adjust comments.
35579         * config/avr/avr-c.c (avr_builtin_name): Remove.
35580         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
35581         * config/avr/avr.c (avr_tolower): New static function.
35582         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
35583         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
35584         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
35585         default expansion.
35586
35587 2013-01-17  Jan Hubicka  <jh@suse.cz>
35588
35589         PR tree-optimization/55273
35590         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
35591
35592 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
35593
35594         PR target/55981
35595         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
35596         store through atomic_store<mode>_1.
35597         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
35598
35599 2013-01-17  Martin Jambor  <mjambor@suse.cz>
35600
35601         PR tree-optimizations/55264
35602         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
35603         for virtual methods.
35604         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
35605         virtual methods before inlining is over.
35606         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
35607         virtual functions.
35608         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
35609         non-virtual.
35610
35611 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35612
35613         PR rtl-optimization/56005
35614         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
35615         pending reads for prefetch.
35616
35617 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
35618
35619         * config/aarch64/aarch64.md
35620         (*cstoresi_neg_uxtw): New pattern.
35621         (*cmovsi_insn_uxtw): New pattern.
35622         (*<optab>si3_uxtw): New pattern.
35623         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
35624         (*<optab>si3_insn_uxtw): New pattern.
35625         (*bswapsi2_uxtw): New pattern.
35626
35627 2013-01-16  Richard Biener  <rguenther@suse.de>
35628
35629         * tree-inline.c (tree_function_versioning): Remove set but
35630         never used variable.
35631
35632 2013-01-16  Richard Biener  <rguenther@suse.de>
35633
35634         PR tree-optimization/55964
35635         * tree-flow.h (rename_variables_in_loop): Remove.
35636         (rename_variables_in_bb): Likewise.
35637         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
35638         (copy_loop_before): Adjust and delete update-ssa status.
35639         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
35640         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
35641         (rename_variables_in_loop): Remove.
35642         (slpeel_update_phis_for_duplicate_loop): Likewise.
35643         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
35644         use available cfg machinery instead of duplicating it.
35645         Update PHI nodes and perform poor-mans SSA update here.
35646         (slpeel_tree_peel_loop_to_edge): Adjust.
35647
35648 2013-01-16  Richard Biener  <rguenther@suse.de>
35649
35650         PR tree-optimization/54767
35651         PR tree-optimization/53465
35652         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
35653         (vrp_visit_phi_node): For PHI arguments coming via backedges
35654         drop all symbolical range information.
35655         (execute_vrp): Compute backedges.
35656
35657 2013-01-16  Richard Biener  <rguenther@suse.de>
35658
35659         * doc/install.texi: Update CLooG and ISL requirements to
35660         0.18.0 and 0.11.1.
35661
35662 2013-01-16  Christian Bruel  <christian.bruel@st.com>
35663
35664         PR target/55301
35665         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
35666         (broken_move): Handle UNSPECV_SP_SWITCH_B.
35667         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
35668
35669 2013-01-16  DJ Delorie  <dj@redhat.com>
35670
35671         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
35672         (UNSPECV_SP_SWITCH_E): New.
35673         (sp_switch_1): Change to an unspec.
35674         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
35675         replace $r15.
35676
35677 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
35678
35679         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
35680         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
35681         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
35682         (expand_mem_thread_fence): Ditto.
35683         (expand_mem_signal_fence): Ditto.
35684         (expand_atomic_load): Ditto.
35685         (expand_atomic_store): Ditto.
35686
35687 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
35688
35689         PR rtl-optimization/55547
35690         PR rtl-optimization/53827
35691         PR debug/53671
35692         PR debug/49888
35693         * alias.c (memrefs_conflict_p): Set sizes to negative after
35694         AND adjustments.
35695
35696 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35697
35698         PR target/55940
35699         * function.c (thread_prologue_and_epilogue_insns): Always
35700         add crtl->drap_reg to set_up_by_prologue.set, even if
35701         stack_realign_drap is false.
35702
35703 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35704
35705         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
35706         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
35707         *call): Fix indention.
35708
35709 2013-01-15  Tom de Vries  <tom@codesourcery.com>
35710
35711         PR target/55876
35712         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
35713         Update comment.
35714
35715 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
35716
35717         PR rtl-optimization/55153
35718         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
35719
35720 2013-01-15  Martin Jambor  <mjambor@suse.cz>
35721
35722         PR tree-optimization/55920
35723         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
35724         accesses as grp_to_be_debug_replaced.
35725
35726 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35727
35728         PR tree-optimization/55920
35729         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
35730         there is non-useless type conversion needed from debug rhs to lhs,
35731         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
35732
35733 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
35734             Mikael Pettersson  <mikpe@it.uu.se>
35735
35736         PR target/43961
35737         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
35738         Thumb.
35739         (ASM_OUTPUT_CASE_LABEL): Remove.
35740         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
35741         * final.c (shorten_branches): Update alignment of labels before
35742         jump tables if CASE_VECTOR_SHORTEN_MODE.
35743
35744 2013-01-15  Richard Biener  <rguenther@suse.de>
35745
35746         PR bootstrap/55961
35747         * system.h: Do not include gmp.h for building host tools.
35748
35749 2013-01-15  Richard Biener  <rguenther@suse.de>
35750
35751         PR middle-end/55882
35752         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
35753         account for bitpos when computing alignment.
35754
35755 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
35756
35757         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
35758         (ix86_target_macros_internal): Likewise.
35759
35760         * config/i386/i386.c (m_CORE2I7): Removed.
35761         (m_CORE_HASWELL): New macro.
35762         (m_CORE_ALL): Likewise.
35763         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
35764         (initial_ix86_arch_features): Likewise.
35765         (processor_target_table): Initializations for Core avx2.
35766         (cpu_names): New names "core-avx2".
35767         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
35768         PROCESSOR_CORE_HASWELL.
35769         (ix86_issue_rate): New case.
35770         (ia32_multipass_dfa_lookahead): Likewise.
35771         (ix86_sched_init_global): Likewise.
35772
35773         * config/i386/i386.h (TARGET_HASWELL): New macro.
35774         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
35775         (processor_type): New PROCESSOR_HASWELL.
35776
35777 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35778
35779         PR tree-optimization/55955
35780         * tree-vect-loop.c (vectorizable_reduction): Give up early on
35781         *SHIFT_EXPR and *ROTATE_EXPR codes.
35782
35783         PR tree-optimization/48766
35784         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
35785         -ftrapv disable -fwrapv.
35786
35787 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35788
35789         PR target/55974
35790         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
35791         etc. to 1 and not to __flash.
35792         Use LL suffix for __INT24_MAX__ with -mint8.
35793         Use ULL suffix for __UINT24_MAX__ with -mint8.
35794
35795 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35796
35797         * config/avr/avr-arch.h
35798         (struct base_arch_s): Use typedef avr_arch_t instead.
35799         (struct arch_info_s): Use typedef avr_arch_info_t instead.
35800         (struct mcu_type_s): Use typedef avr_mcu_t instead.
35801         * config/avr/avr.c: Same.
35802         * config/avr/avr-devices.c: Same.
35803         * config/avr/driver-avr.c: Same.
35804         * config/avr/gen-avr-mmcu-texi.c: Same.
35805         * config/avr/avr-mcus.def: Adjust comment.
35806
35807 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
35808
35809         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
35810         * config/aarch64/iterators.md (VALLDI): New.
35811
35812 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
35813             Andi Kleen  <ak@linux.intel.com>
35814
35815         PR target/55948
35816         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
35817         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
35818         memmodel flag.
35819
35820 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35821
35822         * config/avr/avr-stdint.h: Remove trailing blanks.
35823         * config/avr/avr-log.h: Same.
35824         * config/avr/avr-arch.h: Same.
35825         * config/avr/avr-devices.c: Same.
35826         * config/avr/avr-dimode.md: Same.
35827         * config/avr/predicates.md: Same.
35828         * config/avr/avr-c.c: Same.  And fix typo.
35829
35830         * config/avr/avr-protos.h: Same.  And:
35831         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
35832         (init_cumulative_args): Rename to avr_init_cumulative_args.
35833         (expand_prologue): Rename to avr_expand_prologue.
35834         (expand_epilogue): Rename to avr_expand_epilogue.
35835         (adjust_insn_length): Rename to avr_adjust_insn_length.
35836         (notice_update_cc): Rename to avr_notice_update_cc.
35837         (final_prescan_insn): Rename to avr_final_prescan_insn.
35838         * config/avr/avr.c: Same.
35839         * config/avr/avr.h: Same.
35840         * config/avr/avr.md: Remove trailing blanks.
35841         (prologue): Use avr_expand_prologue.
35842         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
35843
35844 2013-01-14  Richard Biener  <rguenther@suse.de>
35845
35846         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
35847         verify_location, collect_subblocks): New functions.
35848         (verify_gimple_in_cfg): Verify that locations only reference
35849         BLOCKs in the functions BLOCK tree.
35850
35851 2013-01-14  Richard Biener  <rguenther@suse.de>
35852
35853         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
35854         PHI argument.
35855         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
35856         unshare reference.
35857         (insert_out_of_ssa_copy_on_edge): Likewise.
35858         (rewrite_close_phi_out_of_ssa): Likewise.
35859         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
35860         debug expressions.
35861         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
35862         propagated constants.
35863         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
35864         can not be shared.
35865
35866 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35867
35868         * config/avr/avr-modes.def: Add GPL copyright notice.
35869
35870 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
35871
35872         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
35873         MEMMODEL_MASK to determine memory model.
35874         (atomic_store<mode>): Ditto from operands[2].
35875         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
35876
35877 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
35878
35879         PR fortran/55935
35880         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
35881         (fold_gimple_assign): Don't call unshare_expr here.
35882         (fold_ctor_reference): Call unshare_expr.
35883
35884 2013-01-13  Terry Guo  <terry.guo@arm.com>
35885
35886         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
35887         * doc/fragments.texi: Document MULTILIB_REUSE.
35888         * gcc.c (multilib_reuse): New internal spec.
35889         (set_multilib_dir): Also search multilib from multilib_reuse.
35890         * genmultilib (tmpmultilib3): Refactor code.
35891         (tmpmultilib4): Ditto.
35892         (multilib_reuse): New multilib argument.
35893
35894 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
35895
35896         * Makefile.in: Update copyright.
35897
35898 2013-01-12  Tom de Vries  <tom@codesourcery.com>
35899
35900         PR middle-end/55890
35901         * calls.c (expand_call): Check if arg_nr is valid.
35902
35903 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
35904
35905         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
35906         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
35907         documentation.  Add missing '__' in front of
35908         __builtin_ia32_packssdw256.
35909
35910 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35911
35912         PR target/55719
35913         * config/s390/s390.c (s390_preferred_reload_class): Do not return
35914         NO_REGS for larl operands.
35915         (s390_reload_larl_operand): Use s390_load_address instead of
35916         emit_move_insn.
35917
35918 2013-01-11  Richard Biener  <rguenther@suse.de>
35919
35920         * tree-cfg.c (verify_node_sharing_1): Split out from ...
35921         (verify_node_sharing): ... here.
35922         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
35923
35924 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
35925
35926         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
35927         Substitute TREECHECKING.
35928         * configure: Regenerate.
35929         * Makefile.in (TREECHECKING): New.
35930
35931 2013-01-11  Richard Guenther  <rguenther@suse.de>
35932
35933         PR tree-optimization/44061
35934         * tree-vrp.c (extract_range_basic): Compute zero as
35935         value-range for __builtin_constant_p of function parameters.
35936
35937 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
35938
35939         Update copyright years.
35940
35941 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
35942
35943         PR rtl-optimization/55672
35944         * lra-eliminations.c (mark_not_eliminable): Permit addition with
35945         const to be eliminable.
35946
35947 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
35948
35949         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
35950         * configure: Regenerate.
35951
35952 2013-01-10  Richard Biener  <rguenther@suse.de>
35953
35954         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
35955
35956 2013-01-10  Richard Biener  <rguenther@suse.de>
35957
35958         PR bootstrap/55792
35959         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
35960         locations for virtual PHI arguments.
35961         (rewrite_update_phi_arguments): Likewise.
35962
35963 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
35964
35965         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
35966         on to assembler.
35967
35968 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
35969
35970         PR tree-optimization/55921
35971         * tree-complex.c (expand_complex_asm): New function.
35972         (expand_complex_operations_1): Call it for GIMPLE_ASM.
35973
35974 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35975
35976         PR target/55718
35977         * config/s390/s390.c (s390_symref_operand_p)
35978         (s390_loadrelative_operand_p): Merge the two functions.
35979         (s390_check_qrst_address, print_operand_address): Add parameters
35980         to s390_loadrelative_operand_p invokation.
35981         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
35982         (s390_reload_larl_operand, s390_secondary_reload): Use
35983         s390_loadrelative_operand_p instead of s390_symref_operand_p.
35984         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
35985
35986 2013-01-09  Mike Stump  <mikestump@comcast.net>
35987
35988         * dse.c (record_store): Remove unnecessary assert.
35989
35990 2013-01-09  Jan Hubicka  <jh@suse.cz>
35991
35992         PR tree-optimization/55569
35993         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
35994         * cfgloop.h (scale_loop_profile): Likewise.
35995
35996 2013-01-09  Jan Hubicka  <jh@suse.cz>
35997
35998         PR lto/45375
35999         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
36000         functions.
36001         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
36002
36003 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
36004
36005         PR middle-end/55114
36006         * expr.h (maybe_emit_group_store): Declare.
36007         * expr.c (maybe_emit_group_store): New function.
36008         * builtins.c (expand_builtin_int_roundingfn): Call it.
36009         (expand_builtin_int_roundingfn_2): Likewise.
36010
36011 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
36012
36013         PR rtl-optimization/55829
36014         * lra-constraints.c (match_reload): Add code for absent output.
36015         (curr_insn_transform): Add code for reloads of matched inputs
36016         without output.
36017
36018 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
36019
36020         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
36021         attribute of movddup insn to DF.
36022         (*vec_interleave_lowv2df): Ditto.
36023         (vec_dupv2df): Ditto.
36024
36025 2013-01-09  Jan Hubicka  <jh@suse.cz>
36026
36027         PR tree-optimiation/55875
36028         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
36029         EVERY_ITERATION parameter.
36030         (number_of_iterations_exit): Check if exit is executed every iteration.
36031         (idx_infer_loop_bounds): Similarly here.
36032         (n_of_executions_at_most): Simplify
36033         to only test for cases where statement is dominated by the
36034         particular bound; handle correctly the "postdominance" test.
36035         (scev_probably_wraps_p): Use max loop iterations info
36036         as a global bound first.
36037
36038 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
36039             Nick Clifton  <nickc@redhat.com>
36040
36041         * config/v850/v850.md (cbranchsf4): New pattern.
36042         (cstoresf4): New pattern.
36043         (cbranchdf4): New pattern.
36044         (cstoredf4): New pattern.
36045         (movsicc): Disallow floating point comparisons.
36046         (cmpsf_le_insn): Fix order of operators.
36047         (cmpsf_lt_insn): Likewise.
36048         (cmpsf_eq_insn): Likewise.
36049         (cmpdf_le_insn): Likewise.
36050         (cmpdf_lt_insn): Likewise.
36051         (cmpdf_eq_insn): Likewise.
36052         (cmpsf_ge_insn): Use LE comparison.
36053         (cmpdf_ge_insn): Likewise.
36054         (cmpsf_gt_insn): Use LT comparison.
36055         (cmpdf_gt_insn): Likewise.
36056         (cmpsf_ne_insn): Delete pattern.
36057         (cmpdf_ne_insn): Delete pattern.
36058         * config/v850/v850.c (v850_gen_float_compare): Use
36059         gen_cmpdf_eq_insn for NE comparison.
36060         (v850_float_z_comparison_operator)
36061         (v850_float_nz_comparison_operator): Move from here ...
36062         * config/v850/predicates.md: ... to here.  Move GT and GE
36063         comparisons into v850_float_z_comparison_operator.
36064         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
36065         Delete prototype.
36066         (v850_float_nz_comparison_operator): Likewise.
36067
36068 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36069
36070         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
36071         with calls to gen_insvsi/gen_insvdi.
36072
36073 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
36074
36075         * config/i386/i386.c (initial_ix86_tune_features): Set up
36076         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
36077
36078 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
36079             Jakub Jelinek  <jakub@redhat.com>
36080
36081         PR tree-optimization/48189
36082         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
36083         If nitercst is 0, don't predict the exit edge.
36084
36085 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
36086
36087         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
36088         in asm_fprintf with reg_names.
36089         (aarch64_print_operand_address): Likewise.
36090         (aarch64_return_addr): Likewise.
36091         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
36092
36093 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36094
36095         * config/pa/pa.h (VAL_U6_BITS_P): Define.
36096         (INT_U6_BITS): Likewise.
36097         * config/pa/predicates.md (uint6_operand): New predicate.
36098         (shift5_operand, shift6_operand): Likewise.
36099         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
36100         arith32_operand.
36101         (lshrdi3): Use shift6_operand.
36102         (shrpsi4, shrpdi4): New insn patterns.
36103         (extzv): Delete expander.
36104         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
36105         predicates in unamed zero extract patterns.  Tighten common constraint.
36106         (extv): Delete expander.
36107         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
36108         predicates in unamed sign extract patterns.  Tighten common constraint.
36109         (insv): Delete expander.
36110         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
36111         predicates in unamed insert patterns.  Tighten common constraint.
36112         Change uint32_operand predicate to uint6_operand predicate in unamed
36113         DImode pattern to insert constant values of type 1...1xxxx.
36114
36115 2013-01-04  Jan Hubicka  <jh@suse.cz>
36116
36117         PR tree-optimization/55823
36118         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
36119         issue.
36120
36121 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36122             Uros Bizjak  <ubizjak@gmail.com>
36123
36124         PR rtl-optimization/55845
36125         * df-problems.c (can_move_insns_across): Stop scanning at
36126         volatile_insn_p source instruction or give up if
36127         across_from .. across_to range contains any volatile_insn_p
36128         instructions.
36129
36130 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
36131
36132         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
36133         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
36134         Declare.
36135         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
36136         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
36137
36138 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36139
36140         PR fortran/55341
36141         * asan.c (asan_clear_shadow): New function.
36142         (asan_emit_stack_protection): Use it.
36143
36144 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
36145
36146         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
36147         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
36148         with tab instead of space.
36149
36150 2013-01-08  Nick Clifton  <nickc@redhat.com>
36151
36152         * config/rl78/rl78.c (rl78_expand_prologue): Always select
36153         register bank 0 at the start of an interrupt handler.
36154         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
36155         MDBH registers.
36156
36157 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
36158
36159         * config/aarch64/aarch64-simd.md
36160         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
36161         (aarch64_simd_bsl): Likewise.
36162         (aarch64_vcond_internal<mode>): Likewise.
36163         (vcond<mode><mode>): Likewise.
36164         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
36165         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
36166
36167 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
36168
36169         * config/aarch64/aarch64-builtins.c
36170         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
36171
36172 2013-01-08  Martin Jambor  <mjambor@suse.cz>
36173
36174         PR debug/55579
36175         * tree-sra.c (analyze_access_subtree): Return true also after
36176         potentially creating a debug-only replacement.
36177
36178 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36179
36180         PR middle-end/55890
36181         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
36182
36183         PR tree-optimization/54120
36184         * tree-vrp.c (range_fits_type_p): Don't allow
36185         src_precision < precision from signed vr to unsigned_p
36186         if vr->min or vr->max is negative.
36187         (simplify_float_conversion_using_ranges): Test can_float_p
36188         against CODE_FOR_nothing.
36189
36190 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36191             Richard Biener  <rguenther@suse.de>
36192
36193         PR middle-end/55851
36194         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
36195         types instead of just INTEGER_TYPE types.
36196
36197 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
36198
36199         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
36200         TF_SIZE): Define.
36201
36202 2013-01-07  Steve Ellcey  <sellcey@mips.com>
36203
36204         PR target/42661
36205         * config/mips/mips.opt: Change mad to mmad to match documentation.
36206
36207 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36208
36209         PR target/55897
36210         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
36211         .progmemx.data now.
36212
36213 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36214
36215         PR target/55897
36216         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
36217         (avr_addrspace_t): Add .section_name field.
36218         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
36219         array size.
36220         (avr_addrspace): Same.  Initialize .section_name.  Remove last
36221         NULL entry.  Put __memx into .progmemx.data.
36222         (progmem_section_prefix): Remove.
36223         (avr_asm_init_sections): No need to initialize progmem_section.
36224         (avr_asm_named_section): Use avr_addrspace[].section_name to get
36225         section name prefix.
36226         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
36227         retrieve the progmem section.
36228         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
36229         boundary to run over avr_addrspace[].
36230         (avr_register_target_pragmas): Ditto.
36231
36232 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
36233
36234         * varasm.c (output_constant_def_contents): For asan_protect_global
36235         protected strings, adjust DECL_ALIGN if needed, before testing for
36236         anchored symbols.
36237         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
36238         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
36239         normal decls.
36240         (output_object_block): For asan protected decls, emit asan padding
36241         after their contents.
36242         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
36243         (asan_finish_file): Test it here instead.
36244
36245 2013-01-07  Nick Clifton  <nickc@redhat.com>
36246             Matthias Klose  <doko@debian.org>
36247             Doug Kwan  <dougkwan@google.com>
36248             H.J. Lu  <hongjiu.lu@intel.com>
36249
36250         PR driver/55470
36251         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
36252
36253         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
36254
36255         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
36256
36257         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
36258
36259         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
36260
36261 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36262
36263         PR target/54461
36264         * doc/install.texi (Cross-Compiler-Specific Options): Document
36265         --with-avrlibc.
36266
36267 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
36268
36269         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
36270         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
36271         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
36272         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
36273         vqmovun_high_s64): Fix source operand number and update copyright.
36274
36275 2013-01-07  Richard Biener  <rguenther@suse.de>
36276
36277         PR middle-end/55890
36278         * gimple.h (gimple_call_builtin_p): New overload.
36279         * gimple.c (validate_call): New function.
36280         (gimple_call_builtin_p): Likewise.
36281         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36282         Use gimple_call_builtin_p.
36283         (find_func_clobbers): Likewise.
36284         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
36285         (strlen_optimize_stmt): Likewise.
36286
36287 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36288
36289         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
36290         (vld1q_dup_*): Likewise.
36291         (vld1_*): Likewise.
36292         (vld1q_*): Likewise.
36293         (vld1_lane_*): Likewise.
36294         (vld1q_lane_*): Likewise.
36295
36296 2013-01-07  Richard Biener  <rguenther@suse.de>
36297
36298         * lto-streamer.h (LTO_minor_version): Bump to 2.
36299
36300 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36301
36302         * config/aarch64/aarch64-protos.h
36303         (aarch64_const_double_zero_rtx_p): Rename to...
36304         (aarch64_float_const_zero_rtx_p): ...this.
36305         (aarch64_float_const_representable_p): New.
36306         (aarch64_output_simd_mov_immediate): Likewise.
36307         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
36308         move immediate case.
36309         * config/aarch64/aarch64.c
36310         (aarch64_const_double_zero_rtx_p): Rename to...
36311         (aarch64_float_const_zero_rtx_p): ...this.
36312         (aarch64_print_operand): Allow printing of new constants.
36313         (aarch64_valid_floating_const): New.
36314         (aarch64_legitimate_constant_p): Check for valid floating-point
36315         constants.
36316         (aarch64_simd_valid_immediate): Likewise.
36317         (aarch64_vect_float_const_representable_p): New.
36318         (aarch64_float_const_representable_p): Likewise.
36319         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
36320         (aarch64_output_simd_mov_immediate): New.
36321         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
36322         (*movdf_aarch64): Likewise.
36323         * config/aarch64/constraints.md (Ufc): New.
36324         (Y): call aarch64_float_const_zero_rtx.
36325         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
36326
36327 2013-01-07  Richard Biener  <rguenther@suse.de>
36328
36329         PR tree-optimization/55888
36330         PR tree-optimization/55862
36331         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
36332         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
36333         not if it is contained therein.
36334
36335 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36336
36337         * config/avr/t-avr: Typo.
36338
36339 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36340
36341         PR55243
36342         * config/avr/t-avr: Don't automatically rebuild
36343         $(srcdir)/config/avr/t-multilib
36344         $(srcdir)/config/avr/avr-tables.opt
36345         $(srcdir)/doc/avr-mmcu.texi
36346         (avr-mcus): New phony target to build them on request.
36347         (s-avr-mlib, s-avr-mmcu-texi): Remove.
36348         * avr/avr-mcus.def: Adjust comments.
36349
36350 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
36351
36352         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
36353
36354 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36355
36356         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
36357
36358 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36359
36360         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
36361
36362 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
36363
36364         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
36365         to generate profiling.
36366         * config/rs6000/aix64.h (LIB_SPEC): Same.
36367
36368 2013-01-04  Andrew Pinski  <apinski@cavium.com>
36369
36370         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
36371         New function.
36372         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
36373
36374 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
36375
36376         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
36377         unconditionally.
36378         (ix86_expand_move): Ditto.
36379         (ix86_zero_extend_to_Pmode): Ditto.
36380         (ix86_expand_call): Ditto.
36381         (ix86_expand_special_args_builtin): Ditto.
36382         (ix86_expand_builtin): Ditto.
36383
36384 2013-01-04  Richard Biener  <rguenther@suse.de>
36385
36386         PR tree-optimization/55862
36387         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
36388         translating them through PHI nodes.
36389
36390 2013-01-04  Martin Jambor  <mjambor@suse.cz>
36391
36392         PR tree-optimization/55755
36393         * tree-sra.c (sra_modify_assign): Do not check that an access has no
36394         children when trying to avoid producing a VIEW_CONVERT_EXPR.
36395
36396 2013-01-04  Marek Polacek  <polacek@redhat.com>
36397
36398         PR middle-end/55859
36399         * opts.c (default_options_optimization): Clarify error message.
36400
36401 2013-01-04  Richard Biener  <rguenther@suse.de>
36402
36403         PR middle-end/55863
36404         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
36405         reassociation.
36406
36407 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36408
36409         PR target/53789
36410         * config/pa/pa.md (movsi): Revert previous change.
36411         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
36412         references.
36413
36414 2013-01-03  Richard Henderson  <rth@redhat.com>
36415
36416         * config/i386/i386.c (ix86_expand_move): Always assign to op1
36417         after eliminating TLS symbols.
36418
36419 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
36420
36421         PR bootstrap/50167
36422         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
36423         * graphite-poly.c (debug_gmp_value): Likewise.
36424
36425 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
36426
36427         PR target/55712
36428         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
36429         selected code model, define __code_mode_small__, __code_model_medium__,
36430         __code_model_large__, __code_model_32__ or __code_model_kernel__.
36431         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
36432         xchg temporary register with %k.  Declare temporary register as
36433         early clobbered.
36434         [__x86_64__]: For medium and large code models, preserve %rbx register.
36435
36436 2013-01-03  Richard Biener  <rguenther@suse.de>
36437
36438         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
36439         (dump_subscript): Adjust.
36440         (finalize_ddr_dependent): Do not dump redundant info.
36441         (analyze_siv_subscript): Adjust.
36442         (subscript_dependence_tester): Likewise.
36443         (compute_affine_dependence): Likewise.
36444
36445 2013-01-03  Richard Biener  <rguenther@suse.de>
36446
36447         Revert
36448         2013-01-03  Richard Biener  <rguenther@suse.de>
36449
36450         PR tree-optimization/55857
36451         * tree-vect-stmts.c (vectorizable_load): Do not setup
36452         re-alignment for invariant loads.
36453
36454         2013-01-02  Richard Biener  <rguenther@suse.de>
36455
36456         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36457         invariant load do not generate a vector load from the scalar location.
36458
36459 2013-01-03  Richard Biener  <rguenther@suse.de>
36460
36461         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
36462         for not vectorizing.
36463         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
36464         not build INDIRECT_REFs, call get_name once only.
36465         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
36466         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
36467
36468 2013-01-03  Richard Biener  <rguenther@suse.de>
36469
36470         PR tree-optimization/55857
36471         * tree-vect-stmts.c (vectorizable_load): Do not setup
36472         re-alignment for invariant loads.
36473
36474 2013-01-03  Richard Biener  <rguenther@suse.de>
36475
36476         PR lto/55848
36477         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
36478         prefer a built-in decl.
36479
36480 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36481
36482         * gcc.c (process_command): Update copyright notice dates.
36483         * gcov.c (print_version): Likewise.
36484         * gcov-dump.c (print_version): Likewise.
36485
36486         PR rtl-optimization/55838
36487         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
36488         iv0.step, iv1.step and step.
36489
36490 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36491             Marc Glisse  <marc.glisse@inria.fr>
36492
36493         PR tree-optimization/55832
36494         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
36495         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
36496         integer_{one,zero}_node.
36497
36498 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36499
36500         PR debug/54402
36501         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
36502         * var-tracking.c (reverse_op): Don't add reverse ops to
36503         VALUEs that have already
36504         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
36505
36506 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
36507
36508         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
36509
36510 2013-01-02  Teresa Johnson  <tejohnson@google.com>
36511
36512         * dumpfile.c (dump_loc): Print filename with location.
36513         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
36514         new location_t parameter to emit complete unroll message with
36515         new dump framework.
36516         (canonicalize_loop_induction_variables): Compute loops location
36517         and pass to try_unroll_loop_completely.
36518         * loop-unroll.c (report_unroll_peel): New function.
36519         (peel_loops_completely): Use new dump format with location
36520         for main dumpfile message, and invoke report_unroll_peel on success.
36521         (decide_unrolling_and_peeling): Ditto.
36522         (decide_peel_once_rolling): Remove old dumpfile message subsumed
36523         by report_unroll_peel.
36524         (decide_peel_completely): Ditto.
36525         (decide_unroll_constant_iterations): Ditto.
36526         (decide_unroll_runtime_iterations): Ditto.
36527         (decide_peel_simple): Ditto.
36528         (decide_unroll_stupid): Ditto.
36529         * cfgloop.c (get_loop_location): New function.
36530         * cfgloop.h (get_loop_location): Declare.
36531
36532 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
36533
36534         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
36535         NULL.
36536
36537 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36538
36539         PR middle-end/55198
36540         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
36541         BLKmode objects when EXPAND_MEMORY is specified.
36542
36543 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
36544
36545         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
36546         in loop predicate.
36547         (fold_builtin_cpu): Do not share cpu model decls across statements.
36548
36549 2013-01-02  Jason Merrill  <jason@redhat.com>
36550
36551         PR c++/55804
36552         * tree.c (build_array_type_1): Revert earlier change.
36553
36554 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
36555
36556         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
36557         "cortex-a57".
36558         * config/aarch64/aarch64-tune.md: Re-generate.
36559
36560 2013-01-02  Richard Biener  <rguenther@suse.de>
36561
36562         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36563         invariant load do not generate a vector load from the scalar location.
36564
36565 2013-01-02  Richard Biener  <rguenther@suse.de>
36566
36567         PR bootstrap/55784
36568         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
36569         * configure: Regenerate.
36570
36571 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36572
36573         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
36574         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
36575         (expand_builtin_int_roundingfn_2): Keep the original target around
36576         for the fallback case.
36577
36578 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36579
36580         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
36581         to be clear for sign changes.
36582
36583 2013-01-01  Jan Hubicka  <jh@suse.cz>
36584
36585         * ipa-inline-analysis.c: Fix formatting.
36586
36587 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
36588
36589         PR tree-optimization/55831
36590         * tree-vect-loop.c (get_initial_def_for_induction): Use
36591         gsi_after_labels instead of gsi_start_bb.
36592 \f
36593 Copyright (C) 2013 Free Software Foundation, Inc.
36594
36595 Copying and distribution of this file, with or without modification,
36596 are permitted in any medium without royalty provided the copyright
36597 notice and this notice are preserved.