2013-11-29 Yvan Roux <yvan.roux@linaro.org>
[official-gcc.git] / gcc / ChangeLog
blobc3699455f578bd78577cfcd91f22182b0fc582d7
1 2013-11-29  Yvan Roux  <yvan.roux@linaro.org>
3          * config/arm/arm.md (store_minmaxsi): Use only when
4         optimize_function_for_size_p.
6 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
7             Yury Gribov  <y.gribov@samsung.com>
9         PR sanitizer/59063
10         * config/gnu-user.h: Removed old code for setting up sanitizer
11         libs.
12         * gcc.c: Using libsanitizer spec instead of explicit libs.
14 2013-11-29  Ilya Enkovich  <ilya.enkovich@intel.com>
16         Reverted:
17         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
18         * cgraph.h (varpool_node): Add need_bounds_init field.
19         * lto-cgraph.c (lto_output_varpool_node): Output
20         need_bounds_init value.
21         (input_varpool_node): Read need_bounds_init value.
22         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
24         Reverted:
25         2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
26         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
27         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
28         (gen_type_die_with_usage): Skip pointer bounds.
29         (dwarf2out_global_decl): Likewise.
31         Reverted:
32         2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
33         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
34         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
35         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
36         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
37         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
38         (gimple_call_with_bounds_p): New.
39         (gimple_call_set_with_bounds): New.
40         (gimple_call_num_nobnd_args): Remove.
41         (gimple_call_nobnd_arg): Remove.
42         * tree.h (CALL_WITH_BOUNDS_P): New.
43         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
45         Reverted:
46         2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
47         * common.opt (fcheck-pointer-bounds): Move to ...
48         * c-family/c.opt: ... here.
49         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
50         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
51         * langhooks.h (lang_hooks): Remove chkp_supported field.
52         * toplev.c (process_options): Remove chkp_supported check.
54         Reverted:
55         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
56         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
57         * tree.h (POINTER_BOUNDS_P): New.
58         (BOUNDED_TYPE_P): New.
59         (BOUNDED_P): New.
60         (pointer_bounds_type_node): New.
61         * tree.c (build_common_tree_nodes): Initialize
62         pointer_bounds_type_node.
63         * gimple.h (gimple_call_get_nobnd_arg_index): New.
64         (gimple_call_num_nobnd_args): New.
65         (gimple_call_nobnd_arg): New.
66         (gimple_return_retbnd): New.
67         (gimple_return_set_retbnd): New
68         * gimple.c (gimple_build_return): Increase number of ops
69         for return statement.
70         (gimple_call_get_nobnd_arg_index): New.
71         * gimple-pretty-print.c (dump_gimple_return): Print second op.
73         Reverted:
74         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
75         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
76         with "chkp ctor" and "bnd_legacy" attributes.
77         * gimplify.c (gimplify_init_constructor): Avoid infinite
78         loop during gimplification of bounds initializer.
80         Reverted:
81         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
82         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
83         (handle_bnd_legacy): New.
84         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
85         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
86         attributes.
88         Reverted:
89         2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
90         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
91         (BT_FN_PTR_CONST_PTR): New.
92         (BT_FN_CONST_PTR_CONST_PTR): New.
93         (BT_FN_PTR_CONST_PTR_SIZE): New.
94         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
95         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
96         (BT_FN_VOID_CONST_PTR_SIZE): New.
97         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
98         * chkp-builtins.def: New.
99         * builtins.def: include chkp-builtins.def.
100         (DEF_CHKP_BUILTIN): New.
101         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
102         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
103         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
104         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
105         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
106         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
107         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
108         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
109         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
110         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
111         * common.opt (fcheck-pointer-bounds): New.
112         * toplev.c (process_options): Check Pointer Bounds Checker is
113         supported.
114         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
116         Reverted:
117         2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
118         * target.def (builtin_chkp_function): New.
119         (chkp_bound_type): New.
120         (chkp_bound_mode): New.
121         (fn_abi_va_list_bounds_size): New.
122         (load_bounds_for_arg): New.
123         (store_bounds_for_arg): New.
124         * targhooks.h (default_load_bounds_for_arg): New.
125         (default_store_bounds_for_arg): New.
126         (default_fn_abi_va_list_bounds_size): New.
127         (default_chkp_bound_type): New.
128         (default_chkp_bound_mode): New.
129         (default_builtin_chkp_function): New.
130         * targhooks.c (default_load_bounds_for_arg): New.
131         (default_store_bounds_for_arg): New.
132         (default_fn_abi_va_list_bounds_size): New.
133         (default_chkp_bound_type): New.
134         (default_chkp_bound_mode); New.
135         (default_builtin_chkp_function): New.
136         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
137         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
138         (TARGET_STORE_BOUNDS_FOR_ARG): New.
139         (TARGET_BUILTIN_CHKP_FUNCTION): New.
140         (TARGET_CHKP_BOUND_TYPE): New.
141         (TARGET_CHKP_BOUND_MODE): New.
142         * doc/tm.texi: Regenerated.
143         * langhooks.h (lang_hooks): Add chkp_supported field.
144         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
145         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
147         Reverted:
148         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
149         * config/i386/constraints.md (B): New.
150         (Ti): New.
151         (Tb): New.
152         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
153         * config/i386/i386-modes.def (BND32): New.
154         (BND64): New.
155         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
156         * config/i386/i386.c (isa_opts): Add mmpx.
157         (regclass_map): Add bound registers.
158         (dbx_register_map): Likewise.
159         (dbx64_register_map): Likewise.
160         (svr4_dbx_register_map): Likewise.
161         (PTA_MPX): New.
162         (ix86_option_override_internal): Support MPX ISA.
163         (ix86_conditional_register_usage): Support bound registers.
164         (print_reg): Likewise.
165         (ix86_code_end): Add MPX bnd prefix.
166         (output_set_got): Likewise.
167         (ix86_output_call_insn): Likewise.
168         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
169         (ix86_print_operand_punct_valid_p): Likewise.
170         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
171         UNSPEC_BNDMK_ADDR.
172         (ix86_class_likely_spilled_p): Add bound regs support.
173         (ix86_hard_regno_mode_ok): Likewise.
174         (x86_order_regs_for_local_alloc): Likewise.
175         (ix86_bnd_prefixed_insn_p): New.
176         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
177         (FIXED_REGISTERS): Add bound registers.
178         (CALL_USED_REGISTERS): Likewise.
179         (REG_ALLOC_ORDER): Likewise.
180         (HARD_REGNO_NREGS): Likewise.
181         (TARGET_MPX): New.
182         (VALID_BND_REG_MODE): New.
183         (FIRST_BND_REG): New.
184         (LAST_BND_REG): New.
185         (reg_class): Add BND_REGS.
186         (REG_CLASS_NAMES): Likewise.
187         (REG_CLASS_CONTENTS): Likewise.
188         (BND_REGNO_P): New.
189         (ANY_BND_REG_P): New.
190         (BNDmode): New.
191         (HI_REGISTER_NAMES): Add bound registers.
192         * config/i386/i386.md (UNSPEC_BNDMK): New.
193         (UNSPEC_BNDMK_ADDR): New.
194         (UNSPEC_BNDSTX): New.
195         (UNSPEC_BNDLDX): New.
196         (UNSPEC_BNDLDX_ADDR): New.
197         (UNSPEC_BNDCL): New.
198         (UNSPEC_BNDCU): New.
199         (UNSPEC_BNDCN): New.
200         (UNSPEC_MPX_FENCE): New.
201         (BND0_REG): New.
202         (BND1_REG): New.
203         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
204         (length_immediate): Likewise.
205         (prefix_0f): Likewise.
206         (memory): Likewise.
207         (prefix_rep): Check for bnd prefix.
208         (length_nobnd): New.
209         (length): Use length_nobnd if specified.
210         (BND): New.
211         (bnd_ptr): New.
212         (BNDCHECK): New.
213         (bndcheck): New.
214         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
215         (*jcc_2): Likewise.
216         (jump): Likewise.
217         (simple_return_internal): Likewise.
218         (simple_return_pop_internal): Likewise.
219         (*indirect_jump): Add MPX bnd prefix.
220         (*tablejump_1): Likewise.
221         (simple_return_internal_long): Likewise.
222         (simple_return_indirect_internal): Likewise.
223         (<mode>_mk): New.
224         (*<mode>_mk): New.
225         (mov<mode>): New.
226         (*mov<mode>_internal_mpx): New.
227         (<mode>_<bndcheck>): New.
228         (*<mode>_<bndcheck>): New.
229         (<mode>_ldx): New.
230         (*<mode>_ldx): New.
231         (<mode>_stx): New.
232         (*<mode>_stx): New.
233         * config/i386/predicates.md (lea_address_operand): Rename to...
234         (address_no_seg_operand): ... this.
235         (address_mpx_no_base_operand): New.
236         (address_mpx_no_index_operand): New.
237         (bnd_mem_operator): New.
238         * config/i386/i386.opt (mmpx): New.
239         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
240         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
242         Reverted:
243         2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
244         * mode-classes.def (MODE_POINTER_BOUNDS): New.
245         * tree.def (POINTER_BOUNDS_TYPE): New.
246         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
247         (POINTER_BOUNDS_MODE): New.
248         (make_pointer_bounds_mode): New.
249         * machmode.h (POINTER_BOUNDS_MODE_P): New.
250         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
251         (layout_type): Support POINTER_BOUNDS_TYPE.
252         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
253         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
254         (type_contains_placeholder_1): Likewise.
255         * tree.h (POINTER_BOUNDS_TYPE_P): New.
256         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
257         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
259 2013-11-29  Richard Biener  <rguenther@suse.de>
261         PR middle-end/59338
262         * tree-cfg.c (verify_expr): Restrict bounds verification of
263         BIT_FIELD_REF arguments to non-aggregate typed base objects.
265 2013-11-29  Richard Biener  <rguenther@suse.de>
267         PR tree-optimization/59334
268         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Fix bug
269         in previous commit.
271 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
272             Richard Biener  <rguenther@suse.de>
274         PR lto/59326
275         * omp-low.c (simd_clone_create): Return NULL if for definition
276         !cgraph_function_with_gimple_body_p (old_node).  Call cgraph_get_body
277         before calling cgraph_function_versioning.
278         (expand_simd_clones): Look for "omp declare simd" attribute first.
279         Don't check targetm.simd_clone.compute_vecsize_and_simdlen here.
280         Punt if node->global.inlined_to.
281         (pass_omp_simd_clone::gate): Also enable if in_lto_p && !flag_wpa.
282         Disable pass if targetm.simd_clone.compute_vecsize_and_simdlen is NULL.
283         * lto-streamer-out.c (hash_tree): Handle OMP_CLAUSE.
285 2013-11-29  Jakub Jelinek  <jakub@redhat.com>
287         PR lto/59326
288         * tree-core.h (enum omp_clause_schedule_kind): Add
289         OMP_CLAUSE_SCHEDULE_LAST.
290         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_LAST.
291         (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_LAST.
292         (enum omp_clause_map_kind): Add OMP_CLAUSE_MAP_LAST.
293         (enum omp_clause_proc_bind_kind): Add OMP_CLAUSE_PROC_BIND_LAST.
294         * lto-streamer-out.c (lto_is_streamable): Allow streaming
295         OMP_CLAUSE.
296         (DFS_write_tree_body): Handle OMP_CLAUSE.
297         * tree-streamer-out.c (pack_ts_omp_clause_value_fields): New
298         function.
299         (streamer_pack_tree_bitfields): Call it for OMP_CLAUSE.
300         (write_ts_omp_clause_tree_pointers): New function.
301         (streamer_write_tree_body): Call it for OMP_CLAUSE.
302         (streamer_write_tree_header): For OMP_CLAUSE stream OMP_CLAUSE_CODE.
303         * tree-streamer-in.c (unpack_ts_omp_clause_value_fields): New
304         function.
305         (unpack_value_fields): Call it for OMP_CLAUSE.
306         (streamer_alloc_tree): Handle OMP_CLAUSE.
307         (lto_input_ts_omp_clause_tree_pointers): New function.
308         (streamer_read_tree_body): Call it for OMP_CLAUSE.
310 2013-11-29  Joseph Myers  <joseph@codesourcery.com>
312         * doc/implement-c.texi: Document C11 implementation-defined
313         behavior.  Refer to -ffp-contract=fast for contraction behavior.
314         * doc/invoke.texi (-std=c99, std=c11): Update description of
315         completeness.
316         (-std=gnu99): Don't mention as future default.
317         (-std=gnu11): Mention as intended future default.
318         * doc/standards.texi: Update descriptions of C99 and C11 support.
319         Limit statement about C99 facilities for freestanding
320         implementations to some platforms only.
322 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
324         PR middle-end/59327
325         * cfgexpand.c (expand_used_vars): Avoid warning on 32-bit
326         HWI hosts.
328 2013-11-28  Vladimir Makarov  <vmakarov@redhat.com>
330         PR target/57293
331         * ira.h (ira_setup_eliminable_regset): Remove parameter.
332         * ira.c (ira_setup_eliminable_regset): Ditto.  Add
333         SUPPORTS_STACK_ALIGNMENT for crtl->stack_realign_needed.
334         Don't call lra_init_elimination.
335         (ira): Call ira_setup_eliminable_regset without arguments.
336         * loop-invariant.c (calculate_loop_reg_pressure): Remove argument
337         from ira_setup_eliminable_regset call.
338         * gcse.c (calculate_bb_reg_pressure): Ditto.
339         * haifa-sched.c (sched_init): Ditto.
340         * lra.h (lra_init_elimination): Remove the prototype.
341         * lra-int.h (lra_insn_recog_data): New member sp_offset.  Move
342         used_insn_alternative upper.
343         (lra_eliminate_regs_1): Add one more parameter.
344         (lra-eliminate): Ditto.
345         * lra.c (lra_invalidate_insn_data): Set sp_offset.
346         (setup_sp_offset): New.
347         (lra_process_new_insns): Call setup_sp_offset.
348         (lra): Add argument to lra_eliminate calls.
349         * lra-constraints.c (get_equiv_substitution): Rename to get_equiv.
350         (get_equiv_with_elimination): New.
351         (process_addr_reg): Call get_equiv_with_elimination instead of
352         get_equiv_substitution.
353         (equiv_address_substitution): Ditto.
354         (loc_equivalence_change_p): Ditto.
355         (loc_equivalence_callback, lra_constraints): Ditto.
356         (curr_insn_transform): Ditto.  Print the sp offset
357         (process_alt_operands): Prevent stack pointer reloads.
358         (lra_constraints): Remove one argument from lra_eliminate call.
359         Move it up.  Mark used hard regs bfore it.  Use
360         get_equiv_with_elimination instead of get_equiv_substitution.
361         * lra-eliminations.c (lra_eliminate_regs_1): Add parameter and
362         assert for param values combination.  Use sp offset.  Add argument
363         to lra_eliminate_regs_1 calls.
364         (lra_eliminate_regs): Add argument to lra_eliminate_regs_1 call.
365         (curr_sp_change): New static var.
366         (mark_not_eliminable): Add parameter.  Update curr_sp_change.
367         Don't prevent elimination to sp if we can calculate its change.
368         Pass the argument to mark_not_eliminable calls.
369         (eliminate_regs_in_insn): Add a parameter.  Use sp offset.  Add
370         argument to lra_eliminate_regs_1 call.
371         (update_reg_eliminate): Move calculation of hard regs for spill
372         lower.  Switch off lra_in_progress temporarily to generate regs
373         involved into elimination.
374         (lra_init_elimination): Rename to init_elimination.  Make it
375         static.  Set up insn sp offset, check the offsets at the end of
376         BBs.
377         (process_insn_for_elimination): Add parameter.  Pass its value to
378         eliminate_regs_in_insn.
379         (lra_eliminate): : Add parameter.  Pass its value to
380         process_insn_for_elimination.  Add assert for param values
381         combination.  Call init_elimination.  Don't update offsets in
382         equivalence substitutions.
383         * lra-spills.c (assign_mem_slot): Don't call lra_eliminate_regs_1
384         for created stack slot.
385         (remove_pseudos): Call lra_eliminate_regs_1 before changing memory
386         onto stack slot.
388 2013-11-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
390         * config/arm/iterators.md (vrint_conds): New int attribute.
391         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2): Set conds attribute.
392         (smax<mode>3): Likewise.
393         (smin<mode>3): Likewise.
395 2013-11-28  Richard Sandiford  <rdsandiford@googlemail.com>
397         * tree-core.h (tree_base): Document use of static_flag for SSA_NAME.
398         * tree.h (SSA_NAME_ANTI_RANGE_P, SSA_NAME_RANGE_TYPE): New macros.
399         * tree-ssanames.h (set_range_info): Add range_type argument.
400         (duplicate_ssa_name_range_info): Likewise.
401         * tree-ssanames.c (set_range_info): Take the range type as argument
402         and store it in SSA_NAME_ANTI_RANGE_P.
403         (duplicate_ssa_name_range_info): Likewise.
404         (get_range_info): Use SSA_NAME_ANTI_RANGE_P.
405         (set_nonzero_bits): Update call to set_range_info.
406         (duplicate_ssa_name_fn): Update call to duplicate_ssa_name_range_info.
407         * tree-ssa-copy.c (fini_copy_prop): Likewise.
408         * tree-vrp.c (remove_range_assertions): Update call to set_range_info.
409         (vrp_finalize): Likewise, passing anti-ranges directly.
411 2013-11-28  Richard Biener  <rguenther@suse.de>
413         PR tree-optimization/59330
414         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Simplify
415         and fix delayed marking of free calls not necessary.
417 2013-11-28  Andrew MacLeod  <amacleod@redhat.com>
419         * tree-ssa-propagate.c (valid_gimple_call_p): Pass TREE_TYPE to
420         is_gimple_reg_type.
421         * ipa-prop.c (determine_known_aggregate_parts): Likewise.
423 2013-11-28  Terry Guo  <terry.guo@arm.com>
425         * config/arm/arm.c (v7m_extra_costs): New table.
426         (arm_v7m_tune): Use it.
428 2013-11-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
430         * config/sol2.h (TIME_LIBRARY): Define.
432 2013-11-28  Richard Biener  <rguenther@suse.de>
434         PR lto/59323
435         * lto-streamer-out.c (tree_is_indexable): TYPE_DECLs and
436         CONST_DECLs in function context are not indexable.
438 2013-11-28  Chung-Ju Wu  <jasonwucj@gmail.com>
440         * config/nds32/nds32.c (nds32_rtx_costs): Adjust MULT cost if it is
441         not optimized for size.
443 2013-11-28  Jakub Jelinek  <jakub@redhat.com>
445         * cfgexpand.c (struct stack_vars_data): Add asan_base and asan_alignb
446         fields.
447         (expand_stack_vars): For -fsanitize=address, use (and set initially)
448         data->asan_base as base for vars and update asan_alignb.
449         (expand_used_vars): Initialize data.asan_base and data.asan_alignb.
450         Pass them to asan_emit_stack_protection.
451         * asan.c (asan_detect_stack_use_after_return): New variable.
452         (asan_emit_stack_protection): Add pbase and alignb arguments.
453         Implement use after return sanitization.
454         * asan.h (asan_emit_stack_protection): Adjust prototype.
455         (ASAN_STACK_MAGIC_USE_AFTER_RET, ASAN_STACK_RETIRED_MAGIC): Define.
457 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
459         * common.opt: Introduced a new option -fsimd-cost-model.
460         * doc/invoke.texi: Introduced a new openmp-simd warning and
461         a new -fsimd-cost-model option.
462         * tree-vectorizer.h (unlimited_cost_model): Interface updated
463         to rely on the particular loop info.
464         * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
465         (vect_peeling_hash_choose_best_peeling): Ditto.
466         (vect_enhance_data_refs_alignment): Ditto.
467         * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
468         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
469         plus added openmp-simd warining.
471 2013-11-27   H.J. Lu  <hongjiu.lu@intel.com>
473         PR rtl-optimization/59311
474         * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
475         * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
477 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
479         * var-tracking.c (track_expr_p): Do not track declarations for parts
480         of tracked parameters.
481         (add_stores): Do not track values for tracked parameters passed in
482         multiple locations.
483         (vt_get_decl_and_offset): Handle PARALLEL.
484         (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
486 2013-11-27  Jeff Law  <law@redhat.com>
488         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
489         clobber the loop structure thread_block was unsuccessful.  If
490         thread_block was unsuccessful, cleanup appropriately.
492 2013-11-27  Chen Liqin <liqin.gcc@gmail.com>
494         * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
495         (score_char_to_class): Likewise.
497 2013-11-27  Kenneth Zadeck  <zadeck@naturalbridge.com>
499         * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with the
500         overflow bit set.
502 2013-11-27  Richard Biener  <rguenther@suse.de>
504         PR middle-end/58723
505         * cgraphbuild.c (build_cgraph_edges): Do not build edges
506         for internal calls.
507         (rebuild_cgraph_edges): Likewise.
508         * ipa-inline-analysis.c (estimate_function_body_sizes):
509         Skip internal calls.
510         * tree-inline.c (estimate_num_insns): Estimate size of internal
511         calls as 0.
512         (gimple_expand_calls_inline): Do not try inline-expanding
513         internal calls.
514         * lto-streamer-in.c (input_cfg): Stream loop safelen,
515         force_vect and simduid.
516         (input_struct_function_base): Stream has_force_vect_loops
517         and has_simduid_loops.
518         (input_function): Adjust.
519         * lto-streamer-out.c (output_cfg): Stream loop safelen,
520         force_vect and simduid.
521         (output_struct_function_base): Stream has_force_vect_loops
522         and has_simduid_loops.
524 2013-11-27  Kai Tietz  <ktietz@redhat.com>
526         * config/i386/winnt.c (i386_pe_section_type_flags): Use const
527         pointer cast.
529 2013-11-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
531         * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
532         * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
534 2013-11-27  Marek Polacek  <polacek@redhat.com>
536         PR sanitizer/59306
537         * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
538         instead of walk_gimple_op.
539         (ubsan_pass): Adjust.  Call instrument_null only if SANITIZE_NULL.
541 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
542             Jakub Jelinek  <jakub@redhat.com>
544         * cgraph.h (enum cgraph_simd_clone_arg_type): New.
545         (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
546         (struct cgraph_node): Add simdclone and simd_clones fields.
547         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
548         ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
549         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
550         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
551         * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
552         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
553         * doc/tm.texi: Regenerated.
554         * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
555         * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
556         attribute is present.
557         * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
558         (simd_clone_vector_of_formal_parm_types): New function.
559         (simd_clone_struct_alloc, simd_clone_struct_copy,
560         simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
561         simd_clone_compute_base_data_type, simd_clone_mangle,
562         simd_clone_create, simd_clone_adjust_return_type,
563         create_tmp_simd_array, simd_clone_adjust_argument_types,
564         simd_clone_init_simd_arrays): New functions.
565         (struct modify_stmt_info): New type.
566         (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
567         simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
568         functions.
569         (pass_data_omp_simd_clone): New variable.
570         (pass_omp_simd_clone): New class.
571         (make_pass_omp_simd_clone): New function.
572         * passes.def (pass_omp_simd_clone): New.
573         * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
574         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target
575         hooks.
576         * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
577         * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
578         * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
579         * tree-pass.h (make_pass_omp_simd_clone): New prototype.
580         * tree-vect-data-refs.c: Include cgraph.h.
581         (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
582         and find_data_references_in_bb, if find_data_references_in_stmt
583         fails, still allow calls to #pragma omp declare simd functions
584         in #pragma omp simd loops unless they contain data references among
585         the call arguments or in lhs.
586         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
587         calls with no lhs.
588         (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls without
589         lhs.
590         * tree-vectorizer.h (enum stmt_vec_info_type): Add
591         call_simd_clone_vec_info_type.
592         (struct _stmt_vec_info): Add simd_clone_fndecl field.
593         (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
594         * tree-vect-stmts.c: Include tree-ssa-loop.h,
595         tree-scalar-evolution.h and cgraph.h.
596         (vectorizable_call): Handle calls without lhs.  Assert
597         !stmt_can_throw_internal instead of failing for it.  Don't update
598         EH stuff.
599         (struct simd_call_arg_info): New.
600         (vectorizable_simd_clone_call): New function.
601         (vect_transform_stmt): Call it.
602         (vect_analyze_stmt): Likewise.  Allow NULL STMT_VINFO_VECTYPE for
603         calls without lhs.
604         * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
605         if cgraph_function_with_gimple_body_p is true.
607 2013-11-27  Tom de Vries  <tom@codesourcery.com>
608             Marc Glisse  <marc.glisse@inria.fr>
610         PR middle-end/59037
611         * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
612         BIT_FIELD_REF.
613         * gimple-fold.c (gimple_fold_indirect_ref): Same.
614         * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
615         out-of-bounds.
617 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
619         PR middle-end/59138
620         * expr.c (emit_group_store): Don't write past the end of the structure.
621         (store_bit_field): Fix formatting.
623 2013-11-27  Richard Biener  <rguenther@suse.de>
625         PR tree-optimization/59288
626         * tree-vect-loop.c (get_initial_def_for_induction): Do not
627         re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
629 2013-11-27  Marek Polacek  <polacek@redhat.com>
631         * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
632         for a decl, recreate that decl.  Save into the hash table VAR_DECLs
633         rather than ADDR_EXPRs.
635 2013-11-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
637         * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
639 2013-11-26  David Malcolm  <dmalcolm@redhat.com>
641         * gengtype.c (struct seen_tag): New.
642         (already_seen_tag): New.
643         (mark_tag_as_seen): New.
644         (walk_subclasses): Support having multiple subclasses using the
645         same tag by tracking which tags have already been seen, and using
646         this to avoid adding duplicate cases to the "switch" statement.
647         The call to already_seen_tag introduces an O(N^2) when running
648         gengtype on N, the number of tags, due to the repeated linear
649         search, but currently max(N) is relatively small (the number of
650         GSS codes, which is 26).
651         (walk_type): Pass in a seen_tag for use by the walk_subclasses
652         recursion.
654         * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
655         underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
656         GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
657         GIMPLE_OMP_RETURN happens to share the data layout of
658         GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
659         (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
660         underlying GSS value from GSS_OMP_PARALLEL to
661         GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
662         not directly related; they merely share in-memory layout.
663         (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
664         for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
666         * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
667         Rename to...
668         (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
669         ...these.
670         (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
671         (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout):
672         ...these.
673         (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename
674         to...
675         (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
676         ...these.
678         * gimple.h (gimple_statement_resx): New subclass of
679         gimple_statement_eh_ctrl, with the invariant that
680         stmt->code == GIMPLE_RESX.
681         (gimple_statement_eh_dispatch): New subclass of
682         gimple_statement_eh_ctrl, with the invariant that
683         stmt->code == GIMPLE_EH_DISPATH.
685         (gimple_statement_omp_parallel): The existing class expressed
686         a layout (GSS_OMP_PARALLEL), but the codes with that layout
687         are not all related, so it makes more sense for this class to
688         express a *code* (GIMPLE_OMP_PARALLEL).  GSS_OMP_PARALLEL has
689         been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
690         rename the existing gimple_statement_omp_parallel class to...
691         (gimple_statement_omp_parallel_layout): ...this, expressing
692         a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
693         (gimple_statement_omp_taskreg): New subclass of
694         gimple_statement_omp_parallel_layout, expressing the invariant
695         that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
696         as used by the various gimple_omp_taskreg_ accessors.
697         (gimple_statement_omp_parallel): Reintroduce this class, this time
698         as a subclass of gimple_statement_omp_taskreg to express the
699         invariant stmt->code == GIMPLE_OMP_PARALLEL.
700         (gimple_statement_omp_target) New class, subclassing
701         gimple_statement_omp_parallel_layout, to express the invariant
702         stmt->code == GIMPLE_OMP_TARGET.
703         (gimple_statement_omp_task): Update to inherit from
704         gimple_statement_omp_taskreg rather than
705         gimple_statement_omp_parallel.
707         (gimple_statement_omp_single): Rename to...
708         (gimple_statement_omp_single_layout): ...this, expressing the
709         invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
710         (gimple_statement_omp_single): ...and reintroduce this name as
711         a subclass of gimple_statement_omp_single_layout, expressing
712         the invariant that code == GIMPLE_OMP_SINGLE.
713         (gimple_statement_omp_teams): New class, subclassing
714         gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
716         (gimple_statement_omp_atomic_store): Rename to...
717         (gimple_statement_omp_atomic_store_layout): ...this, expressing
718         the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
719         (gimple_statement_omp_atomic_store): ...and reintroduce this
720         name as a subclass of gimple_statement_omp_atomic_store_layout
721         with code == GIMPLE_OMP_ATOMIC_STORE.
722         (gimple_statement_omp_return): New class, subclassing
723         gimple_statement_omp_atomic_store_layout for the code
724         GIMPLE_OMP_RETURN.
726         (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
727         (is_a_helper <gimple_statement_resx>::test): New.
728         (is_a_helper <gimple_statement_eh_dispatch>::test): New.
729         (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
730         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
731         (is_a_helper <gimple_statement_omp_return>::test): New.
732         (is_a_helper <gimple_statement_omp_taskreg>::test): New.
733         (is_a_helper <gimple_statement_omp_parallel>::test): Only check
734         for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
735         GIMPLE_OMP_TARGET.
736         (is_a_helper <gimple_statement_omp_target>::test): New.
737         (is_a_helper <gimple_statement_omp_single>::test): Only check
738         for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
739         (is_a_helper <gimple_statement_omp_teams>::test): New.
741         (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
742         (is_a_helper <const gimple_statement_resx>::test): New.
743         (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
744         (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
745         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
746         (is_a_helper <const gimple_statement_omp_return>::test): New.
747         (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
748         (is_a_helper <const gimple_statement_omp_parallel>::test): Only
749         check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
750         GIMPLE_OMP_TARGET.
751         (is_a_helper <const gimple_statement_omp_target>::test): New.
752         (is_a_helper <const gimple_statement_omp_single>::test): Only
753         check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
754         (is_a_helper <const gimple_statement_omp_teams>::test): New.
756         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
757         gimple_omp_return_lhs_ptr): Replace bogus downcasts to
758         gimple_statement_omp_atomic_store with downcasts to
759         gimple_statement_omp_return, thus requiring that the code be
760         GIMPLE_OMP_RETURN.
761         (gimple_resx_region, gimple_resx_set_region): Replace bogus
762         downcasts to gimple_statement_eh_ctrl with downcasts to
763         gimple_statement_resx, thus requiring that the code be
764         GIMPLE_RESX.
765         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
766         Replace bogus downcasts to const gimple_statement_eh_ctrl with
767         downcasts to gimple_statement_eh_dispatch, thus requiring that
768         the code be GIMPLE_EH_DISPATCH.
769         (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
770         gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
771         gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
772         gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
773         gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
774         gimple_statement_omp_parallel with downcasts to
775         gimple_statement_omp_taskreg, thus requiring that the code be
776         either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
777         (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
778         gimple_omp_target_set_clauses, gimple_omp_target_child_fn
779         gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
780         gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
781         gimple_omp_target_set_data_arg): Replace bogus downcasts to
782         gimple_statement_omp_parallel with downcasts to
783         gimple_statement_omp_target, thus requiring that the code be
784         GIMPLE_OMP_TARGET.
785         (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
786         gimple_omp_teams_set_clauses): Replace bogus downcasts to
787         gimple_statement_omp_single with downcasts to
788         gimple_statement_omp_teams, thus requiring that the code be
789         GIMPLE_OMP_TEAMS.
791         * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
792         gimple_statement_resx.
793         (gimple_build_eh_dispatch): Fix bogus as_a<> to use
794         gimple_statement_eh_dispatch.
796 2013-11-26  Jakub Jelinek  <jakub@redhat.com>
798         PR tree-optimization/59014
799         * tree-vrp.c (register_edge_assert_for_1): Don't look
800         through conversions from non-integral types or through
801         narrowing conversions.
803         PR target/59229
804         * config/i386/i386.c (device_alg): Fix up formatting.
805         (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
806         similarly to count && count < epilogue_size_needed.  Fix up
807         comment typo.
808         * builtins.c (determine_block_size): Fix comment typo.
810         PR sanitizer/59258
811         * ubsan.c (ubsan_source_location): Don't add any location
812         to ADDR_EXPR in the ctor.  Revert 2013-11-22 change.
813         (ubsan_create_data): Strip block info from LOC.
815         PR middle-end/59273
816         * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
817         if there isn't optab handler for the corresponding vector PLUS_EXPR.
819         PR rtl-optimization/59166
820         * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
821         DF_REF_LOC in validate_change call.
822         (split_live_ranges_for_shrink_wrap): Likewise.
824         PR middle-end/59150
825         * omp-low.c (lower_rec_input_clause): For reduction with placeholder
826         of references to constant size types in simd loops, defer emitting
827         initializer for the new_var, emit it later on only if not using
828         SIMD arrays for it.
830         PR middle-end/59152
831         * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
832         for the inner loop if collapse_bb is non-NULL.
833         (expand_omp_simd): Use cont_bb rather than e->dest as latch.
835 2013-11-26  Yufeng Zhang  <yufeng.zhang@arm.com>
837         * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
838         a constant immediate before force_reg.
840 2013-11-26  Richard Biener  <rguenther@suse.de>
842         PR tree-optimization/59245
843         * tree-vrp.c (set_value_range): Assert that we don't have
844         overflowed constants (but our infinities).
845         (set_value_range_to_value): Drop all overflow flags.
846         (vrp_visit_phi_node): Likewise.
847         (vrp_visit_assignment_or_call): Use set_value_range_to_value
848         to set a constant range.
850 2013-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
852         PR target/59290
853         * config/arm/arm.md (*zextendsidi_negsi): New pattern.
854         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
855         for zero_extend case.
857 2013-11-26   H.J. Lu  <hongjiu.lu@intel.com>
859         PR bootstrap/55552
860         * configure.ac (install_gold_as_default): New.  Set to yes for
861         --disable-ld or --enable-gold=default.
862         (gcc_cv_ld_gold_srcdir): New.
863         (gcc_cv_ld): Also check in-tree gold if install_gold_as_default
864         is yes.
865         (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
866         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
867         * configure: Regenerated.
869         * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
870         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
871         (original) [collect-ld && -fuse-ld=bfd]: Set to
872         $ORIGINAL_LD_BFD_FOR_TARGET.
873         (original) [collect-ld && -fuse-ld=gold]: Set to
874         $ORIGINAL_LD_GOLD_FOR_TARGET.
875         (dir) [collect-ld && ../gold/ld-new]: Set to gold.
876         (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
878 2013-11-26  Terry Guo  <terry.guo@arm.com>
880         * config/arm/arm.c (require_pic_register): Handle high pic base
881         register for thumb-1.
882         (arm_load_pic_register): Also initialize high pic base register.
883         * doc/invoke.texi: Update documentation for option -mpic-register.
885 2013-11-26  Oleg Endo  <olegendo@gcc.gnu.org>
887         PR target/58314
888         PR target/50751
889         * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
890         Prefix function names with 'sh_'.  Make them non-static.
891         * config/sh/sh-protos.h (sh_disp_addr_displacement,
892         sh_max_mov_insn_displacement): Add declarations.
893         * config/sh/constraints.md (Q): Reject QImode.
894         (Sdd): Use match_code "mem".
895         (Snd): Fix erroneous matching of non-memory operands.
896         * config/sh/predicates.md (short_displacement_mem_operand): New
897         predicate.
898         (general_movsrc_operand): Disallow PC relative QImode loads.
899         * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
900         (*movqi, *movhi): Merge both insns into...
901         (*mov<mode>): ... this new insn.  Replace generic 'm' constraints with
902         'Snd' and 'Sdd' constraints.  Calculate insn length dynamically based
903         on the operand types.
905 2013-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>
907         * config/epiphany/epiphany.c (epiphany_expand_prologue):
908         Remove unused variable save_config.
909         (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
910         assert.
912 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
914         * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
915         using other intrinsics.
916         (vtbx3_<psu>8): Likewise.
918 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
920         * config/aarch64/aarch64-builtins.c
921         (aarch64_types_bsl_p_qualifiers): New.
922         (aarch64_types_bsl_s_qualifiers): Likewise.
923         (aarch64_types_bsl_u_qualifiers): Likewise.
924         (TYPES_BSL_P): Likewise.
925         (TYPES_BSL_S): Likewise.
926         (TYPES_BSL_U): Likewise.
927         (BUILTIN_VALLDIF): Likewise.
928         (BUILTIN_VDQQH): Likewise.
929         * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
930         * config/aarch64/aarch64-simd.md
931         (aarch64_simd_bsl<mode>_internal): Handle more modes.
932         (aarch64_simd_bsl<mode>): Likewise.
933         * config/aarch64/arm_neon.h
934         (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
935         * config/aarch64/iterators.md (VALLDIF): New.
936         (Vbtype): Handle more modes.
938 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
940         * config/aarch64/aarch64-builtins.c
941         (aarch64_type_qualifiers): Add qualifier_poly.
942         (aarch64_build_scalar_type): Also build Poly types.
943         (aarch64_build_vector_type): Likewise.
944         (aarch64_build_type): Likewise.
945         (aarch64_build_signed_type): New.
946         (aarch64_build_unsigned_type): Likewise.
947         (aarch64_build_poly_type): Likewise.
948         (aarch64_init_simd_builtins): Also handle Poly types.
950 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
952         * config/aarch64/aarch64-builtins.c
953         (VAR1): Use new naming scheme for aarch64_builtins.
954         (aarch64_builtin_vectorized_function): Use new
955         aarch64_builtins names.
957 2013-11-26  Richard Biener  <rguenther@suse.de>
959         PR tree-optimization/59287
960         * tree-ssa-structalias.c (get_constraint_for_component_ref):
961         Remove no longer necessary special-casing of union accesses.
963 2013-11-26  Richard Biener  <rguenther@suse.de>
965         * pretty-print.c (output_buffer::~output_buffer): Really
966         free the obstacks.
968 2013-11-25  Jeff Law  <law@redhat.com>
970         * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
971         invalidate loop information.
973 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
975         * config/sh/sh.md (doloop_end_split): Add missing SI mode.
977 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
979         PR target/53976
980         PR target/59243
981         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
982         comments.
983         (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
984         previously visited basic blocks before recursing instead of only one
985         basic block.
987 2013-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
989         * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
990         * config/aarch64/aarch64-cores.def (cortex-a53):
991         Use cortexa53 tuning struct.
993 2013-11-25  Andrew Macleod  <amacleod@redhat.com>
995         PR bootstrap/59260
996         * fold-const.c: Include hash-table.h.
998 2013-11-25  Marek Polacek  <polacek@redhat.com>
1000         PR sanitizer/59258
1001         * ubsan.c (ubsan_create_data): Increase the size of the fields array.
1003 2013-11-25  Richard Biener  <rguenther@suse.de>
1005         * tree-dfa.c: Remove unused convert.h include.
1007 2013-11-25  Terry Guo  <terry.guo@arm.com>
1009         * doc/invoke.texi (-mslow-flash-data): Document new option.
1010         * config/arm/arm.opt (mslow-flash-data): New option.
1011         * config/arm/arm-protos.h (arm_max_const_double_inline_cost): Declare
1012         it.
1013         * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
1014         are disabled.
1015         (arm_disable_literal_pool): Declare it.
1016         * config/arm/arm.c (arm_disable_literal_pool): New variable.
1017         (arm_option_override): Handle new option.
1018         (thumb2_legitimate_address_p): Don't allow symbol references when
1019         literal pools are disabled.
1020         (arm_max_const_double_inline_cost): New function.
1021         * config/arm/arm.md (types.md): Include it before ...
1022         (use_literal_pool): New attribute.
1023         (enabled): Use new attribute.
1024         (split pattern): Replace symbol+offset with MOVW/MOVT.
1026 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
1028         PR bootstrap/59279
1029         Revert previous commit.
1031 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
1033         * jump.c (reset_insn_reg_label_operand_notes): New function,
1034         split out from ...
1035         (init_label_info): ... here.  Reset LABEL_NUSES in cfglayout mode.
1036         * cfgcleanup.c (delete_dead_jump_tables_between): New function,
1037         split out from ...
1038         (delete_dead_jumptables): ... here.  Handle cfglayout mode.
1039         (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
1040         expensive CFG cleanup is called for.
1041         * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
1042         (cfg_layout_finalize): Delete dead jump tables before re-building
1043         the insns chain.
1044         * ira.c (ira): Rebuild jump labels *after* deleting unreachable
1045         basic blocks, not before.
1046         * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
1048         * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
1049         insns chain of a scheduling extended basic block, they cannot appear
1050         there in cfglayout mode.
1052 2013-11-24  Tobias Burnus  <burnus@net-b.de>
1054         * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
1056 2013-11-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1058         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
1059         for little endian.
1061 2013-11-24  H.J. Lu  <hongjiu.lu@intel.com>
1063         * graphite-sese-to-poly.c: Don't include extra "expr.h".
1065 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1067         * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
1069 2013-11-23  David Edelson  <dje.gcc@gmail.com>
1070             Andrew Dixie  <andrewd@gentrack.com>
1072         PR target/33704
1073         * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
1074         (COLLECT_SHARED_FINI_FUNC): Define.
1076         * collect2.c (aix_shared_initname): Declare.
1077         (aix_shared_fininame): Declare.
1078         (symkind): Add SYM_AIXI and SYM_AIXD.
1079         (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
1080         (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
1081         (aixlazy_flag): Parse.
1082         (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
1083         (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
1085 2013-11-23  David Edelsohn  <dje.gcc@gmail.com>
1087         * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
1088         (rs6000_xcoff_select_section): Place decls with stricter alignment
1089         into named sections.
1090         (rs6000_xcoff_unique_section): Allow unique sections for
1091         uninitialized data with strict alignment.
1093 2013-11-23  Jakub Jelinek  <jakub@redhat.com>
1095         PR tree-optimization/59154
1096         * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
1097         rhs1 of a cast and new_op is invariant, fold_convert it.
1098         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
1099         simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
1101 2013-11-23  Uros Bizjak  <ubizjak@gmail.com>
1103         PR target/56788
1104         * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
1105         Declare as MULTI_ARG_1_SF instruction.
1106         <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
1107         * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
1108         from *xop_vmfrcz_<mode>.
1109         * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
1110         to merge scalar result with __A.
1111         (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
1112         result with __A.
1114 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1116         * gimplify.h (recalculate_side_effects): Delete.
1117         * gimplify.c (recalculate_side_effects): Make static and add comment.
1119 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1121         * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
1122         for the destination of a define_peephole2.  Likewise register_operand
1123         rather than arith_reg_operand.  Remove constraints from
1124         define_peephole2s.
1126 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1128         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
1129         Delete.
1130         (mn10300_store_multiple_operation_p): Declare.
1131         * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
1132         Rename to...
1133         (mn10300_store_multiple_operation_p): ...this and remove mode
1134         argument.
1135         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
1136         Define.
1138 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
1140         * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
1141         (pop_multiple_operation): Delete.
1142         (analyze_push_multiple_operation): Declare.
1143         (analyze_pop_multiple_operation): Declare.
1144         * config/bfin/bfin.c (push_multiple_operation): Rename to...
1145         (analyze_push_multiple_operation): ...this and remove mode argument.
1146         (pop_multiple_operation): Rename to...
1147         (analyze_pop_multiple_operation): ...this and remove mode argument.
1148         * config/bfin/predicates.md (push_multiple_operation): Define.
1149         (pop_multiple_operation): Likewise.
1151 2013-11-23  Alan Modra  <amodra@gmail.com>
1153         * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
1155 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1157         PR sanitizer/59061
1158         * common.opt (static-liblsan): Add.
1159         * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
1160         Define.
1161         * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK.  Renumber
1162         SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
1163         SANITIZE_RETURN.
1164         * opts.c (common_handle_option): Handle -fsanitize=leak.
1165         * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
1166         (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
1167         (LIBUBSAN_EARLY_SPEC): Remove.
1168         (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
1169         (SANITIZER_SPEC): Add -fsanitize=leak handling.
1170         (sanitize_spec_function): Handle %sanitize(leak).
1171         * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
1173 2013-11-22  Aldy Hernandez  <aldyh@redhat.com>
1174             Jakub Jelinek  <jakub@redhat.com>
1176         * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
1177         * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
1178         (ipa_get_vector_of_formal_parm_types): ... this.  No longer static.
1179         (ipa_modify_formal_parameters): Adjust caller.  Remove
1180         synth_parm_prefix argument.  Use operator enum instead of bit fields.
1181         Add assert for properly handling vector of references.  Handle
1182         creating brand new parameters.
1183         (ipa_modify_call_arguments): Use operator enum instead of bit
1184         fields.
1185         (ipa_combine_adjustments): Same.  Assert that IPA_PARM_OP_NEW is not
1186         used.
1187         (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
1188         New functions.
1189         (ipa_dump_param_adjustments): Rename reduction to new_decl.
1190         Use operator enum instead of bit fields.
1191         * ipa-prop.h (enum ipa_parm_op): New.
1192         (struct ipa_parm_adjustment): New field op.  Rename reduction
1193         to new_decl, new_arg_prefix to arg_prefix and remove remove_param
1194         and copy_param.
1195         (ipa_modify_formal_parameters): Remove last argument.
1196         (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
1197         ipa_get_adjustment_candidate): New prototypes.
1198         * tree-sra.c (turn_representatives_into_adjustments): Use operator
1199         enum.  Set arg_prefix.
1200         (get_adjustment_for_base): Use operator enum.
1201         (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
1202         ipa-prop.c.
1203         (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
1204         (ipa_sra_modify_function_body): Same.  No longer static.
1205         (sra_ipa_reset_debug_stmts): Use operator enum.
1206         (modify_function): Do not pass prefix argument.
1208 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1210         * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
1211         (ubsan_pass): Ignore clobber stmts.
1213         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
1214         * opts.c (common_handle_option): Add -fsanitize=return.
1215         * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
1216         or it into SANITIZE_UNDEFINED.
1218         * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
1219         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
1220         * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
1221         Don't instrument accesses to VAR_DECLs which are known to fit
1222         into their bounds and the vars are known to have shadow bytes
1223         indicating allowed access.
1224         (asan_dynamic_init_call): New function.
1225         (asan_add_global): If vnode->dynamically_initialized,
1226         set __has_dynamic_init to 1 instead of 0.
1227         (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
1228         * asan.h (asan_dynamic_init_call): New prototype.
1229         * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
1231 2013-11-22  Martin Jambor  <mjambor@suse.cz>
1233         PR rtl-optimization/10474
1234         * ira.c (interesting_dest_for_shprep_1): New function.
1235         (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
1236         also check parallels.
1238 2013-11-22  Jeff Law  <law@redhat.com>
1240         * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
1241         NULL for RHS, which we used to invalidate equivalences.
1242         (record_temporary_equivalences_from_phis): New bitmap arguments
1243         and a boolean indicating if we have passed a backedge.  If we
1244         have passed a backedge, then set the appropriate bit in the
1245         bitmaps for the SRC & DEST of PHIs creating equivalences.
1246         (invalidate_equivalences, dummy_simplify): New functions.
1247         (cond_arg_set_in_b): Remove.
1248         (record_temporary_equivalences_from_stmts_at_dest): New bitmap
1249         arguments and a boolean indicating if we have passed a backedge.
1250         If we have passed a backedge, then perform invalidations as needed.
1251         (thread_around_empty_blocks): If we have seen a backedge, then
1252         use the dummy simplify routine.
1253         (thread_through_normal_block): Likewise.  Pass bitmaps and
1254         backedge status to children.  Do not pessimize so much when
1255         traversing backedges in the CFG.
1256         (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
1257         If we have seen a backedge, then use the dummy simplify routine.
1258         Do not pessimize so much when traversing backedges.
1260 2013-11-22  Hans-Peter Nilsson  <hp@axis.com>
1262         * config/cris/cris.c (cris_atomic_align_for_mode): New function.
1263         (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1265 2013-11-22  Yuri Rumyantsev  <ysrumyan@gmail.com>
1267         * config/i386/i386.c(processor_alias_table): Enable PTA_AES,
1268         PTA_PCLMUL and PTA_RDRND for Silvermont.
1269         * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
1270         for Silvermont.
1272         * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
1274 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
1276         * hooks.h (hook_uint_mode_0): Add Prototype.
1277         * hooks.c (hook_uint_mode_0): New default function.
1278         * target.def (atomic_align_for_mode): New target hook.
1279         * tree.c (build_atomic_base): Add alignment override parameter.
1280         (build_common_tree_nodes): Use atomic alignment override.
1281         * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
1282         * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
1284 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
1286         * gimple.h: Remove all includes.
1287         (recalculate_side_effects): Move prototype to gimplify.h.
1288         * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
1289         * gengtype.c (open_base_files): Add gimple.h include list.
1290         * gimplify.h (recalculate_side_effects): Relocate prototype here.
1291         * gimple.c: Adjust include list.
1292         (recalculate_side_effects): Move to gimplify.c.
1293         * gimplify.c: Adjust include list.
1294         (recalculate_side_effects): Relocate from gimple.c.
1295         * alias.c: Add required include files removed from gimple.h.
1296         * asan.c: Likewise.
1297         * builtins.c: Likewise.
1298         * calls.c: Likewise.
1299         * cfgexpand.c: Likewise.
1300         * cfgloop.c: Likewise.
1301         * cfgloopmanip.c: Likewise.
1302         * cgraphbuild.c: Likewise.
1303         * cgraph.c: Likewise.
1304         * cgraphclones.c: Likewise.
1305         * cgraphunit.c: Likewise.
1306         * cilk-common.c: Likewise.
1307         * data-streamer.c: Likewise.
1308         * data-streamer-in.c: Likewise.
1309         * data-streamer-out.c: Likewise.
1310         * dse.c: Likewise.
1311         * dwarf2out.c: Likewise.
1312         * emit-rtl.c: Likewise.
1313         * except.c: Likewise.
1314         * expr.c: Likewise.
1315         * fold-const.c: Likewise.
1316         * function.c: Likewise.
1317         * gimple-builder.c: Likewise.
1318         * gimple-expr.c: Likewise.
1319         * gimple-fold.c: Likewise.
1320         * gimple-iterator.c: Likewise.
1321         * gimple-low.c: Likewise.
1322         * gimple-pretty-print.c: Likewise.
1323         * gimple-ssa-isolate-paths.c: Likewise.
1324         * gimple-ssa-strength-reduction.c: Likewise.
1325         * gimple-streamer-in.c: Likewise.
1326         * gimple-streamer-out.c: Likewise.
1327         * gimple-walk.c: Likewise.
1328         * gimplify-me.c: Likewise.
1329         * graphite-blocking.c: Likewise.
1330         * graphite.c: Likewise.
1331         * graphite-clast-to-gimple.c: Likewise.
1332         * graphite-dependences.c: Likewise.
1333         * graphite-interchange.c: Likewise.
1334         * graphite-optimize-isl.c: Likewise.
1335         * graphite-poly.c: Likewise.
1336         * graphite-scop-detection.c: Likewise.
1337         * graphite-sese-to-poly.c: Likewise.
1338         * internal-fn.c: Likewise.
1339         * ipa.c: Likewise.
1340         * ipa-cp.c: Likewise.
1341         * ipa-devirt.c: Likewise.
1342         * ipa-inline-analysis.c: Likewise.
1343         * ipa-inline.c: Likewise.
1344         * ipa-profile.c: Likewise.
1345         * ipa-prop.c: Likewise.
1346         * ipa-pure-const.c: Likewise.
1347         * ipa-reference.c: Likewise.
1348         * ipa-split.c: Likewise.
1349         * ipa-utils.c: Likewise.
1350         * langhooks.c: Likewise.
1351         * lto-cgraph.c: Likewise.
1352         * lto-compress.c: Likewise.
1353         * lto-opts.c: Likewise.
1354         * lto-section-in.c: Likewise.
1355         * lto-section-out.c: Likewise.
1356         * lto-streamer.c: Likewise.
1357         * lto-streamer-in.c: Likewise.
1358         * lto-streamer-out.c: Likewise.
1359         * omp-low.c: Likewise.
1360         * opts-global.c: Likewise.
1361         * passes.c: Likewise.
1362         * predict.c: Likewise.
1363         * profile.c: Likewise.
1364         * sese.c: Likewise.
1365         * stmt.c: Likewise.
1366         * stor-layout.c: Likewise.
1367         * symtab.c: Likewise.
1368         * targhooks.c: Likewise.
1369         * toplev.c: Likewise.
1370         * tracer.c: Likewise.
1371         * trans-mem.c: Likewise.
1372         * tree-affine.c: Likewise.
1373         * tree.c: Likewise.
1374         * tree-call-cdce.c: Likewise.
1375         * tree-cfg.c: Likewise.
1376         * tree-cfgcleanup.c: Likewise.
1377         * tree-chrec.c: Likewise.
1378         * tree-complex.c: Likewise.
1379         * tree-data-ref.c: Likewise.
1380         * tree-dfa.c: Likewise.
1381         * tree-eh.c: Likewise.
1382         * tree-emutls.c: Likewise.
1383         * tree-if-conv.c: Likewise.
1384         * tree-inline.c: Likewise.
1385         * tree-into-ssa.c: Likewise.
1386         * tree-loop-distribution.c: Likewise.
1387         * tree-nested.c: Likewise.
1388         * tree-nrv.c: Likewise.
1389         * tree-object-size.c: Likewise.
1390         * tree-outof-ssa.c: Likewise.
1391         * tree-parloops.c: Likewise.
1392         * tree-phinodes.c: Likewise.
1393         * tree-predcom.c: Likewise.
1394         * tree-pretty-print.c: Likewise.
1395         * tree-profile.c: Likewise.
1396         * tree-scalar-evolution.c: Likewise.
1397         * tree-sra.c: Likewise.
1398         * tree-ssa-address.c: Likewise.
1399         * tree-ssa-alias.c: Likewise.
1400         * tree-ssa.c: Likewise.
1401         * tree-ssa-ccp.c: Likewise.
1402         * tree-ssa-coalesce.c: Likewise.
1403         * tree-ssa-copy.c: Likewise.
1404         * tree-ssa-copyrename.c: Likewise.
1405         * tree-ssa-dce.c: Likewise.
1406         * tree-ssa-dom.c: Likewise.
1407         * tree-ssa-dse.c: Likewise.
1408         * tree-ssa-forwprop.c: Likewise.
1409         * tree-ssa-ifcombine.c: Likewise.
1410         * tree-ssa-live.c: Likewise.
1411         * tree-ssa-loop.c: Likewise.
1412         * tree-ssa-loop-ch.c: Likewise.
1413         * tree-ssa-loop-im.c: Likewise.
1414         * tree-ssa-loop-ivcanon.c: Likewise.
1415         * tree-ssa-loop-ivopts.c: Likewise.
1416         * tree-ssa-loop-manip.c: Likewise.
1417         * tree-ssa-loop-niter.c: Likewise.
1418         * tree-ssa-loop-prefetch.c: Likewise.
1419         * tree-ssa-loop-unswitch.c: Likewise.
1420         * tree-ssa-math-opts.c: Likewise.
1421         * tree-ssanames.c: Likewise.
1422         * tree-ssa-operands.c: Likewise.
1423         * tree-ssa-phiopt.c: Likewise.
1424         * tree-ssa-phiprop.c: Likewise.
1425         * tree-ssa-pre.c: Likewise.
1426         * tree-ssa-propagate.c: Likewise.
1427         * tree-ssa-reassoc.c: Likewise.
1428         * tree-ssa-sccvn.c: Likewise.
1429         * tree-ssa-sink.c: Likewise.
1430         * tree-ssa-strlen.c: Likewise.
1431         * tree-ssa-structalias.c: Likewise.
1432         * tree-ssa-tail-merge.c: Likewise.
1433         * tree-ssa-ter.c: Likewise.
1434         * tree-ssa-threadedge.c: Likewise.
1435         * tree-ssa-threadupdate.c: Likewise.
1436         * tree-ssa-uncprop.c: Likewise.
1437         * tree-ssa-uninit.c: Likewise.
1438         * tree-stdarg.c: Likewise.
1439         * tree-streamer.c: Likewise.
1440         * tree-streamer-in.c: Likewise.
1441         * tree-streamer-out.c: Likewise.
1442         * tree-switch-conversion.c: Likewise.
1443         * tree-tailcall.c: Likewise.
1444         * tree-vect-data-refs.c: Likewise.
1445         * tree-vect-generic.c: Likewise.
1446         * tree-vect-loop.c: Likewise.
1447         * tree-vect-loop-manip.c: Likewise.
1448         * tree-vectorizer.c: Likewise.
1449         * tree-vect-patterns.c: Likewise.
1450         * tree-vect-slp.c: Likewise.
1451         * tree-vect-stmts.c: Likewise.
1452         * tree-vrp.c: Likewise.
1453         * tsan.c: Likewise.
1454         * ubsan.c: Likewise.
1455         * value-prof.c: Likewise.
1456         * varpool.c: Likewise.
1457         * var-tracking.c: Likewise.
1458         * vtable-verify.c: Likewise.
1459         * config/darwin.c: Likewise.
1460         * config/aarch64/aarch64-builtins.c: Likewise.
1461         * config/aarch64/aarch64.c: Likewise.
1462         * config/alpha/alpha.c: Likewise.
1463         * config/i386/i386.c: Likewise.
1464         * config/i386/winnt.c: Likewise.
1465         * config/ia64/ia64.c: Likewise.
1466         * config/m32c/m32c.c: Likewise.
1467         * config/mep/mep.c: Likewise.
1468         * config/mips/mips.c: Likewise.
1469         * config/rs6000/rs6000.c: Likewise.
1470         * config/s390/s390.c: Likewise.
1471         * config/sh/sh.c: Likewise.
1472         * config/sparc/sparc.c: Likewise.
1473         * config/spu/spu.c: Likewise.
1474         * config/stormy16/stormy16.c: Likewise.
1475         * config/tilegx/tilegx.c: Likewise.
1476         * config/tilepro/tilepro.c: Likewise.
1477         * config/xtensa/xtensa.c: Likewise.
1479 2013-11-22  Richard Earnshaw  <rearnsha@arm.com>
1481         PR target/59216
1482         * arm.md (negdi_extendsidi): Fix invalid split.
1484 2013-11-22  Alex Velenko  <Alex.Velenko@arm.com>
1486         * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
1487         (vmov_n_f64): Likewise.
1488         (vmov_n_p8): Likewise.
1489         (vmov_n_p16): Likewise.
1490         (vmov_n_s8): Likewise.
1491         (vmov_n_s16): Likewise.
1492         (vmov_n_s32): Likewise.
1493         (vmov_n_s64): Likewise.
1494         (vmov_n_u8): Likewise.
1495         (vmov_n_u16): Likewise.
1496         (vmov_n_u32): Likewise.
1497         (vmov_n_u64): Likewise.
1498         (vmovq_n_f32): Likewise.
1499         (vmovq_n_f64): Likewise.
1500         (vmovq_n_p8): Likewise.
1501         (vmovq_n_p16): Likewise.
1502         (vmovq_n_s8): Likewise.
1503         (vmovq_n_s16): Likewise.
1504         (vmovq_n_s32): Likewise.
1505         (vmovq_n_s64): Likewise.
1506         (vmovq_n_u8): Likewise.
1507         (vmovq_n_u16): Likewise.
1508         (vmovq_n_u32): Likewise.
1509         (vmovq_n_u64): Likewise.
1511 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1513         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1514         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
1515         (reduc_<sur>plus_<mode>): Factorize V2DI into this.
1516         (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
1517         and also change to float UNSPEC.
1518         (reduc_maxmin_uns>_<mode>): Remove V2DI.
1519         * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
1520         vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
1521         result access for big-endian.
1522         (__LANE0): New macro used to fix up lane access of 'across-lanes'
1523         intrinsics for big-endian.
1524         * config/aarch64/iterators.md (VDQV): Add V2DI.
1525         (VDQV_S): New.
1526         (vp): New mode attribute.
1528 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1530         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1531         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
1532         big-endian.
1534 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1536         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
1537         for big-endian element order.
1538         (aarch64_simd_vec_setv2di): Likewise.
1539         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
1540         *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
1541         (vec_extract): Expand using aarch64_get_lane.
1542         * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
1544 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1546         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
1547         and stores to be ABI compliant.
1549 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1551         * input.h (input_line): Remove.
1552         (input_filename): Likewise.
1553         (in_system_header): Likewise.
1554         * tree.h (EXPR_LOC_OR_HERE): Remove.
1555         * config/bfin/bfin.c (output_file_start): Remove use of
1556         input_filename macro.
1557         * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
1558         * gimplify.c (internal_get_tmp_var): Likewise.
1559         EXPR_LOC_OR_HERE macro.
1560         (shortcut_cond_expr): Likewise.
1561         * tree-diagnostic.c (diagnostic_report_current_function): Remove
1562         use of input_filename macro.
1563         * tree.c (get_file_function_name): Likewise.
1565 2013-11-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
1567         * store-layout.c (place-field): Fix hwi test and accessor mismatch.
1569 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1571         * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
1572         (same sized) elements even if the type of the CONSTRUCTOR has
1573         vector mode and target is a REG.
1575 2013-11-22  Richard Biener  <rguenther@suse.de>
1577         Revert
1578         2013-11-21  Richard Biener  <rguenther@suse.de>
1580         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1581         nb_iterations_upper_bound by one.
1583 2013-11-22  H.J. Lu  <hongjiu.lu@intel.com>
1585         * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
1586         for Silvermont.
1588         * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
1589         core-avx-i, core-avx2 and slm.
1591 2013-11-22  Eric Botcazou  <ebotcazou@adacore.com>
1593         * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
1595 2013-11-22  Richard Sandiford  <rdsandiford@googlemail.com>
1597         * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
1598         (stzx_24_<mode>): Likewise mra_operand.
1600 2013-11-22  Jeff Law  <law@redhat.com>
1602         * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
1603         (thread_block_1): Do not cancel jump threads which go from
1604         inside a loop, through the header, then back inside the loop.
1605         (bb_ends_with_multiway_branch): New function.
1606         (thread_through_all_blocks): Handle threading cases which start
1607         in a loop through the loop header to a point in the loop.
1609         * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
1610         jump thread path properly.
1612 2013-11-22  Trevor Saunders  <tsaunders@mozilla.com>
1614         * vec.h (auto_vec): New class.
1615         * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
1616         function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
1617         ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
1618         tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
1619         tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
1620         tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1621         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
1622         tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
1623         appropriate instead of vec for local variables.
1625 2013-11-21  Teresa Johnson  <tejohnson@google.com>
1627         PR target/59233
1628         * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
1629         not understood by old_insns_match_p.
1631 2013-11-21  Bill Schmidt  <wschmidt@vnet.ibm.com>
1633         * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
1634         little endian change.
1635         (vec_pack_sfix_trunc_v2df): Likewise.
1636         (vec_pack_ufix_trunc_v2df): Likewise.
1637         * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
1638         double checking of endianness.
1640 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1642         * tree-vect-generic.c (optimize_vector_constructor): New function.
1643         (expand_vector_operations_1): Call it.
1645 2013-11-21  Uros Bizjak  <ubizjak@gmail.com>
1647         * config/i386/i386.c (ix86_expand_special_args_builtin): Use
1648         ix86_zero_extend_to_Pmode where appropriate.
1649         (ix86_expand_builtin): Ditto.
1651 2013-11-21  Cary Coutant  <ccoutant@google.com>
1653         * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
1654         (add_linkage_name): Don't add linkage name for -g1.
1655         (decls_for_scope): Process subblocks for -g1.
1656         (dwarf2out_source_line): Output line tables for -g1.
1657         (dwarf2out_finish): Likewise.
1658         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
1659         unused scopes for -g1.
1660         * opts.c (common_handle_option): Handle -g same as -g2.
1661         * doc/invoke.texi: Update description for -g1.
1663 2013-11-21  Peter Bergner  <bergner@vnet.ibm.com>
1665         * doc/extend.texi: Document htm builtins.
1667 2013-11-21  Jeff Law  <law@redhat.com>
1669         PR tree-optimization/59221
1670         * tree-ssa-threadedge.c (thread_across_edge): Properly manage
1671         temporary equivalences when threading through joiner blocks.
1673 2013-11-21  Joseph Myers  <joseph@codesourcery.com>
1675         PR rtl-optimization/55950
1676         * real.c (real_sqrt): Remove function.
1677         * real.h (real_sqrt): Remove prototype.
1678         * simplify-rtx.c (simplify_const_unary_operation): Do not fold
1679         SQRT using real_sqrt.
1681 2013-11-21  Richard Biener  <rguenther@suse.de>
1683         PR tree-optimization/59058
1684         * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
1685         * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
1686         * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
1687         (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
1688         (NITERS_KNOWN_P): Fold into ...
1689         (LOOP_VINFO_NITERS_KNOWN_P): ... this.
1690         (LOOP_VINFO_PEELING_FOR_NITER): Add.
1691         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
1692         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1693         (vect_do_peeling_for_alignment): Re-use precomputed niter
1694         instead of re-emitting it.
1695         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1696         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1697         * tree-vect-loop.c (vect_get_loop_niters): Use
1698         number_of_latch_executions.
1699         (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
1700         (vect_analyze_loop_form): Simplify.
1701         (vect_analyze_loop_operations): Move epilogue peeling code ...
1702         (vect_analyze_loop_2): ... here and adjust it to compute
1703         LOOP_VINFO_PEELING_FOR_NITER.
1704         (vect_estimate_min_profitable_iters): Use
1705         LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1706         (vect_build_loop_niters): Emit on the preheader.
1707         (vect_generate_tmps_on_preheader): Likewise.
1708         (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
1709         of recomputing it.  Adjust.
1711 2013-11-21  Richard Biener  <rguenther@suse.de>
1713         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
1714         LOC_LINE): Remove wrappers and fix all users.
1715         (struct _loop_vec_info): Remove loop_line_number member.
1716         (LOOP_VINFO_LOC): Remove.
1717         * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
1718         tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
1719         and LOC_LINE.
1721 2013-11-21  Richard Biener  <rguenther@suse.de>
1723         * tree-ssa-forwprop.c (simplify_vce): New function.
1724         (ssa_forward_propagate_and_combine): Call it.
1726 2013-11-21  Richard Biener  <rguenther@suse.de>
1728         * tree-vect-loop-manip.c (vect_build_loop_niters,
1729         vect_generate_tmps_on_preheader): Move ...
1730         * tree-vect-loop.c (vect_build_loop_niters,
1731         vect_generate_tmps_on_preheader): ... here and simplify.
1732         (vect_transform_loop): Call them here and pass down results
1733         to consumers.
1734         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
1735         Get niter variables from caller.
1736         (vect_do_peeling_for_alignment): Likewise.
1737         * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
1738         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
1739         Adjust prototypes.
1741 2013-11-21  Richard Biener  <rguenther@suse.de>
1743         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1744         nb_iterations_upper_bound by one.
1746 2013-11-21  Richard Biener  <rguenther@suse.de>
1748         PR tree-optimization/59058
1749         * tree-loop-distribution.c (struct partition_s): Add plus_one member.
1750         (build_size_arg_loc): Apply niter adjustment here.
1751         (generate_memset_builtin): Adjust.
1752         (generate_memcpy_builtin): Likewise.
1753         (classify_partition): Do not use number_of_exit_cond_executions
1754         but record whether niter needs to be adjusted.
1756 2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
1758         * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
1759         could throw.
1761 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
1763         PR target/53976
1764         * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
1765         * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
1766         * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
1767         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
1768         sh_optimize_sett_clrt pass.o to extra_objs.
1770 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
1772         * cfg.c (dump_edge_info): Remove redundant comment.
1773         * cfgcleanup.c (outgoing_edges_match): Reword reference to
1774         EXIT_BLOCK_PTR in comment.
1775         (try_optimize_cfg): Likewise.
1776         * cfgrtl.c (last_bb_in_partition): Likewise.
1777         * cgraph.c (cgraph_node_cannot_return): Likewise.
1778         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1779         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
1780         * ipa-split.c (consider_split): Likewise.
1781         * profile.c (find_spanning_tree): Likewise.
1782         * sched-int.h (common_sched_info_def.add_block): Likewise.
1783         * dominance.c (calc_dfs_tree_nonrec): Reword references in
1784         comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
1785         * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
1786         in comments to now removed ENTRY_BLOCK_PTR macro.
1787         (tree_forwarder_block_p): Reword reference in comment to
1788         EXIT_BLOCK_PTR.
1789         * tree-inline.c (copy_cfg_body): Reword references in comments to
1790         now removed ENTRY_BLOCK_PTR macro.
1791         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1792         * tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
1793         a comma to the comment to clarify the meaning.
1795 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
1797         * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
1798         Move to gimplify.c.
1799         (free_gimplify_stack): Add prototype.
1800         * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
1801         (struct gimplify_ctx): Relocate here.
1802         (gimplify_ctxp): Make static.
1803         (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a
1804         list of struct gimplify_ctx.
1805         (push_gimplify_context): Add default parameters and allocate a struct
1806         from the pool.
1807         (pop_gimplify_context): Free a struct back to the pool.
1808         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1809         gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
1810         use a local 'struct gimplify_ctx'.
1811         * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
1812         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
1813         Likewise.
1814         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1815         lower_omp_ordered, lower_omp_critical, lower_omp_for,
1816         create_task_copyfn, lower_omp_taskreg, lower_omp_target,
1817         lower_omp_teams, execute_lower_omp): Likewise.
1818         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
1819         * tree-inline.c (optimize_inline_calls): Likewise.
1821 2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1823         * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
1824         (vsx_extract_<mode>): Likewise.
1825         (*vsx_extract_<mode>_one_le): New LE variant on
1826         *vsx_extract_<mode>_zero.
1827         (vsx_extract_v4sf): Adjust for little endian.
1829 2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>
1831         PR rtl-optimization/59133
1832         * lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
1833         new pseudos.
1834         (lra_create_new_reg_with_unique_value): Pass new argument value.
1835         (lra_emit_add, lra_emit_move): Ditto.
1836         * lra-constraints.c (in_class_p): Add check for move for a new insn.
1837         (change_class): Rename to lra_change_class.  Move to lra-int.h.
1838         (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
1839         change_class.
1840         (process_addr_reg, process_addr): Ditto.
1841         (curr_insn_transform): Ditto.  Add check on old pseudo for
1842         optional reload.
1843         * lra-int.h (lra_get_regno_hard_regno): Move below.
1844         (lra_change_class): Renamed change_class from lra.c.
1846 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
1848         * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
1849         the children of a NULL pointer.
1851 2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
1853         * lra.c (lra): Set lra_in_progress before check_rtl call.
1854         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
1855         adding clobber regs when LRA is running.
1857 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
1859         * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
1860         restriction for ISA_MIPS32R2.
1861         (ISA_HAS_LXC1_SXC1): New macro.
1862         (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
1863         (ISA_HAS_NMADD4_NMSUB4): Likewise.
1864         (ISA_HAS_FP_RECIP_RSQRT): Likewise.
1865         (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
1866         * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
1867         ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
1868         (*<ANYF:storex>_<P:mode>): Likewise.
1870 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
1872         * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
1873         * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
1874         ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
1875         * config/mips/mips.md (recip_condition): Remove mode attribute.
1876         (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
1877         <recip_condition>.
1878         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
1880 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1882         PR target/59207
1883         * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
1884         Make sure neg2_ovf is set before being used.
1886 2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
1888         * plugin.def: Add comment about register_callback and
1889         invoke_plugin_callbacks_full.
1891         * plugin.c (register_callback, invoke_plugin_callbacks_full):
1892         Handle PLUGIN_INCLUDE_FILE event.
1894 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1896         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
1897         allow subregs of TDmode in FPRs of smaller size in little-endian.
1898         (rs6000_split_multireg_move): When splitting an access to TDmode
1899         in FPRs, do not use simplify_gen_subreg.
1901 2013-11-20  Joseph Myers  <joseph@codesourcery.com>
1903         PR middle-end/21718
1904         * real.c: Remove comment about decimal string conversion and
1905         rounding errors.
1906         (real_from_string): Use MPFR to convert nonzero decimal constant
1907         to REAL_VALUE_TYPE.
1909 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1911         * config/arm/arm.c (arm_dwarf_register_span): Take into account the
1912         endianness of the D registers for the legacy encodings.
1914 2013-11-20  Richard Earnshaw  <rearnsha@arm.com>
1916         PR rtl-optimization/54300
1917         * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
1918         outputs in a single-set are killed from the value chains.
1920 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
1922         * cgraph.h (varpool_node): Add need_bounds_init field.
1923         * lto-cgraph.c (lto_output_varpool_node): Output
1924         need_bounds_init value.
1925         (input_varpool_node): Read need_bounds_init value.
1926         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
1928 2013-11-20  Jan Hubicka  <jh@suse.cz>
1930         * opts.c (finish_options): Imply -ffat-lto-objects with
1931         -fno-use-linker-plugin.
1932         * common.opt (fuse-linker-plugin): Add var.
1934 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
1936         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
1937         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
1938         (gen_type_die_with_usage): Skip pointer bounds.
1939         (dwarf2out_global_decl): Likewise.
1941 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
1943         * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
1944         from all insns.
1946 2013-11-20  Yuri Rumyantsev  <ysrumyan@gmail.com>
1948         PR target/57756
1949         * config/i386/i386.c (ix86_option_override_internal): Add missed
1950         argument prefix for 'ix86_fpmath'.
1951         * config/i386/ssemath.h: Add missed definition of
1952         TARGET_FPMATH_DEFAULT_P macros.
1954 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1955             Mike Stump  <mikestump@comcast.net>
1956             Richard Sandiford  <rdsandiford@googlemail.com>
1958         * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
1959         instead of TREE_INT_CST_LOW, in cases where there is a protecting
1960         tree_fits_shwi_p or tree_fits_uhwi_p.
1961         * builtins.c (fold_builtin_powi): Likewise.
1962         * config/epiphany/epiphany.c (epiphany_special_round_type_align):
1963         Likewise.
1964         * dbxout.c (dbxout_symbol): Likewise.
1965         * expr.c (expand_expr_real_1): Likewise.
1966         * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
1967         (fold_binary_loc): Likewise.
1968         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
1969         * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
1970         * omp-low.c (lower_omp_for_lastprivate): Likewise.
1971         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1972         * stor-layout.c (compute_record_mode): Likewise.
1973         * tree-cfg.c (verify_expr): Likewise.
1974         * tree-dfa.c (get_ref_base_and_extent): Likewise.
1975         * tree-pretty-print.c (dump_array_domain): Likewise.
1976         * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
1977         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
1978         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
1979         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
1980         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
1981         * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
1982         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1983         (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
1984         (vn_reference_lookup_3, simplify_binary_expression): Likewise.
1985         * tree-ssa-structalias.c (bitpos_of_field): Likewise.
1986         (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
1987         (create_variable_info_for_1): Likewise.
1988         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1989         (vect_verify_datarefs_alignment): Likewise.
1990         (vect_analyze_data_ref_accesses): Likewise.
1991         (vect_prune_runtime_alias_test_list): Likewise.
1992         * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
1994 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
1996         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
1997         overflow.  Use tree_to_shwi.
1999 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
2001         * fold-const.c (fold_binary_loc): Use unsigned rather than signed
2002         HOST_WIDE_INTs when folding (x >> c) << c.
2004 2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2005             Dominik Vogt  <vogt@linux.vnet.ibm.com>
2007         * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
2008         int comparisons with an out of range condition code.
2009         (s390_optimize_nonescaping_tx): Skip empty BBs.
2010         Generate the new tbegin RTX when removing the FPR clobbers (with
2011         two SETs).
2012         (s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
2013         result before doing the retry calculations.
2014         (s390_init_builtins): Make tbegin "returns_twice" and tabort
2015         "noreturn".
2016         * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
2017         the TDB setting part of an tbegin.
2018         ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
2019         ("tx_assist"): Set unused argument to an immediate zero instead of
2020         loading zero into a GPR and pass it as argument.
2021         * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
2022         Remove inline and related attributes.
2023         (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
2024         (__TM_is_illegal, __TM_is_footprint_exceeded)
2025         (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
2027 2013-11-20  Richard Biener  <rguenther@suse.de>
2029         PR lto/59035
2030         * lto-opts.c (lto_write_options): Write defaults only if
2031         they were not explicitely specified.  Also write
2032         -ffp-contract default.
2033         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
2034         conservatively.
2035         (run_gcc): Pass through -ffp-contract.
2037 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2039         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
2041 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
2043         * gcc/config/aarch64/aarch64-builtins.c
2044         (aarch64_simd_itype): Remove.
2045         (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
2046         (VAR1): Use qualifiers.
2047         (aarch64_build_scalar_type): New.
2048         (aarch64_build_vector_type): Likewise.
2049         (aarch64_build_type): Likewise.
2050         (aarch64_init_simd_builtins): Refactor, remove special cases,
2051         consolidate main loop.
2052         (aarch64_simd_expand_args): Likewise.
2054 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
2056         PR c/53001
2057         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
2059 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
2061         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
2063 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2065         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
2066         to "vec<>" instances.
2067         (build_pretty_printer): Register the vec<>* prettyprinter.
2069 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2071         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
2072         (GdbSubprinter.handles_type): New.
2073         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
2074         (GdbSubprinterRegex): New subclass of GdbSubprinter.
2075         (GdbPrettyPrinters.add_printer): Remove in favor of...
2076         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
2077         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
2078         (GdbPrettyPrinters.__call__): Update search for subprinter
2079         to use handles_type method.
2080         (build_pretty_printer): Update registration of subprinters to
2081         use the new API above, supporting multiple spelling of each type,
2082         and allowing for future regex-based subprinters.
2084 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2086         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
2087         V16QI vector splat case for little endian.
2089 2013-11-19  Jeff Law  <law@redhat.com>
2091         * tree-ssa-threadedge.c (thread_across_edge): After threading
2092         through a joiner, allow threading a normal block requiring duplication.
2094         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
2095         jump threading requests that would muck up the loop structures.
2097         * tree-ssa-threadupdate.c: Fix trailing whitespace.
2098         * tree-ssa-threadupdate.h: Likewise.
2100 2013-11-19  Mike Stump  <mikestump@comcast.net>
2102         * gdbinit.in: Add pmz to print out mpz values.
2104 2013-11-20  Jan Hubicka  <jh@suse.cz>
2106         * common.opt (ffat-lto-objects): Disable by default.
2107         * doc/invoke.texi (fat-lto-objects): Update documentation.
2108         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
2110 2013-11-19  Martin Jambor  <mjambor@suse.cz>
2112         PR rtl-optimization/59099
2113         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
2114         here.
2115         (ira): Move init_reg_equiv and call to
2116         split_live_ranges_for_shrink_wrap up, remove analyses around call
2117         to find_moveable_pseudos.
2119 2013-11-20  Alan Modra  <amodra@gmail.com>
2121         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
2122         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
2123         to strict alignment on older processors when little-endian.
2124         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
2125         for ELFv2.
2127 2013-11-19  Teresa Johnson  <tejohnson@google.com>
2129         * common/config/i386/i386-common.c: Enable
2130         -freorder-blocks-and-partition at -O2 and up for x86.
2131         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
2132         * opts.c (finish_options): Only warn if
2133         -freorder-blocks-and-partition was set on command line.
2135 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
2137         * final.c (final_scan_insn): Emit a label for the split
2138         cold function part.  Label name is formed by suffixing
2139         the original function name with "cold".
2141 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2143         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
2144         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
2145         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
2146         (EXIT_BLOCK_PTR_FOR_FN): ...this.
2147         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
2148         cfun be explicit.
2149         (EXIT_BLOCK_PTR): Likewise.
2150         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
2151         (FOR_ALL_BB_FN): Update for renaming of
2152         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
2154         * cfg.c (init_flow): Likewise.
2155         (check_bb_profile): Likewise.
2156         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
2157         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
2158         * cfghooks.c (account_profile_record): Likewise.
2159         * cfgloop.c (init_loops_structure): Likewise.
2160         * cgraphbuild.c (record_eh_tables): Likewise.
2161         (compute_call_stmt_bb_frequency): Likewise.
2162         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
2163         * lto-streamer-in.c (input_cfg): Likewise.
2164         * predict.c (maybe_hot_frequency_p): Likewise.
2165         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2166         * tree-inline.c (initialize_cfun): Likewise.
2167         (copy_cfg_body): Likewise.
2168         (copy_body): Likewise.
2169         (tree_function_versioning): Likewise.
2171         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
2172         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2173         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
2174         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
2175         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2176         (connect_traces): Likewise.
2177         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2178         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
2179         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
2180         macro.
2181         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
2182         EXIT_BLOCK_PTR.
2183         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
2184         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
2185         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
2186         (rotate_loop): Likewise.
2187         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
2188         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2189         EXIT_BLOCK_PTR.
2190         (alloc_aux_for_edges): Likewise.
2191         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
2192         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2193         EXIT_BLOCK_PTR.
2194         (compact_blocks): Likewise.
2195         (clear_edges): Likewise.
2196         * cfganal.c (single_pred_before_succ_order): Remove usage of
2197         ENTRY_BLOCK_PTR macro.
2198         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2199         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2200         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
2201         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
2202         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2203         EXIT_BLOCK_PTR.
2204         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
2205         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
2206         EXIT_BLOCK_PTR.
2207         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
2208         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2209         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2210         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2211         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2212         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
2213         EXIT_BLOCK_PTR.
2214         (print_edge_list): Likewise.
2215         (create_edge_list): Likewise.
2216         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2217         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2218         EXIT_BLOCK_PTR.
2219         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
2220         macro.
2221         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
2222         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2223         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
2224         (try_optimize_cfg): Likewise.
2225         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
2226         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
2227         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
2228         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
2229         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
2230         (try_forward_edges): Likewise.
2231         (try_simplify_condjump): Likewise.
2232         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
2233         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2234         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
2235         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
2236         EXIT_BLOCK_PTR.
2237         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
2238         (expand_gimple_tailcall): Likewise.
2239         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
2240         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2241         (tidy_fallthru_edges): Likewise.
2242         (verify_flow_info): Likewise.
2243         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
2244         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
2245         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
2246         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
2247         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
2248         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
2249         (get_loop_body_in_dom_order): Likewise.
2250         (get_loop_body): Likewise.
2251         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
2252         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2253         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
2254         macro.
2255         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
2256         (fix_bb_placement): Likewise.
2257         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
2258         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2259         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
2260         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
2261         EXIT_BLOCK_PTR.
2262         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2263         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
2264         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2265         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2266         macro.
2267         (fixup_fallthru_exit_predecessor): Remove uses of macros:
2268         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2269         (fixup_reorder_chain): Likewise.
2270         (relink_block_chain): Likewise.
2271         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
2272         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2273         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2274         (force_one_exit_fallthru): Likewise.
2275         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
2276         EXIT_BLOCK_PTR.
2277         (rtl_verify_edges): Likewise.
2278         (commit_edge_insertions): Likewise.
2279         (commit_one_edge_insertion): Likewise.
2280         (rtl_split_edge): Likewise.
2281         (force_nonfallthru_and_redirect): Likewise.
2282         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
2283         (skip_insns_after_block): Likewise.
2284         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
2285         EXIT_BLOCK_PTR.
2286         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
2287         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
2288         EXIT_BLOCK_PTR.
2289         (contains_no_active_insn_p): Likewise.
2290         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2291         (entry_of_function): Likewise.
2292         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
2293         (fixup_new_cold_bb): Likewise.
2294         (patch_jump_insn): Likewise.
2295         (try_redirect_by_replacing_jump): Likewise.
2296         (block_label): Likewise.
2297         (could_fall_through): Likewise.
2298         (can_fallthru): Likewise.
2299         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
2300         ENTRY_BLOCK_PTR macro.
2301         (rebuild_cgraph_edges): Likewise.
2302         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
2303         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2304         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
2305         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
2306         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
2307         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
2308         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
2309         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
2310         macro.
2311         (reg_nonzero_bits_for_combine): Likewise.
2312         (set_nonzero_bits_and_sign_copies): Likewise.
2313         (combine_instructions): Likewise.
2314         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
2315         EXIT_BLOCK_PTR.
2316         (bypass_conditional_jumps): Likewise.
2317         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
2318         (find_implicit_sets): Likewise.
2319         (cprop_jump): Likewise.
2320         * cse.c (cse_cc_succs): Likewise.
2321         (cse_find_path): Likewise.
2322         * df-problems.c (df_lr_confluence_0): Likewise.
2323         * df-scan.c (df_entry_block_defs_collect): Remove usage of
2324         ENTRY_BLOCK_PTR macro.
2325         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
2326         * dominance.c (iterate_fix_dominators): Remove usage of
2327         ENTRY_BLOCK_PTR macro.
2328         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2329         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
2330         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
2331         EXIT_BLOCK_PTR.
2332         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
2333         macro.
2334         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
2335         EXIT_BLOCK_PTR.
2336         * domwalk.c (cmp_bb_postorder): Likewise.
2337         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
2338         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
2339         macro.
2340         (sjlj_emit_function_enter): Likewise.
2341         * final.c (compute_alignments): Likewise.
2342         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
2343         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2344         (reposition_prologue_and_epilogue_notes): Remove usage of
2345         EXIT_BLOCK_PTR macro.
2346         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
2347         EXIT_BLOCK_PTR.
2348         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
2349         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
2350         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
2351         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
2352         (compute_code_hoist_vbeinout): Likewise.
2353         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2354         (pre_expr_reaches_here_p_work): Likewise.
2355         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
2356         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
2357         EXIT_BLOCK_PTR.
2358         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
2359         ENTRY_BLOCK_PTR macro.
2360         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
2361         macro.
2362         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
2363         ENTRY_BLOCK_PTR macro.
2364         * graphite-scop-detection.c (build_scops): Likewise.
2365         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
2366         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
2367         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
2368         macro.
2369         (unlink_bb_notes): Likewise.
2370         (create_check_block_twin): Likewise.
2371         (init_before_recovery): Likewise.
2372         (sched_extend_bb): Likewise.
2373         (priority): Likewise.
2374         * hw-doloop.c (reorder_loops): Likewise.
2375         (discover_loop): Likewise.
2376         * ifcvt.c (dead_or_predicable): Remove uses of macros:
2377         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2378         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
2379         (block_has_only_trap): Likewise.
2380         (cond_exec_find_if_block): Likewise.
2381         (merge_if_block): Likewise.
2382         * ipa-inline-analysis.c (param_change_prob): Remove usage of
2383         ENTRY_BLOCK_PTR macro.
2384         (record_modified): Likewise.
2385         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
2386         EXIT_BLOCK_PTR macro.
2387         (local_pure_const): Likewise.
2388         * ipa-split.c (split_function): Remove uses of macros:
2389         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2390         (find_split_points): Likewise.
2391         (consider_split): Likewise.
2392         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
2393         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2394         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
2395         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
2396         * ira-emit.c (entered_from_non_parent_p): Remove usage of
2397         ENTRY_BLOCK_PTR macro.
2398         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
2399         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
2400         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
2401         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2402         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
2403         macro.
2404         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
2405         EXIT_BLOCK_PTR.
2406         (compute_farthest): Likewise.
2407         (compute_available): Likewise.
2408         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
2409         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
2410         EXIT_BLOCK_PTR.
2411         (compute_earliest): Likewise.
2412         (compute_antinout_edge): Likewise.
2413         * loop-iv.c (simplify_using_initial_values): Remove usage of
2414         ENTRY_BLOCK_PTR macro.
2415         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
2416         macro.
2417         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
2418         macro.
2419         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
2420         macro.
2421         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
2422         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2423         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
2424         macro.
2425         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
2426         macro.
2427         * lto-streamer-out.c (output_cfg): Likewise.
2428         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
2429         EXIT_BLOCK_PTR.
2430         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
2431         * mode-switching.c (optimize_mode_switching): Likewise.
2432         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
2433         * modulo-sched.c (rest_of_handle_sms): Likewise.
2434         (canon_loop): Likewise.
2435         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
2436         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
2437         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2438         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
2439         macro.
2440         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
2441         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
2442         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
2443         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
2444         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
2445         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
2446         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
2447         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2448         (gimple_predict_edge): Likewise.
2449         (probably_never_executed): Likewise.
2450         * profile.c (find_spanning_tree): Remove uses of macros:
2451         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2452         (branch_prob): Likewise.
2453         (compute_branch_probabilities): Likewise.
2454         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
2455         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
2456         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
2457         (set_bb_counts): Likewise.
2458         (correct_negative_edge_counts): Likewise.
2459         (get_exec_counts): Likewise.
2460         (instrument_values): Likewise.
2461         (instrument_edges): Likewise.
2462         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
2463         EXIT_BLOCK_PTR.
2464         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2465         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
2466         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2467         (reg_to_stack): Likewise.
2468         * regs.h (REG_N_SETS): Likewise.
2469         * reload.c (find_dummy_reload): Likewise.
2470         (combine_reloads): Likewise.
2471         (push_reload): Likewise.
2472         * reload1.c (has_nonexceptional_receiver): Remove usage of
2473         EXIT_BLOCK_PTR macro.
2474         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
2475         macro.
2476         (find_basic_block): Likewise.
2477         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2478         (schedule_ebbs): Likewise.
2479         * sched-int.h (sel_sched_p): Likewise.
2480         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
2481         macro.
2482         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2483         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
2484         EXIT_BLOCK_PTR.
2485         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
2486         (extend_rgns): Likewise.
2487         (find_single_block_region): Likewise.
2488         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
2489         ENTRY_BLOCK_PTR macro.
2490         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
2491         (sel_create_recovery_block): Likewise.
2492         (bb_ends_ebb_p): Likewise.
2493         (sel_bb_end): Likewise.
2494         (sel_bb_head): Likewise.
2495         (free_lv_sets): Likewise.
2496         (init_lv_sets): Likewise.
2497         (tidy_control_flow): Likewise.
2498         (maybe_tidy_empty_bb): Likewise.
2499         * sel-sched-ir.h (_succ_iter_cond): Likewise.
2500         (_succ_iter_start): Likewise.
2501         (sel_bb_empty_or_nop_p): Likewise.
2502         (get_loop_exit_edges_unique_dests): Likewise.
2503         (inner_loop_header_p): Likewise.
2504         * sel-sched.c (create_block_for_bookkeeping): Likewise.
2505         (find_block_for_bookkeeping): Likewise.
2506         * store-motion.c (remove_reachable_equiv_notes): Likewise.
2507         (insert_store): Likewise.
2508         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
2509         ENTRY_BLOCK_PTR macro.
2510         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
2511         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
2512         (gate_tm_init): Likewise.
2513         (tm_region_init): Likewise.
2514         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
2515         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2516         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
2517         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2518         EXIT_BLOCK_PTR.
2519         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2520         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
2521         EXIT_BLOCK_PTR.
2522         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2523         macro.
2524         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
2525         EXIT_BLOCK_PTR.
2526         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
2527         macro.
2528         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2529         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2530         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2531         (build_gimple_cfg): Likewise.
2532         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2533         (gimple_can_merge_blocks_p): Likewise.
2534         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
2535         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2536         * tree-complex.c (update_parameter_components): Remove usage of
2537         ENTRY_BLOCK_PTR macro.
2538         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
2539         EXIT_BLOCK_PTR macro.
2540         * tree-inline.c (tree_function_versioning): Remove uses of macros:
2541         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2542         (delete_unreachable_blocks_update_callgraph): Likewise.
2543         (initialize_cfun): Likewise.
2544         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
2545         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
2546         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
2547         * tree-into-ssa.c (update_ssa): Likewise.
2548         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
2549         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
2550         (rewrite_into_ssa): Likewise.
2551         (rewrite_debug_stmt_uses): Likewise.
2552         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
2553         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2554         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
2555         ENTRY_BLOCK_PTR macro.
2556         * tree-scalar-evolution.h (block_before_loop): Likewise.
2557         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
2558         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
2559         EXIT_BLOCK_PTR.
2560         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
2561         macro.
2562         (propagate_dereference_distances): Remove uses of macros:
2563         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2564         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
2565         macro.
2566         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
2567         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
2568         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2569         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
2570         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2571         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
2572         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
2573         (mark_control_dependent_edges_necessary): Remove uses of macros:
2574         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2575         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
2576         ENTRY_BLOCK_PTR macro.
2577         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
2578         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
2579         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2580         (calculate_live_on_exit): Likewise.
2581         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2582         (loe_visit_block): Likewise.
2583         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
2584         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2585         (live_on_entry): Likewise.
2586         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
2587         EXIT_BLOCK_PTR macro.
2588         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
2589         ENTRY_BLOCK_PTR macro.
2590         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
2591         (bound_difference): Likewise.
2592         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
2593         of EXIT_BLOCK_PTR macro.
2594         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
2595         of ENTRY_BLOCK_PTR macro.
2596         * tree-ssa-math-opts.c (register_division_in): Likewise.
2597         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
2598         * tree-ssa-pre.c (compute_avail): Likewise.
2599         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
2600         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
2601         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2602         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
2603         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
2604         EXIT_BLOCK_PTR.
2605         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
2606         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
2607         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2608         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
2609         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2610         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
2611         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2612         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
2613         (find_pdom): Likewise.
2614         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2615         * tree-stdarg.c (reachable_at_most_once): Likewise.
2616         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
2617         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2618         (eliminate_tail_call): Likewise.
2619         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
2620         macro.
2621         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
2622         * var-tracking.c (vt_initialize): Remove uses of macros:
2623         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2624         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
2625         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
2626         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
2627         EXIT_BLOCK_PTR.
2628         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
2629         macro.
2630         * config/bfin/bfin.c (hwloop_optimize): Likewise.
2631         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
2632         of EXIT_BLOCK_PTR macro.
2633         * config/arm/arm.c (require_pic_register): Remove usage of
2634         ENTRY_BLOCK_PTR macro.
2635         (arm_r3_live_at_start_p): Likewise.
2636         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
2637         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2638         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
2639         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
2640         ENTRY_BLOCK_PTR macro.
2641         * config/i386/i386.c (ix86_count_insn): Likewise.
2642         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
2643         (ix86_pad_short_function): Likewise.
2644         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2645         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
2646         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
2647         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
2648         (ix86_expand_epilogue): Likewise.
2649         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
2650         (ia64_expand_prologue): Likewise.
2652 2013-11-19  Catherine Moore  <clm@codesourcery.com>
2654         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
2655         * config/mips/mips.opt (mfix-rm7000): New option.
2656         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
2657         * config/mips/mips.c (mips_reorg_process_insns): Disable
2658         noreorder for TARGET_FIX_RM7000.
2660 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
2662         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
2664 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2666         * config/arm/arm.c (arm_new_rtx_costs):
2667         Handle narrow mode add-shifts properly.
2668         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
2669         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
2670         Declare extern.
2672 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
2674         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
2676 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2678         * config/rs6000/vector.md ("mov<mode>"): Do not call
2679         rs6000_emit_le_vsx_move to move into or out of GPRs.
2680         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
2681         source and destination are not GPR hard regs.
2683 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2685         * basic-block.h (n_edges_for_function): Rename macro to...
2686         (n_edges_for_fn): ...this.
2687         (n_edges): Eliminate macro as work towards making uses of
2688         cfun be explicit.
2690         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
2691         to "n_edges_for_fn".
2693         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
2694         (clear_edges): Likewise.
2695         (free_edge): Likewise.
2696         * cfghooks.c (dump_flow_info): Likewise.
2697         * cprop.c (is_too_expensive): Likewise.
2698         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
2699         * gcse.c (is_too_expensive): Likewise.
2700         (prune_insertions_deletions): Likewise.
2701         * mcf.c (create_fixup_graph): Likewise.
2702         * sched-rgn.c (haifa_find_rgns): Likewise.
2703         * tree-cfg.c (gimple_dump_cfg): Likewise.
2704         * var-tracking.c (variable_tracking_main_1): Likewise.
2706 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2708         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
2709         length lines.
2711 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2713         * config/aarch64/aarch64.md
2714         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
2716 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2718         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
2720 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
2722         * varasm.c (align_variable): Give error instead of warning for
2723         unsupported alignment.
2724         (assemble_noswitch_variable): Likewise.
2726 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
2728         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
2729         cb_file_change.
2731 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
2733         * loop-doloop.c (doloop_optimize_loops): Remove unused
2734         loop iterator argument from FOR_EACH_LOOP.
2736 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2738         Convert gimple types from a union to C++ inheritance.
2739         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
2740         * coretypes.h (union gimple_statement_d): Remove declaration.
2741         (gimple): Convert from being a "union gimple_statement_d *"
2742         to a "struct gimple_statement_base *".
2743         (const_gimple): Likewise (with "const").
2744         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
2745         (ggc_alloc_cleared_gimple_statement_stat): ...this.
2746         * gimple-pretty-print.c (debug): Change parameter from a
2747         "gimple_statement_d &" to a "gimple_statement_base &".
2748         (debug): Change parameter from a "gimple_statement_d *" to
2749         a "gimple_statement_base *".
2750         * gimple-pretty-print.h (debug): Update declarations as above.
2751         * gimple.c (gimple_alloc_stat): Update for renaming of
2752         ggc_alloc_cleared_gimple_statement_d_stat to
2753         ggc_alloc_cleared_gimple_statement_stat.
2754         * gimple.h: Include "is-a.h" for use by is_a_helper
2755         specializations in followup autogenerated patch.
2756         (struct gimple statement_base): Make this type usable as a base
2757         class by adding "desc", "tag" and "variable_size" to GTY, thus
2758         using opting-in to gengtype's support for simple inheritance.
2759         (gimple_statement_with_ops_base): Convert to a subclass of
2760         gimple_statement_base, dropping initial "gsbase" field.  Note that
2761         this type is abstract, with no GSS_ value, and thus no GTY tag value.
2762         (gimple_statement_with_ops): Convert to a subclass of
2763         gimple_statement_with_ops_base, dropping initial "opbase" field.
2764         Add tag value to GTY marking.  Update marking of op field to
2765         reflect how num_ops field is accessed via inheritance.
2766         (gimple_statement_with_memory_ops_base): Convert to a subclass of
2767         gimple_statement_with_ops_base, dropping initial "opbase" field.
2768         Add tag value to GTY marking.
2769         (gimple_statement_with_memory_ops): Convert to a subclass of
2770         public gimple_statement_with_memory_ops_base, dropping initial
2771         "membase" field.  Add tag value to GTY marking.  Update marking
2772         of op field to reflect how num_ops field is accessed via inheritance.
2773         (gimple_statement_call): Analogous changes that also update the
2774         marking of the "u" union.
2775         (gimple_statement_omp): Convert to a subclass of
2776         gimple_statement_base, dropping initial "gsbase" field, adding
2777         tag value to GTY marking.
2778         (gimple_statement_bind): Likewise.
2779         (gimple_statement_catch): Likewise.
2780         (gimple_statement_eh_filter): Likewise.
2781         (gimple_statement_eh_else): Likewise.
2782         (gimple_statement_eh_mnt): Likewise.
2783         (gimple_statement_phi): Likewise.
2784         (gimple_statement_eh_ctrl): Likewise.
2785         (gimple_statement_try): Likewise.
2786         (gimple_statement_wce): Likewise.
2787         (gimple_statement_asm): Convert to a subclass of
2788         gimple_statement_with_memory_ops_base, dropping initial
2789         "membase" field, adding tag value to GTY marking, and updating
2790         marking of op field.
2791         (gimple_statement_omp_critical): Convert to a subclass of
2792         gimple_statement_omp, dropping initial "omp" field, adding tag
2793         value to GTY marking.
2794         (gimple_statement_omp_for): Likewise.
2795         (gimple_statement_omp_parallel): Likewise.
2796         (gimple_statement_omp_task): Convert to a subclass of
2797         gimple_statement_omp_parallel, dropping initial "par" field,
2798         adding tag value to GTY marking.
2799         (gimple_statement_omp_sections): Convert to a subclass of
2800         gimple_statement_omp, dropping initial "omp" field, adding
2801         tag value to GTY marking.
2802         (gimple_statement_omp_continue): Convert to a subclass of
2803         gimple_statement_base, dropping initial "gsbase" field, adding
2804         tag value to GTY marking.
2805         (gimple_statement_omp_single): Convert to a subclass of
2806         gimple_statement_omp, dropping initial "omp" field, adding
2807         tag value to GTY marking.
2808         (gimple_statement_omp_atomic_load): Convert to a subclass of
2809         gimple_statement_base, dropping initial "gsbase" field, adding
2810         tag value to GTY marking.
2811         (gimple_statement_omp_atomic_store): Convert to a subclass of
2812         gimple_statement_base, dropping initial "gsbase" field, adding
2813         tag value to GTY marking.
2814         (gimple_statement_transaction): Convert to a subclass of
2815         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
2816         field, adding tag value to GTY marking.
2817         (union gimple_statement_d): Remove.
2818         * system.h (CONST_CAST_GIMPLE): Update to use
2819         "struct gimple_statement_base *" rather than
2820         "union gimple_statement_d *".
2821         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
2822         gimple_statement_d to gimple_statement_base.
2824         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
2825         (gimple_set_use_ops): Port from union to usage of as_a.
2826         (gimple_set_vuse): Likewise.
2827         (gimple_set_vdef): Likewise.
2828         (gimple_call_internal_fn): Port from union to a static_cast,
2829         given that the type has already been asserted.
2830         (gimple_omp_body_ptr): Port from unchecked union usage to
2831         a static_cast.
2832         (gimple_omp_set_body): Likewise.
2834         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
2835         gimple types to a true class hierarchy.
2836         (update_call_edge_frequencies): Likewise.
2837         (gsi_insert_seq_nodes_before): Likewise.
2838         (gsi_insert_seq_nodes_after): Likewise.
2839         (gsi_split_seq_after): Likewise.
2840         (gsi_set_stmt): Likewise.
2841         (gsi_split_seq_before): Likewise.
2842         (gsi_remove): Likewise.
2843         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
2844         (gsi_next): Likewise.
2845         (gsi_prev): Likewise.
2846         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
2847         * gimple-ssa.h (gimple_vuse_op): Likewise.
2848         (gimple_vdef_op): Likewise.
2849         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
2850         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
2851         * gimple.c (gimple_set_code): Likewise.
2852         (gimple_alloc_stat): Likewise.
2853         (gimple_set_subcode): Likewise.
2854         (gimple_build_call_internal_1): Likewise.
2855         (gimple_check_failed): Likewise.
2856         (gimple_call_flags): Likewise.
2857         (gimple_set_bb): Likewise.
2858         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
2859         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
2860         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
2861         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
2862         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
2863         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
2864         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
2865         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
2866         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
2867         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
2868         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
2869         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
2870         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
2871         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
2872         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
2873         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
2874         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
2875         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
2876         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
2877         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
2878         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
2879         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
2880         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
2881         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
2882         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
2883         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
2884         Likewise.
2885         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
2886         Likewise.
2887         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
2888         Likewise.
2889         (is_a_helper <const gimple_statement_omp_atomic_store>
2890         (const_gimple)): Likewise.
2891         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
2892         Likewise.
2893         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
2894         Likewise.
2895         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
2896         Likewise.
2897         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
2898         Likewise.
2899         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
2900         Likewise.
2901         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
2902         Likewise.
2903         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
2904         Likewise.
2905         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
2906         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
2907         Likewise.
2908         (gimple_seq_last): Update for conversion of gimple types to a true
2909         class hierarchy.
2910         (gimple_seq_set_last): Likewise.
2911         (gimple_code): Likewise.
2912         (gimple_bb): Likewise.
2913         (gimple_block): Likewise.
2914         (gimple_set_block): Likewise.
2915         (gimple_location): Likewise.
2916         (gimple_location_ptr): Likewise.
2917         (gimple_set_location): Likewise.
2918         (gimple_no_warning_p): Likewise.
2919         (gimple_set_no_warning): Likewise.
2920         (gimple_set_visited): Likewise.
2921         (gimple_visited_p): Likewise.
2922         (gimple_set_plf): Likewise.
2923         (gimple_plf): Likewise.
2924         (gimple_set_uid): Likewise.
2925         (gimple_uid): Likewise.
2926         (gimple_init_singleton): Likewise.
2927         (gimple_modified_p): Likewise.
2928         (gimple_set_modified): Likewise.
2929         (gimple_expr_code): Likewise.
2930         (gimple_has_volatile_ops): Likewise.
2931         (gimple_set_has_volatile_ops): Likewise.
2932         (gimple_omp_subcode): Likewise.
2933         (gimple_omp_set_subcode): Likewise.
2934         (gimple_omp_return_set_nowait): Likewise.
2935         (gimple_omp_section_set_last): Likewise.
2936         (gimple_omp_parallel_set_combined_p): Likewise.
2937         (gimple_omp_atomic_set_need_value): Likewise.
2938         (gimple_omp_atomic_set_seq_cst): Likewise.
2939         (gimple_num_ops): Likewise.
2940         (gimple_set_num_ops): Likewise.
2941         (gimple_assign_nontemporal_move_p): Likewise.
2942         (gimple_assign_set_nontemporal_move): Likewise.
2943         (gimple_assign_rhs_code): Likewise.
2944         (gimple_assign_set_rhs_code): Likewise.
2945         (gimple_call_internal_p): Likewise.
2946         (gimple_call_with_bounds_p): Likewise.
2947         (gimple_call_set_with_bounds): Likewise.
2948         (gimple_call_set_tail): Likewise.
2949         (gimple_call_tail_p): Likewise.
2950         (gimple_call_set_return_slot_opt): Likewise.
2951         (gimple_call_return_slot_opt_p): Likewise.
2952         (gimple_call_set_from_thunk): Likewise.
2953         (gimple_call_from_thunk_p): Likewise.
2954         (gimple_call_set_va_arg_pack): Likewise.
2955         (gimple_call_va_arg_pack_p): Likewise.
2956         (gimple_call_set_nothrow): Likewise.
2957         (gimple_call_set_alloca_for_var): Likewise.
2958         (gimple_call_alloca_for_var_p): Likewise.
2959         (gimple_call_copy_flags): Likewise.
2960         (gimple_cond_code): Likewise.
2961         (gimple_cond_set_code): Likewise.
2962         (gimple_cond_make_false): Likewise.
2963         (gimple_cond_make_true): Likewise.
2964         (gimple_asm_volatile_p): Likewise.
2965         (gimple_asm_set_volatile): Likewise.
2966         (gimple_asm_set_input): Likewise.
2967         (gimple_asm_input_p): Likewise.
2968         (gimple_try_kind): Likewise.
2969         (gimple_try_set_kind): Likewise.
2970         (gimple_try_catch_is_cleanup): Likewise.
2971         (gimple_try_set_catch_is_cleanup): Likewise.
2972         (gimple_wce_cleanup_eh_only): Likewise.
2973         (gimple_wce_set_cleanup_eh_only): Likewise.
2974         (gimple_debug_bind_p): Likewise.
2975         (gimple_debug_source_bind_p): Likewise.
2976         (gimple_omp_for_set_kind): Likewise.
2977         (gimple_omp_for_set_combined_p): Likewise.
2978         (gimple_omp_for_set_combined_into_p): Likewise.
2979         (gimple_omp_target_set_kind): Likewise.
2980         (gimple_transaction_subcode): Likewise.
2981         (gimple_transaction_set_subcode): Likewise.
2982         (gimple_predict_predictor): Likewise.
2983         (gimple_predict_set_predictor): Likewise.
2984         (gimple_predict_outcome): Likewise.
2985         (gimple_predict_set_outcome): Likewise.
2986         (gimple_transaction_set_label): Likewise.
2987         (gimple_transaction_set_body): Likewise.
2988         (gimple_transaction_label_ptr): Likewise.
2989         (gimple_transaction_label): Likewise.
2990         (gimple_transaction_body_ptr): Likewise.
2991         (gimple_omp_continue_set_control_use): Likewise.
2992         (gimple_omp_continue_control_use_ptr): Likewise.
2993         (gimple_omp_continue_control_use): Likewise.
2994         (gimple_omp_continue_set_control_def): Likewise.
2995         (gimple_omp_continue_control_def_ptr): Likewise.
2996         (gimple_omp_continue_control_def): Likewise.
2997         (gimple_omp_atomic_load_rhs_ptr): Likewise.
2998         (gimple_omp_atomic_load_rhs): Likewise.
2999         (gimple_omp_atomic_load_set_rhs): Likewise.
3000         (gimple_omp_atomic_load_lhs_ptr): Likewise.
3001         (gimple_omp_atomic_load_lhs): Likewise.
3002         (gimple_omp_atomic_load_set_lhs): Likewise.
3003         (gimple_omp_atomic_store_val_ptr): Likewise.
3004         (gimple_omp_atomic_store_val): Likewise.
3005         (gimple_omp_atomic_store_set_val): Likewise.
3006         (gimple_omp_for_cond): Likewise.
3007         (gimple_omp_for_set_cond): Likewise.
3008         (gimple_omp_sections_set_control): Likewise.
3009         (gimple_omp_sections_control_ptr): Likewise.
3010         (gimple_omp_sections_control): Likewise.
3011         (gimple_omp_sections_set_clauses): Likewise.
3012         (gimple_omp_sections_clauses_ptr): Likewise.
3013         (gimple_omp_sections_clauses): Likewise.
3014         (gimple_omp_teams_set_clauses): Likewise.
3015         (gimple_omp_teams_clauses_ptr): Likewise.
3016         (gimple_omp_teams_clauses): Likewise.
3017         (gimple_omp_target_set_data_arg): Likewise.
3018         (gimple_omp_target_data_arg_ptr): Likewise.
3019         (gimple_omp_target_data_arg): Likewise.
3020         (gimple_omp_target_set_child_fn): Likewise.
3021         (gimple_omp_target_child_fn_ptr): Likewise.
3022         (gimple_omp_target_child_fn): Likewise.
3023         (gimple_omp_target_set_clauses): Likewise.
3024         (gimple_omp_target_clauses_ptr): Likewise.
3025         (gimple_omp_target_clauses): Likewise.
3026         (gimple_omp_single_set_clauses): Likewise.
3027         (gimple_omp_single_clauses_ptr): Likewise.
3028         (gimple_omp_single_clauses): Likewise.
3029         (gimple_omp_task_set_arg_align): Likewise.
3030         (gimple_omp_task_arg_align_ptr): Likewise.
3031         (gimple_omp_task_arg_align): Likewise.
3032         (gimple_omp_task_set_arg_size): Likewise.
3033         (gimple_omp_task_arg_size_ptr): Likewise.
3034         (gimple_omp_task_arg_size): Likewise.
3035         (gimple_omp_task_set_copy_fn): Likewise.
3036         (gimple_omp_task_copy_fn_ptr): Likewise.
3037         (gimple_omp_task_copy_fn): Likewise.
3038         (gimple_omp_task_set_data_arg): Likewise.
3039         (gimple_omp_task_data_arg_ptr): Likewise.
3040         (gimple_omp_task_data_arg): Likewise.
3041         (gimple_omp_task_set_child_fn): Likewise.
3042         (gimple_omp_task_child_fn_ptr): Likewise.
3043         (gimple_omp_task_child_fn): Likewise.
3044         (gimple_omp_task_set_clauses): Likewise.
3045         (gimple_omp_task_clauses_ptr): Likewise.
3046         (gimple_omp_task_clauses): Likewise.
3047         (gimple_omp_parallel_set_data_arg): Likewise.
3048         (gimple_omp_parallel_data_arg_ptr): Likewise.
3049         (gimple_omp_parallel_data_arg): Likewise.
3050         (gimple_omp_parallel_set_child_fn): Likewise.
3051         (gimple_omp_parallel_child_fn_ptr): Likewise.
3052         (gimple_omp_parallel_child_fn): Likewise.
3053         (gimple_omp_parallel_set_clauses): Likewise.
3054         (gimple_omp_parallel_clauses_ptr): Likewise.
3055         (gimple_omp_parallel_clauses): Likewise.
3056         (gimple_omp_for_set_pre_body): Likewise.
3057         (gimple_omp_for_pre_body_ptr): Likewise.
3058         (gimple_omp_for_set_incr): Likewise.
3059         (gimple_omp_for_incr_ptr): Likewise.
3060         (gimple_omp_for_incr): Likewise.
3061         (gimple_omp_for_set_final): Likewise.
3062         (gimple_omp_for_final_ptr): Likewise.
3063         (gimple_omp_for_final): Likewise.
3064         (gimple_omp_for_set_initial): Likewise.
3065         (gimple_omp_for_initial_ptr): Likewise.
3066         (gimple_omp_for_initial): Likewise.
3067         (gimple_omp_for_set_index): Likewise.
3068         (gimple_omp_for_index_ptr): Likewise.
3069         (gimple_omp_for_index): Likewise.
3070         (gimple_omp_for_collapse): Likewise.
3071         (gimple_omp_for_set_clauses): Likewise.
3072         (gimple_omp_for_clauses_ptr): Likewise.
3073         (gimple_omp_for_clauses): Likewise.
3074         (gimple_omp_critical_set_name): Likewise.
3075         (gimple_omp_critical_name_ptr): Likewise.
3076         (gimple_omp_critical_name): Likewise.
3077         (gimple_eh_dispatch_set_region): Likewise.
3078         (gimple_eh_dispatch_region): Likewise.
3079         (gimple_resx_set_region): Likewise.
3080         (gimple_resx_region): Likewise.
3081         (gimple_phi_set_arg): Likewise.
3082         (gimple_phi_arg): Likewise.
3083         (gimple_phi_set_result): Likewise.
3084         (gimple_phi_result_ptr): Likewise.
3085         (gimple_phi_result): Likewise.
3086         (gimple_phi_num_args): Likewise.
3087         (gimple_phi_capacity): Likewise.
3088         (gimple_wce_set_cleanup): Likewise.
3089         (gimple_wce_cleanup_ptr): Likewise.
3090         (gimple_try_set_cleanup): Likewise.
3091         (gimple_try_set_eval): Likewise.
3092         (gimple_try_cleanup_ptr): Likewise.
3093         (gimple_try_eval_ptr): Likewise.
3094         (gimple_eh_else_set_e_body): Likewise.
3095         (gimple_eh_else_set_n_body): Likewise.
3096         (gimple_eh_else_e_body_ptr): Likewise.
3097         (gimple_eh_else_n_body_ptr): Likewise.
3098         (gimple_eh_must_not_throw_set_fndecl): Likewise.
3099         (gimple_eh_must_not_throw_fndecl): Likewise.
3100         (gimple_eh_filter_set_failure): Likewise.
3101         (gimple_eh_filter_set_types): Likewise.
3102         (gimple_eh_filter_failure_ptr): Likewise.
3103         (gimple_eh_filter_types_ptr): Likewise.
3104         (gimple_eh_filter_types): Likewise.
3105         (gimple_catch_set_handler): Likewise.
3106         (gimple_catch_set_types): Likewise.
3107         (gimple_catch_handler_ptr): Likewise.
3108         (gimple_catch_types_ptr): Likewise.
3109         (gimple_catch_types): Likewise.
3110         (gimple_asm_string): Likewise.
3111         (gimple_asm_set_label_op): Likewise.
3112         (gimple_asm_label_op): Likewise.
3113         (gimple_asm_set_clobber_op): Likewise.
3114         (gimple_asm_clobber_op): Likewise.
3115         (gimple_asm_set_output_op): Likewise.
3116         (gimple_asm_output_op_ptr): Likewise.
3117         (gimple_asm_output_op): Likewise.
3118         (gimple_asm_set_input_op): Likewise.
3119         (gimple_asm_input_op_ptr): Likewise.
3120         (gimple_asm_input_op): Likewise.
3121         (gimple_asm_nlabels): Likewise.
3122         (gimple_asm_nclobbers): Likewise.
3123         (gimple_asm_noutputs): Likewise.
3124         (gimple_asm_ninputs): Likewise.
3125         (gimple_bind_set_block): Likewise.
3126         (gimple_bind_block): Likewise.
3127         (gimple_bind_add_seq): Likewise.
3128         (gimple_bind_add_stmt): Likewise.
3129         (gimple_bind_set_body): Likewise.
3130         (gimple_bind_body_ptr): Likewise.
3131         (gimple_bind_append_vars): Likewise.
3132         (gimple_bind_set_vars): Likewise.
3133         (gimple_bind_vars): Likewise.
3134         (gimple_call_clobber_set): Likewise.
3135         (gimple_call_use_set): Likewise.
3136         (gimple_call_set_internal_fn): Likewise.
3137         (gimple_call_set_fntype): Likewise.
3138         (gimple_call_fntype): Likewise.
3139         (gimple_omp_return_lhs_ptr): Likewise.
3140         (gimple_omp_return_lhs): Likewise.
3141         (gimple_omp_return_set_lhs): Likewise.
3142         (gimple_omp_taskreg_set_data_arg): Likewise.
3143         (gimple_omp_taskreg_data_arg_ptr): Likewise.
3144         (gimple_omp_taskreg_data_arg): Likewise.
3145         (gimple_omp_taskreg_set_child_fn): Likewise.
3146         (gimple_omp_taskreg_child_fn_ptr): Likewise.
3147         (gimple_omp_taskreg_child_fn): Likewise.
3148         (gimple_omp_taskreg_set_clauses): Likewise.
3149         (gimple_omp_taskreg_clauses_ptr): Likewise.
3150         (gimple_omp_taskreg_clauses): Likewise.
3151         (gimple_vuse): Likewise.
3152         (gimple_vdef): Likewise.
3153         (gimple_vuse_ptr): Likewise.
3154         (gimple_vdef_ptr): Likewise.
3155         * tree-inline.c (copy_debug_stmt): Likewise.
3156         * tree-phinodes.c (make_phi_node): Likewise.
3158         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
3159         (is_a_helper <gimple_statement_with_ops>::test): New.
3160         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
3161         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
3163         * gimple-streamer-in.c (input_gimple_stmt): Port from union
3164         access to use of as_a.
3165         * gimple.c (gimple_build_asm_1): Likewise.
3166         (gimple_build_try): Likewise.  Also, return a specific subclass
3167         rather than just gimple.
3168         (gimple_build_resx): Port from union access to use of as_a.
3169         (gimple_build_eh_dispatch): Likewise.
3170         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
3171         now that gengtype no longer provides a typed allocator function.
3172         (gimple_copy): Likewise.
3173         * gimple.h (gimple_build_try): Return a specific subclass rather
3174         than just gimple.
3175         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
3176         with subclass access by making use of new return type of
3177         gimple_build_try.
3178         * tree-phinodes.c: (allocate_phi_node): Return a
3179         "gimple_statement_phi *" rather than just a gimple.
3180         (resize_phi_node): Likewise.
3181         (make_phi_node): Replace union access with subclass access by
3182         making use of new return type of allocate_phi_node.
3183         (reserve_phi_args_for_new_edge): Replace union access with as_a.
3184         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
3185         than just a gimple.
3186         (remove_phi_args): Update for change to remove_phi_arg_num.
3188         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
3189         code field to reflect inheritance, rather than embedding of
3190         the base gimple type.
3192 2013-11-19  Richard Biener  <rguenther@suse.de>
3194         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
3195         and destructor and make fel_next a member function.
3196         (fel_next): Transform into ...
3197         (loop_iterator::next): ... this.
3198         (fel_init): Transform into ...
3199         (loop_iterator::loop_iterator): ... this.
3200         (loop_iterator::~loop_iterator): New.
3201         (FOR_EACH_LOOP): Remove loop-iterator argument.
3202         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
3203         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
3204         graphite-clast-to-gimple.c, graphite-scop-detection.c,
3205         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
3206         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
3207         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
3208         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
3209         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
3210         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
3211         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
3212         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
3213         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
3214         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
3215         FOR_EACH_LOOP_BREAK with break.
3217 2013-11-19  Richard Biener  <rguenther@suse.de>
3219         PR tree-optimization/59164
3220         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3221         Uncomment assert.
3222         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
3223         whether we can create an epilogue loop to reflect thecases where
3224         we create one.
3226 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
3228         * graphite-sese-to-poly.c: Include expr.h.
3230 2013-11-19  Richard Biener  <rguenther@suse.de>
3232         PR middle-end/58956
3233         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
3234         loads into stmts that may clobber it.
3236 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
3238         * cgraphunit.c (symtab_terminator): New variable.
3239         (queued_nodes): Renamed from first.  Use symtab_terminator as
3240         initializer.
3241         (analyze_functions): Adjust accordingly.
3242         (cgraph_process_new_functions): Return void.
3243         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
3245 2013-11-19  Marek Polacek  <polacek@redhat.com>
3247         * opts.c (common_handle_option): Add -fsanitize=null option.
3248         Turn off -fdelete-null-pointer-checks option when doing the
3249         NULL pointer checking.
3250         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
3251         * tree-pass.h (make_pass_ubsan): Declare.
3252         (make_pass_sanopt): Declare.
3253         * timevar.def (TV_TREE_UBSAN): New timevar.
3254         * passes.def: Add pass_sanopt and pass_ubsan.
3255         * ubsan.h (ubsan_null_ckind): New enum.
3256         (ubsan_mismatch_data): New struct.
3257         (ubsan_expand_null_ifn): Declare.
3258         (ubsan_create_data): Adjust declaration.
3259         (ubsan_type_descriptor): Likewise.
3260         * asan.c: Include "ubsan.h".
3261         (pass_data_sanopt): New pass.
3262         (execute_sanopt): New function.
3263         (gate_sanopt): Likewise.
3264         (make_pass_sanopt): Likewise.
3265         (class pass_sanopt): New class.
3266         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
3267         gimple-iterator.h and cfgloop.h.
3268         (PROB_VERY_UNLIKELY): Define.
3269         (tree_type_map_hash): New function.
3270         (ubsan_type_descriptor): Add new parameter.
3271         Improve type name generation.
3272         (ubsan_create_data): Add new parameter.  Add pointer data into
3273         ubsan structure.
3274         (ubsan_expand_null_ifn): New function.
3275         (instrument_member_call): Likewise.
3276         (instrument_mem_ref): Likewise.
3277         (instrument_null): Likewise.
3278         (ubsan_pass): Likewise.
3279         (gate_ubsan): Likewise.
3280         (make_pass_ubsan): Likewise.
3281         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
3282         (class pass_ubsan): New class.
3283         (pass_data_ubsan): New pass.
3284         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
3285         * internal-fn.c (expand_UBSAN_NULL): New function.
3286         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
3287         even when !flag_toplevel_reorder.
3288         * internal-fn.def (UBSAN_NULL): New.
3290 2013-11-19  Jan Hubicka  <jh@suse.cz>
3292         * cgraph.c (cgraph_create_indirect_edge): Use
3293         get_polymorphic_call_info.
3294         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
3295         maybe_in_construction and maybe_derived_type.
3296         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
3297         (ipa_dummy_polymorphic_call_context): New global var.
3298         (possible_polymorphic_call_targets): Add context paramter.
3299         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
3300         (possible_polymorphic_call_target_p): Likewise.
3301         (get_polymorphic_call_info): New function.
3302         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
3303         (add_type_duplicate): Remove forgotten debug output.
3304         (method_class_type): Add sanity check.
3305         (maybe_record_node): Add FINALP parameter.
3306         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
3307         by info by get_binfo_at_offset.
3308         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
3309         parameters; pass them to record-binfo.
3310         (polymorphic_call_target_d): Add context and FINAL.
3311         (polymorphic_call_target_hasher::hash): Hash context.
3312         (polymorphic_call_target_hasher::equal): Compare context.
3313         (free_polymorphic_call_targets_hash):
3314         (get_class_context): New function.
3315         (contains_type_p): New function.
3316         (get_polymorphic_call_info): New function.
3317         (walk_bases): New function.
3318         (possible_polymorphic_call_targets): Add context parameter; honnor it.
3319         (dump_possible_polymorphic_call_targets): Dump context.
3320         (possible_polymorphic_call_target_p): Add context.
3321         (update_type_inheritance_graph): Update comment.s
3322         (ipa_set_jf_known_type): Assert that compoentn type is known.
3323         (ipa_note_param_call): Do not tamper with offsets.
3324         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
3325         outer type.
3326         (update_indirect_edges_after_inlining): Likewise.
3327         (ipa_write_indirect_edge_info): Stream new fields.
3328         (ipa_read_indirect_edge_info): Stream in new fields.
3330 2013-11-19  Jan Hubicka  <jh@suse.cz>
3332         * tree-pretty-print.c (dump_generic_node): Print class type of
3333         OBJ_TYPE_REF.
3335 2013-11-19  Joey Ye  <joey.ye@arm.com>
3337         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
3338         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
3339         for new option.
3340         * config/arm/arm.c (arm_option_override): By default disable
3341         -marm-pic-data-is-text-relative.
3342         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
3343         (arm_assemble_integer): Likewise.
3344         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
3345         New macro to initialize -marm-pic-data-is-text-relative.
3347 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
3349         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
3350         (address_cost_data): New field.
3351         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
3352         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
3354 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
3356         * config/aarch64/aarch64.md: Remove v8type from all insns.
3358 2013-11-19  Richard Biener  <rguenther@suse.de>
3360         PR tree-optimization/57517
3361         * tree-predcom.c (combinable_refs_p): Verify the combination
3362         is always executed when the refs are.
3364 2013-11-19  Jeff Law  <law@redhat.com>
3366         * tree-ssa-threadupdate.c: Include ssa-iterators.h
3367         (copy_phi_arg_into_existing_phi): New function.
3368         (any_remaining_duplicated_blocks): Likewise.
3369         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
3370         blocks on a jump threading path.
3372         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
3373         thread through a joiner which has the latch edge.
3375 2013-11-19  Jan Hubicka  <jh@suse.cz>
3377         * md.texi (setmem): Document new parameter.
3378         * optabs.c (maybe_gen_insn): Support 9 operands.
3379         * builtins.c (determine_block_size): Add probable_max_size;
3380         support anti-ranges.
3381         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
3382         probable_max_size.
3383         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
3384         emit_block_move, clear_storage_hints, set_storage_via_setmem):
3385         Likewise.
3386         * expr.h (emit_block_move_hints, clear_storage_hints,
3387         set_storage_via_setmem): Update prototype.
3388         * i386.md (setmem, movmem patterns): Add 9th operand.
3389         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
3390         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
3391         argument; pass it to decide_alg.
3393 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
3395         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
3396         (n_basic_blocks_for_fn): ...this.
3398         (n_basic_blocks): Eliminate macro as work towards making uses of
3399         cfun be explicit.
3401         * cfgloop.c (init_loops_structure): Update for renaming of
3402         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
3403         * graph.c (draw_cfg_nodes_no_loops): Likewise.
3404         * ipa-utils.c (ipa_merge_profiles): Likewise.
3405         * lto-streamer-in.c (make_new_block): Likewise.
3406         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
3407         (dump_function_to_file): Likewise.
3409         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
3410         macro with "n_basic_blocks_for_fn (cfun)".
3411         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
3412         (duplicate_computed_gotos): Likewise.
3413         (reorder_basic_blocks): Likewise.
3414         * bt-load.c (augment_live_range): Likewise.
3415         * cfg.c (expunge_block): Likewise.
3416         (compact_blocks): Likewise.
3417         * cfganal.c (single_pred_before_succ_order): Likewise.
3418         (compute_idf): Likewise.
3419         (flow_dfs_compute_reverse_init): Likewise.
3420         (pre_and_rev_post_order_compute): Likewise.
3421         (pre_and_rev_post_order_compute_fn): Likewise.
3422         (inverted_post_order_compute): Likewise.
3423         (post_order_compute): Likewise.
3424         (print_edge_list): Likewise.
3425         (find_unreachable_blocks): Likewise.
3426         (mark_dfs_back_edges): Likewise.
3427         * cfgcleanup.c (try_optimize_cfg): Likewise.
3428         (try_forward_edges): Likewise.
3429         * cfghooks.c (dump_flow_info): Likewise.
3430         * cfgloop.c (verify_loop_structure): Likewise.
3431         (get_loop_body): Likewise.
3432         (flow_loops_find): Likewise.
3433         * cfgloopmanip.c (add_loop): Likewise.
3434         (remove_path): Likewise.
3435         (find_path): Likewise.
3436         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3437         (rtl_verify_bb_layout): Likewise.
3438         (entry_of_function): Likewise.
3439         (rtl_create_basic_block): Likewise.
3440         * coverage.c (coverage_compute_cfg_checksum): Likewise.
3441         * cprop.c (one_cprop_pass): Likewise.
3442         (is_too_expensive): Likewise.
3443         * df-core.c (df_compute_cfg_image): Likewise.
3444         (df_compact_blocks): Likewise.
3445         (df_worklist_dataflow_doublequeue): Likewise.
3446         * dominance.c (calculate_dominance_info): Likewise.
3447         (calc_dfs_tree): Likewise.
3448         (calc_dfs_tree_nonrec): Likewise.
3449         (init_dom_info): Likewise.
3450         * domwalk.c (cmp_bb_postorder): Likewise.
3451         * function.c (thread_prologue_and_epilogue_insns): Likewise.
3452         (generate_setjmp_warnings): Likewise.
3453         * fwprop.c (build_single_def_use_links): Likewise.
3454         * gcse.c (is_too_expensive): Likewise.
3455         (one_code_hoisting_pass): Likewise.
3456         (one_pre_gcse_pass): Likewise.
3457         * graphite.c (graphite_initialize): Likewise.
3458         * haifa-sched.c (haifa_sched_init): Likewise.
3459         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
3460         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
3461         * ira-build.c (ira_build): Likewise.
3462         * lcm.c (compute_nearerout): Likewise.
3463         (compute_available): Likewise.
3464         (compute_laterin): Likewise.
3465         (compute_antinout_edge): Likewise.
3466         * lra-lives.c (lra_create_live_ranges): Likewise.
3467         * lra.c (has_nonexceptional_receiver): Likewise.
3468         * mcf.c (create_fixup_graph): Likewise.
3469         * profile.c (branch_prob): Likewise.
3470         * reg-stack.c (convert_regs_2): Likewise.
3471         * regrename.c (regrename_analyze): Likewise.
3472         * reload1.c (has_nonexceptional_receiver): Likewise.
3473         * reorg.c (dbr_schedule): Likewise.
3474         * sched-deps.c (sched_deps_init): Likewise.
3475         * sched-ebb.c (schedule_ebbs): Likewise.
3476         * sched-rgn.c (extend_regions): Likewise.
3477         (schedule_insns): Likewise.
3478         (sched_rgn_init): Likewise.
3479         (extend_rgns): Likewise.
3480         (haifa_find_rgns): Likewise.
3481         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
3482         (sel_recompute_toporder): Likewise.
3483         * sel-sched.c (run_selective_scheduling): Likewise.
3484         * store-motion.c (one_store_motion_pass): Likewise.
3485         (remove_reachable_equiv_notes): Likewise.
3486         * tracer.c (tracer): Likewise.
3487         (tail_duplicate): Likewise.
3488         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
3489         (dump_cfg_stats): Likewise.
3490         (gimple_dump_cfg): Likewise.
3491         (create_bb): Likewise.
3492         (build_gimple_cfg): Likewise.
3493         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
3494         * tree-inline.c (optimize_inline_calls): Likewise.
3495         (fold_marked_statements): Likewise.
3496         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
3497         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3498         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3499         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
3500         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3501         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3502         * tree-ssa-pre.c (do_pre): Likewise.
3503         (init_pre): Likewise.
3504         (compute_avail): Likewise.
3505         * tree-ssa-reassoc.c (init_reassoc): Likewise.
3506         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3507         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
3508         (init_worklist): Likewise.
3509         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3510         * var-tracking.c (variable_tracking_main_1): Likewise.
3511         (vt_find_locations): Likewise.
3512         (vt_stack_adjustments): Likewise.
3513         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
3514         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
3516 2013-11-18  Jan Hubicka  <jh@suse.cz>
3518         * profile.c (compute_branch_probabilities): Do not sanity check
3519         run_max.
3521 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
3523         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
3524         GET_MODE_PRECISION.
3525         * fold-const.c (fold_single_bit_test_into_sign_test)
3526         (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
3528 2013-11-18  Teresa Johnson  <tejohnson@google.com>
3530         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
3531         cfglayout after bb reordering.
3532         * passes.def: Move compgotos before bb reordering since it goes into
3533         cfglayout.
3535 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
3537         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
3538         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
3539         static.
3540         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
3541         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
3542         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
3543         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
3544         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
3545         Remove all_lto_gen_passes.
3546         * passes.c (pass_manager::dump_passes): Remove its use.
3547         (pass_manager::register_pass): Likewise.
3548         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
3549         (pass_manager::pass_manager): Don't initialize or use it.
3550         (write_lto): New static function.
3551         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
3552         instead of using all_lto_gen_passes.
3553         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
3554         pass_ipa_lto_finish_out): Delete.
3555         * tree-pass.h (make_pass_ipa_lto_gimple_out,
3556         make_pass_ipa_lto_finish_out): Don't declare.
3558 2013-11-18  Jeff Law  <law@redhat.com>
3560         * tree-ssa-threadupdate.c (redirection_data): Record two
3561         duplicated blocks instead of just one.
3562         (local_info): Explain why we don't create a template for the
3563         second duplicated block in a thread path.
3564         (create_block_for_threading): Accept argument indicating array
3565         index into redirection_data to store its result.
3566         (lookup_redirection_data): Initialize both duplicate blocks.
3567         (ssa_create_duplicates): If a jump threading path needs multiple
3568         blocks duplicated, then duplicate them.
3569         (ssa_fix_duplicate_block_edges): Corresponding changes.
3570         (ssa_fixup_template_block, thread_single_edge):  Likewise.
3572 2013-11-18  Marek Polacek  <polacek@redhat.com>
3574         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
3576 2013-11-18  Andrew Pinski <apinski@cavium.com>
3577             Steve Ellcey  <sellcey@mips.com>
3579         PR target/56552
3580         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
3581         type restriction from equality_operator on conditonal move.
3582         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
3583         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
3585 2013-11-18  Jeff Law  <law@redhat.com>
3587         * tree-ssa-threadupdate.c: Fix file block comment.
3588         Fix minor indention issue.
3590 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
3592         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
3593         ix86_address_subreg_operand.  Move subreg checks to
3594         ix86_validate_address_register.  Move address override check to
3595         ix86_legitimate_address_p.
3596         (ix86_validate_address_register): New function.
3597         (ix86_legitimate_address_p): Call ix86_validate_address_register
3598         to validate base and index registers.  Add address override check
3599         from ix86_decompose_address.
3600         (ix86_decompose_address): Remove.
3602 2013-11-18  Richard Biener  <rguenther@suse.de>
3604         PR tree-optimization/59125
3605         PR tree-optimization/54570
3606         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
3607         is not complete do not treat component-references with offset zero
3608         but different fields as equal.
3609         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
3610         (compute_object_sizes): Apply TLC.  Propagate the constant
3611         results into all uses and fold their stmts.
3612         * passes.def (pass_all_optimizations): Move pass_object_sizes
3613         after the first pass_forwprop and before pass_fre.
3615 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3617         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3618         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3619         (tree_ctz): Remove cast to unsigned type.
3620         * builtins.c (fold_builtin_memory_op): Likewise.
3621         * dwarf2out.c (descr_info_loc): Likewise.
3622         * godump.c (go_output_typedef): Likewise.
3623         * omp-low.c (expand_omp_simd): Likewise.
3624         * stor-layout.c (excess_unit_span): Likewise.
3625         * tree-object-size.c (addr_object_size): Likewise.
3626         * tree-sra.c (analyze_all_variable_accesses): Likewise.
3627         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3628         (simplify_rotate): Likewise.
3629         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
3630         (handle_pointer_plus): Likewise.
3631         * tree-switch-conversion.c (check_range): Likewise.
3632         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
3633         * tsan.c (instrument_builtin_call): Likewise.
3634         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
3635         * trans-mem.c (tm_log_add): Likewise.
3636         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
3637         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
3638         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
3639         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
3641 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3643         * tree.h (host_integerp, tree_low_cst): Delete.
3644         * tree.c (host_integerp, tree_low_cst): Delete.
3646 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3648         * expr.h: Update comments to refer to tree_to_[su]hwi rather
3649         than tree_low_cst.
3650         * fold-const.c (fold_binary_loc): Likewise.
3651         * expr.c (store_constructor): Use tree_to_uhwi rather than
3652         tree_low_cst.
3653         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
3654         * stmt.c (emit_case_dispatch_table): Likewise.
3655         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
3657 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3659         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
3660         config/aarch64/aarch64.c, config/alpha/predicates.md,
3661         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
3662         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
3663         config/mep/mep-pragma.c, config/mips/mips.c,
3664         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
3665         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
3666         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
3667         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
3668         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
3669         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
3670         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
3671         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
3672         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
3673         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
3675 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3677         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
3678         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
3679         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
3680         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
3681         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
3682         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
3683         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
3684         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
3685         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
3686         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
3687         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
3689 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3691         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
3692         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
3694 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3696         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
3697         than host_integerp.
3699 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3701         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
3702         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
3703         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
3704         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
3705         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
3706         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
3707         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
3708         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
3709         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
3710         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
3711         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
3712         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
3713         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
3714         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
3715         tree_fits_uhwi_p throughout.
3717 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3719         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
3720         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
3721         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
3722         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
3723         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
3724         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
3725         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
3726         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
3727         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
3728         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
3729         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
3730         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
3731         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
3732         throughout.
3734 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3736         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
3737         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
3739 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3741         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
3742         flag if it kills its address, not its post-increment.
3744 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
3746         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3747         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3748         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3749         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3750         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3751         (gimple_call_with_bounds_p): New.
3752         (gimple_call_set_with_bounds): New.
3753         (gimple_call_num_nobnd_args): Remove.
3754         (gimple_call_nobnd_arg): Remove.
3755         * tree.h (CALL_WITH_BOUNDS_P): New.
3756         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3758 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
3760         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
3761         (symtab_node_name): Rename to symtab_node::name.
3762         (cgraph_node_asm_name): Remove.
3763         (varpool_node_asm_name): Remove.
3764         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
3765         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
3766         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
3767         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
3768         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
3770 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3772         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
3773         * config/arm/arm.c (arm_cortex_a53_tune): New.
3774         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
3776 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3778         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
3779         (case ${target}): Add bdver4.
3780         * config/i386/bdver3.md: Add bdver4.
3781         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
3782         -march=native recognize bdver4 processors.
3783         * config/i386/i386-c.c (ix86_target_macros_internal): Add
3784         bdver4 def_and_undef
3785         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
3786         (m_BDVER4): New definition.
3787         (m_AMD_MULTIPLE): Includes m_BDVER4.
3788         (processor_target_table): Add bdver4 entry.
3789         (static const char *const cpu_names): Add bdver4 entry.
3790         (software_prefetching_beneficial_p): Add bdver3.
3791         (ix86_option_override_internal): Add bdver4 instruction sets.
3792         (ix86_issue_rate): Add bdver4.
3793         (ix86_adjust_cost): Add bdver4.
3794         (ia32_multipass_dfa_lookahead): Add bdver4.
3795         (enum processor_model): Add M_AMDFAM15H_BDVER4.
3796         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
3797         (has_dispatch): Add bdver4.
3798         * config/i386/i386.h (TARGET_BDVER4): New definition.
3799         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
3800         (enum processor_type): Add PROCESSOR_BDVER4.
3801         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
3802         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
3803         * doc/extend.texi: Add details about bdver4.
3804         * doc/invoke.texi: Add details about bdver4. Add
3805         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
3807 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3809         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
3810         sdmode_stack_slot also in little-endian mode.
3812 2013-11-17  Jan Hubicka  <jh@suse.cz>
3814         * doc/md.texi (setmem, movstr): Update documentation.
3815         * builtins.c (determine_block_size): New function.
3816         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
3817         (expand_builtin_memset_args): Use it and pass it to
3818         set_storage_via_setmem.
3819         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
3820         parameters; update call to expander.
3821         (emit_block_move_hints): Add min_size/max_size parameters.
3822         (clear_storage_hints): Likewise.
3823         (set_storage_via_setmem): Likewise.
3824         (clear_storage): Update.
3825         * expr.h (emit_block_move_hints, clear_storage_hints,
3826         set_storage_via_setmem): Update prototypes.
3827         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
3828         (ix86_expand_movmem, ix86_expand_setmem): Remove.
3829         (ix86_expand_movmem, ix86_expand_setmem): Remove.
3830         * i386.md (movmem, setmem): Pass parameters.
3832 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
3834         PR target/59153
3835         * config/i386/i386.c (ix86_address_subreg_operand): Do not
3836         reject non-integer subregs.
3837         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
3838         Move check for invalid x32 constant addresses ...
3839         (ix86_legitimate_address_p): ... here.
3841 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3843         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
3844         parameter and use it in REG_FRAME_RELATED_EXPR note.
3845         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
3846         parameter.
3847         (rs6000_emit_prologue): Likewise, but for little endian VSX
3848         stores, pass the source register of the store instead.
3850 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
3852         * gimple.h: Reorder prototypes to match .c declaration order, and
3853         remove protyotypes for functions not in gimple.c.
3854         (LABEL): Move to tree-into-ssa.c.
3855         * gimple.c: Remove unused prototypes.
3856         (get_base_address): Move to tree.c.
3857         * tree.c (get_base_address): Relocate from gimple.c.
3858         * builtins.h (validate_gimple_arglist): Add prototype.
3859         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
3860         * cfgexpand.h: New File.
3861         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
3862         * tree.h (build_addr): Move to tree-nested.h.
3863         * tree-nested.h: New File.
3864         (build_addr, lower_nested_functions, insert_field_into_struct): Add
3865         prototypes.
3866         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
3867         * ipa-inline-analysis.c: Include cfgexpand.h.
3868         * cgraphunit.c: Include tree-nested.h.
3869         * omp-low.c: Likewise.
3870         * tree-parloops.c: Likewise.
3871         * gimple-low.h: Likewise.
3872         * tree-profile.h: Likewise.
3873         * expr.c: Include cfgexpand.h.
3874         * tree-affine.c: Likewise.
3875         * tree-ssa.c: Likewise.
3876         * tree-ssa-loop-im.c: Include trans-mem.h.
3877         * tree-ssa-tail-merge.c: Likewise.
3878         * value-prof.c: Include builtins.h and tree-nested.h.
3879         * tree-into-ssa.c (LABEL): Define here.
3881 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
3883         * config/arc/arc.c (arc_predicate_delay_insns): New function.
3884         (pass_data_arc_predicate_delay_insns): New pass_data instance.
3885         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
3886         (make_pass_arc_predicate_delay_insns): New function.
3887         (arc_init): Register pass_arc_predicate_delay_insns if
3888         flag_delayed_branch is active.
3890 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
3892         * config/arc/constraints.md (Rcq): Simplify register number test.
3894 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
3896         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
3898 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3900         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
3901         is null.
3903 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
3905         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
3906         * gimple-pretty-print.c (dump_omp_for): Add case for
3907         GF_OMP_FOR_KIND_CILKSIMD.
3908         * gimple.h (enum gf_mask): Restructure entries to add
3909         GF_OMP_FOR_KIND_CILKSIMD.
3910         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
3911         (gimplify_omp_for): Handle CILK_SIMD.
3912         (gimplify_expr): Add ccase for CILK_SIMD.
3913         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
3914         (build_outer_var_ref): Same.
3915         (check_omp_nesting_restrictions): Same.
3916         (lower_rec_input_clauses): Same.
3917         (lower_lastprivate_clauses): Same.
3918         (expand_omp_for): Same.
3919         (execute_expand_omp): Check flag_enable_cilkplus.
3920         (execute_lower_omp): Same.
3921         (diagnose_sb_0): Handle CILK_SIMD.
3922         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
3923         (setjmp_or_longjmp_p): New.
3924         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
3925         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
3926         * tree.def: Add tree code for CILK_SIMD.
3928 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3930         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
3931         Remove.
3932         (altivec_vperm_<mode>): Revert earlier little endian change.
3933         (*altivec_vperm_<mode>_internal): Remove.
3934         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
3935         (*altivec_vperm_<mode>_uns_internal): Remove.
3936         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
3938 2013-11-15  Jeff Law  <law@redhat.com>
3940         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
3941         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
3942         * gimple-ssa-isolate-paths.c
3943         (find_implicit_erroneous_behaviour): Corresponding changes.
3944         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
3945         (find_explicit_erroneous_behaviour): Likewise.
3947 2013-11-15  Jeff Law  <law@redhat.com>
3949         * ifcvt.c (find_cond_trap): Properly handle case where
3950         trap_bb == else_bb.
3952 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
3954         * configure: Regenerate.
3956 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
3958         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
3959         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
3960         where it is incorrect or missing.
3962 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
3964         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
3965         host_integerp test.
3966         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
3967         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
3968         constant.
3969         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
3970         pair with a TREE_CODE test and TREE_INT_CST_LOW.
3971         * tree-vect-generic.c (expand_vector_divmod): Likewise.
3973 2013-11-15  Richard Biener  <rguenther@suse.de>
3975         PR tree-optimization/50262
3976         * tree-ssa-alias.h (struct pt_solution): Split
3977         vars_contains_global into vars_contains_nonlocal,
3978         vars_contains_escaped and vars_contains_escaped_heap.
3979         * tree-ssa-structalias.c (label_visit): Expand comment.
3980         (handle_lhs_call): Adjust comment.
3981         (set_uids_in_ptset): Set the new flags appropriately.
3982         (pt_solution_set): Adjust.
3983         (pt_solution_set_var): Likewise.
3984         (pt_solution_ior_into): Likewise.
3985         (pt_solution_includes_global): Likewise.
3986         (pt_solutions_intersect_1): Optimize escaped handling.
3987         (compute_points_to_sets): Remove heap variable globalization.
3988         (ipa_escaped_pt): Adjust initializer.
3989         (pass_data_ipa_pta): Do not run TODO_update_ssa.
3990         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
3991         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
3993 2013-11-15  Richard Biener  <rguenther@suse.de>
3995         * tree-loop-distribution.c (tree_loop_distribution): Make sure
3996         to distribute all stores.
3998 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4000         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
4002 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
4004         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
4005         * configure.ac: Determine target_header_dir earlier.
4006         (--with-glibc-version): New configure option.
4007         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
4008         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
4009         * configure: Regenerate.
4010         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
4011         native toolchains for default.
4012         (--with-glibc-version): Document.
4014 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
4016         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
4018 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
4020         * lto-streamer-in.c (input function): Call cgraph_create_node if
4021         cgraph_get_node failed.
4023 2013-11-14   Olivier Hainque  <hainque@adacore.com>
4025         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
4026         defer allocation of DECL_IGNORED_P variables at toplevel unless really
4027         small.  Factorize size threshold computation from the existing one.
4028         (expand_used_vars): Refine comment.
4030 2013-11-14  Cong Hou  <congh@google.com>
4032         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
4033         address field as it can be obtained from dr.  Rename the struct.
4034         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
4035         steps of data references during sort.
4036         (vect_prune_runtime_alias_test_list): Adjust with the change to
4037         struct dr_with_seg_len.
4038         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
4039         Adjust with the change to struct dr_with_seg_len.
4041 2013-11-14  Jeff Law  <law@redhat.com>
4043         PR middle-end/59127
4044         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
4045         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
4046         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
4047         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
4048         edges, then ignore it.  If the statement exhibiting erroneous
4049         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
4050         then we can not optimize.
4051         (find_explicit_erroneous_behaviour): Likewise.
4053 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
4055         * gimplify-me.h:  New file.  Add prototypes.
4056         * gimplify.h: Don't include gimple.h.
4057         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
4058         Relocate from gimple.h.
4059         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
4060         is_gimple_sizepos): Move to gimplify.h.
4061         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
4062         (enum gsi_iterator_update): Move to gimple-iterator.h.
4063         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
4064         * gimplify-me.c: New File.
4065         (force_gimple_operand_1, force_gimple_operand,
4066         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4067         gimple_regimplify_operands): Relocate from gimplify.c.
4068         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
4069         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
4070         gimple_regimplify_operands): Move to gimplify-me.c.
4071         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
4072         from gimple.h.
4073         * Makefile.in (OBJS): Add gimplify-me.o
4074         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
4075         required.
4076         * cfgloopmanip.c: Likewise.
4077         * cgraphunit.c: Likewise.
4078         * cilk-common.c: Likewise.
4079         * fold-const.c: Likewise.
4080         * function.c: Likewise.
4081         * gimple-expr.c: Likewise.
4082         * gimple-fold.c: Likewise.
4083         * gimple-ssa-strength-reduction.c: Likewise.
4084         * gimple.c: Likewise.
4085         * graphite-clast-to-gimple.c: Likewise.
4086         * graphite-sese-to-poly.c: Likewise.
4087         * ipa-prop.c: Likewise.
4088         * ipa-split.c: Likewise.
4089         * ipa.c: Likewise.
4090         * langhooks.c: Likewise.
4091         * omp-low.c: Likewise.
4092         * sese.c: Likewise.
4093         * stor-layout.c: Likewise.
4094         * targhooks.c: Likewise.
4095         * trans-mem.c: Likewise.
4096         * tree-affine.c: Likewise.
4097         * tree-cfg.c: Likewise.
4098         * tree-cfgcleanup.c: Likewise.
4099         * tree-complex.c: Likewise.
4100         * tree-if-conv.c: Likewise.
4101         * tree-inline.c: Likewise.
4102         * tree-loop-distribution.c: Likewise.
4103         * tree-nested.c: Likewise.
4104         * tree-parloops.c: Likewise.
4105         * tree-predcom.c: Likewise.
4106         * tree-profile.c: Likewise.
4107         * tree-scalar-evolution.c: Likewise.
4108         * tree-sra.c: Likewise.
4109         * tree-ssa-address.c: Likewise.
4110         * tree-ssa-ccp.c: Likewise.
4111         * tree-ssa-dce.c: Likewise.
4112         * tree-ssa-forwprop.c: Likewise.
4113         * tree-ssa-ifcombine.c: Likewise.
4114         * tree-ssa-loop-im.c: Likewise.
4115         * tree-ssa-loop-ivopts.c: Likewise.
4116         * tree-ssa-loop-manip.c: Likewise.
4117         * tree-ssa-loop-niter.c: Likewise.
4118         * tree-ssa-loop-prefetch.c: Likewise.
4119         * tree-ssa-loop-unswitch.c: Likewise.
4120         * tree-ssa-math-opts.c: Likewise.
4121         * tree-ssa-phiopt.c: Likewise.
4122         * tree-ssa-phiprop.c: Likewise.
4123         * tree-ssa-pre.c: Likewise.
4124         * tree-ssa-propagate.c: Likewise.
4125         * tree-ssa-reassoc.c: Likewise.
4126         * tree-ssa-sccvn.c: Likewise.
4127         * tree-ssa-strlen.c: Likewise.
4128         * tree-ssa.c: Likewise.
4129         * tree-switch-conversion.c: Likewise.
4130         * tree-tailcall.c: Likewise.
4131         * tree-vect-data-refs.c: Likewise.
4132         * tree-vect-generic.c: Likewise.
4133         * tree-vect-loop-manip.c: Likewise.
4134         * tree-vect-loop.c: Likewise.
4135         * tree-vect-patterns.c: Likewise.
4136         * tree-vect-stmts.c: Likewise.
4137         * tree.c: Likewise.
4138         * tsan.c: Likewise.
4139         * value-prof.c: Likewise.
4140         * config/aarch64/aarch64.c: Likewise.
4141         * config/alpha/alpha.c: Likewise.
4142         * config/darwin.c: Likewise.
4143         * config/i386/i386.c: Likewise.
4144         * config/ia64/ia64.c: Likewise.
4145         * config/mep/mep.c: Likewise.
4146         * config/mips/mips.c: Likewise.
4147         * config/rs6000/rs6000.c: Likewise.
4148         * config/s390/s390.c: Likewise.
4149         * config/sh/sh.c: Likewise.
4150         * config/sparc/sparc.c: Likewise.
4151         * config/spu/spu.c: Likewise.
4152         * config/stormy16/stormy16.c: Likewise.
4153         * config/tilegx/tilegx.c: Likewise.
4154         * config/tilepro/tilepro.c: Likewise.
4155         * config/xtensa/xtensa.c: Likewise.
4157 2013-11-14  Diego Novillo  <dnovillo@google.com>
4159         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
4161 2013-11-14  Diego Novillo  <dnovillo@google.com>
4163         * tree.h: Include fold-const.h.
4164         (aggregate_value_p): Moved to function.h.
4165         (alloca_call_p): Moved to calls.h.
4166         (allocate_struct_function): Moved to function.h.
4167         (apply_tm_attr): Moved to attribs.h.
4168         (array_at_struct_end_p): Moved to expr.h.
4169         (array_ref_element_size): Moved to tree-dfa.h.
4170         (array_ref_low_bound): Moved to tree-dfa.h.
4171         (array_ref_up_bound): Moved to tree.h.
4172         (assemble_alias): Moved to cgraph.h.
4173         (bit_from_pos): Moved to stor-layout.h.
4174         (build_addr): Moved to tree-nested.h.
4175         (build_duplicate_type): Moved to tree-inline.h.
4176         (build_fold_addr_expr): Moved to fold-const.h.
4177         (build_fold_addr_expr_with_type): Moved to fold-const.h.
4178         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
4179         (build_fold_indirect_ref): Moved to fold-const.h.
4180         (build_fold_indirect_ref_loc): Moved to fold-const.h.
4181         (build_personality_function): Moved to tree.h.
4182         (build_range_check): Moved to fold-const.h.
4183         (build_simple_mem_ref): Moved to fold-const.h.
4184         (build_simple_mem_ref_loc): Moved to fold-const.h.
4185         (build_tm_abort_call): Moved to trans-mem.h.
4186         (byte_from_pos): Moved to stor-layout.h.
4187         (call_expr_flags): Moved to calls.h.
4188         (can_move_by_pieces): Moved to expr.h.
4189         (categorize_ctor_elements): Moved to expr.h.
4190         (change_decl_assembler_name): Moved to gcc-symtab.h.
4191         (combine_comparisons): Moved to fold-const.h.
4192         (complete_ctor_at_level_p): Moved to tree.h.
4193         (component_ref_field_offset): Moved to tree-dfa.h.
4194         (compute_builtin_object_size): Moved to tree-object-size.h.
4195         (compute_record_mode): Moved to stor-layout.h.
4196         (constant_boolean_node): Moved to fold-const.h.
4197         (constructor_static_from_elts_p): Moved to varasm.h.
4198         (cxx11_attribute_p): Moved to attribs.h.
4199         (debug_body): Moved to print-tree.h.
4200         (debug_find_tree): Moved to tree-inline.h.
4201         (debug_fold_checksum): Moved to fold-const.h.
4202         (debug_head): Moved to print-tree.h.
4203         (debug_head): Moved to print-tree.h.
4204         (debug_raw): Moved to print-tree.h.
4205         (debug_tree): Moved to print-tree.h.
4206         (debug_vec_tree): Moved to print-tree.h.
4207         (debug_verbose): Moved to print-tree.h.
4208         (debug_verbose): Moved to print-tree.h.
4209         (decl_attributes): Moved to attribs.h.
4210         (decl_binds_to_current_def_p): Moved to varasm.h.
4211         (decl_default_tls_model): Moved to varasm.h.
4212         (decl_replaceable_p): Moved to varasm.h.
4213         (div_if_zero_remainder): Moved to fold-const.h.
4214         (double_int mem_ref_offset): Moved to fold-const.h.
4215         (dump_addr): Moved to print-tree.h.
4216         (element_precision): Moved to machmode.h.
4217         (expand_dummy_function_end): Moved to function.h.
4218         (expand_function_end): Moved to function.h.
4219         (expand_function_start): Moved to function.h.
4220         (expand_label): Moved to stmt.h.
4221         (expr_first): Moved to tree-iterator.h.
4222         (expr_last): Moved to tree-iterator.h.
4223         (finalize_size_functions): Moved to stor-layout.h.
4224         (finish_builtin_struct): Moved to stor-layout.h.
4225         (finish_record_layout): Moved to stor-layout.h.
4226         (fixup_signed_type): Moved to stor-layout.h.
4227         (fixup_unsigned_type): Moved to stor-layout.h.
4228         (flags_from_decl_or_type): Moved to calls.h.
4229         (fold): Moved to fold-const.h.
4230         (fold_abs_const): Moved to fold-const.h.
4231         (fold_binary): Moved to fold-const.h.
4232         (fold_binary_loc): Moved to fold-const.h.
4233         (fold_binary_to_constant): Moved to fold-const.h.
4234         (fold_build1): Moved to fold-const.h.
4235         (fold_build1_initializer_loc): Moved to fold-const.h.
4236         (fold_build1_loc): Moved to fold-const.h.
4237         (fold_build1_stat_loc): Moved to fold-const.h.
4238         (fold_build2): Moved to fold-const.h.
4239         (fold_build2_initializer_loc): Moved to fold-const.h.
4240         (fold_build2_loc): Moved to fold-const.h.
4241         (fold_build2_stat_loc): Moved to fold-const.h.
4242         (fold_build3): Moved to fold-const.h.
4243         (fold_build3_loc): Moved to fold-const.h.
4244         (fold_build3_stat_loc): Moved to fold-const.h.
4245         (fold_build_call_array): Moved to fold-const.h.
4246         (fold_build_call_array_initializer): Moved to fold-const.h.
4247         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
4248         (fold_build_call_array_loc): Moved to fold-const.h.
4249         (fold_build_cleanup_point_expr): Moved to fold-const.h.
4250         (fold_convert): Moved to fold-const.h.
4251         (fold_convert_loc): Moved to fold-const.h.
4252         (fold_convertible_p): Moved to fold-const.h.
4253         (fold_defer_overflow_warnings): Moved to fold-const.h.
4254         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
4255         (fold_fma): Moved to fold-const.h.
4256         (fold_ignored_result): Moved to fold-const.h.
4257         (fold_indirect_ref): Moved to fold-const.h.
4258         (fold_indirect_ref_1): Moved to fold-const.h.
4259         (fold_indirect_ref_loc): Moved to fold-const.h.
4260         (fold_read_from_constant_string): Moved to fold-const.h.
4261         (fold_real_zero_addition_p): Moved to fold-const.h.
4262         (fold_single_bit_test): Moved to fold-const.h.
4263         (fold_strip_sign_ops): Moved to fold-const.h.
4264         (fold_ternary): Moved to fold-const.h.
4265         (fold_ternary_loc): Moved to fold-const.h.
4266         (fold_unary): Moved to tree-data-ref.h.
4267         (fold_unary_ignore_overflow): Moved to fold-const.h.
4268         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
4269         (fold_unary_loc): Moved to fold-const.h.
4270         (fold_unary_to_constant): Moved to fold-const.h.
4271         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
4272         (fold_undefer_overflow_warnings): Moved to fold-const.h.
4273         (folding_initializer): Moved to fold-const.h.
4274         (free_temp_slots): Moved to function.h.
4275         (generate_setjmp_warnings): Moved to function.h.
4276         (get_attribute_name): Moved to attribs.h.
4277         (get_identifier): Moved to stringpool.h.
4278         (get_identifier_with_length): Moved to stringpool.h.
4279         (get_inner_reference): Moved to tree.h.
4280         (gimple_alloca_call_p): Moved to calls.h.
4281         (gimplify_parameters): Moved to function.h.
4282         (highest_pow2_factor): Moved to expr.h.
4283         (indent_to): Moved to print-tree.h.
4284         (init_attributes): Moved to attribs.h.
4285         (init_dummy_function_start): Moved to function.h.
4286         (init_function_start): Moved to function.h.
4287         (init_inline_once): Moved to tree-inline.h.
4288         (init_object_sizes): Moved to tree-object-size.h.
4289         (init_temp_slots): Moved to function.h.
4290         (init_tree_optimization_optabs): Moved to optabs.h.
4291         (initialize_sizetypes): Moved to stor-layout.h.
4292         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
4293         (initializer_constant_valid_p): Moved to varasm.h.
4294         (int_const_binop): Moved to fold-const.h.
4295         (internal_reference_types): Moved to stor-layout.h.
4296         (invert_tree_comparison): Moved to fold-const.h.
4297         (invert_truthvalue): Moved to fold-const.h.
4298         (invert_truthvalue_loc): Moved to fold-const.h.
4299         (is_tm_ending_fndecl): Moved to trans-mem.h.
4300         (is_tm_may_cancel_outer): Moved to trans-mem.h.
4301         (is_tm_pure): Moved to trans-mem.h.
4302         (is_tm_safe): Moved to trans-mem.h.
4303         (layout_decl): Moved to stor-layout.h.
4304         (layout_type): Moved to stor-layout.h.
4305         (lookup_attribute_spec): Moved to attribs.h.
4306         (make_accum_type): Moved to stor-layout.h.
4307         (make_decl_one_only): Moved to varasm.h.
4308         (make_decl_rtl): Moved to tree.h.
4309         (make_decl_rtl_for_debug): Moved to varasm.h.
4310         (make_fract_type): Moved to stor-layout.h.
4311         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
4312         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
4313         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
4314         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
4315         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
4316         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
4317         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
4318         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
4319         (make_range): Moved to fold-const.h.
4320         (make_range_step): Moved to fold-const.h.
4321         (make_sat_signed_accum_type): Moved to stor-layout.h.
4322         (make_sat_signed_fract_type): Moved to stor-layout.h.
4323         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
4324         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
4325         (make_signed_accum_type): Moved to stor-layout.h.
4326         (make_signed_fract_type): Moved to stor-layout.h.
4327         (make_signed_type): Moved to stor-layout.h.
4328         (make_unsigned_accum_type): Moved to stor-layout.h.
4329         (make_unsigned_fract_type): Moved to stor-layout.h.
4330         (make_unsigned_type): Moved to stor-layout.h.
4331         (mark_decl_referenced): Moved to varasm.h.
4332         (mark_referenced): Moved to varasm.h.
4333         (may_negate_without_overflow_p): Moved to fold-const.h.
4334         (maybe_get_identifier): Moved to stringpool.h.
4335         (merge_ranges): Moved to fold-const.h.
4336         (merge_weak): Moved to varasm.h.
4337         (mode_for_size_tree): Moved to stor-layout.h.
4338         (multiple_of_p): Moved to fold-const.h.
4339         (must_pass_in_stack_var_size): Moved to calls.h.
4340         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
4341         (native_encode_expr): Moved to fold-const.h.
4342         (native_interpret_expr): Moved to fold-const.h.
4343         (non_lvalue): Moved to fold-const.h.
4344         (non_lvalue_loc): Moved to fold-const.h.
4345         (normalize_offset): Moved to stor-layout.h.
4346         (normalize_rli): Moved to stor-layout.h.
4347         (notice_global_symbol): Moved to varasm.h.
4348         (omit_one_operand): Moved to fold-const.h.
4349         (omit_one_operand_loc): Moved to fold-const.h.
4350         (omit_two_operands): Moved to fold-const.h.
4351         (omit_two_operands_loc): Moved to fold-const.h.
4352         (operand_equal_p): Moved to tree-data-ref.h.
4353         (parse_input_constraint): Moved to stmt.h.
4354         (parse_output_constraint): Moved to stmt.h.
4355         (place_field): Moved to stor-layout.h.
4356         (pop_function_context): Moved to function.h.
4357         (pop_temp_slots): Moved to function.h.
4358         (pos_from_bit): Moved to stor-layout.h.
4359         (preserve_temp_slots): Moved to function.h.
4360         (print_node): Moved to print-tree.h.
4361         (print_node_brief): Moved to print-tree.h.
4362         (print_rtl): Moved to rtl.h.
4363         (process_pending_assemble_externals): Moved to varasm.h.
4364         (ptr_difference_const): Moved to fold-const.h.
4365         (push_function_context): Moved to function.h.
4366         (push_struct_function): Moved to function.h.
4367         (push_temp_slots): Moved to function.h.
4368         (record_tm_replacement): Moved to trans-mem.h.
4369         (relayout_decl): Moved to stor-layout.h.
4370         (resolve_asm_operand_names): Moved to stmt.h.
4371         (resolve_unique_section): Moved to varasm.h.
4372         (rli_size_so_far): Moved to stor-layout.h.
4373         (rli_size_unit_so_far): Moved to stor-layout.h.
4374         (round_down): Moved to fold-const.h.
4375         (round_down_loc): Moved to fold-const.h.
4376         (round_up): Moved to fold-const.h.
4377         (round_up_loc): Moved to fold-const.h.
4378         (set_decl_incoming_rtl): Moved to emit-rtl.h.
4379         (set_decl_rtl): Moved to tree.h.
4380         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
4381         (set_user_assembler_name): Moved to varasm.h.
4382         (setjmp_call_p): Moved to calls.h.
4383         (size_binop): Moved to fold-const.h.
4384         (size_binop_loc): Moved to fold-const.h.
4385         (size_diffop): Moved to fold-const.h.
4386         (size_diffop_loc): Moved to fold-const.h.
4387         (size_int_kind): Moved to fold-const.h.
4388         (stack_protect_epilogue): Moved to function.h.
4389         (start_record_layout): Moved to stor-layout.h.
4390         (supports_one_only): Moved to varasm.h.
4391         (swap_tree_comparison): Moved to fold-const.h.
4392         (tm_malloc_replacement): Moved to trans-mem.h.
4393         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
4394         (tree build_invariant_address): Moved to fold-const.h.
4395         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
4396         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
4397         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
4398         (tree_expr_nonnegative_p): Moved to fold-const.h.
4399         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
4400         (tree_output_constant_def): Moved to varasm.h.
4401         (tree_overlaps_hard_reg_set): Moved to stmt.h.
4402         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
4403         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
4404         (tree_swap_operands_p): Moved to fold-const.h.
4405         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
4406         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
4407         (update_alignment_for_field): Moved to stor-layout.h.
4408         (use_register_for_decl): Moved to function.h.
4409         (variable_size): Moved to rtl.h.
4410         (vector_type_mode): Moved to stor-layout.h.
4411         * cgraph.h: Corresponding changes.
4412         * emit-rtl.h: Corresponding changes.
4413         * expr.h: Corresponding changes.
4414         * function.h: Corresponding changes.
4415         * optabs.h: Corresponding changes.
4416         * trans-mem.h: Corresponding changes.
4417         Protect against multiple inclusion.
4418         * tree-inline.h: Corresponding changes.
4419         * tree-iterator.h: Corresponding changes.
4420         * tree-dfa.h: Include expr.h.
4421         * tree-ssanames.h: Include stringpool.h.
4422         * attribs.h: New file.
4423         * calls.h: New file.
4424         * fold-const.h: New file.
4425         * gcc-symtab.h: New file.
4426         * print-rtl.h: New file.
4427         * print-tree.h: New file.
4428         * stmt.h: New file.
4429         * stor-layout.h: New file.
4430         * strinpool.h: New file.
4431         * tree-nested.h: New file
4432         * tree-object-size.h: New file.
4433         * varasm.h: New file.
4435 2013-11-14  Diego Novillo  <dnovillo@google.com>
4437         * alias.c: Include varasm.h.
4438         Include expr.h.
4439         * asan.c: Include calls.h.
4440         Include stor-layout.h.
4441         Include varasm.h.
4442         * attribs.c: Include stringpool.h.
4443         Include attribs.h.
4444         Include stor-layout.h.
4445         * builtins.c: Include stringpool.h.
4446         Include stor-layout.h.
4447         Include calls.h.
4448         Include varasm.h.
4449         Include tree-object-size.h.
4450         * calls.c: Include stor-layout.h.
4451         Include varasm.h.
4452         Include stringpool.h.
4453         Include attribs.h.
4454         * cfgexpand.c: Include stringpool.h.
4455         Include varasm.h.
4456         Include stor-layout.h.
4457         Include stmt.h.
4458         Include print-tree.h.
4459         * cgraph.c: Include varasm.h.
4460         Include calls.h.
4461         Include print-tree.h.
4462         * cgraphclones.c: Include stringpool.h.
4463         Include function.h.
4464         Include emit-rtl.h.
4465         Move inclusion of rtl.h earlier in the file.
4466         * cgraphunit.c: Include varasm.h.
4467         Include stor-layout.h.
4468         Include stringpool.h.
4469         * cilk-common.c: Include stringpool.h.
4470         Include stor-layout.h.
4471         * combine.c: Include stor-layout.h.
4472         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
4473         Include stringpool.h.
4474         Include calls.h.
4475         * config/aarch64/aarch64.c: Include stringpool.h.
4476         Include stor-layout.h.
4477         Include calls.h.
4478         Include varasm.h.
4479         * config/alpha/alpha.c: Include stor-layout.h.
4480         Include calls.h.
4481         Include varasm.h.
4482         * config/arc/arc.c: Include varasm.h.
4483         Include stor-layout.h.
4484         Include stringpool.h.
4485         Include calls.h.
4486         * config/arm/arm.c: Include stringpool.h.
4487         Include stor-layout.h.
4488         Include calls.h.
4489         Include varasm.h.
4490         * config/avr/avr-c.c: Include stor-layout.h.
4491         * config/avr/avr-log.c: Include print-tree.h.
4492         * config/avr/avr.c: Include print-tree.h.
4493         Include calls.h.
4494         Include stor-layout.h.
4495         Include stringpool.h.
4496         * config/bfin/bfin.c: Include varasm.h.
4497         Include calls.h.
4498         * config/c6x/c6x.c: Include stor-layout.h.
4499         Include varasm.h.
4500         Include calls.h.
4501         Include stringpool.h.
4502         * config/cr16/cr16.c: Include stor-layout.h.
4503         Include calls.h.
4504         * config/cris/cris.c: Include varasm.h.
4505         Include stor-layout.h.
4506         Include calls.h.
4507         Include stmt.h.
4508         * config/darwin.c: Include stringpool.h.
4509         Include varasm.h.
4510         Include stor-layout.h.
4511         * config/epiphany/epiphany.c: Include stor-layout.h.
4512         Include varasm.h.
4513         Include calls.h.
4514         Include stringpool.h.
4515         * config/fr30/fr30.c: Include stor-layout.h.
4516         Include varasm.h.
4517         * config/frv/frv.c: Include varasm.h.
4518         Include stor-layout.h.
4519         Include stringpool.h.
4520         * config/h8300/h8300.c: Include stor-layout.h.
4521         Include varasm.h.
4522         Include calls.h.
4523         Include stringpool.h.
4524         * config/i386/i386.c: Include stringpool.h.
4525         Include attribs.h.
4526         Include calls.h.
4527         Include stor-layout.h.
4528         Include varasm.h.
4529         * config/i386/winnt-cxx.c: Include stringpool.h.
4530         Include attribs.h.
4531         * config/i386/winnt.c: Include stringpool.h.
4532         Include varasm.h.
4533         * config/ia64/ia64-c.c: Include stringpool.h.
4534         * config/ia64/ia64.c: Include stringpool.h.
4535         Include stor-layout.h.
4536         Include calls.h.
4537         Include varasm.h.
4538         * config/iq2000/iq2000.c: Include stor-layout.h.
4539         Include calls.h.
4540         Include varasm.h.
4541         * config/lm32/lm32.c: Include calls.h.
4542         * config/m32c/m32c.c: Include stor-layout.h.
4543         Include varasm.h.
4544         Include calls.h.
4545         * config/m32r/m32r.c: Include stor-layout.h.
4546         Include varasm.h.
4547         Include stringpool.h.
4548         Include calls.h.
4549         * config/m68k/m68k.c: Include calls.h.
4550         Include stor-layout.h.
4551         Include varasm.h.
4552         * config/mcore/mcore.c: Include stor-layout.h.
4553         Include varasm.h.
4554         Include stringpool.h.
4555         Include calls.h.
4556         * config/mep/mep.c: Include varasm.h.
4557         Include calls.h.
4558         Include stringpool.h.
4559         Include stor-layout.h.
4560         * config/microblaze/microblaze.c: Include varasm.h.
4561         Include stor-layout.h.
4562         Include calls.h.
4563         * config/mips/mips.c: Include varasm.h.
4564         Include stringpool.h.
4565         Include stor-layout.h.
4566         Include calls.h.
4567         * config/mmix/mmix.c: Include varasm.h.
4568         Include stor-layout.h.
4569         Include calls.h.
4570         * config/mn10300/mn10300.c: Include stor-layout.h.
4571         Include varasm.h.
4572         Include calls.h.
4573         * config/moxie/moxie.c: Include stor-layout.h.
4574         Include varasm.h.
4575         Include calls.h.
4576         * config/msp430/msp430.c: Include stor-layout.h.
4577         Include calls.h.
4578         * config/nds32/nds32.c: Include stor-layout.h.
4579         Include varasm.h.
4580         Include calls.h.
4581         * config/pa/pa.c: Include stor-layout.h.
4582         Include stringpool.h.
4583         Include varasm.h.
4584         Include calls.h.
4585         * config/pdp11/pdp11.c: Include stor-layout.h.
4586         Include varasm.h.
4587         Include calls.h.
4588         * config/picochip/picochip.c: Include calls.h.
4589         Include stor-layout.h.
4590         Include stringpool.h.
4591         Include varasm.h.
4592         * config/rl78/rl78.c: Include varasm.h.
4593         Include stor-layout.h.
4594         Include calls.h.
4595         * config/rs6000/rs6000-c.c: Include stor-layout.h.
4596         Include stringpool.h.
4597         * config/rs6000/rs6000.c: Include stringpool.h.
4598         Include stor-layout.h.
4599         Include calls.h.
4600         Include print-tree.h.
4601         Include varasm.h.
4602         * config/rx/rx.c: Include varasm.h.
4603         Include stor-layout.h.
4604         Include calls.h.
4605         * config/s390/s390.c: Include print-tree.h.
4606         Include stringpool.h.
4607         Include stor-layout.h.
4608         Include varasm.h.
4609         Include calls.h.
4610         * config/score/score.c: Include stringpool.h.
4611         Include calls.h.
4612         Include varasm.h.
4613         Include stor-layout.h.
4614         * config/sh/sh-c.c: Include stringpool.h.
4615         Include attribs.h.h.
4616         * config/sh/sh.c: Include stringpool.h.
4617         Include stor-layout.h.
4618         Include calls.h.
4619         Include varasm.h.
4620         * config/sol2-c.c: Include stringpool.h.
4621         Include attribs.h.
4622         * config/sol2-cxx.c: Include stringpool.h.
4623         * config/sol2.c: Include stringpool.h.
4624         Include varasm.h.
4625         * config/sparc/sparc.c: Include stringpool.h.
4626         Include stor-layout.h.
4627         Include calls.h.
4628         Include varasm.h.
4629         * config/spu/spu-c.c: Include stringpool.h.
4630         * config/spu/spu.c: Include stringpool.h.
4631         Include stor-layout.h.
4632         Include calls.h.
4633         Include varasm.h.
4634         * config/stormy16/stormy16.c: Include stringpool.h.
4635         Include stor-layout.h.
4636         Include varasm.h.
4637         Include calls.h.
4638         * config/tilegx/tilegx.c: Include stringpool.h.
4639         Include stor-layout.h.
4640         Include varasm.h.
4641         Include calls.h.
4642         * config/tilepro/tilepro.c: Include stringpool.h.
4643         Include stor-layout.h.
4644         Include varasm.h.
4645         Include calls.h.
4646         * config/v850/v850-c.c: Include stringpool.h.
4647         Include attribs.h.
4648         * config/v850/v850.c: Include stringpool.h.
4649         Include stor-layout.h.
4650         Include varasm.h.
4651         Include calls.h.
4652         * config/vax/vax.c: Include calls.h.
4653         Include varasm.h.
4654         * config/vms/vms.c: Include stringpool.h.
4655         * config/vxworks.c: Include stringpool.h.
4656         * config/xtensa/xtensa.c: Include stringpool.h.
4657         Include stor-layout.h.
4658         Include calls.h.
4659         Include varasm.h.
4660         * convert.c: Include stor-layout.h.
4661         * coverage.c: Include stringpool.h.
4662         Include stor-layout.h.
4663         * dbxout.c: Include varasm.h.
4664         Include stor-layout.h.
4665         * dojump.c: Include stor-layout.h.
4666         * dse.c: Include stor-layout.h.
4667         * dwarf2asm.c: Include stringpool.h.
4668         Include varasm.h.
4669         * dwarf2cfi.c: Include stor-layout.h.
4670         * dwarf2out.c: Include rtl.h.
4671         Include stringpool.h.
4672         Include stor-layout.h.
4673         Include varasm.h.
4674         Include function.h.
4675         Include emit-rtl.h.
4676         Move inclusion of rtl.h earlier in the file.
4677         * emit-rtl.c: Include varasm.h.
4678         * except.c: Include stringpool.h.
4679         Include stor-layout.h.
4680         * explow.c: Include stor-layout.h.
4681         * expmed.c: Include stor-layout.h.
4682         * expr.c: Include stringpool.h.
4683         Include stor-layout.h.
4684         Include attribs.h.
4685         Include varasm.h.
4686         * final.c: Include varasm.h.
4687         * fold-const.c: Include stor-layout.h.
4688         Include calls.h.
4689         Include tree-iterator.h.
4690         * function.c: Include stor-layout.h.
4691         Include varasm.h.
4692         Include stringpool.h.
4693         * genattrtab.c (write_header): Emit includes for varasm.h,
4694         stor-layout.h and calls.h.
4695         * genautomata.c (main): Likewise.
4696         * genemit.c: Likewise.
4697         * genopinit.c: Likewise.
4698         * genoutput.c (output_prologue): Likewise.
4699         * genpeep.c: Likewise.
4700         * genpreds.c (write_insn_preds_c): Likewise.
4701         * gengtype.c (open_base_files): Add stringpool.h.
4702         * gimple-expr.c: Include stringpool.h.
4703         Include stor-layout.h.
4704         * gimple-fold.c: Include stringpool.h.
4705         Include expr.h.
4706         Include stmt.h.
4707         Include stor-layout.h.
4708         * gimple-low.c: Include tree-nested.h.
4709         Include calls.h.
4710         * gimple-pretty-print.c: Include stringpool.h.
4711         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
4712         Include expr.h.
4713         * gimple-walk.c: Include stmt.h.
4714         * gimple.c: Include calls.h.
4715         Include stmt.h.
4716         Include stor-layout.h.
4717         * gimplify.c: Include stringpool.h.
4718         Include calls.h.
4719         Include varasm.h.
4720         Include stor-layout.h.
4721         Include stmt.h.
4722         Include print-tree.h.
4723         Include expr.h.
4724         * gimplify-me.c: Include stmt.h
4725         Include stor-layout.h
4726         * internal-fn.c: Include stor-layout.h.
4727         * ipa-devirt.c: Include print-tree.h.
4728         Include calls.h.
4729         * ipa-inline-analysis.c: Include stor-layout.h.
4730         Include stringpool.h.
4731         Include print-tree.h.
4732         * ipa-inline.c: Include trans-mem.h.
4733         Include calls.h.
4734         * ipa-prop.c: Include expr.h.
4735         Include stor-layout.h.
4736         Include print-tree.h.
4737         * ipa-pure-const.c: Include print-tree.h.
4738         Include calls.h.
4739         * ipa-reference.c: Include calls.h.
4740         * ipa-split.c: Include stringpool.h.
4741         Include expr.h.
4742         Include calls.h.
4743         * ipa.c: Include calls.h.
4744         Include stringpool.h.
4745         * langhooks.c: Include stringpool.h.
4746         Include attribs.h.
4747         * lto-cgraph.c: Include stringpool.h.
4748         * lto-streamer-in.c: Include stringpool.h.
4749         * lto-streamer-out.c: Include stor-layout.h.
4750         Include stringpool.h.
4751         * omp-low.c: Include stringpool.h.
4752         Include stor-layout.h.
4753         Include expr.h.
4754         * optabs.c: Include stor-layout.h.
4755         Include stringpool.h.
4756         Include varasm.h.
4757         * passes.c: Include varasm.h.
4758         * predict.c: Include calls.h.
4759         * print-rtl.c: Include print-tree.h.
4760         * print-tree.c: Include varasm.h.
4761         Include print-rtl.h.
4762         Include stor-layout.h.
4763         * realmpfr.c: Include stor-layout.h.
4764         * reg-stack.c: Include varasm.h.
4765         * sdbout.c: Include varasm.h.
4766         Include stor-layout.h.
4767         * simplify-rtx.c: Include varasm.h.
4768         * stmt.c: Include varasm.h.
4769         Include stor-layout.h.
4770         * stor-layout.c: Include stor-layout.h.
4771         Include stringpool.h.
4772         Include varasm.h.
4773         Include print-tree.h.
4774         * symtab.c: Include rtl.h.
4775         Include print-tree.h.
4776         Include varasm.h.
4777         Include function.h.
4778         Include emit-rtl.h.
4779         * targhooks.c: Include stor-layout.h.
4780         Include varasm.h.
4781         * toplev.c: Include varasm.h.
4782         Include tree-inline.h.
4783         * trans-mem.c: Include calls.h.
4784         Include function.h.
4785         Include rtl.h.
4786         Include emit-rtl.h.
4787         * tree-affine.c: Include expr.h.
4788         * tree-browser.c: Include print-tree.h.
4789         * tree-call-cdce.c: Include stor-layout.h.
4790         * tree-cfg.c: Include trans-mem.h.
4791         Include stor-layout.h.
4792         Include print-tree.h.
4793         * tree-complex.c: Include stor-layout.h.
4794         * tree-data-ref.c: Include expr.h.
4795         * tree-dfa.c: Include stor-layout.h.
4796         * tree-eh.c: Include expr.h.
4797         Include calls.h.
4798         * tree-emutls.c: Include stor-layout.h.
4799         Include varasm.h.
4800         * tree-if-conv.c: Include stor-layout.h.
4801         * tree-inline.c: Include stor-layout.h.
4802         Include calls.h.
4803         * tree-loop-distribution.c: Include stor-layout.h.
4804         * tree-nested.c: Include stringpool.h.
4805         Include stor-layout.h.
4806         * tree-object-size.c: Include tree-object-size.h.
4807         * tree-outof-ssa.c: Include stor-layout.h.
4808         * tree-parloops.c: Include stor-layout.h.
4809         Include tree-nested.h.
4810         * tree-pretty-print.c: Include stor-layout.h.
4811         Include expr.h.
4812         * tree-profile.c: Include varasm.h.
4813         Include tree-nested.h.
4814         * tree-scalar-evolution.c: Include expr.h.
4815         * tree-sra.c: Include stor-layout.h.
4816         * tree-ssa-address.c: Include stor-layout.h.
4817         * tree-ssa-ccp.c: Include stor-layout.h.
4818         * tree-ssa-dce.c: Include calls.h.
4819         * tree-ssa-dom.c: Include stor-layout.h.
4820         * tree-ssa-forwprop.c: Include stor-layout.h.
4821         * tree-ssa-ifcombine.c: Include stor-layout.h.
4822         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
4823         * tree-ssa-loop-niter.c: Include calls.h.
4824         Include expr.h.
4825         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
4826         * tree-ssa-math-opts.c: Include stor-layout.h.
4827         * tree-ssa-operands.c: Include stmt.h.
4828         Include print-tree.h.
4829         * tree-ssa-phiopt.c: Include stor-layout.h.
4830         * tree-ssa-reassoc.c: Include stor-layout.h.
4831         * tree-ssa-sccvn.c: Include stor-layout.h.
4832         * tree-ssa-sink.c: Include stor-layout.h.
4833         * tree-ssa-strlen.c: Include stor-layout.h.
4834         * tree-ssa-structalias.c: Include stor-layout.h.
4835         Include stmt.h.
4836         * tree-ssa-tail-merge.c: Include stor-layout.h.
4837         Include trans-mem.h.
4838         * tree-ssa-uncprop.c: Include stor-layout.h.
4839         * tree-ssa.c: Include stor-layout.h.
4840         * tree-ssanames.c: Include stor-layout.h.
4841         * tree-streamer-in.c: Include stringpool.h.
4842         * tree-streamer-out.c: Include stor-layout.h.
4843         * tree-switch-conversion.c: Include varasm.h.
4844         Include stor-layout.h.
4845         * tree-tailcall.c: Include stor-layout.h.
4846         * tree-vect-data-refs.c: Include stor-layout.h.
4847         * tree-vect-generic.c: Include stor-layout.h.
4848         * tree-vect-loop.c: Include stor-layout.h.
4849         * tree-vect-patterns.c: Include stor-layout.h.
4850         * tree-vect-slp.c: Include stor-layout.h.
4851         * tree-vect-stmts.c: Include stor-layout.h.
4852         * tree-vectorizer.c: Include stor-layout.h.
4853         * tree-vrp.c: Include stor-layout.h.
4854         Include calls.h.
4855         * tree.c: Include stor-layout.h.
4856         Include calls.h.
4857         Include attribs.h.
4858         Include varasm.h.
4859         * tsan.c: Include expr.h.
4860         * ubsan.c: Include stor-layout.h.
4861         Include stringpool.h.
4862         * value-prof.c: Include tree-nested.h.
4863         Include calls.h.
4864         * var-tracking.c: Include varasm.h.
4865         Include stor-layout.h.
4866         * varasm.c: Include stor-layout.h.
4867         Include stringpool.h.
4868         Include gcc-symtab.h.
4869         Include varasm.h.
4870         * varpool.c: Include varasm.h.
4871         * vmsdbgout.c: Include varasm.h.
4872         * xcoffout.c: Include varasm.h.
4874 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
4876         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
4877         use (.&-4) idiom.
4879 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4881         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
4883 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4884             Alan Modra  <amodra@gmail.com>
4886         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
4887         (RS6000_SAVE_TOC): Remove.
4888         (RS6000_TOC_SAVE_SLOT): New macro.
4889         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
4890         (rs6000_parm_start): Use it.
4891         (rs6000_function_arg_advance_1): Likewise.
4892         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
4893         (rs6000_emit_epilogue): Likewise.
4894         (rs6000_call_aix): Likewise.
4895         (rs6000_output_function_prologue): Do not save/restore r11
4896         around calling _mcount for ABI_ELFv2.
4898 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4899             Alan Modra  <amodra@gmail.com>
4901         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
4902         Add prototype.
4903         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
4904         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
4905         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
4906         (rs6000_function_parms_need_stack): Likewise.
4907         (rs6000_reg_parm_stack_space): Likewise.
4908         (rs6000_function_arg): Do not replace BLKmode by Pmode when
4909         returning a register argument.
4911 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4912             Michael Gschwind  <mkg@us.ibm.com>
4914         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
4915         (ALTIVEC_ARG_MAX_RETURN): Likewise.
4916         (FUNCTION_VALUE_REGNO_P): Use them.
4917         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
4918         (rs6000_return_in_msb): New function.
4919         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
4920         Handle aggregates of up to 16 bytes for ELFv2.
4921         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
4923 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4924             Michael Gschwind  <mkg@us.ibm.com>
4926         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
4927         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
4928         (rs6000_discover_homogeneous_aggregate): Likewise.
4929         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
4930         (rs6000_function_arg_advance_1): Likewise.
4931         (rs6000_function_arg): Likewise.
4932         (rs6000_arg_partial_bytes): Likewise.
4933         (rs6000_psave_function_arg): Handle BLKmode arguments.
4935 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4936             Michael Gschwind  <mkg@us.ibm.com>
4938         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
4939         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
4940         (rs6000_discover_homogeneous_aggregate): Likewise.
4941         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
4942         (rs6000_function_arg_advance_1): Likewise.
4943         (rs6000_function_arg): Likewise.
4944         (rs6000_arg_partial_bytes): Likewise.
4945         (rs6000_psave_function_arg): Handle BLKmode arguments.
4947 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4949         * config/rs6000/rs6000.c (machine_function): New member
4950         r2_setup_needed.
4951         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
4952         (rs6000_output_mi_thunk): Set r2_setup_needed.
4953         (rs6000_output_function_prologue): Output global entry point
4954         prologue and local entry point marker if needed for ABI_ELFv2.
4955         Output -mprofile-kernel code here.
4956         (output_function_profiler): Do not output -mprofile-kernel
4957         code here; moved to rs6000_output_function_prologue.
4958         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
4960         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
4961         (rs6000_output_function_entry): Likewise.
4962         (rs6000_assemble_integer): Likewise.
4963         (rs6000_elf_encode_section_info): Likewise.
4964         (rs6000_elf_declare_function_name): Do not create dot symbols
4965         or .opd section for ABI_ELFv2.
4967         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
4968         (rs6000_trampoline_init): Likewise.
4969         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
4971         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
4972         for function descriptors in ABI_ELFv2.
4974         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
4975         on ABI_AIX only, not ABI_ELFv2.
4976         ("*call_value_indirect_aix<mode>"): Likewise.
4977         ("*call_indirect_elfv2<mode>"): New pattern.
4978         ("*call_value_indirect_elfv2<mode>"): Likewise.
4980         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
4981         check for function descriptors in ABI_ELFv2.
4982         ("current_file_function_operand"): Likewise.
4984         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
4985         (toc): Undefine.
4986         (FUNC_NAME): Define ELFv2 variant.
4987         (JUMP_TARGET): Likewise.
4988         (FUNC_START): Likewise.
4989         (HIDDEN_FUNC): Likewise.
4990         (FUNC_END): Likeiwse.
4992 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4994         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
4995         and --with-abi=elfv2.
4996         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
4997         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
4998         (mabi=elfv2): Likewise.
4999         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
5000         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
5001         if !RS6000_BI_ARCH.
5002         (ELFv2_ABI_CHECK): New macro.
5003         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
5004         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
5005         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
5006         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
5007         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
5009         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
5010         (debug_stack_info): Likewise.
5011         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
5012         (rs6000_legitimize_tls_address): Likewise.
5013         (rs6000_conditional_register_usage): Likewise.
5014         (rs6000_emit_move): Likewise.
5015         (init_cumulative_args): Likewise.
5016         (rs6000_function_arg_advance_1): Likewise.
5017         (rs6000_function_arg): Likewise.
5018         (rs6000_arg_partial_bytes): Likewise.
5019         (rs6000_output_function_entry): Likewise.
5020         (rs6000_assemble_integer): Likewise.
5021         (rs6000_savres_strategy): Likewise.
5022         (rs6000_stack_info): Likewise.
5023         (rs6000_function_ok_for_sibcall): Likewise.
5024         (rs6000_emit_load_toc_table): Likewise.
5025         (rs6000_savres_routine_name): Likewise.
5026         (ptr_regno_for_savres): Likewise.
5027         (rs6000_emit_prologue): Likewise.
5028         (rs6000_emit_epilogue): Likewise.
5029         (rs6000_output_function_epilogue): Likewise.
5030         (output_profile_hook): Likewise.
5031         (output_function_profiler): Likewise.
5032         (rs6000_trampoline_size): Likewise.
5033         (rs6000_trampoline_init): Likewise.
5034         (rs6000_elf_output_toc_section_asm_op): Likewise.
5035         (rs6000_elf_encode_section_info): Likewise.
5036         (rs6000_elf_reloc_rw_mask): Likewise.
5037         (rs6000_elf_declare_function_name): Likewise.
5038         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
5039         except that rs6000_compat_align_parm is always assumed false.
5040         (rs6000_gimplify_va_arg): Likewise.
5041         (rs6000_call_aix): Update comment.
5042         (rs6000_sibcall_aix): Likewise.
5043         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
5044         Treat ABI_ELFv2 the same as ABI_AIX.
5045         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5046         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
5047         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
5048         ("load_toc_aix_si"): Likewise.
5049         ("load_toc_aix_di"): Likewise.
5050         ("call"): Likewise.
5051         ("call_value"): Likewise.
5052         ("*call_local_aix<mode>"): Likewise.
5053         ("*call_value_local_aix<mode>"): Likewise.
5054         ("*call_nonlocal_aix<mode>"): Likewise.
5055         ("*call_value_nonlocal_aix<mode>"): Likewise.
5056         ("*call_indirect_aix<mode>"): Likewise.
5057         ("*call_value_indirect_aix<mode>"): Likewise.
5058         ("sibcall"): Likewise.
5059         ("sibcall_value"): Likewise.
5060         ("*sibcall_aix<mode>"): Likewise.
5061         ("*sibcall_value_aix<mode>"): Likewise.
5062         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
5063         ("current_file_function_operand"): Likewise.
5065 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5067         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
5068         by making use of the fact that for vector / floating point arguments
5069         passed both in VRs/FPRs and in the fixed parameter area, the partial
5070         bytes mechanism is in fact not used.
5072 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5074         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
5075         (rs6000_finish_function_arg): Likewise.
5076         (rs6000_function_arg): Use rs6000_psave_function_arg and
5077         rs6000_finish_function_arg to handle both vector and floating
5078         point arguments that are also passed in GPRs / the stack.
5080 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5082         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
5083         (USE_ALTIVEC_FOR_ARG_P): Likewise.
5084         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
5085         (rs6000_function_arg_advance_1):Likewise.
5086         (rs6000_darwin64_record_arg_recurse): Likewise.
5087         (rs6000_function_arg): Likewise.
5088         (rs6000_arg_partial_bytes): Likewise.
5090 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5092         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
5093         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
5094         (rs6000_savres_strategy): Likewise.
5095         (rs6000_return_addr): Likewise.
5096         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
5097         testing for ABI_V4 (since ABI_DARWIN is impossible here).
5098         (rs6000_emit_prologue): Likewise.
5099         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
5100         (rs6000_elf_declare_function_name): Remove duplicated test.
5101         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
5102         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
5103         ("load_toc_v4_PIC_1_normal"): Likewise.
5104         ("load_toc_v4_PIC_1_476"): Likewise.
5105         ("load_toc_v4_PIC_1b"): Likewise.
5106         ("load_toc_v4_PIC_1b_normal"): Likewise.
5107         ("load_toc_v4_PIC_1b_476"): Likewise.
5108         ("load_toc_v4_PIC_2"): Likewise.
5109         ("load_toc_v4_PIC_3b"): Likewise.
5110         ("load_toc_v4_PIC_3c"): Likewise.
5111         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
5112         (RS6000_SAVE_AREA): Likewise.
5113         (FP_ARG_MAX_REG): Likewise.
5114         (RETURN_ADDRESS_OFFSET): Likewise.
5115         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
5116         of ABI_AIX.
5117         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
5118         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5120 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5122         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
5123         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
5124         Create call insn directly instead of via various gen_... routines.
5125         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
5126         (rs6000_sibcall_aix): New function.
5127         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
5128         (TOC_SAVE_OFFSET_64BIT): Likewise.
5129         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
5130         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
5131         (AIX_FUNC_DESC_SC_32BIT): Likewise.
5132         (AIX_FUNC_DESC_SC_64BIT): Likewise.
5133         ("call" expander): Call rs6000_call_aix.
5134         ("call_value" expander): Likewise.
5135         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
5136         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5137         ("*call_indirect_aix<mode>"): ... by this insn pattern.
5138         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
5139         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
5140         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
5141         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
5142         ("*call_nonlocal_aix<mode>"): ... this pattern.
5143         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
5144         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
5145         ("*call_local_aix<mode>"): New insn pattern.
5146         ("*call_value_local_aix<mode>"): Likewise.
5147         ("sibcall" expander): Call rs6000_sibcall_aix.
5148         ("sibcall_value" expander): Likewise.  Move earlier in file.
5149         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
5150         ("*sibcall_aix<mode>"): ... this pattern.
5151         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
5152         ("*sibcall_value_aix<mode>"): ... this pattern.
5153         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
5154         (rs6000_call_aix): Add prototype.
5155         (rs6000_sibcall_aix): Likewise.
5157 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
5159         PR sanitizer/59122
5160         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
5161         isn't confused by the artificial decl.
5163 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5165         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
5166         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
5167         Instead, add USEs of all modified call-saved CR fields to the
5168         insn storing the result to the stack slot, and provide an
5169         appropriate REG_FRAME_RELATED_EXPR for that insn.
5170         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
5171         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
5173 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5174             Alan Modra  <amodra@gmail.com>
5176         * function.c (assign_parms): Use all.reg_parm_stack_space instead
5177         of re-evaluating REG_PARM_STACK_SPACE target macro.
5178         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
5179         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
5180         (assign_parm_find_entry_rtl): Update call.
5181         * calls.c (initialize_argument_information): Update call.
5182         (emit_library_call_value_1): Likewise.
5183         * expr.h (locate_and_pad_parm): Update prototype.
5185 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5187         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
5188         arguments.
5190 2013-11-14  DJ Delorie  <dj@redhat.com>
5192         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
5193         to 16 bits.
5195 2013-11-14  Jeff Law  <law@redhat.com>
5197         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
5198         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
5200 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5202         * doc/invoke.texi: Update documentation for AArch64's -mcpu
5203         and -mtune options.
5205 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5207         * config/aarch64/aarch64-cores.def (example-1): Remove.
5208         (example-2): Likewise.
5209         * config/aarch64/aarch64-tune.md: Regenerate.
5210         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
5211         (generic_sched): Remove "large", "small".
5212         * config/aarch64/large.md: Delete.
5213         * config/aarch64/small.md: Delete.
5215 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5217         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
5218         * config/aarch64/aarch64-tune.md: Regenerate.
5219         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
5220         (generic_sched): "no" if we are tuning for cortexa15.
5221         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
5222         relative path.
5224 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5226         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
5227         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
5228         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
5229         (all_cores): Use cortexa53 when tuning for "generic".
5230         (aarch64_override_options): Fix comment.
5231         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
5232         * config/aarch64/aarch64-generic.md: Delete.
5234 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
5236         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
5238 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5240         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
5241         (generic_rtx_cost_table): Remove.
5242         (aarch64_rtx_costs): Use fields from cpu_cost_table.
5243         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
5244         insn_extra_cost.
5245         (cpu_rtx_cost_table): Remove.
5247 2013-11-14  Julian Brown  <julian@codesourcery.com>
5248             Joey Ye  <joey.ye@arm.com>
5250         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
5251         (arm_v7m_tune): New.
5252         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
5253         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
5254         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
5255         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
5257 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
5259         PR target/57491
5260         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
5261         flag setting.
5263 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
5264             Uros Bizjak  <ubizjak@gmail.com>
5266         PR target/59101
5267         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
5268         operands[2] satisfies_constraint_Z that might have bit 31 set.
5270 2013-11-13  Jeff Law  <law@redhat.com>
5272         PR tree-optimization/59102
5273         * gimple-ssa-isolate-paths.c
5274         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
5275         gimple assignment before looking at gimple_assign_lhs.
5277 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5279         * ira.c: Add comment about threads at the top of file.
5281 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5283         * ira-color.c (coalesce_allocnos): Don't allocate and free
5284         sorted_copies.
5286 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5288         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
5289         equality for GIMPLE_ASSIGN.
5291 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5293         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
5294         function out of ...
5295         (gimple_equal_p): ... here.
5297 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5299         * trans-mem.c (is_tm_ending): New function.
5300         * gimple.h (is_tm_ending): Declare.
5301         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
5302         BUILT_IN_TM_COMMIT.
5303         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
5305 2013-11-14  Tom de Vries  <tom@codesourcery.com>
5307         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
5309 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
5311         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
5312         (struct walk_stmt_info):  Relocate here from gimple.h.
5313         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
5314         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
5315         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5316         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5317         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5318         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5319         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
5320         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
5321         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
5322         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
5323         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
5324         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
5325         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
5326         (struct walk_stmt_info): Move to gimple-walk.h.
5327         (gimple_seq_set_location): Move to gimple.c
5328         * gimple-walk.c: New File.
5329         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
5330         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
5331         walk_stmt_load_store_ops): Relocate here from gimple.c.
5332         * gimple-iterator.c: Include gimple-iterator.h.
5333         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
5334         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
5335         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
5336         gimple-walk.c.
5337         (gimple_seq_set_location): Relocate from gimple.h.
5338         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
5339         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
5340         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
5341         * Makefile.in (OBJS): Add gimple-walk.o
5342         * asan.c: Update Include list as required for gimple-iterator.h and
5343         gimple-walk.h.
5344         * cfgexpand.c: Likewise.
5345         * cfgloop.c: Likewise.
5346         * cfgloopmanip.c: Likewise.
5347         * cgraph.c: Likewise.
5348         * cgraphbuild.c: Likewise.
5349         * cgraphunit.c: Likewise.
5350         * gimple-fold.c: Likewise.
5351         * gimple-low.c: Likewise.
5352         * gimple-pretty-print.c: Likewise.
5353         * gimple-ssa-isolate-paths.c: Likewise.
5354         * gimple-ssa-strength-reduction.c: Likewise.
5355         * gimple-streamer-in.c: Likewise.
5356         * gimple-streamer-out.c: Likewise.
5357         * gimplify.c: Likewise.
5358         * graphite-blocking.c: Likewise.
5359         * graphite-clast-to-gimple.c: Likewise.
5360         * graphite-dependences.c: Likewise.
5361         * graphite-interchange.c: Likewise.
5362         * graphite-optimize-isl.c: Likewise.
5363         * graphite-poly.c: Likewise.
5364         * graphite-scop-detection.c: Likewise.
5365         * graphite-sese-to-poly.c: Likewise.
5366         * graphite.c: Likewise.
5367         * ipa-inline-analysis.c: Likewise.
5368         * ipa-profile.c: Likewise.
5369         * ipa-prop.c: Likewise.
5370         * ipa-pure-const.c: Likewise.
5371         * ipa-split.c: Likewise.
5372         * lto-streamer-in.c: Likewise.
5373         * lto-streamer-out.c: Likewise.
5374         * omp-low.c: Likewise.
5375         * predict.c: Likewise.
5376         * profile.c: Likewise.
5377         * sese.c: Likewise.
5378         * tracer.c: Likewise.
5379         * trans-mem.c: Likewise.
5380         * tree-call-cdce.c: Likewise.
5381         * tree-cfg.c: Likewise.
5382         * tree-cfgcleanup.c: Likewise.
5383         * tree-complex.c: Likewise.
5384         * tree-data-ref.c: Likewise.
5385         * tree-dfa.c: Likewise.
5386         * tree-eh.c: Likewise.
5387         * tree-emutls.c: Likewise.
5388         * tree-if-conv.c: Likewise.
5389         * tree-inline.c: Likewise.
5390         * tree-into-ssa.c: Likewise.
5391         * tree-loop-distribution.c: Likewise.
5392         * tree-nested.c: Likewise.
5393         * tree-nrv.c: Likewise.
5394         * tree-object-size.c: Likewise.
5395         * tree-outof-ssa.c: Likewise.
5396         * tree-parloops.c: Likewise.
5397         * tree-predcom.c: Likewise.
5398         * tree-profile.c: Likewise.
5399         * tree-scalar-evolution.c: Likewise.
5400         * tree-sra.c: Likewise.
5401         * tree-ssa-ccp.c: Likewise.
5402         * tree-ssa-coalesce.c: Likewise.
5403         * tree-ssa-copy.c: Likewise.
5404         * tree-ssa-copyrename.c: Likewise.
5405         * tree-ssa-dce.c: Likewise.
5406         * tree-ssa-dom.c: Likewise.
5407         * tree-ssa-dse.c: Likewise.
5408         * tree-ssa-forwprop.c: Likewise.
5409         * tree-ssa-ifcombine.c: Likewise.
5410         * tree-ssa-live.c: Likewise.
5411         * tree-ssa-loop-ch.c: Likewise.
5412         * tree-ssa-loop-im.c: Likewise.
5413         * tree-ssa-loop-ivcanon.c: Likewise.
5414         * tree-ssa-loop-ivopts.c: Likewise.
5415         * tree-ssa-loop-manip.c: Likewise.
5416         * tree-ssa-loop-niter.c: Likewise.
5417         * tree-ssa-loop-prefetch.c: Likewise.
5418         * tree-ssa-loop.c: Likewise.
5419         * tree-ssa-math-opts.c: Likewise.
5420         * tree-ssa-phiopt.c: Likewise.
5421         * tree-ssa-phiprop.c: Likewise.
5422         * tree-ssa-pre.c: Likewise.
5423         * tree-ssa-propagate.c: Likewise.
5424         * tree-ssa-reassoc.c: Likewise.
5425         * tree-ssa-sink.c: Likewise.
5426         * tree-ssa-strlen.c: Likewise.
5427         * tree-ssa-structalias.c: Likewise.
5428         * tree-ssa-tail-merge.c: Likewise.
5429         * tree-ssa-ter.c: Likewise.
5430         * tree-ssa-threadedge.c: Likewise.
5431         * tree-ssa-threadupdate.c: Likewise.
5432         * tree-ssa-uncprop.c: Likewise.
5433         * tree-ssa-uninit.c: Likewise.
5434         * tree-ssa.c: Likewise.
5435         * tree-stdarg.c: Likewise.
5436         * tree-switch-conversion.c: Likewise.
5437         * tree-tailcall.c: Likewise.
5438         * tree-vect-data-refs.c: Likewise.
5439         * tree-vect-generic.c: Likewise.
5440         * tree-vect-loop-manip.c: Likewise.
5441         * tree-vect-loop.c: Likewise.
5442         * tree-vect-patterns.c: Likewise.
5443         * tree-vect-slp.c: Likewise.
5444         * tree-vect-stmts.c: Likewise.
5445         * tree-vectorizer.c: Likewise.
5446         * tree-vrp.c: Likewise.
5447         * tree.c: Likewise.
5448         * tsan.c: Likewise.
5449         * value-prof.c: Likewise.
5450         * vtable-verify.c: Likewise.
5452 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
5454         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
5455         fix.
5457 2013-11-13  Jeff Law  <law@redhat.com>
5459         * PR middle-end/59119
5460         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
5461         function, extracted from gimple_ssa_isolate_erroneous_paths.
5462         (find_explicit_erroneous_behaviour): Similarly.
5463         (insert_trap_and_remove_trailing_statements): Remove statements
5464         in reverse order.
5466 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
5468         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
5469         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
5470         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
5471         looking at INSN_CODE.
5472         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
5473         active_insn_p object, respect basic block boundaries.
5474         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
5475         follows immediately after the jump table data label.
5476         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
5477         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
5478         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
5480 2013-11-13  Teresa Johnson  <tejohnson@google.com>
5482         PR ipa/58862
5483         * predict.c (drop_profile): Error is currently too strict.
5484         (handle_missing_profiles): Pass call_count to drop_profile.
5486 2013-11-13  Teresa Johnson  <tejohnson@google.com>
5488         PR ipa/58862
5489         * ipa-inline.c (edge_badness): Fix overflow.
5491 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5493         PR rtl-optimization/59036
5494         * ira-color.c (struct allocno_color_data): Add new members
5495         first_thread_allocno, next_thread_allocno, thread_freq.
5496         (sorted_copies): New static var.
5497         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
5498         (allocno_thread_conflict_p, merge_threads)
5499         (form_threads_from_copies, form_threads_from_bucket)
5500         (form_threads_from_colorable_allocno, init_allocno_threads): New
5501         functions.
5502         (bucket_allocno_compare_func): Add comparison by thread frequency
5503         and threads.
5504         (add_allocno_to_ordered_bucket): Rename to
5505         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
5506         (push_only_colorable): Call form_threads_from_bucket.
5507         (color_pass): Call init_allocno_threads.  Use
5508         consideration_allocno_bitmap instead of coloring_allocno_bitmap
5509         for nuillify allocno color data.
5510         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
5511         (coalesce_allocnos): Use static sorted copies.
5513 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
5515         * passes.c (execute_todo): Don't call do_per_function if
5516         flags are zero.
5517         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
5518         execute_function_dump if dump_file is NULL.
5520 2013-11-13  Martin Jambor  <mjambor@suse.cz>
5522         * cgraph.c (cgraph_get_create_node): Do what
5523         cgraph_get_create_real_symbol_node used to do.
5524         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
5525         call cgraph_get_create_node.
5526         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
5527         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
5528         cgraph_get_create_node.  Assert we get a node.
5530 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5532         * config/aarch64/aarch64-simd.md (vec_extract): New.
5534 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5536         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
5537         the constraint.
5539 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5541         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
5542         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
5543         or if optimization is enabled.
5544         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
5545         require that all the names based on a PARM_DECL or a RESULT_DECL that
5546         isn't ignored for debug info be coalesced.
5548 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5550         * config/c6x/c6x.c: Include "gimple-expr.h".
5552 2013-11-13  Richard Biener  <rguenther@suse.de>
5554         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
5555         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
5556         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
5557         dealing with type mismatches inside component reference chains.
5559 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
5561         PR tree-optimization/59077
5562         * ipa-pure-const.c (better_state): Update *state.
5564 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
5566         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
5567         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
5568         Update offset calculations.
5570 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5572         PR ada/35998
5573         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
5574         for fields.  Do not add the attribute if the size is negative.
5576 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5578         * config/arm/arm.c: Include aarch-cost-tables.h.
5579         (generic_extra_costs): Move from here...
5580         * config/arm/aarch-cost-tables.h: ... To here.  New file.
5582 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5583             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5584             Sergey Lega  <sergey.s.lega@intel.com>
5585             Anna Tikhonova  <anna.tikhonova@intel.com>
5586             Ilya Tocar  <ilya.tocar@intel.com>
5587             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5588             Ilya Verbin  <ilya.verbin@intel.com>
5589             Kirill Yukhin  <kirill.yukhin@intel.com>
5590             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5592         * config/i386/i386.c (ix86_print_operand): Support z-masking.
5593         * config/i386/predicate.md (const_0_to_4_operand): New.
5594         (const_0_to_5_operand): Ditto.
5595         * config/i386/sse.md (UNSPEC_COMPRESS): New.
5596         (UNSPEC_COMPRESS_STORE): Ditto.
5597         (UNSPEC_EXPAND): Ditto.
5598         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
5599         (define_mode_attr ssescalarsize): Ditto.
5600         (avx512f_load<mode>_mask): Ditto.
5601         (avx512f_store<mode>_mask): Ditto.
5602         (avx512f_storedqu<mode>_mask): Ditto.
5603         (avx512f_vmcmp<mode>3_mask): Ditto.
5604         (avx512f_fmadd_<mode>_mask): Ditto.
5605         (avx512f_fmadd_<mode>_mask3): Ditto.
5606         (avx512f_fmsub_<mode>_mask): Ditto.
5607         (avx512f_fmsub_<mode>_mask3): Ditto.
5608         (avx512f_fnmadd_<mode>_mask): Ditto.
5609         (avx512f_fnmadd_<mode>_mask3): Ditto.
5610         (avx512f_fnmsub_<mode>_mask): Ditto.
5611         (avx512f_fnmsub_<mode>_mask3): Ditto.
5612         (avx512f_fmaddsub_<mode>_mask): Ditto.
5613         (avx512f_fmaddsub_<mode>_mask3): Ditto.
5614         (avx512f_fmsubadd_<mode>_mask): Ditto.
5615         (avx512f_fmsubadd_<mode>_mask3): Ditto.
5616         (vec_unpacku_float_lo_v16si): Ditto.
5617         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
5618         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
5619         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
5620         (vec_extract_lo_<mode>_maskm): Ditto.
5621         (vec_extract_hi_<mode>_maskm): Ditto.
5622         (avx512f_vternlog<mode>_mask): Ditto.
5623         (avx512f_shufps512_mask): Ditto.
5624         (avx512f_fixupimm<mode>_mask): Ditto.
5625         (avx512f_shufpd512_mask): Ditto.
5626         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
5627         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
5628         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
5629         (ashr<mode>3<mask_name>): Ditto.
5630         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
5631         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
5632         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
5633         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
5634         (avx512f_pshufdv3_mask): Ditto.
5635         (avx512f_perm<mode>_mask): Ditto.
5636         (avx512f_vpermi2var<mode>3_mask): Ditto.
5637         (avx512f_vpermt2var<mode>3_mask): Ditto.
5638         (avx512f_compress<mode>_mask): Ditto.
5639         (avx512f_compressstore<mode>_mask): Ditto.
5640         (avx512f_expand<mode>_mask): Ditto.
5641         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
5642         to support masking.
5643         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
5644         (<plusminus_insn><mode>3<mask_name>): Ditto.
5645         (*<plusminus_insn><mode>3<mask_name>): Ditto.
5646         (mul<mode>3<mask_name>): Ditto.
5647         (*mul<mode>3<mask_name>): Ditto.
5648         (<sse>_div<mode>3<mask_name>): Ditto.
5649         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
5650         (<sse>_sqrt<mode>2<mask_name>): Ditto.
5651         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
5652         (<code><mode>3<mask_name>/smaxmin): Ditto.
5653         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
5654         (*<code><mode>3<mask_name>/smaxmin): Ditto.
5655         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
5656         (ufloatv16siv16sf2<mask_name>): Ditto.
5657         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
5658         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
5659         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
5660         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
5661         (ufloatv8siv8df<mask_name>): Ditto.
5662         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
5663         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
5664         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
5665         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
5666         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
5667         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
5668         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
5669         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
5670         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
5671         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
5672         (vec_extract_lo_<mode><mask_name>): Ditto.
5673         (vec_extract_hi_<mode><mask_name>): Ditto.
5674         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
5675         (avx512f_movddup512<mask_name>): Ditto.
5676         (avx512f_unpcklpd512<mask_name>): Ditto.
5677         (*avx512f_unpcklpd512<mask_name>): Ditto.
5678         (*avx512f_vmscalef<mode>): Ditto.
5679         (avx512f_scalef<mode><mask_name>): Ditto.
5680         (avx512f_getexp<mode><mask_name>): Ditto.
5681         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
5682         (avx512f_rndscale<mode><mask_name>): Ditto.
5683         (avx512f_shufps512_1<mask_name>): Ditto.
5684         (avx512f_shufpd512_1<mask_name>): Ditto.
5685         (<plusminus_insn><mode>3<mask_name>): Ditto.
5686         (*<plusminus_insn><mode>3<mask_name>): Ditto.
5687         (vec_widen_umult_even_v16si<mask_name>): Ditto.
5688         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
5689         (vec_widen_smult_even_v16si<mask_name>): Ditto.
5690         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
5691         (mul<mode>3<mask_name>): Ditto.
5692         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
5693         (<shift_insn><mode>3<mask_name>): Ditto.
5694         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
5695         (avx512f_<rotate><mode><mask_name>): Ditto.
5696         (<code><mode>3<mask_name>/maxmin): Ditto.
5697         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
5698         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
5699         (*andnot<mode>3<mask_name>): Ditto.
5700         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
5701         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
5702         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
5703         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
5704         (vec_set_lo_<mode><mask_name>): Ditto.
5705         (vec_set_hi_<mode><mask_name>): Ditto.
5706         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
5707         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
5708         (avx512f_pshufd_1<mask_name>): Ditto.
5709         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
5710         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
5711         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
5712         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
5713         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
5714         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
5715         (avx512er_exp2<mode><mask_name>): Ditto.
5716         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
5717         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
5718         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
5719         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
5720         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
5721         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
5722         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
5723         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
5724         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
5725         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
5726         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
5727         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
5728         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
5729         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
5730         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
5731         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
5732         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
5733         (avx512f_getmant<mode><mask_name>): Ditto.
5734         (clz<mode>2<mask_name>): Ditto.
5735         (<mask_codefor>conflict<mode><mask_name>): Ditto.
5736         (*srcp14<mode>): Remove visibility.
5737         (*rsqrt14<mode>): Ditto.
5738         (*fma_fmsub_<mode>): Ditto.
5739         (*fma_fnmadd_<mode>): Ditto.
5740         (*avx512f_rndscale<mode>): Ditto.
5741         * config/i386/subst.md: New file.
5743 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
5745         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
5746         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
5747         (atomic_load_explicit, atomic_exchange_explicit)
5748         (atomic_compare_exchange_strong_explicit)
5749         (atomic_compare_exchange_weak_explicit): Use __auto_type to
5750         declare variable initialized with PTR argument.
5752 2013-11-12  Jeff Law  <law@redhat.com>
5754         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
5755         backedge_seen_p.  Set, use and pass it to children appropriately.
5756         (thread_through_normal_block): Similarly.
5757         (thread_across_edge): Similarly.
5759         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
5760         memory references as volatile.
5761         (insert_trap_and_remove_trailing_statements): Fix comment.
5763 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
5765         PR other/58712
5766         * ira-costs.c (record_operand_costs): Check operands number for
5767         the single set.
5769 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
5771         PR target/59054
5772         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
5773         constraints that would allow DImode into the traditional Altivec
5774         registers, but cause undesirable code generation when loading 0 as
5775         a constant.
5776         (movdi_internal64): Likewise.
5777         (cmp<mode>_fpr): Do not use %x for CR register output.
5778         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
5779         -mallow-upper-sf debug switches are used.
5781 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
5783         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
5784         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
5785         Relocate prototypes from gimple.h.
5786         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
5787         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
5788         from gimple.h.
5789         * gimple.h: Move some prototypes to gimplify.h.
5790         (gimple_predicate, enum fallback, enum gimplify_status): Move to
5791         gimplify.h.
5792         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
5793         Relocate from gimpify.c.
5794         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5795         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
5796         is_gimple_reg_rhs) Relocate from gimplify.c.
5797         * gimplify.c (mark_addressable): Move to gimple-expr.c.
5798         (gimple_seq_add_stmt_without_update): Move to gimple.c.
5799         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5800         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
5801         is_gimple_reg_rhs): Move to gimple-expr.c.
5802         (should_carry_location_p): Move to gimple.c.
5803         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
5804         to gimple.h.
5805         (annotate_one_with_location, annotate_all_with_location_after,
5806         annotate_all_with_location): Move to gimple.c.
5807         (compare_case_labels, sort_case_labels,
5808         preprocess_case_label_vec_for_gimple): Move to gimple.c.
5809         (rhs_predicate_for): Make static.
5810         (gimplify_assign): Relocate from gimple.c.
5811         * gimple.c (gimplify_assign): Move to gimplify.c.
5812         (gimple_seq_add_stmt_without_update, should_carry_location_p,
5813         annotate_one_with_location, annotate_all_with_location_after,
5814         annotate_all_with_location, compare_case_labels, sort_case_labels,
5815         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
5816         * tree.h (unshare_expr, unshare_expr_without_location,
5817         mark_addressable): Move prototypes to gimplify.h.
5818         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
5819         tmp_var_id_num
5820         * asan.c: Include gimplify.h rather than gimple.h.
5821         * cfgloopmanip.c: Likewise.
5822         * cgraphunit.c: Likewise.
5823         * cilk-common.c: Likewise.
5824         * dwarf2out.c: Dont include gimple.h.
5825         * fold-const.c: Include gimplify.h rather than gimple.h.
5826         * function.c: Likewise.
5827         * gimple-fold.c: Likewise.
5828         * gimple-ssa-strength-reduction.c: Likewise.
5829         * graphite-clast-to-gimple.c: Likewise.
5830         * graphite-sese-to-poly.c: Likewise.
5831         * ipa-prop.c: Likewise.
5832         * ipa-split.c: Likewise.
5833         * ipa.c: Likewise.
5834         * langhooks.c: Dont include gimple.h.
5835         * loop-init.c: Include gimplify.h rather than gimple.h.
5836         * omp-low.c: Likewise.
5837         * sese.c: Likewise.
5838         * stor-layout.c: Likewise.
5839         * targhooks.c: Likewise.
5840         * trans-mem.c: Likewise.
5841         * tree-affine.c: Likewise.
5842         * tree-cfg.c: Likewise.
5843         * tree-cfgcleanup.c: Likewise.
5844         * tree-complex.c: Likewise.
5845         * tree-if-conv.c: Likewise.
5846         * tree-inline.c: Likewise.
5847         * tree-iterator.c: Likewise.
5848         * tree-loop-distribution.c: Likewise.
5849         * tree-nested.c: Likewise.
5850         * tree-parloops.c: Likewise.
5851         * tree-predcom.c: Likewise.
5852         * tree-profile.c: Likewise.
5853         * tree-scalar-evolution.c: Likewise.
5854         * tree-sra.c: Likewise.
5855         * tree-ssa-address.c: Likewise.
5856         * tree-ssa-ccp.c: Likewise.
5857         * tree-ssa-dce.c: Likewise.
5858         * tree-ssa-forwprop.c: Likewise.
5859         * tree-ssa-ifcombine.c: Likewise.
5860         * tree-ssa-loop-im.c: Likewise.
5861         * tree-ssa-loop-ivopts.c: Likewise.
5862         * tree-ssa-loop-manip.c: Likewise.
5863         * tree-ssa-loop-niter.c: Likewise.
5864         * tree-ssa-loop-prefetch.c: Likewise.
5865         * tree-ssa-loop-unswitch.c: Likewise.
5866         * tree-ssa-math-opts.c: Likewise.
5867         * tree-ssa-phiopt.c: Likewise.
5868         * tree-ssa-phiprop.c: Likewise.
5869         * tree-ssa-pre.c: Likewise.
5870         * tree-ssa-propagate.c: Likewise.
5871         * tree-ssa-reassoc.c: Likewise.
5872         * tree-ssa-sccvn.c: Likewise.
5873         * tree-ssa-strlen.c: Likewise.
5874         * tree-ssa.c: Likewise.
5875         * tree-switch-conversio: Likewise.n.c
5876         * tree-tailcall.c: Likewise.
5877         * tree-vect-data-refs.c: Likewise.
5878         * tree-vect-generic.c: Likewise.
5879         * tree-vect-loop-manip.c: Likewise.
5880         * tree-vect-loop.c: Likewise.
5881         * tree-vect-patterns.c: Likewise.
5882         * tree-vect-stmts.c: Likewise.
5883         * tsan.c: Likewise.
5884         * value-prof.c: Likewise.
5885         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
5886         * config/alpha/alpha.c: Likewise.
5887         * config/darwin.c: Likewise.
5888         * config/i386/i386.c: Likewise.
5889         * config/ia64/ia64.c: Likewise.
5890         * config/mep/mep.c: Likewise.
5891         * config/mips/mips.c: Likewise.
5892         * config/rs6000/rs6000.c: Likewise.
5893         * config/s390/s390.c: Likewise.
5894         * config/sh/sh.c: Likewise.
5895         * config/sparc/sparc.c: Likewise.
5896         * config/spu/spu.c: Likewise.
5897         * config/stormy16/stormy16.c: Likewise.
5898         * config/tilegx/tilegx.c: Likewise.
5899         * config/tilepro/tilepro.c: Likewise.
5900         * config/xtensa/xtensa.c: Likewise.
5902 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
5904         * tree.c (grow_tree_vec_stat): New function ...
5905         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
5906         and macro front-end.
5908 2013-11-12  Marek Polacek  <polacek@redhat.com>
5910         * final.c (update_alignments): Initialize label to NULL_RTX.
5912 2013-11-12  Jeff Law  <law@redhat.com>
5914         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
5915         (insert_trap_and_remove_trailing_statements): New argument OP which
5916         is the NULL pointer.  Emit the trap after the load/store through
5917         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
5918         when trivial to do so.
5919         (isolate_path): Corresponding changes.
5920         (gimple_ssa_isolate_erroneous_path): Likewise.
5922 2013-11-12  Teresa Johnson  <tejohnson@google.com>
5923             Jan Hubicka  <jh@suse.cz>
5925         * predict.c (drop_profile): New function.
5926         (handle_missing_profiles): Ditto.
5927         (counts_to_freqs): Don't overwrite estimated frequencies
5928         when function has no profile counts.
5929         * predict.h (handle_missing_profiles): Declare.
5930         * tree-inline.c (freqs_to_counts): New function.
5931         (copy_cfg_body): Invoke freqs_to_counts as needed.
5932         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
5934 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
5936         PR target/59088
5937         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
5938         Set for m_HASWELL.
5939         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
5941 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
5943         PR target/59084
5944         * config/i386/i386.c (ix86_option_override_internal): Check
5945         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
5946         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
5947         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
5948         MASK_AVX256_SPLIT_UNALIGNED_STORE.
5950         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
5951         Clear m_COREI7_AVX and update comments.
5952         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
5954 2013-11-12  Martin Jambor  <mjambor@suse.cz>
5956         PR rtl-optimization/10474
5957         * ira.c (interesting_dest_for_shprep): New function.
5958         (split_live_ranges_for_shrink_wrap): Likewise.
5959         (find_moveable_pseudos): Move calculation of dominance info,
5960         df_analysios and the final anlyses to...
5961         (ira): ...here, call split_live_ranges_for_shrink_wrap.
5963 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
5965         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
5966         Handle type conversion.
5968 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
5969             Jan Hubicka  <jh@suse.cz>
5971         * cgraph.c (dump_cgraph_node): Profile dump added.
5972         * cgraph.h (struct cgraph_node): New time profile variable added.
5973         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
5974         * gcov-io.h (gcov_type): New profiler type introduced.
5975         * ipa-profile.c (lto_output_node): Streaming for time profile added.
5976         (input_node): Time profiler is read from LTO stream.
5977         * predict.c (maybe_hot_count_p): Hot prediction changed.
5978         * profile.c (instrument_values): New case for time profiler added.
5979         (compute_value_histograms): Read of time profile.
5980         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
5981         * tree-profile.c (init_ic_make_global_vars): Time profiler
5982         function added.
5983         (gimple_init_edge_profiler): TP function instrumentation.
5984         (gimple_gen_time_profiler): New.
5985         * value-prof.c (gimple_add_histogram_value): Support for time profiler
5986         added.
5987         (dump_histogram_value): TP type added to dumps.
5988         (visit_hist): More sensitive check that takes TP into account.
5989         (gimple_find_values_to_profile): TP instrumentation.
5990         * value-prof.h (hist_type): New histogram type added.
5991         (struct histogram_value_t): Pointer to struct function added.
5992         * libgcc/Makefile.in: New GCOV merge function for TP added.
5993         * libgcov.c: function_counter variable introduced.
5994         (_gcov_merge_time_profile): New.
5995         (_gcov_time_profiler): New.
5997 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
5998             Jeff Law  <law@redhat.com>
6000         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
6001         ao_ref_init_from_ptr_and_size for builtins.
6003 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
6004             H.J. Lu  <hongjiu.lu@intel.com>
6006         PR target/58853
6007         * config/i386/x86-tune.def
6008         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6009         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
6010         * config/i386/i386.h
6011         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
6012         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
6013         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
6014         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
6015         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
6016         misaligned_prologue_used.  Check that
6017         desired_aling <= epilogue_size_needed.
6019 2013-11-11  Cong Hou  <congh@google.com>
6021         PR tree-optimization/59050
6022         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
6024 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
6026         PR middle-end/59049
6027         * expmed.c (emit_store_flag): Fail for const-const comparison.
6029 2013-11-11  Tristan Gingold  <gingold@adacore.com>
6030             Eric Botcazou  <ebotcazou@adacore.com>
6032         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
6033         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
6034         * tree.def (CONSTRUCTOR): Likewise.
6035         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
6036         * gimplify.c (gimplify_init_constructor): Do not clear the object when
6037         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
6039 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
6041         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
6042         diagnostic_finish.
6044 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6046         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
6047         comparisons.
6049 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
6051         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
6053 2013-11-08  Jeff Law  <law@redhat.com>
6055         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
6056         threading paths first, then perform PHI node checks if applicable.
6058 2013-11-10  Karlson2k  <k2k@narod.ru>
6059             Kai Tietz  <ktietz@redhat.com>
6061         PR plugin/52872
6062         * configure.ac: Adding for exported symbols check
6063         and for rdynamic-check executable-extension.
6064         * configure: Regenerated.
6066 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
6068         * mode-switching.c (optimize_mode_switching): Mark block as
6069         nontransparent, if last_mode at block exit is different from no_mode.
6071 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6073         * function.c (NAME__MAIN): Move to...
6074         * cfgexpand.c (NAME__MAIN): ...here.
6076 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
6078         * target.def (can_use_doloop_p): New hook.
6079         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
6080         * doc/tm.texi: Regenerate.
6081         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
6082         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
6083         * hooks.c (hook_bool_dint_dint_uint_true): New function.
6084         * targhooks.h (can_use_doloop_if_innermost): Declare.
6085         * targhooks.c (can_use_doloop_if_innermost): New function.
6086         * target.h: Include double-int.h.
6087         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
6088         Remove iteration count, maximum iteration count, loop depth and
6089         enter-at-top inputs from doloop_begin and doloop_end.
6090         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
6091         interface.
6092         * config/arc/arc.c (arc_can_use_doloop_p): New function.
6093         (TARGET_CAN_USE_DOLOOP_P): Define.
6094         * config/arm/thumb2.md (doloop_end): Update for new interface.
6095         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
6096         * config/bfin/bfin.md (doloop_end): Update for new interface.
6097         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
6098         (TARGET_CAN_USE_DOLOOP_P): Define.
6099         * config/c6x/c6x.md (doloop_end): Update for new interface.
6100         * config/ia64/ia64.md (doloop_end): Update for new interface.
6101         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
6102         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
6103         interface.
6104         * config/mep/mep.c (mep_emit_doloop): Likewise.
6105         (TARGET_CAN_USE_DOLOOP_P): Define.
6106         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
6107         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
6108         * config/s390/s390.md (doloop_end): Update for new interface.
6109         * config/sh/sh.md (doloop_end): Likewise.
6110         * config/spu/spu.md (doloop_end): Likewise.
6111         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
6112         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
6113         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
6114         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
6115         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
6116         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
6117         interface.
6118         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
6120 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
6122         PR other/59055
6123         * doc/extend.texi: Move Cilk Plus Builtins node before Other
6124         Builtins node.
6126 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
6127             Joseph Myers  <joseph@codesourcery.com>
6129         * ginclude/stdatomic.h: New file.
6130         * Makefile.in (USER_H): Add stdatomic.h.
6132 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6134         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
6135         comparisons.
6137 2013-11-08  Jeff Law  <law@redhat.com>
6139         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
6140         * tree-ssa-threadupdate.c (delete_thread_path): New function.
6141         (ssa_redirect_edges, thread_block_1): Use it.
6142         (thread_through_loop_header, mark_threaded_blocks): Likewise.
6143         (thread_through_all_blocks, register_jump_thread): Likewise.
6144         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
6146 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
6148         * config/arm/aarch-common.c
6149         (search_term): New typedef.
6150         (shift_rtx_costs): New array.
6151         (arm_rtx_shift_left_p): New.
6152         (arm_find_sub_rtx_with_search_term): Likewise.
6153         (arm_find_sub_rtx_with_code): Likewise.
6154         (arm_early_load_addr_dep): Add sanity checking.
6155         (arm_no_early_alu_shift_dep): Likewise.
6156         (arm_no_early_alu_shift_value_dep): Likewise.
6157         (arm_no_early_mul_dep): Likewise.
6158         (arm_no_early_store_addr_dep): Likewise.
6160 2013-11-08  Richard Biener  <rguenther@suse.de>
6162         PR tree-optimization/59047
6163         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
6165 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
6167         * common.opt (fcheck-pointer-bounds): Move to ...
6168         * c-family/c.opt: ... here.
6169         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
6170         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
6171         * langhooks.h (lang_hooks): Remove chkp_supported field.
6172         * toplev.c (process_options): Remove chkp_supported check.
6174 2013-11-08  Richard Biener  <rguenther@suse.de>
6176         PR tree-optimization/59038
6177         PR tree-optimization/58955
6178         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
6179         previous change.  Handle known dependences correctly.
6181 2013-11-08  Tom de Vries  <tom@codesourcery.com>
6183         * config/rs6000/t-xilinx: Remove duplicate contents.
6185 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
6186             Joseph Myers  <joseph@codesourcery.com>
6188         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
6189         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
6190         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
6191         (struct tree_base): Add atomic_flag field.
6192         * tree.h (TYPE_ATOMIC): New accessor macro.
6193         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
6194         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
6195         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
6196         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
6197         * tree.c (set_type_quals): Set TYPE_ATOMIC.
6198         (find_atomic_core_type): New function.
6199         (build_qualified_type): Adjust alignment for qualified types.
6200         (build_atomic_base): New function
6201         (build_common_tree_nodes): Build atomicQI_type_node,
6202         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
6203         atomicTI_type_node.
6204         * print-tree.c (print_node): Print atomic qualifier.
6205         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
6206         * target.def (atomic_assign_expand_fenv): New hook.
6207         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
6208         * doc/tm.texi: Regenerate.
6209         * targhooks.c (default_atomic_assign_expand_fenv): New function.
6210         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
6211         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
6212         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
6213         function type.
6214         * config/i386/i386.c (enum ix86_builtins): Add
6215         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
6216         IX86_BUILTIN_FNCLEX.
6217         (bdesc_special_args): Add __builtin_ia32_fnstenv,
6218         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
6219         (ix86_expand_builtin): Handle the new built-in functions.
6220         (ix86_atomic_assign_expand_fenv): New function.
6221         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
6222         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
6223         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
6224         (fnstenv, fldenv, fnstsw, fnclex): New insns.
6226 2013-11-07  Steve Ellcey  <sellcey@mips.com>
6228         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
6229         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
6230         (MULTILIB_DIRNAMES): Add fp64 directory.
6231         (MULTILIB_EXCEPTIONS): Add new exclusions.
6233 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
6235         * gimplify.c (gimple_regimplify_operands): Do not set
6236         SSA_NAME_DEF_STMT.
6237         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
6238         (rewrite_close_phi_out_of_ssa): Same.
6239         (rewrite_phi_out_of_ssa): Same.
6240         (rewrite_degenerate_phi): Same.
6241         (handle_scalar_deps_crossing_scop_limits): Same.
6242         * tree-if-conv.c (predicate_scalar_phi): Same.
6243         * tree-parloops.c (create_loads_for_reductions): Same.
6244         (create_final_loads_for_reduction): Same.
6245         (create_loads_and_stores_for_name): Same.
6246         (transform_to_exit_first_loop): Same.
6247         (create_parallel_loop): Same.
6248         * tree-ssa-loop-im.c
6249         (move_computations_dom_walker::before_dom_children): Same.
6250         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
6251         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
6252         * tree-ssa-propagate.c (substitute_and_fold): Same.
6253         * tree-vect-loop.c (vect_finalize_reduction): Same.
6254         * tree-vect-stmts.c (vectorizable_call): Same.
6256 2013-11-07  Mike Stump  <mikestump@comcast.net>
6258         * config/pdp11/pdp11.c: Include dbxout.h.
6259         * config/picochip/picochip.c: Likewise.
6261 2013-11-07  Cong Hou  <congh@google.com>
6263         PR tree-optimization/56764
6264         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
6265         Combine alias checks if it is possible to amortize the runtime
6266         overhead.  Return the number of alias checks after merging.
6267         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6268         Use the function vect_create_cond_for_alias_checks () to check
6269         the number of alias checks.
6271 2013-11-07  Jeff Law  <law@redhat.com>
6273         * varpool.c (ctor_for_folding): Fix typo in comment.
6275 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
6277         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
6278         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
6280 2013-11-07  Jeff Law  <law@redhat.com>
6282         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
6284         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
6285         No longer check if we have __builtin_trap, assume it's available.
6287 2013-11-07  Diego Novillo  <dnovillo@google.com>
6289         * attribs.c (lookup_scoped_attribute_spec): Make static.
6290         (get_attribute_namespace): Likewise.
6291         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
6292         (validate_arglist): Move earlier in the file. Make static.
6293         (expand_stack_restore): Move from stmt.c
6294         (expand_stack_save): Move from stmt.c
6295         (rewrite_call_expr_array): Move earlier in the file.
6296         (rewrite_call_expr_valist): Likewise.
6297         * cfgexpand.c: Include hard-reg-set.h before tree.h
6298         Include recog.h.
6299         Include output.h.
6300         (expand_asm_loc): Move from stmt.c.
6301         (n_occurrences): Move from stmt.c.
6302         (check_operand_nalternatives): Move from stmt.c.
6303         (tree_conflicts_with_clobbers_p): Move from stmt.c.
6304         (expand_asm_operands): Move from stmt.c
6305         (expand_asm_stmt): Move from stmt.c
6306         (expand_computed_goto): Move from stmt.c
6307         (expand_goto): Move from stmt.c
6308         (expand_null_return_1): Move from stmt.c
6309         (expand_null_return): Move from stmt.c
6310         (expand_value_return): Move from stmt.c
6311         (expand_return): Move from stmt.c
6312         (expand_main_function): Move from function.c
6313         (stack_protect_prologue): Move from function.c
6314         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
6315         (build_function_decl_skip_args): Move from tree.c.
6316         * explow.c (tree_expr_size): Move from tree.c.
6317         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
6318         (fields_length): Move from tree.c.
6319         * fold-const.c (size_low_cst): Move from tree.c.
6320         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
6321         (tree_expr_nonzero_p): Make static. Move earlier in the file.
6322         (fold_build3_initializer_loc): Remove.
6323         (tree_invalid_nonnegative_warnv_p): Make static.
6324         * function.c (expand_main_function): Move to cfgexpand.c.
6325         (stack_protect_prologue): Move to cfgexpand.c.
6326         (set_insn_locations): Move earlier in the file.
6327         * gimple-fold.c: Include langhooks.h.
6328         (truth_type_for): Move from tree.c.
6329         * print-tree.c (print_vec_tree): Remove.
6330         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
6331         (expand_goto): Move to cfgexpand.c.
6332         (n_occurrences): Move to cfgexpand.c.
6333         (expand_asm_loc): Move to cfgexpand.c
6334         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
6335         (expand_asm_operands): Move to cfgexpand.c.
6336         (expand_asm_stmt): Move to cfgexpand.c.
6337         (check_operand_nalternatives): Move to cfgexpand.c
6338         (expand_null_return): Move to cfgexpand.c.
6339         (expand_value_return): Move to cfgexpand.c.
6340         (expand_null_return_1): Move to cfgexpand.c.
6341         (expand_return): Move to cfgexpand.c.
6342         (expand_stack_save): Move to builtins.c.
6343         (expand_stack_restore): Move to builtins.c
6344         * symtab.c: Include output.h.
6345         (decl_assembler_name_hash): Move from tree.c.
6346         (decl_assembler_name_equal): Move from tree.c.
6347         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
6348         * tree-eh.c (in_array_bounds_p): Move from tree.c.
6349         (range_in_array_bounds_p): Move from tree.c.
6350         * tree-object-size.c (fini_object_sizes): Make static.
6351         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
6352         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
6353         * tree.c (decl_assembler_name_equal): Move to symtab.c.
6354         (tree_expr_size): Move to explow.c.
6355         (decl_assembler_name_hash): Move to symtab.c.
6356         (real_twop): Remove.
6357         (tree_expr_size): Move to explow.c.
6358         (stabilize_reference_1): Move earlier in the file. Make static.
6359         (omp_remove_redundant_declare_simd_attrs): Remove.
6360         (simple_cst_list_equal): Move earlier in the file. Make static.
6361         (size_low_cst): Move to fold-const.c.
6362         (build_type_no_quals): Remove.
6363         (build_function_type_skip_args): Move to cgraphclones.c.
6364         (build_function_decl_skip_args): Move to cgraphclones.c.
6365         (in_array_bounds_p): Move to tree-eh.c.
6366         (range_in_array_bounds_p): Move to tree-eh.c.
6367         (truth_type_for): Move to gimple-fold.c.
6368         (list_equal_p): Remove.
6369         * tree.h (decl_assembler_name_equal): Remove.
6370         (decl_assembler_name_hash): Remove.
6371         (truth_type_for): Remove.
6372         (build_type_no_quals): Remove.
6373         (build_function_decl_skip_args): Remove.
6374         (in_array_bounds_p): Remove.
6375         (range_in_array_bounds_p): Remove.
6376         (size_low_cst): Remove.
6377         (omp_remove_redundant_declare_simd_attrs): Remove.
6378         (tree_expr_size): Remove.
6379         (fields_length): Remove.
6380         (stabilize_reference_1): Remove.
6381         (expand_goto): Remove.
6382         (expand_stack_save): Remove.
6383         (expand_stack_restore): Remove.
6384         (expand_return): Remove.
6385         (fold_build3_initializer_loc): Remove.
6386         (tree_expr_nonzero_p): Remove.
6387         (tree_invalid_nonnegative_warnv_p): Remove.
6388         (tree_expr_nonzero_warnv_p): Remove.
6389         (fold_builtin_snprintf_chk): Remove.
6390         (validate_arglist): Remove.
6391         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
6392         (simple_cst_list_equal): Remove.
6393         (real_twop): Remove.
6394         (expand_main_function): Remove.
6395         (stack_protect_prologue): Remove.
6396         (print_vec_tree): Remove.
6397         (lookup_scoped_attribute_spec): Remove.
6398         (get_attribute_namespace): Remove.
6399         (expand_computed_goto): Remove.
6400         (expand_asm_stmt): Remove.
6401         (list_equal_p): Remove.
6402         (ssa_name_nonnegative_p): Remove.
6403         (fini_object_sizes): Remove.
6404         (addr_expr_of_non_mem_decl_p): Remove.
6405         (is_tm_safe_or_pure): Move to trans-mem.c.
6406         (more_const_call_expr_args_p): Remove.
6407         (save_vtable_map_decl): Remove.
6409 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
6411         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
6412         linker plugins, too.
6414         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
6415         link to libgomp and its dependencies.
6416         * config/ia64/hpux.h (LIB_SPEC): Likewise.
6417         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6418         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
6419         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
6421 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
6423         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
6424         (determine_value_range): Add loop argument.  Use get_range_info to
6425         improve range.
6426         (bound_difference): Adjust caller.
6428 2013-11-07  Richard Biener  <rguenther@suse.de>
6429             Jakub Jelinek  <jakub@redhat.com>
6431         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
6432         latches from header PHI arguments from the latch edge.
6434 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
6436         PR c++/58176
6437         * varasm.c (output_constant): Handle NULLPTR_TYPE.
6439 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6441         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
6442         misaligned_prologue_used when it has been set.
6444 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
6445             Jakub Jelinek  <jakub@redhat.com>
6447         PR sanitizer/59029
6448         * asan.c (get_mem_refs_of_builtin_call): Allow
6449         integer literals as addresses in instrumented builtins.
6451 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6453         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
6454         Explain why plus_constant is not used.
6456 2013-11-07  Richard Biener  <rguenther@suse.de>
6458         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
6459         (canonicalize_value): ... this.  Also handle stripping of
6460         TREE_OVERFLOW.
6461         (get_value, set_lattice_value, get_value_for_expr): Adjust.
6462         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
6463         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
6465 2013-11-07  Richard Biener  <rguenther@suse.de>
6467         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
6469 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6471         PR target/59034
6472         * config/i386/i386.md (push peepholer/splitter): Use Pmode
6473         with stack_pointer_rtx.
6475 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
6477         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
6478         using operand_equal_p.
6480 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
6482         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
6483         * tree-affine.c (get_inner_reference_aff): Return base.
6484         * tree-affine.h (get_inner_reference_aff): Change prototype.
6486 2013-11-06  Tobias Burnus  <burnus@net-b.de>
6488         * doc/invoke.texi (Wdate-time): Fix typo.
6490 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
6492         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
6493         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
6494         fp_arith_reg_operand instead of arith_reg_operand.
6496 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
6498         * config/sh/sh.md (adddi3): Remove empty constraints.
6499         Remove can_create_pseudo_p and arith_reg_operand check.
6500         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
6501         Split before reload.
6503 2013-11-06  Jeff Law  <law@redhat.com>
6504             Tom Tromey  <tromey@redhat.com>
6506         * gdbinit.in: Disable strict type checking.
6508 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
6510         * tree-pass.h (make_pass_live_range_shrinkage): New external.
6511         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
6512         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
6513         (rest_of_handle_live_range_shrinkage): Ditto
6514         (class pass_live_range_shrinkage): Ditto.
6515         (pass_data_live_range_shrinkage): Ditto.
6516         (make_pass_live_range_shrinkage): Ditto.
6517         * sched-int.h (initialize_live_range_shrinkage): New prototype.
6518         (finish_live_range_shrinkage): Ditto.
6519         * sched-deps.c (create_insn_reg_set): Make void return value.
6520         * passes.def: Add pass_live_range_shrinkage.
6521         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
6522         * haifa-sched.c (live_range_shrinkage_p): New.
6523         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
6524         New functions.
6525         (rank_for_schedule): Add code for pressure relief through live
6526         range shrinkage.
6527         (schedule_insn): Print more debug info.
6528         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
6529         through live range shrinkage.
6530         * doc/invoke.texi (-flive-range-shrinkage): New.
6531         * common.opt (flive-range-shrinkage): New.
6533 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
6535         PR target/59021
6536         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
6537         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
6538         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
6539         RTXes that return in AVX256 register.
6541 2013-11-06  Richard Biener  <rguenther@suse.de>
6543         PR tree-optimization/58653
6544         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
6545         (prepare_initializers_chain): Adjust.
6547 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
6549         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
6550         (gimple_in_transaction): Use bb_in_transaction.
6551         * basic-block.h (bb_in_transaction): Relocate here and rename.
6552         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
6554 2013-11-06  Richard Biener  <rguenther@suse.de>
6556         * tree.c (drop_tree_overflow): New function.
6557         * tree.h (drop_tree_overflow): Declare.
6558         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
6559         * tree-vrp.c (range_int_cst_singleton_p): Use
6560         is_overflow_infinity instead of testing TREE_OVERFLOW.
6561         (extract_range_from_assert): Likewise.
6562         (zero_nonzero_bits_from_vr): Likewise.
6563         (extract_range_basic): Likewise.
6564         (register_new_assert_for): Use drop_tree_overflow.
6565         (vrp_visit_phi_node): Likewise.
6567 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
6569         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
6570         checking for leaf functions without dynamic stack allocation.
6571         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
6572         (ia64_expand_prologue): Likewise.
6573         * config/mips/mips.c (mips_expand_prologue): Likewise.
6574         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6575         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6576         (sparc_flat_expand_prologue): Likewise.
6578 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
6580         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
6581         (__ST3_LANE_FUNC): Likewise.
6582         (__ST4_LANE_FUNC): Likewise.
6584 2013-11-06  Nick Clifton  <nickc@redhat.com>
6586         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
6587         name returned by msp430_mcu_name.
6588         (LIB_SPEC): If a -T option has not been specified then set a
6589         default, mcu-specific, linker script.
6590         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
6591         * config/msp430/msp430.c (msp430x_names): Likewise.
6592         Alpha sort the names for ease of comparison.
6593         (msp430_mcu_name): New function:  Returns a string suitable for
6594         use as a C preprocessor symbol based upon the name of the MCU
6595         being targeted.
6596         (msp430_option_override): Accept msp430x and msp430xv2 as generic
6597         mcu names.
6598         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
6600         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
6601         unless it is the last part of a spec substring.
6602         * doc/invoke.texi (Spec Files): Document space insertion
6603         behaviour of %*.
6605 2013-11-06  Christian Bruel  <christian.bruel@st.com>
6607         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
6608         Factorize probabilities, Use adjust_address instead of
6609         adjust_automodify_address when possible. Enable for optimize.
6610         (sh_expand_strlen): New function.
6611         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
6612         * config/sh/sh.md (strlensi): New pattern.
6613         (UNSPEC_BUILTIN_STRLEN): Define.
6615 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
6617         PR middle-end/58970
6618         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
6619         (expand_assignment): If *bitpos is negative, set *offset
6620         and adjust *bitpos, so that it is not negative.
6622 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
6624         * config/i386/bdver3.md : Added two additional decoder units
6625         to support issue rate of 4 and remodeled vector unit.
6626         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
6627         architectures is set to 4.
6628         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
6629         lookahead is set to 4 for BD architectures.
6631 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6633         * config/rs6000/rs6000.c (rs6000_option_override_internal):
6634         Remove restriction against use of VSX instructions when generating
6635         code for little endian mode.
6637 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6639         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
6640         for both big and little endian.
6641         (mulv8hi3): Swap input operands for merge high and merge low
6642         instructions for little endian.
6644 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6646         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
6647         define_insn to define_expand that uses even patterns for big
6648         endian and odd patterns for little endian.
6649         (vec_widen_smult_even_v16qi): Likewise.
6650         (vec_widen_umult_even_v8hi): Likewise.
6651         (vec_widen_smult_even_v8hi): Likewise.
6652         (vec_widen_umult_odd_v16qi): Likewise.
6653         (vec_widen_smult_odd_v16qi): Likewise.
6654         (vec_widen_umult_odd_v8hi): Likewise.
6655         (vec_widen_smult_odd_v8hi): Likewise.
6656         (altivec_vmuleub): New define_insn.
6657         (altivec_vmuloub): Likewise.
6658         (altivec_vmulesb): Likewise.
6659         (altivec_vmulosb): Likewise.
6660         (altivec_vmuleuh): Likewise.
6661         (altivec_vmulouh): Likewise.
6662         (altivec_vmulesh): Likewise.
6663         (altivec_vmulosh): Likewise.
6665 2013-11-05  Mike Stump  <mikestump@comcast.net>
6667         * Makefile.in (mostlyclean): Remove c-family objects.
6669 2013-11-05  Ian Lance Taylor  <iant@google.com>
6671         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
6672         If possible, add .cfi directives to record change to bx.
6673         * config/i386/i386.c (ix86_emit_cfi): New function.
6674         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
6676 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
6678         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
6679         immediately after a label for a tablejump pattern.
6681         * config/arm/arm.c (is_jump_table): Remove.
6682         (create_fix_barrier): Use tablejump_p instead.
6683         (arm_reorg): Likewise.
6684         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
6685         (thumb2_output_casesi): Likewise.
6686         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
6687         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
6688         casesi_shift_media, casesi_load_media): Likewise.
6689         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
6690         * config/microblaze/microblaze.md: Likewise.
6692 2013-11-05  Tobias Burnus  <burnus@net-b.de>
6694         * doc/invoke.texi (-Wdate-time): Document.
6696 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
6698         * double-int.c (lshift_double, rshift_double): Remove
6699         SHIFT_COUNT_TRUNCATED handling.
6701 2013-11-05  Jeff Law  <law@redhat.com>
6703         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
6704         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
6705         * gimple-ssa-isolate-paths.c: New file.
6706         * gimple.c (check_loadstore): New function.
6707         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
6708         Verify OP is in the argument list and the argument corresponding
6709         to OP is a pointer type.  Use operand_equal_p rather than
6710         pointer equality when testing if OP is on the nonnull list.
6711         Use check_loadstore rather than count_ptr_derefs.  Handle
6712         GIMPLE_RETURN statements.
6713         * tree-vrp.c (infer_nonnull_range): Remove.
6714         * gimple.h (infer_nonnull_range): Declare.
6715         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
6716         * passes.def: Add pass_isolate_erroneous_paths.
6717         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
6718         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
6719         * tree-ssa.c (struct count_ptr_d): Remove.
6720         (count_ptr_derefs, count_uses_and_derefs): Remove.
6721         * tree-ssa.h (count_uses_and_derefs): Remove.
6723 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
6725         PR rtl-optimization/58997
6726         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
6727         get_iv_value to be in iv->mode rather than iv->extend_mode.
6728         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
6729         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
6730         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
6731         mode.
6733 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
6735         * gimple.h: Move some prototypes to gimple-expr.h and add to include
6736         list.
6737         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
6738         Move to gimple-expr.h.
6739         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
6740         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
6741         is_gimple_id, virtual_operand_p, is_gimple_addressable,
6742         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
6743         Relocate here.
6744         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
6745         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
6746         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
6747         is_gimple_address, is_gimple_invariant_address,
6748         is_gimple_ip_invariant_address, is_gimple_min_invariant,
6749         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
6750         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
6751         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
6752         gimple_decl_printable_name, useless_type_conversion_p,
6753         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
6754         gimple-expr.[ch].
6755         * gimple-expr.c: New File.
6756         (useless_type_conversion_p, gimple_set_body, gimple_body,
6757         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
6758         gimple_can_coalesce_p, extract_ops_from_tree_1,
6759         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
6760         is_gimple_address, is_gimple_invariant_address,
6761         is_gimple_ip_invariant_address, is_gimple_min_invariant,
6762         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
6763         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
6764         is_gimple_mem_ref_addr): Relocate here.
6765         * Makefile.in (OBJS): Add gimple-expr.o.
6767 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
6769         * gengtype-parse.c (struct_field_seq): Support empty structs.
6771 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
6773         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
6775 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
6777         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
6778         for !TARGET_80387.
6779         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
6780         _SOFT_FLOAT here.
6781         (LONG_DOUBLE_TYPE_SIZE): New define.
6782         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
6784 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
6786         PR c++/58724
6787         * doc/extend.texi [visibility ("visibility_type")]: Add example
6788         about visibility attribute on namespace declaration.
6790 2013-11-05  Richard Biener  <rguenther@suse.de>
6792         PR ipa/58492
6793         * passes.def (all_passes): Start with pass_fixup_cfg again.
6795 2013-11-05  Richard Biener  <rguenther@suse.de>
6797         PR tree-optimization/58955
6798         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
6799         edge direction.
6801 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6803         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
6804         little endian.
6805         (vec_pack_ufix_trunc_v2df): Likewise.
6807 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
6809         PR middle-end/58981
6810         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
6811         pattern, instead of word_mode.
6813         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
6814         Pmode for size.
6815         (set_storage_via_setmem): Likewise.
6817 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
6819         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
6820         gimple.h and the rest of the condition in eliminate_build.
6821         (eliminate_build): Call new routine.
6822         * gimple.h (phi_ssa_name_p): Delete.
6824 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
6826         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
6827         case of no prefix and reserving zero slots, because when that's the
6828         case we'll never get here.
6829         * vec.h (va_heap::reserve): Don't try and handle
6830         vec_prefix::calculate_allocation returning zero because that should
6831         never happen.
6833 2013-11-05  Richard Biener  <rguenther@suse.de>
6835         PR middle-end/58941
6836         * tree-dfa.c (get_ref_base_and_extent): Merge common code
6837         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
6838         process trailing array detection before diving into the
6839         view-converted object (and possibly apply some extra offset).
6841 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
6843         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
6844         New function.
6845         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
6847 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
6849         PR tree-optimization/58958
6850         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
6851         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
6853 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
6855         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
6856         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
6858 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
6860         PR tree-optimization/58984
6861         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
6862         set *SIZE_P if non-NULL on success.
6863         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
6864         callers.
6865         (ipcp_transform_function): Likewise.  Punt if size of access
6866         is different from TYPE_SIZE on v->value's type.
6868 2013-11-05  Tobias Burnus  <burnus@net-b.de>
6870         * doc/invoke.texi (-fopenmp-simd): Document new option.
6871         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
6872         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
6873         * tree.c (attribute_value_equal): Ditto.
6875 2013-11-04  Wei Mi  <wmi@google.com>
6877         * sched-rgn.c (add_branch_dependences): Keep insns in
6878         a SCHED_GROUP at the end of BB to remain their location.
6880 2013-11-04  Wei Mi  <wmi@google.com>
6882         * config/i386/i386.c (memory_address_length): Extract a part
6883         of code to rip_relative_addr_p.
6884         (rip_relative_addr_p): New Function.
6885         (ix86_macro_fusion_p): Ditto.
6886         (ix86_macro_fusion_pair_p): Ditto.
6887         * config/i386/i386.h: Add new tune features about macro-fusion.
6888         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6889         * doc/tm.texi: Generated.
6890         * doc/tm.texi.in: Ditto.
6891         * haifa-sched.c (try_group_insn): New Function.
6892         (group_insns_for_macro_fusion): Ditto.
6893         (sched_init): Call group_insns_for_macro_fusion.
6894         * target.def: Add two hooks: macro_fusion_p and
6895         macro_fusion_pair_p.
6897 2013-11-04  Kostya Serebryany  <kcc@google.com>
6899         Update to match the changed asan API.
6900         * asan.c (asan_function_start): New function.
6901         (asan_emit_stack_protection): Update the string stored in the
6902         stack red zone to match new API.  Store the PC of the current
6903         function in the red zone.
6904         (asan_global_struct): Update the __asan_global definition to match
6905         the new API.
6906         (asan_add_global): Ditto.
6907         * asan.h (asan_function_start): New prototype.
6908         * final.c (final_start_function): Call asan_function_start.
6909         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
6910         to __asan_init_v3.
6912 2013-11-04  Wei Mi  <wmi@google.com>
6914         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
6915         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
6916         * config/i386/i386.c (ix86_option_override_internal): Ditto.
6917         (ix86_issue_rate): Ditto.
6918         (ix86_adjust_cost): Ditto.
6919         (ia32_multipass_dfa_lookahead): Ditto.
6920         (ix86_sched_init_global): Ditto.
6921         (get_builtin_code_for_version): Ditto.
6922         * config/i386/i386.h (enum target_cpu_default): Ditto.
6923         (enum processor_type): Ditto.
6924         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6926 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
6928         PR rtl-optimization/58967
6929         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
6930         !lra_in_progress for mode sizes bigger word.
6932 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6934         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
6935         arguments to merge instruction for little endian.
6936         (vec_widen_umult_lo_v16qi): Likewise.
6937         (vec_widen_smult_hi_v16qi): Likewise.
6938         (vec_widen_smult_lo_v16qi): Likewise.
6939         (vec_widen_umult_hi_v8hi): Likewise.
6940         (vec_widen_umult_lo_v8hi): Likewise.
6941         (vec_widen_smult_hi_v8hi): Likewise.
6942         (vec_widen_smult_lo_v8hi): Likewise.
6944 2013-11-04  Ian Lance Taylor  <iant@google.com>
6946         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
6947         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
6948         builtins that take pointers.
6949         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
6950         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
6951         (run_gcc): Pass -fnon-call-exceptions.
6953 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
6955         * optabs.c (expand_vec_perm): Revert one incorrect line from
6956         2013-10-31 change.
6958         PR tree-optimization/58978
6959         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
6960         use_stmt by single_imm_use directly.  Only call single_imm_use
6961         on SSA_NAMEs.
6963 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
6965         PR rtl-optimization/58968
6966         * lra-spills.c (return_regno_p): New function.
6967         (lra_final_code_change): Use it.
6969 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
6971         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
6972         * target.def (float_exceptions_rounding_supported_p): New hook.
6973         * targhooks.c (default_float_exceptions_rounding_supported_p): New
6974         function.
6975         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
6976         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
6977         New @hook.
6978         * doc/tm.texi: Regenerate.
6979         * config.gcc (powerpc*-*-linux*): Set extra_objs.
6980         * config/rs6000/rs6000-linux.c: New file.
6981         * config/rs6000/rs6000-protos.h
6982         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
6983         * config/rs6000/linux.h
6984         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
6985         * config/rs6000/linux64.h
6986         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
6987         * config/rs6000/t-linux (rs6000-linux.o): New rule.
6988         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
6990 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6992         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
6993         Replace the define_insn_and_split with a define_insn and two
6994         define_splits, with the split after reload re-permuting the source
6995         register to its original value.
6996         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
6997         (*vsx_le_perm_store_v8hi): Likewise.
6998         (*vsx_le_perm_store_v16qi): Likewise.
7000 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7002         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
7003         little endian.
7005 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
7007         PR tree-optimization/58946
7008         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
7009         bbs with bbinfo[idx].op != NULL before all blocks with
7010         bbinfo[idx].op == NULL.
7012 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
7014         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
7015         (avr_dump_double_int_hex): Likewise.
7016         (avr_log_vadump): Remove %D and %X handling.
7017         * config/avr/avr.c (avr_double_int_push_digit): Delete.
7018         (avr_map_op_t): Change map from double_int to unsigned int.
7019         (avr_map_op): Update accordingly.
7020         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
7021         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
7022         unsigned ints rather than double_ints.
7024 2013-11-03  Marek Polacek  <polacek@redhat.com>
7026         Implement -fsanitize=vla-bound.
7027         * opts.c (common_handle_option): Handle vla-bound.
7028         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
7029         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
7030         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
7032 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
7034         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
7035         little endian.
7037 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
7039         * config/i386/constraints.md (Ts, Tv): New address constrains.
7040         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
7041         constraint for address_no_seg_operand.
7042         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
7043         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
7044         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
7045         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
7046         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
7047         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
7048         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
7049         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
7050         constraint for vsib_address_operand.
7052 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
7054         * gcse.c (pre_delete): Remove references to regmove from comments.
7055         * recog.c: (validate_replace_rtx_1): Likewise.
7056         * config/rl78/rl78.c: Likewise.
7057         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
7058         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
7059         * common/config/mmix/mmix-common.c: Likewise.
7061 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
7063         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
7064         * gimplify.c (gimplify_compound_lval): Likewise.
7065         * graphite-clast-to-gimple.c (gloog): Likewise.
7066         * graphite-dependences.c (loop_is_parallel_p): Likewise.
7067         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
7068         (limit_scop); Likewise.
7069         (build_scops): Likewise.
7070         (dot_scop): Likewise.
7071         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
7072         (build_scop_drs): Likewise.
7073         (insert_stmts): Likewise.
7074         (insert_out_of_ssa_copy): Likewise.
7075         (remove_phi): Likewise.
7076         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
7077         * hw-doloop.c (discover_loop): Likewise.
7078         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
7079         * tree-dfa.c (dump_enumerated_decls): Likewise.
7080         * tree-if-conv.c (if_convertable_loop_p): Likewise.
7081         * tree-inline.c (tree_function_versioning): Likewise.
7082         * tree-loop-distribution.c (build_rdg): Likewise.
7083         (rdg_flag_vertex_and_dependent): Likewise.
7084         (distribute_loop): Likewise.
7085         * tree-parloops.c (loop_parallel_p): Likewise.
7086         (eliminate_local_variables): Likewise.
7087         (separate_decls_in_region): Likewise.
7088         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
7089         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
7090         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
7091         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
7092         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
7093         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7094         (vectorizable_condition): Likewise.
7096 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
7098         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
7099         * configure: Regenerate.
7100         * config/i386/i386.md (*movdi_internal): Change
7101         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
7102         (*movdf_internal): Ditto.
7103         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
7104         * config/i386/sse.md (vec_concatv2di): Output interunit movq
7105         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
7107 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
7109         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
7110         after comment.
7112 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7114         Automated part of renaming of symtab_node_base to symtab_node.
7116         Patch autogenerated by rename_symtab.py from
7117         https://github.com/davidmalcolm/gcc-refactoring-scripts
7118         revision 58bb219cc090b2f4516a9297d868c245495ee622
7119         with ChangeLog entry fixed up by hand.
7121         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
7122         symtab_node.
7123         (cgraph_node_for_asm): Likewise.
7124         * cgraph.h (symtab_node_base): Likewise.
7125         (cgraph_node): Likewise.
7126         (varpool_node): Likewise.
7127         (is_a_helper <cgraph_node>::test): Likewise.
7128         (is_a_helper <varpool_node>::test): Likewise.
7129         (symtab_nodes): Likewise.
7130         (symtab_register_node): Likewise.
7131         (symtab_unregister_node): Likewise.
7132         (symtab_remove_node): Likewise.
7133         (symtab_get_node): Likewise.
7134         (symtab_node_for_asm): Likewise.
7135         (symtab_node_asm_name): Likewise.
7136         (symtab_node_name): Likewise.
7137         (symtab_insert_node_to_hashtable): Likewise.
7138         (symtab_add_to_same_comdat_group): Likewise.
7139         (symtab_dissolve_same_comdat_group_list): Likewise.
7140         (dump_symtab_node): Likewise.
7141         (debug_symtab_node): Likewise.
7142         (dump_symtab_base): Likewise.
7143         (verify_symtab_node): Likewise.
7144         (verify_symtab_base): Likewise.
7145         (symtab_used_from_object_file_p): Likewise.
7146         (symtab_alias_ultimate_target): Likewise.
7147         (symtab_resolve_alias): Likewise.
7148         (fixup_same_cpp_alias_visibility): Likewise.
7149         (symtab_for_node_and_aliases): Likewise.
7150         (symtab_nonoverwritable_alias): Likewise.
7151         (availability symtab_node_availability): Likewise.
7152         (symtab_semantically_equivalent_p): Likewise.
7153         (fixup_same_cpp_alias_visibility): Likewise.
7154         (symtab_prevail_in_asm_name_hash): Likewise.
7155         (cgraph): Likewise.
7156         (varpool): Likewise.
7157         (varpool_first_variable): Likewise.
7158         (varpool_next_variable): Likewise.
7159         (varpool_first_static_initializer): Likewise.
7160         (varpool_next_static_initializer): Likewise.
7161         (varpool_first_defined_variable): Likewise.
7162         (varpool_next_defined_variable): Likewise.
7163         (cgraph_first_defined_function): Likewise.
7164         (cgraph_next_defined_function): Likewise.
7165         (cgraph_first_function): Likewise.
7166         (cgraph_next_function): Likewise.
7167         (cgraph_first_function_with_gimple_body): Likewise.
7168         (cgraph_next_function_with_gimple_body): Likewise.
7169         (symtab_alias_target): Likewise.
7170         (symtab_real_symbol_p): Likewise.
7171         (symtab_can_be_discarded): Likewise.
7172         * cgraphbuild.c (mark_address): Likewise.
7173         (mark_load): Likewise.
7174         (mark_store): Likewise.
7175         * cgraphunit.c (decide_is_symbol_needed): Likewise.
7176         (first): Likewise.
7177         (enqueue_node): Likewise.
7178         (referred_to_p): Likewise.
7179         (cgraph_process_same_body_aliases): Likewise.
7180         (analyze_functions): Likewise.
7181         (handle_alias_pairs): Likewise.
7182         (output_weakrefs): Likewise.
7183         (compile): Likewise.
7184         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7185         * ipa-inline-analysis.c (inline_write_summary): Likewise.
7186         * ipa-prop.c (remove_described_reference): Likewise.
7187         (try_decrement_rdesc_refcount): Likewise.
7188         (ipa_edge_duplication_hook): Likewise.
7189         * ipa-ref.c (ipa_record_reference): Likewise.
7190         (ipa_maybe_record_reference): Likewise.
7191         (ipa_clone_ref): Likewise.
7192         (ipa_clone_references): Likewise.
7193         (ipa_clone_referring): Likewise.
7194         (ipa_find_reference): Likewise.
7195         (ipa_remove_stmt_references): Likewise.
7196         (ipa_clear_stmts_in_references): Likewise.
7197         * ipa-ref.h (symtab_node_base): Likewise.
7198         (ipa_ref): Likewise.
7199         (ipa_record_reference): Likewise.
7200         (ipa_maybe_record_reference): Likewise.
7201         (ipa_clone_references): Likewise.
7202         (ipa_clone_referring): Likewise.
7203         (ipa_clone_ref): Likewise.
7204         (ipa_find_reference): Likewise.
7205         (ipa_remove_stmt_references): Likewise.
7206         (ipa_clear_stmts_in_references): Likewise.
7207         * ipa-reference.c (ipa_reference_write_optimization_summary):
7208         Likewise.
7209         * ipa.c (enqueue_node): Likewise.
7210         (process_references): Likewise.
7211         (walk_polymorphic_call_targets): Likewise.
7212         (symtab_remove_unreachable_nodes): Likewise.
7213         (address_taken_from_non_vtable_p): Likewise.
7214         (comdat_can_be_unshared_p_1): Likewise.
7215         (comdat_can_be_unshared_p): Likewise.
7216         (can_replace_by_local_alias): Likewise.
7217         (function_and_variable_visibility): Likewise.
7218         * is-a.h: Likewise (within example in comment).
7219         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
7220         (lto_symtab_encoder_encode): Likewise.
7221         (lto_symtab_encoder_delete_node): Likewise.
7222         (lto_symtab_encoder_in_partition_p): Likewise.
7223         (lto_set_symtab_encoder_in_partition): Likewise.
7224         (output_refs): Likewise.
7225         (compute_ltrans_boundary): Likewise.
7226         (output_symtab): Likewise.
7227         (input_node): Likewise.
7228         (input_ref): Likewise.
7229         (input_edge): Likewise.
7230         (input_cgraph_1): Likewise.
7231         (input_refs): Likewise.
7232         (output_cgraph_opt_summary): Likewise.
7233         (input_node_opt_summary): Likewise.
7234         (input_cgraph_opt_section): Likewise.
7235         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7236         Likewise.
7237         * lto-streamer-out.c (lto_output): Likewise.
7238         (output_symbol_p): Likewise.
7239         (produce_symtab): Likewise.
7240         * lto-streamer.h (lto_encoder_entry): Likewise.
7241         (lto_free_function_in_decl_state_for_node): Likewise.
7242         (lto_symtab_encoder_encode): Likewise.
7243         (lto_symtab_encoder_delete_node): Likewise.
7244         (lto_symtab_encoder_in_partition_p): Likewise.
7245         (lto_set_symtab_encoder_in_partition): Likewise.
7246         (lto_symtab_encoder_lookup): Likewise.
7247         (lsei_node): Likewise.
7248         (lto_symtab_encoder_deref): Likewise.
7249         * symtab.c (symtab_hash): Likewise.
7250         (assembler_name_hash): Likewise.
7251         (symtab_nodes): Likewise.
7252         (hash_node): Likewise.
7253         (eq_node): Likewise.
7254         (hash_node_by_assembler_name): Likewise.
7255         (eq_assembler_name): Likewise.
7256         (insert_to_assembler_name_hash): Likewise.
7257         (unlink_from_assembler_name_hash): Likewise.
7258         (symtab_prevail_in_asm_name_hash): Likewise.
7259         (symtab_register_node): Likewise.
7260         (symtab_insert_node_to_hashtable): Likewise.
7261         (symtab_unregister_node): Likewise.
7262         (symtab_get_node): Likewise.
7263         (symtab_remove_node): Likewise.
7264         (symtab_initialize_asm_name_hash): Likewise.
7265         (symtab_node_for_asm): Likewise.
7266         (symtab_add_to_same_comdat_group): Likewise.
7267         (symtab_dissolve_same_comdat_group_list): Likewise.
7268         (symtab_node_asm_name): Likewise.
7269         (symtab_node_name): Likewise.
7270         (dump_symtab_base): Likewise.
7271         (dump_symtab_node): Likewise.
7272         (dump_symtab): Likewise.
7273         (debug_symtab_node): Likewise.
7274         (verify_symtab_base): Likewise.
7275         (verify_symtab_node): Likewise.
7276         (verify_symtab): Likewise.
7277         (symtab_used_from_object_file_p): Likewise.
7278         (symtab_node_availability): Likewise.
7279         (symtab_alias_ultimate_target): Likewise.
7280         (fixup_same_cpp_alias_visibility): Likewise.
7281         (symtab_resolve_alias): Likewise.
7282         (symtab_for_node_and_aliases): Likewise.
7283         (symtab_for_node_and_aliases): Likewise.
7284         (symtab_nonoverwritable_alias_1): Likewise.
7285         (symtab_nonoverwritable_alias): Likewise.
7286         (symtab_semantically_equivalent_p): Likewise.
7287         * value-prof.c (init_node_map): Likewise.
7288         * varasm.c (find_decl): Likewise.
7289         * varpool.c (varpool_node_for_asm): Likewise.
7290         (varpool_remove_unreferenced_decls): Likewise.
7292 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
7294         Manual part of renaming of symtab_node_base to symtab_node.
7296         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
7297         clashes with the preferred name for the base class.
7298         (const_symtab_node): Remove redundant typedef.
7300 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7302         * optabs.c (expand_vec_perm): Avoid vector mode punning
7303         SUBREGs in SET_DEST.
7304         * expmed.c (store_bit_field_1): Likewise.
7305         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
7306         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
7307         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
7308         * config/i386/i386.c (ix86_expand_vector_move_misalign,
7309         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
7310         ix86_expand_sse_unpack, ix86_expand_args_builtin,
7311         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
7312         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
7313         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
7314         expand_vec_perm_vpshufb2_vpermq,
7315         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
7316         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
7317         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
7318         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
7319         than *d itself.
7321 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
7323         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
7324         Use gcc_unreachable for unhandled modes.  Do not check results of
7325         expand_simple_binop.  If not expanded to target, move the result.
7327 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
7328             Shiva Chen  <shiva0217@gmail.com>
7330         * config.gcc (nds32*-*-*): Add nds32 target.
7331         * config/nds32/nds32.c: New file.
7332         * config/nds32/nds32.h: New file.
7333         * config/nds32/nds32.md: New file.
7334         * config/nds32/constants.md: New file.
7335         * config/nds32/constraints.md: New file.
7336         * config/nds32/iterators.md: New file.
7337         * config/nds32/nds32-doubleword.md: New file.
7338         * config/nds32/nds32-intrinsic.md: New file.
7339         * config/nds32/nds32_intrinsic.h: New file.
7340         * config/nds32/nds32-modes.def: New file.
7341         * config/nds32/nds32-multiple.md: New file.
7342         * config/nds32/nds32.opt: New file.
7343         * config/nds32/nds32-opts.h: New file.
7344         * config/nds32/nds32-protos.h: New file.
7345         * config/nds32/nds32-peephole2.md: New file.
7346         * config/nds32/pipelines.md: New file.
7347         * config/nds32/predicates.md: New file.
7348         * config/nds32/t-mlibs: New file.
7349         * common/config/nds32: New directory and files.
7351         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
7352         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
7353         * doc/install.texi (Cross-Compiler-Specific Options): Document
7354         --with-nds32-lib for nds32 target.
7355         * doc/extend.texi (Function Attributes, Target Builtins): Document
7356         nds32 specific attributes.
7358 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
7360         * lra-constraints (process_alt_operands): Use the result
7361         elimination register for operand when matching constraints.
7363 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
7365         * tree-vrp.c (maybe_set_nonzero_bits): New function.
7366         (remove_range_assertions): Call it.
7368         * tree.c (tree_ctz): New function.
7369         * tree.h (tree_ctz): New prototype.
7370         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
7371         first argument from tree to const_tree.
7372         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
7373         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
7374         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
7375         static.
7376         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
7377         * tree-vect-loop.c (vect_analyze_loop_operations,
7378         vect_transform_loop): Don't force scalar loop for bound just because
7379         number of iterations is unknown, only do it if it is not known to be
7380         a multiple of vectorization_factor.
7381         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
7383         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
7384         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
7385         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
7386         (set_nonzero_bits, get_nonzero_bits): New prototypes.
7387         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
7388         a default def isn't partially constant.
7389         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
7390         is known to be partially zero.
7391         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
7392         to see if a default def isn't partially constant.
7393         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
7394         creation of a range, if VR_RANGE, try to improve nonzero_bits from
7395         the range.
7396         (set_nonzero_bits, get_nonzero_bits): New functions.
7398         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
7399         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
7400         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
7401         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
7402         uses but in the condition and ASSERT_EXPR and the other successor of
7403         the predecessor bb is __builtin_unreachable (), set_range_info of the
7404         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
7406 2013-10-31  Martin Jambor  <mjambor@suse.cz>
7408         PR rtl-optimization/58934
7409         Revert:
7410         2013-10-30  Martin Jambor  <mjambor@suse.cz>
7411         PR rtl-optimization/10474
7412         * ira.c (find_moveable_pseudos): Do not calculate dominance info
7413         nor df analysis.
7414         (interesting_dest_for_shprep): New function.
7415         (split_live_ranges_for_shrink_wrap): Likewise.
7416         (ira): Calculate dominance info and df analysis. Call
7417         split_live_ranges_for_shrink_wrap.
7419 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
7420             Yury Gribov  <y.gribov@samsung.com>
7422         PR sanitizer/58543
7423         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
7424         shadow pointer to avoid clobbering the main one.
7426 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
7428         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
7430 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7432         PR bootstrap/58933
7433         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
7434         it for calling update_costs_from_allocno.
7435         (assign_hard_reg): Call restore_costs_from_copies only for
7436         !retry_p.  Pass new argument to update_costs_from_copies.
7437         (color_pass): Pass new argument to update_costs_from_copies.
7438         (ira_mark_allocation_change): Ditto.
7440 2013-10-30  Sharad Singhai  <singhai@google.com>
7442         PR middle-end/58134
7443         * opts.c (common_handle_option): Remove deprecated option
7444         -ftree-vectorizer-verbose.
7445         * doc/invoke.texi (Debugging Options): Ditto.
7446         * opts-global.c (handle_common_deferred_options): Ditto.
7447         (dump_remap_tree_vectorizer_verbose): Delete.
7448         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
7450 2013-10-30  DJ Delorie  <dj@redhat.com>
7452         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
7453         that take no arguments.
7455 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7457         PR other/58545
7458         * reload1.c (update_eliminables_and_spill): New function, broken
7459         out of reload.
7460         (reload): Use it.  Check for frame size change after frame size
7461         alignment, and call update_eliminables_and_spill first if continue-ing.
7463 2013-10-30  Cong Hou  <congh@google.com>
7465         PR target/58762
7466         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
7467         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
7468         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
7470 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
7472         PR rtl-optimization/58369
7473         * reload1.c (compute_reload_subreg_offset): New function.
7474         (choose_reload_regs): Use it to pass endian-correct
7475         offset to subreg_regno_offset.
7477 2013-10-30  Tobias Burnus  <burnus@net-b.de>
7479         PR other/33426
7480         * tree-cfg.c (replace_loop_annotate): Replace warning by
7481         warning_at.
7483 2013-10-30  Jason Merrill  <jason@redhat.com>
7485         * configure.ac (loose_warn): Add -Wno-format if
7486         --disable-build-format-warnings.
7488 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
7490         * cgraphunit.c (analyze_functions): Split symtab_node declarations
7491         onto multiple lines to make things easier for rename_symtab.py.
7493         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
7494         (symtab_semantically_equivalent_p): Likewise.
7496 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7498         PR target/58784
7499         * lra.c (check_rtl): Remove address check before LRA work.
7501 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
7503         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
7504         POINTER_PLUS_EXPR in the defining statement.
7506 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7508         * regmove.c: Remove.
7509         * tree-pass.h (make_pass_regmove): Remove.
7510         * timevar.def (TV_REGMOVE): Remove.
7511         * passes.def (pass_regmove): Remove.
7512         * opts.c (default_options_table): Remove entry for regmove.
7513         * doc/passes.texi: Remove regmove pass description.
7514         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
7515         options.
7516         (-fdump-rtl-regmove): Ditto.
7517         * common.opt (foptimize-register-move, fregmove): Ignore.
7518         * Makefile.in (OBJS): Remove regmove.o.
7519         * regmove.c: Remove.
7520         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
7521         and type.
7522         (struct ira_allocno) New member allocno_prefs.
7523         (ALLOCNO_PREFS): New macro.
7524         (ira_prefs, ira_prefs_num): New external vars.
7525         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
7526         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
7527         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
7528         Ditto.
7529         (ira_add_allocno_copy_to_list): Remove prototype.
7530         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
7531         (ira_pref_iterator): New type.
7532         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
7533         (FOR_EACH_PREF): New macro.
7534         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
7535         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
7536         code.
7537         (ira_setup_alts): New function.
7538         (decrease_live_ranges_number): New function.
7539         (ira): Call the above function.
7540         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
7541         (ira_create_allocno): Initialize allocno prefs.
7542         (pref_pool, pref_vec): New static vars.
7543         (initiate_prefs, find_allocno_pref, ira_create_pref): New
7544         functions.
7545         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
7546         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
7547         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
7548         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
7549         (ira_add_allocno_copy_to_list): Make static.  Rename to
7550         add_allocno_copy_to_list.
7551         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
7552         swap_allocno_copy_ends_if_necessary.
7553         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
7554         ira_remove_allocno_prefs.
7555         (ira_flattening): Ditto.
7556         (ira_build): Call initiate_prefs, print_prefs.
7557         (ira_destroy): Call finish_prefs.
7558         * ira-color.c (struct update_cost_record): New.
7559         (struct allocno_color_data): Add new member update_cost_records.
7560         (update_cost_record_pool): New static var.
7561         (init_update_cost_records, get_update_cost_record): New functions.
7562         (free_update_cost_record_list, finish_update_cost_records): Ditto.
7563         (struct update_cost_queue_elem): Add member from.
7564         (initiate_cost_update): Call init_update_cost_records.
7565         (finish_cost_update): Call finish_update_cost_records.
7566         (queue_update_cost, get_next_update_cost): Add new param from.
7567         (Update_allocno_cost, update_costs_from_allocno): New functions.
7568         (update_costs_from_prefs): Ditto.
7569         (update_copy_costs): Rename to update_costs_from_copies.
7570         (restore_costs_from_copies): New function.
7571         (update_conflict_hard_regno_costs): Don't go back.
7572         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
7573         more debug info.
7574         (pop_allocnos): Add priniting more debug info.
7575         (color_allocnos): Remove prefs for conflicting hard regs.
7576         Call update_costs_from_prefs.
7577         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
7578         (get_dup_num): Rename, modify, and move to ira.c
7579         (process_regs_for_copy): Add prefs.
7580         (add_insn_allocno_copies): Put src as first arg of
7581         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
7582         * ira-costs.c (record_reg_classes): Modify and move code into
7583         record_operands_costs.
7584         (find_costs_and_classes): Create prefs for the hard reg of small
7585         reg class.
7586         (process_bb_node_for_hard_reg_moves): Add prefs.
7588 2013-10-30  Richard Biener  <rguenther@suse.de>
7590         PR middle-end/57100
7591         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
7592         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
7593         as worker for ...
7594         (pre_and_rev_post_order_compute): ... which now wraps it.
7595         * graph.c (draw_cfg_nodes_no_loops): Use
7596         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
7597         on cfun.
7599 2013-10-30  Christian Bruel  <christian.bruel@st.com>
7601         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
7602         (sh_expand_cmpstr): Handle known align and schedule improvements.
7603         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
7604         * config/sh/sh.md (cmpstrnsi): New pattern.
7606 2013-10-30  Martin Jambor  <mjambor@suse.cz>
7608         PR rtl-optimization/10474
7609         * ira.c (find_moveable_pseudos): Do not calculate dominance info
7610         nor df analysis.
7611         (interesting_dest_for_shprep): New function.
7612         (split_live_ranges_for_shrink_wrap): Likewise.
7613         (ira): Calculate dominance info and df analysis. Call
7614         split_live_ranges_for_shrink_wrap.
7616 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7618         PR target/58854
7619         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
7621 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7623         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
7624         * tree.h (POINTER_BOUNDS_P): New.
7625         (BOUNDED_TYPE_P): New.
7626         (BOUNDED_P): New.
7627         (pointer_bounds_type_node): New.
7628         * tree.c (build_common_tree_nodes): Initialize
7629         pointer_bounds_type_node.
7630         * gimple.h (gimple_call_get_nobnd_arg_index): New.
7631         (gimple_call_num_nobnd_args): New.
7632         (gimple_call_nobnd_arg): New.
7633         (gimple_return_retbnd): New.
7634         (gimple_return_set_retbnd): New
7635         * gimple.c (gimple_build_return): Increase number of ops
7636         for return statement.
7637         (gimple_call_get_nobnd_arg_index): New.
7638         * gimple-pretty-print.c (dump_gimple_return): Print second op.
7640 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7642         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
7643         with "chkp ctor" and "bnd_legacy" attributes.
7644         * gimplify.c (gimplify_init_constructor): Avoid infinite
7645         loop during gimplification of bounds initializer.
7647 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7649         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
7650         (handle_bnd_legacy): New.
7651         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
7652         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
7653         attributes.
7655 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
7657         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
7658         (BT_FN_PTR_CONST_PTR): New.
7659         (BT_FN_CONST_PTR_CONST_PTR): New.
7660         (BT_FN_PTR_CONST_PTR_SIZE): New.
7661         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
7662         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
7663         (BT_FN_VOID_CONST_PTR_SIZE): New.
7664         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
7665         * chkp-builtins.def: New.
7666         * builtins.def: include chkp-builtins.def.
7667         (DEF_CHKP_BUILTIN): New.
7668         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
7669         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
7670         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
7671         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
7672         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
7673         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
7674         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
7675         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
7676         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
7677         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
7678         * common.opt (fcheck-pointer-bounds): New.
7679         * toplev.c (process_options): Check Pointer Bounds Checker is
7680         supported.
7681         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
7683 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7685         * target.def (builtin_chkp_function): New.
7686         (chkp_bound_type): New.
7687         (chkp_bound_mode): New.
7688         (fn_abi_va_list_bounds_size): New.
7689         (load_bounds_for_arg): New.
7690         (store_bounds_for_arg): New.
7691         * targhooks.h (default_load_bounds_for_arg): New.
7692         (default_store_bounds_for_arg): New.
7693         (default_fn_abi_va_list_bounds_size): New.
7694         (default_chkp_bound_type): New.
7695         (default_chkp_bound_mode): New.
7696         (default_builtin_chkp_function): New.
7697         * targhooks.c (default_load_bounds_for_arg): New.
7698         (default_store_bounds_for_arg): New.
7699         (default_fn_abi_va_list_bounds_size): New.
7700         (default_chkp_bound_type): New.
7701         (default_chkp_bound_mode); New.
7702         (default_builtin_chkp_function): New.
7703         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
7704         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
7705         (TARGET_STORE_BOUNDS_FOR_ARG): New.
7706         (TARGET_BUILTIN_CHKP_FUNCTION): New.
7707         (TARGET_CHKP_BOUND_TYPE): New.
7708         (TARGET_CHKP_BOUND_MODE): New.
7709         * doc/tm.texi: Regenerated.
7710         * langhooks.h (lang_hooks): Add chkp_supported field.
7711         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
7712         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
7714 2013-10-29  Andrew Pinski <apinski@cavium.com>
7716         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
7717         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
7718         fails, combining the branches anyways.
7719         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
7720         increases the number of combinings.
7721         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
7723 2013-10-29  Mike Stump  <mikestump@comcast.net>
7725         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
7726         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
7727         (make_vector_mode): Increase namebuf to 16.
7728         (emit_insn_modes_h): When processing BImode, don't
7729         also match partial int modes.
7730         (emit_class_narrowest_mode): Likewise.
7732         * config/bfin/bfin-modes.def: Add precision to PDI.
7733         * config/m32c/m32c-modes.def: Add precision to PSI.
7734         * config/msp430/msp430-modes.def: Add precision to PSI.
7735         * config/rs6000/rs6000-modes.def: Add precision to PTI.
7736         * config/sh/sh-modes.def: Add precision to PSI and PDI.
7738 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
7740         PR target/54236
7741         * config/sh/sh.md (*addc): Rename existing variations to ...
7742         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
7743         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
7744         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
7745         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
7747 2013-10-29  Teresa Johnson  <tejohnson@google.com>
7749         PR ipa/58862
7750         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
7751         insanities when updating probabilities.
7753 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7755         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
7756         prettyprinter for cgraph_node to reflect the conversion of the
7757         symtable types to a C++ class hierarchy: it now *is* a
7758         symtab_node_base, rather than having one (named "symbol").
7760 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7762         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
7763         __cilkrts_pop_frame.  If matched, then return true for built-in
7764         function name.
7765         (expand_builtin): Added BUILT_IN_CILK_DETACH and
7766         BUILT_IN_CILK_POP_FRAME case.
7767         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
7768         (lhs_cilk_detect_spawn): Likewise.
7769         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
7770         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
7771         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
7772         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
7773         (LANG_HOOKS_CILKPLUS): Likewise.
7774         * tree.h (CILK_SPAWN_FN): Likewise.
7775         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
7776         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
7777         (OBJS): Added cilk-common.o.
7778         (BUILTINS_DEF): Added cilk-builtins.def.
7779         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
7780         (lhd_cilk_detect_spawn): Likewise.
7781         * langhooks.h (lang_hooks_for_cilkplus): New struct.
7782         (struct lang_hooks): Added new field called "cilkplus."
7783         * cilk-common.c: New file.
7784         * cilk.h: Likewise.
7785         * cilk-builtins.def: Likewise.
7786         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
7787         "__cilk" macro and set it to 200.
7788         * function.h (struct function::cilk_frame_decl): New field.
7789         (struct function::is_cilk_function): Likewise.
7790         (struct function::calls_cilk_spawn): Likewise.
7791         * gimplify.c (gimplify_call_expr): Added a check if the function call
7792         being gimplified is a spawn detach point.  If so, then add pop_frame
7793         and detach function calls.
7794         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
7795         for gimplifying _Cilk_spawn and _Cilk_sync statements.
7796         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
7797         function.  If so, added a _Cilk_sync and gimplified it.
7798         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
7799         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
7800         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
7801         spawner function.
7802         (can_inline_edge_p): Prevent inling of spawnee function.
7803         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
7804         for functions that use Cilk keywords.
7805         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
7806         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
7807         CILK_SYNC_STMT cases.
7808         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
7809         trees.
7810         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
7811         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
7812         * passes.texi (Cilk Keywords): New section that describes the compiler
7813         code changes for handling Cilk Keywords.
7815 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7817         Patch autogenerated by refactor_symtab.py from
7818         https://github.com/davidmalcolm/gcc-refactoring-scripts
7819         revision 58bb219cc090b2f4516a9297d868c245495ee622
7821         * asan.c (asan_finish_file): Update for conversion of symtab types to
7822         a true class hierarchy.
7823         * cfgexpand.c (estimated_stack_frame_size): Likewise.
7824         * cgraph.c (cgraph_get_body): Likewise.
7825         (cgraph_get_create_real_symbol_node): Likewise.
7826         (verify_cgraph_node): Likewise.
7827         (verify_edge_corresponds_to_fndecl): Likewise.
7828         (verify_edge_count_and_frequency): Likewise.
7829         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
7830         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
7831         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
7832         (cgraph_node_cannot_return): Likewise.
7833         (cgraph_set_pure_flag_1): Likewise.
7834         (cgraph_set_const_flag_1): Likewise.
7835         (cgraph_set_nothrow_flag_1): Likewise.
7836         (cgraph_make_node_local_1): Likewise.
7837         (cgraph_for_node_and_aliases): Likewise.
7838         (cgraph_for_node_thunks_and_aliases): Likewise.
7839         (cgraph_node_can_be_local_p): Likewise.
7840         (cgraph_node_cannot_be_local_p_1): Likewise.
7841         (cgraph_function_body_availability): Likewise.
7842         (dump_cgraph_node): Likewise.
7843         (cgraph_rtl_info): Likewise.
7844         (cgraph_mark_address_taken_node): Likewise.
7845         (cgraph_remove_node): Likewise.
7846         (cgraph_release_function_body): Likewise.
7847         (cgraph_update_edges_for_call_stmt_node): Likewise.
7848         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
7849         (cgraph_make_edge_direct): Likewise.
7850         (cgraph_resolve_speculation): Likewise.
7851         (cgraph_speculative_call_info): Likewise.
7852         (cgraph_turn_edge_to_speculative): Likewise.
7853         (cgraph_create_edge_1): Likewise.
7854         (cgraph_set_call_stmt): Likewise.
7855         (cgraph_node_for_asm): Likewise.
7856         (cgraph_add_thunk): Likewise.
7857         (cgraph_same_body_alias): Likewise.
7858         (cgraph_create_function_alias): Likewise.
7859         (cgraph_create_node): Likewise.
7860         (cgraph_create_empty_node): Likewise.
7861         (record_function_versions): Likewise.
7862         (used_from_object_file_p): Likewise.
7863         * cgraph.h (symtab_can_be_discarded): Likewise.
7864         (symtab_real_symbol_p): Likewise.
7865         (cgraph_mark_force_output_node): Likewise.
7866         (cgraph_edge_recursive_p): Likewise.
7867         (symtab_alias_target): Likewise.
7868         (varpool_all_refs_explicit_p): Likewise.
7869         (varpool_can_remove_if_no_refs): Likewise.
7870         (cgraph_only_called_directly_or_aliased_p): Likewise.
7871         (cgraph_next_function_with_gimple_body): Likewise.
7872         (cgraph_first_function_with_gimple_body): Likewise.
7873         (cgraph_function_with_gimple_body_p): Likewise.
7874         (cgraph_next_function): Likewise.
7875         (cgraph_first_function): Likewise.
7876         (cgraph_next_defined_function): Likewise.
7877         (cgraph_first_defined_function): Likewise.
7878         (varpool_next_defined_variable): Likewise.
7879         (varpool_first_defined_variable): Likewise.
7880         (varpool_next_static_initializer): Likewise.
7881         (varpool_first_static_initializer): Likewise.
7882         (varpool_next_variable): Likewise.
7883         (varpool_first_variable): Likewise.
7884         (varpool_node_name): Likewise.
7885         (varpool): Likewise.
7886         (cgraph): Likewise.
7887         (is_a_helper <varpool_node>::test): Likewise.
7888         (is_a_helper <cgraph_node>::test): Likewise.
7889         (varpool_variable_node): Likewise.
7890         (cgraph_function_or_thunk_node): Likewise.
7891         (varpool_alias_target): Likewise.
7892         (cgraph_alias_target): Likewise.
7893         (cgraph_node_name): Likewise.
7894         (varpool_node_asm_name): Likewise.
7895         (cgraph_node_asm_name): Likewise.
7896         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
7897         (cgraph_rebuild_references): Likewise.
7898         (rebuild_cgraph_edges): Likewise.
7899         (record_eh_tables): Likewise.
7900         (build_cgraph_edges): Likewise.
7901         (mark_store): Likewise.
7902         (mark_load): Likewise.
7903         (mark_address): Likewise.
7904         (record_type_list): Likewise.
7905         (record_reference): Likewise.
7906         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
7907         (cgraph_materialize_clone): Likewise.
7908         (cgraph_function_versioning): Likewise.
7909         (cgraph_copy_node_for_versioning): Likewise.
7910         (update_call_expr): Likewise.
7911         (cgraph_find_replacement_node): Likewise.
7912         (cgraph_create_virtual_clone): Likewise.
7913         (cgraph_clone_node): Likewise.
7914         * cgraphunit.c (compile): Likewise.
7915         (output_weakrefs): Likewise.
7916         (output_in_order): Likewise.
7917         (expand_function): Likewise.
7918         (assemble_thunks_and_aliases): Likewise.
7919         (expand_thunk): Likewise.
7920         (mark_functions_to_output): Likewise.
7921         (handle_alias_pairs): Likewise.
7922         (analyze_functions): Likewise.
7923         (walk_polymorphic_call_targets): Likewise.
7924         (varpool_finalize_decl): Likewise.
7925         (process_function_and_variable_attributes): Likewise.
7926         (cgraph_process_same_body_aliases): Likewise.
7927         (analyze_function): Likewise.
7928         (cgraph_add_new_function): Likewise.
7929         (cgraph_finalize_function): Likewise.
7930         (referred_to_p): Likewise.
7931         (cgraph_reset_node): Likewise.
7932         (cgraph_process_new_functions): Likewise.
7933         (enqueue_node): Likewise.
7934         (decide_is_symbol_needed): Likewise.
7935         * coverage.c (coverage_compute_profile_id): Likewise.
7936         * dbxout.c (dbxout_expand_expr): Likewise.
7937         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
7938         (reference_to_unused): Likewise.
7939         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7940         * gimplify.c (unvisit_body): Likewise.
7941         (unshare_body): Likewise.
7942         * ipa-cp.c (ipcp_generate_summary): Likewise.
7943         (ipcp_decision_stage): Likewise.
7944         (identify_dead_nodes): Likewise.
7945         (decide_whether_version_node): Likewise.
7946         (decide_about_value): Likewise.
7947         (perhaps_add_new_callers): Likewise.
7948         (create_specialized_node): Likewise.
7949         (update_profiling_info): Likewise.
7950         (ipcp_propagate_stage): Likewise.
7951         (estimate_local_effects): Likewise.
7952         (good_cloning_opportunity_p): Likewise.
7953         (devirtualization_time_bonus): Likewise.
7954         (propagate_constants_accross_call): Likewise.
7955         (initialize_node_lattices): Likewise.
7956         (ipcp_cloning_candidate_p): Likewise.
7957         (determine_versionability): Likewise.
7958         (print_all_lattices): Likewise.
7959         (print_lattice): Likewise.
7960         (ipcp_discover_new_direct_edges): Likewise.
7961         * ipa-devirt.c (ipa_devirt): Likewise.
7962         (likely_target_p): Likewise.
7963         (update_type_inheritance_graph): Likewise.
7964         (possible_polymorphic_call_target_p): Likewise.
7965         (dump_possible_polymorphic_call_targets): Likewise.
7966         (devirt_variable_node_removal_hook): Likewise.
7967         (record_binfo): Likewise.
7968         (maybe_record_node): Likewise.
7969         (build_type_inheritance_graph): Likewise.
7970         * ipa-inline-analysis.c (inline_write_summary): Likewise.
7971         (inline_generate_summary): Likewise.
7972         (inline_analyze_function): Likewise.
7973         (do_estimate_growth): Likewise.
7974         (simple_edge_hints): Likewise.
7975         (estimate_node_size_and_time): Likewise.
7976         (estimate_edge_devirt_benefit): Likewise.
7977         (compute_inline_parameters): Likewise.
7978         (estimate_function_body_sizes): Likewise.
7979         (compute_bb_predicates): Likewise.
7980         (initialize_inline_failed): Likewise.
7981         (dump_inline_summary): Likewise.
7982         (dump_inline_edge_summary): Likewise.
7983         * ipa-inline-transform.c (inline_transform): Likewise.
7984         (preserve_function_body_p): Likewise.
7985         (save_inline_function_body): Likewise.
7986         (inline_call): Likewise.
7987         (clone_inlined_nodes): Likewise.
7988         (can_remove_node_now_p): Likewise.
7989         (can_remove_node_now_p_1): Likewise.
7990         * ipa-inline.c (early_inliner): Likewise.
7991         (early_inline_small_functions): Likewise.
7992         (inline_always_inline_functions): Likewise.
7993         (ipa_inline): Likewise.
7994         (flatten_function): Likewise.
7995         (inline_small_functions): Likewise.
7996         (speculation_useful_p): Likewise.
7997         (recursive_inlining): Likewise.
7998         (update_caller_keys): Likewise.
7999         (reset_edge_caches): Likewise.
8000         (update_edge_key): Likewise.
8001         (edge_badness): Likewise.
8002         (relative_time_benefit): Likewise.
8003         (want_inline_self_recursive_call_p): Likewise.
8004         (want_inline_small_function_p): Likewise.
8005         (want_early_inline_function_p): Likewise.
8006         (num_calls): Likewise.
8007         (can_early_inline_edge_p): Likewise.
8008         (can_inline_edge_p): Likewise.
8009         (report_inline_failed_reason): Likewise.
8010         * ipa-profile.c (ipa_profile): Likewise.
8011         (ipa_propagate_frequency): Likewise.
8012         (ipa_propagate_frequency_1): Likewise.
8013         (ipa_profile_generate_summary): Likewise.
8014         * ipa-prop.c (ipcp_transform_function): Likewise.
8015         (read_replacements_section): Likewise.
8016         (ipa_prop_read_section): Likewise.
8017         (ipa_modify_call_arguments): Likewise.
8018         (ipa_print_node_params): Likewise.
8019         (propagate_controlled_uses): Likewise.
8020         (update_indirect_edges_after_inlining): Likewise.
8021         (remove_described_reference): Likewise.
8022         (ipa_make_edge_direct_to_target): Likewise.
8023         (ipa_analyze_node): Likewise.
8024         (ipa_analyze_params_uses): Likewise.
8025         (ipa_compute_jump_functions): Likewise.
8026         (ipa_get_callee_param_type): Likewise.
8027         (ipa_print_node_jump_functions): Likewise.
8028         (ipa_initialize_node_params): Likewise.
8029         (ipa_populate_param_decls): Likewise.
8030         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
8031         (write_agg_replacement_chain): Likewise.
8032         (ipa_write_node_info): Likewise.
8033         (ipa_edge_duplication_hook): Likewise.
8034         (try_decrement_rdesc_refcount): Likewise.
8035         * ipa-pure-const.c (propagate_nothrow): Likewise.
8036         (propagate_pure_const): Likewise.
8037         (pure_const_read_summary): Likewise.
8038         (pure_const_write_summary): Likewise.
8039         (analyze_function): Likewise.
8040         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
8041         (ipa_ref_referring_ref_list): Likewise.
8042         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
8043         (ipa_remove_stmt_references): Likewise.
8044         (ipa_find_reference): Likewise.
8045         (ipa_dump_referring): Likewise.
8046         (ipa_dump_references): Likewise.
8047         (ipa_record_reference): Likewise.
8048         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
8049         (ipa_reference_write_optimization_summary): Likewise.
8050         (write_node_summary_p): Likewise.
8051         (propagate): Likewise.
8052         (read_write_all_from_decl): Likewise.
8053         (generate_summary): Likewise.
8054         (analyze_function): Likewise.
8055         (propagate_bits): Likewise.
8056         (ipa_reference_get_not_written_global): Likewise.
8057         (ipa_reference_get_not_read_global): Likewise.
8058         * ipa-split.c (execute_split_functions): Likewise.
8059         (split_function): Likewise.
8060         * ipa-utils.c (ipa_merge_profiles): Likewise.
8061         (dump_cgraph_node_set): Likewise.
8062         (ipa_reverse_postorder): Likewise.
8063         (ipa_edge_within_scc): Likewise.
8064         (ipa_get_nodes_in_cycle): Likewise.
8065         (ipa_free_postorder_info): Likewise.
8066         (ipa_reduced_postorder): Likewise.
8067         (searchc): Likewise.
8068         (recursive_call_p): Likewise.
8069         * ipa.c (ipa_cdtor_merge): Likewise.
8070         (record_cdtor_fn): Likewise.
8071         (function_and_variable_visibility): Likewise.
8072         (varpool_externally_visible_p): Likewise.
8073         (cgraph_externally_visible_p): Likewise.
8074         (comdat_can_be_unshared_p): Likewise.
8075         (comdat_can_be_unshared_p_1): Likewise.
8076         (address_taken_from_non_vtable_p): Likewise.
8077         (ipa_discover_readonly_nonaddressable_vars): Likewise.
8078         (symtab_remove_unreachable_nodes): Likewise.
8079         (walk_polymorphic_call_targets): Likewise.
8080         (process_references): Likewise.
8081         (enqueue_node): Likewise.
8082         (has_addr_references_p): Likewise.
8083         (cgraph_non_local_node_p_1): Likewise.
8084         * is-a.h (varpool_analyze_node): Likewise.
8085         * lto-cgraph.c (input_symtab): Likewise.
8086         (merge_profile_summaries): Likewise.
8087         (input_cgraph_1): Likewise.
8088         (input_edge): Likewise.
8089         (input_varpool_node): Likewise.
8090         (input_node): Likewise.
8091         (input_overwrite_node): Likewise.
8092         (compute_ltrans_boundary): Likewise.
8093         (output_refs): Likewise.
8094         (lto_output_varpool_node): Likewise.
8095         (lto_output_node): Likewise.
8096         (reachable_from_other_partition_p): Likewise.
8097         (referenced_from_other_partition_p): Likewise.
8098         (lto_output_edge): Likewise.
8099         (output_node_opt_summary): Likewise.
8100         (add_node_to): Likewise.
8101         (reachable_from_this_partition_p): Likewise.
8102         (lto_set_symtab_encoder_in_partition): Likewise.
8103         (lto_symtab_encoder_in_partition_p): Likewise.
8104         (lto_set_symtab_encoder_encode_initializer): Likewise.
8105         (lto_symtab_encoder_encode_initializer_p): Likewise.
8106         (lto_set_symtab_encoder_encode_body): Likewise.
8107         (lto_symtab_encoder_encode_body_p): Likewise.
8108         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
8109         Likewise.
8110         * lto-streamer-in.c (lto_read_body): Likewise.
8111         (fixup_call_stmt_edges): Likewise.
8112         (fixup_call_stmt_edges_1): Likewise.
8113         * lto-streamer-out.c (produce_symtab): Likewise.
8114         (output_symbol_p): Likewise.
8115         (write_symbol): Likewise.
8116         (lto_output): Likewise.
8117         (copy_function): Likewise.
8118         (output_function): Likewise.
8119         * passes.c (function_called_by_processed_nodes_p): Likewise.
8120         (ipa_write_optimization_summaries): Likewise.
8121         (ipa_write_summaries): Likewise.
8122         (do_per_function_toporder): Likewise.
8123         (do_per_function): Likewise.
8124         (dump_passes): Likewise.
8125         * symtab.c (symtab_semantically_equivalent_p): Likewise.
8126         (symtab_nonoverwritable_alias): Likewise.
8127         (symtab_nonoverwritable_alias_1): Likewise.
8128         (symtab_for_node_and_aliases): Likewise.
8129         (symtab_resolve_alias): Likewise.
8130         (fixup_same_cpp_alias_visibility): Likewise.
8131         (symtab_alias_ultimate_target): Likewise.
8132         (symtab_used_from_object_file_p): Likewise.
8133         (verify_symtab_base): Likewise.
8134         (dump_symtab_base): Likewise.
8135         (symtab_node_name): Likewise.
8136         (symtab_node_asm_name): Likewise.
8137         (symtab_dissolve_same_comdat_group_list): Likewise.
8138         (symtab_add_to_same_comdat_group): Likewise.
8139         (symtab_unregister_node): Likewise.
8140         (symtab_insert_node_to_hashtable): Likewise.
8141         (symtab_register_node): Likewise.
8142         (unlink_from_assembler_name_hash): Likewise.
8143         (insert_to_assembler_name_hash): Likewise.
8144         (eq_assembler_name): Likewise.
8145         (hash_node_by_assembler_name): Likewise.
8146         (eq_node): Likewise.
8147         (hash_node): Likewise.
8148         * toplev.c (wrapup_global_declaration_2): Likewise.
8149         * trans-mem.c (ipa_tm_execute): Likewise.
8150         (ipa_tm_transform_clone): Likewise.
8151         (ipa_tm_transform_transaction): Likewise.
8152         (ipa_tm_transform_calls_redirect): Likewise.
8153         (ipa_tm_insert_gettmclone_call): Likewise.
8154         (ipa_tm_insert_irr_call): Likewise.
8155         (ipa_tm_create_version): Likewise.
8156         (ipa_tm_create_version_alias): Likewise.
8157         (ipa_tm_mark_forced_by_abi_node): Likewise.
8158         (ipa_tm_mark_force_output_node): Likewise.
8159         (ipa_tm_diagnose_tm_safe): Likewise.
8160         (ipa_tm_mayenterirr_function): Likewise.
8161         (ipa_tm_scan_irr_function): Likewise.
8162         (ipa_tm_note_irrevocable): Likewise.
8163         (ipa_tm_scan_calls_clone): Likewise.
8164         (get_cg_data): Likewise.
8165         * tree-eh.c (tree_could_trap_p): Likewise.
8166         * tree-emutls.c (ipa_lower_emutls): Likewise.
8167         (create_emultls_var): Likewise.
8168         (lower_emutls_function_body): Likewise.
8169         (gen_emutls_addr): Likewise.
8170         (emutls_decl): Likewise.
8171         (new_emutls_decl): Likewise.
8172         * tree-inline.c (tree_function_versioning): Likewise.
8173         (optimize_inline_calls): Likewise.
8174         (expand_call_inline): Likewise.
8175         (estimate_num_insns): Likewise.
8176         (copy_bb): Likewise.
8177         (delete_unreachable_blocks_update_callgraph): Likewise.
8178         * tree-nested.c (gimplify_all_functions): Likewise.
8179         (create_nesting_tree): Likewise.
8180         (check_for_nested_with_variably_modified): Likewise.
8181         * tree-pretty-print.c (dump_function_header): Likewise.
8182         * tree-profile.c (tree_profiling): Likewise.
8183         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
8184         (modify_function): Likewise.
8185         (convert_callers): Likewise.
8186         (convert_callers_for_node): Likewise.
8187         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
8188         (associate_varinfo_to_alias): Likewise.
8189         (create_variable_info_for): Likewise.
8190         (get_constraint_for_ssa_var): Likewise.
8191         * tree-vectorizer.c (increase_alignment): Likewise.
8192         * tree.c (find_decls_types_in_var): Likewise.
8193         (find_decls_types_in_node): Likewise.
8194         (free_lang_data_in_decl): Likewise.
8195         * value-prof.c (gimple_ic_transform): Likewise.
8196         (gimple_ic): Likewise.
8197         (check_ic_target): Likewise.
8198         (init_node_map): Likewise.
8199         * varasm.c (decl_binds_to_current_def_p): Likewise.
8200         (default_binds_local_p_1): Likewise.
8201         (dump_tm_clone_pairs): Likewise.
8202         (assemble_alias): Likewise.
8203         (find_decl): Likewise.
8204         (mark_decl_referenced): Likewise.
8205         * varpool.c (varpool_for_node_and_aliases): Likewise.
8206         (varpool_extra_name_alias): Likewise.
8207         (varpool_create_variable_alias): Likewise.
8208         (add_new_static_var): Likewise.
8209         (varpool_finalize_named_section_flags): Likewise.
8210         (varpool_remove_unreferenced_decls): Likewise.
8211         (enqueue_node): Likewise.
8212         (varpool_assemble_decl): Likewise.
8213         (assemble_aliases): Likewise.
8214         (varpool_analyze_node): Likewise.
8215         (cgraph_variable_initializer_availability): Likewise.
8216         (varpool_add_new_variable): Likewise.
8217         (ctor_for_folding): Likewise.
8218         (dump_varpool_node): Likewise.
8219         (varpool_remove_initializer): Likewise.
8220         (varpool_remove_node): Likewise.
8221         (varpool_node_for_decl): Likewise.
8222         (varpool_create_empty_node): Likewise.
8223         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
8224         (ix86_get_function_versions_dispatcher): Likewise.
8226 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8228         * cgraph.h (symtab_node_base): Convert to a class;
8229         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
8230         chain_next/prev from symtab_node_def.
8231         (cgraph_node): Inherit from symtab_node; add GTY option
8232         tag ("SYMTAB_FUNCTION").
8233         (varpool_node): Inherit from symtab_node; add GTY option
8234         tag ("SYMTAB_VARIABLE").
8235         (symtab_node_def): Remove.
8236         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
8237         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
8238         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
8239         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
8241         * ipa-ref.h (symtab_node_def): Drop.
8242         (symtab_node): Change underlying type from symtab_node_def to
8243         symtab_node_base.
8244         (const_symtab_node): Likwise.
8246         * is-a.h: Update examples in comment.
8248         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
8249         (assembler_name_hash): Likewise.
8251 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
8253         * doc/tree-ssa.texi (gimple_phi_result): Document.
8254         (gimple_phi_num_args, gimple_phi_arg): Likewise.
8255         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
8256         (PHI_RESULT, PHI_NUM_ARGS): Remove.
8257         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
8259 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8261         * expr.h: Revert change and include tree-core.h.
8262         * rtl.h: Revert change and don't include tree-core.h.
8264 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8266         * config/darwin.c: Include gimple.h.
8267         * config/i386/winnt.c: Likewise.
8269 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
8271         PR tree-optimization/19831
8272         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
8274 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
8276         * tree-outof-ssa.h: Remove include files.
8277         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
8278         * expr.c: Likewise.
8279         * tree-ssa-coalesce.c: Likewise.
8280         * cfgexpand.c: Likewise.
8281         * tree-ssa-ter.c: Likewise.
8282         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
8283         * lto-streamer.h: Likewise.
8284         * cgraphbuild.c: Add gimple.h to include list.
8285         * data-streamer-in.c: Likewise.
8286         * ipa-cp.c: Likewise.
8287         * tree-streamer.c: Likewise.
8288         * lto-compress.c: Likewise.
8289         * ipa-reference.c: Likewise.
8290         * data-streamer-out.c: Likewise.
8291         * lto-cgraph.c: Likewise.
8292         * cgraphclones.c: Likewise.
8293         * ipa-utils.c: Likewise.
8294         * data-streamer.c: Likewise.
8295         * ipa-split.c: Likewise.
8296         * lto-section-in.c: Likewise.
8297         * tree-streamer-out.c: Likewise.
8298         * ipa-prop.c: Likewise.
8299         * tree-streamer-in.c: Likewise.
8300         * symtab.c: Likewise.
8301         * opts-global.c: Likewise.
8302         * lto-opts.c: Likewise.
8303         * lto-section-out.c: Likewise.
8304         * lto-streamer.c: Likewise.
8305         * rtl.h: Add tree-core.h to include list.
8306         * expr.h: Remove tree-core.h from include list.
8307         * gimple.h: Likewise.
8308         * ipa-utils.h: Likewise.
8309         * streamer-hooks.h: Likewise.
8310         * streamer-hooks.c: Include input.h.
8312 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8314         * config/arm/arm.c (cortexa7_extra_costs): New table.
8315         (arm_cortex_a7_tune): New.
8316         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
8318 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
8320         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
8322 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8324         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
8325         to use autogenerated markers for a class-hierarchy, every class
8326         must have a GTY marker.
8327         * gengtype.h (struct type): Add linked list of subclasses to
8328         the "s" member of the union.
8329         (add_subclass): New decl.
8330         * gengtype-state.c (read_state_struct_type): Set up subclass
8331         linked list.
8332         * gengtype.c (get_ultimate_base_class): New.
8333         (add_subclass): New.
8334         (new_structure): Set up subclass linked list.
8335         (set_gc_used_type): Propagate usage information to subclasses.
8336         (output_mangled_typename): Use get_ultimate_base_class.
8337         (walk_subclasses): Use the subclass linked list, avoiding an
8338         O(N^2) when writing out all types.
8339         (walk_type): Issue an error if the base class is missing a tag,
8340         rather than generating bogus C code.  Add a gcc_unreachable
8341         default case, in case people omit tags from concrete subclasses,
8342         or get the values wrong.
8343         (write_func_for_structure): Issue an error for subclasses for
8344         which the base doesn't have a "desc", since otherwise the
8345         autogenerated routines for the base would silently fail to visit
8346         any subclass fields.
8347         (write_root): Use get_ultimate_base_class, tweaking constness of
8348         tp to match that function's signature.
8350 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8352         * doc/gty.texi (GTY Options): Add note about inheritance to
8353         description of desc and tag.
8354         (Inheritance and GTY): New.
8356 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
8358         * gengtype-parse.c (opts_have): Drop "static" so that
8359         we can use this from gengtype.c.
8360         * gengtype.c (set_gc_used_type): Mark any base class as used;
8361         update field traversal to visit inherited fields.
8362         (output_mangled_typename):  Convert references to classes within
8363         an inheritance hierarchy to reference the ultimate base class,
8364         since only it will have gt_ functions.
8365         (get_string_option): New.
8366         (walk_subclasses): New.
8367         (walk_type): Treat GTY structs that have a "desc" as being the
8368         root of an inheritance hierarchy.  Generate a switch on it
8369         within the marking function which walks all subclasses, adding
8370         cases for them via walk_subclasses.  For subclasses, visit all
8371         fields of the type (including inherited ones).
8372         (write_func_for_structure): Don't write fns for subclasses, only
8373         for the ultimate base class within an inheritance hierarchy.
8374         Subclasses-marking will be handled by the base class marking functions.
8375         (write_types): Likewise.
8376         (write_local_func_for_structure): Likewise.
8377         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
8378         a "tag" option (and are thus concrete subclasses).
8379         (write_root): Use the marker function for the ultimate base class.
8380         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
8381         (opts_have): Add declaration.
8383 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
8385         * lra-spills.c (lra_final_code_change): Remove useless move insns
8386         originated from moves of pseudos.
8388 2013-10-28  Jeff Law  <law@redhat.com>
8390         * lower-subreg.c (resolve_simple_move): Fix comment typo.
8392 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
8394         * df-scan.c (df_collection_rec): Adjust.
8395         (copy_defs): New constant.
8396         (copy_uses): Likewise.
8397         (copy_eq_uses): Likewise.
8398         (copy_mw): Likewise.
8399         (copy_all): Likewise.
8400         (df_insn_rescan): Adjust.
8401         (df_notes_rescan): Likewise.
8402         (df_swap_refs): Likewise.
8403         (df_sort_and_compress_refs): Likewise.
8404         (df_sort_and_compress_mws): Likewise.
8405         (df_install_refs): Likewise.
8406         (df_install_mws): Likewise.
8407         (df_refs_add_to_chains): Add flags parameter controlling which vectors
8408         are coppied.
8409         (df_bb_refs_record): Adjust.
8410         (df_record_entry_block_defs): Likewise.
8411         (df_record_exit_block_defs): Likewise.
8412         (df_refs_verify): Likewise.
8413         (df_mws_verify): Likewise.
8414         (df_insn_refs_verify): Likewise.
8415         (df_bb_verify): Likewise.
8416         * ipa-pure-const.c (finish_state): Remove.
8417         (propagate): Adjust.
8418         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
8419         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
8420         var-tracking.c: Adjust.
8421         * vec.c (stack_vecs): Remove.
8422         (register_stack_vec): Likewise.
8423         (stack_vec_register_index): Likewise.
8424         (unregister_stack_vec): Likewise.
8425         * vec.h (struct va_stack): Remove.
8426         (struct vec<T, A, vl_ptr>): Specialize as
8427         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
8428         allocation strategy compatable with the vl_ptr layout.
8429         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
8430         specialization anyway.
8431         (class stack_vec): New class.
8432         (vec_stack_alloc): Remove.
8433         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
8435 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8436             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8437             Sergey Lega  <sergey.s.lega@intel.com>
8438             Anna Tikhonova  <anna.tikhonova@intel.com>
8439             Ilya Tocar  <ilya.tocar@intel.com>
8440             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8441             Ilya Verbin  <ilya.verbin@intel.com>
8442             Kirill Yukhin  <kirill.yukhin@intel.com>
8443             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8445         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
8446         (*prefetch_avx512pf_<mode>): New.
8447         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
8448         (avx512f_maskcmp<mode>3): Ditto.
8449         (vashrv16si3): Ditto.
8451 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8452             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8453             Sergey Lega  <sergey.s.lega@intel.com>
8454             Anna Tikhonova  <anna.tikhonova@intel.com>
8455             Ilya Tocar  <ilya.tocar@intel.com>
8456             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8457             Ilya Verbin  <ilya.verbin@intel.com>
8458             Kirill Yukhin  <kirill.yukhin@intel.com>
8459             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8461         * config/i386/i386.md (any_truncate): New.
8462         (trunsuffix): Ditto.
8463         * config/i386/predicates.md (const_8_to_9_operand): New.
8464         (const_10_to_11_operand): Ditto.
8465         (const_12_to_13_operand): Ditto.
8466         (const_14_to_15_operand): Ditto.
8467         (const_16_to_19_operand): Ditto.
8468         (const_20_to_23_operand): Ditto.
8469         (const_24_to_27_operand): Ditto.
8470         (const_28_to_31_operand): Ditto.
8471         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
8472         (cvtusi2<ssescalarmodesuffix>32): New.
8473         (cvtusi2<ssescalarmodesuffix>64): Ditto.
8474         (ufloatv16siv16sf2): Ditto.
8475         (avx512f_fix_notruncv16sfv16si): Ditto.
8476         (avx512f_ufix_notruncv16sfv16si): Ditto.
8477         (avx512f_vcvtss2usi): Ditto.
8478         (avx512f_vcvtss2usiq): Ditto.
8479         (avx512f_vcvttss2usi): Ditto.
8480         (avx512f_vcvttss2usiq): Ditto.
8481         (avx512f_vcvtsd2usi): Ditto.
8482         (avx512f_vcvtsd2usiq): Ditto.
8483         (avx512f_vcvttsd2usi): Ditto.
8484         (avx512f_vcvttsd2usiq): Ditto.
8485         (ufloatv8siv8df): Ditto.
8486         (avx512f_cvtdq2pd512_2): Ditto.
8487         (avx512f_cvtpd2dq512): Ditto.
8488         (avx512f_ufix_notruncv8dfv8si): Ditto.
8489         (avx512f_cvtpd2ps512): Ditto.
8490         (vec_unpacks_lo_v16sf): Ditto.
8491         (vec_unpacks_hi_v16sf): Ditto.
8492         (vec_unpacks_float_hi_v16si): Ditto.
8493         (vec_unpacks_float_lo_v16si): Ditto.
8494         (avx512f_unpckhps512): Ditto.
8495         (avx512f_unpcklps512): Ditto.
8496         (avx512f_movshdup512): Ditto.
8497         (avx512f_movsldup512): Ditto.
8498         (vec_extract_lo_v32hi): Ditto.
8499         (vec_extract_hi_v32hi): Ditto.
8500         (vec_extract_lo_v64qi): Ditto.
8501         (vec_extract_hi_v64qi): Ditto.
8502         (avx512f_unpckhpd512): Ditto.
8503         (avx512f_movddup512): Ditto.
8504         (avx512f_unpcklpd512): Ditto.
8505         (*avx512f_unpcklpd512): Ditto.
8506         (avx512f_shufps512_1): Ditto.
8507         (avx512f_shufpd512_1): Ditto.
8508         (avx512f_interleave_highv8di): Ditto.
8509         (avx512f_interleave_lowv8di): Ditto.
8510         (PMOV_DST_MODE): Ditto.
8511         (pmov_src_mode): Ditto.
8512         (pmov_src_lower): Ditto.
8513         (pmov_suff): Ditto.
8514         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
8515         (*avx512f_<code>v8div16qi2): Ditto.
8516         (*avx512f_<code>v8div16qi2_store): Ditto.
8517         (vec_widen_umult_even_v16si): Ditto.
8518         (*vec_widen_umult_even_v16si): Ditto.
8519         (vec_widen_smult_even_v16si): Ditto.
8520         (*vec_widen_smult_even_v16si): Ditto.
8521         (avx512f_interleave_highv16si): Ditto.
8522         (avx512f_interleave_lowv16si): Ditto.
8523         (avx512f_<code>v16qiv16si2): Ditto.
8524         (avx512f_<code>v16hiv16si2): Ditto.
8525         (avx512f_<code>v8qiv8di2): Ditto.
8526         (avx512f_<code>v8hiv8di2): Ditto.
8527         (avx512f_<code>v8siv8di2): Ditto.
8528         (avx512cd_maskb_vec_dupv8di): Ditto.
8529         (avx512cd_maskw_vec_dupv16si): Ditto.
8530         (avx512f_vcvtph2ps512): Ditto.
8531         (avx512f_vcvtps2ph512): Ditto.
8532         (VEC_EXTRACT_MODE): Extened with wider modes.
8533         (VEC_PERM_AVX2): Ditto.
8534         (VEC_PERM_CONST): Ditto.
8536 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8538         * config/arc/arc.c (arc_ccfsm_post_advance):
8539         Add comment about TYPE_RETURN.
8541 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
8543         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
8544         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
8545         (strip_offset): Convert offset to unsigned number.
8547 2013-10-27  Tom de Vries  <tom@codesourcery.com>
8549         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
8550         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
8552 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
8554         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
8555         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
8556         (TARGET_BIG_ENDIAN): New macro.
8557         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
8558         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
8559         * config/sh/sh.c: Likewise.
8560         * config/sh/sh.h: Likewise.
8562 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
8564         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
8565         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
8567 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
8569         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
8570         Fix formatting.
8571         (cmpstr_t, cmpstrsi): Fix formatting.
8573 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
8575         PR target/52483
8576         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
8577         addressing, do not use general_operand for memory operands.
8579 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
8581         Revert:
8582         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8583         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8585 2013-10-26  Jeff Law  <law@redhat.com>
8587         * predict.c (PRED_MUDFLAP): Remove.
8588         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
8590         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
8591         (OBJS): Remove tree-nomudflap.o
8592         (GTFILES): Remove tree-mudflap.c
8593         * builtins.c (expand_builtin_alloc): Remove mudflap support.
8594         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8595         (mfwrap_spec, mflib_spec): Likewise.
8596         (cpp_unique_options, cc1_options, static_specs): Likewise.
8597         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
8598         * passes.def: Likewise.
8599         * toplev.c (compile_file, process_options): Likewise.
8600         * tree-inline.c (copy_tree_r): Likewise.
8601         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
8602         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
8603         (build_constant_desc, output_constant_def_contents): Likewise.
8604         (categorize_decl_for_section): Likewise.
8605         * tree-mudflap.c: Removed.
8606         * tree-mudflap.h: Removed.
8607         * tree-nomudflap.c: Removed.
8608         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
8609         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
8610         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8611         * config/sol2.h (MFLIB_SPEC): Likewise.
8612         * doc/install.texi: Remove mudflap references.
8613         * doc/passes.texi: Similarly.
8614         * doc/sourcebuild.texi: Similarly.
8615         * doc/invoke.texi: Remove mudlfap related options.
8617 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8619         PR rtl-optimization/58759
8620         * lra-constraints.c (lra_constraints): Remove wrong condition to
8621         remove insn setting up an equivalent pseudo.
8623 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8625         * config/rs6000/rs6000-protos.h
8626         (rs6000_secondary_memory_needed_mode): New prototype.
8627         * config/rs6000/rs6000.c: Include ira.h.
8628         (TARGET_LRA_P): Redefine.
8629         (rs6000_legitimate_offset_address_p): Call
8630         legitimate_constant_pool_address_p in strict mode for LRA.
8631         (rs6000_legitimate_address_p): Ditto.
8632         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
8633         (rs6000_emit_move): Add LRA version of code to generate load/store
8634         of SDmode values.
8635         (rs6000_secondary_memory_needed_mode): New.
8636         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
8637         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
8638         constants, memory, and FP registers.
8639         (rs6000_lra_p): New.
8640         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
8641         * config/rs6000/rs6000.opt (mlra): New option.
8642         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8644 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
8646         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
8647         has_single_use () and not do the conversion if has_single_use ()
8648         returns false for the multiplication result.
8650 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
8652         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
8653         to "NODE", since this works on a "tree", not an
8654         "enum tree_code".
8655         (CONSTANT_CLASS_P): Likewise.
8656         (TYPE_P): Likewise.
8657         (DECL_P): Likewise.
8658         (INDIRECT_REF_P): Likewise.
8659         (REFERENCE_CLASS_P): Likewise.
8660         (COMPARISON_CLASS_P): Likewise.
8661         (UNARY_CLASS_P): Likewise.
8662         (BINARY_CLASS_P): Likewise.
8663         (STATEMENT_CLASS_P): Likewise.
8664         (VL_EXP_CLASS_P): Likewise.
8665         (EXPRESSION_CLASS_P): Likewise.
8666         (IS_TYPE_OR_DECL_P): Likewise.
8668 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
8670         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
8671         ADDR_EXPR in the defining statement.
8673 2013-10-25  Richard Biener  <rguenther@suse.de>
8675         PR tree-optimization/58626
8676         * tree-loop-distribution.c (enum rdg_dep_type): Remove
8677         anti_dd, output_dd and input_dd.
8678         (struct rdg_edge): Remove level and relation members.
8679         (RDGE_LEVEL, RDGE_RELATION): Remove.
8680         (dot_rdg_1): Adjust.
8681         (create_rdg_edge_for_ddr): Remove.
8682         (create_rdg_edges_for_scalar): Adjust.
8683         (create_edge_for_control_dependence): Likewise.
8684         (create_rdg_edges): Split into ...
8685         (create_rdg_flow_edges): ... this
8686         (create_rdg_cd_edges): ... and this.
8687         (free_rdg): Adjust.
8688         (build_rdg): Likewise, do not compute data dependences or
8689         add edges for them.
8690         (pg_add_dependence_edges): New function.
8691         (pgcmp): Likewise.
8692         (distribute_loop): First apply all non-dependence based
8693         partition mergings.  Then compute dependences between partitions
8694         and merge and order partitions according to them.
8696 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
8698         PR rtl-optimization/58831
8699         * alias.c (init_alias_analysis): At the beginning of each iteration,
8700         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
8702 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
8704         * recog.c (search_ofs): New static variable moved from...
8705         (peep2_find_free_register): ...here.
8706         (peephole2_optimize): Initialize it.
8708 2013-10-25  Tobias Burnus  <burnus@net-b.de>
8710         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
8712 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
8714         * config/i386/i386.h (TARGET_MPX): New define.
8715         (TARGET_MPX_P): Ditto.
8717 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
8719         * config/i386/constraints.md (B): New.
8720         (Ti): New.
8721         (Tb): New.
8722         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
8723         * config/i386/i386-modes.def (BND32): New.
8724         (BND64): New.
8725         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
8726         * config/i386/i386.c (isa_opts): Add mmpx.
8727         (regclass_map): Add bound registers.
8728         (dbx_register_map): Likewise.
8729         (dbx64_register_map): Likewise.
8730         (svr4_dbx_register_map): Likewise.
8731         (PTA_MPX): New.
8732         (ix86_option_override_internal): Support MPX ISA.
8733         (ix86_conditional_register_usage): Support bound registers.
8734         (print_reg): Likewise.
8735         (ix86_code_end): Add MPX bnd prefix.
8736         (output_set_got): Likewise.
8737         (ix86_output_call_insn): Likewise.
8738         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
8739         (ix86_print_operand_punct_valid_p): Likewise.
8740         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
8741         UNSPEC_BNDMK_ADDR.
8742         (ix86_class_likely_spilled_p): Add bound regs support.
8743         (ix86_hard_regno_mode_ok): Likewise.
8744         (x86_order_regs_for_local_alloc): Likewise.
8745         (ix86_bnd_prefixed_insn_p): New.
8746         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
8747         (FIXED_REGISTERS): Add bound registers.
8748         (CALL_USED_REGISTERS): Likewise.
8749         (REG_ALLOC_ORDER): Likewise.
8750         (HARD_REGNO_NREGS): Likewise.
8751         (TARGET_MPX): New.
8752         (VALID_BND_REG_MODE): New.
8753         (FIRST_BND_REG): New.
8754         (LAST_BND_REG): New.
8755         (reg_class): Add BND_REGS.
8756         (REG_CLASS_NAMES): Likewise.
8757         (REG_CLASS_CONTENTS): Likewise.
8758         (BND_REGNO_P): New.
8759         (ANY_BND_REG_P): New.
8760         (BNDmode): New.
8761         (HI_REGISTER_NAMES): Add bound registers.
8762         * config/i386/i386.md (UNSPEC_BNDMK): New.
8763         (UNSPEC_BNDMK_ADDR): New.
8764         (UNSPEC_BNDSTX): New.
8765         (UNSPEC_BNDLDX): New.
8766         (UNSPEC_BNDLDX_ADDR): New.
8767         (UNSPEC_BNDCL): New.
8768         (UNSPEC_BNDCU): New.
8769         (UNSPEC_BNDCN): New.
8770         (UNSPEC_MPX_FENCE): New.
8771         (BND0_REG): New.
8772         (BND1_REG): New.
8773         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8774         (length_immediate): Likewise.
8775         (prefix_0f): Likewise.
8776         (memory): Likewise.
8777         (prefix_rep): Check for bnd prefix.
8778         (length_nobnd): New.
8779         (length): Use length_nobnd if specified.
8780         (BND): New.
8781         (bnd_ptr): New.
8782         (BNDCHECK): New.
8783         (bndcheck): New.
8784         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
8785         (*jcc_2): Likewise.
8786         (jump): Likewise.
8787         (simple_return_internal): Likewise.
8788         (simple_return_pop_internal): Likewise.
8789         (*indirect_jump): Add MPX bnd prefix.
8790         (*tablejump_1): Likewise.
8791         (simple_return_internal_long): Likewise.
8792         (simple_return_indirect_internal): Likewise.
8793         (<mode>_mk): New.
8794         (*<mode>_mk): New.
8795         (mov<mode>): New.
8796         (*mov<mode>_internal_mpx): New.
8797         (<mode>_<bndcheck>): New.
8798         (*<mode>_<bndcheck>): New.
8799         (<mode>_ldx): New.
8800         (*<mode>_ldx): New.
8801         (<mode>_stx): New.
8802         (*<mode>_stx): New.
8803         * config/i386/predicates.md (lea_address_operand): Rename to...
8804         (address_no_seg_operand): ... this.
8805         (address_mpx_no_base_operand): New.
8806         (address_mpx_no_index_operand): New.
8807         (bnd_mem_operator): New.
8808         * config/i386/i386.opt (mmpx): New.
8809         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
8810         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
8812 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
8814         * mode-classes.def (MODE_POINTER_BOUNDS): New.
8815         * tree.def (POINTER_BOUNDS_TYPE): New.
8816         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
8817         (POINTER_BOUNDS_MODE): New.
8818         (make_pointer_bounds_mode): New.
8819         * machmode.h (POINTER_BOUNDS_MODE_P): New.
8820         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
8821         (layout_type): Support POINTER_BOUNDS_TYPE.
8822         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
8823         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
8824         (type_contains_placeholder_1): Likewise.
8825         * tree.h (POINTER_BOUNDS_TYPE_P): New.
8826         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
8827         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
8829 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
8831         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
8832         mode of address computation when calling memory_address_addr_space.
8834 2013-08-24  Richard Henderson  <rth@twiddle.net>
8836         PR rtl/58542
8837         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
8838         instead of create_convert_operand_to.
8839         (maybe_emit_sync_lock_test_and_set): Likewise.
8840         (expand_atomic_compare_and_swap): Likewise.
8841         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
8843 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
8845         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
8846         Change param_is to use the struct and not the pointer to the struct.
8848 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
8850         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
8851         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8852         Move to targhooks.c.
8853         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
8854         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8855         Relocate from gimplify.c.
8856         * targhooks.h: Add 2 prototypes.
8857         * tree.h: Delete 2 prototypes.
8859 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
8861         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
8862         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
8864 2013-10-24  Cong Hou  <congh@google.com>
8866         * convert.c (convert_to_real): Guard those unsafe math function
8867         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
8868         specially.
8870 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
8872         PR ipa/58712
8873         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
8874         as argument.
8875         (cgraph_create_edge): Use the new argument.
8876         (cgraph_create_indirect_edge): Likewise.
8878 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
8880         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
8881         TYPE_UNCOND_BRANCH.
8882         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
8883         changes statep->state.
8885 2013-10-24  Tobias Burnus  <burnus@net-b.de>
8887         PR other/33426
8888         * tree-cfg.c (replace_loop_annotate): New function.
8889         (execute_build_cfg): Call it.
8890         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
8891         * internal-fn.c (expand_ANNOTATE): New function.
8892         * internal-fn.def (ANNOTATE): Define as new internal function.
8893         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
8894         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
8895         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
8896         * doc/extend.texi (Pragmas): Document #pragma ivdep.
8897         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
8899 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
8900             Marcus Shawcroft  <marcus.shawcroft@arm.com>
8902         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
8903         Special case reload SP+C into none GENERAL_REGS.
8905 2013-10-24  Michael Matz  <matz@suse.de>
8907         * gengtype.c (is_file_equal): Check that files will be same length.
8909 2013-10-25  Christian Bruel  <christian.bruel@st.com>
8911         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
8912         * config/sh/t-sh (sh-mem.o): New rule.
8913         * config/sh/sh-mem.cc (expand_block_move): Moved here.
8914         (sh_expand_cmpstr): New function.
8915         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
8916         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
8917         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
8918         (rotlhi3_8): Rename.
8920 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8922         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
8923         * Makefile.in (CXXDEPMODE): Assign and change users.
8924         (CCDEPMODE): Delete.
8925         * configure: Regenerate.
8927 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
8929         * gengtype-parse.c (require_without_advance): New.
8930         (type): For GTY-marked types that are not GTY((user)), parse any
8931         base classes, requiring them to be single-inheritance, and not
8932         be templates.  For non-GTY-marked types and GTY((user)),
8933         continue to skip over any C++ inheritance specification.
8934         * gengtype-state.c (state_writer::write_state_struct_type):
8935         Write base class of type (if any).
8936         (read_state_struct_type): Read base class of type (if any).
8937         * gengtype.c (new_structure): Add a "base_class" parameter.
8938         (create_optional_field_): Update for new parameter to new_structure.
8939         (adjust_field_rtx_def): Likewise.
8940         (adjust_field_tree_exp): Likewise.
8941         * gengtype.h (struct type): Add "base_class" field to the s
8942         union field.
8943         (new_structure): Add "base" parameter.
8945 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
8947         PR target/57756
8948         * config/i386/i386.c (ix86_option_override_internal):
8949         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
8950         (ix86_valid_target_attribute_tree):
8951         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
8952         Change TARGET_SSE to TARGET_SSE_P (opts->...)
8954 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
8956         * tree-ssa-loop.h: Remove include files.
8957         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
8958         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
8959         * graphite-clast-to-gimple.c: Likewise.
8960         * graphite-scop-detection.c: Likewise.
8961         * graphite-sese-to-poly.c: Likewise.
8962         * ipa-inline-analysis.c: Likewise.
8963         * ipa-pure-const.c: Likewise.
8964         * loop-init.c: Likewise.
8965         * passes.c: Likewise.
8966         * predict.c: Likewise.
8967         * tree-cfg.c: Likewise.
8968         * tree-cfgcleanup.c: Likewise.
8969         * tree-chrec.c: Likewise.
8970         * tree-data-ref.c: Likewise.
8971         * tree-loop-distribution.c: Likewise.
8972         * tree-parloops.c: Likewise.
8973         * tree-predcom.c: Likewise.
8974         * tree-scalar-evolution.c: Likewise.
8975         * tree-ssa-address.c: Likewise.
8976         * tree-ssa.c: Likewise.
8977         * tree-ssa-dce.c: Likewise.
8978         * tree-ssa-loop.c: Likewise.
8979         * tree-ssa-loop-im.c: Likewise.
8980         * tree-ssa-loop-ivcanon.c: Likewise.
8981         * tree-ssa-loop-ivopts.c: Likewise.
8982         * tree-ssa-loop-manip.c: Likewise.
8983         * tree-ssa-loop-niter.c: Likewise.
8984         * tree-ssa-loop-prefetch.c: Likewise.
8985         * tree-ssa-loop-unswitch.c: Likewise.
8986         * tree-ssa-reassoc.c: Likewise.
8987         * tree-vect-data-refs.c: Likewise.
8988         * tree-vect-loop.c: Likewise.
8989         * tree-vect-loop-manip.c: Likewise.
8990         * tree-vectorizer.c: Likewise.
8991         * tree-vect-stmts.c: Likewise.
8992         * tree-vrp.c: Likewise.
8994 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8996         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
8998 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9000         PR tree-optimization/58775
9001         PR tree-optimization/58791
9002         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
9003         (insert_stmt_after): Rewritten, don't move the stmt, but really
9004         insert it.
9005         (get_stmt_uid_with_default): Remove.
9006         (build_and_add_sum): Use insert_stmt_after and
9007         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
9008         (update_range_test): Set uid on stmts added by
9009         force_gimple_operand_gsi.  Don't immediately modify statements
9010         in inter-bb optimization, just update oe->op values.
9011         (optimize_range_tests): Return bool whether any changed have been made.
9012         (update_ops): New function.
9013         (struct inter_bb_range_test_entry): New type.
9014         (maybe_optimize_range_tests): Perform statement changes here.
9015         (not_dominated_by, appears_later_in_bb, get_def_stmt,
9016         ensure_ops_are_available): Remove.
9017         (find_insert_point): Rewritten.
9018         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
9019         return LHS of the (new resp. old) stmt.  Don't call
9020         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
9021         instead of last, move new stmt at the right place.
9022         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
9023         (negate_value): Likewise.  Set uids.
9024         (break_up_subtract_bb): Initialize uids.
9025         (reassociate_bb): Adjust rewrite_expr_tree caller.
9026         (do_reassoc): Don't call renumber_gimple_stmt_uids.
9028 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
9030         PR target/58838
9031         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
9032         TARGET_32BIT final condition.
9033         (mulsi3_internal2 and splitter): Same.
9035 2013-10-23  Jeff Law  <law@redhat.com>
9037         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
9038         through joiner blocks with abnormal outgoing edges.
9040         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
9041         Add parameter JOINERS, to allow/disallow threading through joiner
9042         blocks.
9043         (thread_block): New.  Call thread_block_1.
9044         (mark_threaded_blocks): Remove code to filter out certain cases
9045         of threading through joiner blocks.
9046         (thread_through_all_blocks): Document how we can have a dangling
9047         edge AUX field and clear it.
9049 2013-10-23  Ian Lance Taylor  <iant@google.com>
9051         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
9052         (C++ Dialect Options): Likewise.
9053         (Optimize Options): Likewise.
9055 2013-10-23  Tom de Vries  <tom@codesourcery.com>
9057         PR tree-optimization/58805
9058         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
9060 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9062         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
9063         sequence based on get_range_info returned range.
9065 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
9067         * tree-ssa.h: Remove all #include's
9068         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
9069         * alias.c: Move required includes from tree-ssa.h.
9070         * asan.c: Likewise.
9071         * builtins.c: Likewise.
9072         * calls.c: Likewise.
9073         * cfgexpand.c: Likewise.
9074         * cfghooks.c: Likewise.
9075         * cfgloop.c: Likewise.
9076         * cfgloopmanip.c: Likewise.
9077         * cgraph.c: Likewise.
9078         * cgraphbuild.c: Likewise.
9079         * cgraphclones.c: Likewise.
9080         * cgraphunit.c: Likewise.
9081         * dse.c: Likewise.
9082         * except.c: Likewise.
9083         * expr.c: Likewise.
9084         * final.c: Likewise.
9085         * fold-const.c: Likewise.
9086         * ggc-page.c: Likewise.
9087         * gimple-builder.c: Likewise.
9088         * gimple-fold.c: Likewise.
9089         * gimple-iterator.c: Likewise.
9090         * gimple-low.c: Likewise.
9091         * gimple-pretty-print.c: Likewise.
9092         * gimple-ssa-strength-reduction.c: Likewise.
9093         * gimple-streamer-in.c: Likewise.
9094         * gimple-streamer-out.c: Likewise.
9095         * gimplify.c: Likewise.
9096         * graphite-blocking.c: Likewise.
9097         * graphite-clast-to-gimple.c: Likewise.
9098         * graphite-dependences.c: Likewise.
9099         * graphite-interchange.c: Likewise.
9100         * graphite-optimize-isl.c: Likewise.
9101         * graphite-poly.c: Likewise.
9102         * graphite-scop-detection.c: Likewise.
9103         * graphite-sese-to-poly.c: Likewise.
9104         * graphite.c: Likewise.
9105         * ipa-cp.c: Likewise.
9106         * ipa-inline-analysis.c: Likewise.
9107         * ipa-inline-transform.c: Likewise.
9108         * ipa-inline.c: Likewise.
9109         * ipa-prop.c: Likewise.
9110         * ipa-pure-const.c: Likewise.
9111         * ipa-reference.c: Likewise.
9112         * ipa-split.c: Likewise.
9113         * ipa-utils.c: Likewise.
9114         * loop-init.c: Likewise.
9115         * lto-cgraph.c: Likewise.
9116         * lto-section-in.c: Likewise.
9117         * lto-section-out.c: Likewise.
9118         * lto-streamer-in.c: Likewise.
9119         * lto-streamer-out.c: Likewise.
9120         * lto-streamer.c: Likewise.
9121         * omp-low.c: Likewise.
9122         * passes.c: Likewise.
9123         * predict.c: Likewise.
9124         * print-tree.c: Likewise.
9125         * profile.c: Likewise.
9126         * sese.c: Likewise.
9127         * targhooks.c: Likewise.
9128         * tracer.c: Likewise.
9129         * trans-mem.c: Likewise.
9130         * tree-call-cdce.c: Likewise.
9131         * tree-cfg.c: Likewise.
9132         * tree-cfgcleanup.c: Likewise.
9133         * tree-chrec.c: Likewise.
9134         * tree-complex.c: Likewise.
9135         * tree-data-ref.c: Likewise.
9136         * tree-dfa.c: Likewise.
9137         * tree-eh.c: Likewise.
9138         * tree-emutls.c: Likewise.
9139         * tree-if-conv.c: Likewise.
9140         * tree-inline.c: Likewise.
9141         * tree-into-ssa.c: Likewise.
9142         * tree-loop-distribution.c: Likewise.
9143         * tree-mudflap.c: Likewise.
9144         * tree-nested.c: Likewise.
9145         * tree-nrv.c: Likewise.
9146         * tree-object-size.c: Likewise.
9147         * tree-outof-ssa.c: Likewise.
9148         * tree-parloops.c: Likewise.
9149         * tree-phinodes.c: Likewise.
9150         * tree-predcom.c: Likewise.
9151         * tree-pretty-print.c: Likewise.
9152         * tree-profile.c: Likewise.
9153         * tree-scalar-evolution.c: Likewise.
9154         * tree-sra.c: Likewise.
9155         * tree-ssa-address.c: Likewise.
9156         * tree-ssa-alias.c: Likewise.
9157         * tree-ssa-ccp.c: Likewise.
9158         * tree-ssa-coalesce.c: Likewise.
9159         * tree-ssa-copy.c: Likewise.
9160         * tree-ssa-copyrename.c: Likewise.
9161         * tree-ssa-dce.c: Likewise.
9162         * tree-ssa-dom.c: Likewise.
9163         * tree-ssa-dse.c: Likewise.
9164         * tree-ssa-forwprop.c: Likewise.
9165         * tree-ssa-ifcombine.c: Likewise.
9166         * tree-ssa-live.c: Likewise.
9167         * tree-ssa-loop-ch.c: Likewise.
9168         * tree-ssa-loop-im.c: Likewise.
9169         * tree-ssa-loop-ivcanon.c: Likewise.
9170         * tree-ssa-loop-ivopts.c: Likewise.
9171         * tree-ssa-loop-manip.c: Likewise.
9172         * tree-ssa-loop-niter.c: Likewise.
9173         * tree-ssa-loop-prefetch.c: Likewise.
9174         * tree-ssa-loop-unswitch.c: Likewise.
9175         * tree-ssa-loop.c: Likewise.
9176         * tree-ssa-math-opts.c: Likewise.
9177         * tree-ssa-operands.c: Likewise.
9178         * tree-ssa-phiopt.c: Likewise.
9179         * tree-ssa-phiprop.c: Likewise.
9180         * tree-ssa-pre.c: Likewise.
9181         * tree-ssa-propagate.c: Likewise.
9182         * tree-ssa-reassoc.c: Likewise.
9183         * tree-ssa-sccvn.c: Likewise.
9184         * tree-ssa-sink.c: Likewise.
9185         * tree-ssa-strlen.c: Likewise.
9186         * tree-ssa-structalias.c: Likewise.
9187         * tree-ssa-tail-merge.c: Likewise.
9188         * tree-ssa-ter.c: Likewise.
9189         * tree-ssa-threadedge.c: Likewise.
9190         * tree-ssa-threadupdate.c: Likewise.
9191         * tree-ssa-uncprop.c: Likewise.
9192         * tree-ssa-uninit.c: Likewise.
9193         * tree-ssa.c: Likewise.
9194         * tree-ssanames.c: Likewise.
9195         * tree-stdarg.c: Likewise.
9196         * tree-streamer-in.c: Likewise.
9197         * tree-switch-conversion.c: Likewise.
9198         * tree-tailcall.c: Likewise.
9199         * tree-vect-data-refs.c: Likewise.
9200         * tree-vect-generic.c: Likewise.
9201         * tree-vect-loop-manip.c: Likewise.
9202         * tree-vect-loop.c: Likewise.
9203         * tree-vect-patterns.c: Likewise.
9204         * tree-vect-slp.c: Likewise.
9205         * tree-vect-stmts.c: Likewise.
9206         * tree-vectorizer.c: Likewise.
9207         * tree-vrp.c: Likewise.
9208         * tree.c: Likewise.
9209         * tsan.c: Likewise.
9210         * value-prof.c: Likewise.
9211         * var-tracking.c: Likewise.
9212         * varpool.c: Likewise.
9213         * vtable-verify.c: Likewise.
9215 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9217         * config/tilegx/tilegx.c: Include "tree.h".
9219 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
9221         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
9222         the info, not after it.
9223         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
9224         dump_ssaname_info call.
9225         (pp_gimple_stmt_1): Adjust caller.
9226         (dump_phi_nodes): Likewise.  Don't print "# " here.
9228 2013-10-22  Jan Hubicka  <jh@suse.cz>
9230         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
9231         tuning flag.
9232         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
9233         * i386.c (expand_small_movmem_or_setmem): New function.
9234         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
9235         function.
9236         (alg_usable_p): Add support for value ranges; cleanup.
9237         (ix86_expand_set_or_movmem): Add support for misaligned moves.
9239 2013-10-22  Sterling Augustine  <saugustine@google.com>
9241         * doc/invoke.texi: Document -ggnu-pubnames.
9242         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
9243         logic.
9244         * dwarf2out.c: Include gdb/gdb-index.h.
9245         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
9246         debug_generate_pub_sections.
9247         (is_java, output_pubtables, output_pubname): New functions.
9248         (include_pubname_in_output): Handle debug_generate_pub_sections at
9249         level 2.
9250         (size_of_pubnames): Use new local space_for_flags based on
9251         debug_generate_pub_sections.
9252         (output_pubnames): Unify pubnames and pubtypes output logic.
9253         Genericize comments.  Call output_pubname.
9254         (dwarf2out_finish): Move logic to output_pubnames and call it.
9256 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
9258         PR target/58779
9259         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
9260         Remove CCCmode handling.
9261         <case LTU>: Return 'c' suffix for CCCmode.
9262         <case GEU>: Return 'nc' suffix for CCCmode.
9263         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
9264         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
9265         (*sub<mode>3_cc_overflow): Ditto.
9266         (*subsi3_zext_cc_overflow): Ditto.
9268 2013-10-22  Steve Ellcey  <sellcey@mips.com>
9270         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
9271         (AND (NOT OP1) (NOT OP2)).
9273 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
9275         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9276         meaning of merge-high and merge-low masks for little endian; avoid
9277         use of vector-pack masks for little endian for mismatched modes.
9279 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9281         * config/tilepro/tilepro.c: Include "tree.h".
9283 2013-10-22  Andreas Schwab  <schwab@suse.de>
9285         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
9286         with PRE_DEC.
9288 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
9290         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
9291         [Ed Smith-Rowland]): New entries.
9292         ([Stephen M. Webb]): Update.
9294 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
9296         * tree-ssa-ter.h: Remove duplicate copy of file contents.
9298 2013-10-21  Marek Polacek  <polacek@redhat.com>
9300         PR middle-end/58809
9301         * fold-const.c (fold_range_test): Return 0 if the type is not
9302         an integral type.
9304 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
9306         * system.h: Move hwint.h include further down.
9307         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
9308         gcc_checking_asserts.
9309         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
9311 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9313         Fix volatile issues in optimize_bit_field_compare.
9314         * fold-const.c (optimize_bit_field_compare): Bail out if
9315         lvolatilep or rvolatilep.
9317 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9319         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
9320         and get_inner_reference returning different pmode for non-volatile
9321         bit-field members dependent on flag_strict_volatile_bitfields.
9322         * stor-layout.c (layout_decl): Remove special handling of
9323         flag_strict_volatile_bitfields.
9324         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
9325         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
9327 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
9329         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
9330         calculations.
9332 2013-10-21  Jeff Law  <law@redhat.com>
9334         * tree-ssa-threadedge.c (thread_through_normal_block): New
9335         argument VISITED.  Remove VISISTED as a local variable.  When we
9336         have a threadable jump, verify the destination of the jump has not
9337         been visised.
9338         (thread_across_edge): Allocate VISITED bitmap once at function
9339         scope and use it throughout.  Make sure to set appropriate bits in
9340         VISITED for E (start of jump thread path).
9341         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
9342         through a joiner if any edge on the path has a recorded jump thread.
9344 2013-10-21  Ian Lance Taylor  <iant@google.com>
9346         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
9347         don't imply that attributes can solve all problems.
9348         (Directory Options): Fix typo.
9350 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9352         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
9353         extend and extend_add.
9355 2013-10-21  Richard Biener  <rguenther@suse.de>
9357         PR tree-optimization/58794
9358         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
9359         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
9361 2013-10-21  Richard Biener  <rguenther@suse.de>
9363         PR middle-end/58742
9364         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
9365         to (T) X for sign-changing conversions (or no conversion).
9367 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
9369         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
9371 2013-10-20  Jan Hubicka  <jh@suse.cz>
9373         * config/i386/i386-tune.def: Add comment; organize into categories
9375 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9377         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
9378         argument.  Update function comment.
9379         (expand_set_or_movmem_via_rep): New function combining
9380         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
9381         (expand_movmem_via_rep_mov): Remove.
9382         expand_setmem_via_rep_stos): Remove.
9383         (expand_movmem_epilogue): Update calls correspondingly.
9384         (expand_setmem_epilogue_via_loop): Likewise.
9385         (emit_memset): New.
9386         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
9387         (expand_set_or_movmem_prologue): New function combining
9388         expand_movmem_prologue and expand_setmem_prologue.
9389         (expand_movmem_prologue): Remove.
9390         (expand_setmem_prologue): Remove.
9391         (expand_set_or_movmem_constant_prologue): New function combining
9392         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
9393         (expand_constant_movmem_prologue): Remove.
9394         (expand_constant_setmem_prologue): Remove.
9395         (promote_duplicated_reg): Allow vector-const0 value.
9396         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
9397         and ix86_expand_setmem.
9398         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
9399         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
9401 2013-10-21  Diego Novillo  <dnovillo@google.com>
9403         * asan.c: Include tree.h
9404         * bb-reorder.c: Likewise.
9405         * cfgcleanup.c: Likewise.
9406         * cfgloopmanip.c: Likewise.
9407         * data-streamer-in.c: Likewise.
9408         * data-streamer-out.c: Likewise.
9409         * data-streamer.c: Likewise.
9410         * dwarf2cfi.c: Likewise.
9411         * graphite-blocking.c: Likewise.
9412         * graphite-clast-to-gimple.c: Likewise.
9413         * graphite-dependences.c: Likewise.
9414         * graphite-interchange.c: Likewise.
9415         * graphite-optimize-isl.c: Likewise.
9416         * graphite-poly.c: Likewise.
9417         * graphite-scop-detection.c: Likewise.
9418         * graphite-sese-to-poly.c: Likewise.
9419         * graphite.c: Likewise.
9420         * ipa-devirt.c: Likewise.
9421         * ipa-profile.c: Likewise.
9422         * ipa.c: Likewise.
9423         * ira.c: Likewise.
9424         * loop-init.c: Likewise.
9425         * loop-unroll.c: Likewise.
9426         * lower-subreg.c: Likewise.
9427         * lto/lto-object.c: Likewise.
9428         * recog.c: Likewise.
9429         * reginfo.c: Likewise.
9430         * tree-loop-distribution.c: Likewise.
9431         * tree-parloops.c: Likewise.
9432         * tree-ssa-strlen.c: Likewise.
9433         * tree-streamer.c: Likewise.
9434         * value-prof.c: Likewise.
9435         * target-globals.c: Likewise.
9436         * expr.h: Include tree-core.h instead of tree.h.
9437         * gimple.h: Likewise.
9438         * ipa-prop.h: Likewise.
9439         * ipa-utils.h: Likewise.
9440         * lto-streamer.h: Likewise.
9441         * streamer-hooks.h: Likewise.
9442         * ipa-reference.h: Include cgraph.h instead of tree.h.
9443         * cgraph.h: Include basic-block.h instead of tree.h.
9444         * tree-streamer.h: Do not include tree.h.
9445         * genattrtab.c (write_header): Generate inclusion of tree.h.
9446         * genautomata.c (main): Likewise.
9447         * genemit.c: Likewise.
9448         * genopinit.c: Likewise.
9449         * genoutput.c (output_prologue): Likewise.
9450         * genpeep.c: Likewise.
9452 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9454         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
9455         little endian.
9456         (vec_unpacku_hi_v8hi): Likewise.
9457         (vec_unpacku_lo_v16qi): Likewise.
9458         (vec_unpacku_lo_v8hi): Likewise.
9460 2013-10-20  Jan Hubicka  <jh@suse.cz>
9462         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
9463         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
9464         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
9466 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
9468         * config/mips/mips.h (ISA_HAS_WSBH): Define.
9469         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
9470         constants.
9471         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
9473 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
9475         PR target/58603
9476         * system.h: Undef m_slot.
9478 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9480         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
9481         all elements for both endian flavors.
9483 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
9485         PR target/58792
9486         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
9487         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
9488         and SI_REG for 64bit SYSV ABI targets.
9490 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
9492         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
9493         to multi_reg_return.  Clarify that we are skipping USEs of multiple
9494         return registers.  Use bool type where appropriate.
9496 2013-10-18  Jan Hubicka  <jh@suse.cz>
9498         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
9499         for cold functions.
9500         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
9501         (X86_TUNE_PUSH_MEMORY): Likewise.
9502         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
9503         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
9504         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
9505         New.
9506         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
9507         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
9508         Remove.
9509         (ix86_option_override_internal): Update to use tune features instead
9510         of variables.
9512 2013-10-18  Cong Hou  <congh@google.com>
9514         PR tree-optimization/58508
9515         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
9516         statement that contains data refs with zero-step.
9518 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9520         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
9521         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
9522         * gimple-low.c (gimple_check_call_arg,
9523         gimple_check_call_matching_types): Move to cgraph.c.
9524         * gimple-low.h: Remove prototype.
9525         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
9526         Relocate from gimple-low.c.
9527         * cgraph.h: Add prototype.  Don't include basic-block.h.
9528         * gimplify.c: Add gimple-low to include list.
9529         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
9530         * tree-eh.c: Add gimple-low to include list.
9531         * tree-nested.c: Likewise.
9532         * cfgexpand.c: Add tree-ssa-address.h to include list.
9533         * expr.c: Likewise.
9534         * gimple-fold.c: Likewise.
9535         * gimple-ssa-strength-reduction.c: Likewise.
9536         * trans-mem.c: Likewise.
9537         * tree-mudflap.c: Likewise.
9538         * tree-ssa-loop-ivopts.c: Likewise.
9539         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
9540         (degenerate_phi_result): Move to tree-phinodes.c.
9541         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
9542         * tree-ssa-threadedge.c: Likewise.
9543         * tree-vrp.c: Likewise.
9544         * tree-phinodes.c (degenerate_phi_result): Relocate here.
9545         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
9546         * tree-phinodes.h (degenerate_phi_result): Add prototype.
9547         * tree-ssa-copy.c: Include tree-ssa-dom.h.
9548         * tree-ssa-forwprop.c: Likewise.
9549         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
9550         pass_data_cleanup_cfg_post_optimizing,
9551         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
9552         * tree-optimize.c: Delete File.
9553         * graphite.c: Include tree-cfgcleanup.h.
9554         * passes.c: Likewise.
9555         * tree-cfg.c: Likewise.
9556         * tree-profile.c: Likewise.
9557         * tree-ssa-dse.c: Likewise.
9558         * tree-ssa-loop-ivcanon.c: Likewise.
9559         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
9560         * tree-outof-ssa.c: Include sbitmap.h.
9561         * tree-ssa-live.c: Likewise.
9562         * tree-ssa-propagate.c: Likewise.
9563         * tree-ssa-structalias.c: Likewise.
9564         * tree-stdarg.c: Likewise.
9565         * Makefile.in (OBJS): Delete tree-optimize.o.
9566         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
9567         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
9568         * varasm.c: Include basic-block.h.
9569         * cfgloop.h: Include function.h instead of basic-block.h
9570         (bb_loop_depth): Move to cfgloop.c.
9571         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
9573 2013-10-18  Teresa Johnson  <tejohnson@google.com>
9575         * predict.c (probably_never_executed): Compare frequency-based
9576         count to number of training runs.
9577         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
9579 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9581         * config/arm/arm.c (cortexa9_extra_costs): New table.
9582         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
9584 2013-10-18  Jeff Law  <law@redhat.com>
9586         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
9588         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
9589         (register_jump_thread): Add "registered_jump_thread" debug
9590         counter support.
9591         * dbgcnt.def (registered_jump_thread): New debug counter.
9593 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9595         * config/rs6000/rs6000.c: Include cgraph.h.
9597 2013-10-18  Teresa Johnson  <tejohnson@google.com>
9599         * tree-ssa-tail-merge.c (replace_block_by): Update edge
9600         weights during merging.
9602 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9604         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
9605         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
9606         * tree-ssa-operands.h: Remove prototype.
9607         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
9608         * gimple.c (virtual_operand_p): Relocate from gimple.c.
9609         * gimple.h: Add prototype.
9610         * gimple-ssa.h: Include tree-ssa-operands.h.
9611         * tree-dump.c: Add tree-cfg.h to include list.
9612         * tree-ssa-alias.c: Add ipa-reference.h to include list.
9613         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
9614         * config/i386/i386.c: Don't include tree-flow.h.
9615         * config/rs6000/rs6000.c: Likewise.
9617 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9619         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
9621 2013-10-18  Richard Biener  <rguenther@suse.de>
9623         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
9624         or TYPE_UNSIGNED of integral types.
9625         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
9626         NULL_TREE for zero-precision integral types.
9628 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
9630         * config/aarch64/arm_neon.h
9631         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
9633 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
9635         PR target/57756
9636         * opth-gen.awk: Define target_flags_explicit.
9638 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
9640         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
9641         fields to the reg_addr array that describes the valid addressing
9642         mode for any register, general purpose registers, floating point
9643         registers, and Altivec registers.
9644         (FIRST_RELOAD_REG_CLASS): Likewise.
9645         (LAST_RELOAD_REG_CLASS): Likewise.
9646         (struct reload_reg_map_type): Likewise.
9647         (reload_reg_map_type): Likewise.
9648         (RELOAD_REG_VALID): Likewise.
9649         (RELOAD_REG_MULTIPLE): Likewise.
9650         (RELOAD_REG_INDEXED): Likewise.
9651         (RELOAD_REG_OFFSET): Likewise.
9652         (RELOAD_REG_PRE_INCDEC): Likewise.
9653         (RELOAD_REG_PRE_MODIFY): Likewise.
9654         (reg_addr): Likewise.
9655         (mode_supports_pre_incdec_p): New helper functions to say whether
9656         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
9657         (mode_supports_pre_modify_p): Likewise.
9658         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
9659         print the valid address mode bits for each mode.
9660         (rs6000_debug_print_mode): Likewise.
9661         (rs6000_debug_reg_global): Likewise.
9662         (rs6000_setup_reg_addr_masks): New function to set up the address
9663         mask bits for each type.
9664         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
9665         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
9666         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
9667         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
9668         PRE_MODIFY are supported.
9669         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
9670         registers, instead of {src,dest}_av_p.
9671         (rs6000_print_options_internal): Tweak the debug output slightly.
9673 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
9675         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
9676         isa attribute.
9678 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
9680         * tree-flow.h (struct omp_region): Move to omp-low.c.
9681         Remove omp_ prototypes and variables.
9682         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
9683         (copy_var_decl): Relocate prototype from tree-flow.h.
9684         * gimple.c (copy_var_decl): Relocate from omp-low.c.
9685         * tree.h: Move prototype to omp-low.h.
9686         * omp-low.h: New File.  Relocate prototypes here.
9687         * omp-low.c (struct omp_region): Make local here.
9688         (root_omp_region): Make static.
9689         (copy_var_decl) Move to gimple.c.
9690         (new_omp_region): Make static.
9691         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
9692         * tree-cfg.c: Include omp-low.h.
9693         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
9694         * gimplify.c: Include omp-low.h.
9695         * tree-parloops.c: Likewise.
9697 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
9699         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
9700         operands are in memory, prefer to force non-matched operand 1 to
9701         the register.
9703 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
9705         PR target/58673
9706         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
9707         restrict TImode addresses to single indirect registers if both
9708         -mquad-memory and -mvsx-timode are used.
9709         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
9710         we should emit load/store quad.  Remove using %y for quad memory
9711         addresses.
9713         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
9714         constraints to allow load/store quad on machines where TImode is
9715         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
9716         for TImode to load integer constants.
9718 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9720         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
9722 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9724         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
9725         handling of STACK_REG.
9727 2013-10-17  Richard Biener  <rguenther@suse.de>
9729         PR tree-optimization/58143
9730         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
9731         New function.
9732         (rewrite_to_defined_overflow): Likewise.
9733         (move_computations_dom_walker::before_dom): Rewrite stmts
9734         with undefined signed overflow that are not always executed
9735         into unsigned arithmetic.
9737 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
9739         PR target/57756
9740         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
9741         explicit isa flag to be an options variable, instead of using
9742         global_options_set.  Remove define from rs6000.h.
9743         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
9745         * config/rs6000/rs6000.c (rs6000_option_override_internal):
9746         Initialize rs6000_isa_flags_explicit.
9747         (rs6000_function_specific_save): Add gcc_options* parameter, so
9748         that the powerpc builds after the 2013-10-15 changes.
9749         (rs6000_function_specific_restore): Likewise.
9751 2013-10-16  DJ Delorie  <dj@redhat.com>
9753         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
9754         op is a REG before checking REGNO.
9755         (rl78_alloc_physical_registers): Verify pattern is a SET before
9756         checking SET_SRC.
9758 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9760         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
9761         endianness.
9762         (vec_unpacks_lo_v4sf): Likewise.
9763         (vec_unpacks_float_hi_v4si): Likewise.
9764         (vec_unpacks_float_lo_v4si): Likewise.
9765         (vec_unpacku_float_hi_v4si): Likewise.
9766         (vec_unpacku_float_lo_v4si): Likewise.
9768 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9770         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
9771         (vsx_concat_v2sf): Likewise.
9773 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
9775         * config/aarch64/aarch64.md
9776         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
9778 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
9780         PR tree-optimization/58697
9781         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
9782         estimated_loop_iterations_int.
9783         (max_stmt_executions_int): Call get_max_loop_iterations_int.
9784         (get_max_loop_iterations_int): New.  HWINT version of
9785         get_max_loop_iterations.
9786         * cfgloop.h: Add prototypes.
9787         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
9788         * loop-unroll.c (decide_peel_once_rolling): Call
9789         get_estimated_loop_iterations_int.
9790         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
9791         * tree-ssa-loop-niter.h: Tweak prototypes.
9793 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
9795         * gengtype-parse.c (struct_field_seq): Ignore access-control
9796         keywords ("public:" etc).
9798 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9800         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
9801         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
9803 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
9805         * config/arm/arm.opt (mlra): New option.
9806         * config/arm/arm.c (arm_lra_p): New function.
9807         (TARGET_LRA_P): Define.
9809 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
9811         * tree-core.h (tree_code_name): Remove.
9812         * tree.h (get_tree_code_name): New prototype.
9813         * tree.c (tree_code_name): Make static.
9814         (get_tree_code_name): New function.
9815         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
9816         tree_class_check_failed, tree_range_check_failed,
9817         tree_not_class_check_failed, omp_clause_check_failed,
9818         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
9819         wrapper get_tree_code_name instead of calling tree_code_name directly.
9820         * tree-vrp.c (dump_asserts_for): Likewise.
9821         * tree-dump.c (dequeue_and_dump): Likewise.
9822         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
9823         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
9824         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
9825         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
9826         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
9827         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
9828         dump_gimple_omp_for): Likewise.
9829         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
9830         * tree-ssa-pre.c (print_pre_expr): Likewise.
9831         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
9832         * print-tree.c (print_node_brief, print_node): Likewise.
9833         * gimple.c (gimple_check_failed): Likewise.
9834         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
9835         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
9836         * config/mep/mep.c (mep_validate_vliw): Likewise.
9837         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
9838         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
9840 2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9842         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
9843         for AMD bdver3.
9845 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
9847         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
9848         (MULTILIB_MATCHES): Add multilib for -march=v8.
9850 2013-10-15 Sriraman Tallam  <tmsriram@google.com>
9852         PR target/57756
9853         * optc-save-gen.awk: Add extra parameter to the save and restore
9854         target calls.
9855         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
9856         * tree.c (build_optimization_node): New parameter.  Add extra parameter
9857         to call to cl_optimization_save.
9858         (build_target_option_node): New parameter. Add extra parameter
9859         to call to cl_target_option_save.
9860         * tree.h (build_optimization_node): New parameter.
9861         (build_target_option_node): New parameter.
9862         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
9863         build_optimization_node and build_target_option_node.
9864         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
9865         (handle_pragma_push_options): Ditto.
9866         * toplev.c (process_options): Ditto.
9867         * opts.c (init_options_struct): Check for opts_set non-null.
9868         * target.def (target_option.save): New parameter.
9869         (target_option.restore): New parameter.
9870         * tm.texi: Generate.
9871         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
9872         (ix86_pragma_target_parse): Ditto.
9873         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
9874         parameters.
9875         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
9876         to  build_optimization_node and build_target_option_node.
9877         (rs6000_valid_attribute_p): Ditto.
9878         (rs6000_pragma_target_parse): Ditto.
9879         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
9880         data.
9881         * config/i386/i386.h:
9882         TARGET_64BIT_P: New Macro
9883         TARGET_MMX_P: New Macro.
9884         TARGET_3DNOW_P: New Macro.
9885         TARGET_3DNOW_A_P: New Macro.
9886         TARGET_SSE_P: New Macro.
9887         TARGET_SSE2_P: New Macro.
9888         TARGET_SSE3_P: New Macro.
9889         TARGET_SSSE3_P: New Macro.
9890         TARGET_SSE4_1_P: New Macro.
9891         TARGET_SSE4_2_P: New Macro.
9892         TARGET_AVX_P: New Macro.
9893         TARGET_AVX2_P: New Macro.
9894         TARGET_AVX512F_P: New Macro.
9895         TARGET_AVX512PF_P: New Macro.
9896         TARGET_AVX512ER_P: New Macro.
9897         TARGET_AVX512CD_P: New Macro.
9898         TARGET_FMA_P: New Macro.
9899         TARGET_SSE4A_P: New Macro.
9900         TARGET_FMA4_P: New Macro.
9901         TARGET_XOP_P: New Macro.
9902         TARGET_LWP_P: New Macro.
9903         TARGET_ABM_P: New Macro.
9904         TARGET_BMI_P: New Macro.
9905         TARGET_BMI2_P: New Macro.
9906         TARGET_LZCNT_P: New Macro.
9907         TARGET_TBM_P: New Macro.
9908         TARGET_POPCNT_P: New Macro.
9909         TARGET_SAHF_P: New Macro.
9910         TARGET_MOVBE_P: New Macro.
9911         TARGET_CRC32_P: New Macro.
9912         TARGET_AES_P: New Macro.
9913         TARGET_PCLMUL_P: New Macro.
9914         TARGET_CMPXCHG16B_P: New Macro.
9915         TARGET_FSGSBASE_P: New Macro.
9916         TARGET_RDRND_P: New Macro.
9917         TARGET_F16C_P: New Macro.
9918         TARGET_RTM_P: New Macro.
9919         TARGET_HLE_P: New Macro.
9920         TARGET_RDSEED_P: New Macro.
9921         TARGET_PRFCHW_P: New Macro.
9922         TARGET_ADX_P: New Macro.
9923         TARGET_FXSR_P: New Macro.
9924         TARGET_XSAVE_P: New Macro.
9925         TARGET_XSAVEOPT_P: New Macro.
9926         TARGET_LP64_P: New Macro.
9927         TARGET_X32_P: New Macro.
9928         TARGET_FPMATH_DEFAULT_P: New Macro.
9929         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
9930         * config/i386/i386.c (ix86_option_override_internal): New parameters.
9931         opts and opts_set.
9932         Change ix86_tune_string to access opts->x_ix86_tune_string.
9933         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
9934         Change ix86_arch_string to access opts->x_ix86_arch_string.
9935         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
9936         Change ix86_pmode to access opts->x_ix86_pmode.
9937         Change ix86_abi to access opts->x_ix86_abi.
9938         Change ix86_cmodel to access opts->x_ix86_cmodel.
9939         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
9940         Change ix86_isa_flags_explicit to access
9941         opts->x_ix86_isa_flags_explicit.
9942         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
9943         Change ix86_regparm to access opts->x_ix86_regparm.
9944         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
9945         Change ix86_preferred_stack_boundary_arg to access
9946         opts->x_ix86_preferred_stack_boundary_arg.
9947         Change ix86_force_align_arg_pointer to access
9948         opts->x_ix86_force_align_arg_pointer.
9949         Change ix86_incoming_stack_boundar_arg to access
9950         opts->x_ix86_incoming_stack_boundar_arg.
9951         Change ix86_fpmath to access opts->x_ix86_fpmath.
9952         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
9953         Change ix86_recip_name to access opts->x_ix86_recip_name.
9954         Change ix86_stack_protector_guard to access
9955         opts->x_ix86_stack_protector_guard.
9956         Change ix86_tune_memcpy_strategy to access
9957         opts->x_ix86_tune_memcpy_strategy.
9958         Change ix86_tune_memset_strategy to access
9959         opts->x_ix86_tune_memset_strategy.
9960         Change global_options to access opts.
9961         Change global_options_set to access opts_set.
9962         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
9963         Change TARGET_MMX to TARGET_MMX_P (opts->...).
9964         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
9965         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
9966         Change TARGET_SSE to TARGET_SSE_P (opts->...).
9967         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
9968         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
9969         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
9970         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
9971         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
9972         Change TARGET_AVX to TARGET_AVX_P (opts->...).
9973         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
9974         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
9975         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
9976         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
9977         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
9978         Change TARGET_FMA to TARGET_FMA_P (opts->...).
9979         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
9980         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
9981         Change TARGET_XOP to TARGET_XOP_P (opts->...).
9982         Change TARGET_LWP to TARGET_LWP_P (opts->...).
9983         Change TARGET_ABM to TARGET_ABM_P (opts->...).
9984         Change TARGET_BMI to TARGET_BMI_P (opts->...).
9985         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
9986         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
9987         Change TARGET_TBM to TARGET_TBM_P (opts->...).
9988         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
9989         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
9990         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
9991         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
9992         Change TARGET_AES to TARGET_AES_P (opts->...).
9993         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
9994         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
9995         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
9996         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
9997         Change TARGET_F16C to TARGET_F16C_P (opts->...).
9998         Change TARGET_RTM to TARGET_RTM_P (opts->...).
9999         Change TARGET_HLE to TARGET_HLE_P (opts->...).
10000         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
10001         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
10002         Change TARGET_ADX to TARGET_ADX_P (opts->...).
10003         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
10004         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
10005         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
10006         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
10007         Change TARGET_X32 to TARGET_X32_P (opts->...).
10008         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
10009         Change TARGET_FLOAT_RETURNS_IN_80387 to
10010         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
10011         (ix86_function_specific_save): New parameter. Use opts-> fields
10012         to replace global fields.
10013         (ix86_function_specific_restore): Ditto.
10014         (ix86_valid_target_attribute_inner_p): New parameters.
10015         Fix recursive call.
10016         Fix call to ix86_handle_option and set_option.
10017         (ix86_valid_target_attribute_tree): New parameters.
10018         Change global_options to access opts.
10019         Change global_options_set to access opts_set.
10020         Fix call to ix86_valid_target_attribute_inner_p.
10021         Change ix86_tune_string to access opts->x_ix86_tune_string.
10022         Change ix86_arch_string to access opts->x_ix86_arch_string.
10023         Change ix86_fpmath to access opts->x_ix86_fpmath
10024         Fix call to ix86_option_override_internal.
10025         Fix call to ix86_add_new_builtins.
10026         Fix calls to build_optimization_node and build_target_option_node.
10027         (ix86_valid_target_attribute_p): Remove access to global_options.
10028         Use new gcc_options structure func_options.
10029         Fix call to ix86_valid_target_attribute_tree.
10030         Fix call to  build_optimization_node.
10031         (get_builtin_code_for_version): Fix call to
10032         ix86_valid_target_attribute_tree.
10034 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
10036         * Makefile.in (PICFLAG): New.
10037         (enable_host_shared): New.
10038         (INTERNAL_CFLAGS): Use PICFLAG.
10039         (LIBIBERTY): Use pic build of libiberty.a if configured with
10040         --enable-host-shared.
10041         * configure.ac: Add --enable-host-shared, setting up new
10042         PICFLAG variable.
10043         * configure: Regenerate.
10044         * doc/install.texi (--enable-shared): Add note contrasting it with ...
10045         (--enable-host-shared): New option.
10047 2013-10-15  Richard Biener  <rguenther@suse.de>
10049         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
10050         for built-in functions.
10052 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
10054         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
10055         (optimize_range_tests_1): New function,
10056         extracted from optimize_range_tests.
10057         (optimize_range_tests_xor): Similarly.
10058         (optimize_range_tests_diff): New function.
10059         (optimize_range_tests): Use optimize_range_tests_1.
10061 2013-10-15  Cong Hou  <congh@google.com>
10063         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
10064         requirement of the reduction pattern so that one operand of the
10065         reduction operation can come from outside of the loop.
10067 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10069         * config/arm/neon-schedgen.ml: Remove.
10070         * config/arm/cortex-a9-neon.md: Remove comment regarding
10071         neon-schedgen.ml.
10073 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10075         * config/arm/types: Remove old neon types.
10077 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10079         * config/arm/cortex-a7.md
10080         (cortex_a7_neon_type): New.
10081         (cortex_a7_neon_mul): Update for new types.
10082         (cortex_a7_neon_mla): Likewise.
10083         (cortex_a7_neon): Likewise.
10085 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10087         * config/arm/cortex-a15-neon.md
10088         (cortex_a15_neon_type): New,
10090         (cortex_a15_neon_int_1): Remove.
10091         (cortex_a15_neon_int_2): Likewise.
10092         (cortex_a15_neon_int_3): Likewise.
10093         (cortex_a15_neon_int_4): Likewise.
10094         (cortex_a15_neon_int_5): Likewise.
10095         (cortex_a15_neon_vqneg_vqabs): Likewise.
10096         (cortex_a15_neon_vmov): Likewise.
10097         (cortex_a15_neon_vaba): Likewise.
10098         (cortex_a15_neon_vaba_qqq): Likewise.
10099         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10100         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10101         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10102         Likewise.
10103         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10104         (cortex_a15_neon_mla_qqq_8_16): Likewise.
10105         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
10106         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10107         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10108         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
10109         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10110         (cortex_a15_neon_shift_1): Likewise.
10111         (cortex_a15_neon_shift_2): Likewise.
10112         (cortex_a15_neon_shift_3): Likewise.
10113         (cortex_a15_neon_vshl_ddd): Likewise.
10114         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10115         (cortex_a15_neon_vsra_vrsra): Likewise.
10116         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10117         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10118         (cortex_a15_neon_bp_3cycle): Likewise.
10119         (cortex_a15_neon_ldm_2): Likewise.
10120         (cortex_a15_neon_stm_2): Likewise.
10121         (cortex_a15_neon_mcr): Likewise.
10122         (cortex_a15_neon_mrc): Likewise.
10123         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
10124         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
10125         (cortex_a15_neon_fp_vmul_ddd): Likewise.
10126         (cortex_a15_neon_fp_vmul_qqd): Likewise.
10127         (cortex_a15_neon_fp_vmla_ddd): Likewise.
10128         (cortex_a15_neon_fp_vmla_qqq): Likewise.
10129         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
10130         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
10131         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10132         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10133         (cortex_a15_neon_bp_simple): Likewise.
10134         (cortex_a15_neon_bp_2cycle): Likewise.
10135         (cortex_a15_neon_bp_3cycle): Likewise.
10136         (cortex_a15_neon_vld1_1_2_regs): Likewise.
10137         (cortex_a15_neon_vld1_3_4_regs): Likewise.
10138         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10139         (cortex_a15_neon_vld2_4_regs): Likewise.
10140         (cortex_a15_neon_vld3_vld4): Likewise.
10141         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10142         (cortex_a15_neon_vst1_3_4_regs): Likewise.
10143         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
10144         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
10145         (cortex_a15_neon_vst3_vst4): Rename to...
10146         (cortex_a15_neon_vst4): This, update for new attributes.
10147         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
10148         (cortex_a15_neon_vld3_vld4_lane): Likewise.
10149         (cortex_a15_neon_vst1_vst2_lane): Likewise.
10150         (cortex_a15_neon_vst3_vst4_lane): Likewise.
10151         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
10152         (cortex_a15_neon_ldm_2): Likewise.
10153         (cortex_a15_neon_stm_2): Likewise.
10154         (cortex_a15_neon_mcr): Likewise.
10155         (cortex_a15_neon_mcr_2_mcrr): Likewise.
10156         (cortex_a15_neon_mrc): Likewise.
10157         (cortex_a15_neon_mrrc): Likewise.
10159         (cortex_a15_neon_abd): New.
10160         (cortex_a15_neon_abd_q): Likewise.
10161         (cortex_a15_neon_aba): Likewise.
10162         (cortex_a15_neon_aba_q): Likewise.
10163         (cortex_a15_neon_acc): Likewise.
10164         (cortex_a15_neon_acc_q): Likewise.
10165         (cortex_a15_neon_arith_basic): Likewise.
10166         (cortex_a15_neon_arith_complex): Likewise.
10167         (cortex_a15_neon_multiply): Likewise.
10168         (cortex_a15_neon_multiply_q): Likewise.
10169         (cortex_a15_neon_mla): Likewise.
10170         (cortex_a15_neon_mla_q): Likewise.
10171         (cortex_a15_neon_sat_mla_long): Likewise.
10172         (cortex_a15_neon_shift_acc): Likewise.
10173         (cortex_a15_neon_shift_imm_basic): Likewise.
10174         (cortex_a15_neon_shift_imm_complex): Likewise.
10175         (cortex_a15_neon_shift_reg_basic): Likewise.
10176         (cortex_a15_neon_shift_reg_basic_q): Likewise.
10177         (cortex_a15_neon_shift_reg_complex): Likewise.
10178         (cortex_a15_neon_shift_reg_complex_q): Likewise.
10179         (cortex_a15_neon_fp_negabs): Likewise
10180         (cortex_a15_neon_fp_arith): Likewise
10181         (cortex_a15_neon_fp_arith_q): Likewise
10182         (cortex_a15_neon_fp_cvt_int): Likewise
10183         (cortex_a15_neon_fp_cvt_int_q): Likewise
10184         (cortex_a15_neon_fp_cvt_16): Likewise
10185         (cortex_a15_neon_fp_mul): Likewise
10186         (cortex_a15_neon_fp_mul_q): Likewise
10187         (cortex_a15_neon_fp_mla): Likewise
10188         (cortex_a15_neon_fp_mla_q): Likewise
10189         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
10190         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
10191         (cortex_a15_neon_bitops): Likewise.
10192         (cortex_a15_neon_bitops_q): Likewise.
10193         (cortex_a15_neon_from_gp): Likewise.
10194         (cortex_a15_neon_from_gp_q): Likewise.
10195         (cortex_a15_neon_tbl3_tbl4): Likewise.
10196         (cortex_a15_neon_zip_q): Likewise.
10197         (cortex_a15_neon_to_gp): Likewise.
10198         (cortex_a15_neon_load_a): Likewise.
10199         (cortex_a15_neon_load_b): Likewise.
10200         (cortex_a15_neon_load_c): Likewise.
10201         (cortex_a15_neon_load_d): Likewise.
10202         (cortex_a15_neon_load_e): Likewise.
10203         (cortex_a15_neon_load_f): Likewise.
10204         (cortex_a15_neon_store_a): Likewise.
10205         (cortex_a15_neon_store_b): Likewise.
10206         (cortex_a15_neon_store_c): Likewise.
10207         (cortex_a15_neon_store_d): Likewise.
10208         (cortex_a15_neon_store_e): Likewise.
10209         (cortex_a15_neon_store_f): Likewise.
10210         (cortex_a15_neon_store_g): Likewise.
10211         (cortex_a15_neon_store_h): Likewise.
10212         (cortex_a15_vfp_to_from_gp): Likewise.
10214 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10216         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
10218         (cortex_a9_neon_vshl_ddd): Remove.
10219         (cortex_a9_neon_vst3_vst4): Likewise.
10220         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10222         (cortex_a9_neon_bit_ops_q): New.
10224         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
10225         (cortex_a9_neon_int_2): Likewise.
10226         (cortex_a9_neon_int_3): Likewise.
10227         (cortex_a9_neon_int_4): Likewise.
10228         (cortex_a9_neon_int_5): Likewise.
10229         (cortex_a9_neon_vqneg_vqabs): Likewise.
10230         (cortex_a9_neon_vmov): Likewise.
10231         (cortex_a9_neon_vaba): Likewise.
10232         (cortex_a9_neon_vaba_qqq): Likewise.
10233         (cortex_a9_neon_shift_1): Likewise.
10234         (cortex_a9_neon_shift_2): Likewise.
10235         (cortex_a9_neon_shift_3): Likewise.
10236         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10237         (cortex_a9_neon_vsra_vrsra): Likewise.
10238         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10239         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10240         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10241         Likewise.
10242         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10243         (cortex_a9_neon_mla_qqq_8_16): Likewise.
10244         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10245         Likewise.
10246         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10247         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10248         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
10249         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10250         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
10251         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
10252         (cortex_a9_neon_fp_vsum): Likewise.
10253         (cortex_a9_neon_fp_vmul_ddd): Likewise.
10254         (cortex_a9_neon_fp_vmul_qqd): Likewise.
10255         (cortex_a9_neon_fp_vmla_ddd): Likewise.
10256         (cortex_a9_neon_fp_vmla_qqq): Likewise.
10257         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
10258         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
10259         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10260         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10261         (cortex_a9_neon_bp_simple): Likewise.
10262         (cortex_a9_neon_bp_2cycle): Likewise.
10263         (cortex_a9_neon_bp_3cycle): Likewise.
10264         (cortex_a9_neon_ldr): Likewise.
10265         (cortex_a9_neon_str): Likewise.
10266         (cortex_a9_neon_vld1_1_2_regs): Likewise.
10267         (cortex_a9_neon_vld1_3_4_regs): Likewise.
10268         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10269         (cortex_a9_neon_vld2_4_regs): Likewise.
10270         (cortex_a9_neon_vld3_vld4): Likewise.
10271         (cortex_a9_neon_vld1_vld2_lane): Likewise.
10272         (cortex_a9_neon_vld3_vld4_lane): Likewise.
10273         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
10274         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10275         (cortex_a9_neon_vst1_3_4_regs): Likewise.
10276         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
10277         (cortex_a9_neon_vst1_vst2_lane): Likewise.
10278         (cortex_a9_neon_vst3_vst4_lane): Likewise.
10279         (cortex_a9_neon_mcr): Likewise.
10280         (cortex_a9_neon_mcr_2_mcrr): Likewise.
10281         (cortex_a9_neon_mrc): Likewise.
10282         (cortex_a9_neon_mrrc): Likewise.
10284 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10286         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
10288         (cortex_a8_neon_vshl_ddd): Remove.
10289         (cortex_a8_neon_vst3_vst4): Likewise.
10290         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
10292         (cortex_a8_neon_bit_ops_q): New.
10294         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
10295         (cortex_a8_neon_int_2): Likewise..
10296         (cortex_a8_neon_int_3): Likewise.
10297         (cortex_a8_neon_int_5): Likewise.
10298         (cortex_a8_neon_vqneg_vqabs): Likewise.
10299         (cortex_a8_neon_int_4): Likewise.
10300         (cortex_a8_neon_vaba): Likewise.
10301         (cortex_a8_neon_vaba_qqq): Likewise.
10302         (cortex_a8_neon_shift_1): Likewise.
10303         (cortex_a8_neon_shift_2): Likewise.
10304         (cortex_a8_neon_shift_3): Likewise.
10305         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
10306         (cortex_a8_neon_vsra_vrsra): Likewise.
10307         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10308         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
10309         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
10310         Likewise.
10311         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
10312         (cortex_a8_neon_mla_qqq_8_16): Likewise.
10313         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
10314         Likewise.
10315         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
10316         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
10317         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
10318         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
10319         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
10320         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
10321         (cortex_a8_neon_fp_vsum): Likewise.
10322         (cortex_a8_neon_fp_vmul_ddd): Likewise.
10323         (cortex_a8_neon_fp_vmul_qqd): Likewise.
10324         (cortex_a8_neon_fp_vmla_ddd): Likewise.
10325         (cortex_a8_neon_fp_vmla_qqq): Likewise.
10326         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
10327         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
10328         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
10329         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
10330         (cortex_a8_neon_bp_simple): Likewise.
10331         (cortex_a8_neon_bp_2cycle): Likewise.
10332         (cortex_a8_neon_bp_3cycle): Likewise.
10333         (cortex_a8_neon_ldr): Likewise.
10334         (cortex_a8_neon_str): Likewise.
10335         (cortex_a8_neon_vld1_1_2_regs): Likewise.
10336         (cortex_a8_neon_vld1_3_4_regs): Likewise.
10337         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
10338         (cortex_a8_neon_vld2_4_regs): Likewise.
10339         (cortex_a8_neon_vld3_vld4): Likewise.
10340         (cortex_a8_neon_vld1_vld2_lane): Likewise.
10341         (cortex_a8_neon_vld3_vld4_lane): Likewise.
10342         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
10343         (cortex_a8_neon_vst1_3_4_regs): Likewise.
10344         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
10345         (cortex_a8_neon_vst1_vst2_lane): Likewise.
10346         (cortex_a8_neon_vst3_vst4_lane): Likewise.
10347         (cortex_a8_neon_mcr): Likewise.
10348         (cortex_a8_neon_mcr_2_mcrr): Likewise.
10349         (cortex_a8_neon_mrc): Likewise.
10350         (cortex_a8_neon_mrrc): Likewise.
10352 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10354         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
10355         (fp): New.
10356         * config/aarch64/aarch64-simd.md (neon_type): Remove.
10357         (aarch64_simd_dup<mode>): Add "type" attribute.
10358         (aarch64_dup_lane<mode>): Likewise.
10359         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
10360         (*aarch64_simd_mov<mode>): Likewise.
10361         (aarch64_simd_mov_from_<mode>low): Likewise.
10362         (aarch64_simd_mov_from_<mode>high): Likewise.
10363         (orn<mode>3): Likewise.
10364         (bic<mode>3): Likewise.
10365         (add<mode>3): Likewise.
10366         (sub<mode>3): Likewise.
10367         (mul<mode>3): Likewise.
10368         (*aarch64_mul3_elt<mode>): Likewise.
10369         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
10370         (*aarch64_mul3_elt_to_128df): Likewise.
10371         (*aarch64_mul3_elt_to_64v2df): Likewise.
10372         (neg<mode>2): Likewise.
10373         (abs<mode>2): Likewise.
10374         (abd<mode>_3): Likewise.
10375         (aba<mode>_3): Likewise.
10376         (fabd<mode>_3): Likewise.
10377         (*fabd_scalar<mode>3): Likewise.
10378         (and<mode>3): Likewise.
10379         (ior<mode>3): Likewise.
10380         (xor<mode>3): Likewise.
10381         (one_cmpl<mode>2): Likewise.
10382         (aarch64_simd_vec_set<mode>): Likewise.
10383         (aarch64_simd_lshr<mode>): Likewise.
10384         (aarch64_simd_ashr<mode>): Likewise.
10385         (aarch64_simd_imm_shl<mode>): Likewise.
10386         (aarch64_simd_reg_sshl<mode): Likewise.
10387         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
10388         (aarch64_simd_reg_shl<mode>_signed): Likewise.
10389         (aarch64_simd_vec_setv2di): Likewise.
10390         (aarch64_simd_vec_set<mode>): Likewise.
10391         (aarch64_mla<mode>): Likewise.
10392         (*aarch64_mla_elt<mode>): Likewise.
10393         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
10394         (aarch64_mls<mode>): Likewise.
10395         (*aarch64_mls_elt<mode>): Likewise.
10396         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
10397         (<su><maxmin><mode>3): Likewise.
10398         (move_lo_quad_<mode>): Likewise.
10399         (aarch64_simd_move_hi_quad_<mode>): Likewise.
10400         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
10401         (vec_pack_trunc_<mode>): Likewise.
10402         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
10403         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
10404         (*aarch64_<su>mlal_lo<mode>): Likewise.
10405         (*aarch64_<su>mlal_hi<mode>): Likewise.
10406         (*aarch64_<su>mlsl_lo<mode>): Likewise.
10407         (*aarch64_<su>mlsl_hi<mode>): Likewise.
10408         (*aarch64_<su>mlal<mode>): Likewise.
10409         (*aarch64_<su>mlsl<mode>): Likewise.
10410         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
10411         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
10412         (add<mode>3): Likewise.
10413         (sub<mode>3): Likewise.
10414         (mul<mode>3): Likewise.
10415         (div<mode>3): Likewise.
10416         (neg<mode>2): Likewise.
10417         (abs<mode>2): Likewise.
10418         (fma<mode>4): Likewise.
10419         (*aarch64_fma4_elt<mode>): Likewise.
10420         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
10421         (*aarch64_fma4_elt_to_128df): Likewise.
10422         (*aarch64_fma4_elt_to_64v2df): Likewise.
10423         (fnma<mode>4): Likewise.
10424         (*aarch64_fnma4_elt<mode>): Likewise.
10425         (*aarch64_fnma4_elt_<vswap_width_name><mode>
10426         (*aarch64_fnma4_elt_to_128df): Likewise.
10427         (*aarch64_fnma4_elt_to_64v2df): Likewise.
10428         (<frint_pattern><mode>2): Likewise.
10429         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
10430         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
10431         (vec_unpacks_lo_v4sf): Likewise.
10432         (aarch64_float_extend_lo_v2df): Likewise.
10433         (vec_unpacks_hi_v4sf): Likewise.
10434         (aarch64_float_truncate_lo_v2sf): Likewise.
10435         (aarch64_float_truncate_hi_v4sf): Likewise.
10436         (aarch64_vmls<mode>): Likewise.
10437         (<su><maxmin><mode>3): Likewise.
10438         (<maxmin_uns><mode>3): Likewise.
10439         (reduc_<sur>plus_<mode>): Likewise.
10440         (reduc_<sur>plus_v2di): Likewise.
10441         (reduc_<sur>plus_v2si): Likewise.
10442         (reduc_<sur>plus_<mode>): Likewise.
10443         (aarch64_addpv4sf): Likewise.
10444         (clz<mode>2): Likewise.
10445         (reduc_<maxmin_uns>_<mode>): Likewise.
10446         (reduc_<maxmin_uns>_v2di): Likewise.
10447         (reduc_<maxmin_uns>_v2si): Likewise.
10448         (reduc_<maxmin_uns>_<mode>): Likewise.
10449         (reduc_<maxmin_uns>_v4sf): Likewise.
10450         (aarch64_simd_bsl<mode>_internal): Likewise.
10451         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10452         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
10453         (aarch64_get_lane<mode>): Likewise.
10454         (*aarch64_combinez<mode>): Likewise.
10455         (aarch64_combine<mode>): Likewise.
10456         (aarch64_simd_combine<mode>): Likewise.
10457         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
10458         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
10459         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
10460         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
10461         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
10462         (aarch64_<sur>h<addsub><mode>): Likewise.
10463         (aarch64_<sur><addsub>hn<mode>): Likewise.
10464         (aarch64_<sur><addsub>hn2<mode>): Likewise.
10465         (aarch64_pmul<mode>): Likewise.
10466         (aarch64_<su_optab><optab><mode>): Likewise.
10467         (aarch64_<sur>qadd<mode>): Likewise.
10468         (aarch64_sqmovun<mode>): Likewise.
10469         (aarch64_<sur>qmovn<mode>): Likewise.
10470         (aarch64_s<optab><mode>): Likewise.
10471         (aarch64_sq<r>dmulh<mode>): Likewise.
10472         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10473         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
10474         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10475         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
10476         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10477         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10478         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
10479         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
10480         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10481         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
10482         (aarch64_sqdmull<mode>): Likewise.
10483         (aarch64_sqdmull_lane<mode>_internal): Likewise.
10484         (aarch64_sqdmull_n<mode>): Likewise.
10485         (aarch64_sqdmull2<mode>_internal): Likewise.
10486         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10487         (aarch64_sqdmull2_n<mode>_internal): Likewise.
10488         (aarch64_<sur>shl<mode>): Likewise.
10489         (aarch64_<sur>q<r>shl<mode>
10490         (aarch64_<sur>shll_n<mode>): Likewise.
10491         (aarch64_<sur>shll2_n<mode>): Likewise.
10492         (aarch64_<sur>shr_n<mode>): Likewise.
10493         (aarch64_<sur>sra_n<mode>): Likewise.
10494         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
10495         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
10496         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
10497         (aarch64_cm<optab><mode>): Likewise.
10498         (aarch64_cm<optab>di): Likewise.
10499         (aarch64_cm<optab><mode>): Likewise.
10500         (aarch64_cm<optab>di): Likewise.
10501         (aarch64_cmtst<mode>): Likewise.
10502         (aarch64_cmtstdi): Likewise.
10503         (aarch64_cm<optab><mode>): Likewise.
10504         (*aarch64_fac<optab><mode>): Likewise.
10505         (aarch64_addp<mode>): Likewise.
10506         (aarch64_addpdi): Likewise.
10507         (sqrt<mode>2): Likewise.
10508         (vec_load_lanesoi<mode>): Likewise.
10509         (vec_store_lanesoi<mode>): Likewise.
10510         (vec_load_lanesci<mode>): Likewise.
10511         (vec_store_lanesci<mode>): Likewise.
10512         (vec_load_lanesxi<mode>): Likewise.
10513         (vec_store_lanesxi<mode>): Likewise.
10514         (*aarch64_mov<mode>): Likewise.
10515         (aarch64_ld2<mode>_dreg): Likewise.
10516         (aarch64_ld2<mode>_dreg): Likewise.
10517         (aarch64_ld3<mode>_dreg): Likewise.
10518         (aarch64_ld3<mode>_dreg): Likewise.
10519         (aarch64_ld4<mode>_dreg): Likewise.
10520         (aarch64_ld4<mode>_dreg): Likewise.
10521         (aarch64_tbl1<mode>): Likewise.
10522         (aarch64_tbl2v16qi): Likewise.
10523         (aarch64_combinev16qi): Likewise.
10524         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
10525         (aarch64_st2<mode>_dreg): Likewise.
10526         (aarch64_st2<mode>_dreg): Likewise.
10527         (aarch64_st3<mode>_dreg): Likewise.
10528         (aarch64_st3<mode>_dreg): Likewise.
10529         (aarch64_st4<mode>_dreg): Likewise.
10530         (aarch64_st4<mode>_dreg): Likewise.
10531         (*aarch64_simd_ld1r<mode>): Likewise.
10532         (aarch64_frecpe<mode>): Likewise.
10533         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10534         (aarch64_frecps<mode>): Likewise.
10536 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10538         * config/arm/iterators.md (V_elem_ch): New.
10539         (q): Likewise.
10540         (VQH_type): Likewise.
10541         * config/arm/arm.md (is_neon_type): New.
10542         (conds): Use is_neon_type.
10543         (anddi3_insn): Update type attribute.
10544         (xordi3_insn): Likewise.
10545         (one_cmpldi2): Likewise.
10546         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
10547         * config/arm/neon.md (neon_mov): Update type attribute.
10548         (*movmisalign<mode>_neon_store): Likewise.
10549         (*movmisalign<mode>_neon_load): Likewise.
10550         (vec_set<mode>_internal): Likewise.
10551         (vec_set<mode>_internal): Likewise.
10552         (vec_setv2di_internal): Likewise.
10553         (vec_extract<mode>): Likewise.
10554         (vec_extract<mode>): Likewise.
10555         (vec_extractv2di): Likewise.
10556         (*add<mode>3_neon): Likewise.
10557         (adddi3_neon): Likewise.
10558         (*sub<mode>3_neon): Likewise.
10559         (subdi3_neon): Likewise.
10560         (fma<VCVTF:mode>4): Likewise.
10561         (fma<VCVTF:mode>4_intrinsic): Likewise.
10562         (*fmsub<VCVTF:mode>4): Likewise.
10563         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
10564         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
10565         (ior<mode>3): Likewise.
10566         (and<mode>3): Likewise.
10567         (orn<mode>3_neon): Likewise.
10568         (orndi3_neon): Likewise.
10569         (bic<mode>3_neon): Likewise.
10570         (bicdi3_neon): Likewise.
10571         (xor<mode>3): Likewise.
10572         (one_cmpl<mode>2): Likewise.
10573         (abs<mode>2): Likewise.
10574         (neg<mode>2): Likewise.
10575         (negdi2_neon): Likewise.
10576         (*umin<mode>3_neon): Likewise.
10577         (*umax<mode>3_neon): Likewise.
10578         (*smin<mode>3_neon): Likewise.
10579         (*smax<mode>3_neon): Likewise.
10580         (vashl<mode>3): Likewise.
10581         (vashr<mode>3_imm): Likewise.
10582         (vlshr<mode>3_imm): Likewise.
10583         (ashl<mode>3_signed): Likewise.
10584         (ashl<mode>3_unsigned): Likewise.
10585         (neon_load_count): Likewise.
10586         (ashldi3_neon_noclobber): Likewise.
10587         (ashldi3_neon): Likewise.
10588         (signed_shift_di3_neon): Likewise.
10589         (unsigned_shift_di3_neon): Likewise.
10590         (ashrdi3_neon_imm_noclobber): Likewise.
10591         (lshrdi3_neon_imm_noclobber): Likewise.
10592         (<shift>di3_neon): Likewise.
10593         (widen_ssum<mode>3): Likewise.
10594         (widen_usum<mode>3): Likewise.
10595         (quad_halves_<code>v4si): Likewise.
10596         (quad_halves_<code>v4sf): Likewise.
10597         (quad_halves_<code>v8hi): Likewise.
10598         (quad_halves_<code>v16qi): Likewise.
10599         (reduc_splus_v2di): Likewise.
10600         (neon_vpadd_internal<mode>): Likewise.
10601         (neon_vpsmin<mode>): Likewise.
10602         (neon_vpsmax<mode>): Likewise.
10603         (neon_vpumin<mode>): Likewise.
10604         (neon_vpumax<mode>): Likewise.
10605         (*ss_add<mode>_neon): Likewise.
10606         (*us_add<mode>_neon): Likewise.
10607         (*ss_sub<mode>_neon): Likewise.
10608         (*us_sub<mode>_neon): Likewise.
10609         (neon_vadd<mode>_unspec): Likewise.
10610         (neon_vaddl<mode>): Likewise.
10611         (neon_vaddw<mode>): Likewise.
10612         (neon_vhadd<mode>): Likewise.
10613         (neon_vqadd<mode>): Likewise.
10614         (neon_vaddhn<mode>): Likewise.
10615         (neon_vmul<mode>): Likewise.
10616         (neon_vfms<VCVTF:mode>): Likewise.
10617         (neon_vmlal<mode>): Likewise.
10618         (neon_vmls<mode>): Likewise.
10619         (neon_vmlsl<mode>): Likewise.
10620         (neon_vqdmulh<mode>): Likewise.
10621         (neon_vqdmlal<mode>): Likewise.
10622         (neon_vqdmlsl<mode>): Likewise.
10623         (neon_vmull<mode>): Likewise.
10624         (neon_vqdmull<mode>): Likewise.
10625         (neon_vsub<mode>_unspec): Likewise.
10626         (neon_vsubl<mode>): Likewise.
10627         (neon_vsubw<mode>): Likewise.
10628         (neon_vqsub<mode>): Likewise.
10629         (neon_vhsub<mode>): Likewise.
10630         (neon_vsubhn<mode>): Likewise.
10631         (neon_vceq<mode>): Likewise.
10632         (neon_vcge<mode>): Likewise.
10633         (neon_vcgeu<mode>): Likewise.
10634         (neon_vcgt<mode>): Likewise.
10635         (neon_vcgtu<mode>): Likewise.
10636         (neon_vcle<mode>): Likewise.
10637         (neon_vclt<mode>): Likewise.
10638         (neon_vcage<mode>): Likewise.
10639         (neon_vcagt<mode>): Likewise.
10640         (neon_vtst<mode>): Likewise.
10641         (neon_vabd<mode>): Likewise.
10642         (neon_vabdl<mode>): Likewise.
10643         (neon_vaba<mode>): Likewise.
10644         (neon_vabal<mode>): Likewise.
10645         (neon_vmax<mode>): Likewise.
10646         (neon_vmin<mode>): Likewise.
10647         (neon_vpaddl<mode>): Likewise.
10648         (neon_vpadal<mode>): Likewise.
10649         (neon_vpmax<mode>): Likewise.
10650         (neon_vpmin<mode>): Likewise.
10651         (neon_vrecps<mode>): Likewise.
10652         (neon_vrsqrts<mode>): Likewise.
10653         (neon_vqabs<mode>): Likewise.
10654         (neon_vqneg<mode>): Likewise.
10655         (neon_vcls<mode>): Likewise.
10656         (clz<mode>2): Likewise.
10657         (popcount<mode>2): Likewise.
10658         (neon_vrecpe<mode>): Likewise.
10659         (neon_vrsqrte<mode>): Likewise.
10660         (neon_vget_lane<mode>_sext_internal): Likewise.
10661         (neon_vget_lane<mode>_zext_internal): Likewise.
10662         (neon_vdup_n<mode>): Likewise.
10663         (neon_vdup_n<mode>): Likewise.
10664         (neon_vdup_nv2di): Likewise.
10665         (neon_vdup_lane<mode>_interal): Likewise.
10666         (*neon_vswp<mode>): Likewise.
10667         (neon_vcombine<mode>): Likewise.
10668         (float<mode><V_cvtto>2): Likewise.
10669         (floatuns<mode><V_cvtto>2): Likewise.
10670         (fix_trunc<mode><V_cvtto>2): Likewise.
10671         (fixuns_trunc<mode><V_cvtto>2
10672         (neon_vcvt<mode>): Likewise.
10673         (neon_vcvt<mode>): Likewise.
10674         (neon_vcvtv4sfv4hf): Likewise.
10675         (neon_vcvtv4hfv4sf): Likewise.
10676         (neon_vcvt_n<mode>): Likewise.
10677         (neon_vcvt_n<mode>): Likewise.
10678         (neon_vmovn<mode>): Likewise.
10679         (neon_vqmovn<mode>): Likewise.
10680         (neon_vqmovun<mode>): Likewise.
10681         (neon_vmovl<mode>): Likewise.
10682         (neon_vmul_lane<mode>): Likewise.
10683         (neon_vmul_lane<mode>): Likewise.
10684         (neon_vmull_lane<mode>): Likewise.
10685         (neon_vqdmull_lane<mode>): Likewise.
10686         (neon_vqdmulh_lane<mode>): Likewise.
10687         (neon_vqdmulh_lane<mode>): Likewise.
10688         (neon_vmla_lane<mode>): Likewise.
10689         (neon_vmla_lane<mode>): Likewise.
10690         (neon_vmlal_lane<mode>): Likewise.
10691         (neon_vqdmlal_lane<mode>): Likewise.
10692         (neon_vmls_lane<mode>): Likewise.
10693         (neon_vmls_lane<mode>): Likewise.
10694         (neon_vmlsl_lane<mode>): Likewise.
10695         (neon_vqdmlsl_lane<mode>): Likewise.
10696         (neon_vext<mode>): Likewise.
10697         (neon_vrev64<mode>): Likewise.
10698         (neon_vrev32<mode>): Likewise.
10699         (neon_vrev16<mode>): Likewise.
10700         (neon_vbsl<mode>_internal): Likewise.
10701         (neon_vshl<mode>): Likewise.
10702         (neon_vqshl<mode>): Likewise.
10703         (neon_vshr_n<mode>): Likewise.
10704         (neon_vshrn_n<mode>): Likewise.
10705         (neon_vqshrn_n<mode>): Likewise.
10706         (neon_vqshrun_n<mode>): Likewise.
10707         (neon_vshl_n<mode>): Likewise.
10708         (neon_vqshl_n<mode>): Likewise.
10709         (neon_vqshlu_n<mode>): Likewise.
10710         (neon_vshll_n<mode>): Likewise.
10711         (neon_vsra_n<mode>): Likewise.
10712         (neon_vsri_n<mode>): Likewise.
10713         (neon_vsli_n<mode>): Likewise.
10714         (neon_vtbl1v8qi): Likewise.
10715         (neon_vtbl2v8qi): Likewise.
10716         (neon_vtbl3v8qi): Likewise.
10717         (neon_vtbl4v8qi): Likewise.
10718         (neon_vtbl1v16qi): Likewise.
10719         (neon_vtbl2v16qi): Likewise.
10720         (neon_vcombinev16qi): Likewise.
10721         (neon_vtbx1v8qi): Likewise.
10722         (neon_vtbx2v8qi): Likewise.
10723         (neon_vtbx3v8qi): Likewise.
10724         (neon_vtbx4v8qi): Likewise.
10725         (*neon_vtrn<mode>_insn): Likewise.
10726         (*neon_vzip<mode>_insn): Likewise.
10727         (*neon_vuzp<mode>_insn): Likewise.
10728         (neon_vld1<mode>): Likewise.
10729         (neon_vld1_lane<mode>): Likewise.
10730         (neon_vld1_lane<mode>): Likewise.
10731         (neon_vld1_dup<mode>): Likewise.
10732         (neon_vld1_dup<mode>): Likewise.
10733         (neon_vld1_dupv2di): Likewise.
10734         (neon_vst1<mode>): Likewise.
10735         (neon_vst1_lane<mode>): Likewise.
10736         (neon_vst1_lane<mode>): Likewise.
10737         (neon_vld2<mode>): Likewise.
10738         (neon_vld2<mode>): Likewise.
10739         (neon_vld2_lane<mode>): Likewise.
10740         (neon_vld2_lane<mode>): Likewise.
10741         (neon_vld2_dup<mode>): Likewise.
10742         (neon_vst2<mode>): Likewise.
10743         (neon_vst2<mode>): Likewise.
10744         (neon_vst2_lane<mode>): Likewise.
10745         (neon_vst2_lane<mode>): Likewise.
10746         (neon_vld3<mode>): Likewise.
10747         (neon_vld3qa<mode>): Likewise.
10748         (neon_vld3qb<mode>): Likewise.
10749         (neon_vld3_lane<mode>): Likewise.
10750         (neon_vld3_lane<mode>): Likewise.
10751         (neon_vld3_dup<mode>): Likewise.
10752         (neon_vst3<mode>): Likewise.
10753         (neon_vst3qa<mode>): Likewise.
10754         (neon_vst3qb<mode>): Likewise.
10755         (neon_vst3_lane<mode>): Likewise.
10756         (neon_vst3_lane<mode>): Likewise.
10757         (neon_vld4<mode>): Likewise.
10758         (neon_vld4qa<mode>): Likewise.
10759         (neon_vld4qb<mode>): Likewise.
10760         (neon_vld4_lane<mode>): Likewise.
10761         (neon_vld4_lane<mode>): Likewise.
10762         (neon_vld4_dup<mode>): Likewise.
10763         (neon_vst4<mode>): Likewise.
10764         (neon_vst4qa<mode>): Likewise.
10765         (neon_vst4qb<mode>): Likewise.
10766         (neon_vst4_lane<mode>): Likewise.
10767         (neon_vst4_lane<mode>): Likewise.
10768         (neon_vec_unpack<US>_lo_<mode>): Likewise.
10769         (neon_vec_unpack<US>_hi_<mode>): Likewise.
10770         (neon_vec_<US>mult_lo_<mode>): Likewise.
10771         (neon_vec_<US>mult_hi_<mode>): Likewise.
10772         (neon_vec_<US>shiftl_<mode>): Likewise.
10773         (neon_unpack<US>_<mode>): Likewise.
10774         (neon_vec_<US>mult_<mode>): Likewise.
10775         (vec_pack_trunc_<mode>): Likewise.
10776         (neon_vec_pack_trunc_<mode>): Likewise.
10777         (neon_vabd<mode>_2): Likewise.
10778         (neon_vabd<mode>_3): Likewise.
10780 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10782         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
10783         (load_pair): Update type attribute.
10784         (store_pair): Update type attribute.
10785         * config/aarch64/iterators.md (q): New.
10787 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10789         * config/arm/types.md: Add new types for Neon insns.
10791 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10792             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10793             Sergey Lega  <sergey.s.lega@intel.com>
10794             Anna Tikhonova  <anna.tikhonova@intel.com>
10795             Ilya Tocar  <ilya.tocar@intel.com>
10796             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10797             Ilya Verbin  <ilya.verbin@intel.com>
10798             Kirill Yukhin  <kirill.yukhin@intel.com>
10799             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10801         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
10802         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
10803         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
10804         (rcp14<mode>): New.
10805         (srcp14<mode>): Ditto.
10806         (rsqrt14<mode>): Ditto.
10807         (rsqrt14<mode>): Ditto.
10808         (avx512f_vmscalef<mode>): Ditto.
10809         (avx512f_scalef<mode>): Ditto.
10810         (avx512f_getexp<mode>): Ditto.
10811         (avx512f_sgetexp<mode>): Ditto.
10812         (avx512f_fixupimm<mode>): Ditto.
10813         (avx512f_sfixupimm<mode>): Ditto.
10814         (avx512f_rndscale<mode>): Ditto.
10815         (*avx512er_exp2<mode>): Ditto.
10816         (*avx512er_rcp28<mode>): Ditto.
10817         (avx512er_rsqrt28<mode>): Ditto.
10818         (avx512f_getmant<mode>): Ditto.
10819         (avx512f_getmant<mode>): Ditto.
10820         (avx512f_rndscale<mode>): Fix formatting.
10822 2013-10-15  Martin Jambor  <mjambor@suse.cz>
10824         * ipa-utils.h (ipa_edge_within_scc): Declare.
10825         * ipa-cp.c (edge_within_scc): Moved...
10826         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
10828 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10829             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10830             Sergey Lega  <sergey.s.lega@intel.com>
10831             Anna Tikhonova  <anna.tikhonova@intel.com>
10832             Ilya Tocar  <ilya.tocar@intel.com>
10833             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10834             Ilya Verbin  <ilya.verbin@intel.com>
10835             Kirill Yukhin  <kirill.yukhin@intel.com>
10836             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10838         * config/i386/predicates.md (const_8_to_15_operand): New.
10839         (const_16_to_31_operand): Ditto.
10840         * config/i386/sse.md (V8FI): New.
10841         (V16FI): Ditto.
10842         (reduc_splus_v8df): Ditto.
10843         (reduc_splus_v16sf): Ditto.
10844         (avx512f_vextract<shuffletype>32x4_1): Ditto.
10845         (vec_extract_hi_<mode>): Ditto.
10846         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
10847         (vec_set_lo_<mode>): Ditto.
10848         (vec_set_hi_<mode>): Ditto.
10849         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
10850         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
10851         (avx512f_pshufd_1): Ditto.
10852         (avx512f_broadcast<mode>): Ditto.
10853         (avx512f_broadcast<mode>): Ditto.
10854         (define_split): Split vec_extract_lo into move.
10855         (ssequartermode): Ditto.
10856         (ssedoublemode): Extened with wider modes.
10857         (vec_extract_lo_<mode>): Ditto.
10859 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10860             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10861             Sergey Lega  <sergey.s.lega@intel.com>
10862             Anna Tikhonova  <anna.tikhonova@intel.com>
10863             Ilya Tocar  <ilya.tocar@intel.com>
10864             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10865             Ilya Verbin  <ilya.verbin@intel.com>
10866             Kirill Yukhin  <kirill.yukhin@intel.com>
10867             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10869         * config/i386/predicates.md (register_or_constm1_operand): New.
10870         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
10871         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
10872         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
10873         UNSPEC_SCATTER_PREFETCH
10874         (VI48_512): New.
10875         (avx512f_ucmp<mode>3): Ditto.
10876         (avx512f_vternlog<mode>): Ditto.
10877         (avx512f_align<mode>): Ditto.
10878         (<shift_insn><mode>3): Ditto.
10879         (avx512f_<rotate>v<mode>): Ditto.
10880         (avx512f_<rotate><mode>): Ditto.
10881         (avx512f_eq<mode>3): Ditto.
10882         (avx512f_eq<mode>3_1): Ditto.
10883         (avx512f_gt<mode>3): Ditto.
10884         (avx512f_testm<mode>3): Ditto.
10885         (avx512f_testnm<mode>3): Ditto.
10886         (avx512pf_gatherpf<mode>): Ditto.
10887         (*avx512pf_gatherpf<mode>_mask): Ditto.
10888         (*avx512pf_gatherpf<mode>): Ditto.
10889         (avx512pf_scatterpf<mode>): Ditto.
10890         (*avx512pf_scatterpf<mode>_mask): Ditto.
10891         (*avx512pf_scatterpf<mode>): Ditto.
10892         (avx512f_vec_dup_gpr<mode>): Ditto.
10893         (clz<mode>2): Ditto.
10894         (conflict<mode>): Ditto.
10895         (REDUC_SMINMAX_MODE): Extened with wider modes.
10896         (reduc_<code>_<mode>): Ditto.
10897         (vlshr<mode>3): Ditto.
10898         (vashl<mode>3): Ditto.
10900 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10901             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10902             Sergey Lega  <sergey.s.lega@intel.com>
10903             Anna Tikhonova  <anna.tikhonova@intel.com>
10904             Ilya Tocar  <ilya.tocar@intel.com>
10905             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10906             Ilya Verbin  <ilya.verbin@intel.com>
10907             Kirill Yukhin  <kirill.yukhin@intel.com>
10908             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10910         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
10911         UNSPEC_SCATTER.
10912         (VI48F_512): New.
10913         (avx512fmaskmode): Ditto.
10914         (bcstscalarsuff): Ditto.
10915         (avx512f_blendm<mode>): Ditto.
10916         (cmp_imm_predicate): Ditto.
10917         (avx512f_cmp<mode>3): Ditto.
10918         (avx512f_vec_dup<mode>): Ditto.
10919         (avx512f_vec_dup_mem<mode>): Ditto.
10920         (avx512f_vpermi2var<mode>3): Ditto.
10921         (avx512f_vpermt2var<mode>3): Ditto.
10922         (vec_init<mode>): Ditto.
10923         (avx512f_gathersi<mode>): Ditto.
10924         (*avx512f_gathersi<mode>): Ditto.
10925         (*avx512f_gathersi<mode>_2): Ditto.
10926         (avx512f_gatherdi<mode>): Ditto.
10927         (*avx512f_gatherdi<mode>): Ditto.
10928         (*avx512f_gatherdi<mode>_2): Ditto.
10929         (avx512f_scattersi<mode>): Ditto.
10930         (*avx512f_scattersi<mode>): Ditto.
10931         (avx512f_scatterdi<mode>): Ditto.
10932         (*avx512f_scatterdi<mode>): Ditto.
10933         (sseintprefix): Extened with wider modes.
10934         (VEC_GATHER_IDXSI): Ditto.
10935         (VEC_GATHER_IDXDI): Ditto.
10936         (VEC_GATHER_SRCDI): Ditto.
10938 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
10939             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10941         * config/arm/t-aprofile: New file.
10942         * config.gcc: Handle --with-multilib-list option.
10944 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
10946         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
10947         the input for r2.
10949 2013-10-15  Richard Biener  <rguenther@suse.de>
10951         * tree-loop-distribution.c (build_empty_rdg): Inline into
10952         single user.
10953         (rdg_flag_vertex): Inline into single user.
10954         (rdg_flag_vertex_and_dependent): Likewise.
10955         (build_rdg_partition_for_vertex): Remove processed bitmap.
10956         (rdg_build_partitions): Simplify.
10958 2013-10-15  Richard Biener  <rguenther@suse.de>
10960         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
10961         Restructure forwarding through conversions and copies to
10962         avoid performing copy-propagation the wrong way.  Adjust
10963         recursion invocations.
10964         (forward_propagate_addr_expr): Add argument stating if we
10965         are recursing from a single-use.
10966         (ssa_forward_propagate_and_combine): Adjust.
10968 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
10970         * dumpfile.h (gcc::dump_manager): New class, to hold state
10971         relating to dumpfile management.
10972         (get_dump_file_name): Remove in favor of method of dump_manager.
10973         (dump_initialized_p): Likewise.
10974         (dump_start): Likewise.
10975         (dump_finish): Likewise.
10976         (dump_switch_p): Likewise.
10977         (dump_register): Likewise.
10978         (get_dump_file_info): Likewise.
10979         * context.c (gcc::context::context): Construct the dump_manager
10980         instance.
10981         * context.h (gcc::context::get_dumps): New.
10982         (gcc::context::m_dumps): New.
10983         * coverage.c (coverage_init): Port to dump_manager API.
10984         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
10985         (extra_dump_files_in_use): Likewise.
10986         (extra_dump_files_alloced): Likewise.
10987         (gcc::dump_manager::dump_manager): New.
10988         (dump_register): Convert to...
10989         (gcc::dump_manager::dump_register): ...method, replacing
10990         function-static next_dump with m_next_dump field.
10991         (get_dump_file_info): Convert to...
10992         (gcc::dump_manager::get_dump_file_info): ...method.
10993         (get_dump_file_name): Convert to...
10994         (gcc::dump_manager::get_dump_file_name): ...method.
10995         (dump_start): Convert to...
10996         (gcc::dump_manager::dump_start): ...method.
10997         (dump_finish): Convert to...
10998         (gcc::dump_manager::dump_finish): ...method.
10999         (dump_begin): Replace body with...
11000         (gcc::dump_manager::dump_begin): ...new method.
11001         (dump_phase_enabled_p): Convert to...
11002         (gcc::dump_manager::dump_phase_enabled_p): ...method.
11003         (dump_phase_enabled_p): Convert to...
11004         (gcc::dump_manager::dump_phase_enabled_p): ...method.
11005         (dump_initialized_p):  Convert to...
11006         (gcc::dump_manager::dump_initialized_p): ...method.
11007         (dump_flag_name): Replace body with...
11008         (gcc::dump_manager::dump_flag_name): ...new method.
11009         (dump_enable_all): Convert to...
11010         (gcc::dump_manager::dump_enable_all): ...new method.
11011         (opt_info_enable_passes): Convert to...
11012         (gcc::dump_manager::opt_info_enable_passes): ...new method.
11013         (dump_switch_p_1): Convert to...
11014         (gcc::dump_manager::dump_switch_p_1): ...new method.
11015         (dump_switch_p):  Convert to...
11016         (gcc::dump_manager::dump_switch_p): ...new method.
11017         (opt_info_switch_p): Port to dump_manager API.
11018         (enable_rtl_dump_file): Likewise.
11019         * opts-global.c (handle_common_deferred_options): Port to new
11020         dump_manager API.
11021         * passes.c (pass_manager::finish_optimization_passes): Likewise.
11022         (pass_manager::register_one_dump_file): Likewise.
11023         (pass_manager::register_pass): Likewise.
11024         (pass_init_dump_file): Likewise.
11025         (pass_fini_dump_file): Likewise.
11026         * statistics.c (statistics_early_init): Likewise.
11028 2013-10-14  Richard Biener  <rguenther@suse.de>
11030         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
11031         iterative_hash_canonical_type, gimple_canonical_type_hash,
11032         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
11033         gimple_register_canonical_type, print_gimple_types_stats,
11034         free_gimple_type_tables): Move to lto/lto.c
11035         (gt-gimple.h): Do not include.
11036         * gimple.h (gimple_register_canonical_type,
11037         print_gimple_types_stats, free_gimple_type_tables): Remove.
11038         * Makefile.in (GTFILES): Remove gimple.c.
11040 2013-10-14  Travis Snoozy  <quandary@remstate.com>
11042         PR target/58716
11043         * config/msp430/msp430.c (msp430_option_override): Correct thinko
11044         scanning for msp430x targets.
11046 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
11048         PR bootstrap/58509
11049         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
11050         (registers_ok_for_ldd_peep): Move around.
11051         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
11052         * config/sparc/sparc.md (widening peepholes): Use it.
11054 2013-10-14  Richard Biener  <rguenther@suse.de>
11056         PR middle-end/58712
11057         PR middle-end/55358
11058         * gimple.c (iterative_hash_canonical_type): Make sure to
11059         record the hash into the correct hashtable slot.
11061 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
11063         PR rtl-optimization/58662
11064         * combine.c (try_combine): Take into account death nodes on I2 when
11065         splitting a PARALLEL of two independent SETs.  Fix dump message.
11067 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
11069         PR target/51244
11070         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
11071         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
11072         extra_objs.
11073         * config/sh/t-sh (sh_treg_combine.o): New entry.
11074         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
11075         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
11076         (register_sh_passes): New function.  Register sh_treg_combine pass.
11077         (sh_option_override): Invoke it.
11078         (sh_canonicalize_comparison): Handle op0_preserve_value.
11079         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
11080         opportunities.  Canonicalize branch condition.
11081         (nott): Allow only if pseudos can be created for non-SH2A.
11083 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
11085         PR target/58690
11086         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
11087         (ix86_expand_movmem): Replace copy_addr_to_reg with
11088         ix86_copy_addr_to_reg.
11089         (ix86_expand_setmem): Likewise.
11091 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
11093         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
11094         provided by ix86_fp_compare_mode instead of CCFPUmode.
11096 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
11098         * config/aarch64/arm_neon.h
11099         (vtbx<1,3>_<psu>8): Fix register constriants.
11101 2013-10-11  Jeff Law  <law@redhat.com>
11103         PR tree-optimization/58640
11104         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
11105         threading paths that cross over two loop entry points.
11107 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11109         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
11110         handle vector float as well.
11111         (*vsx_le_perm_load_v4si): Likewise.
11112         (*vsx_le_perm_store_v2di): Likewise.
11113         (*vsx_le_perm_store_v4si): Likewise.
11115 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11117         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
11118         directly to circumvent subtract from splat{31} workaround.
11119         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
11120         prototype.
11121         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
11122         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
11123         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
11124         (altivec_vperm_<mode>): Convert to define_insn_and_split to
11125         separate big and little endian logic.
11126         (*altivec_vperm_<mode>_internal): New define_insn.
11127         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
11128         separate big and little endian logic.
11129         (*altivec_vperm_<mode>_uns_internal): New define_insn.
11130         (vec_permv16qi): Add little endian logic.
11132 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
11134         * doc/extend.texi (returns_nonnull): Remove arguments.
11136 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11137             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11138             Sergey Lega  <sergey.s.lega@intel.com>
11139             Anna Tikhonova  <anna.tikhonova@intel.com>
11140             Ilya Tocar  <ilya.tocar@intel.com>
11141             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11142             Ilya Verbin  <ilya.verbin@intel.com>
11143             Kirill Yukhin  <kirill.yukhin@intel.com>
11144             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11146         * config/i386/sse.md (VI48F_256_512): New.
11147         (avx2_permvar<mode>): Change to ...
11148         (<avx2_avx512f>_permvar<mode>): This.
11150 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11151             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11152             Sergey Lega  <sergey.s.lega@intel.com>
11153             Anna Tikhonova  <anna.tikhonova@intel.com>
11154             Ilya Tocar  <ilya.tocar@intel.com>
11155             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11156             Ilya Verbin  <ilya.verbin@intel.com>
11157             Kirill Yukhin  <kirill.yukhin@intel.com>
11158             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11160         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
11161         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
11162         * config/i386/sse.md (VI4_AVX): New.
11163         (sf2simodelower): Ditto.
11164         (sse2_cvtps2dq): Change to ...
11165         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
11167 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11168             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11169             Sergey Lega  <sergey.s.lega@intel.com>
11170             Anna Tikhonova  <anna.tikhonova@intel.com>
11171             Ilya Tocar  <ilya.tocar@intel.com>
11172             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11173             Ilya Verbin  <ilya.verbin@intel.com>
11174             Kirill Yukhin  <kirill.yukhin@intel.com>
11175             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11177         * config/i386/sse.md (V_512): New.
11178         (VI_512): Ditto.
11179         (vcond<V_512:mode><VF_512:mode>): Ditto.
11180         (vcond<V_512:mode><VI_512:mode>): Ditto.
11181         (vcondu<V_512:mode><VI_512:mode>): Ditto.
11183 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11184             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11185             Sergey Lega  <sergey.s.lega@intel.com>
11186             Anna Tikhonova  <anna.tikhonova@intel.com>
11187             Ilya Tocar  <ilya.tocar@intel.com>
11188             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11189             Ilya Verbin  <ilya.verbin@intel.com>
11190             Kirill Yukhin  <kirill.yukhin@intel.com>
11191             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11193         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
11194         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
11195         (FMAMODE): Ditto.
11196         (fma<mode>4): Removed condition.
11197         (fms<mode>4): Ditto.
11198         (fnma<mode>4): Ditto.
11199         (fnms<mode>4): Ditto.
11200         (fma4i_fmadd_<mode>): Ditto.
11201         (*fma_fmadd_<mode>): Ditto.
11202         (*fma_fmsub_<mode>): Ditto.
11203         (*fma_fnmadd_<mode>): Ditto.
11204         (*fma_fnmsub_<mode>): Ditto.
11205         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
11206         (*fma_fmaddsub_<mode>): Ditto.
11207         (*fma_fmsubadd_<mode>): Ditto.
11208         (*fmai_fmadd_<mode>): Ditto.
11209         (*fmai_fmsub_<mode>): Ditto.
11210         (*fmai_fnmadd_<mode>): Ditto.
11211         (*fmai_fnmsub_<mode>): Ditto.
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>
11223         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
11224         (VI124_256): Changed to ...
11225         (VI124_256_48_512): This.
11226         (ssepackmode): Extended with wider modes.
11227         (<code><mode>3): Changed iterator.
11228         (*avx2_<code><mode>3): Ditto.
11229         (vec_pack_trunc_<mode>): Ditto.
11231 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11232             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11233             Sergey Lega  <sergey.s.lega@intel.com>
11234             Anna Tikhonova  <anna.tikhonova@intel.com>
11235             Ilya Tocar  <ilya.tocar@intel.com>
11236             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11237             Ilya Verbin  <ilya.verbin@intel.com>
11238             Kirill Yukhin  <kirill.yukhin@intel.com>
11239             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11241         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
11242         (VI8F_256_512): Ditto.
11243         (abs<mode>2): Changed iterator.
11244         (avx2_perm<mode>): Changed to ...
11245         (<avx2_avx512f>_perm<mode>): This.
11246         (avx2_perm<mode>_1): Changed to ...
11247         (<avx2_avx512f>_perm<mode>_1): This.
11249 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11250             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11251             Sergey Lega  <sergey.s.lega@intel.com>
11252             Anna Tikhonova  <anna.tikhonova@intel.com>
11253             Ilya Tocar  <ilya.tocar@intel.com>
11254             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11255             Ilya Verbin  <ilya.verbin@intel.com>
11256             Kirill Yukhin  <kirill.yukhin@intel.com>
11257             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11259         * config/i386/sse.md (VI48_AVX512F): New.
11260         (VI48_AVX2): Changed to ...
11261         (VI48_AVX2_48_AVX512F): This.
11262         (avx2_ashrv<mode>): Changed to ...
11263         (<avx2_avx512f>_ashrv<mode>): This.
11264         (avx2_<shift_insn>v<mode>): Changed to ...
11265         (<avx2_avx512f>_<shift_insn>v<mode>): This.
11267 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11268             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11269             Sergey Lega  <sergey.s.lega@intel.com>
11270             Anna Tikhonova  <anna.tikhonova@intel.com>
11271             Ilya Tocar  <ilya.tocar@intel.com>
11272             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11273             Ilya Verbin  <ilya.verbin@intel.com>
11274             Kirill Yukhin  <kirill.yukhin@intel.com>
11275             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11277         * config/i386/sse.md (VI4_AVX512F): New.
11278         (VI8_AVX2_AVX512F): Ditto.
11279         (mul<mode>3): Extended with wider modes.
11280         (*<sse4_1_avx2>_mul<mode>3): Ditto.
11281         (mul<mode>3): Ditto.
11282         (vec_widen_<s>mult_odd_<mode>): Ditto.
11284 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11285             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11286             Sergey Lega  <sergey.s.lega@intel.com>
11287             Anna Tikhonova  <anna.tikhonova@intel.com>
11288             Ilya Tocar  <ilya.tocar@intel.com>
11289             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11290             Ilya Verbin  <ilya.verbin@intel.com>
11291             Kirill Yukhin  <kirill.yukhin@intel.com>
11292             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11294         * config/i386/sse.md (VI2_AVX512F): New.
11295         (VI124_AVX512F): Ditto.
11296         (sseunpackmode): Extended with wider modes.
11297         (sseunpackfltmode): Ditto.
11298         (vec_unpacks_float_hi_<mode>): Ditto.
11299         (vec_unpacks_float_lo_<mode>): Ditto.
11300         (vec_unpacku_float_hi_<mode>): Ditto.
11301         (vec_unpacku_float_lo_<mode>): Ditto.
11302         (vec_unpacks_lo_<mode>): Ditto.
11303         (vec_unpacks_hi_<mode>): Ditto.
11304         (vec_unpacku_lo_<mode>): Ditto.
11305         (vec_unpacku_hi_<mode>): Ditto.
11307 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11308             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11309             Sergey Lega  <sergey.s.lega@intel.com>
11310             Anna Tikhonova  <anna.tikhonova@intel.com>
11311             Ilya Tocar  <ilya.tocar@intel.com>
11312             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11313             Ilya Verbin  <ilya.verbin@intel.com>
11314             Kirill Yukhin  <kirill.yukhin@intel.com>
11315             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11317         * config/i386/i386.md (multdiv): New.
11318         (multdiv_mnemonic): Ditto.
11319         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
11320         (<sse>_vm<multdiv_mnemonic><mode>3): This.
11321         (<sse>_vmdiv<mode>3): Removed.
11323 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11324             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11325             Sergey Lega  <sergey.s.lega@intel.com>
11326             Anna Tikhonova  <anna.tikhonova@intel.com>
11327             Ilya Tocar  <ilya.tocar@intel.com>
11328             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11329             Ilya Verbin  <ilya.verbin@intel.com>
11330             Kirill Yukhin  <kirill.yukhin@intel.com>
11331             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11333         * config/i386/sse.md (V): Extended with wider modes.
11334         (VF2): Ditto.
11335         (ssehalfvecmode): Ditto.
11336         (i128): Ditto.
11337         (ssepackfltmode): Ditto.
11338         (avx_vec_concat<mode>): Ditto.
11339         (V_256_512): New iterator.
11340         (VF2_512_256): Ditto.
11341         (si2dfmode): New attribute.
11342         (si2dfmodelower): Ditto.
11343         (sf2dfmode): Ditto.
11344         (concat_tg_mode): Ditto.
11345         (floatv4siv4df2): Changed to ...
11346         (float<si2dfmodelower><mode>2): This.
11347         (avx_cvtps2pd256): Changed to ...
11348         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
11349         (vec_pack_trunc_v4df): Changed to ...
11350         (vec_pack_trunc_<mode>): This.
11351         (avx_vpermil<mode>): Changed to ...
11352         (<sse2_avx_avx512f>_vpermil<mode>): This.
11353         (<fixsuffix>fix_truncv8dfv8si2): New.
11354         (vec_pack_sfix_trunc_v8df): Ditto.
11355         (avx512f_rndscale<mode>): Ditto.
11356         (avx512f_roundpd512): Ditto.
11357         (vec_pack_ufix_trunc_<mode>): Updated iterator.
11359 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11360             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11361             Sergey Lega  <sergey.s.lega@intel.com>
11362             Anna Tikhonova  <anna.tikhonova@intel.com>
11363             Ilya Tocar  <ilya.tocar@intel.com>
11364             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11365             Ilya Verbin  <ilya.verbin@intel.com>
11366             Kirill Yukhin  <kirill.yukhin@intel.com>
11367             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11369         * config/i386/i386.md (any_fix): New iterator.
11370         (fixsuffix): New attribute.
11371         * config/i386/sse.md (VF1): Extened with wider modes.
11372         (VI): Ditto.
11373         (VI_AVX2): Ditto.
11374         (VI8): Ditto.
11375         (sseintvecmodelower): Ditto.
11376         (ssescalarmode): Ditto.
11377         (ssescalarnum): Ditto.
11378         (VF1_128_256): New.
11379         (ssexmmmode): Ditto.
11380         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
11381         (<sse>_rcp<mode>2): Change iterator.
11382         (rsqrt<mode>2): Ditto.
11383         (<sse>_rsqrt<mode>2): Ditto.
11384         (avx2_vec_dup<mode>): Ditto.
11385         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
11386         (round<mode>2_sfix): Ditto.
11387         (avx2_pbroadcast<mode>): Ditto.
11388         (*andnot<mode>3): Handle XI mode.
11389         (*<code><mode>3): Ditto.
11390         (AVXTOSSEMODE): Removed.
11391         (avx_vpermil<mode>): Changed to ...
11392         (<sse2_avx_avx512f>_vpermil<mode>): This.
11394 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
11395             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
11396             Sergey Lega  <sergey.s.lega@intel.com>
11397             Anna Tikhonova  <anna.tikhonova@intel.com>
11398             Ilya Tocar  <ilya.tocar@intel.com>
11399             Andrey Turetskiy  <andrey.turetskiy@intel.com>
11400             Ilya Verbin  <ilya.verbin@intel.com>
11401             Kirill Yukhin  <kirill.yukhin@intel.com>
11402             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
11404         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
11405         (<sse>_comi): Ditto.
11406         (<sse>_ucomi): Ditto.
11407         (sse_cvtss2siq_2): Ditto.
11408         (sse2_cvtsd2si): Ditto.
11409         (sse2_cvtsd2siq): Ditto.
11410         (sse2_cvttsd2si): Ditto.
11411         (sse2_cvttsd2siq): Ditto.
11412         (<shift_insn><mode>3): Ditto.
11413         (sse2_cvtsi2sdq): Update constraint and prefix.
11414         (sse_cvtsi2ss): Update prefix.
11415         (sse_cvtsi2ssq): Ditto.
11417 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11419         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
11420         ignore internal calls.
11422 2013-10-11  Richard Biener  <rguenther@suse.de>
11424         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
11425         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
11426         TREE_OVERFLOW is set.
11428 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
11430         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
11432         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
11433         * gimple.h: Likewise.
11435         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
11437         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
11438         macros.
11440         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
11442         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
11443         * configure: Regenerate.
11445 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
11447         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
11448         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
11449         formatting fixes, use pp_colon instead of pp_character (..., ':'),
11450         similarly pp_right_paren.
11451         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
11452         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
11453         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
11454         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
11455         clauses.
11456         (omp_declare_simd_clauses_equal,
11457         omp_remove_redundant_declare_simd_attrs): New functions.
11458         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
11459         (walk_tree_1): Handle new OpenMP 4.0 clauses.
11460         * tree.h (OMP_LOOP_CHECK): Define.
11461         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11462         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
11463         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
11464         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
11465         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
11466         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
11467         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
11468         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
11469         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
11470         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
11471         OMP_CLAUSE_SIMDLEN_EXPR): Define.
11472         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
11473         (omp_remove_redundant_declare_simd_attrs): New prototype.
11474         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
11475         GIMPLE_OMP_TEAMS): New codes.
11476         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
11477         * omp-low.c (struct omp_context): Add cancel_label and cancellable
11478         fields.
11479         (target_nesting_level): New variable.
11480         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
11481         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
11482         for collapse > 1 static schedule unless ordered.
11483         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
11484         (determine_parallel_type): Adjust get_ws_args_for caller.
11485         (install_var_field): Handle mask & 4 for double indirection.
11486         (scan_sharing_clauses): Ignore shared clause on teams construct.
11487         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
11488         (create_omp_child_function): If inside target or declare target
11489         constructs, set "omp declare target" attribute on the child function.
11490         (find_combined_for): New function.
11491         (scan_omp_parallel): Handle combined loops.
11492         (scan_omp_target, scan_omp_teams): New functions.
11493         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
11494         restrictions and set ctx->cancellable for cancellable constructs.
11495         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
11496         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
11497         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
11498         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
11499         (omp_clause_aligned_alignment): New function.
11500         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
11501         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
11502         on teams constructs.  Handle user defined reductions and new
11503         OpenMP 4.0 clauses.
11504         (lower_reduction_clauses): Don't set placeholder to address of ref
11505         if it has already the right type.
11506         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
11507         (expand_parallel_call): Use the new non-_start suffixed builtins,
11508         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
11509         and GOMP_parallel_end after the call.
11510         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
11511         (expand_omp_for_init_counts): Handle combined loops.
11512         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
11513         loops.
11514         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
11515         end of cancellable loops.
11516         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11517         Likewise.  Handle collapse > 1 loops.
11518         (expand_omp_simd): Handle combined loops.
11519         (expand_omp_for): Add inner_stmt argument, adjust callers of
11520         expand_omp_for* functions, use expand_omp_for_static*chunk even
11521         for collapse > 1 unless ordered.
11522         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
11523         of cancellable sections.
11524         (expand_omp_single): Remove need_barrier variable, just rely on
11525         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
11526         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
11527         (expand_omp_atomic_load, expand_omp_atomic_store,
11528         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
11529         (expand_omp_target): New function.
11530         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
11531         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
11532         (build_omp_regions_1): Immediately close region for
11533         GF_OMP_TARGET_KIND_UPDATE.
11534         (maybe_add_implicit_barrier_cancel): New function.
11535         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
11536         cancellation.
11537         (lower_omp_single): Likewise.  Add clobber after the barrier.
11538         (lower_omp_taskgroup): New function.
11539         (lower_omp_for): Handle combined loops.  Adjust
11540         lower_rec_input_clauses caller.  Handle cancellation.
11541         (lower_depend_clauses): New function.
11542         (lower_omp_taskreg): Lower depend clauses.  Adjust
11543         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
11544         cancellation.
11545         (lower_omp_target, lower_omp_teams): New functions.
11546         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
11547         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
11548         and GOMP_cancellation_point calls.
11549         (lower_omp): Fold stmts inside of target region.
11550         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
11551         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11552         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
11553         (BT_FN_VOID_OMPFN_PTR_UINT,
11554         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
11555         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
11556         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
11557         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
11558         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
11559         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
11560         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
11561         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11562         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11563         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
11564         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11565         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
11566         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
11567         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
11568         BUILT_IN_GOMP_PARALLEL_END.
11569         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
11570         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11571         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11572         GF_OMP_FOR_KIND_DISTRIBUTE.
11573         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
11574         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
11575         (dump_gimple_omp_return): Print lhs if it has any.
11576         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
11577         gimple_omp_atomic_seq_cst_p.
11578         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
11579         and GIMPLE_OMP_TEAMS.
11580         * langhooks.c (lhd_omp_mappable_type): New function.
11581         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
11582         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
11583         hook.
11584         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
11585         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
11586         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
11587         (struct gimplify_omp_ctx): Add combined_loop field.
11588         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
11589         on stmts inside of target region.
11590         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
11591         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
11592         ORT_TARGET and ORT_TARGET_DATA.
11593         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
11594         Handle GOVD_MAP.
11595         (omp_notice_threadprivate_variable): Complain about threadprivate
11596         variables in target region.
11597         (omp_notice_variable): Complain about vars with non-mappable type
11598         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
11599         (omp_check_private): Ignore ORT_TARGET* regions.
11600         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
11601         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
11602         (find_combined_omp_for): New function.
11603         (gimplify_omp_for): Handle gimplification of combined loops.
11604         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
11605         OMP_TEAMS.
11606         (gimplify_omp_target_update): New function.
11607         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
11608         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
11609         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
11610         (gimplify_body): If fndecl has "omp declare target" attribute, add
11611         implicit ORT_TARGET context around it.
11612         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
11613         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
11614         * tree-nested.c (convert_nonlocal_reference_stmt,
11615         convert_local_reference_stmt, convert_gimple_call): Handle
11616         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11617         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
11618         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
11619         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
11620         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
11621         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
11622         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
11623         BUILT_IN_GOMP_LOOP_END_CANCEL,
11624         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
11625         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
11626         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
11627         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
11628         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
11629         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
11630         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
11631         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
11632         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
11633         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
11634         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
11635         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
11636         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
11637         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
11638         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
11639         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11640         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
11641         gimple_build_omp_teams): New functions.
11642         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
11643         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
11644         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
11645         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11646         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
11647         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
11648         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
11649         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
11650         GF_OMP_ATOMIC_SEQ_CST): New.
11651         (gimple_build_omp_taskgroup, gimple_build_omp_target,
11652         gimple_build_omp_teams): New prototypes.
11653         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
11654         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11655         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
11656         GIMPLE_OMP_SINGLE as end of range.
11657         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
11658         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
11659         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
11660         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
11661         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
11662         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
11663         gimple_omp_target_kind, gimple_omp_target_set_kind,
11664         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
11665         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
11666         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
11667         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
11668         gimple_omp_teams_set_clauses): New inlines.
11669         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
11670         and GIMPLE_OMP_TASKGROUP.
11671         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
11672         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
11673         enum omp_clause_proc_bind_kind): New.
11674         (union omp_clause_subcode): Add depend_kind, map_kind and
11675         proc_bind_kind fields.
11676         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
11677         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11678         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
11679         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
11680         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
11682 2013-10-10  Teresa Johnson  <tejohnson@google.com>
11684         * predict.c (tree_estimate_probability): Add new parameter
11685         for estimate_bb_frequencies.
11686         (estimate_bb_frequencies): Add new parameter to force estimation.
11687         (rebuild_frequencies): When max frequency in function is small,
11688         recompute counts from frequencies.
11689         * predict.h (estimate_bb_frequencies): New parameter.
11691 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
11693         * ipa-inline.c (ipa_inline): Fix leak of "order" when
11694         optimizations are disabled.
11696 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
11698         * coverage.c (coverage_finish): Fix leak of da_file_name.
11700 2013-10-10  Jan Hubicka  <jh@suse.cz>
11702         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
11703         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
11704         Bobcat and generic.
11706 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
11708         PR middle-end/58670
11709         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
11710         if any labels are in FALLTHRU_BB, use a special label emitted
11711         immediately after the asm goto insn rather than label_rtx
11712         of the LABEL_DECL.
11713         (expand_asm_stmt): Adjust caller.
11714         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
11715         edge if the last insn in predecessor is a jump with single successor,
11716         but it isn't simplejump_p.
11718 2013-10-10  Richard Biener  <rguenther@suse.de>
11720         PR tree-optimization/58656
11721         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
11723 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11725         * gimplify.c: Include expr.h and tm_p.h for targets with special
11726         va-arg padding requirements.
11728 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11730         * tree-flow.h: Move some prototypes to gimple.h.
11731         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
11732         * gimple.h: Relocate some prototypes from tree-flow.h
11733         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
11734         Move to gimplify.c.
11735         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
11736         (build_va_arg_indirect_ref): Relocate and make static.
11737         (std_gimplify_va_arg_expr): Relocate here.
11738         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
11739         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
11741 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11743         * doc/md.texi: Document the mnemonic attribute.
11745 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11747         PR target/57377
11748         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
11749         (set_attr_alternative x ...) when searching for user defined
11750         mnemonic attribute.
11752 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11754         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
11756 2013-10-09  Easwaran Raman <eraman@google.com>
11758         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
11759         * cfgexpand.c (defer_stack_allocation): ...use here
11760         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
11762 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
11764         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
11765         (operand_equal_for_value_replacement): New function, extracted from
11766         value_replacement and enhanced to catch more cases.
11767         (value_replacement): Use operand_equal_for_value_replacement.
11769 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11771         * loop-doloop.c (doloop_modify, doloop_optimize): Use
11772         get_max_loop_iterations.
11774 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11776         * config/arm/aarch-common.c (arm_early_load_addr_dep):
11777         Place comment above function.
11779 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11781         * tree-flow.h: Remove all remaining prototypes, enums and structs that
11782         are not related to tree-cfg.c.
11783         * tree-ssa-address.h: New file.  Relocate prototypes.
11784         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
11785         (addr_for_mem_ref): New.  Combine call to get_address_description and
11786         return addr_for_mem_ref.
11787         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
11788         * tree-ssa-live.h: Adjust prototypes.
11789         * passes.c: Include tree-ssa-live.h.
11790         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
11791         * graphite.c (graphite_transform_loops): Make static.
11792         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11793         make_pass_graphite, pass_data_graphite_transforms,
11794         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
11795         * ipa-pure-const.c (warn_function_noreturn): Make static.
11796         (execute_warn_function_noreturn, gate_warn_function_noreturn,
11797         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11798         Relocate from tree-cfg.c
11799         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
11800         static.
11801         (execute_warn_function_noreturn, gate_warn_function_noreturn,
11802         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11803         Move to ipa-pure-const.c.
11804         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
11805         Relocate from tree-optimize.c.
11806         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
11807         make_pass_fixup_cfg): Move to tree-cfg.c.
11808         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
11809         Relocate some prototypes.
11810         * tree-data-ref.h (tree_check_data_deps) Add prototype.
11811         * tree-dump.c (dump_function_to_file): Remove prototype.
11812         Add tree-flow.h to the include file.
11813         * tree-dump.h: Remove prototype.
11814         * tree-parloops.h: New File.  Add prototypes.
11815         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
11816         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
11817         from tree-ssa-loop.c.
11818         * tree-predcom.c (run_tree_predictive_commoning,
11819         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
11820         Relocate here from tree-ssa-loop.c.
11821         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
11822         ssa_name_values.release ().
11823         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
11824         (ssa_name_values): Relocate from tree-flow.h.
11825         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
11826         * tree-ssa-loop.c (run_tree_predictive_commoning,
11827         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
11828         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11829         make_pass_graphite, pass_data_graphite_transforms,
11830         make_pass_graphite_transforms, gate_tree_parallelize_loops,
11831         tree_parallelize_loops, pass_data_parallelize_loops,
11832         make_pass_parallelize_loops): Move to other files.
11833         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
11834         moved here.
11835         * tree.h: Remove prototypes from tree-address.c.
11837 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11839         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
11840         (struct int_tree_map): Move to tree-hasher.h
11841         (SCALE, LABEL, PERCENT): Move to gimple.h
11842         * tree-flow-inline.h: Delete.  Move functions to other files.
11843         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
11844         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
11845         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
11846         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
11847         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
11848         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
11849         * tree-hasher.h: Don't include tree-flow.h.
11850         (struct int_tree_map): Relocate from tree-flow.h.
11851         * tree-sra.c (contains_view_convert_expr_p): Relocate from
11852         tree-flow-inline.h and make static.
11853         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
11854         tree-flow-inline.h.
11855         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
11856         tree-flow-inline.h and make static.
11857         * tree.h (is_global_var, may_be_aliased): Relocate from
11858         tree-flow-inline.h.
11859         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
11860         * value-prof.c: No longer include tree-flow-inline.h.
11861         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
11863 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11865         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
11866         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
11867         (enum move_pos): Move to tree-ssa-loop-im.h
11868         * cfgloop.h: Move some prototypes.
11869         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
11870         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
11871         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
11872         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
11873         (loop_containing_stmt): Relocate from tree-flow-inline.h.
11874         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
11875         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
11876         (enum move_pos): Relocate here.
11877         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
11878         tree-ssa-loop.c.
11879         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
11880         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
11881         make_pass_lim): Relocate here from tree-ssa-loop.c.
11882         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
11883         tree-ssa-loop.c.
11884         (loop_edge_to_cancel, unloop_loops): Make static.
11885         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11886         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
11887         (tree_complete_unroll, gate_tree_complete_unroll,
11888         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
11889         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11890         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
11891         * tree-ssa-loop-ivopts.c: Remove local prototypes.
11892         (stmt_invariant_in_loop_p): Remove unused function.
11893         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
11894         * tree-ssa-loop-manip.h: New file.  Add prototypes.
11895         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
11896         (gcov_type_to_double_int): Move to cfgloop.h.
11897         (double_int_cmp, bound_index,
11898         estimate_numbers_of_iterations_loop): Make static.
11899         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
11900         (max_loop_iterations): Factor out get_max_loop_iterations.
11901         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
11902         cfgloop.c.
11903         * tree-ssa-loop-niter.h: New file.  Add prototypes.
11904         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
11905         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
11906         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
11907         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
11908         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
11909         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
11910         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
11911         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
11912         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
11913         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
11914         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11915         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
11916         pass_data_complete_unroll, make_pass_complete_unroll,
11917         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11918         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
11919         tree-ssa-loop-ivcanon.c.
11920         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
11921         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
11922         tree-ssa-loop-prefetch.c.
11923         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
11924         tree-ssa-loop-im.c.
11925         (get_lsm_tmp_name): Relocate and add suffix parameter.
11926         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
11927         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
11928         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
11929         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
11930         (get_estimated_loop_iterations): Factor out accessor from
11931         estimated_loop_iterations in tree-ssa-loop-niter.c.
11932         (get_max_loop_iterations): Factor out accessor from
11933         _max_loop_iterations in tree-ssa-niter.c.
11934         * loop-unroll.c (decide_unroll_constant_iterations,
11935         decide_unroll_runtime_iterations, decide_peel_simple,
11936         decide_unroll_stupid): Use new get_* accessors.
11938 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
11940         PR tree-optimization/20318
11941         * doc/extend.texi (returns_nonnull): New function attribute.
11942         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
11943         attribute.
11944         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
11945         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
11947 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
11949         PR middle-end/58570
11950         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
11951         false if both components are bitfields.
11953 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
11955         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
11956         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
11957         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
11958         * config/aarch64/aarch64.h
11959         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
11960         * config/aarch64/aarch64-simd-builtins.def
11961         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
11963 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
11965         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
11967 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
11969         * config/aarch64/arm_neon.h (vdiv_f64): Added.
11971 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
11973         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
11974         (vneg_f64): New intrinsic.
11975         (vneg_s8): Asm replaced with C.
11976         (vneg_s16): Likewise.
11977         (vneg_s32): Likewise.
11978         (vneg_s64): New intrinsic.
11979         (vnegq_f32): Asm replaced with C.
11980         (vnegq_f64): Likewise.
11981         (vnegq_s8): Likewise.
11982         (vnegq_s16): Likewise.
11983         (vnegq_s32): Likewise.
11984         (vnegq_s64): Likewise.
11986 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
11988         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
11990 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11992         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
11993         packed stack special handling.
11994         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
11995         back to fixed stack slots for FPRs saved due to stdarg.
11997 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11999         * config/s390/s390.c (s390_frame_info): Restructure function.
12001 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12003         * config/s390/s390.c (struct s390_frame_layout): New field
12004         gpr_save_slots.
12005         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
12006         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
12007         regs_ever_clobbered to char*.
12008         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
12009         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
12010         (s390_register_info): Enable FPR save slots.  Move/Copy some
12011         functionality into ...
12012         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
12013         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
12014         function.
12015         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
12016         not imply a stack frame.
12017         (s390_init_frame_layout): Remove variable clobbered_regs.
12018         (s390_update_register_info): Remove function.
12019         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
12020         cannot be used for register renaming.
12021         (s390_hard_regno_scratch_ok): New function.
12022         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
12023         (s390_initial_elimination_offset): Change offset calculation of
12024         the return address pointer.
12025         (save_gprs): Deal with only r6 being saved from the call-saved regs.
12026         (restore_gprs): Set frame related flag.
12027         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
12028         (s390_emit_prologue): Call s390_register_info instead of
12029         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
12030         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
12031         (s390_optimize_prologue): Call s390_optimize_register_info.
12032         Try to remove also FPR slot save/restore INSNs.  Remove frame
12033         related flags from restore INSNs.
12035 2013-10-08  DJ Delorie  <dj@redhat.com>
12037         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
12038         (movhi): Likewise.
12040         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
12041         avoid conflict with the MI use of %c.
12042         * config/rl78/rl78-real.md: change %c to %C throughout.
12043         * config/rl78/rl78-virt.md: Likewise.
12045 2013-10-08  Jan Hubicka  <jh@suse.cz>
12047         * config/i386/i386.c (ix86_option_override_internal): Switch
12048         to SSE math for -ffast-math when target ISA supports SSE2.
12050 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
12052         * tree-flow.h: Remove some prototypes.
12053         * tree.h: Remove some protypes, add a couple.
12054         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
12055         using_eh_for_cleanups_p): Add interface routines for front ends.
12056         * tree-eh.h: New file.  Add protoptyes.
12057         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
12058         (add_stmt_to_eh_lp_fn): Make static.
12059         (lower_try_finally): Use new using_eh_for_cleanups_p.
12060         * emit-rtl.c: Include tree-eh.h.
12061         * gimple.h: Include tree-eh.h.
12063 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
12065         PR tree-optimization/58480
12066         * tree-vrp.c (infer_nonnull_range): New function.
12067         (infer_value_range): Call infer_nonnull_range.
12069 2013-10-08  Dehao Chen  <dehao@google.com>
12071         PR tree-optimization/58619
12072         * tree-inline.c (copy_phis_for_bb): Combine location data
12073         only if non-null.
12075 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12077         PR target/58423
12078         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
12079         RTX_FRAME_RELATED_P on INSN.
12081 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12083         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
12084         (altivec_expand_vec_perm_const): Call it.
12086 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12088         * config/rs6000/vector.md (mov<mode>): Emit permuted move
12089         sequences for LE VSX loads and stores at expand time.
12090         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
12091         prototype.
12092         * config/rs6000/rs6000.c (rs6000_const_vec): New.
12093         (rs6000_gen_le_vsx_permute): New.
12094         (rs6000_gen_le_vsx_load): New.
12095         (rs6000_gen_le_vsx_store): New.
12096         (rs6000_gen_le_vsx_move): New.
12097         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
12098         (*vsx_le_perm_load_v4si): New.
12099         (*vsx_le_perm_load_v8hi): New.
12100         (*vsx_le_perm_load_v16qi): New.
12101         (*vsx_le_perm_store_v2di): New.
12102         (*vsx_le_perm_store_v4si): New.
12103         (*vsx_le_perm_store_v8hi): New.
12104         (*vsx_le_perm_store_v16qi): New.
12105         (*vsx_xxpermdi2_le_<mode>): New.
12106         (*vsx_xxpermdi4_le_<mode>): New.
12107         (*vsx_xxpermdi8_le_V8HI): New.
12108         (*vsx_xxpermdi16_le_V16QI): New.
12109         (*vsx_lxvd2x2_le_<mode>): New.
12110         (*vsx_lxvd2x4_le_<mode>): New.
12111         (*vsx_lxvd2x8_le_V8HI): New.
12112         (*vsx_lxvd2x16_le_V16QI): New.
12113         (*vsx_stxvd2x2_le_<mode>): New.
12114         (*vsx_stxvd2x4_le_<mode>): New.
12115         (*vsx_stxvd2x8_le_V8HI): New.
12116         (*vsx_stxvd2x16_le_V16QI): New.
12118 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
12120         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
12122 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12124         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
12125         loop to work also for 31bit ABI.
12126         Save the stack pointer for frame_size > 0.
12128 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12130         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
12131         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
12132         constraint letters from expanders.
12133         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
12134         retry count to general_operand.
12135         ("tabort"): Give operand 0 a mode.
12136         ("tabort_1"): Add mode and constraint letter for operand 0.
12137         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
12139 2013-10-04  Jeff Law  <law@redhat.com>
12141         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
12143         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
12144         out of ...
12145         (thread_across_edge): Here.  Call it.
12147 2013-10-04  Cary Coutant  <ccoutant@google.com>
12149         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
12150         discarding a location list expression (or a piece of one).
12152 2013-10-03  Jan Hubicka  <jh@suse.cz>
12154         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
12155         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
12156         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
12158 2013-10-03  Jan Hubicka  <jh@suse.cz>
12160         * config/i386/i386.c (ix86_option_override_internal): Do not enable
12161         accumulate-outgoing-args when producing unwind info.
12163 2013-10-03  Wei Mi  <wmi@google.com>
12165         * lra-constraints.c (insert_move_for_subreg): New function
12166         extracted from simplify_operand_subreg.
12167         (simplify_operand_subreg): Add reload for paradoxical subreg.
12169 2013-10-03  Rong Xu  <xur@google.com>
12171         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
12172         the candidate of builtin_expect such that we should fix the
12173         size/time estimation.
12174         (estimate_function_body_sizes): Do the acutally size/time fix-up
12175         for builtin_expect.
12177 2013-10-03  Rong Xu  <xur@google.com>
12179         * predict.c (tree_predict_by_opcode): Get the probability
12180         for builtin_expect from param builtin_expect_probability.
12181         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
12182         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
12183         * doc/invoke.texi: Add documentation for builtin-expect-probability.
12185 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
12187         PR c++/19476
12188         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
12189         * calls.c (alloca_call_p): Use get_callee_fndecl.
12190         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
12191         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
12192         Likewise.
12193         (vrp_visit_stmt): Remove duplicated code.
12195 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
12197         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
12198         ceildf2, btruncdf2, instead of vsx_* name.
12200         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
12201         iterators to only do V2DF and V4SF here.  Move the DF code to
12202         rs6000.md where it is combined with SF mode.  Replace <VSv> with
12203         just 'v' since only vector operations are handled with these insns
12204         after moving the DF support to rs6000.md.
12205         (vsx_sub<mode>3): Likewise.
12206         (vsx_mul<mode>3): Likewise.
12207         (vsx_div<mode>3): Likewise.
12208         (vsx_fre<mode>2): Likewise.
12209         (vsx_neg<mode>2): Likewise.
12210         (vsx_abs<mode>2): Likewise.
12211         (vsx_nabs<mode>2): Likewise.
12212         (vsx_smax<mode>3): Likewise.
12213         (vsx_smin<mode>3): Likewise.
12214         (vsx_sqrt<mode>2): Likewise.
12215         (vsx_rsqrte<mode>2): Likewise.
12216         (vsx_fms<mode>4): Likewise.
12217         (vsx_nfma<mode>4): Likewise.
12218         (vsx_copysign<mode>3): Likewise.
12219         (vsx_btrunc<mode>2): Likewise.
12220         (vsx_floor<mode>2): Likewise.
12221         (vsx_ceil<mode>2): Likewise.
12222         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
12223         (vsx_sminsf3): Likewise.
12224         (vsx_fmadf4): Likewise.
12225         (vsx_fmsdf4): Likewise.
12226         (vsx_nfmadf4): Likewise.
12227         (vsx_nfmsdf4): Likewise.
12228         (vsx_cmpdf_internal1): Likewise.
12230         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
12231         simpler to select whether a target has SPE or traditional floating
12232         point support in iterators.
12233         (TARGET_DF_SPE): Likewise.
12234         (TARGET_SF_FPR): Likewise.
12235         (TARGET_DF_FPR): Likewise.
12236         (TARGET_SF_INSN): Macros to say whether floating point support
12237         exists for a given operation for expanders.
12238         (TARGET_DF_INSN): Likewise.
12240         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
12241         combining of SF/DF mode operations, using both traditional and VSX
12242         registers.
12243         (Fvsx): Likewise.
12244         (Ff): Likewise.
12245         (Fv): Likewise.
12246         (Fs): Likewise.
12247         (Ffre): Likewise.
12248         (FFRE): Likewise.
12249         (abs<mode>2): Combine SF/DF modes using traditional floating point
12250         instructions.  Add support for using the upper DF registers with
12251         VSX support, and SF registers with power8-vector support.  Update
12252         expanders for operations supported by both the SPE and traditional
12253         floating point units.
12254         (abs<mode>2_fpr): Likewise.
12255         (nabs<mode>2): Likewise.
12256         (nabs<mode>2_fpr): Likewise.
12257         (neg<mode>2): Likewise.
12258         (neg<mode>2_fpr): Likewise.
12259         (add<mode>3): Likewise.
12260         (add<mode>3_fpr): Likewise.
12261         (sub<mode>3): Likewise.
12262         (sub<mode>3_fpr): Likewise.
12263         (mul<mode>3): Likewise.
12264         (mul<mode>3_fpr): Likewise.
12265         (div<mode>3): Likewise.
12266         (div<mode>3_fpr): Likewise.
12267         (sqrt<mode>3): Likewise.
12268         (sqrt<mode>3_fpr): Likewise.
12269         (fre<Fs>): Likewise.
12270         (rsqrt<mode>2): Likewise.
12271         (cmp<mode>_fpr): Likewise.
12272         (smax<mode>3): Likewise.
12273         (smin<mode>3): Likewise.
12274         (smax<mode>3_vsx): Likewise.
12275         (smin<mode>3_vsx): Likewise.
12276         (negsf2): Delete SF operations that are merged with DF.
12277         (abssf2): Likewise.
12278         (addsf3): Likewise.
12279         (subsf3): Likewise.
12280         (mulsf3): Likewise.
12281         (divsf3): Likewise.
12282         (fres): Likewise.
12283         (fmasf4_fpr): Likewise.
12284         (fmssf4_fpr): Likewise.
12285         (nfmasf4_fpr): Likewise.
12286         (nfmssf4_fpr): Likewise.
12287         (sqrtsf2): Likewise.
12288         (rsqrtsf_internal1): Likewise.
12289         (smaxsf3): Likewise.
12290         (sminsf3): Likewise.
12291         (cmpsf_internal1): Likewise.
12292         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
12293         (negdf2): Delete DF operations that are merged with SF.
12294         (absdf2): Likewise.
12295         (nabsdf2): Likewise.
12296         (adddf3): Likewise.
12297         (subdf3): Likewise.
12298         (muldf3): Likewise.
12299         (divdf3): Likewise.
12300         (fred): Likewise.
12301         (rsqrtdf_internal1): Likewise.
12302         (fmadf4_fpr): Likewise.
12303         (fmsdf4_fpr): Likewise.
12304         (nfmadf4_fpr): Likewise.
12305         (nfmsdf4_fpr): Likewise.
12306         (sqrtdf2): Likewise.
12307         (smaxdf3): Likewise.
12308         (smindf3): Likewise.
12309         (cmpdf_internal1): Likewise.
12310         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
12311         (btrunc<mode>2): Delete separate expander, and combine with the
12312         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
12313         (btrunc<mode>2_fpr): Likewise.
12314         (ceil<mode>2): Likewise.
12315         (ceil<mode>2_fpr): Likewise.
12316         (floor<mode>2): Likewise.
12317         (floor<mode>2_fpr): Likewise.
12318         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
12319         Add support for using the upper registers with VSX and
12320         power8-vector.  Move insns to be closer to the define_expands. On
12321         VSX systems, prefer the traditional form of FMA over the VSX
12322         version, since the traditional form allows the target not to
12323         overlap with the inputs.
12324         (fms<mode>4_fpr): Likewise.
12325         (nfma<mode>4_fpr): Likewise.
12326         (nfms<mode>4_fpr): Likewise.
12328 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12329             Richard Earnshaw  <richard.earnshaw@arm.com>
12331         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
12332         (struct mult_cost_table): Likewise.
12333         (struct mem_cost_table): Likewise.
12334         (struct fp_cost_table): Likewise.
12335         (struct vector_cost_table): Likewise.
12336         (cpu_cost_table): Likewise.
12337         * config/arm/arm.opt (mold-rts-costs): New option.
12338         (mnew-generic-costs): Likewise.
12339         * config/arm/arm.c (generic_extra_costs): New table.
12340         (cortexa15_extra_costs): Likewise.
12341         (arm_slowmul_tune): Use NULL as new costs.
12342         (arm_fastmul_tune): Likewise.
12343         (arm_strongarm_tune): Likewise.
12344         (arm_xscale_tune): Likewise.
12345         (arm_9e_tune): Likewise.
12346         (arm_v6t2_tune): Likewise.
12347         (arm_cortex_a5_tune): Likewise.
12348         (arm_cortex_a9_tune): Likewise.
12349         (arm_v6m_tune): Likewise.
12350         (arm_fa726te_tune): Likewise.
12351         (arm_cortex_a15_tune): Use cortex15_extra_costs.
12352         (arm_cortex_tune): Use generict_extra_costs.
12353         (shifter_op_p): New function.
12354         (arm_unspec_cost): Likewise.
12355         (LIBCALL_COST): Define.
12356         (arm_new_rtx_costs): New function.
12357         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
12358         table is available. Use old costs otherwise unless mnew-generic-costs
12359         is specified.
12360         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
12361         (cpu_cost_table): Declare.
12363 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12365         PR target/58460
12366         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
12367         (*subs_mul_imm_<mode>)
12368         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
12369         (*sub_<shift>_<mode>)
12370         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
12371         Remove k constraint.
12373 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
12375         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
12376         code.
12377         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
12379 2013-10-02  Teresa Johnson  <tejohnson@google.com>
12381         * predict.c (probably_never_executed): New function.
12382         (probably_never_executed_bb_p): Invoke probably_never_executed.
12383         (probably_never_executed_edge_p): Ditto.
12384         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
12385         Treat profile insanities conservatively.
12387 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
12389         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
12391 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
12393         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
12394         use it.  Use smaller increase for scratch.  Don't increase reject
12395         for early clobber scratch.
12396         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
12397         setting eliminated regs except setting fp from hfp.
12398         (lra_eliminate): Check lra_insn_recog_data on NULL.
12400 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
12402         PR target/58587
12403         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
12404         setting -mvsx-timode by default until the underlying problem is fixed.
12405         (RS6000_CPU, power7 defaults): Likewise.
12407 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12409         * config/x-linux (host-linux.o): Remove header dependencies.
12410         Use $(COMPILE) and $(POSTCOMPILE).
12411         * config/t-linux-android (linux-android.o): Ditto.
12413 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12415         * Makefile.in (expmed.o-warn): Remove.
12417 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12419         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
12420         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
12422 2013-10-02  Teresa Johnson  <tejohnson@google.com>
12424         * dojump.c (do_jump_1): Divide probability between
12425         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
12427 2013-10-02  Tom Tromey  <tromey@redhat.com>
12429         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
12431 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12433         * tree-flow.h: Remove some prototypes.
12434         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
12435         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
12436         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
12437         mark_virtual_phi_result_for_renaming): Relocate here.
12438         * tree-into-ssa.h: Add prototypes.
12439         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
12440         single_pred_before_succ_order.
12441         (blocks_in_phiopt_order): Rename and move to cfganal.c.
12442         (nonfreeing_call_p) Move to gimple.c.
12443         * cfganal.c (single_pred_before_succ_order): Move and renamed from
12444         tree-ssa-phiopt.c.
12445         * basic-block.h (single_pred_before_succ_order): Add prototype.
12446         * gimple.c (nonfreeing_call_p): Relocate here.
12447         * gimple.h: Add prototype.
12448         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
12449         * tree-ssa-dom.h: New file.  Relocate prototypes here.
12450         * tree-ssa.h: Include tree-ssa-dom.h.
12452 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
12454         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
12455         Use $(COMPILE) and $(POSTCOMPILE).
12457         * config/alpha/x-alpha (driver-alpha.o): Ditto.
12459 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12461         * tree-flow.h: Remove some prototypes.
12462         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
12463         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12464         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
12465         propagate_tree_value*): Move from here to...
12466         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
12467         propagate_tree_value*): Relocate here.
12468         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12469         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
12470         * gimple-fold.c: Remove gimple-fold.h from include list.
12471         * tree-vrp.c: Remove gimple-fold.h from include list.
12472         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
12473         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
12474         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
12475         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
12476         * sese.c: Add tree-ssa-propagate.h to include list.
12478 2013-10-02  Richard Biener  <rguenther@suse.de>
12480         * tree-loop-distribution.c: Include tree-vectorizer.h for
12481         find_loop_location.
12482         (enum partition_kind): Remove PKIND_REDUCTION.
12483         (struct partition_s): Remove has_writes member, add reduction_p member.
12484         (partition_alloc): Adjust.
12485         (partition_builtin_p): Likewise.
12486         (partition_has_writes): Remove.
12487         (partition_reduction_p): New function.
12488         (partition_merge_into): Likewise.
12489         (generate_code_for_partition): Commonize builtin partition
12490         handling tail.
12491         (rdg_cannot_recompute_vertex_p): Remove.
12492         (already_processed_vertex_p): Likewise.
12493         (rdg_flag_vertex): Do not set has_writes.
12494         (classify_partition): Adjust.
12495         (rdg_build_partitions): Do not set has_writes, treat all
12496         partitions as useful.
12497         (distribute_loop): Record number of library calls generated.  Adjust.
12498         (tree_loop_distribution): Report number of loops and library
12499         calls generated as opt-info.
12501 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12503         * tree-flow.h: Include new .h files.  Move prototypes.
12504         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
12505         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
12506         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
12507         * tree-pretty-print.h: Add prototypes from tree-flow.h.
12508         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
12509         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
12510         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
12511         * tree.h (get_ref_base_and_extent): Move prototype out.
12512         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
12513         tree-dfa.h.
12514         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
12515         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
12516         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
12517         * tree-scalar-evolution.c: Include tree.h.
12518         * sese.c: Include tree.h.
12519         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
12520         * dwarf2out.c: Include tree-dfa.h.
12521         * tree-chrec.c: Include tree.h.
12522         * tree-data-ref.c: Include tree.h.
12524 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
12526         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
12527         Fix whitespace.
12529 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12531         * config/t-sol2 (sol2-c.o): Remove header dependencies.
12532         Use $(COMPILE) and $(POSTCOMPILE).
12533         (sol2-cxx.o): Likewise.
12534         (sol2-stubs.o): Likewise.
12535         (sol2.o): Likewise.
12536         * config/x-solaris (host-solaris.o): Likewise.
12538         * config/sparc/t-sparc (sparc.o): Remove.
12539         (sparc-c.o): Remove header dependencies.
12540         Use $(COMPILE) and $(POSTCOMPILE).
12541         * config/sparc/x-sparc: Likewise.
12543 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
12545         * config/arc/arc-opts.h: Add 2013 to Copyright years.
12546         * config/arc/arc700.md: Likewise.
12547         * config/arc/arc-modes.def: Likewise.
12548         * config/arc/arc-simd.h: Likewise.
12549         * config/arc/t-arc-uClibc: Likewise.
12550         * config/arc/t-arc-newlib: Likewise.
12552 2013-10-02  Renlin Li  <renlin.li@arm.com>
12554         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12555         plus_constant.
12556         (aarch64_expand_epilogue): Likewise.
12558 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12559             Yufeng Zhang  <yufeng.zhang@arm.com>
12561         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
12562         declaration.
12563         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
12564         'base_in' represent a conversion and legal_cast_p_1 holds; set
12565         'base_in' with the returned value from get_unwidened.
12567 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12569         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
12570         plus_constant is not used.
12572 2013-10-01  Wei Mi  <wmi@google.com>
12574         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
12575         * config/i386/i386.md: Add define_peephole2 to
12576         break partial reg stall for cvtss2sd/cvtsd2ss.
12578 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12580         * config/arc/arc.c (pass_arc_ifcvt::clone):
12581         Update for ctxt_ -> m_ctxt change.
12583 2013-10-01  Jeff Law  <law@redhat.com>
12585         * tree-ssa-threadupdate.c (struct redirection_data): Delete
12586         outgoing_edge and intermediate_edge fields.  Instead store the path.
12587         (redirection_data::hash): Hash on the last edge's destination index.
12588         (redirection_data::equal): Check the entire thread path.
12589         (lookup_redirectio_data): Corresponding changes.
12590         (create_edge_and_update_destination_phis): Likewise.
12591         (thread_single_edge): Likewise.
12593 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12594             Diego Novillo <dnovillo@google.com>
12596         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
12597         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
12598         (vld32wh_insn, vld32wl_insn): Delete commented-out old
12599         versions of these patterns.
12601         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
12602         (__builtin_arc_aligned): Likewise.
12604         * config/arc/arc.md: Expand adc_0 comment stating the intended
12605         purpose and why it isn't ready.
12606         Replace commented out call_value_via_label_mixed with a
12607         plain comment about bl_s.
12609         * config/arc/arc.c (stdio.h): Don't include directly.
12610         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
12611         Remove if (1) condition.
12612         (arc_encode_section_info): Fix comment.
12614 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12616         * config/arc/arc.c (arc_conditional_register_usage):
12617         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
12618         Also set reg_alloc_order for DMA config regs.
12620 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12621             Jeremy Bennett  <jeremy.bennett@embecosm.com>
12623         * doc/install.texi (--with-cpu): Mention ARC.
12624         (arc-*-elf32): New paragraph.
12625         (arc-linux-uclibc): Likewise.
12626         * doc/md.texi (Machine Constraints): Add ARC part.
12627         * doc/invoke.texi: (menu): Add ARC Options.
12628         (Machine Dependent Options) <ARC Options>: Add synopsis.
12629         (node ARC Options): Add.
12630         * doc/extend.texi (long_call / short_call attribute): Add ARC.
12631         (ARC Built-in Functions): New section defining
12632         generic ARC built-in functions.
12633         (ARC SIMD Built-in Functions): New section defining SIMD specific
12634         built-in functions.
12635         (Declaring Attributes of Functions): Extended
12636         description of short_call and long_call attributes for ARC and
12637         added index entries.
12639 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
12640             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
12641             Joern Rennecke  <joern.rennecke@embecosm.com>
12642             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
12643             Brendan Kehoe  <brendan@zen.org>
12644             Michael Eager  <eager@eagercon.com>
12645             Simon Cook  <simon.cook@embecosm.com>
12646             Jeremy Bennett  <jeremy.bennett@embecosm.com>
12648         * config/arc, common/config/arc: New directories.
12650 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12651             Brendan Kehoe  <brendan@zen.org>
12652             Simon Cook  <simon.cook@embecosm.com>
12654         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
12656 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
12658         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
12659         * tree-ssa-coalesce.h: New. Move prototype to here.
12660         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
12661         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
12662         (gimple_can_coalesce_p): Move to...
12663         * gimple.c (gimple_can_coalesce_p): Here.
12665 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
12667         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
12668         (dump_decl_set): Move to gimple.c.
12669         * gimple.h: Don't include tree-ssa-operands.h.
12670         (dump_decl_set): Add prototype.
12671         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12672         Move to gimple-ssa.h.
12673         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
12674         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
12675         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
12676         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
12677         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
12678         than PHI_ARG_DEF.
12679         (dump_decl_set): Relocate here.
12680         * gimple-ssa.h: New file.
12681         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12682         Relocate from gimple.h.
12683         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
12684         * tree-ssa-operands.c (swap_ssa_operands): Rename from
12685         swap_tree_operands and remove non-ssa path.
12686         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
12687         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
12688         swap_ssa_operands.
12689         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
12690         vect_is_simple_reduction_1): Use swap_ssa_operands.
12691         * tree-flow.h: Move various prototypes to tree-phinodes.h.
12692         (enum need_phi_state): Move to tree-into-ssa.c.
12693         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12694         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
12695         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
12696         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
12697         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12698         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12699         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12700         num_imm_uses): Move to ssa-iterators.h.
12701         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
12702         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
12703         tree-phinodes.h.
12704         (op_iter_done, op_iter_next_def, op_iter_next_tree,
12705         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
12706         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
12707         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
12708         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
12709         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
12710         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
12711         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
12712         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
12713         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
12714         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
12715         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
12716         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
12717         (set_phi_nodes): Move to tree-phinodes.h.
12718         * tree-ssa-operands.h (enum ssa_op_iter_type,
12719         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
12720         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
12721         (dump_decl_set): Remove prototype.
12722         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
12723         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
12724         (set_phi_nodes): Relocate from tree-flow-inline.h.
12725         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
12726         tree-flow-inline.h
12727         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
12728         include list.  Temporarily add gimple.h to include list.
12729         * ssa-iterators.h: New file.
12730         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12731         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
12732         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
12733         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
12734         Relocate from tree-ssa-operands.h.
12735         (delink_imm_use, link_imm_use_to_list, link_imm_use,
12736         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12737         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12738         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12739         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
12740         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
12741         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
12742         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
12743         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
12744         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
12745         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
12746         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
12747         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
12748         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
12749         Relocate from tree-flow-inline.h.
12750         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
12752 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
12754         * aarch64-simd.md
12755         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
12756         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
12757         Insert '\t' to output template.
12758         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
12759         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
12760         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
12761         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
12763 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
12765         * doc/install.texi (Host/target specific installation notes for GCC):
12766         Put @anchor before @heading.
12767         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
12768         Use @email for email addresses.
12770 2013-10-01  Jeff Law  <law@redhat.com>
12772         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
12773         a vec.  Only delete the path if we create one without successfully
12774         registering a jump thread.
12775         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
12776         as a pointer.
12777         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
12778         (paths): New vector of jump threading paths.
12779         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
12780         (THREAD_PATH): New accessor macro for the entire thread path.
12781         (lookup_redirection_data): Get intermediate and final outgoing edge
12782         from the thread path.
12783         (create_edge_and_update_destination_phis): Copy the threading path.
12784         (ssa_fix_duplicate_block_edges): Get edges and block types from the
12785         jump threading path.
12786         (ssa_redirect_edges): Get edges and block types from the jump threading
12787         path.  Free the path vector.
12788         (thread_block): Get edges from the jump threading path.  Look at the
12789         entire path to see if we thread to a loop exit.  If we cancel a jump
12790         thread request, then free the path vector.
12791         (thread_single_edge): Get edges and block types from the jump threading
12792         path.  Free the path vector.
12793         (thread_through_loop_header): Get edges and block types from the jump
12794         threading path.  Free the path vector.
12795         (mark_threaded_blocks): Iterate over the vector of paths and store
12796         the path on the appropriate edge.  Get edges and block types from the
12797         jump threading path.
12798         (mark_threaded_blocks): Get edges and block types from the jump
12799         threading path.  Free the path vector.
12800         (thread_through_all_blocks): Use the vector of paths rather than
12801         a vector of 3-edge sets.
12802         (register_jump_thread): Accept pointer to a path vector rather
12803         than the path vector itself.  Store the path vector for later use.
12804         Simplify.
12806 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
12807             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12809         PR target/58574
12810         * config/s390/s390.c (s390_split_branches): Modify check for table
12811         jump insns.
12812         (s390_chunkify_start): Rearrange table jump insn check in order to
12813         deal with compare and branch insns correctly.
12815 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
12817         PR target/58578
12818         Revert
12819         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
12820         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
12821         define_insn_and_split.
12822         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
12823         (shiftsi3_compare): New pattern.
12824         (rrx): New pattern.
12825         * config/arm/unspecs.md (UNSPEC_RRX): New.
12827 2013-10-01  Alan Modra  <amodra@gmail.com>
12829         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
12830         casing inout operands.
12832 2013-10-01  Richard Biener  <rguenther@suse.de>
12834         PR tree-optimization/58553
12835         * tree-loop-distribution.c (struct partition_s): Add niter member.
12836         (classify_partition): Populate niter member for the partition
12837         and properly identify whether the relevant store happens before
12838         or after the loop exit.
12839         (generate_memset_builtin): Use niter member from the partition.
12840         (generate_memcpy_builtin): Likewise.
12842 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
12844         * vec.h (vec_prefix, vec): Prefix member names with "m_".
12845         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
12847 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
12849         * basic-block.h (edge_list): Prefix member names with "m_".
12850         * context.h (context): Likewise.
12851         * domwalk.h (dom_walker): Likewise.
12852         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
12853         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
12854         * hash-table.h (hash_table): Likewise.
12855         * machmode.h (bit_field_mode_iterator): Likewise.
12856         * pass_manager.h (pass_list): Likewise.
12857         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
12858         * tree-pass.h (pass_data): Likewise.
12859         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
12860         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
12861         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
12862         * asan.c (pass_data_asan): Update accordingly.
12863         * cfganal.c (control_dependences::find_control_dependence): Likewise.
12864         (control_dependences::control_dependences): Likewise.
12865         (control_dependences::~control_dependences): Likewise.
12866         (control_dependences::~control_dependences): Likewise.
12867         (control_dependences::get_edges_dependent_on): Likewise.
12868         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
12869         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
12870         * context.c (gcc::context::context): Likewise.
12871         * cprop.c (pass_rtl_cprop::clone): Likewise.
12872         * domwalk.c (dom_walker::walk): Likewise.
12873         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
12874         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
12875         * mode-switching.c (pass_mode_switching::clone): Likewise.
12876         * passes.c (opt_pass::opt_pass): Likewise.
12877         (pass_manager::pass_manager): Likewise.
12878         * predict.c (pass_strip_predict_hints::clone): Likewise.
12879         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
12880         (pass_split_all_insns::clone): Likewise.
12881         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
12882         Likewise.
12883         (bit_field_mode_iterator::next_mode): Likewise.
12884         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
12885         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
12886         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
12887         * tree-complex.c (pass_lower_complex::clone): Likewise.
12888         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
12889         * tree-object-size.c (pass_object_sizes::clone): Likewise.
12890         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
12891         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
12892         (pass_fold_builtins::clone): Likewise.
12893         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
12894         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
12895         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
12896         (pass_cd_dce::clone): Likewise.
12897         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
12898         (pass_phi_only_cprop::clone): Likewise.
12899         * tree-ssa-dse.c (pass_dse::clone): Likewise.
12900         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
12901         * tree-ssa-loop.c (pass_lim::clone): Likewise.
12902         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
12903         * tree-ssa-pre.c (pass_fre::clone): Likewise.
12904         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
12905         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
12906         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
12907         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
12908         * tree-vrp.c (pass_vrp::clone): Likewise.
12909         * tsan.c (pass_tsan::clone): Likewise.
12911 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
12913         PR middle-end/58564
12914         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
12915         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
12917         PR middle-end/58564
12918         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
12919         optimization, punt if sign_bit_p looked through any zero extension.
12921 2013-09-30  Teresa Johnson  <tejohnson@google.com>
12923         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
12924         Update redirected out edge count in joiner case.
12925         (ssa_redirect_edges): Common the joiner and non-joiner cases
12926         so that joiner case gets profile updates.
12928 2013-09-30  Richard Biener  <rguenther@suse.de>
12930         PR tree-optimization/58554
12931         * tree-loop-distribution.c (classify_partition): Require
12932         unconditionally executed stores for memcpy and memset recognition.
12933         (tree_loop_distribution): Calculate dominance info.
12935 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
12937         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
12938         (NO_PROFILE_COUNTERS): Likewise.
12939         (PROFILE_HOOK): Likewise.
12940         (FUNCTION_PROFILER): Likewise.
12941         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
12943 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
12945         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
12946         calls and defines in TARGET_MACHO conditional.
12947         (load_macho_picbase_di): Likewise.
12948         (reload_macho_picbase): Likewise.
12949         (reload_macho_picbase_si): Likewise.
12950         (reload_macho_picbase_di): Likewise.
12951         (nonlocal_goto_receiver): Likewise.
12953 2013-09-30  Nick Clifton  <nickc@redhat.com>
12955         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
12956         that use the MSP430X ISA.
12957         (msp430_option_override): Scan -mmcu command line option for any
12958         MCU name that supports the MSP430X ISA.
12959         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
12960         -mmcu options which enable the MSP430X ISA.
12962 2013-09-30  Richard Biener  <rguenther@suse.de>
12964         PR middle-end/58532
12965         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
12966         before looking for setjmp-like calls.
12968 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
12970         PR target/10901
12971         * config/darwin-protos.h (machopic_get_function_picbase): New.
12972         * config/darwin.c (machopic_get_function_picbase): New.
12973         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
12974         label for a new func.  (load_macho_picbase_di): Likewise.
12975         (reload_macho_picbase): New expand.
12976         (reload_macho_picbase_si): New insn.
12977         (reload_macho_picbase_di): New insn.
12978         (nonlocal_goto_receiver): New define and split.
12979         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
12980         (unspecv enum): Add UNSPECV_NLGR.
12982 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
12984         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
12985         that altivec registers are correctly sized on Darwin.
12987 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
12989         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
12990         darwin-driver.o): Use COMPILE and POSTCOMPILE.
12991         * config/x-darwin (host-darwin.o): Likewise.
12992         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
12993         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
12994         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
12996 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
12998         * doc/invoke.texi: Fix usage of @tie{} command.
13000 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
13002         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
13004 2013-09-28  Jan Hubicka  <jh@suse.cz>
13006         * config/i386/x86-tune.def: Add documentation for each of the options;
13007         add whitespace.
13009 2013-09-28  Jan Hubicka  <jh@suse.cz>
13011         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
13012         generic.
13013         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
13014         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
13015         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
13016         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
13017         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
13019 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
13021         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
13022         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
13023         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
13024         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
13025         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
13026         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
13027         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
13028         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
13029         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
13030         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
13031         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
13032         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
13033         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
13034         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
13035         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
13036         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
13037         gimple.h, godump.c, graphite-clast-to-gimple.c,
13038         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
13039         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
13040         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
13041         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
13042         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
13043         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
13044         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
13045         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
13046         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
13047         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
13048         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
13049         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
13050         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
13051         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
13052         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
13053         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
13054         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
13055         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
13056         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
13057         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
13058         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
13059         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
13060         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
13061         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
13062         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13063         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13064         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
13065         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
13066         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13067         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13068         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13069         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
13070         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
13071         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
13072         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
13073         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
13074         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
13075         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
13076         whitespace before "(".
13078 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
13080         * expr.h (extract_bit_field): Remove packedp parameter.
13081         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
13082         from forward declaration.
13083         (store_split_bit_field): Remove packedp arg from calls to
13084         extract_fixed_bit_field.
13085         (extract_bit_field_1): Remove packedp parameter and packedp
13086         argument from recursive calls and calls to extract_fixed_bit_field.
13087         (extract_bit_field): Remove packedp parameter and corresponding
13088         arg to extract_bit_field_1.
13089         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
13090         to issue warnings.
13091         (extract_split_bit_field): Remove packedp arg from call to
13092         extract_fixed_bit_field.
13093         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
13094         (copy_blkmode_from_reg): Likewise.
13095         (copy_blkmode_to_reg): Likewise.
13096         (read_complex_part): Likewise.
13097         (store_field): Likewise.
13098         (expand_expr_real_1): Likewise.
13099         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
13100         to extract_bit_field.
13101         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
13102         call to extract_bit_field.
13103         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
13104         call to extract_bit_field.
13105         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
13106         and special packedp behavior from -fstrict-volatile-bitfields
13107         documentation.
13109 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
13111         * lra-eliminations.c (init_elim_table): Guard value_p.
13113 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
13115         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
13116         DFmode, DImode, and SFmode in the upper VSX registers based on the
13117         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
13118         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
13119         of the VSX register handling.
13121         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
13122         (f32_sv): Likewise.
13123         (zero_extendsidi2_lfiwzx): Add support for loading into the
13124         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
13125         only do VSX memory options on Altivec registers.
13126         (extendsidi2_lfiwax): Likewise.
13127         (extendsfdf2_fpr): Likewise.
13128         (mov<mode>_hardfloat, SF/SD modes): Likewise.
13129         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
13130         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
13131         (movdi_internal64): Likewise.
13133 2013-09-27  Xinliang David Li  <davidxl@google.com>
13135         * opts.c (finish_options): Adjust parameters
13136         according to vect cost model.
13137         (common_handle_option): Set dynamic vect cost
13138         model for FDO.
13139         targhooks.c (default_add_stmt_cost): Compute stmt cost
13140         unconditionally.
13141         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13142         Use helper function.
13143         * tree-vectorizer.h (unlimited_cost_model): New function.
13144         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
13145         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
13146         function.
13147         (vect_enhance_data_refs_alignment): Ditto.
13148         * flag-types.h: New enum.
13149         * common/config/i386/i386-common.c (ix86_option_init_struct):
13150         No need to initialize vect_cost_model flag.
13151         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
13152         unconditionally.
13154 2013-09-27  Diego Novillo  <dnovillo@google.com>
13156         * gimple.h (enum ssa_mode): Remove.
13158 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
13160         * cfgloop.h (number_of_loops): Fix typo in check for null.
13162 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
13164         PR middle-end/58551
13165         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
13166         are children of outermost saved_cfun's loop, and set it up to
13167         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
13168         if loop != loop0 and SESE region contains bbs that belong to loop0.
13170 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
13172         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
13173         (binary_scale_code_p, get_base_term, get_index_term): New functions.
13174         (set_address_segment, set_address_base, set_address_index)
13175         (set_address_disp): Accept the argument unconditionally.
13176         (baseness): Remove must_be_base_p and must_be_index_p checks.
13177         (decompose_normal_address): Classify as much as possible in the
13178         main loop.
13180 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
13182         * cse.c (count_reg_usage): Handle INT_LIST.
13183         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
13184         * reginfo.c (reg_scan_mark_refs): Likewise.
13185         * reload1.c (eliminate_regs_1): Likewise.
13187 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
13189         PR middle-end/58547
13190         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
13191         signed.
13193 2013-09-27  Richard Biener  <rguenther@suse.de>
13195         PR tree-optimization/58459
13196         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
13197         restriction not propagating into loops.
13199 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
13201         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
13202         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
13203         * doc/tree-ssa.texi (Walking use-def chains): Delete.
13205 2013-09-26  Richard Biener  <rguenther@suse.de>
13207         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
13209 2013-09-26  Richard Biener  <rguenther@suse.de>
13211         * alias.h (component_uses_parent_alias_set): Rename to ...
13212         (component_uses_parent_alias_set_from): ... this.
13213         * alias.c (component_uses_parent_alias_set): Rename to ...
13214         (component_uses_parent_alias_set_from): ... this and return
13215         the desired parent.
13216         (reference_alias_ptr_type_1): Use the result from
13217         component_uses_parent_alias_set_from instead of stripping
13218         components one at a time.
13219         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
13221 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
13223         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
13224         Move prototypes to...
13225         * tree-ssa-ter.h: New File.  Move prototypes here.
13226         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
13227         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
13228         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
13229         from is_replaceable_p.
13230         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
13231         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
13232         (process_replaceable): Use ter_is_replaceable_p.
13233         (find_replaceable_in_bb): Use ter_is_replaceable_p.
13234         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
13235         newly refactored ssa_is_replaceable_p.
13236         * cfgexpand.c: Include tree-outof-ssa.h.
13237         * ssaexpand.h: Delete.
13239 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
13241         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
13242         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
13243         tree-ssa.c
13244         (create_gimple_tmp): Delete.
13245         (get_expr_type, build_assign, build_type_cast): Move to...
13246         * gimple-builder.c: New File.
13247         (get_expr_type): Relocate from gimple.c.
13248         (build_assign, build_type_cast): Change to only create ssanames.
13249         * gimple.h: Move prototypes to...
13250         * gimple-builder.h: New File. Here.
13251         * tree-ssa.h: And here.
13252         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
13253         count_uses_and_derefs): Relocate from gimple.c.
13254         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
13255         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
13256         * tree-ssa-math-opts (execute_cse_reciprocals): Use
13257         gimple_replace_ssa_lhs.
13258         * asan.c: Include gimple-builder.h.
13259         * Makefile.in: Add gimple-builder.o.
13261 2013-09-26  Richard Biener  <rguenther@suse.de>
13263         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
13264         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
13265         (loe_visit_block): Use gcc_checking_assert.
13266         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
13267         gimple_assign_ssa_name_copy_p.
13268         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
13269         change.
13271 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
13273         * config/rs6000/t-rs6000 (rs6000.o): Remove.
13274         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
13276 2013-09-26  Richard Biener  <rguenther@suse.de>
13278         PR tree-optimization/58539
13279         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
13280         the fact that debug statements are not taking part in loop-closed
13281         SSA construction.
13283 2013-09-26  Nick Clifton  <nickc@redhat.com>
13285         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
13286         time warning message.
13287         (msp430_print_operand_raw): Delete unused letter parameter.
13288         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13289         (msp430_print_operand_address): New function.
13290         (msp430_print_operand): Move address printing code from here to
13291         new function.
13292         * config/msp430/msp430.md (movsipsi2): Add comment in generated
13293         assembler.
13294         (zero_extendpsisi2): Likewise.
13295         (extendpsisi2): New pattern.
13296         (andneghi3): New pattern.
13298 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
13300         * config/aarch64/aarch64.opt (mlra): New option.
13301         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
13302         (TARGET_LRA_P): Define.
13304 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
13306         * expr.c (expand_assignment): Remove obsolete comment.
13308 2013-09-25  Jeff Law  <law@redhat.com>
13310         * tree-flow.h (thread_through_all_blocks): Prototype moved into
13311         tree-ssa-threadupdate.h.
13312         (register_jump_thread): Similarly.
13313         * tree-ssa-threadupdate.h: New header file.
13314         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
13315         * tree-vrp.c: Likewise.
13316         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
13317         (thread_around_empty_blocks): Change type of path vector argument to
13318         an edge,type pair from just an edge.  Initialize both elements when
13319         appending to a jump threading path.  Tweak references to elements
13320         appropriately.
13321         (thread_across_edge): Similarly.  Release memory for the elements
13322         as needed.
13323         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
13324         (dump_jump_thread_path): New function broken out from
13325         register_jump_thread.
13326         (register_jump_thread): Use dump_jump_thread_path.  Change type of
13327         path vector entries.  Search the path for NULL edges and dump
13328         the path if one is found.  Tweak the conversion of path to 3-edge
13329         form to use the block copy type information embedded in the path.
13331 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
13333         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
13335 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
13336             Vladimir Makarov  <vmakarov@redhat.com>
13338         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
13339         from the least significant bit.
13340         (strip_address_mutations): Add bitfield operations handling.
13341         (must_be_index_p): Add shifting and rotate operations handling.
13342         (set_address_base): Use must_be_base_p predicate.
13343         (set_address_index): Use must_be_index_p predicate.
13345 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13346             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13347             Sergey Lega  <sergey.s.lega@intel.com>
13348             Anna Tikhonova  <anna.tikhonova@intel.com>
13349             Ilya Tocar  <ilya.tocar@intel.com>
13350             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13351             Ilya Verbin  <ilya.verbin@intel.com>
13352             Kirill Yukhin  <kirill.yukhin@intel.com>
13353             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13355         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
13356         Use new names.
13357         (ix86_expand_vector_move_misalign): Support new unaligned load and
13358         stores and use new names.
13359         (CODE_FOR_sse2_storedqu): Rename to ...
13360         (CODE_FOR_sse2_storedquv16qi): ... this.
13361         (CODE_FOR_sse2_loaddqu): Rename to ...
13362         (CODE_FOR_sse2_loaddquv16qi): ... this.
13363         (CODE_FOR_avx_loaddqu256): Rename to ...
13364         (CODE_FOR_avx_loaddquv32qi): ... this.
13365         (CODE_FOR_avx_storedqu256): Rename to ...
13366         (CODE_FOR_avx_storedquv32qi): ... this.
13367         * config/i386/i386.md (fpint_logic): New.
13368         * config/i386/sse.md (VMOVE): Extend for AVX512.
13369         (VF): Ditto.
13370         (VF_128_256): New.
13371         (VF_512): Ditto.
13372         (VI_UNALIGNED_LOADSTORE): Ditto.
13373         (sse2_avx_avx512f): Ditto.
13374         (sse2_avx2): Extend for AVX512.
13375         (sse4_1_avx2): Ditto.
13376         (avx2_avx512f): New.
13377         (sse): Extend for AVX512.
13378         (sse2): Ditto.
13379         (sse4_1): Ditto.
13380         (avxsizesuffix): Ditto.
13381         (sseintvecmode): Ditto.
13382         (ssePSmode): Ditto.
13383         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
13384         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
13385         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13386         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
13387         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
13388         (<sse2_avx_avx512f>_storedqu<mode): ... this.
13389         (<sse>_movnt<mode>): Replace constraint "x" with "v".
13390         (STORENT_MODE): Extend for AVX512.
13391         (*absneg<mode>2): Replace constraint "x" with "v".
13392         (*mul<mode>3): Ditto.
13393         (*ieee_smin<mode>3): Ditto.
13394         (*ieee_smax<mode>3): Ditto.
13395         (avx_cmp<mode>3): Replace VF with VF_128_256.
13396         (*<sse>_maskcmp<mode>3_comm): Ditto.
13397         (<sse>_maskcmp<mode>3): Ditto.
13398         (<sse>_andnot<mode>3): Extend for AVX512.
13399         (<code><mode>3, anylogic): Replace VF with VF_128_256.
13400         (<code><mode>3, fpint_logic): New.
13401         (*<code><mode>3): Extend for AVX512.
13402         (avx512flogicsuff): New.
13403         (avx512f_<logic><mode>): Ditto.
13404         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
13405         VF_128_256.
13406         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
13407         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
13408         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
13409         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
13410         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
13411         (xop_vpermil2<mode>3): Ditto.
13412         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
13413         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
13414         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
13415         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
13417 2013-09-25  Tom Tromey  <tromey@redhat.com>
13419         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
13420         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
13421         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
13422         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
13423         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
13424         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
13425         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
13426         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
13427         (GRAPHITE_HTAB_H): Remove.
13429 2013-09-25  Tom Tromey  <tromey@redhat.com>
13431         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
13433 2013-09-25  Tom Tromey  <tromey@redhat.com>
13435         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
13437 2013-09-25  Tom Tromey  <tromey@redhat.com>
13439         * config/i386/t-i386 (i386.o): Remove.
13440         (i386-c.o): Use COMPILE and POSTCOMPILE.
13442 2013-09-25  Tom Tromey  <tromey@redhat.com>
13444         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
13446 2013-09-25  Tom Tromey  <tromey@redhat.com>
13448         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
13449         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
13450         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
13451         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
13452         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
13453         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
13454         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
13455         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
13456         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
13457         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
13458         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
13459         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
13460         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
13461         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
13462         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
13463         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
13464         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
13465         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
13466         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
13467         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
13468         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
13469         (tree-ssa-pre.o, tree-ssa-sccvn.o)
13470         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
13471         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
13472         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
13473         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
13474         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
13475         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
13476         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
13477         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
13478         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
13479         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
13480         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
13481         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
13482         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
13483         (graphite-clast-to-gimple.o, graphite-dependences.o)
13484         (graphite-interchange.o, graphite-poly.o)
13485         (graphite-scop-detection.o, graphite-sese-to-poly.o)
13486         (graphite-optimize-isl.o, tree-vect-loop.o)
13487         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
13488         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
13489         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
13490         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
13491         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
13492         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
13493         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
13494         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
13495         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
13496         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
13497         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
13498         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
13499         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
13500         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
13501         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
13502         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
13503         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
13504         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
13505         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
13506         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
13507         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
13508         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
13509         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
13510         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
13511         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
13512         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
13513         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
13514         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
13515         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
13516         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
13517         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
13518         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
13519         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
13520         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
13521         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
13522         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
13523         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
13524         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
13525         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
13526         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
13527         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
13528         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
13529         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
13530         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
13531         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
13532         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
13533         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
13534         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
13535         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
13536         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
13537         (gcov-dump.o): Remove.
13538         (default-c.o): Use COMPILE and POSTCOMPILE.
13539         (CFLAGS-gcc.o): New variable.
13540         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
13542 2013-09-25  Tom Tromey  <tromey@redhat.com>
13544         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
13545         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
13546         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
13547         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
13548         (c-family/c-pragma.o, c-family/c-pretty-print.o)
13549         (c-family/c-semantics.o, c-family/c-ada-spec.o)
13550         (c-family/array-notation-common.o, c-family/stub-objc.o)
13551         (c-family/c-ubsan.o): Remove.
13553 2013-09-25  Tom Tromey  <tromey@redhat.com>
13555         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
13557 2013-09-25  Tom Tromey  <tromey@redhat.com>
13559         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
13560         to add -DENABLE_SHARED_LIBGCC.
13561         (gcc.o): Don't use subshell.
13563 2013-09-25  Tom Tromey  <tromey@redhat.com>
13565         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
13566         * configure.ac: Don't invoke AM_PROG_CC_C_O.
13567         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
13568         * configure, config.in: Rebuild.
13570 2013-09-25  Tom Tromey  <tromey@redhat.com>
13572         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
13573         (COMPILE, POSTCOMPILE): New variables.
13574         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
13575         (DEPFILES): New variable.
13576         Include ".Po" files.
13577         * configure.ac: Add checks for dependency checking.
13578         * configure, aclocal.m4: Regenerate.
13580 2013-09-25  Tom Tromey  <tromey@redhat.com>
13582         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
13583         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
13585 2013-09-25  Tom Tromey  <tromey@redhat.com>
13587         * Makefile.in (generated_files): Add options.h,
13588         target-hooks-def.h, insn-opinit.h,
13589         common/common-target-hooks-def.h, pass-instances.def,
13590         c-family/c-target-hooks-def.h.
13592 2013-09-25  Jeff Law  <law@redhat.com>
13594         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
13595         than foo[foo.length () - 1] to access last member in a vec.
13596         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
13598 2013-09-25  Richard Biener  <rguenther@suse.de>
13600         PR middle-end/58521
13601         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
13603 2013-09-25  Jan Hubicka  <jh@suse.cz>
13605         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
13606         test.
13608 2013-09-25  Marek Polacek  <polacek@redhat.com>
13610         PR sanitizer/58420
13611         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
13612         when determining the type name.
13614 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
13616         * config/sh/sh.md: Fix formatting.
13618 2013-09-24  Xinliang David Li  <davidxl@google.com>
13620         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
13621         max peel iterations parameter.
13622         * param.def: New parameter.
13623         * doc/invoke.texi: Document New parameter.
13625 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
13627         * gimple-pretty-print.c: Various whitespace tweaks.
13628         * tree-core.h: Likewise.
13629         * tree-pretty-print.c: Likewise.
13630         * tree-ssa-alias.c: Likewise.
13631         * tree-ssa-copy.c: Likewise.
13632         * tree-ssanames.c: Likewise.
13633         * tree-ssanames.h: Likewise.
13634         * tree-vrp.c: Likewise.
13636 2013-09-24  Alan Modra  <amodra@gmail.com>
13638         PR middle-end/57134
13639         PR middle-end/57586
13640         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
13641         for output operands that disallow regs.  Don't use EXPAND_WRITE on
13642         inout operands.
13644 2013-09-24  Richard Biener  <rguenther@suse.de>
13646         PR middle-end/58513
13647         * tree.c (reference_alias_ptr_type): Move ...
13648         * alias.c (reference_alias_ptr_type): ... here and implement
13649         in terms of the new reference_alias_ptr_type_1.
13650         (ref_all_alias_ptr_type_p): New helper.
13651         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
13652         use ref_all_alias_ptr_type_p.
13653         (get_deref_alias_set): Add flag_strict_aliasing check here.
13654         (reference_alias_ptr_type_1): New function, split out from ...
13655         (get_alias_set): ... here.
13656         (alias_ptr_types_compatible_p): New function.
13657         * alias.h (reference_alias_ptr_type): Declare.
13658         (alias_ptr_types_compatible_p): Likewise.
13659         * tree.h (reference_alias_ptr_type): Remove.
13660         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
13661         to compare MEM_REF alias types.
13663 2013-09-24  Richard Biener  <rguenther@suse.de>
13665         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
13667 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13669         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
13670         reload helper function arrays into a single array reg_addr.
13671         (reload_fpr_gpr): Likewise.
13672         (reload_gpr_vsx): Likewise.
13673         (reload_vsx_gpr): Likewise.
13674         (struct rs6000_reg_addr): Likewise.
13675         (reg_addr): Likewise.
13676         (rs6000_debug_reg_global): Change rs6000_vector_reload,
13677         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
13678         (rs6000_init_hard_regno_mode_ok): Likewise.
13679         (rs6000_secondary_reload_direct_move): Likewise.
13680         (rs6000_secondary_reload): Likewise.
13682         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
13683         constraints: wu, ww, and wy.  Repurpose wv constraint added during
13684         power8 changes.  Put wg constraint in alphabetical order.
13686         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
13687         for future work to add ISA 2.07 VSX single precision support.
13688         (-mvsx-scalar-double): Change default from -1 to 1, update
13689         documentation comment.
13690         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
13691         (-mupper-regs-df): New debug switch to control whether DF values
13692         can go in the traditional Altivec registers.
13693         (-mupper-regs-sf): New debug switch to control whether SF values
13694         can go in the traditional Altivec registers.
13696         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
13697         and wy constraints.
13698         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
13699         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
13700         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
13701         (rs6000_debug_legitimate_address_p): Print if we are running
13702         before, during, or after reload.
13703         (rs6000_secondary_reload): Add a comment.
13704         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
13706         * config/rs6000/constraints.md (wa constraint): Sort w<x>
13707         constraints.  Update documentation string.
13708         (wd constraint): Likewise.
13709         (wf constraint): Likewise.
13710         (wg constraint): Likewise.
13711         (wn constraint): Likewise.
13712         (ws constraint): Likewise.
13713         (wt constraint): Likewise.
13714         (wx constraint): Likewise.
13715         (wz constraint): Likewise.
13716         (wu constraint): New constraint for ISA 2.07 SFmode scalar
13717         instructions.
13718         (ww constraint): Likewise.
13719         (wy constraint): Likewise.
13720         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
13721         in the previous submissions.
13722         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
13724 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
13726         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
13727         (REG_BR_PROB): Say that the probability is stored in an int_list.
13728         * reg-notes.def: Update commentary to mention INT_LIST.
13729         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
13730         (INT_LIST): New rtx.
13731         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
13732         * rtlanal.c (int_reg_note_p): New function.
13733         (alloc_reg_note): Assert that the note does not have an int argument.
13734         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
13735         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
13736         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
13737         rather than an INSN_LIST.  Handle INT_LIST.
13738         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
13739         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
13740         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
13741         Manipulate them as ints rather than rtxes.
13742         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
13743         * regmove.c (copy_src_to_dest): Likewise.
13744         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
13746         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
13747         into the cases that need it.
13748         * config/arm/arm.c (arm_unwind_emit): Likewise.
13750         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
13751         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
13752         * loop-doloop.c (add_test, doloop_modify): Likewise.
13753         * loop-unswitch.c (compare_and_jump_seq): Likewise.
13754         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
13755         * predict.c (combine_predictions_for_insn): Likewise.
13756         * print-rtl.c (print_rtx): Handle INT_LIST.
13757         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
13758         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
13759         * config/arm/arm.c (emit_unlikely_jump): Likewise.
13760         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
13761         (ix86_split_fp_branch, predict_jump): Likewise.
13762         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
13763         * config/sh/sh.c (expand_cbranchsi4): Likewise.
13764         * config/spu/spu.c (ea_load_store_inline): Likewise.
13766         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
13767         value of a REG_BR_PROB note.
13768         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13769         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
13770         * emit-rtl.c (try_split): Likewise.
13771         * predict.c (br_prob_note_reliable_p): Likewise.
13772         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
13773         * reorg.c (mostly_true_jump): Likewise.
13774         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
13775         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
13776         * config/i386/i386.c (ix86_print_operand): Likewise.
13777         * config/ia64/ia64.c (ia64_print_operand): Likewise.
13778         * config/mmix/mmix.c (mmix_print_operand): Likewise.
13779         * config/rs6000/rs6000.c (output_cbranch): Likewise.
13780         * config/s390/s390.c (s390_expand_tbegin): Likewise.
13781         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
13782         * config/sparc/sparc.c (output_cbranch): Likewise.
13783         * config/spu/spu.c (get_branch_target): Likewise.
13784         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
13785         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
13787 2013-09-23  Jan Hubicka  <jh@suse.cz>
13789         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
13790         for ipa-devirt.
13791         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
13792         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
13793         of external calls
13794         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
13795         (gimple_fold_call): Dump inconsistent devirtualizations; add
13796         sanity check for type based devirtualizations.
13797         * ipa-prop.c: Include ipa-utils.h
13798         (ipa_intraprocedural_devirtualization): Add sanity check.
13799         (try_make_edge_direct_virtual_call): Likewise.
13801 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
13803         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
13804         assignment statements.
13806 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
13808         * gimple-pretty-print.c (dump_ssaname_info): New function.
13809         (dump_gimple_phi): Call it.
13810         (pp_gimple_stmt_1): Likewise.
13811         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
13812         (range_info_def): Declare.
13813         * tree-pretty-print.c (pp_double_int): New function.
13814         (dump_generic_node): Call it.
13815         * tree-pretty-print.h (pp_double_int): Declare.
13816         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
13817         * tree-ssanames.h (range_info_def): New structure.
13818         (value_range_type): Move definition here.
13819         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
13820         Declare.
13821         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
13822         initialization.
13823         (set_range_info): New function.
13824         (get_range_info): Likewise.
13825         (duplicate_ssa_name_range_info): Likewise.
13826         (duplicate_ssa_name_fn): Check pointer type and call
13827         duplicate_ssa_name_range_info.
13828         * tree-ssa-copy.c (fini_copy_prop): Likewise.
13829         * tree-vrp.c (value_range_type): Remove definition, now in
13830         tree-ssanames.h.
13831         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
13832         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
13833         (SSA_NAME_RANGE_INFO): New macro.
13835 2013-09-23  Richard Biener  <rguenther@suse.de>
13837         PR tree-optimization/58464
13838         * tree-ssa-pre.c (phi_trans_lookup): Remove.
13839         (phi_trans_add): Change to add conditionally on being not present.
13840         (phi_translate_1): Remove recursion detection here.
13841         (phi_translate): Pre-seed the cache with NULL to catch
13842         recursion here in a more generic way.
13843         (bitmap_find_leader): Adjust comment.
13844         (get_representative_for): Dump value-numbers.
13845         (create_expression_by_pieces): Likewise.
13846         (insert_into_preds_of_block): Likewise.
13848 2013-09-23  Christian Bruel  <christian.bruel@st.com>
13850         PR target/58475
13851         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
13852         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
13854 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
13856         Revert r202780:
13857         2013-09-20  Renlin Li  <renlin.li@arm.com>
13859         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13860         plus_constant.
13861         (aarch64_expand_epilogue): Likewise.
13862         (aarch64_legitimize_reload_address): Likewise.
13864 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
13866         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
13867         NULL_TREE before pushing them onto the vector.  Likewise for labels.
13869 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
13871         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
13872         comparison operators when -fno-trapping-math is in effect.
13873         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
13874         comparison operators in TFmode and assert that unsupported operators
13875         cannot reach here.
13876         (ia64_print_operand): Likewise.
13878 2013-09-21  Jan Hubicka  <jh@suse.cz>
13880         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
13881         (sse_typeless_stores): Enable for core
13882         (sse_load0_by_pxor): Likewise.
13883         (four_jump_limit): Disable for core.
13884         (pad_returns): Likewise.
13885         (avoid_vector_decode): Likewise.
13886         (fuse_cmp_and_branch): Enable for cores.
13887         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
13889 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
13891         PR middle-end/56791
13892         * config/pa/pa.c (pa_option_override): Disable auto increment and
13893         decrement instructions until reload is completed.
13895         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
13896         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
13897         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13899 2013-09-20  DJ Delorie  <dj@redhat.com>
13900             Nick Clifton  <nickc@redhat.com>
13902         * config/rl78/rl78.c: Various whitespace and comment tweaks.
13903         (need_to_save): Save bank 0 on interrupts.
13904         (characterize_address): Strip far address wrappers.
13905         (rl78_as_legitimate_address): Likewise.
13906         (transcode_memory_rtx): Likewise.
13907         (rl78_peep_movhi_p): Disable this peephole after devirt.
13908         (rl78_propogate_register_origins): Forget all origins when a
13909         CLOBBER is seen.
13910         * config/rl78/rl78-virt.md: Various whitespace tweaks.
13911         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
13912         peephole2's.
13913         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
13914         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
13915         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
13916         relocating.
13917         * config/rl78/constraints.md: Various whitespace and paren tweaks.
13919 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
13921         * config/pa/pa.md: In "scc" insn patterns, change output template to
13922         handle const0_rtx in reg_or_0_operand operands.
13924 2013-09-20  Martin Husemann  <martin@NetBSD.org>
13926         PR target/56875
13927         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
13928         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
13930 2013-09-20  Richard Biener  <rguenther@suse.de>
13932         PR middle-end/58484
13933         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
13934         remembering SSA name version and block index.
13935         (new_scev_info_str): Adjust.
13936         (hash_scev_info): Likewise.  Also hash the block index.
13937         (eq_scev_info): Adjust.
13938         (find_var_scev_info): Likewise.
13939         (struct instantiate_cache_entry): Remove.
13940         (struct instantiate_cache_type): Use a htab to map name, block
13941         to chrec.
13942         (instantiate_cache_type::~instantiate_cache_type): Adjust.
13943         (get_instantiated_value_entry): Likewise.
13944         (hash_idx_scev_info, eq_idx_scev_info): New functions.
13945         (instantiate_scev_name): Adjust.
13947 2013-09-20  Jeff Law  <law@redhat.com>
13949         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
13951 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
13953         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
13954         Call aarch64_simd_expand_args to update op[argc].
13956 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
13958         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
13959         plugin argument.
13961 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
13963         * gengtype.c (file_rules): Added rule for *.cc files.
13964         (get_output_file_with_visibility): Give fatal message when no
13965         rules found.
13967 2013-09-20  Renlin Li  <renlin.li@arm.com>
13969         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
13970         (aarch64_expand_epilogue): Likewise.
13971         (aarch64_legitimize_reload_address): Likewise.
13973 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13975         PR middle-end/57748
13976         * expr.c (expand_assignment): Remove misalignp code path.
13978 2013-09-20  Marek Polacek  <polacek@redhat.com>
13980         PR sanitizer/58413
13981         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
13982         TYPE_PRECISION.  Add asserts.
13984 2013-09-20  Richard Biener  <rguenther@suse.de>
13986         PR tree-optimization/58453
13987         * tree-loop-distribution.c (distribute_loop): Apply the cost
13988         model for -ftree-loop-distribute-patterns, too.
13990 2013-09-20  Richard Biener  <rguenther@suse.de>
13992         PR middle-end/58473
13993         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
13994         make type comparison less strict.
13996 2013-09-20  Alan Modra  <amodra@gmail.com>
13998         * configure: Regenerate.
13999         * aclocal.m4: Regenerate.
14001 2013-09-20  Marek Polacek  <polacek@redhat.com>
14003         PR other/58467
14004         * doc/extend.texi: Document that attribute used is meant to be used
14005         on variables with static storage duration.
14007 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
14009         PR tree-optimization/58472
14010         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
14011         simd_lane_access set inv_p = false.
14012         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
14013         the simduid magic VAR_DECL.
14015 2013-09-19  Jan Hubicka  <jh@suse.cz>
14017         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
14019 2013-09-17  Jeff Law  <law@redhat.com>
14021         * tree-ssa-dom.c (record_temporary_equivalences): New function
14022         split out of dom_opt_dom_walker::after_dom_children.
14023         (dom_opt_dom_walker::thread_across_edge): Move common code
14024         in here from dom_opt_dom_walker::after_dom_children.
14025         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
14027 2013-09-19  Jan Hubicka  <jh@suse.cz>
14029         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
14030         (TARGET_GENERIC): Use PROCESOR_GENERIC
14031         (enum processor_type): Unify generic32 and 64.
14032         * i386.md (cpu): Likewise.
14033         * x86-tune.def (use_leave): Enable for generic32.
14034         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
14035         * athlon.md: Change generic64 to generic in all occurences.
14036         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
14037         (ix86_target_macros_internal): Likewise.
14038         * driver-i386.c (host_detect_local_cpu): Likewise.
14039         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
14040         to ..
14041         (generic_memcpy, generic_memset, generic_cost): This one.
14042         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
14043         (m_GENERIC32, m_GENERIC64): Remove.
14044         (m_GENERIC): Turn into one flag.
14045         (processor_target): Unify generic tunnings.
14046         (ix86_option_override_internal): Replace generic32/64 by generic.
14047         (ix86_issue_rate): Likewise.
14048         (ix86_adjust_cost): Likewise.
14050 2013-09-19  Jan Hubicka  <jh@suse.cz>
14052         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
14053         of speculative flag.
14055 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
14057         * omp-low.c (expand_omp_sections): Always pass len - 1 to
14058         GOMP_sections_start, even if !exit_reachable.
14060 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14062         * lra-constraints.c (need_for_all_save_p): Use macro
14063         HARD_REGNO_CALL_PART_CLOBBERED.
14064         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
14065         set up pseudo conflict hard regs.
14067 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
14069         PR target/58452
14070         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
14071         operands.
14073 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
14075         PR rtl-optimization/58438
14076         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
14077         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
14078         from previous subpasses.
14080 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
14082         * arm.c (arm_get_frame_offsets): Validate architecture supports
14083         LDRD/STRD before accepting the tuning preference.
14084         (arm_expand_prologue): Likewise.
14085         (arm_expand_epilogue): Likewise.
14087 2013-09-18  Richard Biener  <rguenther@suse.de>
14089         PR tree-optimization/58417
14090         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
14091         have chrecs with symbols defined in the loop as operands.
14092         (chrec_fold_multiply): Likewise.
14093         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
14094         parameters before folding binary operations.
14095         (struct instantiate_cache_entry_hasher): Remove.
14096         (struct instantiate_cache_type): Use a pointer-map.
14097         (instantiate_cache_type::instantiate_cache_type): New function.
14098         (instantiate_cache_type::get): Likewise.
14099         (instantiate_cache_type::set): Likewise.
14100         (instantiate_cache_type::~instantiate_cache_type): Adjust.
14101         (get_instantiated_value_entry): Likewise.
14102         (global_cache): New global.
14103         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
14104         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
14105         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
14106         (instantiate_scev_name): Adjust.
14107         (instantiate_scev): Construct global instead of local cache.
14108         (resolve_mixers): Likewise.
14110 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
14111             Paolo Carlini  <paolo.carlini@oracle.com>
14113         PR c++/58458
14114         * doc/implement-cxx.texi: Fix references to the C++ standards.
14116 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
14118         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
14119         * tree-vect-data-refs.c (vect_analyze_data_refs): For
14120         simd_lane_access drs, update also DR_ALIGNED_TO.
14122 2013-09-18  Marek Polacek  <polacek@redhat.com>
14124         PR sanitizer/58411
14125         * doc/extend.texi: Document no_sanitize_undefined attribute.
14126         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
14127         no_sanitize_undefined attribute.
14129 2013-09-18  Nick Clifton  <nickc@redhat.com>
14131         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
14132         (ASM_DECLARE_FUNCTION_NAME): Define.
14134 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
14136         * compare-elim.c (find_comparison_dom_walker): New class
14137         (find_comparisons_in_bb): Rename to
14138         find_comparison_dom_walker::before_dom_children
14139         (find_comparisons): Adjust
14140         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
14141         adjust.
14142         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
14143         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
14144         (init_walk_dominator_tree): Remove declaration.
14145         (fini_walk_dominator_tree): Remove declaration.
14146         * fwprop.c (single_def_use_dom_walker): New class
14147         (single_def_use_enter_block): Convert to
14148         single_def_use_dom_walker::before_dom_children.
14149         (single_def_use_leave_block): Convert to
14150         single_def_use_dom_walker::after_dom_children.
14151         (build_single_def_use_links): Adjust.
14152         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
14153         class.
14154         (find_candidates_in_block): Convert to
14155         find_candidates_dom_walker::before_dom_children.
14156         (execute_strength_reduction): Adjust.
14157         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
14158         (sese_dom_walker): New class.
14159         (sese_dom_walker::sese_dom_walker): New constructor.
14160         (sese_dom_walker::~sese_dom_walker): New destructor.
14161         (build_sese_conditions_before): Convert to
14162         sese_dom_walker::before_dom_children.
14163         (build_sese_conditions_after): Convert to
14164         sese_dom_walker::after_dom_children.
14165         (build_poly_scop): Adjust
14166         * tree-into-ssa.c (rewrite_dom_walker): New class
14167         (rewrite_enter_block): Convert to
14168         rewrite_dom_walker::before_dom_children.
14169         (rewrite_leave_block): Convert to
14170         rewrite_dom_walker::after_dom_children.
14171         (rewrite_update_dom_walker): New class.
14172         (rewrite_update_enter_block): Convert to
14173         rewrite_update_dom_walker::before_dom_children.
14174         (rewrite_update_leave_block): Convert to
14175         rewrite_update_dom_walker::after_dom_children.
14176         (rewrite_blocks, rewrite_into_ssa): Adjust.
14177         (mark_def_dom_walker): New class.
14178         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
14179         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
14180         (mark_def_sites_blocks): Convert to
14181         mark_def_dom_walker::before_dom_children.
14182         (mark_def_site_blocks): Remove.
14183         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
14184         (tree_ssa_dominator_optimize): Adjust.
14185         (dom_thread_across_edge): Convert to method
14186         dom_opt_dom_walker::thread_across_edge.
14187         (dom_opt_enter_block): Convert to member function
14188         dom_opt_dom_walker::before_dom_children.
14189         (dom_opt_leave_block): Convert to member function
14190         dom_opt_dom_walker::after_dom_children.
14191         * tree-ssa-dse.c (dse_dom_walker): New class.
14192         (dse_enter_block): Convert to member function
14193         dse_dom_walker::before_dom_children.
14194         (tree_ssa_dse): Adjust.
14195         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
14196         (determine_invariantness_stmt): Convert to method
14197         invariantness_dom_walker::before_dom_children.
14198         (determine_invariantness): Remove
14199         (move_computations_dom_walker): New class.
14200         (move_computations_stmt): Convert to method
14201         move_computations_dom_walker::before_dom_children.
14202         (move_computations, tree_ssa_lim): Adjust.
14203         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
14204         (nt_init_block): Convert to method
14205         notrappping_dom_walker::before_dom_children.
14206         (nt_fini_block): Convert to method
14207         method nontrapping_dom_walker::after_dom_children.
14208         (get_non_trapping): Adjust.
14209         * tree-ssa-pre.c (eliminate_dom_walker): New class.
14210         (eliminate_bb): Convert to method
14211         eliminate_dom_walker::before_dom_children.
14212         (eliminate_leave_block): Convert to method
14213         eliminate_dom_walker::after_dom_children.
14214         (eliminate): Adjust.
14215         * tree-ssa-strlen.c (strlen_dom_walker): New class.
14216         (strlen_enter_block): Convert to method
14217         strlen_dom_walker::before_dom_children.
14218         (strlen_leave_block): Convert to method
14219         method strlen_dom_walker::after_dom_children.
14220         (tree_ssa_strlen): Adjust.
14221         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
14222         (tree_ssa_uncprop): Adjust.
14223         (uncprop_leave_block): Convert to method
14224         uncprop_dom_walker::after_dom_children.
14225         (uncprop_leave_block): Convert to method
14226         uncprop_dom_walker::before_dom_children.
14228 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
14230         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
14231         branch in same basic block.  Check both src and dest of the move insn.
14233 2013-09-17  Nick Clifton  <nickc@redhat.com>
14235         * config/rl78/rl78-real.md (bf): New pattern.
14236         (bt): New pattern.
14237         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
14238         (rl78_print_operand): Do not put a # before a %B.
14239         * config/rl78/rl78.opt: Tweak doc strings.
14241 2013-09-17  DJ Delorie  <dj@redhat.com>
14243         * config/rl78/constraints.md (Wcv): Allow up to $r31.
14244         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
14245         (rl78_option_override): Likewise, if -mallregs.
14246         (is_virtual_register): Likewise.
14247         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
14248         (REGNO_OK_FOR_BASE_P): Likewise.
14249         * config/rl78/rl78.opt (-mallregs): New.
14251 2013-09-17  Nick Clifton  <nickc@redhat.com>
14253         * config/rl78/rl78.c (need_to_save): Change return type to bool.
14254         For interrupt functions: save all call clobbered registers if the
14255         interrupt handler is not a leaf function.
14256         (rl78_expand_prologue): Always recompute the frame information.
14257         For interrupt functions: only select bank 0 if one of the bank 0
14258         registers is going to be psuhed.
14260 2013-09-17  DJ Delorie  <dj@redhat.com>
14262         * config/rl78/constraints.md: For each W* constraint, rename to C*
14263         and create a W* constraint that checks for an optional ES: prefix
14264         pattern also.
14265         * config/rl78/rl78.md (UNS_ES_ADDR): New.
14266         (es_addr): New.  Used to wrap far addresses.
14267         * config/rl78/rl78-protos.h (rl78_es_addr): New.
14268         (rl78_es_base): New.
14269         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
14270         wrapped far addresses.
14271         (rl78_print_operand_1): Unwrap far addresses before processing.
14272         (rl78_lo16): Wrap far addresses in unspecs.
14273         (rl78_es_addr): New.
14274         (rl78_es_base): New.
14275         (insn_ok_now): Check for not-yet-wrapped far addresses.
14276         (transcode_memory_rtx): Properly re-wrap far addresses.
14278 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14280         * config/sparc/t-rtems: Add leon3 multilibs.
14282 2013-09-17  Cong Hou  <congh@google.com>
14284         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
14285         when checking the dot production pattern. The type of rhs operand
14286         of multiply is now checked correctly.
14288 2013-09-17  Jeff Law  <law@redhat.com>
14290         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14291         edge implied equivalences into successor phis.
14292         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
14293         here from tree-ssa-threadedge.c.
14294         (mark_threaded_blocks): When threading through a joiner, if both
14295         successors of the joiner's clone reach the same block, verify the
14296         PHI arguments are equal.  If not, cancel the jump threading request.
14297         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
14298         tree-ssa-threadupdate.c
14299         (thread_across_edge): Don't check PHI argument equality when
14300         threading through joiner block here.
14302 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
14304         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
14305         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
14306         (warn_uninit, warn_uninitialized_vars,
14307         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14308         Move to tree-ssa-uninit.c.
14309         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
14310         (has_undefined_value_p): New.  Pass dependant parts of
14311         ssa_undefined_value_p.
14312         (uninit_undefined_value_p): Use has_undefined_value_p.
14313         (warn_uninit, warn_uninitialized_vars,
14314         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
14315         Move from tree-ssa.c.
14316         * tree-ssa.h: Adjust prototypes.
14318 2013-09-17  Jan Hubicka  <jh@suse.cz>
14320         PR middle-end/58332
14321         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
14322         * ipa-inline.c (can_inline_edge_p): Do not downgrade
14323         FUNCTION_NOT_OPTIMIZED.
14324         * ipa-inline-analysis.c (compute_inline_parameters): Function
14325         not optimized is not inlinable unless it is alwaysinline.
14326         (inline_analyze_function): Force calls in not optimized
14327         function not inlinable.
14329 2013-09-17  Jan Hubicka  <jh@suse.cz>
14331         PR middle-end/58329
14332         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
14333         to return NULL.
14334         * ipa.c (function_and_variable_visibility): Likewise.
14335         * ipa-profile.c (ipa_profile): Likewise.
14337 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
14339         PR ipa/58398
14340         * cgraph.c (cgraph_function_body_availability): Check for ifunc
14341         attribute, and don't inline the resolver in this case.
14343 2013-09-17  Teresa Johnson  <tejohnson@google.com>
14345         * coverage.c (get_coverage_counts): Add missing newline.
14347 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14349         PR tree-optimization/58088
14350         * fold-const.c (mask_with_trailing_zeros): New function.
14351         (fold_binary_loc): Make sure we don't recurse infinitely
14352         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
14353         Use mask_with_trailing_zeros where appropriate.
14355 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
14357         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
14358         of 'prev' var to get better distance estimation.
14360 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
14362         * tree-inline.h (struct copy_body_data): Add transform_parameter.
14363         * tree-inline.c (is_parameter_of): New predicate.
14364         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
14365         a parameter has been remapped.
14366         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
14367         (optimize_inline_calls): Initialize transform_parameter.
14368         (copy_gimple_seq_and_replace_locals): Likewise.
14369         (tree_function_versioning): Likewise.
14370         (maybe_inline_call_in_expr): Likewise.
14372 2013-09-17  Nick Clifton  <nickc@redhat.com>
14374         * config/msp430/msp430-protos.h: Add prototypes for new functions.
14375         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
14376         interrupt handlers.
14377         (is_attr_func): New function.
14378         (msp430_is_interrupt_func): New function.
14379         (is_naked_func): New function.
14380         (is_reentrant_func): New function.
14381         (is_critical_func): New function.
14382         (msp430_start_function): Add annotations for function attributes.
14383         (msp430_attr): New function.
14384         (msp430_attribute_table): New.
14385         (msp430_function_section): New function.
14386         (TARGET_ASM_FUNCTION_SECTION): Define.
14387         (msp430_builtin): New enum.
14388         (msp430_init_builtins): New function.
14389         (msp430_builtin_devl): New function.
14390         (msp430_expand_builtin): New function.
14391         (TARGET_INIT_BUILTINS): Define.
14392         (TARGET_EXPAND_BUILTINS): Define.
14393         (TARGET_BUILTIN_DECL): Define.
14394         (msp430_expand_prologue): Add support for naked, interrupt,
14395         critical and reentrant functions.
14396         (msp430_expand_epilogue): Likewise.
14397         (msp430_print_operand): Handle 'O' character.
14398         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
14399         NO_TRAMPOLINES.
14400         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
14401         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
14402         (pushm): Use a 'n' rather than an 'i' constraint.
14403         (msp_return): Add generation of the interrupt return instruction.
14404         (disable_interrupts): New pattern.
14405         (enable_interrupts): New pattern.
14406         (push_intr_state): New pattern.
14407         (pop_intr_state): New pattern.
14408         (bic_SR): New pattern.
14409         (bis_SR): New pattern.
14410         * doc/extend.texi: Document MSP430 function attributes and builtin
14411         functions.
14413 2013-09-17  Richard Biener  <rguenther@suse.de>
14415         PR tree-optimization/58432
14416         * tree-loop-distribution.c (tree_loop_distribution): Also
14417         scan PHIs for outside loop uses and seed a partition from them.
14419 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
14421         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
14422         (restructure_reference): Call backtrace_base_for_ref.
14424 2013-09-17  Alan Modra  <amodra@gmail.com>
14426         PR target/57589
14427         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
14428         patch.
14430 2013-09-16  DJ Delorie  <dj@redhat.com>
14432         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
14433         vregs location for RL78/G10.
14434         (rl78_expand_prologue): Avoid SEL on G10.
14435         (rl78_expand_epilogue): Likewise.
14436         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
14437         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
14438         __RL78_G10__ when appropriate.
14439         (ASM_SPEC): Pass -mg10 along to the assembler.
14440         * config/rl78/rl78.md (sel_rb): Disable for G10.
14441         * config/rl78/rl78.opt: Add -mg10 option.
14442         * config/rl78/t-rl78: Add -mg10 multilib.
14444 2013-09-16  Xinliang David Li  <davidxl@google.com>
14446         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
14447         * omp-low.c (omp_max_vf): Ditto.
14448         (expand_omp_simd): Ditto.
14449         * tree-vectorizer.c (vectorize_loops): Ditto.
14450         (gate_vect_slp): Ditto.
14451         (gate_increase_alignment): Ditto.
14452         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
14453         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
14454         (gate_tree_vectorize): Name change.
14455         (tree_vectorize): Ditto.
14456         (pass_vectorize::gate): Call new function.
14457         (pass_vectorize::execute): Ditto.
14458         * opts.c: O3 default setting change.
14459         (finish_options): Check new flag.
14460         * doc/invoke.texi: Document new flags.
14461         * common.opt: New flags.
14463 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
14465         * doc/tm.texi.in (Cond Exec Macros): Remove node.
14466         (Condition Code): Don't reference it.
14467         * doc/tm.texi: Regenerate.
14469 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
14471         PR middle-end/58418
14472         * lra-constraints.c (undo_optional_reloads): Consider all optional
14473         reload even if it did not get a hard reg.
14475 2013-09-16  Teresa Johnson  <tejohnson@google.com>
14477         * dumpfile.c (dump_loc): Remove newline emission.
14478         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
14479         emission to dump_printf_loc calls where missing.
14480         (vect_mark_for_runtime_alias_test): Ditto.
14481         (vect_analyze_data_ref_dependence): Ditto.
14482         (vect_analyze_data_ref_dependences): Ditto.
14483         (vect_slp_analyze_data_ref_dependence): Ditto.
14484         (vect_slp_analyze_data_ref_dependences): Ditto.
14485         (vect_compute_data_ref_alignment): Ditto.
14486         (vect_update_misalignment_for_peel): Ditto.
14487         (vect_verify_datarefs_alignment): Ditto.
14488         (vector_alignment_reachable_p): Ditto.
14489         (vect_get_data_access_cost): Ditto.
14490         (vect_enhance_data_refs_alignment): Ditto.
14491         (vect_find_same_alignment_drs): Ditto.
14492         (vect_analyze_data_refs_alignment): Ditto.
14493         (vect_analyze_group_access): Ditto.
14494         (vect_analyze_data_ref_access): Ditto.
14495         (vect_analyze_data_ref_accesses): Ditto.
14496         (vect_prune_runtime_alias_test_list): Ditto.
14497         (vect_analyze_data_refs): Ditto.
14498         (vect_create_addr_base_for_vector_ref): Ditto.
14499         (vect_create_data_ref_ptr): Ditto.
14500         (vect_grouped_store_supported): Ditto.
14501         (vect_grouped_load_supported): Ditto.
14502         * value-prof.c (check_counter): Ditto.
14503         (check_ic_target): Ditto.
14504         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
14505         (vect_recog_widen_mult_pattern): Ditto.
14506         (vect_recog_widen_sum_pattern): Ditto.
14507         (vect_recog_over_widening_pattern): Ditto.
14508         (vect_recog_widen_shift_pattern): Ditto.
14509         (vect_recog_rotate_pattern): Ditto.
14510         (vect_recog_vector_vector_shift_pattern): Ditto.
14511         (vect_recog_divmod_pattern): Ditto.
14512         (vect_recog_mixed_size_cond_pattern): Ditto.
14513         (vect_recog_bool_pattern): Ditto.
14514         (vect_pattern_recog_1): Ditto.
14515         (vect_pattern_recog): Ditto.
14516         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
14517         (vect_is_simple_iv_evolution): Ditto.
14518         (vect_analyze_scalar_cycles_1): Ditto.
14519         (vect_get_loop_niters): Ditto.
14520         (vect_analyze_loop_1): Ditto.
14521         (vect_analyze_loop_form): Ditto.
14522         (vect_analyze_loop_operations): Ditto.
14523         (vect_analyze_loop_2): Ditto.
14524         (vect_analyze_loop): Ditto.
14525         (report_vect_op): Ditto.
14526         (vect_is_slp_reduction): Ditto.
14527         (vect_is_simple_reduction_1): Ditto.
14528         (vect_get_known_peeling_cost): Ditto.
14529         (vect_estimate_min_profitable_iters): Ditto.
14530         (vect_model_reduction_cost): Ditto.
14531         (vect_model_induction_cost): Ditto.
14532         (get_initial_def_for_induction): Ditto.
14533         (vect_create_epilog_for_reduction): Ditto.
14534         (vectorizable_reduction): Ditto.
14535         (vectorizable_induction): Ditto.
14536         (vectorizable_live_operation): Ditto.
14537         (vect_loop_kill_debug_uses): Ditto.
14538         (vect_transform_loop): Ditto.
14539         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
14540         (vect_stmt_relevant_p): Ditto.
14541         (process_use): Ditto.
14542         (vect_mark_stmts_to_be_vectorized): Ditto.
14543         (vect_model_simple_cost): Ditto.
14544         (vect_model_promotion_demotion_cost): Ditto.
14545         (vect_model_store_cost): Ditto.
14546         (vect_get_store_cost): Ditto.
14547         (vect_model_load_cost): Ditto.
14548         (vect_get_load_cost): Ditto.
14549         (vect_init_vector_1): Ditto.
14550         (vect_get_vec_def_for_operand): Ditto.
14551         (vect_finish_stmt_generation): Ditto.
14552         (vectorizable_call): Ditto.
14553         (vectorizable_conversion): Ditto.
14554         (vectorizable_assignment): Ditto.
14555         (vectorizable_shift): Ditto.
14556         (vectorizable_operation): Ditto.
14557         (vectorizable_store): Ditto.
14558         (vectorizable_load): Ditto.
14559         (vectorizable_condition): Ditto.
14560         (vect_analyze_stmt): Ditto.
14561         (vect_transform_stmt): Ditto.
14562         (vect_is_simple_use): Ditto.
14563         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
14564         (vect_can_advance_ivs_p): Ditto.
14565         (vect_update_ivs_after_vectorizer): Ditto.
14566         (vect_do_peeling_for_loop_bound): Ditto.
14567         (vect_gen_niters_for_prolog_loop): Ditto.
14568         (vect_update_inits_of_drs): Ditto.
14569         (vect_create_cond_for_alias_checks): Ditto.
14570         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
14571         (vect_build_slp_tree_1): Ditto.
14572         (vect_supported_load_permutation_p): Ditto.
14573         (vect_analyze_slp_instance): Ditto.
14574         (vect_analyze_slp): Ditto.
14575         (vect_make_slp_decision): Ditto.
14576         (vect_detect_hybrid_slp): Ditto.
14577         (vect_bb_vectorization_profitable_p): Ditto.
14578         (vect_slp_analyze_bb_1): Ditto.
14579         (vect_update_slp_costs_according_to_vf): Ditto.
14580         (vect_get_mask_element): Ditto.
14581         (vect_transform_slp_perm_load): Ditto.
14582         (vect_schedule_slp_instance): Ditto.
14583         (vect_schedule_slp): Ditto.
14584         (vect_slp_transform_bb): Ditto.
14585         * profile.c (read_profile_edge_counts): Ditto.
14586         (compute_branch_probabilities): Ditto.
14587         * coverage.c (get_coverage_counts): Ditto.
14589 2013-09-16  Diego Novillo  <dnovillo@google.com>
14591         * tree-core.h: Add missing comment lines from refactoring of tree.h.
14593 2013-09-16  Jan Hubicka  <jh@suse.cz>
14595         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
14596         abstract functions; for static functions check the presence of body.
14598 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14600         * config/aarch64/aarch64-simd-builtins.def (fma): New.
14601         * config/aarch64/aarch64-simd.md
14602         (aarch64_mla_elt<mode>): New.
14603         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
14604         (aarch64_mls_elt<mode>): Likewise.
14605         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
14606         (aarch64_fma4_elt<mode>): Likewise.
14607         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
14608         (aarch64_fma4_elt_to_128v2df): Likewise.
14609         (aarch64_fma4_elt_to_64df): Likewise.
14610         (fnma<mode>4): Likewise.
14611         (aarch64_fnma4_elt<mode>): Likewise.
14612         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
14613         (aarch64_fnma4_elt_to_128v2df): Likewise.
14614         (aarch64_fnma4_elt_to_64df): Likewise.
14615         * config/aarch64/iterators.md (VDQSF): New.
14616         * config/aarch64/arm_neon.h
14617         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
14618         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
14620 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14622         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
14623         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
14624         (aarch64_mul3_elt_to_128df): Likewise.
14625         (aarch64_mul3_elt_to_64v2df): Likewise.
14626         * config/aarch64/iterators.md (VEL): Also handle DFmode.
14627         (VMUL): New.
14628         (VMUL_CHANGE_NLANES) Likewise.
14629         (h_con): Likewise.
14630         (f): Likewise.
14631         * config/aarch64/arm_neon.h
14632         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
14634 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14636         * config/aarch64/arm_neon.h
14637         (vcvtx_high_f32_f64): Fix parameters.
14639 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14640             Uros Bizjak  <ubizjak@gmail.com>
14642         * config/alpha.c: Include tree-ssanames.h.
14644 2013-09-16  Richard Biener  <rguenther@suse.de>
14646         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
14647         (dot_rdg_1): Handle control_dd.
14648         (create_edge_for_control_dependence): New function.
14649         (create_rdg_edges): Add control dependences if asked for.
14650         (build_rdg): Likewise.
14651         (generate_loops_for_partition): If there are not necessary
14652         control stmts remove all their dependencies.
14653         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
14654         (distribute_loop): Pass on control dependences.
14655         (tree_loop_distribution): Compute control dependences and remove
14656         restriction on number of loop nodes.
14658 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
14660         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
14661         for internal calls.
14663 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
14665         * cse.c (try_const_anchors): Punt on CC modes.
14667 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14669         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
14671 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
14673         PR target/58382
14674         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
14675         calls to word_mode.
14677 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
14679         PR target/48094
14680         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
14681         seen.
14682         (darwin_objc1_section): Likewise.
14683         (darwin_file_end): Emit Image Info section when required.
14685 2013-09-14  Jan Hubicka  <jh@suse.cz>
14687         * tree-into-ssa.c (gate_into_ssa): New.
14688         (pass_data_build_ssa): Use it.
14689         * cgraph.h (expand_thunk): Update prototype.
14690         * cgraphunit.c (analyze_function): Expand thunks early.
14691         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
14692         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
14693         set lowered flag; do not add new function.
14694         (assemble_thunks_and_aliases): Update.
14695         * tree-ssa.c (gate_init_datastructures): New gate.
14696         (pass_data_init_datastructures): Use it.
14698 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
14700         PR target/58269
14701         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
14702         xmm register set described in the psABI.
14704 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
14706         * dwarf2out.c (should_emit_struct_debug): Add check
14707         for type_decl variable is not NULL.
14709 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
14711         * config.gcc: Use new winnt-c.c target hooks
14712         * config/t-winnt: New file
14713         * config/winnt-c.c: New file
14714         * doc/tm.texi.in: Document new hook
14715         * doc/tm.texi: Regenerated
14717 2013-09-13  Jan Hubicka  <jh@suse.cz>
14719         PR middle-end/58094
14720         * ipa-inline.c (check_callers): New function.
14721         (check_caller_edge): Remove.
14722         (want_inline_function_to_all_callers_p): Also permit alises that are
14723         called dirrectly.
14724         (inline_to_all_callers): Terminate the walk when devirtualization
14725         introduce new calls.
14727 2013-09-13  Jan Hubicka  <jh@suse.cz>
14729         * ipa-inline-analysis.c (struct growth_data): Add node.
14730         (do_estimate_growth_1): Fix detection of recursion.
14732 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
14734         PR tree-optimization/58392
14735         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
14736         to avoid shadowing of outer loop variable.  If
14737         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
14738         replace_by_duplicate_decl simduid of loops that have it set and
14739         set dest_cfun->has_simduid_loops and/or
14740         dest_cfun->has_force_vect_loops.
14741         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
14742         instead of maybe_lookup_decl.
14743         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
14744         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
14745         call.  Copy over force_vect and copy and remap simduid.  Set
14746         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
14747         (copy_cfg_body): Remove blocks_to_copy argument.  Use
14748         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
14749         caller.  Don't set cfun->has_simduid_loops and/or
14750         cfun->has_force_vect_loops here.
14751         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
14752         caller.
14753         (expand_call_inline, tree_function_versioning): Adjust copy_body
14754         callers.
14756 2013-09-13  Martin Jambor  <mjambor@suse.cz>
14758         PR bootstrap/58388
14759         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
14760         the assert if the edge was a speculative one.
14762 2013-09-13  Richard Biener  <rguenther@suse.de>
14764         * tree-data-ref.h (known_dependences_p): Move here ...
14765         * tree-loop-distribution.c (known_dependences_p): ... from here.
14766         (dump_rdg_component, debug_rdg_component): Remove.
14767         (dump_rdg): Adjust.
14768         (generate_loops_for_partition): Use gimple_uid instead of
14769         relying on matching stmt visit order.
14770         (rdg_build_partitions): Take starting stmt vector.
14771         (ldist_gen): Merge into ...
14772         (distribute_loop): ... this function.  Do not compute starting
14773         vertices vector.
14774         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
14776 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14778         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
14779         Set type attribute correctly. Set predicable_short_it attribute.
14780         (cmpsi_shiftsi): Remove %? from output template.
14782 2013-09-13  Richard Biener  <rguenther@suse.de>
14784         * tree-loop-distribution.c (struct rdg_component,
14785         rdg_defs_used_in_other_loops_p, free_rdg_components,
14786         rdg_build_components): Remove.
14787         (stmts_from_loop): Do not record virtual PHIs.
14788         (generate_loops_for_partition): Skip virtual PHIs.
14789         (build_rdg_partition_for_component): Rename to ...
14790         (build_rdg_partition_for_vertex): ... this and adjust.
14791         (rdg_build_partitions): Take a vector of starting vertices
14792         instead of components.  Remove unnecessary leftover handling.
14793         (ldist_gen): Do not build components or record other stores.
14794         (distribute_loop): Do not distribute loops containing stmts
14795         with side-effects.
14797 2013-09-13  Christian Bruel  <christian.bruel@st.com>
14799         PR target/58314
14800         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
14802 2013-09-13  Kai Tietz  <ktietz@redhat.com>
14804         * config.gcc: Separate cases for mingw and cygwin targets,
14805         and add 64-bit cygwin target case.
14807         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
14808         dll-export inline-functions.
14809         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
14811 2013-09-13  Jeff Law  <law@redhat.com>
14813         PR middle-end/58387
14814         Revert:
14815         2013-09-06  Jeff Law  <law@redhat.com>
14817         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14818         edge implied equivalences into successor phis.
14820 2013-09-12  DJ Delorie  <dj@redhat.com>
14822         * config/rl78/rl78-virt.md: Change from | to \; for asm line
14823         separators.
14825 2013-09-12  Brooks Moses  <bmoses@google.com>
14827         PR driver/42955
14828         * Makefile.in: Do not install driver binaries in $(target)/bin.
14830 2013-09-12  DJ Delorie  <dj@redhat.com>
14832         * config/rl78/rl78.opt (mrelax): New.
14833         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
14834         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
14836         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
14837         between SP and FP.
14838         (rl78_expand_epilogue): Likewise.
14840 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
14842         PR middle-end/58335
14843         * lra-eliminations.c (remove_reg_equal_offset_note): New.
14844         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
14845         pointer elimination with using remove_reg_equal_offset_note.
14847 2013-09-12  DJ Delorie  <dj@redhat.com>
14849         * config/msp430/: New port.
14850         * config.gcc (msp430): Added.
14851         * doc/invoke.texi: Document MSP430 options.
14852         * doc/install.texi: Document msp430-elf
14853         * doc/md.texi: Document msp430-elf
14854         * doc/contrib.texi: Document msp430-elf
14856         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
14857         PSImode.
14859 2013-09-12  Martin Jambor  <mjambor@suse.cz>
14861         PR ipa/58389
14862         * ipa-prop.c (remove_described_reference): Give up if the edge in the
14863         reference descriptor is NULL.
14864         (ipa_edge_removal_hook): If owning a reference descriptor, set its
14865         edge to NULL.
14867 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
14869         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
14870         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
14871         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
14872         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
14873         make_temp_ssa_name): move to tree-ssanames.h
14874         * tree-ssa-alias.h: Move prototype.
14875         * tree-ssa.h: Include tree-ssanames.h.
14876         * tree-ssanames.c (FREE_SSANAMES): Move to here.
14877         * tree-ssanames.h: New.  Move items from tree-flow*.h
14878         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
14880 2013-09-12  Richard Biener  <rguenther@suse.de>
14882         PR tree-optimization/58404
14883         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
14884         propagate non-invariant addresses into dereferences wrapped
14885         in component references.
14887 2013-09-12  Richard Biener  <rguenther@suse.de>
14889         PR tree-optimization/58402
14890         * passes.def: Move pass_late_warn_uninitialized later.
14892 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
14894         * tree-ssa.h: New.  Move content from tree-flow.h and
14895         tree-flow-inline.h.
14896         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
14897         Move prototypes belonging to tree-ssa.c.
14898         * tree-flow-inline.h (redirect_edge_var_map_def,
14899         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
14900         tree-ssa.h.
14901         * gimple.h: Adjust prototypes.
14902         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
14903         to...
14904         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
14905         * tree.h: Move prototype to tree-ssa.h.
14906         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
14907         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
14908         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
14909         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
14910         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
14911         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
14912         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
14913         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
14914         graphite-blocking.c, graphite-clast-to-gimple.c,
14915         graphite-dependences.c, graphite-interchange.c,
14916         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
14917         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
14918         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
14919         ipa-reference.c, ipa-split.c, ipa-utils.c,
14920         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
14921         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
14922         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
14923         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
14924         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
14925         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
14926         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
14927         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
14928         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
14929         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
14930         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
14931         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
14932         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
14933         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
14934         value-prof.c, var-tracking.c,
14935         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
14937 2013-09-12  Richard Biener  <rguenther@suse.de>
14939         PR tree-optimization/58396
14940         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
14941         (build_rdg): Take a loop-nest parameter, fix memleaks.
14942         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
14944 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
14946         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
14947         for SLM.
14949 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
14951         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
14952         The FMA instruction names should have a 'v' prefix.
14954 2013-09-12  Richard Biener  <rguenther@suse.de>
14956         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
14957         (dot_rdg): Use popen instead of system in optional code.
14958         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
14959         (already_processed_vertex_p): Adjust.
14960         (has_anti_or_output_dependence, predecessor_has_mem_write,
14961         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
14962         rdg_flag_uses): Remove.
14963         (rdg_flag_vertex): Simplify.
14964         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
14965         remove recursion.
14966         (build_rdg_partition_for_component): Process the first vertex
14967         of a component only.
14968         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
14970 2013-09-12  Alan Modra  <amodra@gmail.com>
14972         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
14974 2013-09-11  DJ Delorie  <dj@redhat.com>
14975             Nick Clifton  <nickc@redhat.com>
14977         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
14978         (rl78_stack_based_mem): New.
14979         * config/rl78/constraints.md (Iv08): New.
14980         (Iv16): New.
14981         (Iv24): New.
14982         (Is09): New.
14983         (Is17): New.
14984         (Is25): New.
14985         (ISsi): New.
14986         (IShi): New.
14987         (ISqi): New.
14988         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
14989         (movhi): Likewise.
14990         (movsi): Change from expand to insn-and-split.
14991         (ashrsi3): Clobber AX.
14992         (lshrsi3): New.
14993         (ashlsi3): New.
14994         (cbranchsi4): New.
14995         * config/rl78/rl78.md (CC_REG): Fix.
14996         (addsi3): Allow memory and immediate operands.
14997         (addsi3_internal): Split into...
14998         (addsi3_internal_virt): ...new, and ...
14999         (addsi3_internal_real): ...new.
15000         (subsi): New.
15001         (subsi3_internal_virt): New.
15002         (subsi3_internal_real): New.
15003         (mulsi3): Add memory operand.
15004         (mulsi3_rl78): Likewise.
15005         (mulsi3_g13): Likewise.
15006         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
15007         (cbranchqi4_real): Add more constraint options.
15008         (cbranchhi4_real): Expand pattern.
15009         (cbranchhi4_real_signed): New.
15010         (cbranchhi4_real_inverted): New.
15011         (cbranchsi4_real_lt): New.
15012         (cbranchsi4_real_ge): New.
15013         (cbranchsi4_real_signed): New.
15014         (cbranchsi4_real): New.
15015         (peephole2): New.
15016         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
15017         constant shifts.
15018         (lshrsi3_virt): Likewise.
15019         (ashlsi3_virt): Likewise.
15020         (cbranchqi4_virt_signed): New.
15021         (cbranchhi4_virt_signed): New.
15022         (cbranchsi4_virt): New.
15023         * config/rl78/rl78.c: Whitespace fixes throughout.
15024         (move_elim_pass): New.
15025         (pass_data_rl78_move_elim): New.
15026         (pass_rl78_move_elim): New.
15027         (make_pass_rl78_move_elim): New.
15028         (rl78_devirt_info): Run devirt earlier.
15029         (rl78_move_elim_info): New.
15030         (rl78_asm_file_start): Register it.
15031         (rl78_split_movsi): New.
15032         (rl78_as_legitimate_address): Allow virtual base registers when
15033         appropriate.
15034         (rl78_addr_space_convert): Remove spurious debug stuff.
15035         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
15036         (rl78_print_operand): More cases for not printing '#'.
15037         (rl78_expand_compare): Remove most of the logic.
15038         (content_memory): New.
15039         (clear_content_memory): New.
15040         (get_content_index): New.
15041         (get_content_name): New.
15042         (display_content_memory): New.
15043         (update_content): New.
15044         (record_content): New.
15045         (already_contains): New.
15046         (insn_ok_now): Re-recog insns with virtual registers.
15047         (add_postponed_content_update): New.
15048         (process_postponed_content_update): New.
15049         (gen_and_emit_move): New.
15050         (transcode_memory_rtx): Record new location content.
15051         Use gen_and_emit_move.
15052         (force_into_acc): New.
15053         (move_to_acc): Use gen_and_emit_move.
15054         (move_from_acc): Likewise.
15055         (move_acc_to_reg): Likewise.
15056         (move_to_x): Likewise.
15057         (move_to_hl): Likewise.
15058         (move_to_de): Likewise.
15059         (rl78_alloc_physical_registers_op1): Record location content.
15060         (has_constraint): New.
15061         (rl78_alloc_physical_registers_op2): Record location content.
15062         Optimize use of HL.
15063         (rl78_alloc_physical_registers_ro1): Likewise.
15064         (rl78_alloc_physical_registers_cmp): Likewise.
15065         (rl78_alloc_physical_registers_umul): Likewise.
15066         (rl78_alloc_address_registers_macax): New.
15067         (rl78_alloc_physical_registers): Initialize and set location
15068         content memory as needed.
15069         (rl78_reorg): Make sure split2 is called.
15070         (rl78_rtx_costs): New.
15072 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
15074         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
15075         for (not (neg ...)) and (neg (not ...)) cases.
15077 2013-09-11  Richard Biener  <rguenther@suse.de>
15079         PR middle-end/58377
15080         * passes.def: Split critical edges before late uninit warning passes.
15081         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
15083 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
15085         PR tree-optimization/58385
15086         * fold-const.c (build_range_check): If both low and high are NULL,
15087         use omit_one_operand_loc to preserve exp side-effects.
15089 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15091         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
15093 2013-09-11  Richard Biener  <rguenther@suse.de>
15095         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
15096         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
15097         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
15098         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
15099         stmts_from_loop, known_dependences_p, build_empty_rdg,
15100         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
15101         * tree-loop-distribution.c: ... here.
15102         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
15103         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
15104         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
15105         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
15106         * tree-loop-distribution.c: ... here.
15107         * tree-loop-distribution.c: Include gimple-pretty-print.h.
15108         (struct partition_s): Add loops member.
15109         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
15110         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
15111         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
15113 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15114             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15115             Sergey Lega  <sergey.s.lega@intel.com>
15116             Anna Tikhonova  <anna.tikhonova@intel.com>
15117             Ilya Tocar  <ilya.tocar@intel.com>
15118             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15119             Ilya Verbin  <ilya.verbin@intel.com>
15120             Kirill Yukhin  <kirill.yukhin@intel.com>
15121             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15123         * config/i386/constraints.md (k): New.
15124         (Yk): Ditto.
15125         * config/i386/i386.c (const regclass_map): Add new mask registers.
15126         (dbx_register_map): Ditto.
15127         (dbx64_register_map): Ditto.
15128         (svr4_dbx_register_map): Ditto.
15129         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
15130         disabled.
15131         (ix86_preferred_reload_class): Disable constants for mask registers.
15132         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
15133         (ix86_hard_regno_mode_ok): Support new mask registers.
15134         (x86_order_regs_for_local_alloc): Ditto.
15135         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
15136         (FIXED_REGISTERS): Add new mask registers.
15137         (CALL_USED_REGISTERS): Ditto.
15138         (REG_ALLOC_ORDER): Ditto.
15139         (VALID_MASK_REG_MODE): New.
15140         (FIRST_MASK_REG): Ditto.
15141         (LAST_MASK_REG): Ditto.
15142         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
15143         (MAYBE_MASK_CLASS_P): New.
15144         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
15145         (REG_CLASS_CONTENTS): Ditto.
15146         (MASK_REGNO_P): New.
15147         (ANY_MASK_REG_P): Ditto.
15148         (HI_REGISTER_NAMES): Add new mask registers.
15149         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
15150         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
15151         mask registers.
15152         (attribute "type"): Add mskmov, msklog.
15153         (attribute "length_immediate"): Support them.
15154         (attribute "memory"): Ditto.
15155         (attribute "prefix_0f"): Ditto.
15156         (*movhi_internal): Support new mask registers.
15157         (*movqi_internal): Ditto.
15158         (define_split): Split out clobber pattern is a logic
15159         insn on mask registers.
15160         (*k<logic><mode>): New.
15161         (*andhi_1): Extend to support mask regs.
15162         (*andqi_1): Extend to support mask regs.
15163         (kandn<mode>): New.
15164         (define_split): Split and-not to and and not if operands
15165         are not mask regs.
15166         (*<code><mode>_1): Separate HI mode to new pattern...
15167         (*<code>hi_1): This.
15168         (*<code>qi_1): Extend to support mask regs.
15169         (kxnor<mode>): New.
15170         (kortestzhi): Ditto.
15171         (kortestchi): Ditto.
15172         (kunpckhi): Ditto.
15173         (*one_cmpl<mode>2_1): Remove HImode and handle it...
15174         (*one_cmplhi2_1): ...Here, now with mask registers support.
15175         (*one_cmplqi2_1): Support new mask registers.
15176         (HI/QImode arithmetics splitter): Don't split if mask registers
15177         are used.
15178         (HI/QImode not splitter): Ditto.
15179         * config/i386/predicated.md (mask_reg_operand): New.
15180         (general_reg_operand): Ditto.
15182 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15184         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
15185         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
15187 2013-09-10  Jeff Law  <law@redhat.com>
15189         PR tree-optimization/58380
15190         * tree-ssa-threadupdate.c (thread_block): Recognize another case
15191         of threading through a buried loop header.
15193         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
15194         return value for single successor case.
15196 2013-09-10  Jan Hubicka  <jh@suse.cz>
15198         * ipa-devirt.c (ipa_devirt): Enable with LTO.
15200 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
15202         PR target/58361
15203         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
15204         support conditional execution.
15205         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
15207 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
15209         * lra.c (lra): Clear lra_optional_reload_pseudos before every
15210         constraint pass.
15211         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
15212         Check destination too to check move insn.
15213         (undo_optional_reloads): Add check that the original peudo did not
15214         changed its allocation and the optional reload was inherited on last
15215         inheritance pass.  Break loop after deciding to keep optional reload.
15216         (lra_undo_inheritance): Add check that inherited pseudo still in
15217         memory.
15219 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
15221         * config/aarch64/aarch64.md (generic_sched): New.
15222         * config/aarch64/aarch64-generic.md (load): Make conditional
15223         on generic_sched attribute.
15224         (nonload): Likewise.
15226 2013-09-10  Jan Hubicka  <jh@suse.cz>
15228         * lto-cgraph.c: Include ipa-utils.h.
15229         (compute_ltrans_boundary): Also add possible targets into the boundary.
15231 2013-09-10  Jan Hubicka  <jh@suse.cz>
15233         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
15234         VAR_DECL of vtable rather than full expression.
15236 2013-09-10  Jan Hubicka  <jh@suse.cz>
15237             Paolo Carlini  <paolo.carlini@oracle.com>
15239         * cgraphunit.c (analyze_functions): Save input_location, set it
15240         to UNKNOWN_LOCATION and restore it at the end.
15242 2013-09-10  Martin Jambor  <mjambor@suse.cz>
15244         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
15245         represented by a thunk.
15247 2013-09-10  Jeff Law  <law@redhat.com>
15249         PR tree-optimization/58343
15250         * tree-ssa-threadupdate.c (thread_block): Identify and disable
15251         jump threading requests through loop headers buried in the middle
15252         of a jump threading path.
15254         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
15255         in return value/type.
15257 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
15259         PR rtl-optimization/58365
15260         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
15261         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
15262         it differs.
15264 2013-09-10  Richard Biener  <rguenther@suse.de>
15266         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
15267         * tree-data-ref.c (create_rdg_vertices): Collect all data
15268         references, signal failure to the caller, use data-ref API.
15269         (build_rdg): Compute data references only once.  Maintain lifetime
15270         of data references and data dependences from within RDG.
15271         (free_rdg): Free dependence relations.
15272         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
15273         inventing extra dependences.
15274         (distribute_loop): Update for RDG API changes.
15276 2013-09-10  Kai Tietz  <ktietz@redhat.com>
15278         * doc/invoke.texi (fms-extensions): Document changed
15279         behavior for ms-abi targets.
15280         * config/i386/i386.c (ix86_option_override_internal):
15281         Set default value of option -fms-extension for ms-abi targets.
15283 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
15285         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
15287 2013-09-10  Alan Modra  <amodra@gmail.com>
15289         PR target/58330
15290         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
15292 2013-09-10  Alan Modra  <amodra@gmail.com>
15294         * config/rs6000/predicates.md (add_cint_operand): New.
15295         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
15296         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
15297         using add_cint_operand.
15298         (largetoc_high_plus_aix): Likewise.
15300 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
15302         PR tree-optimization/58364
15303         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
15304         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
15305         the current range can't be an unconditional true or false.
15307 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
15309         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
15311 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
15313         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
15315 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
15317         PR c++/43452
15318         * doc/invoke.texi (-Wdelete-incomplete): Document it.
15320 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
15322         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
15323         NO_REGS for immediate that can't be moved directly into FP_REGS.
15325 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15327         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
15328         comparison with negated operand.
15329         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
15330         RTL form.
15332 2013-09-09  Richard Biener  <rguenther@suse.de>
15334         PR middle-end/58326
15335         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
15336         of a subloop record all its block as affecting loop-closed SSA form.
15338 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15340         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
15341         of an rtx/bitpos pair.
15342         (store_fixed_bit_field): Update accordingly.
15344 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15346         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
15347         GEN_INT.
15348         * builtins.c (expand_errno_check): Likewise.
15349         * dwarf2cfi.c (init_return_column_size): Likewise.
15350         * except.c (sjlj_mark_call_sites): Likewise.
15351         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15352         * lra-constraints.c (emit_inc): Likewise.
15353         * ree.c (combine_set_extension): Likewise.
15354         * regmove.c (fixup_match_2): Likewise.
15355         * reload1.c (inc_for_reload): Likewise.
15357 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15359         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
15360         (force_to_mode, simplify_shift_const_1, simplify_comparison):
15361         Use gen_int_mode with the mode of the associated simplify_* call.
15362         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
15363         * expmed.c (expand_shift_1): Likewise.
15364         * function.c (instantiate_virtual_regs_in_insn): Likewise.
15365         * loop-iv.c (iv_number_of_iterations): Likewise.
15366         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15367         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
15369 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15371         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
15372         of the associated expand_* call.
15373         (asan_emit_stack_protection): Likewise.
15374         * builtins.c (round_trampoline_addr): Likewise.
15375         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
15376         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
15377         (emit_store_flag): Likewise.
15378         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
15379         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
15380         Likewise.
15381         * function.c (instantiate_virtual_regs_in_insn): Likewise.
15382         * ifcvt.c (noce_try_store_flag_constants): Likewise.
15383         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
15384         * modulo-sched.c (generate_prolog_epilog): Likewise.
15385         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
15386         (expand_ctz, expand_ffs, expand_unop): Likewise.
15388 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15390         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
15391         of the associated gen_rtx_* call.
15392         * caller-save.c (init_caller_save): Likewise.
15393         * combine.c (find_split_point, make_extraction): Likewise.
15394         (make_compound_operation): Likewise.
15395         * dwarf2out.c (mem_loc_descriptor): Likewise.
15396         * explow.c (plus_constant, probe_stack_range): Likewise.
15397         * expmed.c (expand_mult_const): Likewise.
15398         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
15399         * reload1.c (init_reload): Likewise.
15400         * valtrack.c (cleanup_auto_inc_dec): Likewise.
15401         * var-tracking.c (adjust_mems): Likewise.
15402         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
15403         rather than gen_rtx_fmt_ee.
15405 2013-09-09  Jan Hubicka  <jh@suse.cz>
15407         PR middle-end/58294
15408         * value-prof.c (gimple_ic): Copy also abnormal edges.
15410 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
15412         * asan.c (asan_shadow_cst): Use gen_int_mode.
15414 2013-09-08  Jan Hubicka  <jh@suse.cz>
15416         * ipa-profile.c: Add toplevel comment.
15417         (ipa_propagate_frequency_1): Be more conservative when profile is read.
15418         (contains_hot_call_p): New function.
15419         (ipa_propagate_frequency): Set frequencies based on counts when
15420         profile is read.
15421         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
15422         profile; do not tamper with profile after inlining if it is read.
15424 2013-09-08  Jan Hubicka  <jh@suse.cz>
15426         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
15427         speculative edges.
15429 2013-09-08  Jan Hubicka  <jh@suse.cz>
15431         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
15432         summary generation.
15434 2013-09-08  Jeff Law  <law@redhat.com>
15436         PR bootstrap/58340
15437         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
15438         of 'found'.
15440 2013-09-08  Andi Kleen  <ak@linux.intel.com>
15442         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
15444 2013-09-08  Jan Hubicka  <jh@suse.cz>
15446         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
15448 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
15450         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
15451         for non-debug insns.
15452         * lra.c (new_insn_reg): Take the containing insn as a parameter.
15453         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
15454         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
15455         accordingly.
15457 2013-09-08  Jan Hubicka  <jh@suse.cz>
15459         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
15460         targets and devirtualize to BUILT_IN_UNREACHABLE.
15461         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
15462         * ipa.c (walk_polymorphic_call_targets): New function.
15463         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
15464         functions; use the new timevar.
15465         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
15466         was removed from the program.
15467         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
15468         not consider it in the walk when its vtable is dead.
15469         (possible_polymorphic_call_targets_1): Pass anonymous flag to
15470         record_binfo.
15471         (devirt_variable_node_removal_hook): New function.
15472         (possible_polymorphic_call_targets): Also register
15473         devirt_variable_node_removal_hook.
15474         (ipa_devirt): Do not do non-speculative devirtualization.
15475         (gate_ipa_devirt): One execute if devirtualizing speculatively.
15477 2013-09-08  Jan Hubicka  <jh@suse.cz>
15479         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
15480         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
15481         varpool_remove_variable_insertion_hook): Declare.
15482         * varpool.c (varpool_node_hook_list): New structure.
15483         (first_varpool_node_removal_hook,
15484         first_varpool_variable_insertion_hook): New variables.
15485         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
15486         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
15487         varpool_remove_variable_insertion_hook,
15488         varpool_call_variable_insertion_hooks): New functions.
15489         (varpool_remove_node): Use it.
15491 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
15493         PR c++/54941
15494         * diagnostic.c (diagnostic_build_prefix): When s.file is
15495         "<built-in>" don't output line and column numbers.
15497 2013-09-06  Jan Hubicka  <jh@suse.cz>
15499         * cgraphunit.c (expand_thunk): Get body before touching arguments.
15500         * lto-streamer-out.c: Stream thunks, too.
15501         * lto-streamer-in.c (input_function): Pop cfun here
15502         (lto_read_body): Instead of here.
15504 2013-09-06  Caroline Tice  <cmtice@google.com>
15506         * doc/install.texi: Add documentation for the --enable-vtable-verify
15507         and the --disable-libvtv configure options.
15509 2013-09-06  Jeff Law  <law@redhat.com>
15511         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15512         edge implied equivalences into successor phis.
15514 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
15516         * resource.c (mark_referenced_resources): Handle COND_EXEC.
15518 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
15520         * resource.c (mark_target_live_regs): Compute resources taking
15521         into account if a call is predicated or not.
15523 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
15525         * toplev.c (output_stack_usage): Be prepared for suffixes created by
15526         the compiler in the function names.
15528 2013-09-06  Jan Hubicka  <jh@suse.cz>
15530         PR middle-end/58094
15531         * ipa-inline.c (has_caller_p): New function.
15532         (want_inline_function_to_all_callers_p): Use it.
15533         (sum_callers, inline_to_all_callers): Break out from ...
15534         (ipa_inline): ... here.
15536 2013-09-06  Jan Hubicka  <jh@suse.cz>
15538         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
15539         only when AVX is enabled.
15541 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15543         * config/aarch64/aarch64.md
15544         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
15545         is fpsimd_<load/store>2.
15546         (load_pair<mode>): Likewise.
15547         (store_pair<mode>): Likewise.
15549 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15551         * config/arm/types.md (type): Add "mrs" type.
15552         * config/aarch64/aarch64.md
15553         (aarch64_load_tp_hard): Make type "mrs".
15554         * config/arm/arm.md
15555         (load_tp_hard): Make type "mrs".
15556         * config/arm/cortex-a15.md: Update with new attributes.
15557         * config/arm/cortex-a5.md: Update with new attributes.
15558         * config/arm/cortex-a53.md: Update with new attributes.
15559         * config/arm/cortex-a7.md: Update with new attributes.
15560         * config/arm/cortex-a8.md: Update with new attributes.
15561         * config/arm/cortex-a9.md: Update with new attributes.
15562         * config/arm/cortex-m4.md: Update with new attributes.
15563         * config/arm/cortex-r4.md: Update with new attributes.
15564         * config/arm/fa526.md: Update with new attributes.
15565         * config/arm/fa606te.md: Update with new attributes.
15566         * config/arm/fa626te.md: Update with new attributes.
15567         * config/arm/fa726te.md: Update with new attributes.
15569 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15571         * config/aarch64/aarch64.md
15572         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
15573         (*movtf_aarch64): Likewise.
15574         * config/arm/arm.md
15575         (thumb1_movdi_insn): Use "multiple" for type where more than one
15576         instruction is used for a move.
15577         (*arm32_movhf): Likewise.
15578         (*thumb_movdf_insn): Likewise.
15580 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15582         * config/arm/types.md (type): Rename fcpys to fmov.
15583         * config/arm/vfp.md
15584         (*arm_movsi_vfp): Rename type fcpys as fmov.
15585         (*thumb2_movsi_vfp): Likewise
15586         (*movhf_vfp_neon): Likewise
15587         (*movhf_vfp): Likewise
15588         (*movsf_vfp): Likewise
15589         (*thumb2_movsf_vfp): Likewise
15590         (*movsfcc_vfp): Likewise
15591         (*thumb2_movsfcc_vfp): Likewise
15592         * config/aarch64/aarch64-simd.md
15593         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
15594         * config/aarch64/aarch64.md
15595         (*movsi_aarch64): Replace type mov_reg with fmovs.
15596         (*movdi_aarch64): Likewise
15597         (*movsf_aarch64): Likewise
15598         (*movdf_aarch64): Likewise
15599         * config/arm/arm.c
15600         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
15601         * config/arm/iwmmxt.md
15602         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
15603         * config/arm/arm1020e.md: Update with new attributes.
15604         * config/arm/cortex-a15-neon.md: Update with new attributes.
15605         * config/arm/cortex-a5.md: Update with new attributes.
15606         * config/arm/cortex-a53.md: Update with new attributes.
15607         * config/arm/cortex-a7.md: Update with new attributes.
15608         * config/arm/cortex-a8-neon.md: Update with new attributes.
15609         * config/arm/cortex-a9.md: Update with new attributes.
15610         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15611         * config/arm/cortex-r4f.md: Update with new attributes.
15612         * config/arm/marvell-pj4.md: Update with new attributes.
15613         * config/arm/vfp11.md: Update with new attributes.
15615 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15617         * config/aarch64/aarch64.md
15618         (*madd<mode>): Fix type attribute.
15619         (*maddsi_uxtw): Likewise.
15620         (*msub<mode>): Likewise.
15621         (*msubsi_uxtw): Likewise.
15622         (<su_optab>maddsidi4): Likewise.
15623         (<su_optab>msubsidi4): Likewise.
15625 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15627         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
15628         * config/arm/arm.md (core_cycles): Remove fdiv.
15629         * config/arm/vfp.md:
15630         (*sqrtsf2_vfp): Update for attribute changes.
15631         (*sqrtdf2_vfp): Likewise.
15632         * config/aarch64/aarch64.md:
15633         (sqrt<mode>2): Update for attribute changes.
15634         * config/arm/arm1020e.md: Update with new attributes.
15635         * config/arm/cortex-a15-neon.md: Update with new attributes.
15636         * config/arm/cortex-a5.md: Update with new attributes.
15637         * config/arm/cortex-a53.md: Update with new attributes.
15638         * config/arm/cortex-a7.md: Update with new attributes.
15639         * config/arm/cortex-a8-neon.md: Update with new attributes.
15640         * config/arm/cortex-a9.md: Update with new attributes.
15641         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15642         * config/arm/cortex-r4f.md: Update with new attributes.
15643         * config/arm/marvell-pj4.md: Update with new attributes.
15644         * config/arm/vfp11.md: Update with new attributes.
15646 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15648         * config/arm/types.md
15649         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
15650         * config/aarch64/aarch64.md
15651         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
15652         new attributes.
15653         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
15654         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
15655         (float<GPI:mode><GPF:mode>2): Likewise.
15656         * config/arm/vfp.md
15657         (*truncsisf2_vfp): Update with new attributes.
15658         (*truncsidf2_vfp): Likewise.
15659         (fixuns_truncsfsi2): Likewise.
15660         (fixuns_truncdfsi2): Likewise.
15661         (*floatsisf2_vfp): Likewise.
15662         (*floatsidf2_vfp): Likewise.
15663         (floatunssisf2): Likewise.
15664         (floatunssidf2): Likewise.
15665         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
15666         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
15667         * config/arm/arm1020e.md: Update with new attributes.
15668         * config/arm/cortex-a15-neon.md: Update with new attributes.
15669         * config/arm/cortex-a5.md: Update with new attributes.
15670         * config/arm/cortex-a53.md: Update with new attributes.
15671         * config/arm/cortex-a7.md: Update with new attributes.
15672         * config/arm/cortex-a8-neon.md: Update with new attributes.
15673         * config/arm/cortex-a9.md: Update with new attributes.
15674         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15675         * config/arm/cortex-r4f.md: Update with new attributes.
15676         * config/arm/marvell-pj4.md: Update with new attributes.
15677         * config/arm/vfp11.md: Update with new attributes.
15679 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15681         * config/aarch64/arm_neon.h
15682         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
15683         (vqtbx<1,2,3,4><q>_s8): Likewise.
15685 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15687         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
15688         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
15689         (add<mode>3): Add type attribute.
15690         (add<mode>3): Likewise.
15691         (usadd<mode>3): Likewise.
15692         (ssadd<mode>3): Likewise.
15693         (sub<mode>3): Likewise.
15694         (sub<mode>3): Likewise.
15695         (ussub<mode>3): Likewise.
15696         (sssub<mode>3): Likewise.
15697         (ssmulsa3): Likewise.
15698         (usmulusa3): Likewise.
15699         (arm_usatsihi): Likewise.
15700         * config/arm/vfp.md
15701         (*movdi_vfp): Add types for all instructions.
15702         (*movdi_vfp_cortexa8): Likewise.
15703         (*movhf_vfp_neon): Likewise.
15704         (*movhf_vfp): Likewise.
15705         (*movdf_vfp): Likewise.
15706         (*thumb2_movdf_vfp): Likewise.
15707         (*thumb2_movdfcc_vfp): Likewise.
15708         * config/arm/arm.md: Add type attribute to all insn patterns.
15709         (*thumb1_adddi3): Add type attribute.
15710         (*arm_adddi3): Likewise.
15711         (*adddi_sesidi_di): Likewise.
15712         (*adddi_zesidi_di): Likewise.
15713         (*thumb1_addsi3): Likewise.
15714         (addsi3_compare0): Likewise.
15715         (*addsi3_compare0_scratch): Likewise.
15716         (*compare_negsi_si): Likewise.
15717         (cmpsi2_addneg): Likewise.
15718         (*addsi3_carryin_<optab>): Likewise.
15719         (*addsi3_carryin_alt2_<optab>): Likewise.
15720         (*addsi3_carryin_clobercc_<optab>): Likewise.
15721         (*subsi3_carryin): Likewise.
15722         (*subsi3_carryin_const): Likewise.
15723         (*subsi3_carryin_compare): Likewise.
15724         (*subsi3_carryin_compare_const): Likewise.
15725         (*arm_subdi3): Likewise.
15726         (*thumb_subdi3): Likewise.
15727         (*subdi_di_zesidi): Likewise.
15728         (*subdi_di_sesidi): Likewise.
15729         (*subdi_zesidi_di): Likewise.
15730         (*subdi_sesidi_di): Likewise.
15731         (*subdi_zesidi_ze): Likewise.
15732         (thumb1_subsi3_insn): Likewise.
15733         (*arm_subsi3_insn): Likewise.
15734         (*anddi3_insn): Likewise.
15735         (*anddi_zesidi_di): Likewise.
15736         (*anddi_sesdi_di): Likewise.
15737         (*ne_zeroextracts): Likewise.
15738         (*ne_zeroextracts): Likewise.
15739         (*ite_ne_zeroextr): Likewise.
15740         (*ite_ne_zeroextr): Likewise.
15741         (*anddi_notdi_di): Likewise.
15742         (*anddi_notzesidi): Likewise.
15743         (*anddi_notsesidi): Likewise.
15744         (andsi_notsi_si): Likewise.
15745         (thumb1_bicsi3): Likewise.
15746         (*iordi3_insn): Likewise.
15747         (*iordi_zesidi_di): Likewise.
15748         (*iordi_sesidi_di): Likewise.
15749         (*thumb1_iorsi3_insn): Likewise.
15750         (*xordi3_insn): Likewise.
15751         (*xordi_zesidi_di): Likewise.
15752         (*xordi_sesidi_di): Likewise.
15753         (*arm_xorsi3): Likewise.
15754         (*andsi_iorsi3_no): Likewise.
15755         (*smax_0): Likewise.
15756         (*smax_m1): Likewise.
15757         (*arm_smax_insn): Likewise.
15758         (*smin_0): Likewise.
15759         (*arm_smin_insn): Likewise.
15760         (*arm_umaxsi3): Likewise.
15761         (*arm_uminsi3): Likewise.
15762         (*minmax_arithsi): Likewise.
15763         (*minmax_arithsi_): Likewise.
15764         (*satsi_<SAT:code>): Likewise.
15765         (arm_ashldi3_1bit): Likewise.
15766         (arm_ashrdi3_1bit): Likewise.
15767         (arm_lshrdi3_1bit): Likewise.
15768         (*arm_negdi2): Likewise.
15769         (*thumb1_negdi2): Likewise.
15770         (*arm_negsi2): Likewise.
15771         (*thumb1_negsi2): Likewise.
15772         (*negdi_extendsid): Likewise.
15773         (*negdi_zero_extend): Likewise.
15774         (*arm_abssi2): Likewise.
15775         (*thumb1_abssi2): Likewise.
15776         (*arm_neg_abssi2): Likewise.
15777         (*thumb1_neg_abss): Likewise.
15778         (one_cmpldi2): Likewise.
15779         (extend<mode>di2): Likewise.
15780         (*compareqi_eq0): Likewise.
15781         (*arm_extendhisi2addsi): Likewise.
15782         (*arm_movdi): Likewise.
15783         (*thumb1_movdi_insn): Likewise.
15784         (*arm_movt): Likewise.
15785         (*thumb1_movsi_insn): Likewise.
15786         (pic_add_dot_plus_four): Likewise.
15787         (pic_add_dot_plus_eight): Likewise.
15788         (tls_load_dot_plus_eight): Likewise.
15789         (*thumb1_movhi_insn): Likewise.
15790         (*thumb1_movsf_insn): Likewise.
15791         (*movdf_soft_insn): Likewise.
15792         (*thumb_movdf_insn): Likewise.
15793         (cbranchsi4_insn): Likewise.
15794         (cbranchsi4_scratch): Likewise.
15795         (*negated_cbranchsi4): Likewise.
15796         (*tbit_cbranch): Likewise.
15797         (*tlobits_cbranch): Likewise.
15798         (*tstsi3_cbranch): Likewise.
15799         (*cbranchne_decr1): Likewise.
15800         (*addsi3_cbranch): Likewise.
15801         (*addsi3_cbranch_scratch): Likewise.
15802         (*arm_cmpdi_insn): Likewise.
15803         (*arm_cmpdi_unsig): Likewise.
15804         (*arm_cmpdi_zero): Likewise.
15805         (*thumb_cmpdi_zero): Likewise.
15806         (*deleted_compare): Likewise.
15807         (*mov_scc): Likewise.
15808         (*mov_negscc): Likewise.
15809         (*mov_notscc): Likewise.
15810         (*cstoresi_eq0_thumb1_insn): Likewise.
15811         (cstoresi_nltu_thumb1): Likewise.
15812         (cstoresi_ltu_thu): Likewise.
15813         (thumb1_addsi3_addgeu): Likewise.
15814         (*arm_jump): Likewise.
15815         (*thumb_jump): Likewise.
15816         (*check_arch2): Likewise.
15817         (arm_casesi_internal): Likewise.
15818         (thumb1_casesi_dispatch): Likewise.
15819         (*arm_indirect_jump): Likewise.
15820         (*thumb1_indirect_jump): Likewise.
15821         (nop): Likewise.
15822         (*and_scc): Likewise.
15823         (*ior_scc): Likewise.
15824         (*compare_scc): Likewise.
15825         (*cond_move): Likewise.
15826         (*cond_arith): Likewise.
15827         (*cond_sub): Likewise.
15828         (*cmp_ite0): Likewise.
15829         (*cmp_ite1): Likewise.
15830         (*cmp_and): Likewise.
15831         (*cmp_ior): Likewise.
15832         (*ior_scc_scc): Likewise.
15833         (*ior_scc_scc_cmp): Likewise.
15834         (*and_scc_scc): Likewise.
15835         (*and_scc_scc_cmp): Likewise.
15836         (*and_scc_scc_nod): Likewise.
15837         (*negscc): Likewise.
15838         (movcond_addsi): Likewise.
15839         (movcond): Likewise.
15840         (*ifcompare_plus_move): Likewise.
15841         (*if_plus_move): Likewise.
15842         (*ifcompare_move_plus): Likewise.
15843         (*if_move_plus): Likewise.
15844         (*ifcompare_arith_arith): Likewise.
15845         (*if_arith_arith): Likewise.
15846         (*ifcompare_arith_move): Likewise.
15847         (*if_arith_move): Likewise.
15848         (*ifcompare_move_arith): Likewise.
15849         (*if_move_arith): Likewise.
15850         (*ifcompare_move_not): Likewise.
15851         (*if_move_not): Likewise.
15852         (*ifcompare_not_move): Likewise.
15853         (*if_not_move): Likewise.
15854         (*ifcompare_shift_move): Likewise.
15855         (*if_shift_move): Likewise.
15856         (*ifcompare_move_shift): Likewise.
15857         (*if_move_shift): Likewise.
15858         (*ifcompare_shift_shift): Likewise.
15859         (*ifcompare_not_arith): Likewise.
15860         (*ifcompare_arith_not): Likewise.
15861         (*if_arith_not): Likewise.
15862         (*ifcompare_neg_move): Likewise.
15863         (*if_neg_move): Likewise.
15864         (*ifcompare_move_neg): Likewise.
15865         (*if_move_neg): Likewise.
15866         (prologue_thumb1_interwork): Likewise.
15867         (*cond_move_not): Likewise.
15868         (*sign_extract_onebit): Likewise.
15869         (*not_signextract_onebit): Likewise.
15870         (stack_tie): Likewise.
15871         (align_4): Likewise.
15872         (align_8): Likewise.
15873         (consttable_end): Likewise.
15874         (consttable_1): Likewise.
15875         (consttable_2): Likewise.
15876         (consttable_4): Likewise.
15877         (consttable_8): Likewise.
15878         (consttable_16): Likewise.
15879         (*thumb1_tablejump): Likewise.
15880         (prefetch): Likewise.
15881         (force_register_use): Likewise.
15882         (thumb_eh_return): Likewise.
15883         (load_tp_hard): Likewise.
15884         (load_tp_soft): Likewise.
15885         (tlscall): Likewise.
15886         (*arm_movtas_ze): Likewise.
15887         (*arm_rev): Likewise.
15888         (*arm_revsh): Likewise.
15889         (*arm_rev16): Likewise.
15890         * config/arm/thumb2.md
15891         (*thumb2_smaxsi3): Likewise.
15892         (*thumb2_sminsi3): Likewise.
15893         (*thumb32_umaxsi3): Likewise.
15894         (*thumb2_uminsi3): Likewise.
15895         (*thumb2_negdi2): Likewise.
15896         (*thumb2_abssi2): Likewise.
15897         (*thumb2_neg_abss): Likewise.
15898         (*thumb2_movsi_insn): Likewise.
15899         (tls_load_dot_plus_four): Likewise.
15900         (*thumb2_movhi_insn): Likewise.
15901         (*thumb2_mov_scc): Likewise.
15902         (*thumb2_mov_negs): Likewise.
15903         (*thumb2_mov_negs): Likewise.
15904         (*thumb2_mov_nots): Likewise.
15905         (*thumb2_mov_nots): Likewise.
15906         (*thumb2_movsicc_): Likewise.
15907         (*thumb2_movsfcc_soft_insn): Likewise.
15908         (*thumb2_indirect_jump): Likewise.
15909         (*thumb2_and_scc): Likewise.
15910         (*thumb2_ior_scc): Likewise.
15911         (*thumb2_ior_scc_strict_it): Likewise.
15912         (*thumb2_cond_move): Likewise.
15913         (*thumb2_cond_arith): Likewise.
15914         (*thumb2_cond_ari): Likewise.
15915         (*thumb2_cond_sub): Likewise.
15916         (*thumb2_negscc): Likewise.
15917         (*thumb2_movcond): Likewise.
15918         (thumb2_casesi_internal): Likewise.
15919         (thumb2_casesi_internal_pic): Likewise.
15920         (*thumb2_alusi3_short): Likewise.
15921         (*thumb2_mov<mode>_shortim): Likewise.
15922         (*thumb2_addsi_short): Likewise.
15923         (*thumb2_subsi_short): Likewise.
15924         (thumb2_addsi3_compare0): Likewise.
15925         (*thumb2_cbz): Likewise.
15926         (*thumb2_cbnz): Likewise.
15927         (*thumb2_one_cmplsi2_short): Likewise.
15928         (*thumb2_negsi2_short): Likewise.
15929         (*orsi_notsi_si): Likewise.
15930         * config/arm/arm1020e.md: Update with new attributes.
15931         * config/arm/arm1026ejs.md: Update with new attributes.
15932         * config/arm/arm1136jfs.md: Update with new attributes.
15933         * config/arm/arm926ejs.md: Update with new attributes.
15934         * config/arm/cortex-a15.md: Update with new attributes.
15935         * config/arm/cortex-a5.md: Update with new attributes.
15936         * config/arm/cortex-a53.md: Update with new attributes.
15937         * config/arm/cortex-a7.md: Update with new attributes.
15938         * config/arm/cortex-a8.md: Update with new attributes.
15939         * config/arm/cortex-a9.md: Update with new attributes.
15940         * config/arm/cortex-m4.md: Update with new attributes.
15941         * config/arm/cortex-r4.md: Update with new attributes.
15942         * config/arm/fa526.md: Update with new attributes.
15943         * config/arm/fa606te.md: Update with new attributes.
15944         * config/arm/fa626te.md: Update with new attributes.
15945         * config/arm/fa726te.md: Update with new attributes.
15947 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15949         * config/aarch64/aarch64-simd.md
15950         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
15951         <vwx> iterator to ensure correct register choice.
15952         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
15953         (aarch64_sqdmull_n<mode>): Likewise.
15954         (aarch64_sqdmull2_n<mode>_internal): Likewise.
15955         * config/aarch64/arm_neon.h
15956         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
15957         (vml<as><q>_n_<su>16): Likewise.
15958         (vml<as>l_high_lane<q>_<su>16): Likewise.
15959         (vml<as>l_high_n_<su>16): Likewise.
15960         (vml<as>l_lane<q>_<su>16): Likewise.
15961         (vml<as>l_n_<su>16): Likewise.
15962         (vmul<q>_lane<q>_<su>16): Likewise.
15963         (vmul<q>_n_<su>16): Likewise.
15964         (vmull_lane<q>_<su>16): Likewise.
15965         (vmull_n_<su>16): Likewise.
15966         (vmull_high_lane<q>_<su>16): Likewise.
15967         (vmull_high_n_<su>16): Likewise.
15968         (vqrdmulh<q>_n_s16): Likewise.
15970 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
15972         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
15973         have the correct lane parameter.
15975 2013-09-06  Richard Biener <rguenther@suse.de>
15977         * cfganal.c (control_dependences::~control_dependences):
15978         Properly free all of the vector.
15980 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
15982         PR target/58269
15983         * config/i386/i386.c (ix86_conditional_register_usage):
15984         Proper initialize extended SSE registers.
15986 2013-09-06  Jan Hubicka  <jh@suse.cz>
15988         PR tree-optimization/58311
15989         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
15991 2013-09-06  Jan Hubicka  <jh@suse.cz>
15993         * Makefile.in (tree-sra.o): Update dependencies.
15994         * tree-sra.c: Include ipa-utils.h
15995         (scan_function): Use recursive_call_p.
15996         (has_caller_p): New function.
15997         (cgraph_for_node_and_aliases): Count also callers of aliases.
15999 2013-09-06  Jan Hubicka  <jh@suse.cz>
16001         PR middle-end/58094
16002         * cgraph.h (symtab_semantically_equivalent_p): Declare.
16003         * tree-tailcall.c: Include ipa-utils.h.
16004         (find_tail_calls): Use it.
16005         * ipa-pure-const.c (check_call): Likewise.
16006         * ipa-utils.c (recursive_call_p): New function.
16007         * ipa-utils.h (recursive_call_p): Dclare.
16008         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
16009         (symtab_semantically_equivalent_p): New function.
16010         * Makefile.in (tree-tailcall.o): Update dependencies.
16012 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
16014         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
16015         non-inlinable part.
16017 2013-09-06  Richard Biener  <rguenther@suse.de>
16019         * lto-streamer.h (lto_global_var_decls): Remove.
16020         * Makefile.in (OBJS): Remove lto-symtab.o.
16021         (lto-symtab.o): Remove.
16022         (GTFILES): Remove lto-symtab.c
16023         * lto-symtab.c: Move to lto/
16025 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16027         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
16028         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
16029         (UNSPEC_FPINT_RINT): New constant definitions.
16030         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
16031         definition with 2 attributes.
16032         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
16033         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
16034         definitions.
16036 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16038         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
16039         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
16040         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
16041         attribute to "z196_alone".
16042         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
16043         "zEC12_simple".
16045 2013-09-06  Richard Biener  <rguenther@suse.de>
16047         * basic-block.h (class control_dependences): New.
16048         * tree-ssa-dce.c (control_dependence_map): Remove.
16049         (cd): New global.
16050         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
16051         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
16052         find_pdom, find_control_dependence, find_all_control_dependences):
16053         Move to cfganal.c.
16054         (mark_control_dependent_edges_necessary,
16055         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
16056         tree_dce_done, perform_tree_ssa_dce): Adjust.
16057         * cfganal.c (set_control_dependence_map_bit,
16058         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
16059         find_all_control_dependences): Move from tree-ssa-dce.c and
16060         implement as methods of control_dependences class.
16061         (control_dependences::control_dependences): New.
16062         (control_dependences::~control_dependences): Likewise.
16063         (control_dependences::get_edges_dependent_on): Likewise.
16064         (control_dependences::get_edge): Likewise.
16066 2013-09-04  Jan Hubicka  <jh@suse.cz>
16068         * tree.c (types_same_for_odr): Drop overactive check.
16069         * ipa-devirt.c (hash_type_name): Likewise.
16071 2013-09-04  Jan Hubicka  <jh@suse.cz>
16073         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
16074         (analyze_functions): ... here.
16076 2013-09-04  Jan Hubicka  <jh@suse.cz>
16078         PR middle-end/58201
16079         * cgraphunit.c (analyze_functions): Clear AUX fields
16080         after processing; initialize assembler name has.
16082 2013-09-05  Jeff Law  <law@redhat.com>
16084         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
16085         from thread_around_empty_block.  Record threading path into PATH.
16086         Recurse if threading through the initial block is successful.
16087         (thread_across_edge): Corresponding changes to slightly simplify.
16089 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16091         * config/aarch64/aarch64.md
16092         (type): Remove frecpe, frecps, frecpx.
16093         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
16094         fix to be a TARGET_SIMD instruction.
16095         (aarch64_frecps): Remove.
16096         * config/aarch64/aarch64-simd.md
16097         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
16098         (aarch64_frecps<mode>): Handle all float/vector of float modes.
16100 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16101             Sofiane Naci  <sofiane.naci@arm.com>
16103         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
16104         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
16105         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
16106         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
16107         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
16108         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
16109         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
16110         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
16111         into "clz, "rbit".  Rename "shift" to "shift_imm".
16112         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
16113         changes.  Update for attribute changes all occurrences of arlo_* and
16114         shift* types.
16115         * config/arm/arm-fixed.md: Update for attribute changes
16116         all occurrences of arlo_* types.
16117         * config/arm/thumb2.md: Update for attribute changes all occurrences
16118         of arlo_* types.
16119         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
16120         (cortexa7_older_only): Likewise.
16121         (cortexa7_younger):  Likewise.
16122         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
16123         (1020alu_shift_op): Likewise.
16124         (1020alu_shift_reg_op): Likewise.
16125         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
16126         (alu_shift_op): Likewise.
16127         (alu_shift_reg_op): Likewise.
16128         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
16129         (11_alu_shift_op): Likewise.
16130         (11_alu_shift_reg_op): Likewise.
16131         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
16132         (9_alu_shift_reg_op): Likewise.
16133         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
16134         attribute changes.
16135         (cortex_a15_alu_shift): Likewise.
16136         (cortex_a15_alu_shift_reg): Likewise.
16137         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
16138         attribute changes.
16139         (cortex_a5_alu_shift): Likewise.
16140         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
16141         attribute changes.
16142         (cortex_a53_alu_shift): Likewise.
16143         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
16144         attribute changes.
16145         (cortex_a7_alu_reg): Likewise.
16146         (cortex_a7_alu_shift): Likewise.
16147         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
16148         attribute changes.
16149         (cortex_a8_alu_shift): Likewise.
16150         (cortex_a8_alu_shift_reg): Likewise.
16151         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
16152         (cortex_a9_dp_shift): Likewise.
16153         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
16154         attribute changes.
16155         * config/arm/cortex-r4.md
16156         (cortex_r4_alu): Update for attribute changes.
16157         (cortex_r4_mov): Likewise.
16158         (cortex_r4_alu_shift_reg): Likewise.
16159         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
16160         (526_alu_shift_op): Likewise.
16161         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
16162         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
16163         (626te_alu_shift_op): Likewise.
16164         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
16165         (726te_alu_shift_op): Likewise.
16166         (726te_alu_shift_reg_op): Likewise.
16167         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
16168         (mp626_alu_shift_op): Likewise.
16169         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
16170         (pj4_alu_conds): Likewise.
16171         (pj4_shift): Likewise.
16172         (pj4_shift_conds): Likewise.
16173         (pj4_alu_shift): Likewise.
16174         (pj4_alu_shift_conds): Likewise.
16175         * config/aarch64/aarch64.md: Update for attribute change
16176         all occurrences of arlo_* and shift* types.
16178 2013-09-05  Mike Stump  <mikestump@comcast.net>
16180         * tree.h: Move documentation for tree_function_decl to tree-core.h
16181         with the declaration.
16183 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
16185         PR target/58139
16186         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
16187         looking for widest mode.
16189 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
16191         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
16193 2013-09-05  Richard Biener  <rguenther@suse.de>
16195         PR tree-optimization/58137
16196         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
16197         Do not create vectors of pointers.
16198         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
16199         types for the components of the vector initializer.
16200         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
16201         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
16203 2013-09-05  Martin Jambor  <mjambor@suse.cz>
16205         * ipa-prop.c (remove_described_reference): Accept missing references,
16206         return false if that hppens, otherwise return true.
16207         (cgraph_node_for_jfunc): New function.
16208         (try_decrement_rdesc_refcount): Likewise.
16209         (try_make_edge_direct_simple_call): Use them.
16210         (ipa_edge_removal_hook): Remove references from rdescs.
16211         (ipa_edge_duplication_hook): Clone rdescs and their references
16212         when the new edge has the same caller as the old one.
16213         * cgraph.c (cgraph_resolve_speculation): Remove speculative
16214         reference before removing any edges.
16216 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
16218         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
16219         initial store.
16220         * thumb2.md (thumb2_storewb_parisi): New pattern.
16222 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
16224         * config/aarch64/aarch64-option-extensions.def: Add
16225         AARCH64_OPT_EXTENSION of 'crc'.
16226         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
16227         (AARCH64_ISA_CRC): Ditto.
16228         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
16229         description of the CRC extension.
16231 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16233         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
16234         * config/rs6000/linux.h: Ditto.
16235         * alpha/linux.h: Ditto.
16236         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
16237         no_c99_libc_has_function.
16238         * config/c6x/uclinux-elf.h: Ditto.
16239         * config/lm32/uclinux-elf.h: Ditto.
16240         * config/m68k/uclinux.h: Ditto.
16241         * config/moxie/uclinux.h: Ditto.
16242         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
16243         (crisv32-*-linux*, cris-*-linux*): Ditto.
16244         * config/bfin/bfin.c: Include "tm_p.h".
16246 2013-09-05  Richard Biener  <rguenther@suse.de>
16248         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
16249         check for a definition without a basic-block.
16251 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
16252             Sofiane Naci <sofiane.naci@arm.com>
16254         * config/aarch64/aarch64.md
16255         (*movti_aarch64): Rename r_2_f and f_2_r.
16256         (*movsf_aarch64): Likewise.
16257         (*movdf_aarch64): Likewise.
16258         (*movtf_aarch64): Likewise.
16259         (aarch64_movdi_<mode>low): Likewise.
16260         (aarch64_movdi_<mode>high): Likewise.
16261         (aarch64_mov<mode>high_di): Likewise.
16262         (aarch64_mov<mode>low_di): Likewise.
16263         (aarch64_movtilow_tilow): Likewise.
16264         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
16265         values to config/arm/types.md
16266         (attribute "conds"): Update for attribute change.
16267         (anddi3_insn): Likewise.
16268         (iordi3_insn): Likewise.
16269         (xordi3_insn): Likewise.
16270         (one_cmpldi2): Likewise.
16271         * config/arm/types.md (type): Add Neon types.
16272         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
16273         use "type" attribute.
16274         (movmisalign<mode>_neon_store): Likewise.
16275         (movmisalign<mode>_neon_load): Likewise.
16276         (vec_set<mode>_internal): Likewise.
16277         (vec_setv2di_internal): Likewise.
16278         (vec_extract<mode>): Likewise.
16279         (vec_extractv2di): Likewise.
16280         (add<mode>3_neon): Likewise.
16281         (adddi3_neon): Likewise.
16282         (sub<mode>3_neon): Likewise.
16283         (subdi3_neon): Likewise.
16284         (mul<mode>3_neon): Likewise.
16285         (mul<mode>3add<mode>_neon): Likewise.
16286         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16287         (fma<VCVTF:mode>4)): Likewise.
16288         (fma<VCVTF:mode>4_intrinsic): Likewise.
16289         (fmsub<VCVTF:mode>4)): Likewise.
16290         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
16291         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
16292         (ior<mode>3): Likewise.
16293         (and<mode>3): Likewise.
16294         (anddi3_neon): Likewise.
16295         (orn<mode>3_neon): Likewise.
16296         (orndi3_neon): Likewise.
16297         (bic<mode>3_neon): Likewise.
16298         (bicdi3_neon): Likewise.
16299         (xor<mode>3): Likewise.
16300         (one_cmpl<mode>2): Likewise.
16301         (abs<mode>2): Likewise.
16302         (neg<mode>2): Likewise.
16303         (umin<mode>3_neon): Likewise.
16304         (umax<mode>3_neon): Likewise.
16305         (smin<mode>3_neon): Likewise.
16306         (smax<mode>3_neon): Likewise.
16307         (vashl<mode>3): Likewise.
16308         (vashr<mode>3_imm): Likewise.
16309         (vlshr<mode>3_imm): Likewise.
16310         (ashl<mode>3_signed): Likewise.
16311         (ashl<mode>3_unsigned): Likewise.
16312         (neon_load_count): Likewise.
16313         (ashldi3_neon_noclobber): Likewise.
16314         (signed_shift_di3_neon): Likewise.
16315         (unsigned_shift_di3_neon): Likewise.
16316         (ashrdi3_neon_imm_noclobber): Likewise.
16317         (lshrdi3_neon_imm_noclobber): Likewise.
16318         (widen_ssum<mode>3): Likewise.
16319         (widen_usum<mode>3): Likewise.
16320         (quad_halves_<code>v4si): Likewise.
16321         (quad_halves_<code>v4sf): Likewise.
16322         (quad_halves_<code>v8hi): Likewise.
16323         (quad_halves_<code>v16qi): Likewise.
16324         (reduc_splus_v2di): Likewise.
16325         (neon_vpadd_internal<mode>): Likewise.
16326         (neon_vpsmin<mode>): Likewise.
16327         (neon_vpsmax<mode>): Likewise.
16328         (neon_vpumin<mode>): Likewise.
16329         (neon_vpumax<mode>): Likewise.
16330         (ss_add<mode>_neon): Likewise.
16331         (us_add<mode>_neon): Likewise.
16332         (ss_sub<mode>_neon): Likewise.
16333         (us_sub<mode>_neon): Likewise.
16334         (neon_vadd<mode>_unspec): Likewise.
16335         (neon_vaddl<mode>): Likewise.
16336         (neon_vaddw<mode>): Likewise.
16337         (neon_vhadd<mode>): Likewise.
16338         (neon_vqadd<mode>): Likewise.
16339         (neon_vaddhn<mode>): Likewise.
16340         (neon_vmul<mode>): Likewise.
16341         (neon_vmla<mode>): Likewise.
16342         (neon_vmlal<mode>): Likewise.
16343         (neon_vmls<mode>): Likewise.
16344         (neon_vmlsl<mode>): Likewise.
16345         (neon_vqdmulh<mode>): Likewise.
16346         (neon_vqdmlal<mode>): Likewise.
16347         (neon_vqdmlsl<mode>): Likewise.
16348         (neon_vmull<mode>): Likewise.
16349         (neon_vqdmull<mode>): Likewise.
16350         (neon_vsub<mode>_unspec): Likewise.
16351         (neon_vsubl<mode>): Likewise.
16352         (neon_vsubw<mode>): Likewise.
16353         (neon_vqsub<mode>): Likewise.
16354         (neon_vhsub<mode>): Likewise.
16355         (neon_vsubhn<mode>): Likewise.
16356         (neon_vceq<mode>): Likewise.
16357         (neon_vcge<mode>): Likewise.
16358         (neon_vcgeu<mode>): Likewise.
16359         (neon_vcgt<mode>): Likewise.
16360         (neon_vcgtu<mode>): Likewise.
16361         (neon_vcle<mode>): Likewise.
16362         (neon_vclt<mode>): Likewise.
16363         (neon_vcage<mode>): Likewise.
16364         (neon_vcagt<mode>): Likewise.
16365         (neon_vtst<mode>): Likewise.
16366         (neon_vabd<mode>): Likewise.
16367         (neon_vabdl<mode>): Likewise.
16368         (neon_vaba<mode>): Likewise.
16369         (neon_vabal<mode>): Likewise.
16370         (neon_vmax<mode>): Likewise.
16371         (neon_vmin<mode>): Likewise.
16372         (neon_vpaddl<mode>): Likewise.
16373         (neon_vpadal<mode>): Likewise.
16374         (neon_vpmax<mode>): Likewise.
16375         (neon_vpmin<mode>): Likewise.
16376         (neon_vrecps<mode>): Likewise.
16377         (neon_vrsqrts<mode>): Likewise.
16378         (neon_vqabs<mode>): Likewise.
16379         (neon_vqneg<mode>): Likewise.
16380         (neon_vcls<mode>): Likewise.
16381         (clz<mode>2): Likewise.
16382         (popcount<mode>2): Likewise.
16383         (neon_vrecpe): Likewise.
16384         (neon_vrsqrte): Likewise.
16385         (neon_vget_lane<mode>_sext_internal): Likewise.
16386         (neon_vget_lane<mode>_zext_internal): Likewise.
16387         (neon_vdup_n<mode>): Likewise.
16388         (neon_vdup_nv2di): Likewise.
16389         (neon_vdpu_lane<mode>_internal): Likewise.
16390         (neon_vswp<mode>): Likewise.
16391         (float<mode><V_cvtto>2): Likewise.
16392         (floatuns<mode><V_cvtto>2): Likewise.
16393         (fix_trunc<mode><V_cvtto>)2): Likewise
16394         (fixuns_trunc<mode><V_cvtto)2): Likewise.
16395         (neon_vcvt<mode>): Likewise.
16396         (neon_vcvtv4sfv4hf): Likewise.
16397         (neon_vcvtv4hfv4sf): Likewise.
16398         (neon_vcvt_n<mode>): Likewise.
16399         (neon_vmovn<mode>): Likewise.
16400         (neon_vqmovn<mode>): Likewise.
16401         (neon_vqmovun<mode>): Likewise.
16402         (neon_vmovl<mode>): Likewise.
16403         (neon_vmul_lane<mode>): Likewise.
16404         (neon_vmull_lane<mode>): Likewise.
16405         (neon_vqdmull_lane<mode>): Likewise.
16406         (neon_vqdmulh_lane<mode>): Likewise.
16407         (neon_vmla_lane<mode>): Likewise.
16408         (neon_vmlal_lane<mode>): Likewise.
16409         (neon_vqdmlal_lane<mode>): Likewise.
16410         (neon_vmls_lane<mode>): Likewise.
16411         (neon_vmlsl_lane<mode>): Likewise.
16412         (neon_vqdmlsl_lane<mode>): Likewise.
16413         (neon_vext<mode>): Likewise.
16414         (neon_vrev64<mode>): Likewise.
16415         (neon_vrev32<mode>): Likewise.
16416         (neon_vrev16<mode>): Likewise.
16417         (neon_vbsl<mode>_internal): Likewise.
16418         (neon_vshl<mode>): Likewise.
16419         (neon_vqshl<mode>): Likewise.
16420         (neon_vshr_n<mode>): Likewise.
16421         (neon_vshrn_n<mode>): Likewise.
16422         (neon_vqshrn_n<mode>): Likewise.
16423         (neon_vqshrun_n<mode>): Likewise.
16424         (neon_vshl_n<mode>): Likewise.
16425         (neon_vqshl_n<mode>): Likewise.
16426         (neon_vqshlu_n<mode>): Likewise.
16427         (neon_vshll_n<mode>): Likewise.
16428         (neon_vsra_n<mode>): Likewise.
16429         (neon_vsri_n<mode>): Likewise.
16430         (neon_vsli_n<mode>): Likewise.
16431         (neon_vtbl1v8qi): Likewise.
16432         (neon_vtbl2v8qi): Likewise.
16433         (neon_vtbl3v8qi): Likewise.
16434         (neon_vtbl4v8qi): Likewise.
16435         (neon_vtbx1v8qi): Likewise.
16436         (neon_vtbx2v8qi): Likewise.
16437         (neon_vtbx3v8qi): Likewise.
16438         (neon_vtbx4v8qi): Likewise.
16439         (neon_vtrn<mode>_internal): Likewise.
16440         (neon_vzip<mode>_internal): Likewise.
16441         (neon_vuzp<mode>_internal): Likewise.
16442         (neon_vld1<mode>): Likewise.
16443         (neon_vld1_lane<mode>): Likewise.
16444         (neon_vld1_dup<mode>): Likewise.
16445         (neon_vld1_dupv2di): Likewise.
16446         (neon_vst1<mode>): Likewise.
16447         (neon_vst1_lane<mode>): Likewise.
16448         (neon_vld2<mode>): Likewise.
16449         (neon_vld2_lane<mode>): Likewise.
16450         (neon_vld2_dup<mode>): Likewise.
16451         (neon_vst2<mode>): Likewise.
16452         (neon_vst2_lane<mode>): Likewise.
16453         (neon_vld3<mode>): Likewise.
16454         (neon_vld3qa<mode>): Likewise.
16455         (neon_vld3qb<mode>): Likewise.
16456         (neon_vld3_lane<mode>): Likewise.
16457         (neon_vld3_dup<mode>): Likewise.
16458         (neon_vst3<mode>): Likewise.
16459         (neon_vst3qa<mode>): Likewise.
16460         (neon_vst3qb<mode>): Likewise.
16461         (neon_vst3_lane<mode>): Likewise.
16462         (neon_vld4<mode>): Likewise.
16463         (neon_vld4qa<mode>): Likewise.
16464         (neon_vld4qb<mode>): Likewise.
16465         (neon_vld4_lane<mode>): Likewise.
16466         (neon_vld4_dup<mode>): Likewise.
16467         (neon_vst4<mode>): Likewise.
16468         (neon_vst4qa<mode>): Likewise.
16469         (neon_vst4qb<mode>): Likewise.
16470         (neon_vst4_lane<mode>): Likewise.
16471         (neon_vec_unpack<US>_lo_<mode>): Likewise.
16472         (neon_vec_unpack<US>_hi_<mode>): Likewise.
16473         (neon_vec_<US>mult_lo_<mode>): Likewise.
16474         (neon_vec_<US>mult_hi_<mode>): Likewise.
16475         (neon_vec_<US>shiftl_<mode>): Likewise.
16476         (neon_unpack<US>_<mode>): Likewise.
16477         (neon_vec_<US>mult_<mode>): Likewise.
16478         (vec_pack_trunc_<mode>): Likewise.
16479         (neon_vec_pack_trunk_<mode>): Likewise.
16480         (neon_vabd<mode>_2): Likewise.
16481         (neon_vabd<mode>_3): Likewise.
16482         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
16483         (thumb2_movsi_vfp): Likewise.
16484         (movdi_vfp): Likewise.
16485         (movdi_vfp_cortexa8): Likewise.
16486         (movhf_vfp_neon): Likewise.
16487         (movhf_vfp): Likewiwse.
16488         (movsf_vfp): Likewiwse.
16489         (thumb2_movsf_vfp): Likewiwse.
16490         (movdf_vfp): Likewise.
16491         (thumb2_movdf_vfp): Likewise.
16492         (movsfcc_vfp): Likewise.
16493         (thumb2_movsfcc_vfp): Likewise.
16494         (movdfcc_vfp): Likewise.
16495         (thumb2_movdfcc_vfp): Likewise.
16496         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
16497         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
16498         (v10_v2c): Likewise.
16499         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
16500         attribute change.
16501         (cortex_a15_neon_int_2): Likewise.
16502         (cortex_a15_neon_int_3): Likewise.
16503         (cortex_a15_neon_int_4): Likewise.
16504         (cortex_a15_neon_int_5): Likewise.
16505         (cortex_a15_neon_vqneg_vqabs): Likewise.
16506         (cortex_a15_neon_vmov): Likewise.
16507         (cortex_a15_neon_vaba): Likewise.
16508         (cortex_a15_neon_vaba_qqq): Likewise.
16509         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16510         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16511         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
16512         scalar_64_32_long_scalar): Likewise.
16513         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16514         (cortex_a15_neon_mla_qqq_8_16): Likewise.
16515         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16516         lotype_qdd_64_32_long): Likewise.
16517         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16518         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16519         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
16520         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16521         (cortex_a15_neon_shift_1): Likewise.
16522         (cortex_a15_neon_shift_2): Likewise.
16523         (cortex_a15_neon_shift_3): Likewise.
16524         (cortex_a15_neon_vshl_ddd): Likewise.
16525         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16526         (cortex_a15_neon_vsra_vrsra): Likewise.
16527         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
16528         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
16529         (cortex_a15_neon_fp_vmul_ddd): Likewise.
16530         (cortex_a15_neon_fp_vmul_qqd): Likewise.
16531         (cortex_a15_neon_fp_vmla_ddd): Likewise.
16532         (cortex_a15_neon_fp_vmla_qqq): Likewise.
16533         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
16534         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
16535         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16536         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16537         (cortex_a15_neon_bp_simple): Likewise.
16538         (cortex_a15_neon_bp_2cycle): Likewise.
16539         (cortex_a15_neon_bp_3cycle): Likewise.
16540         (cortex_a15_neon_vld1_1_2_regs): Likewise.
16541         (cortex_a15_neon_vld1_3_4_regs): Likewise.
16542         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16543         (cortex_a15_neon_vld2_4_regs): Likewise.
16544         (cortex_a15_neon_vld3_vld4): Likewise.
16545         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16546         (cortex_a15_neon_vst1_3_4_regs): Likewise.
16547         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
16548         (cortex_a15_neon_vst3_vst4): Likewise.
16549         (cortex_a15_neon_vld1_vld2_lane): Likewise.
16550         (cortex_a15_neon_vld3_vld4_lane" 10
16551         (cortex_a15_neon_vst1_vst2_lane): Likewise.
16552         (cortex_a15_neon_vst3_vst4_lane): Likewise.
16553         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
16554         (cortex_a15_neon_ldm_2): Likewise.0
16555         (cortex_a15_neon_stm_2): Likewise.
16556         (cortex_a15_neon_mcr): Likewise.
16557         (cortex_a15_neon_mcr_2_mcrr): Likewise.
16558         (cortex_a15_neon_mrc): Likewise.
16559         (cortex_a15_neon_mrrc): Likewise.
16560         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
16561         change.
16562         (cortex_a15_alu_shift): Likewise.
16563         (cortex_a15_alu_shift_reg): Likewise.
16564         (cortex_a15_mult32): Likewise.
16565         (cortex_a15_mult64): Likewise.
16566         (cortex_a15_block): Likewise.
16567         (cortex_a15_branch): Likewise.
16568         (cortex_a15_load1): Likewise.
16569         (cortex_a15_load3): Likewise.
16570         (cortex_a15_store1): Likewise.
16571         (cortex_a15_store3): Likewise.
16572         (cortex_a15_call): Likewise.
16573         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
16574         (cortex_a5_f2r): Likewise.
16575         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
16576         change.
16577         (cortex_a53_f2r): Likewise.
16578         * config/arm/cortex-a7.md
16579         (cortex_a7_branch): Update for attribute change.
16580         (cortex_a7_call): Likewise.
16581         (cortex_a7_alu_imm): Likewise.
16582         (cortex_a7_alu_reg): Likewise.
16583         (cortex_a7_alu_shift): Likewise.
16584         (cortex_a7_mul): Likewise.
16585         (cortex_a7_load1): Likewise.
16586         (cortex_a7_store1): Likewise.
16587         (cortex_a7_load2): Likewise.
16588         (cortex_a7_store2): Likewise.
16589         (cortex_a7_load3): Likewise.
16590         (cortex_a7_store3): Likewise.
16591         (cortex_a7_load4): Likewise.
16592         (cortex_a7_store4): Likewise.
16593         (cortex_a7_fpalu): Likewise.
16594         (cortex_a7_fconst): Likewise.
16595         (cortex_a7_fpmuls): Likewise.
16596         (cortex_a7_neon_mul): Likewise.
16597         (cortex_a7_fpmacs): Likewise.
16598         (cortex_a7_neon_mla: Likewise.
16599         (cortex_a7_fpmuld: Likewise.
16600         (cortex_a7_fpmacd: Likewise.
16601         (cortex_a7_fpfmad: Likewise.
16602         (cortex_a7_fdivs: Likewise.
16603         (cortex_a7_fdivd: Likewise.
16604         (cortex_a7_r2f: Likewise.
16605         (cortex_a7_f2r: Likewise.
16606         (cortex_a7_f_flags: Likewise.
16607         (cortex_a7_f_loads: Likewise.
16608         (cortex_a7_f_loadd: Likewise.
16609         (cortex_a7_f_stores: Likewise.
16610         (cortex_a7_f_stored: Likewise.
16611         (cortex_a7_neon): Likewise.
16612         * config/arm/cortex-a8-neon.md
16613         (cortex_a8_neon_mrc): Update for attribute change.
16614         (cortex_a8_neon_mrrc): Likewise.
16615         (cortex_a8_neon_int_1): Likewise.
16616         (cortex_a8_neon_int_2): Likewise.
16617         (cortex_a8_neon_int_3): Likewise.
16618         (cortex_a8_neon_int_4): Likewise.
16619         (cortex_a8_neon_int_5): Likewise.
16620         (cortex_a8_neon_vqneg_vqabs): Likewise.
16621         (cortex_a8_neon_vmov): Likewise.
16622         (cortex_a8_neon_vaba): Likewise.
16623         (cortex_a8_neon_vaba_qqq): Likewise.
16624         (cortex_a8_neon_vsma): Likewise.
16625         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16626         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16627         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16628         long_scalar): Likewise.
16629         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16630         (cortex_a8_neon_mla_qqq_8_16): Likewise.
16631         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16632         long_scalar_qdd_64_32_long): Likewise.
16633         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16634         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16635         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
16636         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16637         (cortex_a8_neon_shift_1): Likewise.
16638         (cortex_a8_neon_shift_2): Likewise.
16639         (cortex_a8_neon_shift_3): Likewise.
16640         (cortex_a8_neon_vshl_ddd): Likewise.
16641         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16642         (cortex_a8_neon_vsra_vrsra): Likewise.
16643         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
16644         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
16645         (cortex_a8_neon_fp_vsum): Likewise.
16646         (cortex_a8_neon_fp_vmul_ddd): Likewise.
16647         (cortex_a8_neon_fp_vmul_qqd): Likewise.
16648         (cortex_a8_neon_fp_vmla_ddd): Likewise.
16649         (cortex_a8_neon_fp_vmla_qqq): Likewise.
16650         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
16651         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
16652         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16653         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16654         (cortex_a8_neon_bp_simple): Likewise.
16655         (cortex_a8_neon_bp_2cycle): Likewise.
16656         (cortex_a8_neon_bp_3cycle): Likewise.
16657         (cortex_a8_neon_ldr): Likewise.
16658         (cortex_a8_neon_str): Likewise.
16659         (cortex_a8_neon_vld1_1_2_regs): Likewise.
16660         (cortex_a8_neon_vld1_3_4_regs): Likewise.
16661         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16662         (cortex_a8_neon_vld2_4_regs): Likewise.
16663         (cortex_a8_neon_vld3_vld4): Likewise.
16664         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16665         (cortex_a8_neon_vst1_3_4_regs): Likewise.
16666         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
16667         (cortex_a8_neon_vst3_vst4): Likewise.
16668         (cortex_a8_neon_vld1_vld2_lane): Likewise.
16669         (cortex_a8_neon_vld3_vld4_lane): Likewise.
16670         (cortex_a8_neon_vst1_vst2_lane): Likewise.
16671         (cortex_a8_neon_vst3_vst4_lane): Likewise.
16672         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
16673         (cortex_a8_neon_mcr): Likewise.
16674         (cortex_a8_neon_mcr_2_mcrr): Likewise.
16675         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
16676         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
16677         change.
16678         (ca9_neon_mrrc): Likewise.
16679         (cortex_a9_neon_int_1): Likewise.
16680         (cortex_a9_neon_int_2): Likewise.
16681         (cortex_a9_neon_int_3): Likewise.
16682         (cortex_a9_neon_int_4): Likewise.
16683         (cortex_a9_neon_int_5): Likewise.
16684         (cortex_a9_neon_vqneg_vqabs): Likewise.
16685         (cortex_a9_neon_vmov): Likewise.
16686         (cortex_a9_neon_vaba): Likewise.
16687         (cortex_a9_neon_vaba_qqq): Likewise.
16688         (cortex_a9_neon_vsma): Likewise.
16689         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16690         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16691         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16692         long_scalar): Likewise.
16693         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16694         (cortex_a9_neon_mla_qqq_8_16): Likewise.
16695         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16696         long_scalar_qdd_64_32_long): Likewise.
16697         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16698         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16699         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
16700         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16701         (cortex_a9_neon_shift_1): Likewise.
16702         (cortex_a9_neon_shift_2): Likewise.
16703         (cortex_a9_neon_shift_3): Likewise.
16704         (cortex_a9_neon_vshl_ddd): Likewise.
16705         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16706         (cortex_a9_neon_vsra_vrsra): Likewise.
16707         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
16708         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
16709         (cortex_a9_neon_fp_vsum): Likewise.
16710         (cortex_a9_neon_fp_vmul_ddd): Likewise.
16711         (cortex_a9_neon_fp_vmul_qqd): Likewise.
16712         (cortex_a9_neon_fp_vmla_ddd): Likewise.
16713         (cortex_a9_neon_fp_vmla_qqq): Likewise.
16714         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
16715         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
16716         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16717         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16718         (cortex_a9_neon_bp_simple): Likewise.
16719         (cortex_a9_neon_bp_2cycle): Likewise.
16720         (cortex_a9_neon_bp_3cycle): Likewise.
16721         (cortex_a9_neon_ldr): Likewise.
16722         (cortex_a9_neon_str): Likewise.
16723         (cortex_a9_neon_vld1_1_2_regs): Likewise.
16724         (cortex_a9_neon_vld1_3_4_regs): Likewise.
16725         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16726         (cortex_a9_neon_vld2_4_regs): Likewise.
16727         (cortex_a9_neon_vld3_vld4): Likewise.
16728         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16729         (cortex_a9_neon_vst1_3_4_regs): Likewise.
16730         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
16731         (cortex_a9_neon_vst3_vst4): Likewise.
16732         (cortex_a9_neon_vld1_vld2_lane): Likewise.
16733         (cortex_a9_neon_vld3_vld4_lane): Likewise.
16734         (cortex_a9_neon_vst1_vst2_lane): Likewise.
16735         (cortex_a9_neon_vst3_vst4_lane): Likewise.
16736         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
16737         (cortex_a9_neon_mcr): Likewise.
16738         (cortex_a9_neon_mcr_2_mcrr): Likewise.
16739         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
16740         (cortex_a9_fps): Likewise.
16741         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
16742         change.
16743         (cortex_m4_fmuls): Likewise.
16744         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
16745         change.
16746         (cortex_r4_mrc): Likewise.
16747         * config/arm/iterators.md: Update comment referring to neon_type.
16748         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
16749         (iwmmxt_movsi_insn): Likewise.
16750         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
16751         attribute change.
16752         (pj4_core_to_vfp): Likewise.
16753         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
16754         attribute change.
16755         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
16756         (vfp_fstore): Likewise.
16757         * doc/md.texi: Change references to neon_type to refer to type.
16759 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
16761         * tree.h (DECL_BUILT_IN): Fix typo in comment.
16763 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
16765         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
16766         lglobl if not weak.
16768 2013-09-04  Easwaran Raman  <eraman@google.com>
16770         PR middle-end/57370
16771         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
16772         (build_and_add_sum): Use it.
16773         (appears_later_in_bb): Simplify code.
16775 2013-09-04  Teresa Johnson  <tejohnson@google.com>
16777         * dumpfile.c (dump_finish): Don't close stderr/stdout.
16779 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
16781         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
16783 2013-09-04  Jan Hubicka  <jh@suse.cz>
16785         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
16786         * ipa-devirt.c: Include diganostic.h
16787         (odr_type_d): Add types and types_set.
16788         (hash_type_name): Work for types with vtables during LTO.
16789         (odr_hasher::remove): Fix comment; destroy types_set.
16790         (add_type_duplicate): New function,
16791         (get_odr_type): Use it.
16792         (dump_type_inheritance_graph): Dump type duplicates.
16793         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
16794         graph.
16795         * tree.c (types_same_for_odr): Give exact answers on types with
16796         virtual tables.
16798 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
16800         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
16801         explaining their differences.
16803 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
16805         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
16807 2013-09-03  Jeff Law  <law@redhat.com>
16809         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
16810         when not threading through a joiner block.  Pass joiner/no joiner
16811         state to register_jump_thread.
16812         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
16813         state from argument rather than implying on path length.
16814         Dump the entire jump thread path into debugging dump.
16815         * tree-flow.h (register_jump_thread): Update prototype.
16817 2013-08-29  Xinliang David Li  <davidxl@google.com>
16819         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16820         Remove a trivial gcc_assert.
16822 2013-08-29  Xinliang David Li  <davidxl@google.com>
16824         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
16825         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
16826         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16827         Delay base decl alignment adjustment.
16828         * tree-vectorizer.c (vect_destroy_datarefs): New function.
16829         * tree-vectorizer.h: New data structure.
16830         (set_dr_misalignment): New function.
16831         (dr_misalignment): Ditto.
16832         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
16833         (vectorizable_load): Ditto.
16834         (ensure_base_align): New function.
16835         (vectorize_loops): Add dbg_cnt support.
16836         (execute_vect_slp): Ditto.
16837         * dbgcnt.def: New debug counter.
16838         * Makefile: New dependency.
16840 2013-09-03  Meador Inge  <meadori@codesourcery.com>
16842         Revert:
16844         2013-08-30  Meador Inge  <meadori@codesourcery.com>
16846         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
16848 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
16850         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
16851         function descriptor.
16853 2013-09-03  Richard Biener  <rguenther@suse.de>
16855         * tree-affine.c (add_elt_to_tree): Fix association issue,
16856         avoid useless converts and make sure to always return a
16857         properly typed result.
16859 2013-09-03  Richard Biener  <rguenther@suse.de>
16861         PR middle-end/57656
16862         * fold-const.c (negate_expr_p): Fix division case.
16863         (negate_expr): Likewise.
16865 2013-09-03  Richard Biener  <rguenther@suse.de>
16867         PR lto/58285
16868         * tree-streamer-out.c: Include tm.h.
16869         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
16871 2013-09-03  Jan Hubicka  <jh@suse.cz>
16873         * tree-profile.c (tree_profiling): Cleanup CFG when done.
16875 2013-09-03  Alan Modra  <amodra@gmail.com>
16877         * config.gcc (powerpc*-*-linux*): Add support for little-endian
16878         multilibs to big-endian target and vice versa.
16879         * config/rs6000/t-linux64: Use := assignment on all vars.
16880         (MULTILIB_EXTRA_OPTS): Remove fPIC.
16881         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
16882         * config/rs6000/t-linux64le: New file.
16883         * config/rs6000/t-linux64bele: New file.
16884         * config/rs6000/t-linux64lebe: New file.
16886 2013-09-02  Jan Hubicka  <jh@suse.cz>
16888         * ipa-inline-transform.c (inline_transform): Do not
16889         optimize_inline_calls when not optimizing.
16891 2013-09-02  Jan Hubicka  <jh@suse.cz>
16893         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
16894         duplicated nodes for assembler names.
16895         * symtab.c (symtab_unregister_node): Do not attempt to unlink
16896         hard registers from assembler name hash.
16898 2013-09-02  Jan Hubicka  <jh@suse.cz>
16900         * ipa-split.c (execute_split_functions): Split externally visible
16901         functions called once.
16903 2013-09-02  Martin Jambor  <mjambor@suse.cz>
16905         PR ipa/58106
16906         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
16907         linked list.  When finding the correct duplicate, also consider also
16908         the caller in additon to its inlined_to node.
16910 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
16912         * config/aarch64/aarch64-simd-builtins.def
16913         (dup_lane_scalar): Remove.
16914         * config/aarch64/aarch64-simd.md
16915         (aarch64_simd_dup): Add 'w->w' alternative.
16916         (aarch64_dup_lane<mode>): Allow for VALL.
16917         (aarch64_dup_lane_scalar<mode>): Remove.
16918         (aarch64_dup_lane_<vswap_width_name><mode>): New.
16919         (aarch64_get_lane_signed<mode>): Add w->w altenative.
16920         (aarch64_get_lane_unsigned<mode>): Likewise.
16921         (aarch64_get_lane<mode>): Likewise.
16922         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
16923         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
16924         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
16925         (VCON): Change container of V2SF.
16926         (vswap_width_name): Likewise.
16927         * config/aarch64/arm_neon.h
16928         (__aarch64_vdup_lane_any): New.
16929         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
16930         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
16931         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
16933 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
16935         PR middle-end/56382
16936         * expr.c (emit_move_complex): Do not move complex FP values as parts if
16937         the source or the destination is a single hard register.
16939 2013-09-02  Richard Biener  <rguenther@suse.de>
16941         PR middle-end/57511
16942         * tree-scalar-evolution.c (instantiate_scev_name): Allow
16943         non-linear SCEVs.
16945 2013-09-02  Richard Biener  <rguenther@suse.de>
16947         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
16948         arithmetic to sizetype.
16950 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
16952         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
16953         Find auto-increment use both before and after candidate.
16955 2013-09-02  Marek Polacek  <polacek@redhat.com>
16957         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
16959 2013-09-01  Jan Hubicka  <jh@suse.cz>
16961         * Makefile.in: Add ipa-profile.o
16962         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
16963         * cgraph.c (struct cgraph_propagate_frequency_data,
16964         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
16965         ipa-profile.c; replace cgraph_ by ipa_ prefix.
16966         * cgraph.h (cgraph_propagate_frequency): Remove.
16967         * ipa-inline-analysis.c: Include ipa-utils.h;
16968         drop duplicated cfgloop.h.
16969         (inline_update_callee_summaries): Update.
16970         * ipa-profile.c: New file.
16971         * ipa-utils.h (ipa_propagate_frequency): Declare.
16972         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
16973         data-streamer.h, value-prof.h.
16974         (symtab_remove_unreachable_nodes): Update profile.
16975         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
16976         account_time_size, cmp_counts, dump_histogram,
16977         ipa_profile_generate_summary, ipa_profile_write_summary,
16978         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
16979         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
16980         Move to ipa-profile.c.
16982 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
16984         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
16986 2013-09-01  Jan Hubicka  <jh@suse.cz>
16988         * common.opt (fdevirtualize-speculatively): New function.
16989         * invoke.texi (fdevirtualize-speculatively): Document.
16990         * ipa-devirt.c: Include ipa-inline.h
16991         (likely_target_p): New function.
16992         (ipa_devirt): New function.
16993         (gate_ipa_devirt): New function.
16994         (pass_data_ipa_devirt): New static var.
16995         (pass_ipa_devirt): Likewise.
16996         (make_pass_ipa_devirt): New function.
16997         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
16998         (common_handle_option): Disable devirtualization when
16999         value range profiling is available.
17000         * passes.def (pass_ipa_devirt): Add.
17001         * timever.def (TV_IPA_DEVIRT): New timevar.
17002         * tree-pass.h (make_pass_ipa_devirt):
17004 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
17006         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
17007         include sanitize(undefined).
17009 2013-08-31  Diego Novillo  <dnovillo@google.com>
17011         * Makefile.in (TREE_CORE_H): Define.
17012         (TREE_H): Use.
17013         (GTFILES): Add tree-core.h.
17014         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
17015         size the array.
17016         * tree-core.h: New file.
17017         Move all data structures, enum, typedefs, global
17018         declarations and constants from ...
17019         * tree.h: ... here.
17021 2013-08-31  Jan Hubicka  <jh@suse.cz>
17023         * bulitins.c (expand_builtin): Do not early exit for gcov
17024         instrumented functions.
17026 2013-08-31  Marek Polacek  <polacek@redhat.com>
17028         * ubsan.c: Include tm_p.h.
17030 2013-08-31  Jan Hubicka  <jh@suse.cz>
17032         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
17033         warning.
17035         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
17036         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
17037         * tree-cfg.c (verify_gimple_label): ... here.
17038         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
17039         (ipa_merge_profiles): New function.
17040         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
17041         (lto_input_function_body): Likewise.
17042         * ipa-utils.h (ipa_merge_profiles): Declare.
17043         * lto-streamer.h (lto_input_function_body): Update prototype.
17044         (emit_label_in_global_context_p): Remove.
17045         * lto-symtab.c: Include ipa-utils.h
17046         (lto_cgraph_replace_node): Use ipa_merge_profiles.
17048 2013-08-31  Jan Hubicka  <jh@suse.cz>
17050         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
17052 2013-08-31  Jan Hubicka  <jh@suse.cz>
17054         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
17056 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
17058         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
17059         "cmp" RTX before signed_comparison_operator check to account
17060         for "code" changes.
17062 2013-08-30  Jan Hubicka  <jh@suse.cz>
17064         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
17065         (detect_type_change_1): Rename to ...
17066         (detect_type_change): ... this one; early return on non-polymorphic
17067         types.
17068         (detect_type_change_ssa): Add comp_type parameter; update
17069         use of detect_type_change.
17070         (compute_complex_assign_jump_func): Add param_type parameter;
17071         update use of detect_type_change_ssa.
17072         (compute_complex_ancestor_jump_func): Likewise.
17073         (ipa_get_callee_param_type): New function.
17074         (ipa_compute_jump_functions_for_edge): Compute parameter type;
17075         update calls to the jump function computation functions.
17077 2013-08-30  Teresa Johnson  <tejohnson@google.com>
17078             Steven Bosscher  <steven@gcc.gnu.org>
17080         * cfgrtl.c (fixup_new_cold_bb): New routine.
17081         (commit_edge_insertions): Invoke fixup_partitions.
17082         (find_partition_fixes): New routine.
17083         (fixup_partitions): Ditto.
17084         (verify_hot_cold_block_grouping): Update comments.
17085         (rtl_verify_edges): Invoke find_partition_fixes.
17086         (rtl_verify_bb_pointers): Update comments.
17087         (rtl_verify_bb_layout): Ditto.
17088         * basic-block.h (probably_never_executed_edge_p): Declare.
17089         (fixup_partitions): Ditto.
17090         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
17091         * bb-reorder.c (sanitize_hot_paths): New function.
17092         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
17093         sanitize_hot_paths.
17094         * predict.c (probably_never_executed_edge_p): New routine.
17095         * cfg.c (check_bb_profile): Add partition insanity warnings.
17097 2013-08-30  Meador Inge  <meadori@codesourcery.com>
17099         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
17101 2013-08-30  Marek Polacek  <polacek@redhat.com>
17103         * Makefile.in (ubsan.o): Add.
17104         (c-family/c-ubsan.o): Add.
17105         (builtins.o): Add ubsan.h dependency.
17106         * ubsan.h: New file.
17107         * ubsan.c: New file.
17108         * common.opt: Add -fsanitize=undefined option.
17109         (flag_sanitize): Add variable.
17110         (fsanitize=): Add option.  Add Driver.
17111         (fsanitize=thread): Remove option.
17112         (fsanitize=address): Likewise.
17113         (static-libubsan): New option.
17114         * doc/invoke.texi: Document the new flag and -static-libubsan.
17115         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
17116         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
17117         * builtin-attrs.def (ATTR_COLD): Define.
17118         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17119         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
17120         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
17121         * flag-types.h (sanitize_code): New enum.
17122         * opts.c (common_handle_option): Parse command line arguments
17123         of -fsanitize=.  Add -fsanitize=unreachable option.
17124         * varasm.c (get_variable_section): Adjust.
17125         (assemble_noswitch_variable): Likewise.
17126         (assemble_variable): Likewise.
17127         (output_constant_def_contents): Likewise.
17128         (categorize_decl_for_section): Likewise.
17129         (place_block_symbol): Likewise.
17130         (output_object_block): Likewise.
17131         * builtins.def: Likewise.
17132         * toplev.c (compile_file): Likewise.
17133         (process_options): Likewise.
17134         * cppbuiltin.c: Likewise.
17135         * tsan.c (tsan_pass): Likewise.
17136         (tsan_gate): Likewise.
17137         (tsan_gate_O0): Likewise.
17138         * cfgexpand.c (partition_stack_vars): Likewise.
17139         (expand_stack_vars): Likewise.
17140         (defer_stack_allocation): Likewise.
17141         (expand_used_vars): Likewise.
17142         * cfgcleanup.c (old_insns_match_p): Likewise.
17143         * asan.c (asan_finish_file): Likewise.
17144         (asan_instrument): Likewise.
17145         (gate_asan): Likewise.
17146         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
17147         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
17148         (asan_global_struct): Use pointer_sized_int_node instead
17149         calling build_nonstandard_integer_type.
17150         (initialize_sanitizer_builtins): Likewise.
17151         (asan_finish_file): Likewise.
17152         * gcc.c: Document %{%:function(args):X}.
17153         (static_spec_functions): Add sanitize.
17154         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
17155         store funcval != NULL there.
17156         (do_spec_1): Adjust handle_spec_function caller.
17157         (handle_braces): Allow %:function(args) as condition.
17158         (sanitize_spec_function): New function.
17159         (ADD_STATIC_LIBUBSAN_LIBS): Define.
17160         (LIBUBSAN_SPEC): Likewise.
17161         (LIBUBSAN_EARLY_SPEC): Likewise.
17162         (SANITIZER_SPEC): Handle libubsan.
17163         (SANITIZER_EARLY_SPEC): Likewise.
17164         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
17165         instead of fsanitize=address.
17166         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
17167         instead of fsanitize=address*.
17168         * builtins.c: Include ubsan.h.
17169         (fold_builtin_0): Instrument __builtin_unreachable.
17170         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
17171         instead of flag_asan.
17172         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
17173         (pointer_sized_int_node): Define.
17174         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
17176 2013-08-30  Mike Stump  <mikestump@comcast.net>
17178         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
17179         with RE patterns.
17181 2013-08-29  Jan Hubicka  <jh@suse.cz>
17183         * cgraph.c (cgraph_function_body_availability): Handle weakref
17184         correctly.
17185         * passes.def: Remove pass_fixup_cfg.
17186         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
17187         track when we need to remove functions.
17188         (gate_ipa_inline): Execute inlining always; add comment why.
17189         (pass_data_ipa_inline): Remove TODO_remove_functions.
17190         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
17191         do not produce summaries.
17192         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
17193         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
17194         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
17195         constant pool and vtable.
17197 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
17199         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
17200         New arm_neon.h's internal macros to specify 64-bit constants.
17201         Avoid using stdint.h's macros.
17203 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
17205         * recog.c (verify_changes): Verify that changes[i].old is non-zero
17206         before applying REG_P.
17208 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
17210         PR tree-optimization/58277
17211         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
17212         after seeing too many stmts with vdef in between dombb and current
17213         bb, invalidate everything.
17215 2013-08-30  Richard Biener  <rguenther@suse.de>
17217         * fold-const.c (fold_single_bit_test): Fix overflow test.
17219 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
17221         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
17222         and which can live in a register, always retrieve the value on entry.
17223         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
17224         passed by invisible reference specially.
17225         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
17226         (vt_add_function_parameter): Correctly deal with a parameter passed by
17227         invisible reference.
17229 2013-08-30  Jan Hubicka  <jh@suse.cz>
17231         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
17233 2013-08-30  Richard Biener  <rguenther@suse.de>
17235         PR tree-optimization/58228
17236         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
17237         allow invariant loads in nested loop vectorization.
17239 2013-08-30  Richard Biener  <rguenther@suse.de>
17241         PR tree-optimization/58223
17242         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
17243         (has_anti_or_output_dependence): ... this and adjust to also
17244         look for output dependences.
17245         (mark_nodes_having_upstream_mem_writes): Adjust.
17246         (rdg_flag_uses): Likewise.
17248 2013-08-30  Richard Biener  <rguenther@suse.de>
17250         PR tree-optimization/58010
17251         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17252         assert that we have a loop-closed PHI.
17254 2013-08-29  Jan Hubicka  <jh@suse.cz>
17256         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
17257         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
17258         * lto-section-in.c (lto_free_function_in_decl_state): New function.
17259         (lto_free_function_in_decl_state_for_node): New function.
17261 2013-08-29  Xinliang David Li  <davidxl@google.com>
17263         * loop-unroll.c (report_unroll_peel): Minor message change.
17264         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
17265         Emit alignment peeling message with default -fopt-info.
17266         (vect_loop_versioning): Emit loop version info message.
17267         * tree-vectorizer.c (vectorize_loops): Minor message change.
17268         (execute_vect_slp): Ditto.
17270 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
17272         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
17273         of the clone from the DECL_NAME of the original function.
17275 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
17277         * passes.c (register_pass): Add overload.
17278         * tree-pass.h (register_pass): Forward declare it.  Add comment.
17280 2013-08-29  Jan Hubicka  <jh@suse.cz>
17282         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
17283         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
17284         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
17285         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17286         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
17287         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
17288         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
17289         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
17291 2013-08-29  Teresa Johnson  <tejohnson@google.com>
17293         * dumpfile.c (dump_loc): Output column number.
17294         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
17295         * doc/invoke.texi: Document optall -fopt-info flag.
17296         * profile.c (read_profile_edge_counts): Use new dump framework.
17297         (compute_branch_probabilities): Ditto.
17298         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
17299         when pass not in any opt group.
17300         * pass_manager.h (pass_manager::get_pass_profile): New method.
17301         * value-prof.c (check_counter): Use new dump framework.
17302         (check_ic_target): Ditto.
17303         * coverage.c (get_coverage_counts): Ditto.
17304         (coverage_init): Setup new dump framework.
17306 2013-08-29  Richard Biener  <rguenther@suse.de>
17308         PR tree-optimization/58246
17309         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
17310         handle the dominance check inside a basic-block.
17312 2013-08-29  Richard Biener  <rguenther@suse.de>
17314         PR middle-end/57287
17315         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
17316         of default defs that appear in abnormal PHI nodes.
17318 2013-08-29  Richard Biener  <rguenther@suse.de>
17320         PR tree-optimization/57685
17321         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
17322         single-use operands to avoid exponential complexity.
17324 2013-08-28  Dehao Chen  <dehao@google.com>
17326         * ipa-inline.c (edge_badness): Fix integer underflow.
17328 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
17330         * gtm-builtins.def (_ITM_free): Declare leaf.
17332 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
17334         PR target/58067
17335         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
17336         (*tls_local_dynamic_base_64_largepic): Likewise.
17337         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
17338         Remove predicate from call operand.
17339         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
17340         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
17342 2013-08-28  Jeff Law  <law@redhat.com>
17344         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
17345         checks for the number of predecessors and successors allowed.
17346         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
17347         which require copying a joiner block if there is a request which
17348         is a subpath that requires no joiner block copying.
17350 2013-08-28  Jan Hubicka  <jh@suse.cz>
17352         * lto-streamer-out.c (DFS_write_tree_body): Drop
17353         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
17354         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
17355         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
17356         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
17357         Do not read DECL_ERROR_ISSUED.
17358         (unpack_ts_decl_with_vis_value_fields): Do not read
17359         DECL_DEFER_OUTPUT.
17360         (lto_input_ts_binfo_tree_pointers): Do not read
17361         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
17362         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
17363         write DECL_ERROR_ISSUED..
17364         (pack_ts_decl_with_vis_value_fields): Do not write
17365         DECL_DEFER_OUTPUT.
17366         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
17367         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
17368         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
17369         * tree.h (tree_decl_common): Update comment.
17370         (DECL_ERROR_ISSUED): Remove.
17372 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
17374         PR middle-end/58257
17375         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
17377 2013-08-28  Jan Hubicka  <jh@suse.cz>
17379         * builtins.def (free): Declare leaf.
17381 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
17383         * gdbhooks.py: New.
17384         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
17385         * configure: Regenerate.
17387 2013-08-27  Martin Jambor  <mjambor@suse.cz>
17389         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
17390         (ipa_ancestor_jf_data): Likewise.
17391         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
17392         (ipa_get_jf_pass_through_type_preserved): New function.
17393         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
17394         (ipa_get_jf_ancestor_type_preserved): New function.
17395         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
17396         (ipa_get_jf_ancestor_result): Likewise.
17397         (propagate_vals_accross_pass_through): Use
17398         ipa_get_jf_pass_through_result to do all the value mappings.
17399         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
17400         type_preserved flag.
17401         (ipa_set_jf_cst_copy): New function.
17402         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
17403         (ipa_set_jf_arith_pass_through): Likewise.
17404         (ipa_set_ancestor_jf): Likewise.
17405         (compute_complex_assign_jump_func): Set type_preserved instead of
17406         punting.
17407         (ipa_compute_jump_functions_for_edge): Likewise.
17408         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
17409         (update_jump_functions_after_inlining): Update type_preserved.
17410         Explicitely create jump functions when combining one with pass_through.
17411         (ipa_write_jump_function): Stream the type_preserved flags.
17412         (ipa_read_jump_function): Likewise.
17414 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
17415             Aldy Hernandez  <aldyh@redhat.com>
17417         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
17418         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
17419         * function.h (struct function): Add has_force_vect_loops and
17420         has_simduid_loops.
17421         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
17422         * gimple.c (gimple_build_omp_critical): Add KIND argument and
17423         handle it.
17424         * gimple.def: Update CLAUSES comments.
17425         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
17426         (gimple_build_omp_for): Add argument to prototype.
17427         (gimple_omp_for_kind): New.
17428         (gimple_omp_for_set_kind): New.
17429         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
17430         GOVD_DATA_SHARE_CLASS.
17431         (enum omp_region_type): Add ORT_SIMD.
17432         (gimple_add_tmp_var): Handle ORT_SIMD.
17433         (gimplify_var_or_parm_decl): Same.
17434         (is_gimple_stmt): Same.
17435         (omp_firstprivatize_variable): Same.
17436         (omp_add_variable): Only use splay_tree_insert if lookup failed.
17437         (omp_notice_variable): Handle ORT_SIMD.
17438         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
17439         (omp_check_private): Handle ORT_SIMD.
17440         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17441         OMP_CLAUSE_SAFELEN.
17442         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
17443         Handle OMP_CLAUSE_LASTPRIVATE.
17444         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
17445         OMP_CLAUSE_SAFELEN.
17446         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
17447         (gimplify_expr): Handle OMP_SIMD.
17448         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
17449         (expand_GOMP_SIMD_VF): New.
17450         (expand_GOMP_SIMD_LAST_LANE): New.
17451         * internal-fn.def (GOMP_SIMD_LANE): New.
17452         (GOMP_SIMD_VF): New.
17453         (GOMP_SIMD_LAST_LANE): New.
17454         * omp-low.c: Include target.h.
17455         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
17456         OMP_CLAUSE_SAFELEN.
17457         (check_omp_nesting_restrictions): Same.
17458         (omp_max_vf): New.
17459         (lower_rec_simd_input_clauses): New.
17460         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
17461         OMP_CLAUSE_LINEAR.
17462         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
17463         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
17464         (expand_omp_build_assign): New.
17465         (expand_omp_for_init_counts): New.
17466         (expand_omp_for_init_vars): New.
17467         (extract_omp_for_update_vars): New.
17468         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
17469         and rewrite accordingly.
17470         (expand_omp_simd): New.
17471         (expand_omp_for): Use expand_omp_simd.
17472         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
17473         (lower_omp_for): Do not lower the body.
17474         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
17475         in their own loops.
17476         * tree-flow.h (find_omp_clause): Remove prototype.
17477         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
17478         forcing vectorization of the loop, or if flag_tree_vectorize.
17479         (gate_tree_if_conversion): Similarly.
17480         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
17481         gimple_build_omp_for.
17482         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
17483         * tree-parloops (create_parallel_loop): Pass kind argument to
17484         gimple_build_omp_for.
17485         * tree-pretty-print.c (dump_omp_clause): Add cases for
17486         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
17487         OMP_CLAUSE__SIMDUID_.
17488         (dump_generic_node): Handle OMP_SIMD.
17489         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
17490         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
17491         unroll OMP_SIMD loops here.
17492         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
17493         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
17494         loop->safelen.
17495         (vect_analyze_data_refs): Handle simd loops.
17496         * tree-vect-loop.c (vectorizable_live_operation): Handle
17497         IFN_GOMP_SIMD*.
17498         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
17499         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
17500         (vectorizable_load): Same.
17501         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
17502         (struct simduid_to_vf): New.
17503         (simduid_to_vf::hash): New.
17504         (simduid_to-vf::equal): New.
17505         (struct simd_array_to_simduid): New.
17506         (simd_array_to_simduid::hash): New.
17507         (simd_array_to_simduid::equal): New.
17508         (adjust_simduid_builtins): New.
17509         (struct note_simd_array_uses_struct): New.
17510         (note_simd_array_uses_cb): New.
17511         (note_simd_array_uses): New.
17512         (vectorize_loops): Handle simd hints and adjust simd builtins
17513         accordingly.
17514         * tree-vectorizer.h (struct _stmt_vec_info): Add
17515         simd_lane_access_p field.
17516         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
17517         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
17518         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
17519         (omp_clause_code_name): Same.
17520         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
17521         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
17522         * tree.def (OMP_SIMD): New entry.
17523         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
17524         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
17525         (OMP_CLAUSE_DECL): Adjust range for new clauses.
17526         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
17527         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
17528         (OMP_CLAUSE_LINEAR_STEP): New.
17529         (OMP_CLAUSE_SAFELEN_EXPR): New.
17530         (OMP_CLAUSE__SIMDUID__DECL): New.
17531         (find_omp_clause): New prototype.
17533 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
17535         * config/i386/driver-i386.c (host_detect_local_cpu): Update
17536         Haswell processor detection.
17538 2013-08-27  Christian Widmer  <shadow@umbrox.de>
17540         PR target/57927
17541         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
17542         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
17543         AVX2 capable processors.
17545 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
17547         * config/aarch64/arm_neon.h: Replace all inline asm implementations
17548         of vget_low_* with implementations in terms of other intrinsics.
17550 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
17552         PR middle-end/57219
17553         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
17554         values to -1, 0 and 1.
17556 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
17558         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
17559         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
17560         (<optab><mode>3_insn): Remove.
17561         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
17562         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17563         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17564         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
17565         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
17566         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
17567         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
17568         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
17569         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
17570         (ror<mode>3_insn): Likewise.
17571         * config/aarch64/predicates.md (aarch64_simd_register): New.
17573 2013-08-27  Richard Biener  <rguenther@suse.de>
17575         PR tree-optimization/57521
17576         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
17577         one edge is non-critical.
17578         (find_phi_replacement_condition): Make sure to use a non-critical
17579         edge.  Cleanup and remove old bug workarounds.
17580         (bb_postdominates_preds): Remove.
17581         (if_convertible_loop_p_1): Do not compute post-dominators.
17582         (combine_blocks): Do not free post-dominators.
17583         (main_tree_if_conversion): Likewise.
17584         (pass_data_if_conversion): Add TODO_verify_ssa.
17586 2013-08-27  DJ Delorie  <dj@redhat.com>
17588         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
17590 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
17592         * function.c (assign_parm_find_data_types): Set passed_mode and
17593         nominal_mode to the TYPE_MODE of nominal_type for the built
17594         pointer type in case of the struct-pass-by-reference.
17596 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17598         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
17599         (UINT16_TYPE): Change default to "unsigned int".
17601         * config/avr/avr.opt (mfract-convert-truncate): New option.
17602         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
17603         is set, round negative fractional integers according to n1169
17604         when converting to integer types.
17606 2013-08-26  Jan Hubicka  <jh@suse.cz>
17608         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
17609         methods can not be called indirectly when their address is not taken.
17611 2013-08-26  Jan Hubicka  <jh@suse.cz>
17613         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
17614         ctor_for_folding.
17616 2013-08-26  Jan Hubicka  <jh@suse.cz>
17618         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
17619         can be unshared.
17621 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17623         * reload.c (find_valid_class): Allow classes that do not include
17624         FIRST_PSEUDO_REGISTER - 1.
17626 2013-08-26  Jan Hubicka  <jh@suse.cz>
17628         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
17629         fix edge count/frequency when speculation failed; fix type check
17630         for the direct call.
17632 2013-08-26  Jan Hubicka  <jh@suse.cz>
17634         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
17636 2013-08-26  Jan Hubicka  <jh@suse.cz>
17638         * ipa-inline-transform.c (inline_transform): Be ready for basic block
17639         to be changed by edge redirection.
17641 2013-08-26  Jan Hubicka  <jh@suse.cz>
17643         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
17644         formating; add sanity check.
17645         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
17646         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
17647         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
17648         (resolve_noninline_speculation): Update callee keys, too.
17650 2013-08-26  Jan Hubicka  <jh@suse.cz>
17652         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
17653         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
17655 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17657         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
17658         into proper place.
17660 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
17662         * config/i386/i386.c (ix86_debug_options): Remove prototype.
17663         (x86_64_elf_select_section): Ditto.
17664         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
17665         arguments.
17666         (ix86_pass_by_reference): Ditto.
17667         (output_set_got): Ditto.
17668         (ix86_unary_operator_ok): Ditto.
17669         (ix86_expand_builtin): Ditto.
17671 2013-08-23  Jan Hubicka  <jh@suse.cz>
17673         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
17675 2013-08-23  Jan Hubicka  <jh@suse.cz>
17677         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
17678         (tree_decl_with_vis): Add FINAL field.
17680 2013-08-23  Jeff Law  <law@redhat.com>
17682         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
17683         the debugging dump when the expression is fully redundant.
17685 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17687         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
17688         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
17689         * pretty-print.c (pp_formatted_text_data): Likewise.
17690         (pp_write_text_to_stream): Likewise.
17691         (pp_write_text_as_dot_label_to_stream): Likewise.
17692         (pp_append_r): Likewise.
17693         (pp_format): Likewise.
17694         (pp_flush): Likewise.
17695         (pp_clear_output_area): Likewise.
17696         (pp_append_text): Likewise.
17697         (pp_formatted_text): Likewise.
17698         (pp_remaining_character_count_for_line): Likewise.
17699         (pp_newline): Likewise.
17700         (pp_character): Likewise.
17701         (output_buffer::~output_buffer): Define.
17702         (pretty_printer::~pretty_printer): Destruct output buffer.
17703         * pretty-print.h (output_buffer::~output_buffer): Declare.
17704         (pretty_printer::~pretty_printer): Declare virtual.
17706 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
17708         PR other/57324
17709         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
17710         HOST_WIDE_INT_M1U): New macros.
17711         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
17712         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
17713         unsigned -1 for lshift.
17714         * cse.c (cse_insn): Likewise.
17715         * double-int.c (rshift_double, lshift_double): Likewise.
17716         * builtins.c (fold_builtin_bitop): Likewise.
17717         * combine.c (force_to_mode): Likewise.
17718         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
17719         * simplify-rtx.c (simplify_const_unary_operation,
17720         simplify_const_binary_operation): Likewise.
17721         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
17722         check_va_list_escapes): Likewise.
17723         * rtlanal.c (nonzero_bits1): Likewise.
17724         * expmed.c (expand_smod_pow2): Likewise.
17725         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
17727 2013-08-23  Jan Hubicka  <jh@suse.cz>
17729         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
17730         as having address taken.
17732 2013-08-23  Jan Hubicka  <jh@suse.cz>
17734         * ipa-utils.h (method_class_type): Declare.
17735         * ipa-devirt.c (method_class_type): Export.
17737         * cgraphunit.c (analyze_functions): Do basic devirtualization;
17738         do not walk base classes of anonymous types.
17740 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
17742         PR rtl-optimization/58220
17743         PR regression/58221
17744         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
17745         handle SEQUENCE insns properly.
17747 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17749         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
17750         definition.
17751         (pp_newline_and_indent): Likewise.
17752         (pp_separate_with): Likewise.
17753         * pretty-print.c (pp_newline_and_flush): Define.
17754         (pp_newline_and_indent): Likewise.
17755         (pp_separate_with): Likewise.
17757 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
17759         PR target/58218
17760         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
17761         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
17763 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
17765         * config/i386/predicates.md (ext_sse_reg_operand): New.
17766         * config/i386/i386.md (*movti_internal): Use
17767         predicate to determine if EVEX is needed.
17768         (*movsi_internal): Ditto.
17769         (*movdf_internal): Ditto.
17770         (*movsf_internal): Ditto.
17771         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
17773 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
17775         PR tree-optimization/58209
17776         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
17777         (find_tail_calls): Give up for pointer result types if m is non-NULL.
17778         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
17779         emit POINTER_PLUS_EXPR.
17780         (create_tailcall_accumulator): For pointer result type accumulate in
17781         sizetype type.
17783 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
17785         * configure.ac: Add backslashes missing from the last change.
17786         * configure: Regenerate.
17788 2013-08-22  Jan Hubicka  <jh@susue.cz>
17790         * ipa.c (function_and_variable_visibility): First remember function
17791         was global and then make it local.
17793 2013-08-22  Julian Brown  <julian@codesourcery.com>
17795         * configure.ac: Add aarch64 to list of arches which use "nop" in
17796         debug_line test.
17797         * configure: Regenerate.
17799 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17801         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
17802         gnu_libc_has_function.
17803         * config/s390/tpf.h: Likewise.
17805 2013-08-22  Jan Hubicka  <jh@susue.cz>
17807         * timevar.c (validate_phases): Add cast.
17809 2013-08-22  Jan Hubicka  <jh@susue.cz>
17811         * timevar.c (validate_phases): Use size_t for memory.
17812         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
17814 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17816         * pretty-print.h (output_buffer::output_buffer): Declare.
17817         (pretty_printer::pretty_printer): Likewise.
17818         (pp_construct): Remove.
17819         * pretty-print.c (output_buffer::output_buffer): Define.
17820         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
17821         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
17822         (print_gimple_expr): Likewise.
17823         (print_gimple_seq): Likewise.
17824         (gimple_dump_bb): Likewise.
17825         * sched-vis.c (dump_value_slim): Likewise.
17826         (dump_insn_slim): Likewise.
17827         (dump_rtl_slim): Likewise.
17828         (str_pattern_slim): Likewise.
17829         * tree-mudflap.c (mf_varname_tree): Likewise.
17830         * graph.c (print_graph_cfg): Likewise.
17831         (start_graph_dump): Likewise.
17832         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
17833         placement-new.
17834         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
17835         pretty printer initialization.
17836         * coretypes.h (diagnostic_context): Remove superflous type alias
17837         declaration.
17838         (pretty_printer): Likewise.  Declare directly as a class.
17839         (pretty_print_info): Remove declaration as class.
17840         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
17841         and pp_clear_output_area.
17842         (asan_add_global): Likewise.
17844 2013-08-22  Jan Hubicka  <jh@suse.cz>
17846         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
17847         * ipa-utils.h (update_type_inheritance_graph): Declare.
17848         (possible_polymorphic_call_target_p): Declare.
17849         (possible_polymorphic_call_target_p): New.
17850         * ipa-devirt.c: Update toplevel comments.
17851         (cached_polymorphic_call_targets): Move up.
17852         (odr_type_d): Move ID down.
17853         (polymorphic_type_binfo_p): Update comment.
17854         (odr_hasher::remove): Likewise;
17855         (get_odr_type): Set anonymous_namespace.
17856         (dump_odr_type): Dump it.
17857         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
17858         (maybe_record_node): Record node in cached_polymorphic_call_targets.
17859         (record_binfo): Add comment.
17860         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
17861         built.
17862         (devirt_node_removal_hook): Do not iCE when cache is freed.
17863         (possible_polymorphic_call_target_p): New predicate.
17864         (update_type_inheritance_graph): New function.
17866 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17867             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17868             Sergey Lega  <sergey.s.lega@intel.com>
17869             Anna Tikhonova  <anna.tikhonova@intel.com>
17870             Ilya Tocar  <ilya.tocar@intel.com>
17871             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17872             Ilya Verbin  <ilya.verbin@intel.com>
17873             Kirill Yukhin  <kirill.yukhin@intel.com>
17874             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17876         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
17877         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
17878         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
17879         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
17880         (OPTION_MASK_ISA_AVX2_UNSET): Update.
17881         (OPTION_MASK_ISA_AVX512F_UNSET): New.
17882         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
17883         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
17884         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
17885         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
17886         OPT_mavx512pf, OPT_mavx512er cases.
17887         * config/i386/constraints.md (v): New constraint.
17888         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
17889         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
17890         (bit_AVX512CD): New.
17891         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17892         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
17893         * config/i386/i386-c.c (ix86_target_macros_internal):
17894         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
17895         __AVX512PF__.
17896         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
17897         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
17898         * config/i386/i386.c (regclass_map, dbx_register_map)
17899         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
17900         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
17901         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
17902         -mavx512pf options.
17903         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
17904         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
17905         -mavx512pf options.  Fix formatting.
17906         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
17907         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
17908         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
17909         -mavx512cd, -mavx512pf options.
17910         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
17911         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
17912         (ix86_preferred_output_reload_class): Replace SSE_REGS with
17913         ALL_SSE_REGS.
17914         (ix86_hard_regno_mode_ok): Support 512-bit registers.
17915         (ix86_set_reg_reg_cost): Ditto.
17916         (x86_order_regs_for_local_alloc): Ditto.
17917         (MAX_VECT_LEN): Extend to 64-byte.
17918         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
17919         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
17920         (TARGET_AVX512ER, TARGET_AVX512CD): New.
17921         (BIGGEST_ALIGNMENT): Extend to 512-bits.
17922         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
17923         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
17924         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
17925         (SSE_REG_MODE_P): Support new modes.
17926         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
17927         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
17928         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
17929         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
17930         (REG_CLASS_CONTENTS): Add new registers.
17931         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
17932         (EXT_REX_SSE_REGNO_P): New.
17933         (HI_REGISTER_NAMES): Add new registers.
17934         * config/i386/i386.md: Define constants for new registers.
17935         (mode): Add new 512-bit modes.
17936         (prefix): Support evex prefix.
17937         (isa): Support avx512f, noavx512f, fma_avx512f.
17938         (ssemodesuffix): Add new 512-bit modes.
17939         (movxi): New.
17940         (*movxi_internal_avx512f): Ditto.
17941         (*movdi_internal): Replace constraint "x" with the new constraint "v".
17942         Support MODE_XI.
17943         (*movsi_internal): Likewise.
17944         (*movdf_internal): Likewise.
17945         (*movsf_internal): Likewise.
17946         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
17947         (<code><mode>3): Likewise.
17948         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
17949         New.
17950         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
17951         with the new constraint "v".
17952         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
17953         modes.
17954         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
17955         with the new constraint "v".
17956         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
17957         (<sse2>_storedqu<avxsizesuffix>): Likewise.
17958         (*<plusminus_insn><mode>3): Likewise.
17959         (<sse>_vm<plusminus_insn><mode>3): Likewise.
17960         (*mul<mode>3): Likewise.
17961         (<sse>_vmmul<mode>3): Likewise.
17962         (<sse>_div<mode>3): Likewise.
17963         (<sse>_vmdiv<mode>3): Likewise.
17964         (<sse>_sqrt<mode>2): Likewise.
17965         (<sse>_vmsqrt<mode>2): Likewise.
17966         (*<code><mode>3_finite): Likewise.
17967         (*<code><mode>3) <smaxmin>: Likewise.
17968         (<sse>_vm<code><mode>3): Likewise.
17969         (*<code><mode>3) <any_logic>: Likewise.
17970         (*fma_fmadd_<mode>): Likewise.
17971         (*fma_fmsub_<mode>): Likewise.
17972         (*fma_fnmadd_<mode>): Likewise.
17973         (*fma_fnmsub_<mode>): Likewise.
17974         (*fma_fmaddsub_<mode>): Likewise.
17975         (*fma_fmsubadd_<mode>): Likewise.
17976         (*fmai_fmadd_<mode>): Likewise.
17977         (*fmai_fmsub_<mode>): Likewise.
17978         (*fmai_fnmadd_<mode>): Likewise.
17979         (*fmai_fnmsub_<mode>): Likewise.
17980         (sse_cvtsi2ss): Likewise.
17981         (sse_cvtsi2ssq): Likewise.
17982         (sse_cvtss2si): Likewise.
17983         (sse_cvtss2si_2): Likewise.
17984         (sse_cvtss2siq): Likewise.
17985         (sse_cvtss2siq_2): Likewise.
17986         (sse_cvttss2si): Likewise.
17987         (sse_cvtss2siq_2): Likewise.
17988         (float<sseintvecmodelower><mode>2): Likewise.
17989         (sse2_cvtsd2si_2): Likewise.
17990         (sse2_cvtsd2siq_2): Likewise.
17991         (*<plusminus_insn><mode>3): Likewise.
17992         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
17993         (*<sse4_1_avx2>_mul<mode>3): Likewise.
17994         (ashr<mode>3): Likewise.
17995         (<shift_insn><mode>3): Likewise.
17996         (avx2_<code><mode>3): Likewise.
17997         (*avx2_<code><mode>3): Likewise.
17998         (*andnot<mode>3): Likewise.
17999         (*<code><mode>3) <any_logic>: Likewise.
18000         (abs<mode>2): Likewise.
18001         (avx2_permvar<mode>): Likewise.
18002         (avx2_perm<mode>_1): Likewise.
18003         (*avx_vpermilp<mode>): Likewise.
18004         (avx_vpermilvar<mode>3): Likewise.
18005         (avx2_ashrv<mode>): Likewise.
18006         (avx2_<shift_insn>v<mode>): Likewise.
18007         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
18008         -mavx512cd.
18009         * doc/rtl.texi: Document XImode.
18011 2013-08-21  Jeff Law  <law@redhat.com>
18013         * tree-flow.h (register_jump_thread): Pass vector of edges
18014         instead of each important edge.
18015         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
18016         thread path into a vector and pass that to register_jump_thread.
18017         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
18018         passed in edge vector to the current 3-edge form.
18020         Revert:
18021         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
18023         * dce.c (fini_dce): Call df_analyze again just in case
18024         delete_unmarked_insns removed anything.
18026 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
18028         * reload.h (struct reg_equivs): Rename to ..
18029         (struct reg_equivs_s): .. this.
18031 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
18033         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
18035 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18037         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
18039 2013-08-21  Jeff Law  <law@redhat.com>
18041         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
18042         simplify assignments too.  If the RHS collapses to a singleton
18043         range, then return the value for the range.
18045 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
18047         * config/i386/sse.md (V16): Rename to...
18048         (VMOVE): this.
18049         (mov<mode>): Update iterator name.
18050         (*mov<mode>_internal): Ditto.
18051         (push<mode>1): Ditto.
18052         (movmisalign<mode>): Ditto.
18054 2013-08-20  Jan Hubicka  <jh@suse.cz>
18056         PR bootstrap/58186
18057         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
18058         entry for direct edges.
18059         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
18061 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18063         Revert my last two changes, r201865 and r201864:
18065         Revert r201865:
18066         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18068         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18069         instances can own GC refs.
18071         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18072         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18073         (gcc::context::gt_pch_nx): Likewise.
18074         (gcc::context::gt_pch_nx):  Likewise.
18075         * ggc.h (gt_ggc_mx <T>): New.
18076         (gt_pch_nx_with_op <T>): New.
18077         (gt_pch_nx <T>): New.
18078         * passes.c (opt_pass::gt_ggc_mx): New.
18079         (opt_pass::gt_pch_nx): New.
18080         (opt_pass::gt_pch_nx_with_op): New.
18081         (pass_manager::gt_ggc_mx): New.
18082         (pass_manager::gt_pch_nx): New.
18083         (pass_manager::gt_pch_nx_with_op): New.
18084         (pass_manager::operator new): Use
18085         ggc_internal_cleared_alloc_stat rather than xcalloc.
18086         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18087         (pass_manager::gt_ggc_mx): New.
18088         (pass_manager::gt_pch_nx): New.
18089         (pass_manager::gt_pch_nx_with_op): New.
18090         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18091         (opt_pass::operator new): New.
18092         (opt_pass::gt_ggc_mx): New.
18093         (opt_pass::gt_pch_nx): New.
18094         (opt_pass::gt_pch_nx_with_op): New.
18096         Revert r201864:
18097         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18099         * Makefile.in (GTFILES): Add context.h.
18100         * context.c (gcc::context::operator new): New.
18101         (gcc::context::gt_ggc_mx): New.
18102         (gcc::context::gt_pch_nx): New.
18103         (gcc::context::gt_pch_nx): New.
18104         * context.h (gcc::context): Add GTY((user)) marking.
18105         (gcc::context::operator new): New.
18106         (gcc::context::gt_ggc_mx): New.
18107         (gcc::context::gt_pch_nx): New.
18108         (gcc::context::gt_pch_nx): New.
18109         (g): Add GTY marking.
18110         (gt_ggc_mx (gcc::context *)): New.
18111         (gt_pch_nx (gcc::context *)): New.
18112         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18113         void *cookie)): New.
18114         * gengtype.c (open_base_files) <ifiles>: Add context.h.
18116 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
18118         * dce.c (fini_dce): Call df_analyze again just in case
18119         delete_unmarked_insns removed anything.
18121 2013-08-20  Teresa Johnson  <tejohnson@google.com>
18123         PR rtl-optimizations/57451
18124         * final.c (reemit_insn_block_notes): Prevent lexical blocks
18125         from crossing split section boundaries.
18127 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
18129         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
18130         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
18131         with MULTLIB_DEFAULTS.
18133 2013-08-20  Nick Clifton  <nickc@redhat.com>
18135         * target.def (narrow_volatile_bitfield): Note that the default
18136         value is false, not !TARGET_STRICT_ALIGN.
18137         * doc/tm.texi: Regenerate.
18139 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
18141         Fix LIB_SPEC for systems without libpthread.
18143         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
18144         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
18145         for Android.
18146         * config/i386/linux-common.h: Likewise.
18147         * config/mips/linux-common.h: Likewise.
18149 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
18151         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
18152         checks.
18154 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18156         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
18157         instances can own GC refs.
18159         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
18160         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
18161         (gcc::context::gt_pch_nx): Likewise.
18162         (gcc::context::gt_pch_nx):  Likewise.
18163         * ggc.h (gt_ggc_mx <T>): New.
18164         (gt_pch_nx_with_op <T>): New.
18165         (gt_pch_nx <T>): New.
18166         * passes.c (opt_pass::gt_ggc_mx): New.
18167         (opt_pass::gt_pch_nx): New.
18168         (opt_pass::gt_pch_nx_with_op): New.
18169         (pass_manager::gt_ggc_mx): New.
18170         (pass_manager::gt_pch_nx): New.
18171         (pass_manager::gt_pch_nx_with_op): New.
18172         (pass_manager::operator new): Use
18173         ggc_internal_cleared_alloc_stat rather than xcalloc.
18174         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
18175         (pass_manager::gt_ggc_mx): New.
18176         (pass_manager::gt_pch_nx): New.
18177         (pass_manager::gt_pch_nx_with_op): New.
18178         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
18179         (opt_pass::operator new): New.
18180         (opt_pass::gt_ggc_mx): New.
18181         (opt_pass::gt_pch_nx): New.
18182         (opt_pass::gt_pch_nx_with_op): New.
18184 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
18186         * Makefile.in (GTFILES): Add context.h.
18187         * context.c (gcc::context::operator new): New.
18188         (gcc::context::gt_ggc_mx): New.
18189         (gcc::context::gt_pch_nx): New.
18190         (gcc::context::gt_pch_nx): New.
18191         * context.h (gcc::context): Add GTY((user)) marking.
18192         (gcc::context::operator new): New.
18193         (gcc::context::gt_ggc_mx): New.
18194         (gcc::context::gt_pch_nx): New.
18195         (gcc::context::gt_pch_nx): New.
18196         (g): Add GTY marking.
18197         (gt_ggc_mx (gcc::context *)): New.
18198         (gt_pch_nx (gcc::context *)): New.
18199         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
18200         void *cookie)): New.
18201         * gengtype.c (open_base_files) <ifiles>: Add context.h.
18203 2013-08-20  Alan Modra  <amodra@gmail.com>
18205         PR target/57865
18206         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
18207         (rs6000_emit_epilogue): Likewise.
18209 2013-08-19  Dehao Chen  <dehao@google.com>
18211         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
18213 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
18214             Jakub Jelinek  <jakub@redhat.com>
18216         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
18217         (BUILT_IN_FABSD64): Likewise.
18218         (BUILT_IN_FABSD128): Likewise.
18219         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
18220         (fold_builtin_1): Likewise.
18221         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
18222         destination and source operands.
18223         (*abstd2_fpr): Likewise.
18224         (*nabstd2_fpr): Likewise.
18226 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
18228         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
18229         JUMP_P and INSN_P.
18231 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
18233         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
18234         incomplete.
18236 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18238         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
18239         * builtins.c (default_libc_has_function): New.
18240         (gnu_libc_has_function): Ditto.
18241         (no_c99_libc_has_function): Ditto.
18242         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
18243         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
18244         (fold_builtin_sincos): Likewise.
18245         (fold_builtin_cexp): Likewise.
18246         * builtins.def (DEF_C94_BUILTIN): Likewise.
18247         (DEF_C99_BUILTIN): Likewise.
18248         (DEF_C99_C90RES_BUILTIN): Likewise.
18249         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
18250         definitions to using this define.
18251         * config/darwin-protos.h (darwin_libc_has_function): New.
18252         * config/darwin.c (darwin_libc_has_function): Ditto.
18253         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
18254         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
18255         * config/darwin.h: Ditto.
18256         * config/elfos.h: Ditto.
18257         * config/freebsd.h: Ditto.
18258         * config/i386/cygming.h: Ditto.
18259         * config/i386/djgpp.h: Ditto.
18260         * config/i386/i386-interix.h: Ditto.
18261         * config/microblaze/microblaze.h: Ditto.
18262         * config/mmix/mmix.h: Ditto.
18263         * config/gnu-user.h: Ditto.
18264         * config/ia64/hpux.h: Ditto.
18265         * config/pa/pa-hpux.h: Ditto.
18266         * config/pdp11/pdp11.h: Ditto.
18267         * config/picochip/picochip.h: Ditto.
18268         * config/linux.h: Ditto.
18269         * config/netbsd.h: Ditto.
18270         * config/openbsd.h: Ditto.
18271         * config/rs6000/aix43.h: Ditto.
18272         * config/rs6000/aix51.h: Ditto.
18273         * config/rs6000/aix52.h: Ditto.
18274         * config/rs6000/aix53.h: Ditto.
18275         * config/rs6000/aix61.h: Ditto.
18276         * config/rs6000/darwin.h: Ditto.
18277         * config/rs6000/linux.h: Ditto.
18278         * config/rs6000/linux64.h: Ditto.
18279         * config/s390/tpf.h: Ditto.
18280         * config/sol2-10.h: Ditto.
18281         * config/sol2.h: Ditto.
18282         * config/vms/vms.h: Ditto.
18283         * config/vxworks.h: Ditto.
18284         * config/linux-android.c (linux_android_libc_has_function):
18285         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
18286         * config/linux-protos.h (linux_android_libc_has_function):
18287         New declaration.
18288         * config/i386/i386.c (ix86_libc_has_function): New.
18289         * config/i386/i386-protos.h
18290         (ix86_libc_has_function): New declaration.
18291         * config/i386/i386.md
18292         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
18293         ("isinf<mode>2): Likewise.
18294         * convert.c (convert_to_integer): Using new target hook
18295         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
18296         TARGET_C99_FUNCTIONS.
18297         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
18298         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
18299         * coretypes.h (function_class): New enum for different
18300         classes of functions.
18301         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
18302         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
18303         (TARGET_HAS_SINCOS): Likewise.
18304         (TARGET_LIBC_HAS_FUNCTION): New.
18305         * doc/tm.texi: Regenerated.
18306         * targhooks.h (default_libc_has_function): New declaration.
18307         (no_c99_libc_has_function): Ditto.
18308         (gnu_libc_has_function): Ditto.
18309         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
18310         and TARGET_HAS_SINCOS.
18312 2013-08-18  Jan Hubicka  <jh@suse.cz>
18314         * Makeifle-in (ipa-devirt.o): New.
18315         (GTFILES): Add ipa-utils.h and ipa-devirt.c
18316         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
18317         (analyze_functions): Look into possible targets of polymorphic call.
18318         * dumpfile.c (dump_files): Add type-inheritance dump.
18319         * dumpfile.h (TDI_inheritance): New.
18320         * ipa-devirt.c: New file.
18321         * ipa-utils.h (odr_type_d): Forward declare.
18322         (odr_type): New type.
18323         (build_type_inheritance_graph): Declare.
18324         (possible_polymorphic_call_targets): Declare and introduce inline
18325         variant when only edge is pased.
18326         (dump_possible_polymorphic_call_targets): Likewise.
18327         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
18328         * tree.c (type_in_anonymous_namespace_p): Break out from ...
18329         (types_same_for_odr): ... here.
18330         * tree.h (type_in_anonymous_namespace_p): Declare.
18332 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
18334         PR tree-optimization/58006
18335         * tree-parloops.c (take_address_of): Don't ICE if get_name
18336         returns NULL.
18337         (eliminate_local_variables_stmt): Remove clobber stmts.
18339 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
18341         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
18342         error message is issued for an alias to undefined symbol.
18344 2013-08-18  Jan Hubicka  <jh@suse.cz>
18346         * cgraph.c (cgraph_create_indirect_edge): Discover
18347         polymorphic calls and record basic info into indirect_info.
18348         * gimple-fold.c (gimple_fold_call): When doing BINFO based
18349         devirtualization, ignore objc function calls.
18350         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
18351         call with no parm index info.
18352         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
18353         * tree.c (virtual_method_call_p): New function.
18354         * tree.h (virtual_method_call_p): Declare.
18356 2013-08-16  Jan Hubicka  <jh@suse.cz>
18358         PR middle-end/58179
18359         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
18361 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
18363         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
18364         attribute.
18366 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
18368         * gengtype.c (type_for_name): Add special-case support for
18369         locating types within the "gcc::" namespace.
18370         (open_base_files): Emit a "using namespace gcc" directive.
18372 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
18374         PR target/58160
18375         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
18376         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
18378         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
18379         array instead of each individual operand as a separate argument.
18380         (emit_fusion_gpr_load): Likewise.
18381         (expand_fusion_gpr_load): Add new function declaration.
18383         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
18384         signature to have the operands passed as an array, instead of as
18385         separate arguments.  Allow ZERO_EXTEND to be in the memory
18386         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
18387         depend on the register live/dead flags when peepholes are run.
18388         (expand_fusion_gpr_load): New function to be called from the
18389         peephole2 pass, to change the register that addis sets to be the
18390         target register.
18391         (emit_fusion_gpr_load): Change the calling signature to have the
18392         operands passed as an array, instead of as separate arguments.
18393         Allow ZERO_EXTEND to be in the memory address, and also
18394         SIGN_EXTEND if -mpower8-fusion-sign.
18396         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
18397         unspec enumeration.
18398         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
18399         adjust the register addis loads up in the peephole2 pass.  Do not
18400         depend on the register live/dead state when the peephole pass is done.
18402 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
18404         * gengtype.c (create_user_defined_type): Ensure that the kind
18405         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
18406         declaration is seen before the GTY((user)) marking.
18408 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18410         PR target/58105
18411         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
18413 2013-08-16  Jan Hubicka  <jh@suse.cz>
18415         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
18416         arugment expected_type.
18417         (gimple_fold_call): Use it.
18418         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
18419         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
18420         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
18421         (try_make_edge_direct_virtual_call): Likewise.
18422         * tree.c (obj_type_ref_class): New.
18423         * tree.h (obj_type_ref_class): Use it.
18425 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18427         * sched-vis.c (rtl_slim_pp_initialized): Remove.
18428         (rtl_slim_pp): Likewise.
18429         (init_rtl_slim_pretty_print): Likewise.
18430         (dump_value_slim):  Don't call it.  Use local pretty printer.
18431         (dump_insn_slim): Likewise.
18432         (dump_rtl_slim): Likewise.
18433         (str_pattern_slim): Likewise.
18434         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
18435         Simplify.
18437 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
18439         PR tree-optimization/58164
18440         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
18441         walk gimple_goto_dest of GIMPLE_GOTO.
18443         PR tree-optimization/58165
18444         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
18445         bi_call must be the last stmt in a bb, don't split_block, instead
18446         use fallthru edge from it and give up if there is none.
18447         Release conds vector when returning early.
18449 2013-08-14  Xinliang David Li  <davidxl@google.com>
18451         * config/i386/i386.c (ix86_option_override_internal):
18452         Remove unused variable and field.
18454 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18456         PR target/57949
18457         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
18458         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
18459         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
18460         and Linux, correct BLKmode alignment when 128-bit alignment is
18461         required and compatibility flag is not set.
18462         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
18463         for zero-size arguments when compatibility flag is not set.
18465 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
18467         PR tree-optimization/58145
18468         * tree-sra.c (build_ref_for_offset): If prev_base has
18469         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
18471 2013-08-14  Xinliang David Li  <davidxl@google.com>
18473         * config/i386/i386.c (ix86_option_override_internal):
18474         Fix uninitialized variable error.
18476 2013-08-14  Xinliang David Li  <davidxl@google.com>
18478         * config/i386/i386.opt: Define two new options.
18479         * config/i386/x86-tune.def: Add arch selector field in macros.
18480         * config/i386/i386.h: Adjust macro definition.
18481         * config/i386/i386.c (ix86_option_override_internal):
18482         Refactor the code.
18483         (parse_mtune_ctrl_str): New function.
18484         (set_ix86_tune_features): New function.
18485         (ix86_function_specific_restore): Call the new helper function.
18487 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
18489         PR rtl-optimization/57662
18490         * sel-sched.c (code_motion_process_successors): When the current insn
18491         is removed after the recursive traversal, break from the loop.
18492         Add comments and debug printouts.
18494 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
18495             Alexandre Oliva  <aoliva@redhat.com>
18497         PR target/58067
18498         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
18499         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
18500         there also UNSPEC_PLTOFF.
18502 2013-08-14  Marek Polacek  <polacek@redhat.com>
18504         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
18505         NUM_CONDITIONS bit positions.
18507 2013-08-13  Cary Coutant  <ccoutant@google.com>
18509         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
18510         (attr_checksum): Hash vector contents instead of pointer.
18511         (attr_checksum_ordered): Likewise.
18513 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
18515         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
18516         when Pmode != word_mode.  Add length_address attribute.
18517         (sse3_monitor_<mode>): Merge from sse3_monitor and
18518         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
18519         Pmode != word_mode.  Update insn length attribute.
18520         * config/i386/i386.c (ix86_option_override_internal): Update
18521         ix86_gen_monitor selection for merged sse3_monitor insn.
18523 2013-08-13  Julian Brown  <julian@codesourcery.com>
18525         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18526         perform invalid legitimization on greater-than-word-size modes for
18527         TARGET_E500_DOUBLE.
18529 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
18531         * ira.c (setup_class_translate_array): Use aclass instead of cl
18532         for classes not fully covered by allocno classes.
18534 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
18536         PR tree-optimization/57661
18537         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
18538         * tree-inline.c (tree_function_versioning): Initialize it.
18539         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
18540         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
18541         that is not being copied.
18543         PR sanitizer/56417
18544         * asan.c (instrument_strlen_call): Fix typo in comment.
18545         Use char * type even for the lhs of POINTER_PLUS_EXPR.
18547 2013-08-13  Steve Ellcey  <sellcey@mips.com>
18549         * config/mips/mips.md (prefetch): Use lw instead of ld on
18550         loongson in 32bit mode.
18552 2013-08-13  Nick Clifton  <nickc@redhat.com>
18554         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
18556 2013-08-13  Jan Hubicka  <jh@suse.cz>
18558         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
18559         introduced edge; fix typo in sanity check.
18560         (cgraph_resolve_speculation): Export; improve diagnostic.
18561         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
18562         speculation at type mismatch.
18563         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
18564         (cgraph_resolve_speculation): Declare.
18565         (symtab_can_be_discarded): New function.
18566         * value-prof.c (gimple_ic_transform): Remove actual transform code.
18567         * ipa-inline-transform.c (speculation_removed): New global var.
18568         (clone_inlined_nodes): See if speculation can be removed.
18569         (inline_call): If speculations was removed, we growths may not match.
18570         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
18571         (speculation_useful_p): New function.
18572         (resolve_noninline_speculation): New function.
18573         (inline_small_functions): Resolve useless speculations.
18574         * ipa-inline.h (speculation_useful_p): Declare
18575         * ipa.c (can_replace_by_local_alias): Simplify.
18576         (ipa_profile): Produce speculative calls in non-lto, too;
18577         add simple cost model; produce local aliases.
18579 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
18581         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
18582         PASS_MANAGER_H.
18584 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
18586         * config/i386/i386.c (ix86_function_versions): Use error + inform.
18588 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
18590         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
18591         iterator instead of X87MODEF.
18593 2013-08-12  Perez Read  <netfirewall@gmail.com>
18595         PR target/58132
18596         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
18597         operand 0 for intel asm alternative.
18598         (*movabs<mode>_2): Ditto for operand 1.
18600 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
18602         * config/aarch64/arm_none.h
18603         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
18605 2013-08-12  Nick Clifton  <nickc@redhat.com>
18607         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
18609 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
18611         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
18612         expand for QI/HImode operand to produce more effictive code for
18613         unsigned char(short) --> float(double) conversion.
18615 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
18617         * doc/invoke.texi: Mention that -ftls-model does not force the final
18618         model.
18620 2013-08-12  Marek Polacek  <polacek@redhat.com>
18621             Marc Glisse  <marc.glisse@inria.fr>
18623         PR tree-optimization/57980
18624         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
18625         when creating -1 constant.
18627 2013-08-10  Jan Hubicka  <jh@suse.cz>
18629         Workaround binutils PR14342.
18630         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
18631         (gimple_init_edge_profiler): Likewise.
18632         (gimple_gen_ic_func_profiler): Likewise.
18634 2013-08-09  Jan Hubicka  <jh@suse.cz>
18636         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
18638 2013-08-09  Xinliang David Li  <davidxl@google.com>
18640         * config/i386/stringop.def: New file.
18641         * config/i386/stringop.opt: New file.
18642         * config/i386/i386-opts.h: Include stringopt.def.
18643         * config/i386/i386.opt: Include stringopt.opt.
18644         * config/i386/i386.c (ix86_option_override_internal):
18645         Override default size based stringop inline strategies with options.
18646         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
18647         New function.
18649 2013-08-09  Jan Hubicka  <jh@suse.cz>
18651         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
18653 2013-08-09  Jan Hubicka  <jh@suse.cz>
18655         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
18656         CGRAPH_FREQ_MAX.
18657         (dump_cgraph_node): Dump profile-id.
18658         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
18659         and common_target_probability.
18660         * lto-cgraph.c (lto_output_edge): Stream common targets.
18661         (lto_output_node): Stream profile ids.
18662         (input_node): Stream profile ids.
18663         (input_edge): Stream common targets.
18664         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
18665         * ipa.c: Include value-prof.h
18666         (ipa_profile_generate_summary): Turn indirect call statement histograms
18667         into common targets.
18668         (ipa_profile): Turn common targets into speculative edges.
18670 2013-08-09  Jan Hubicka  <jh@suse.cz>
18672         * cgraph.h (cgraph_node): Add profile_id.
18673         * value-prof.c (cgraph_node_map): Turn into pointer_map.
18674         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
18675         (del_node_map): Update.
18676         (find_func_by_funcdef_no): Replace by ...
18677         (find_func_by_profile_id): ... this one.
18678         (gimple_ic_transform): Do not remove useful histograms when
18679         speculation is not done; dump info when indirect call removal
18680         can happen at LTO.
18681         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
18682         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
18683         (__gcov_indirect_call_profiler_v2): .. this one.
18684         * profile.h (init_node_map): Update.
18685         * coverage.c (coverage_compute_profile_id): New function.
18686         * coverage.h (coverage_compute_profile_id): Declare.
18687         * tree-profile.c (init_ic_make_global_vars): Make
18688         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
18689         (gimple_init_edge_profiler): Update prototype of
18690         __gcov_indirect_call_profiler.
18691         (gimple_gen_ic_func_profiler): Simplify.
18692         (tree_profiling): Use init_node_map
18694 2013-08-09  Jan Hubicka  <jh@suse.cz>
18696         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
18697         non-speculative refs.
18698         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
18699         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
18700         (cgraph_set_call_stmt): Likewise.
18701         (cgraph_create_edge_1): Fix release checking compilatoin;
18702         clear lto_stmt_uid.
18703         (cgraph_free_edge): Free indirect info.
18704         (cgraph_turn_edge_to_speculative): New function.
18705         (cgraph_speculative_call_info): New function.
18706         (cgraph_make_edge_direct): Return direct edge; handle speculation.
18707         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
18708         (dump_cgraph_node): Dump speculation.
18709         (verify_edge_count_and_frequency): Accept speculative edges.
18710         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
18711         (verify_cgraph_node): Handle speculation.
18712         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
18713         (cgraph_set_call_stmt): Update prototype.
18714         (cgraph_make_edge_direct): Update prototype.
18715         (cgraph_speculative_call_info): Declare.
18716         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
18717         to change; update call of ipa_find_references.
18718         * ipa-ref.c (ipa_record_reference): Fix return value; clear
18719         lto_stmt_uid and speculative flags.
18720         (ipa_dump_references): Dump speculation.
18721         (ipa_clone_references): Clone speculative flag.
18722         (ipa_clone_referring): Likewise.
18723         (ipa_clone_ref): New function.
18724         (ipa_find_reference): Look into lto_stmt_uids
18725         (ipa_clear_stmts_in_references): Do not clear speculative calls.
18726         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
18727         (ipa_find_reference): Update declaration.
18728         (ipa_clone_ref): Declare.
18729         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
18730         stream speculative flag.
18731         (lto_output_ref): Stream statements uids and speculation.
18732         (input_ref): Likewise.
18733         (input_edge): Stream speuclation.
18734         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
18735         (cgraph_set_call_stmt_including_clones): Handle speculation.
18736         * ipa-inline.c (heap_edge_removal_hook): New function.
18737         (inline_small_functions): Register it.
18738         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
18739         also initialize refs.
18740         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
18741         edge to change.
18742         (try_make_edge_direct_simple_call): Likewise.
18743         (try_make_edge_direct_simple_call): Likewise.
18744         (update_indirect_edges_after_inlining): Likewise.
18745         (remove_described_reference): Look proper lto_stmt_uid.
18746         (propagate_controlled_uses): Likewise.
18747         (propagate_controlled_uses): Liekwise.
18748         * tree-inline.c (copy_bb): Copy speculative edges.
18749         (redirect_all_calls): New function.
18750         (copy_cfg_body): Do redirection after loop info is updated.
18751         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
18753 2013-08-09  Jan Hubicka  <jh@suse.cz>
18755         * lto-streamer-out.c (output_function): Renumber PHIs.
18756         * lto-streamer-in.c (input_function): Likewise.
18758 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
18760         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
18761         (get_lane_unsigned): Likewise.
18762         (dup_lane_scalar): Likewise.
18763         (get_lane): enable for VALL.
18764         * config/aarch64/aarch64-simd.md
18765         (aarch64_dup_lane_scalar<mode>): Remove.
18766         (aarch64_get_lane_signed<mode>): Likewise.
18767         (aarch64_get_lane_unsigned<mode>): Likewise.
18768         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
18769         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
18770         (aarch64_get_lane<mode>): Enable for all vector modes.
18771         (aarch64_get_lanedi): Remove misleading constraints.
18772         * config/aarch64/arm_neon.h
18773         (__aarch64_vget_lane_any): Define.
18774         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
18775         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
18776         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
18777         * config/aarch64/iterators.md (VDQQH): New.
18778         (VDQQHS): Likewise.
18779         (vwcore): Likewise.
18781 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
18783         * configure.ac: Add GAS check for LEON instructions on SPARC.
18784         * configure: Regenerate.
18785         * config.in: Likewise.
18786         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
18787         sparc*-*-* block.
18788         * config/sparc/sparc.opt (LEON, LEON3): New masks.
18789         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
18790         for LEON or LEON3.
18791         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
18792         (AS_LEON_FLAG): New macro.
18793         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
18794         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
18795         Deal with LEON and LEON3 for the memory model.
18796         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
18797         (atomic_compare_and_swap<mode>_1): Likewise.
18798         (*atomic_compare_and_swap<mode>_1): Likewise.
18800 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18802         * config/arm/neon.md (vcond): Fix floating-point vector
18803         comparisons against 0.
18805 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
18807         * lra-constraints.c (emit_spill_move): Remove assert.
18808         (process_alt_operands): Add more debugging
18809         output.  Increase reject for spilling into memory.  Decrease
18810         reject for reloading scratch.
18811         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
18813 2013-08-08  Steve Ellcey  <sellcey@mips.com>
18815         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
18816         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
18817         micromips incompatible.  Add nan2008.
18818         (MULTILIB_DIRNAMES): Add nan2008.
18819         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18820         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
18821         and micromips incompatible.  Add nan2008.
18822         (MULTILIB_DIRNAMES): Add nan2008.
18823         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18825 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
18827         PR rtl-optimization/58079
18828         * combine.c (combine_simplify_rtx): Avoid using SUBST if
18829         simplify_comparison has widened a comparison with an integer.
18831 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18833         * config/arm/neon.md (movmisalign<mode>): Disable when we
18834         don't allow unaligned accesses.
18835         (*movmisalign<mode>_neon_store): Likewise.
18836         (*movmisalign<mode>_neon_load): Likewise.
18837         (*movmisalign<mode>_neon_store): Likewise.
18838         (*movmisalign<mode>_neon_load): Likewise.
18840 2013-08-08  Jan Hubicka  <jh@suse.cz>
18842         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
18843         (make_pass_rebuild_cgraph_edges): Also clear references.
18844         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
18845         * ipa-inline-transform.c (inline_transform): Remove all references
18846         after inlining.
18847         * cgraphunit.c (expand_function): Remove all references after
18848         expansion.
18849         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
18850         (ipa_find_reference): Rewrite to iterator.
18851         (remove_stmt_references): Likewise.
18852         (ipa_clear_stmts_in_references): New function.
18853         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
18854         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
18855         clear references.
18856         * ipa-split.c (split_function): Remove references in split function.
18858 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
18860         PR target/57431
18861         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
18862         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
18864 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
18866         PR target/56979
18867         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
18868         suggested mode for the assignment isn't compatible with the
18869         registers required.
18871 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18873         PR target/58065
18874         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
18876 2013-08-07  Xinliang David Li  <davidxl@google.com>
18878         * config/i386/i386.opt: New option -mtune-ctrl=.
18879         * config/i386/x86-tune.def: New file.
18880         * config/i386/i386.h: include x86-tune.def.
18881         * config/i386/i386.c (ix86_option_override_internal):
18882         Parsing -mtune-ctrl= option and set tune features.
18884 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
18886         PR other/12081
18887         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
18888         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
18889         to gen_2arg_fn_t.
18891 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
18893         * rtl.h (update_alignments): Declare.
18894         * final.c (grow_label_align): New function extracted from...
18895         (shorten_branches): ...here.  Call it.
18896         (update_alignments): New function.
18897         * reorg.c (sibling_labels): New variable.
18898         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
18899         the new label along with it onto the sibling_labels vector.
18900         (fill_simple_delay_slots): Adjust call to get_label_before.
18901         (fill_slots_from_thread): Likewise.
18902         (relax_delay_slots): Likewise.
18903         (make_return_insns): Likewise.
18904         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
18906 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
18908         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
18909         document its semantics.
18910         (diagnostic_report_diagnostic): Adjust accordingly.
18912 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
18914         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
18915         (sparc_option_override): ...and port to new C++ pass API.
18916         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
18918 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
18920         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
18922 2013-08-06  Caroline Tice  <cmtice@google.com>
18924         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
18925         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
18926         * tree-pass.h: Add pass_vtable_verify.
18927         * varasm.c (assemble_variable): Add code to properly set the comdat
18928         section and name for the .vtable_map_vars section.
18929         (assemble_vtyv_preinit_initializer): New function.
18930         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
18931         LINK_ONCE flag.
18932         * output.h: Add function decl for assemble_vtv_preinit_initializer.
18933         * vtable-verify.c: New file.
18934         * vtable-verify.h: New file.
18935         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
18936         initialiation levels.
18937         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
18938         * passes.def: Insert pass_vtable_verify.
18939         * aclocal.m4: Reorder includes.
18940         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
18941         -fvtv-counts options.
18942         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
18943         as appropriate, if -fvtable-verify=... is used.
18944         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
18945         -fvtable-verify=... is used.
18946         * Makefile.in (OBJS):  Add vtable-verify.o to list.
18947         (vtable-verify.o): Add new build rule.
18948         (GTFILES): Add vtable-verify.c to list.
18949         * common.opt (fvtable-verify=): New flag.
18950         (vtv_priority): Values for fvtable-verify= flag.
18951         (fvtv-counts): New flag.
18952         (fvtv-debug): New flag.
18953         * tree.h (save_vtable_map_decl): New extern function decl.
18955 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
18957         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
18958         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
18959         (pass_data_rl78_devirt): ...new pass_data instance and...
18960         (make_pass_rl78_devirt): ...new function.
18961         (rl78_asm_file_start): Port pass registration to new C++ API.
18963 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
18965         * coretypes.h (rtl_opt_pass): Add.
18966         (gcc::context): Add.
18967         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
18968         (epiphany_init): Port to new C++ pass API.
18969         (epiphany_optimize_mode_switching): Likewise.
18970         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
18971         (pass_manager::get_pass_mode_switching): New.
18972         (pass_manager::get_pass_peephole2): New.
18973         * mode-switching.c (pass_mode_switching): Add clone method.
18974         * recog.c (pass_peephole2): Add clone method.
18975         (pass_split_all_insns): Add clone method.
18977 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
18979         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
18980         (mips_option_override): ...here, porting to new C++ API for passes.
18982 2013-08-06  Jan Hubicka  <jh@suse.cz>
18984         * cgraph.c (cgraph_get_body): New function based on lto.c
18985         implementation.
18986         * cgraph.h (cgraph_get_body): Declare.
18987         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
18988         LTO paths.
18989         * cgraphunit.c (expand_function): Get body prior expanding.
18990         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
18991         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
18992         really need.
18993         * passes.c (do_per_function_toporder): Get body.
18994         * tree-inline.c (expand_call_inline): Get body prior inlining it.
18995         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
18997 2013-08-06  Martin Jambor  <mjambor@suse.cz>
18999         PR fortran/57987
19000         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
19001         is not re-finalized.  Rename second parameter to no_collect.
19003 2013-08-06  Martin Jambor  <mjambor@suse.cz>
19005         PR middle-end/58041
19006         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
19007         MEM_REF has proper alignment information.
19009 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
19011         PR other/12081
19012         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
19013         class insn_gen_fn.
19014         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
19015         rtx (*) (rtx, ...) with insn_gen_fn.
19016         * genoutput.c (output_insn_data): Cast gen_? function pointers to
19017         insn_gen_fn::stored_funcptr.  Add initializer braces.
19019 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19021         Rewrite how instances of passes are cloned to remove assumptions
19022         about their sizes (thus allowing pass subclasses to have
19023         additional data fields, albeit non-GC-managed ones at this point).
19025         * passes.c (make_pass_instance): Now that passes have clone
19026         methods, rewrite this function to eliminate XNEW and memcpy
19027         calls that used hardcoded sizes.  Since this function no longer
19028         creates pass instances, rename it to...
19029         (add_pass_instance): ...this.  Document the old way that passes were
19030         numbered and flagged, and rework this function to continue using it.
19031         (next_pass_1): Add an initial_pass argument for use by
19032         add_pass_instance.
19033         (position_pass): When adding multiple instances of a pass, use
19034         the pass's clone method, rather than relying on the XNEW/memcpy
19035         within the former make_pass_instance (now add_pass_instance).
19036         (pass_manager::pass_manager): When invoking next_pass_1, also supply
19037         the initial instance of the current pass within the pass manager.
19039 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19041         This is the automated part of the conversion of passes from C
19042         structs to C++ classes.
19044         Patch autogenerated by refactor_passes.py from
19045         https://github.com/davidmalcolm/gcc-refactoring-scripts
19046         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
19048         * asan.c (pass_asan): Convert from a global struct to a subclass of
19049         gimple_opt_pass along with...
19050         (pass_data_asan): ...new pass_data instance and...
19051         (make_pass_asan): ...new function.
19052         (pass_asan_O0): Convert from a global struct to a subclass of
19053         gimple_opt_pass along with...
19054         (pass_data_asan_O0): ...new pass_data instance and...
19055         (make_pass_asan_O0): ...new function.
19056         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
19057         subclass of rtl_opt_pass along with...
19058         (pass_data_inc_dec): ...new pass_data instance and...
19059         (make_pass_inc_dec): ...new function.
19060         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
19061         a subclass of rtl_opt_pass along with...
19062         (pass_data_reorder_blocks): ...new pass_data instance and...
19063         (make_pass_reorder_blocks): ...new function.
19064         (pass_duplicate_computed_gotos): Convert from a global struct to a
19065         subclass of rtl_opt_pass along with...
19066         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
19067         (make_pass_duplicate_computed_gotos): ...new function.
19068         (pass_partition_blocks): Convert from a global struct to a subclass of
19069         rtl_opt_pass along with...
19070         (pass_data_partition_blocks): ...new pass_data instance and...
19071         (make_pass_partition_blocks): ...new function.
19072         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
19073         struct to a subclass of rtl_opt_pass along with...
19074         (pass_data_branch_target_load_optimize1): ...new pass_data instance
19075         and...
19076         (make_pass_branch_target_load_optimize1): ...new function.
19077         (pass_branch_target_load_optimize2): Convert from a global struct to a
19078         subclass of rtl_opt_pass along with...
19079         (pass_data_branch_target_load_optimize2): ...new pass_data instance
19080         and...
19081         (make_pass_branch_target_load_optimize2): ...new function.
19082         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
19083         of rtl_opt_pass along with...
19084         (pass_data_jump): ...new pass_data instance and...
19085         (make_pass_jump): ...new function.
19086         (pass_jump2): Convert from a global struct to a subclass of
19087         rtl_opt_pass along with...
19088         (pass_data_jump2): ...new pass_data instance and...
19089         (make_pass_jump2): ...new function.
19090         * cfgexpand.c (pass_expand): Convert from a global struct to a
19091         subclass of rtl_opt_pass along with...
19092         (pass_data_expand): ...new pass_data instance and...
19093         (make_pass_expand): ...new function.
19094         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
19095         of rtl_opt_pass along with...
19096         (pass_data_free_cfg): ...new pass_data instance and...
19097         (make_pass_free_cfg): ...new function.
19098         (pass_into_cfg_layout_mode): Convert from a global struct to a
19099         subclass of rtl_opt_pass along with...
19100         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
19101         (make_pass_into_cfg_layout_mode): ...new function.
19102         (pass_outof_cfg_layout_mode): Convert from a global struct to a
19103         subclass of rtl_opt_pass along with...
19104         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
19105         (make_pass_outof_cfg_layout_mode): ...new function.
19106         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
19107         struct to a subclass of gimple_opt_pass along with...
19108         (pass_data_build_cgraph_edges): ...new pass_data instance and...
19109         (make_pass_build_cgraph_edges): ...new function.
19110         (pass_rebuild_cgraph_edges): Convert from a global struct to a
19111         subclass of gimple_opt_pass along with...
19112         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
19113         (make_pass_rebuild_cgraph_edges): ...new function.
19114         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
19115         subclass of gimple_opt_pass along with...
19116         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
19117         and...
19118         (make_pass_remove_cgraph_callee_edges): ...new function.
19119         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
19120         struct to a subclass of rtl_opt_pass along with...
19121         (pass_data_stack_adjustments): ...new pass_data instance and...
19122         (make_pass_stack_adjustments): ...new function.
19123         * combine.c (pass_combine): Convert from a global struct to a subclass
19124         of rtl_opt_pass along with...
19125         (pass_data_combine): ...new pass_data instance and...
19126         (make_pass_combine): ...new function.
19127         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
19128         global struct to a subclass of rtl_opt_pass along with...
19129         (pass_data_compare_elim_after_reload): ...new pass_data instance
19130         and...
19131         (make_pass_compare_elim_after_reload): ...new function.
19132         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
19133         of rtl_opt_pass along with...
19134         (pass_data_rtl_cprop): ...new pass_data instance and...
19135         (make_pass_rtl_cprop): ...new function.
19136         * cse.c (pass_cse): Convert from a global struct to a subclass of
19137         rtl_opt_pass along with...
19138         (pass_data_cse): ...new pass_data instance and...
19139         (make_pass_cse): ...new function.
19140         (pass_cse2): Convert from a global struct to a subclass of
19141         rtl_opt_pass along with...
19142         (pass_data_cse2): ...new pass_data instance and...
19143         (make_pass_cse2): ...new function.
19144         (pass_cse_after_global_opts): Convert from a global struct to a
19145         subclass of rtl_opt_pass along with...
19146         (pass_data_cse_after_global_opts): ...new pass_data instance and...
19147         (make_pass_cse_after_global_opts): ...new function.
19148         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
19149         of rtl_opt_pass along with...
19150         (pass_data_ud_rtl_dce): ...new pass_data instance and...
19151         (make_pass_ud_rtl_dce): ...new function.
19152         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
19153         rtl_opt_pass along with...
19154         (pass_data_fast_rtl_dce): ...new pass_data instance and...
19155         (make_pass_fast_rtl_dce): ...new function.
19156         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
19157         a subclass of rtl_opt_pass along with...
19158         (pass_data_df_initialize_opt): ...new pass_data instance and...
19159         (make_pass_df_initialize_opt): ...new function.
19160         (pass_df_initialize_no_opt): Convert from a global struct to a
19161         subclass of rtl_opt_pass along with...
19162         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
19163         (make_pass_df_initialize_no_opt): ...new function.
19164         (pass_df_finish): Convert from a global struct to a subclass of
19165         rtl_opt_pass along with...
19166         (pass_data_df_finish): ...new pass_data instance and...
19167         (make_pass_df_finish): ...new function.
19168         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
19169         rtl_opt_pass along with...
19170         (pass_data_rtl_dse1): ...new pass_data instance and...
19171         (make_pass_rtl_dse1): ...new function.
19172         (pass_rtl_dse2): Convert from a global struct to a subclass of
19173         rtl_opt_pass along with...
19174         (pass_data_rtl_dse2): ...new pass_data instance and...
19175         (make_pass_rtl_dse2): ...new function.
19176         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
19177         subclass of rtl_opt_pass along with...
19178         (pass_data_dwarf2_frame): ...new pass_data instance and...
19179         (make_pass_dwarf2_frame): ...new function.
19180         * except.c (pass_set_nothrow_function_flags): Convert from a global
19181         struct to a subclass of rtl_opt_pass along with...
19182         (pass_data_set_nothrow_function_flags): ...new pass_data instance
19183         and...
19184         (make_pass_set_nothrow_function_flags): ...new function.
19185         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
19186         subclass of rtl_opt_pass along with...
19187         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
19188         and...
19189         (make_pass_convert_to_eh_region_ranges): ...new function.
19190         * final.c (pass_compute_alignments): Convert from a global struct to a
19191         subclass of rtl_opt_pass along with...
19192         (pass_data_compute_alignments): ...new pass_data instance and...
19193         (make_pass_compute_alignments): ...new function.
19194         (pass_final): Convert from a global struct to a subclass of
19195         rtl_opt_pass along with...
19196         (pass_data_final): ...new pass_data instance and...
19197         (make_pass_final): ...new function.
19198         (pass_shorten_branches): Convert from a global struct to a subclass of
19199         rtl_opt_pass along with...
19200         (pass_data_shorten_branches): ...new pass_data instance and...
19201         (make_pass_shorten_branches): ...new function.
19202         (pass_clean_state): Convert from a global struct to a subclass of
19203         rtl_opt_pass along with...
19204         (pass_data_clean_state): ...new pass_data instance and...
19205         (make_pass_clean_state): ...new function.
19206         * function.c (pass_instantiate_virtual_regs): Convert from a global
19207         struct to a subclass of rtl_opt_pass along with...
19208         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
19209         (make_pass_instantiate_virtual_regs): ...new function.
19210         (pass_leaf_regs): Convert from a global struct to a subclass of
19211         rtl_opt_pass along with...
19212         (pass_data_leaf_regs): ...new pass_data instance and...
19213         (make_pass_leaf_regs): ...new function.
19214         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
19215         subclass of rtl_opt_pass along with...
19216         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
19217         and...
19218         (make_pass_thread_prologue_and_epilogue): ...new function.
19219         (pass_match_asm_constraints): Convert from a global struct to a
19220         subclass of rtl_opt_pass along with...
19221         (pass_data_match_asm_constraints): ...new pass_data instance and...
19222         (make_pass_match_asm_constraints): ...new function.
19223         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
19224         subclass of rtl_opt_pass along with...
19225         (pass_data_rtl_fwprop): ...new pass_data instance and...
19226         (make_pass_rtl_fwprop): ...new function.
19227         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
19228         rtl_opt_pass along with...
19229         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
19230         (make_pass_rtl_fwprop_addr): ...new function.
19231         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
19232         rtl_opt_pass along with...
19233         (pass_data_rtl_pre): ...new pass_data instance and...
19234         (make_pass_rtl_pre): ...new function.
19235         (pass_rtl_hoist): Convert from a global struct to a subclass of
19236         rtl_opt_pass along with...
19237         (pass_data_rtl_hoist): ...new pass_data instance and...
19238         (make_pass_rtl_hoist): ...new function.
19239         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
19240         subclass of gimple_opt_pass along with...
19241         (pass_data_lower_cf): ...new pass_data instance and...
19242         (make_pass_lower_cf): ...new function.
19243         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
19244         from a global struct to a subclass of gimple_opt_pass along with...
19245         (pass_data_strength_reduction): ...new pass_data instance and...
19246         (make_pass_strength_reduction): ...new function.
19247         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
19248         of rtl_opt_pass along with...
19249         (pass_data_rtl_ifcvt): ...new pass_data instance and...
19250         (make_pass_rtl_ifcvt): ...new function.
19251         (pass_if_after_combine): Convert from a global struct to a subclass of
19252         rtl_opt_pass along with...
19253         (pass_data_if_after_combine): ...new pass_data instance and...
19254         (make_pass_if_after_combine): ...new function.
19255         (pass_if_after_reload): Convert from a global struct to a subclass of
19256         rtl_opt_pass along with...
19257         (pass_data_if_after_reload): ...new pass_data instance and...
19258         (make_pass_if_after_reload): ...new function.
19259         * init-regs.c (pass_initialize_regs): Convert from a global struct to
19260         a subclass of rtl_opt_pass along with...
19261         (pass_data_initialize_regs): ...new pass_data instance and...
19262         (make_pass_initialize_regs): ...new function.
19263         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
19264         of ipa_opt_pass_d along with...
19265         (pass_data_ipa_cp): ...new pass_data instance and...
19266         (make_pass_ipa_cp): ...new function.
19267         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
19268         global struct to a subclass of gimple_opt_pass along with...
19269         (pass_data_inline_parameters): ...new pass_data instance and...
19270         (make_pass_inline_parameters): ...new function.
19271         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
19272         subclass of gimple_opt_pass along with...
19273         (pass_data_early_inline): ...new pass_data instance and...
19274         (make_pass_early_inline): ...new function.
19275         (pass_ipa_inline): Convert from a global struct to a subclass of
19276         ipa_opt_pass_d along with...
19277         (pass_data_ipa_inline): ...new pass_data instance and...
19278         (make_pass_ipa_inline): ...new function.
19279         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
19280         struct to a subclass of gimple_opt_pass along with...
19281         (pass_data_local_pure_const): ...new pass_data instance and...
19282         (make_pass_local_pure_const): ...new function.
19283         (pass_ipa_pure_const): Convert from a global struct to a subclass of
19284         ipa_opt_pass_d along with...
19285         (pass_data_ipa_pure_const): ...new pass_data instance and...
19286         (make_pass_ipa_pure_const): ...new function.
19287         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
19288         to a subclass of ipa_opt_pass_d along with...
19289         (pass_data_ipa_reference): ...new pass_data instance and...
19290         (make_pass_ipa_reference): ...new function.
19291         * ipa-split.c (pass_split_functions): Convert from a global struct to
19292         a subclass of gimple_opt_pass along with...
19293         (pass_data_split_functions): ...new pass_data instance and...
19294         (make_pass_split_functions): ...new function.
19295         (pass_feedback_split_functions): Convert from a global struct to a
19296         subclass of gimple_opt_pass along with...
19297         (pass_data_feedback_split_functions): ...new pass_data instance and...
19298         (make_pass_feedback_split_functions): ...new function.
19299         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
19300         global struct to a subclass of simple_ipa_opt_pass along with...
19301         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
19302         instance and...
19303         (make_pass_ipa_function_and_variable_visibility): ...new function.
19304         (pass_ipa_free_inline_summary): Convert from a global struct to a
19305         subclass of simple_ipa_opt_pass along with...
19306         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
19307         (make_pass_ipa_free_inline_summary): ...new function.
19308         (pass_ipa_whole_program_visibility): Convert from a global struct to a
19309         subclass of ipa_opt_pass_d along with...
19310         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
19311         and...
19312         (make_pass_ipa_whole_program_visibility): ...new function.
19313         (pass_ipa_profile): Convert from a global struct to a subclass of
19314         ipa_opt_pass_d along with...
19315         (pass_data_ipa_profile): ...new pass_data instance and...
19316         (make_pass_ipa_profile): ...new function.
19317         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
19318         ipa_opt_pass_d along with...
19319         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
19320         (make_pass_ipa_cdtor_merge): ...new function.
19321         * ira.c (pass_ira): Convert from a global struct to a subclass of
19322         rtl_opt_pass along with...
19323         (pass_data_ira): ...new pass_data instance and...
19324         (make_pass_ira): ...new function.
19325         (pass_reload): Convert from a global struct to a subclass of
19326         rtl_opt_pass along with...
19327         (pass_data_reload): ...new pass_data instance and...
19328         (make_pass_reload): ...new function.
19329         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
19330         subclass of rtl_opt_pass along with...
19331         (pass_data_cleanup_barriers): ...new pass_data instance and...
19332         (make_pass_cleanup_barriers): ...new function.
19333         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
19334         of rtl_opt_pass along with...
19335         (pass_data_loop2): ...new pass_data instance and...
19336         (make_pass_loop2): ...new function.
19337         (pass_rtl_loop_init): Convert from a global struct to a subclass of
19338         rtl_opt_pass along with...
19339         (pass_data_rtl_loop_init): ...new pass_data instance and...
19340         (make_pass_rtl_loop_init): ...new function.
19341         (pass_rtl_loop_done): Convert from a global struct to a subclass of
19342         rtl_opt_pass along with...
19343         (pass_data_rtl_loop_done): ...new pass_data instance and...
19344         (make_pass_rtl_loop_done): ...new function.
19345         (pass_rtl_move_loop_invariants): Convert from a global struct to a
19346         subclass of rtl_opt_pass along with...
19347         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
19348         (make_pass_rtl_move_loop_invariants): ...new function.
19349         (pass_rtl_unswitch): Convert from a global struct to a subclass of
19350         rtl_opt_pass along with...
19351         (pass_data_rtl_unswitch): ...new pass_data instance and...
19352         (make_pass_rtl_unswitch): ...new function.
19353         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
19354         subclass of rtl_opt_pass along with...
19355         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
19356         and...
19357         (make_pass_rtl_unroll_and_peel_loops): ...new function.
19358         (pass_rtl_doloop): Convert from a global struct to a subclass of
19359         rtl_opt_pass along with...
19360         (pass_data_rtl_doloop): ...new pass_data instance and...
19361         (make_pass_rtl_doloop): ...new function.
19362         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
19363         a subclass of rtl_opt_pass along with...
19364         (pass_data_lower_subreg): ...new pass_data instance and...
19365         (make_pass_lower_subreg): ...new function.
19366         (pass_lower_subreg2): Convert from a global struct to a subclass of
19367         rtl_opt_pass along with...
19368         (pass_data_lower_subreg2): ...new pass_data instance and...
19369         (make_pass_lower_subreg2): ...new function.
19370         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
19371         struct to a subclass of ipa_opt_pass_d along with...
19372         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
19373         (make_pass_ipa_lto_gimple_out): ...new function.
19374         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
19375         of ipa_opt_pass_d along with...
19376         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
19377         (make_pass_ipa_lto_finish_out): ...new function.
19378         * mode-switching.c (pass_mode_switching): Convert from a global struct
19379         to a subclass of rtl_opt_pass along with...
19380         (pass_data_mode_switching): ...new pass_data instance and...
19381         (make_pass_mode_switching): ...new function.
19382         * modulo-sched.c (pass_sms): Convert from a global struct to a
19383         subclass of rtl_opt_pass along with...
19384         (pass_data_sms): ...new pass_data instance and...
19385         (make_pass_sms): ...new function.
19386         * omp-low.c (pass_expand_omp): Convert from a global struct to a
19387         subclass of gimple_opt_pass along with...
19388         (pass_data_expand_omp): ...new pass_data instance and...
19389         (make_pass_expand_omp): ...new function.
19390         (pass_lower_omp): Convert from a global struct to a subclass of
19391         gimple_opt_pass along with...
19392         (pass_data_lower_omp): ...new pass_data instance and...
19393         (make_pass_lower_omp): ...new function.
19394         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
19395         of gimple_opt_pass along with...
19396         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
19397         (make_pass_diagnose_omp_blocks): ...new function.
19398         * passes.c (pass_early_local_passes): Convert from a global struct to
19399         a subclass of simple_ipa_opt_pass along with...
19400         (pass_data_early_local_passes): ...new pass_data instance and...
19401         (make_pass_early_local_passes): ...new function.
19402         (pass_all_early_optimizations): Convert from a global struct to a
19403         subclass of gimple_opt_pass along with...
19404         (pass_data_all_early_optimizations): ...new pass_data instance and...
19405         (make_pass_all_early_optimizations): ...new function.
19406         (pass_all_optimizations): Convert from a global struct to a subclass
19407         of gimple_opt_pass along with...
19408         (pass_data_all_optimizations): ...new pass_data instance and...
19409         (make_pass_all_optimizations): ...new function.
19410         (pass_all_optimizations_g): Convert from a global struct to a subclass
19411         of gimple_opt_pass along with...
19412         (pass_data_all_optimizations_g): ...new pass_data instance and...
19413         (make_pass_all_optimizations_g): ...new function.
19414         (pass_rest_of_compilation): Convert from a global struct to a subclass
19415         of rtl_opt_pass along with...
19416         (pass_data_rest_of_compilation): ...new pass_data instance and...
19417         (make_pass_rest_of_compilation): ...new function.
19418         (pass_postreload): Convert from a global struct to a subclass of
19419         rtl_opt_pass along with...
19420         (pass_data_postreload): ...new pass_data instance and...
19421         (make_pass_postreload): ...new function.
19422         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
19423         subclass of rtl_opt_pass along with...
19424         (pass_data_gcse2): ...new pass_data instance and...
19425         (make_pass_gcse2): ...new function.
19426         * postreload.c (pass_postreload_cse): Convert from a global struct to
19427         a subclass of rtl_opt_pass along with...
19428         (pass_data_postreload_cse): ...new pass_data instance and...
19429         (make_pass_postreload_cse): ...new function.
19430         * predict.c (pass_profile): Convert from a global struct to a subclass
19431         of gimple_opt_pass along with...
19432         (pass_data_profile): ...new pass_data instance and...
19433         (make_pass_profile): ...new function.
19434         (pass_strip_predict_hints): Convert from a global struct to a subclass
19435         of gimple_opt_pass along with...
19436         (pass_data_strip_predict_hints): ...new pass_data instance and...
19437         (make_pass_strip_predict_hints): ...new function.
19438         * recog.c (pass_peephole2): Convert from a global struct to a subclass
19439         of rtl_opt_pass along with...
19440         (pass_data_peephole2): ...new pass_data instance and...
19441         (make_pass_peephole2): ...new function.
19442         (pass_split_all_insns): Convert from a global struct to a subclass of
19443         rtl_opt_pass along with...
19444         (pass_data_split_all_insns): ...new pass_data instance and...
19445         (make_pass_split_all_insns): ...new function.
19446         (pass_split_after_reload): Convert from a global struct to a subclass
19447         of rtl_opt_pass along with...
19448         (pass_data_split_after_reload): ...new pass_data instance and...
19449         (make_pass_split_after_reload): ...new function.
19450         (pass_split_before_regstack): Convert from a global struct to a
19451         subclass of rtl_opt_pass along with...
19452         (pass_data_split_before_regstack): ...new pass_data instance and...
19453         (make_pass_split_before_regstack): ...new function.
19454         (pass_split_before_sched2): Convert from a global struct to a subclass
19455         of rtl_opt_pass along with...
19456         (pass_data_split_before_sched2): ...new pass_data instance and...
19457         (make_pass_split_before_sched2): ...new function.
19458         (pass_split_for_shorten_branches): Convert from a global struct to a
19459         subclass of rtl_opt_pass along with...
19460         (pass_data_split_for_shorten_branches): ...new pass_data instance
19461         and...
19462         (make_pass_split_for_shorten_branches): ...new function.
19463         * ree.c (pass_ree): Convert from a global struct to a subclass of
19464         rtl_opt_pass along with...
19465         (pass_data_ree): ...new pass_data instance and...
19466         (make_pass_ree): ...new function.
19467         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
19468         subclass of rtl_opt_pass along with...
19469         (pass_data_stack_regs): ...new pass_data instance and...
19470         (make_pass_stack_regs): ...new function.
19471         (pass_stack_regs_run): Convert from a global struct to a subclass of
19472         rtl_opt_pass along with...
19473         (pass_data_stack_regs_run): ...new pass_data instance and...
19474         (make_pass_stack_regs_run): ...new function.
19475         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
19476         subclass of rtl_opt_pass along with...
19477         (pass_data_cprop_hardreg): ...new pass_data instance and...
19478         (make_pass_cprop_hardreg): ...new function.
19479         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
19480         subclass of rtl_opt_pass along with...
19481         (pass_data_reginfo_init): ...new pass_data instance and...
19482         (make_pass_reginfo_init): ...new function.
19483         * regmove.c (pass_regmove): Convert from a global struct to a subclass
19484         of rtl_opt_pass along with...
19485         (pass_data_regmove): ...new pass_data instance and...
19486         (make_pass_regmove): ...new function.
19487         * regrename.c (pass_regrename): Convert from a global struct to a
19488         subclass of rtl_opt_pass along with...
19489         (pass_data_regrename): ...new pass_data instance and...
19490         (make_pass_regrename): ...new function.
19491         * reorg.c (pass_delay_slots): Convert from a global struct to a
19492         subclass of rtl_opt_pass along with...
19493         (pass_data_delay_slots): ...new pass_data instance and...
19494         (make_pass_delay_slots): ...new function.
19495         (pass_machine_reorg): Convert from a global struct to a subclass of
19496         rtl_opt_pass along with...
19497         (pass_data_machine_reorg): ...new pass_data instance and...
19498         (make_pass_machine_reorg): ...new function.
19499         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
19500         of rtl_opt_pass along with...
19501         (pass_data_sched): ...new pass_data instance and...
19502         (make_pass_sched): ...new function.
19503         (pass_sched2): Convert from a global struct to a subclass of
19504         rtl_opt_pass along with...
19505         (pass_data_sched2): ...new pass_data instance and...
19506         (make_pass_sched2): ...new function.
19507         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
19508         to a subclass of rtl_opt_pass along with...
19509         (pass_data_stack_ptr_mod): ...new pass_data instance and...
19510         (make_pass_stack_ptr_mod): ...new function.
19511         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
19512         to a subclass of rtl_opt_pass along with...
19513         (pass_data_rtl_store_motion): ...new pass_data instance and...
19514         (make_pass_rtl_store_motion): ...new function.
19515         * tracer.c (pass_tracer): Convert from a global struct to a subclass
19516         of gimple_opt_pass along with...
19517         (pass_data_tracer): ...new pass_data instance and...
19518         (make_pass_tracer): ...new function.
19519         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
19520         to a subclass of gimple_opt_pass along with...
19521         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
19522         (make_pass_diagnose_tm_blocks): ...new function.
19523         (pass_lower_tm): Convert from a global struct to a subclass of
19524         gimple_opt_pass along with...
19525         (pass_data_lower_tm): ...new pass_data instance and...
19526         (make_pass_lower_tm): ...new function.
19527         (pass_tm_init): Convert from a global struct to a subclass of
19528         gimple_opt_pass along with...
19529         (pass_data_tm_init): ...new pass_data instance and...
19530         (make_pass_tm_init): ...new function.
19531         (pass_tm_mark): Convert from a global struct to a subclass of
19532         gimple_opt_pass along with...
19533         (pass_data_tm_mark): ...new pass_data instance and...
19534         (make_pass_tm_mark): ...new function.
19535         (pass_tm_edges): Convert from a global struct to a subclass of
19536         gimple_opt_pass along with...
19537         (pass_data_tm_edges): ...new pass_data instance and...
19538         (make_pass_tm_edges): ...new function.
19539         (pass_tm_memopt): Convert from a global struct to a subclass of
19540         gimple_opt_pass along with...
19541         (pass_data_tm_memopt): ...new pass_data instance and...
19542         (make_pass_tm_memopt): ...new function.
19543         (pass_ipa_tm): Convert from a global struct to a subclass of
19544         simple_ipa_opt_pass along with...
19545         (pass_data_ipa_tm): ...new pass_data instance and...
19546         (make_pass_ipa_tm): ...new function.
19547         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
19548         subclass of gimple_opt_pass along with...
19549         (pass_data_call_cdce): ...new pass_data instance and...
19550         (make_pass_call_cdce): ...new function.
19551         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
19552         subclass of gimple_opt_pass along with...
19553         (pass_data_build_cfg): ...new pass_data instance and...
19554         (make_pass_build_cfg): ...new function.
19555         (pass_split_crit_edges): Convert from a global struct to a subclass of
19556         gimple_opt_pass along with...
19557         (pass_data_split_crit_edges): ...new pass_data instance and...
19558         (make_pass_split_crit_edges): ...new function.
19559         (pass_warn_function_return): Convert from a global struct to a
19560         subclass of gimple_opt_pass along with...
19561         (pass_data_warn_function_return): ...new pass_data instance and...
19562         (make_pass_warn_function_return): ...new function.
19563         (pass_warn_function_noreturn): Convert from a global struct to a
19564         subclass of gimple_opt_pass along with...
19565         (pass_data_warn_function_noreturn): ...new pass_data instance and...
19566         (make_pass_warn_function_noreturn): ...new function.
19567         (pass_warn_unused_result): Convert from a global struct to a subclass
19568         of gimple_opt_pass along with...
19569         (pass_data_warn_unused_result): ...new pass_data instance and...
19570         (make_pass_warn_unused_result): ...new function.
19571         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
19572         a subclass of gimple_opt_pass along with...
19573         (pass_data_merge_phi): ...new pass_data instance and...
19574         (make_pass_merge_phi): ...new function.
19575         * tree-complex.c (pass_lower_complex): Convert from a global struct to
19576         a subclass of gimple_opt_pass along with...
19577         (pass_data_lower_complex): ...new pass_data instance and...
19578         (make_pass_lower_complex): ...new function.
19579         (pass_lower_complex_O0): Convert from a global struct to a subclass of
19580         gimple_opt_pass along with...
19581         (pass_data_lower_complex_O0): ...new pass_data instance and...
19582         (make_pass_lower_complex_O0): ...new function.
19583         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
19584         subclass of gimple_opt_pass along with...
19585         (pass_data_lower_eh): ...new pass_data instance and...
19586         (make_pass_lower_eh): ...new function.
19587         (pass_refactor_eh): Convert from a global struct to a subclass of
19588         gimple_opt_pass along with...
19589         (pass_data_refactor_eh): ...new pass_data instance and...
19590         (make_pass_refactor_eh): ...new function.
19591         (pass_lower_resx): Convert from a global struct to a subclass of
19592         gimple_opt_pass along with...
19593         (pass_data_lower_resx): ...new pass_data instance and...
19594         (make_pass_lower_resx): ...new function.
19595         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
19596         of gimple_opt_pass along with...
19597         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
19598         (make_pass_lower_eh_dispatch): ...new function.
19599         (pass_cleanup_eh): Convert from a global struct to a subclass of
19600         gimple_opt_pass along with...
19601         (pass_data_cleanup_eh): ...new pass_data instance and...
19602         (make_pass_cleanup_eh): ...new function.
19603         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
19604         to a subclass of simple_ipa_opt_pass along with...
19605         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
19606         (make_pass_ipa_lower_emutls): ...new function.
19607         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
19608         a subclass of gimple_opt_pass along with...
19609         (pass_data_if_conversion): ...new pass_data instance and...
19610         (make_pass_if_conversion): ...new function.
19611         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
19612         subclass of gimple_opt_pass along with...
19613         (pass_data_build_ssa): ...new pass_data instance and...
19614         (make_pass_build_ssa): ...new function.
19615         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
19616         global struct to a subclass of gimple_opt_pass along with...
19617         (pass_data_loop_distribution): ...new pass_data instance and...
19618         (make_pass_loop_distribution): ...new function.
19619         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
19620         subclass of gimple_opt_pass along with...
19621         (pass_data_mudflap_1): ...new pass_data instance and...
19622         (make_pass_mudflap_1): ...new function.
19623         (pass_mudflap_2): Convert from a global struct to a subclass of
19624         gimple_opt_pass along with...
19625         (pass_data_mudflap_2): ...new pass_data instance and...
19626         (make_pass_mudflap_2): ...new function.
19627         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
19628         subclass of gimple_opt_pass along with...
19629         (pass_data_mudflap_1): ...new pass_data instance and...
19630         (make_pass_mudflap_1): ...new function.
19631         (pass_mudflap_2): Convert from a global struct to a subclass of
19632         gimple_opt_pass along with...
19633         (pass_data_mudflap_2): ...new pass_data instance and...
19634         (make_pass_mudflap_2): ...new function.
19635         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
19636         gimple_opt_pass along with...
19637         (pass_data_nrv): ...new pass_data instance and...
19638         (make_pass_nrv): ...new function.
19639         (pass_return_slot): Convert from a global struct to a subclass of
19640         gimple_opt_pass along with...
19641         (pass_data_return_slot): ...new pass_data instance and...
19642         (make_pass_return_slot): ...new function.
19643         * tree-object-size.c (pass_object_sizes): Convert from a global struct
19644         to a subclass of gimple_opt_pass along with...
19645         (pass_data_object_sizes): ...new pass_data instance and...
19646         (make_pass_object_sizes): ...new function.
19647         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
19648         global struct to a subclass of gimple_opt_pass along with...
19649         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
19650         and...
19651         (make_pass_cleanup_cfg_post_optimizing): ...new function.
19652         (pass_fixup_cfg): Convert from a global struct to a subclass of
19653         gimple_opt_pass along with...
19654         (pass_data_fixup_cfg): ...new pass_data instance and...
19655         (make_pass_fixup_cfg): ...new function.
19656         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
19657         (make_pass_mudflap_1): ...new function.
19658         (pass_mudflap_2): Replace declaration with that of...
19659         (make_pass_mudflap_2): ...new function.
19660         (pass_asan): Replace declaration with that of...
19661         (make_pass_asan): ...new function.
19662         (pass_asan_O0): Replace declaration with that of...
19663         (make_pass_asan_O0): ...new function.
19664         (pass_tsan): Replace declaration with that of...
19665         (make_pass_tsan): ...new function.
19666         (pass_tsan_O0): Replace declaration with that of...
19667         (make_pass_tsan_O0): ...new function.
19668         (pass_lower_cf): Replace declaration with that of...
19669         (make_pass_lower_cf): ...new function.
19670         (pass_refactor_eh): Replace declaration with that of...
19671         (make_pass_refactor_eh): ...new function.
19672         (pass_lower_eh): Replace declaration with that of...
19673         (make_pass_lower_eh): ...new function.
19674         (pass_lower_eh_dispatch): Replace declaration with that of...
19675         (make_pass_lower_eh_dispatch): ...new function.
19676         (pass_lower_resx): Replace declaration with that of...
19677         (make_pass_lower_resx): ...new function.
19678         (pass_build_cfg): Replace declaration with that of...
19679         (make_pass_build_cfg): ...new function.
19680         (pass_early_tree_profile): Replace declaration with that of...
19681         (make_pass_early_tree_profile): ...new function.
19682         (pass_cleanup_eh): Replace declaration with that of...
19683         (make_pass_cleanup_eh): ...new function.
19684         (pass_sra): Replace declaration with that of...
19685         (make_pass_sra): ...new function.
19686         (pass_sra_early): Replace declaration with that of...
19687         (make_pass_sra_early): ...new function.
19688         (pass_early_ipa_sra): Replace declaration with that of...
19689         (make_pass_early_ipa_sra): ...new function.
19690         (pass_tail_recursion): Replace declaration with that of...
19691         (make_pass_tail_recursion): ...new function.
19692         (pass_tail_calls): Replace declaration with that of...
19693         (make_pass_tail_calls): ...new function.
19694         (pass_tree_loop): Replace declaration with that of...
19695         (make_pass_tree_loop): ...new function.
19696         (pass_tree_loop_init): Replace declaration with that of...
19697         (make_pass_tree_loop_init): ...new function.
19698         (pass_lim): Replace declaration with that of...
19699         (make_pass_lim): ...new function.
19700         (pass_tree_unswitch): Replace declaration with that of...
19701         (make_pass_tree_unswitch): ...new function.
19702         (pass_predcom): Replace declaration with that of...
19703         (make_pass_predcom): ...new function.
19704         (pass_iv_canon): Replace declaration with that of...
19705         (make_pass_iv_canon): ...new function.
19706         (pass_scev_cprop): Replace declaration with that of...
19707         (make_pass_scev_cprop): ...new function.
19708         (pass_empty_loop): Replace declaration with that of...
19709         (make_pass_empty_loop): ...new function.
19710         (pass_record_bounds): Replace declaration with that of...
19711         (make_pass_record_bounds): ...new function.
19712         (pass_graphite): Replace declaration with that of...
19713         (make_pass_graphite): ...new function.
19714         (pass_graphite_transforms): Replace declaration with that of...
19715         (make_pass_graphite_transforms): ...new function.
19716         (pass_if_conversion): Replace declaration with that of...
19717         (make_pass_if_conversion): ...new function.
19718         (pass_loop_distribution): Replace declaration with that of...
19719         (make_pass_loop_distribution): ...new function.
19720         (pass_vectorize): Replace declaration with that of...
19721         (make_pass_vectorize): ...new function.
19722         (pass_slp_vectorize): Replace declaration with that of...
19723         (make_pass_slp_vectorize): ...new function.
19724         (pass_complete_unroll): Replace declaration with that of...
19725         (make_pass_complete_unroll): ...new function.
19726         (pass_complete_unrolli): Replace declaration with that of...
19727         (make_pass_complete_unrolli): ...new function.
19728         (pass_parallelize_loops): Replace declaration with that of...
19729         (make_pass_parallelize_loops): ...new function.
19730         (pass_loop_prefetch): Replace declaration with that of...
19731         (make_pass_loop_prefetch): ...new function.
19732         (pass_iv_optimize): Replace declaration with that of...
19733         (make_pass_iv_optimize): ...new function.
19734         (pass_tree_loop_done): Replace declaration with that of...
19735         (make_pass_tree_loop_done): ...new function.
19736         (pass_ch): Replace declaration with that of...
19737         (make_pass_ch): ...new function.
19738         (pass_ccp): Replace declaration with that of...
19739         (make_pass_ccp): ...new function.
19740         (pass_phi_only_cprop): Replace declaration with that of...
19741         (make_pass_phi_only_cprop): ...new function.
19742         (pass_build_ssa): Replace declaration with that of...
19743         (make_pass_build_ssa): ...new function.
19744         (pass_build_alias): Replace declaration with that of...
19745         (make_pass_build_alias): ...new function.
19746         (pass_build_ealias): Replace declaration with that of...
19747         (make_pass_build_ealias): ...new function.
19748         (pass_dominator): Replace declaration with that of...
19749         (make_pass_dominator): ...new function.
19750         (pass_dce): Replace declaration with that of...
19751         (make_pass_dce): ...new function.
19752         (pass_dce_loop): Replace declaration with that of...
19753         (make_pass_dce_loop): ...new function.
19754         (pass_cd_dce): Replace declaration with that of...
19755         (make_pass_cd_dce): ...new function.
19756         (pass_call_cdce): Replace declaration with that of...
19757         (make_pass_call_cdce): ...new function.
19758         (pass_merge_phi): Replace declaration with that of...
19759         (make_pass_merge_phi): ...new function.
19760         (pass_split_crit_edges): Replace declaration with that of...
19761         (make_pass_split_crit_edges): ...new function.
19762         (pass_pre): Replace declaration with that of...
19763         (make_pass_pre): ...new function.
19764         (pass_profile): Replace declaration with that of...
19765         (make_pass_profile): ...new function.
19766         (pass_strip_predict_hints): Replace declaration with that of...
19767         (make_pass_strip_predict_hints): ...new function.
19768         (pass_lower_complex_O0): Replace declaration with that of...
19769         (make_pass_lower_complex_O0): ...new function.
19770         (pass_lower_complex): Replace declaration with that of...
19771         (make_pass_lower_complex): ...new function.
19772         (pass_lower_vector): Replace declaration with that of...
19773         (make_pass_lower_vector): ...new function.
19774         (pass_lower_vector_ssa): Replace declaration with that of...
19775         (make_pass_lower_vector_ssa): ...new function.
19776         (pass_lower_omp): Replace declaration with that of...
19777         (make_pass_lower_omp): ...new function.
19778         (pass_diagnose_omp_blocks): Replace declaration with that of...
19779         (make_pass_diagnose_omp_blocks): ...new function.
19780         (pass_expand_omp): Replace declaration with that of...
19781         (make_pass_expand_omp): ...new function.
19782         (pass_expand_omp_ssa): Replace declaration with that of...
19783         (make_pass_expand_omp_ssa): ...new function.
19784         (pass_object_sizes): Replace declaration with that of...
19785         (make_pass_object_sizes): ...new function.
19786         (pass_strlen): Replace declaration with that of...
19787         (make_pass_strlen): ...new function.
19788         (pass_fold_builtins): Replace declaration with that of...
19789         (make_pass_fold_builtins): ...new function.
19790         (pass_stdarg): Replace declaration with that of...
19791         (make_pass_stdarg): ...new function.
19792         (pass_early_warn_uninitialized): Replace declaration with that of...
19793         (make_pass_early_warn_uninitialized): ...new function.
19794         (pass_late_warn_uninitialized): Replace declaration with that of...
19795         (make_pass_late_warn_uninitialized): ...new function.
19796         (pass_cse_reciprocals): Replace declaration with that of...
19797         (make_pass_cse_reciprocals): ...new function.
19798         (pass_cse_sincos): Replace declaration with that of...
19799         (make_pass_cse_sincos): ...new function.
19800         (pass_optimize_bswap): Replace declaration with that of...
19801         (make_pass_optimize_bswap): ...new function.
19802         (pass_optimize_widening_mul): Replace declaration with that of...
19803         (make_pass_optimize_widening_mul): ...new function.
19804         (pass_warn_function_return): Replace declaration with that of...
19805         (make_pass_warn_function_return): ...new function.
19806         (pass_warn_function_noreturn): Replace declaration with that of...
19807         (make_pass_warn_function_noreturn): ...new function.
19808         (pass_cselim): Replace declaration with that of...
19809         (make_pass_cselim): ...new function.
19810         (pass_phiopt): Replace declaration with that of...
19811         (make_pass_phiopt): ...new function.
19812         (pass_forwprop): Replace declaration with that of...
19813         (make_pass_forwprop): ...new function.
19814         (pass_phiprop): Replace declaration with that of...
19815         (make_pass_phiprop): ...new function.
19816         (pass_tree_ifcombine): Replace declaration with that of...
19817         (make_pass_tree_ifcombine): ...new function.
19818         (pass_dse): Replace declaration with that of...
19819         (make_pass_dse): ...new function.
19820         (pass_nrv): Replace declaration with that of...
19821         (make_pass_nrv): ...new function.
19822         (pass_rename_ssa_copies): Replace declaration with that of...
19823         (make_pass_rename_ssa_copies): ...new function.
19824         (pass_sink_code): Replace declaration with that of...
19825         (make_pass_sink_code): ...new function.
19826         (pass_fre): Replace declaration with that of...
19827         (make_pass_fre): ...new function.
19828         (pass_check_data_deps): Replace declaration with that of...
19829         (make_pass_check_data_deps): ...new function.
19830         (pass_copy_prop): Replace declaration with that of...
19831         (make_pass_copy_prop): ...new function.
19832         (pass_vrp): Replace declaration with that of...
19833         (make_pass_vrp): ...new function.
19834         (pass_uncprop): Replace declaration with that of...
19835         (make_pass_uncprop): ...new function.
19836         (pass_return_slot): Replace declaration with that of...
19837         (make_pass_return_slot): ...new function.
19838         (pass_reassoc): Replace declaration with that of...
19839         (make_pass_reassoc): ...new function.
19840         (pass_rebuild_cgraph_edges): Replace declaration with that of...
19841         (make_pass_rebuild_cgraph_edges): ...new function.
19842         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
19843         (make_pass_remove_cgraph_callee_edges): ...new function.
19844         (pass_build_cgraph_edges): Replace declaration with that of...
19845         (make_pass_build_cgraph_edges): ...new function.
19846         (pass_local_pure_const): Replace declaration with that of...
19847         (make_pass_local_pure_const): ...new function.
19848         (pass_tracer): Replace declaration with that of...
19849         (make_pass_tracer): ...new function.
19850         (pass_warn_unused_result): Replace declaration with that of...
19851         (make_pass_warn_unused_result): ...new function.
19852         (pass_diagnose_tm_blocks): Replace declaration with that of...
19853         (make_pass_diagnose_tm_blocks): ...new function.
19854         (pass_lower_tm): Replace declaration with that of...
19855         (make_pass_lower_tm): ...new function.
19856         (pass_tm_init): Replace declaration with that of...
19857         (make_pass_tm_init): ...new function.
19858         (pass_tm_mark): Replace declaration with that of...
19859         (make_pass_tm_mark): ...new function.
19860         (pass_tm_memopt): Replace declaration with that of...
19861         (make_pass_tm_memopt): ...new function.
19862         (pass_tm_edges): Replace declaration with that of...
19863         (make_pass_tm_edges): ...new function.
19864         (pass_split_functions): Replace declaration with that of...
19865         (make_pass_split_functions): ...new function.
19866         (pass_feedback_split_functions): Replace declaration with that of...
19867         (make_pass_feedback_split_functions): ...new function.
19868         (pass_strength_reduction): Replace declaration with that of...
19869         (make_pass_strength_reduction): ...new function.
19870         (pass_ipa_lower_emutls): Replace declaration with that of...
19871         (make_pass_ipa_lower_emutls): ...new function.
19872         (pass_ipa_function_and_variable_visibility): Replace declaration with
19873         that of...
19874         (make_pass_ipa_function_and_variable_visibility): ...new function.
19875         (pass_ipa_tree_profile): Replace declaration with that of...
19876         (make_pass_ipa_tree_profile): ...new function.
19877         (pass_early_local_passes): Replace declaration with that of...
19878         (make_pass_early_local_passes): ...new function.
19879         (pass_ipa_whole_program_visibility): Replace declaration with that
19880         of...
19881         (make_pass_ipa_whole_program_visibility): ...new function.
19882         (pass_ipa_lto_gimple_out): Replace declaration with that of...
19883         (make_pass_ipa_lto_gimple_out): ...new function.
19884         (pass_ipa_increase_alignment): Replace declaration with that of...
19885         (make_pass_ipa_increase_alignment): ...new function.
19886         (pass_ipa_inline): Replace declaration with that of...
19887         (make_pass_ipa_inline): ...new function.
19888         (pass_ipa_free_lang_data): Replace declaration with that of...
19889         (make_pass_ipa_free_lang_data): ...new function.
19890         (pass_ipa_free_inline_summary): Replace declaration with that of...
19891         (make_pass_ipa_free_inline_summary): ...new function.
19892         (pass_ipa_cp): Replace declaration with that of...
19893         (make_pass_ipa_cp): ...new function.
19894         (pass_ipa_reference): Replace declaration with that of...
19895         (make_pass_ipa_reference): ...new function.
19896         (pass_ipa_pure_const): Replace declaration with that of...
19897         (make_pass_ipa_pure_const): ...new function.
19898         (pass_ipa_pta): Replace declaration with that of...
19899         (make_pass_ipa_pta): ...new function.
19900         (pass_ipa_lto_finish_out): Replace declaration with that of...
19901         (make_pass_ipa_lto_finish_out): ...new function.
19902         (pass_ipa_tm): Replace declaration with that of...
19903         (make_pass_ipa_tm): ...new function.
19904         (pass_ipa_profile): Replace declaration with that of...
19905         (make_pass_ipa_profile): ...new function.
19906         (pass_ipa_cdtor_merge): Replace declaration with that of...
19907         (make_pass_ipa_cdtor_merge): ...new function.
19908         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
19909         of...
19910         (make_pass_cleanup_cfg_post_optimizing): ...new function.
19911         (pass_init_datastructures): Replace declaration with that of...
19912         (make_pass_init_datastructures): ...new function.
19913         (pass_fixup_cfg): Replace declaration with that of...
19914         (make_pass_fixup_cfg): ...new function.
19915         (pass_expand): Replace declaration with that of...
19916         (make_pass_expand): ...new function.
19917         (pass_instantiate_virtual_regs): Replace declaration with that of...
19918         (make_pass_instantiate_virtual_regs): ...new function.
19919         (pass_rtl_fwprop): Replace declaration with that of...
19920         (make_pass_rtl_fwprop): ...new function.
19921         (pass_rtl_fwprop_addr): Replace declaration with that of...
19922         (make_pass_rtl_fwprop_addr): ...new function.
19923         (pass_jump): Replace declaration with that of...
19924         (make_pass_jump): ...new function.
19925         (pass_jump2): Replace declaration with that of...
19926         (make_pass_jump2): ...new function.
19927         (pass_lower_subreg): Replace declaration with that of...
19928         (make_pass_lower_subreg): ...new function.
19929         (pass_cse): Replace declaration with that of...
19930         (make_pass_cse): ...new function.
19931         (pass_fast_rtl_dce): Replace declaration with that of...
19932         (make_pass_fast_rtl_dce): ...new function.
19933         (pass_ud_rtl_dce): Replace declaration with that of...
19934         (make_pass_ud_rtl_dce): ...new function.
19935         (pass_rtl_dce): Replace declaration with that of...
19936         (make_pass_rtl_dce): ...new function.
19937         (pass_rtl_dse1): Replace declaration with that of...
19938         (make_pass_rtl_dse1): ...new function.
19939         (pass_rtl_dse2): Replace declaration with that of...
19940         (make_pass_rtl_dse2): ...new function.
19941         (pass_rtl_dse3): Replace declaration with that of...
19942         (make_pass_rtl_dse3): ...new function.
19943         (pass_rtl_cprop): Replace declaration with that of...
19944         (make_pass_rtl_cprop): ...new function.
19945         (pass_rtl_pre): Replace declaration with that of...
19946         (make_pass_rtl_pre): ...new function.
19947         (pass_rtl_hoist): Replace declaration with that of...
19948         (make_pass_rtl_hoist): ...new function.
19949         (pass_rtl_store_motion): Replace declaration with that of...
19950         (make_pass_rtl_store_motion): ...new function.
19951         (pass_cse_after_global_opts): Replace declaration with that of...
19952         (make_pass_cse_after_global_opts): ...new function.
19953         (pass_rtl_ifcvt): Replace declaration with that of...
19954         (make_pass_rtl_ifcvt): ...new function.
19955         (pass_into_cfg_layout_mode): Replace declaration with that of...
19956         (make_pass_into_cfg_layout_mode): ...new function.
19957         (pass_outof_cfg_layout_mode): Replace declaration with that of...
19958         (make_pass_outof_cfg_layout_mode): ...new function.
19959         (pass_loop2): Replace declaration with that of...
19960         (make_pass_loop2): ...new function.
19961         (pass_rtl_loop_init): Replace declaration with that of...
19962         (make_pass_rtl_loop_init): ...new function.
19963         (pass_rtl_move_loop_invariants): Replace declaration with that of...
19964         (make_pass_rtl_move_loop_invariants): ...new function.
19965         (pass_rtl_unswitch): Replace declaration with that of...
19966         (make_pass_rtl_unswitch): ...new function.
19967         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
19968         (make_pass_rtl_unroll_and_peel_loops): ...new function.
19969         (pass_rtl_doloop): Replace declaration with that of...
19970         (make_pass_rtl_doloop): ...new function.
19971         (pass_rtl_loop_done): Replace declaration with that of...
19972         (make_pass_rtl_loop_done): ...new function.
19973         (pass_web): Replace declaration with that of...
19974         (make_pass_web): ...new function.
19975         (pass_cse2): Replace declaration with that of...
19976         (make_pass_cse2): ...new function.
19977         (pass_df_initialize_opt): Replace declaration with that of...
19978         (make_pass_df_initialize_opt): ...new function.
19979         (pass_df_initialize_no_opt): Replace declaration with that of...
19980         (make_pass_df_initialize_no_opt): ...new function.
19981         (pass_reginfo_init): Replace declaration with that of...
19982         (make_pass_reginfo_init): ...new function.
19983         (pass_inc_dec): Replace declaration with that of...
19984         (make_pass_inc_dec): ...new function.
19985         (pass_stack_ptr_mod): Replace declaration with that of...
19986         (make_pass_stack_ptr_mod): ...new function.
19987         (pass_initialize_regs): Replace declaration with that of...
19988         (make_pass_initialize_regs): ...new function.
19989         (pass_combine): Replace declaration with that of...
19990         (make_pass_combine): ...new function.
19991         (pass_if_after_combine): Replace declaration with that of...
19992         (make_pass_if_after_combine): ...new function.
19993         (pass_ree): Replace declaration with that of...
19994         (make_pass_ree): ...new function.
19995         (pass_partition_blocks): Replace declaration with that of...
19996         (make_pass_partition_blocks): ...new function.
19997         (pass_match_asm_constraints): Replace declaration with that of...
19998         (make_pass_match_asm_constraints): ...new function.
19999         (pass_regmove): Replace declaration with that of...
20000         (make_pass_regmove): ...new function.
20001         (pass_split_all_insns): Replace declaration with that of...
20002         (make_pass_split_all_insns): ...new function.
20003         (pass_fast_rtl_byte_dce): Replace declaration with that of...
20004         (make_pass_fast_rtl_byte_dce): ...new function.
20005         (pass_lower_subreg2): Replace declaration with that of...
20006         (make_pass_lower_subreg2): ...new function.
20007         (pass_mode_switching): Replace declaration with that of...
20008         (make_pass_mode_switching): ...new function.
20009         (pass_sms): Replace declaration with that of...
20010         (make_pass_sms): ...new function.
20011         (pass_sched): Replace declaration with that of...
20012         (make_pass_sched): ...new function.
20013         (pass_ira): Replace declaration with that of...
20014         (make_pass_ira): ...new function.
20015         (pass_reload): Replace declaration with that of...
20016         (make_pass_reload): ...new function.
20017         (pass_clean_state): Replace declaration with that of...
20018         (make_pass_clean_state): ...new function.
20019         (pass_branch_prob): Replace declaration with that of...
20020         (make_pass_branch_prob): ...new function.
20021         (pass_value_profile_transformations): Replace declaration with that
20022         of...
20023         (make_pass_value_profile_transformations): ...new function.
20024         (pass_postreload_cse): Replace declaration with that of...
20025         (make_pass_postreload_cse): ...new function.
20026         (pass_gcse2): Replace declaration with that of...
20027         (make_pass_gcse2): ...new function.
20028         (pass_split_after_reload): Replace declaration with that of...
20029         (make_pass_split_after_reload): ...new function.
20030         (pass_branch_target_load_optimize1): Replace declaration with that
20031         of...
20032         (make_pass_branch_target_load_optimize1): ...new function.
20033         (pass_thread_prologue_and_epilogue): Replace declaration with that
20034         of...
20035         (make_pass_thread_prologue_and_epilogue): ...new function.
20036         (pass_stack_adjustments): Replace declaration with that of...
20037         (make_pass_stack_adjustments): ...new function.
20038         (pass_peephole2): Replace declaration with that of...
20039         (make_pass_peephole2): ...new function.
20040         (pass_if_after_reload): Replace declaration with that of...
20041         (make_pass_if_after_reload): ...new function.
20042         (pass_regrename): Replace declaration with that of...
20043         (make_pass_regrename): ...new function.
20044         (pass_cprop_hardreg): Replace declaration with that of...
20045         (make_pass_cprop_hardreg): ...new function.
20046         (pass_reorder_blocks): Replace declaration with that of...
20047         (make_pass_reorder_blocks): ...new function.
20048         (pass_branch_target_load_optimize2): Replace declaration with that
20049         of...
20050         (make_pass_branch_target_load_optimize2): ...new function.
20051         (pass_leaf_regs): Replace declaration with that of...
20052         (make_pass_leaf_regs): ...new function.
20053         (pass_split_before_sched2): Replace declaration with that of...
20054         (make_pass_split_before_sched2): ...new function.
20055         (pass_compare_elim_after_reload): Replace declaration with that of...
20056         (make_pass_compare_elim_after_reload): ...new function.
20057         (pass_sched2): Replace declaration with that of...
20058         (make_pass_sched2): ...new function.
20059         (pass_stack_regs): Replace declaration with that of...
20060         (make_pass_stack_regs): ...new function.
20061         (pass_stack_regs_run): Replace declaration with that of...
20062         (make_pass_stack_regs_run): ...new function.
20063         (pass_df_finish): Replace declaration with that of...
20064         (make_pass_df_finish): ...new function.
20065         (pass_compute_alignments): Replace declaration with that of...
20066         (make_pass_compute_alignments): ...new function.
20067         (pass_duplicate_computed_gotos): Replace declaration with that of...
20068         (make_pass_duplicate_computed_gotos): ...new function.
20069         (pass_variable_tracking): Replace declaration with that of...
20070         (make_pass_variable_tracking): ...new function.
20071         (pass_free_cfg): Replace declaration with that of...
20072         (make_pass_free_cfg): ...new function.
20073         (pass_machine_reorg): Replace declaration with that of...
20074         (make_pass_machine_reorg): ...new function.
20075         (pass_cleanup_barriers): Replace declaration with that of...
20076         (make_pass_cleanup_barriers): ...new function.
20077         (pass_delay_slots): Replace declaration with that of...
20078         (make_pass_delay_slots): ...new function.
20079         (pass_split_for_shorten_branches): Replace declaration with that of...
20080         (make_pass_split_for_shorten_branches): ...new function.
20081         (pass_split_before_regstack): Replace declaration with that of...
20082         (make_pass_split_before_regstack): ...new function.
20083         (pass_convert_to_eh_region_ranges): Replace declaration with that
20084         of...
20085         (make_pass_convert_to_eh_region_ranges): ...new function.
20086         (pass_shorten_branches): Replace declaration with that of...
20087         (make_pass_shorten_branches): ...new function.
20088         (pass_set_nothrow_function_flags): Replace declaration with that of...
20089         (make_pass_set_nothrow_function_flags): ...new function.
20090         (pass_dwarf2_frame): Replace declaration with that of...
20091         (make_pass_dwarf2_frame): ...new function.
20092         (pass_final): Replace declaration with that of...
20093         (make_pass_final): ...new function.
20094         (pass_rtl_seqabstr): Replace declaration with that of...
20095         (make_pass_rtl_seqabstr): ...new function.
20096         (pass_release_ssa_names): Replace declaration with that of...
20097         (make_pass_release_ssa_names): ...new function.
20098         (pass_early_inline): Replace declaration with that of...
20099         (make_pass_early_inline): ...new function.
20100         (pass_inline_parameters): Replace declaration with that of...
20101         (make_pass_inline_parameters): ...new function.
20102         (pass_update_address_taken): Replace declaration with that of...
20103         (make_pass_update_address_taken): ...new function.
20104         (pass_convert_switch): Replace declaration with that of...
20105         (make_pass_convert_switch): ...new function.
20106         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
20107         to a subclass of simple_ipa_opt_pass along with...
20108         (pass_data_ipa_tree_profile): ...new pass_data instance and...
20109         (make_pass_ipa_tree_profile): ...new function.
20110         * tree-sra.c (pass_sra_early): Convert from a global struct to a
20111         subclass of gimple_opt_pass along with...
20112         (pass_data_sra_early): ...new pass_data instance and...
20113         (make_pass_sra_early): ...new function.
20114         (pass_sra): Convert from a global struct to a subclass of
20115         gimple_opt_pass along with...
20116         (pass_data_sra): ...new pass_data instance and...
20117         (make_pass_sra): ...new function.
20118         (pass_early_ipa_sra): Convert from a global struct to a subclass of
20119         gimple_opt_pass along with...
20120         (pass_data_early_ipa_sra): ...new pass_data instance and...
20121         (make_pass_early_ipa_sra): ...new function.
20122         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
20123         subclass of gimple_opt_pass along with...
20124         (pass_data_ccp): ...new pass_data instance and...
20125         (make_pass_ccp): ...new function.
20126         (pass_fold_builtins): Convert from a global struct to a subclass of
20127         gimple_opt_pass along with...
20128         (pass_data_fold_builtins): ...new pass_data instance and...
20129         (make_pass_fold_builtins): ...new function.
20130         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
20131         subclass of gimple_opt_pass along with...
20132         (pass_data_copy_prop): ...new pass_data instance and...
20133         (make_pass_copy_prop): ...new function.
20134         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
20135         global struct to a subclass of gimple_opt_pass along with...
20136         (pass_data_rename_ssa_copies): ...new pass_data instance and...
20137         (make_pass_rename_ssa_copies): ...new function.
20138         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
20139         subclass of gimple_opt_pass along with...
20140         (pass_data_dce): ...new pass_data instance and...
20141         (make_pass_dce): ...new function.
20142         (pass_dce_loop): Convert from a global struct to a subclass of
20143         gimple_opt_pass along with...
20144         (pass_data_dce_loop): ...new pass_data instance and...
20145         (make_pass_dce_loop): ...new function.
20146         (pass_cd_dce): Convert from a global struct to a subclass of
20147         gimple_opt_pass along with...
20148         (pass_data_cd_dce): ...new pass_data instance and...
20149         (make_pass_cd_dce): ...new function.
20150         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
20151         subclass of gimple_opt_pass along with...
20152         (pass_data_dominator): ...new pass_data instance and...
20153         (make_pass_dominator): ...new function.
20154         (pass_phi_only_cprop): Convert from a global struct to a subclass of
20155         gimple_opt_pass along with...
20156         (pass_data_phi_only_cprop): ...new pass_data instance and...
20157         (make_pass_phi_only_cprop): ...new function.
20158         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
20159         subclass of gimple_opt_pass along with...
20160         (pass_data_dse): ...new pass_data instance and...
20161         (make_pass_dse): ...new function.
20162         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
20163         a subclass of gimple_opt_pass along with...
20164         (pass_data_forwprop): ...new pass_data instance and...
20165         (make_pass_forwprop): ...new function.
20166         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
20167         struct to a subclass of gimple_opt_pass along with...
20168         (pass_data_tree_ifcombine): ...new pass_data instance and...
20169         (make_pass_tree_ifcombine): ...new function.
20170         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
20171         subclass of gimple_opt_pass along with...
20172         (pass_data_ch): ...new pass_data instance and...
20173         (make_pass_ch): ...new function.
20174         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
20175         subclass of gimple_opt_pass along with...
20176         (pass_data_tree_loop): ...new pass_data instance and...
20177         (make_pass_tree_loop): ...new function.
20178         (pass_tree_loop_init): Convert from a global struct to a subclass of
20179         gimple_opt_pass along with...
20180         (pass_data_tree_loop_init): ...new pass_data instance and...
20181         (make_pass_tree_loop_init): ...new function.
20182         (pass_lim): Convert from a global struct to a subclass of
20183         gimple_opt_pass along with...
20184         (pass_data_lim): ...new pass_data instance and...
20185         (make_pass_lim): ...new function.
20186         (pass_tree_unswitch): Convert from a global struct to a subclass of
20187         gimple_opt_pass along with...
20188         (pass_data_tree_unswitch): ...new pass_data instance and...
20189         (make_pass_tree_unswitch): ...new function.
20190         (pass_predcom): Convert from a global struct to a subclass of
20191         gimple_opt_pass along with...
20192         (pass_data_predcom): ...new pass_data instance and...
20193         (make_pass_predcom): ...new function.
20194         (pass_vectorize): Convert from a global struct to a subclass of
20195         gimple_opt_pass along with...
20196         (pass_data_vectorize): ...new pass_data instance and...
20197         (make_pass_vectorize): ...new function.
20198         (pass_graphite): Convert from a global struct to a subclass of
20199         gimple_opt_pass along with...
20200         (pass_data_graphite): ...new pass_data instance and...
20201         (make_pass_graphite): ...new function.
20202         (pass_graphite_transforms): Convert from a global struct to a subclass
20203         of gimple_opt_pass along with...
20204         (pass_data_graphite_transforms): ...new pass_data instance and...
20205         (make_pass_graphite_transforms): ...new function.
20206         (pass_check_data_deps): Convert from a global struct to a subclass of
20207         gimple_opt_pass along with...
20208         (pass_data_check_data_deps): ...new pass_data instance and...
20209         (make_pass_check_data_deps): ...new function.
20210         (pass_iv_canon): Convert from a global struct to a subclass of
20211         gimple_opt_pass along with...
20212         (pass_data_iv_canon): ...new pass_data instance and...
20213         (make_pass_iv_canon): ...new function.
20214         (pass_scev_cprop): Convert from a global struct to a subclass of
20215         gimple_opt_pass along with...
20216         (pass_data_scev_cprop): ...new pass_data instance and...
20217         (make_pass_scev_cprop): ...new function.
20218         (pass_record_bounds): Convert from a global struct to a subclass of
20219         gimple_opt_pass along with...
20220         (pass_data_record_bounds): ...new pass_data instance and...
20221         (make_pass_record_bounds): ...new function.
20222         (pass_complete_unroll): Convert from a global struct to a subclass of
20223         gimple_opt_pass along with...
20224         (pass_data_complete_unroll): ...new pass_data instance and...
20225         (make_pass_complete_unroll): ...new function.
20226         (pass_complete_unrolli): Convert from a global struct to a subclass of
20227         gimple_opt_pass along with...
20228         (pass_data_complete_unrolli): ...new pass_data instance and...
20229         (make_pass_complete_unrolli): ...new function.
20230         (pass_parallelize_loops): Convert from a global struct to a subclass
20231         of gimple_opt_pass along with...
20232         (pass_data_parallelize_loops): ...new pass_data instance and...
20233         (make_pass_parallelize_loops): ...new function.
20234         (pass_loop_prefetch): Convert from a global struct to a subclass of
20235         gimple_opt_pass along with...
20236         (pass_data_loop_prefetch): ...new pass_data instance and...
20237         (make_pass_loop_prefetch): ...new function.
20238         (pass_iv_optimize): Convert from a global struct to a subclass of
20239         gimple_opt_pass along with...
20240         (pass_data_iv_optimize): ...new pass_data instance and...
20241         (make_pass_iv_optimize): ...new function.
20242         (pass_tree_loop_done): Convert from a global struct to a subclass of
20243         gimple_opt_pass along with...
20244         (pass_data_tree_loop_done): ...new pass_data instance and...
20245         (make_pass_tree_loop_done): ...new function.
20246         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
20247         struct to a subclass of gimple_opt_pass along with...
20248         (pass_data_cse_reciprocals): ...new pass_data instance and...
20249         (make_pass_cse_reciprocals): ...new function.
20250         (pass_cse_sincos): Convert from a global struct to a subclass of
20251         gimple_opt_pass along with...
20252         (pass_data_cse_sincos): ...new pass_data instance and...
20253         (make_pass_cse_sincos): ...new function.
20254         (pass_optimize_bswap): Convert from a global struct to a subclass of
20255         gimple_opt_pass along with...
20256         (pass_data_optimize_bswap): ...new pass_data instance and...
20257         (make_pass_optimize_bswap): ...new function.
20258         (pass_optimize_widening_mul): Convert from a global struct to a
20259         subclass of gimple_opt_pass along with...
20260         (pass_data_optimize_widening_mul): ...new pass_data instance and...
20261         (make_pass_optimize_widening_mul): ...new function.
20262         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
20263         subclass of gimple_opt_pass along with...
20264         (pass_data_phiopt): ...new pass_data instance and...
20265         (make_pass_phiopt): ...new function.
20266         (pass_cselim): Convert from a global struct to a subclass of
20267         gimple_opt_pass along with...
20268         (pass_data_cselim): ...new pass_data instance and...
20269         (make_pass_cselim): ...new function.
20270         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
20271         subclass of gimple_opt_pass along with...
20272         (pass_data_phiprop): ...new pass_data instance and...
20273         (make_pass_phiprop): ...new function.
20274         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
20275         subclass of gimple_opt_pass along with...
20276         (pass_data_pre): ...new pass_data instance and...
20277         (make_pass_pre): ...new function.
20278         (pass_fre): Convert from a global struct to a subclass of
20279         gimple_opt_pass along with...
20280         (pass_data_fre): ...new pass_data instance and...
20281         (make_pass_fre): ...new function.
20282         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
20283         subclass of gimple_opt_pass along with...
20284         (pass_data_reassoc): ...new pass_data instance and...
20285         (make_pass_reassoc): ...new function.
20286         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
20287         subclass of gimple_opt_pass along with...
20288         (pass_data_sink_code): ...new pass_data instance and...
20289         (make_pass_sink_code): ...new function.
20290         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
20291         subclass of gimple_opt_pass along with...
20292         (pass_data_strlen): ...new pass_data instance and...
20293         (make_pass_strlen): ...new function.
20294         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
20295         struct to a subclass of gimple_opt_pass along with...
20296         (pass_data_build_alias): ...new pass_data instance and...
20297         (make_pass_build_alias): ...new function.
20298         (pass_build_ealias): Convert from a global struct to a subclass of
20299         gimple_opt_pass along with...
20300         (pass_data_build_ealias): ...new pass_data instance and...
20301         (make_pass_build_ealias): ...new function.
20302         (pass_ipa_pta): Convert from a global struct to a subclass of
20303         simple_ipa_opt_pass along with...
20304         (pass_data_ipa_pta): ...new pass_data instance and...
20305         (make_pass_ipa_pta): ...new function.
20306         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
20307         subclass of gimple_opt_pass along with...
20308         (pass_data_uncprop): ...new pass_data instance and...
20309         (make_pass_uncprop): ...new function.
20310         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
20311         global struct to a subclass of gimple_opt_pass along with...
20312         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
20313         (make_pass_late_warn_uninitialized): ...new function.
20314         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
20315         to a subclass of gimple_opt_pass along with...
20316         (pass_data_init_datastructures): ...new pass_data instance and...
20317         (make_pass_init_datastructures): ...new function.
20318         (pass_early_warn_uninitialized): Convert from a global struct to a
20319         subclass of gimple_opt_pass along with...
20320         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
20321         (make_pass_early_warn_uninitialized): ...new function.
20322         (pass_update_address_taken): Convert from a global struct to a
20323         subclass of gimple_opt_pass along with...
20324         (pass_data_update_address_taken): ...new pass_data instance and...
20325         (make_pass_update_address_taken): ...new function.
20326         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
20327         struct to a subclass of gimple_opt_pass along with...
20328         (pass_data_release_ssa_names): ...new pass_data instance and...
20329         (make_pass_release_ssa_names): ...new function.
20330         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
20331         subclass of gimple_opt_pass along with...
20332         (pass_data_stdarg): ...new pass_data instance and...
20333         (make_pass_stdarg): ...new function.
20334         * tree-switch-conversion.c (pass_convert_switch): Convert from a
20335         global struct to a subclass of gimple_opt_pass along with...
20336         (pass_data_convert_switch): ...new pass_data instance and...
20337         (make_pass_convert_switch): ...new function.
20338         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
20339         to a subclass of gimple_opt_pass along with...
20340         (pass_data_tail_recursion): ...new pass_data instance and...
20341         (make_pass_tail_recursion): ...new function.
20342         (pass_tail_calls): Convert from a global struct to a subclass of
20343         gimple_opt_pass along with...
20344         (pass_data_tail_calls): ...new pass_data instance and...
20345         (make_pass_tail_calls): ...new function.
20346         * tree-vect-generic.c (pass_lower_vector): Convert from a global
20347         struct to a subclass of gimple_opt_pass along with...
20348         (pass_data_lower_vector): ...new pass_data instance and...
20349         (make_pass_lower_vector): ...new function.
20350         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
20351         gimple_opt_pass along with...
20352         (pass_data_lower_vector_ssa): ...new pass_data instance and...
20353         (make_pass_lower_vector_ssa): ...new function.
20354         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
20355         to a subclass of gimple_opt_pass along with...
20356         (pass_data_slp_vectorize): ...new pass_data instance and...
20357         (make_pass_slp_vectorize): ...new function.
20358         (pass_ipa_increase_alignment): Convert from a global struct to a
20359         subclass of simple_ipa_opt_pass along with...
20360         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
20361         (make_pass_ipa_increase_alignment): ...new function.
20362         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
20363         gimple_opt_pass along with...
20364         (pass_data_vrp): ...new pass_data instance and...
20365         (make_pass_vrp): ...new function.
20366         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
20367         subclass of simple_ipa_opt_pass along with...
20368         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
20369         (make_pass_ipa_free_lang_data): ...new function.
20370         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
20371         gimple_opt_pass along with...
20372         (pass_data_tsan): ...new pass_data instance and...
20373         (make_pass_tsan): ...new function.
20374         (pass_tsan_O0): Convert from a global struct to a subclass of
20375         gimple_opt_pass along with...
20376         (pass_data_tsan_O0): ...new pass_data instance and...
20377         (make_pass_tsan_O0): ...new function.
20378         * var-tracking.c (pass_variable_tracking): Convert from a global
20379         struct to a subclass of rtl_opt_pass along with...
20380         (pass_data_variable_tracking): ...new pass_data instance and...
20381         (make_pass_variable_tracking): ...new function.
20382         * web.c (pass_web): Convert from a global struct to a subclass of
20383         rtl_opt_pass along with...
20384         (pass_data_web): ...new pass_data instance and...
20385         (make_pass_web): ...new function.
20386         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
20387         declaration with that of...
20388         (make_pass_mode_switch_use): ...new function.
20389         (pass_resolve_sw_modes): Replace declaration with that of...
20390         (make_pass_resolve_sw_modes): ...new function.
20391         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
20392         from a global struct to a subclass of rtl_opt_pass along with...
20393         (pass_data_mode_switch_use): ...new pass_data instance and...
20394         (make_pass_mode_switch_use): ...new function.
20395         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
20396         from a global struct to a subclass of rtl_opt_pass along with...
20397         (pass_data_resolve_sw_modes): ...new pass_data instance and...
20398         (make_pass_resolve_sw_modes): ...new function.
20399         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
20400         struct to a subclass of rtl_opt_pass along with...
20401         (pass_data_insert_vzeroupper): ...new pass_data instance and...
20402         (make_pass_insert_vzeroupper): ...new function.
20403         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
20404         global struct to a subclass of rtl_opt_pass along with...
20405         (pass_data_work_around_errata): ...new pass_data instance and...
20406         (make_pass_work_around_errata): ...new function.
20407         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
20408         struct to a subclass of rtl_opt_pass along with...
20409         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
20410         (make_pass_mips_machine_reorg2): ...new function.
20412 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
20414         * passes.c (pass_manager::operator new): New.
20416 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
20418         Handwritten part of conversion of passes to C++ classes.
20420         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
20421         (toplev.o): Add dep on PASS_MANAGER_H.
20422         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
20423         of early local pases to reflect this moving from a global to a
20424         member of gcc::pass_manager.
20425         (cgraph_add_new_function): Likewise.
20426         * lto-cgraph.c (lto_output_node): Update for conversion of
20427         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
20428         * passes.c (opt_pass::clone): New.
20429         (opt_pass::gate): New.
20430         (opt_pass::execute): New.
20431         (opt_pass::opt_pass): New.
20432         (pass_manager::execute_early_local_passes): New.
20433         (pass_manager::execute_pass_mode_switching): new.
20434         (finish_optimization_passes): Convert to...
20435         (pass_manager::finish_optimization_passes): ...this.
20436         (finish_optimization_passes): Update for conversion of passes to
20437         C++ classes.
20438         (register_dump_files_1): Use has_gate since we cannot portably
20439         check a vtable entry against NULL.
20440         (dump_one_pass): Likewise.
20441         (ipa_write_summaries_2): Likewise.
20442         (ipa_write_optimization_summaries_1): Likewise.
20443         (ipa_read_summaries_1): Likewise.
20444         (ipa_read_optimization_summaries_1): Likewise.
20445         (execute_ipa_stmt_fixups): Likewise.
20446         (pass_manager::pass_manager): Rewrite pass-creation, invoking
20447         pass-creation functions rather than wiring up globals, and
20448         storing the results in fields of pass_manager generated using
20449         pass-instances.def.
20450         (pass_manager::dump_profile_report): Update for conversion of
20451         passes to C++ classes.
20452         (pass_manager::execute_ipa_summary_passes): Likewise.
20453         (execute_one_ipa_transform_pass): Likewise.
20454         (execute_one_pass): Use has_gate and has_execute since we cannot
20455         portably check a vtable entry against NULL.
20456         * pass_manager.h (pass_manager::finish_optimization_passes): New.
20457         (pass_manager): Use pass-instances.def to add fields for the
20458         various pass instances.
20459         * toplev.c (finalize): Update for move of
20460         finish_optimization_passes to a method of gcc::pass_manager.
20461         * toplev.h (finish_optimization_passes): Move to method of class
20462         pass_manager.
20463         * tree-pass.h (struct pass_data): New.
20464         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
20465         (opt_pass::gate): Convert to virtual function.
20466         (opt_pass::~opt_pass): New.
20467         (opt_pass::clone): New.
20468         (opt_pass::execute): Convert to virtual function.
20469         (opt_pass::opt_pass): New.
20470         (opt_pass::ctxt_): new.
20471         (gimple_opt_pass): Convert to subclass of opt_pass.
20472         (gimple_opt_pass::gimple_opt_pass): New.
20473         (rtl_opt_pass): Convert to subclass of opt_pass.
20474         (rtl_opt_pass::rtl_opt_pass): New.
20475         (ipa_opt_pass_d): Convert to subclass of opt_pass.
20476         (ipa_opt_pass_d::ipa_opt_pass_d): New.
20477         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
20478         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
20479         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
20480         invocation of pass_mode_switching to reflect this moving from a
20481         global to a member of gcc::pass_manager.
20482         (ix86_option_override): Rework how pass_insert_vzeroupper is
20483         added to the pass_manager to reflect autogenerated changes.
20484         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
20486 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
20488         PR rtl-optimization/57708
20489         * recog.c (peep2_find_free_register): Validate all regs in a
20490         multi-reg mode.
20492 2013-08-05  Jan Hubicka  <jh@suse.cz>
20494         PR lto/57602
20495         * cgraph.c (verify_cgraph_node): Accept local flags from other
20496         partitions.
20497         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
20498         (function_and_variable_visibility): Likewise.
20499         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
20501 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20503         * graph.c (init_graph_slim_pretty_print): Remove.
20504         (print_graph_cfg): Do not call it.  Use local pretty printer.
20505         (start_graph_dump): Likewise.
20507 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20509         * gimple-pretty-print.c (buffer): Remove.
20510         (initialized): Likewise.
20511         (maybe_init_pretty_print): Likewise.
20512         (print_gimple_stmt): Do not call it.  Use non-static local
20513         pretty_printer variable.
20514         (print_gimple_expr): Likewise.
20515         (print_gimple_seq): Likewise.
20516         (gimple_dump_bb): Likewise.
20518 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20520         * asan.c (asan_pp): Remove.
20521         (asan_pp_initialized): Likewise.
20522         (asan_pp_initialize): Likewise.
20523         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
20524         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
20525         (asan_add_global): Likewise.
20527 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20529         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
20530         * diagnostic.h (diagnostic_flush_buffer): Adjust.
20531         * pretty-print.c (pp_formatted_text_data): Likewise.
20532         (pp_indent): Rename from pp_base_indent.
20533         (pp_format): Rename from pp_base_format.
20534         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
20535         (pp_format_verbatim): Rename from pp_base_format_verbatim.
20536         (pp_flush): Rename from pp_base_flush.
20537         (pp_set_line_maximum_length): Rename from
20538         pp_base_set_line_maximum_length.
20539         (pp_clear_output_area): Rename from pp_base_clear_output_area.
20540         (pp_set_prefix): Rename from pp_base_set_prefix.
20541         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
20542         (pp_emit_prefix): Rename from pp_base_emit_prefix.
20543         (pp_append_text): Rename from pp_base_append_text.
20544         (pp_formatted_text): Rename from pp_base_formatted_text.
20545         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
20546         (pp_remaining_character_count_for_line): Rename from
20547         pp_base_remaining_character_count_for_line.
20548         (pp_newline): Rename from pp_base_newline.
20549         (pp_character): Rename from pp_base_character.
20550         (pp_string): Rename from pp_base_string.
20551         (pp_maybe_space): Rename from pp_base_maybe_space.
20552         * asan.c (asan_pp_string): Adjust.
20553         (asan_emit_stack_protection): Likewise.
20554         (asan_add_global): Likewise.
20555         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
20556         * tree-mudflap.c (mf_varname_tree): Likewise.
20557         * tree-pretty-print.c (pp_tree_identifier): Rename from
20558         pp_base_tree_identifier.
20559         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
20560         Declare as function.
20562 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20564         * pretty-print.h (pp_bar_bar): New.
20565         (pp_ampersand_ampersand): Likewise.
20566         (pp_less_equal): Likewise.
20567         (pp_greater_equal): Likewise.
20568         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
20569         printer functions instead of pp_string or operators and punctuators.
20570         (dump_gimple_call): Likewise.
20571         (dump_gimple_omp_for): Likewise.
20572         (dump_gimple_transaction): Likewise.
20573         (dump_gimple_phi): Likewise.
20574         (pp_gimple_stmt_1): Likewise.
20575         * sched-vis.c (print_insn): Likewise.
20576         * tree-mudflap.c (mf_varname_tree): Likewise.
20577         * tree-pretty-print.c (dump_block_node): Likewise.
20578         (dump_generic_node): Likewise.
20580 2013-08-02  Jan Hubicka  <jh@suse.cz>
20582         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
20583         boundaries.
20584         * lto-streamer-out.c (tree_is_indexable): Results decls and
20585         parm decls are not indexable.
20586         (DFS_write_tree_body): Do not follow args and results.
20587         (hash_tree): Likewise.
20588         (output_functions): Rearrange so struct function is needed
20589         only when real body is output; be able to also ouptut abstract
20590         functions; output DECL_ARGUMENTS and DECL_RESULT.
20591         (lto_output): When not in WPA, ale store abstract functions.
20592         (write_symbol): Do not care about RESULT_DECL.
20593         (output_symbol_p): Handle correctly sbtract decls.
20594         * lto-streamer-in.c (input_function): Rearrange so struct
20595         function can be NULL at entry; allow streaming of
20596         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
20597         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
20598         sanity check during LTO.
20599         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
20600         RESULT_DECl and DECL_ARGUMENTS.
20601         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20602         Likewise.
20604 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20606         * pretty-print.h (pp_underscore): New.
20607         (pp_comma): Tidy.
20608         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
20609         printer functions instead of pp_character.
20610         (dump_binary_rhs): Likewise.
20611         (dump_ternary_rhs): Likewise.
20612         (dump_gimple_call_args): Likewise.
20613         (pp_points_to_solution): Likewise.
20614         (dump_gimple_call): Likewise.
20615         (dump_gimple_switch): Likewise.
20616         (dump_gimple_cond): Likewise.
20617         (dump_gimple_bind): Likewise.
20618         (dump_gimple_try): Likewise.
20619         (dump_gimple_omp_for): Likewise.
20620         (dump_gimple_omp_continue): Likewise.
20621         (dump_gimple_omp_single): Likewise.
20622         (dump_gimple_omp_sections): Likewise.
20623         (dump_gimple_omp_block): Likewise.
20624         (dump_gimple_omp_critical): Likewise.
20625         (dump_gimple_transaction): Likewise.
20626         (dump_gimple_asm): Likewise.
20627         (dump_gimple_phi): Likewise.
20628         (dump_gimple_omp_parallel): Likewise.
20629         (dump_gimple_omp_task): Likewise.
20630         (dump_gimple_omp_atomic_load): Likewise.
20631         (dump_gimple_omp_atomic_store): Likewise.
20632         (dump_gimple_mem_ops): Likewise.
20633         (pp_gimple_stmt_1): Likewise.
20634         (pp_cfg_jump): Likewise.
20635         (dump_implicit_edges): Likewise.
20636         (gimple_dump_bb_for_graph): Likewise.
20637         * graph.c (draw_cfg_node): Likewise.
20638         * langhooks.c (lhd_print_error_function): Likewise.
20639         * sched-vis.c (print_exp): Likewise.
20640         (print_value): Likewise.
20641         (print_pattern): Likewise.
20642         (print_insn): Likewise.
20643         (rtl_dump_bb_for_graph): Likewise.
20644         * tree-pretty-print.c (dump_function_declaration): Likewise.
20645         (dump_array_domain): Likewise.
20646         (dump_omp_clause): Likewise.
20647         (dump_location): Likewise.
20648         (dump_generic_node): Likewise.
20649         (print_struct_decl): Likewise.
20650         * diagnostic.c (diagnostic_show_locus): Use pp_space.
20652 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20654         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
20655         candidate table when replacing a candidate statement.
20656         (replace_rhs_if_not_dup): Likewise.
20657         (replace_one_candidate): Likewise.
20659 2013-08-02  Jan Hubicka  <jh@suse.cz>
20660             Martin Liska  <marxin.liska@gmail.com>
20662         * cgraphunit.c (add_new_function): Fix logic when adding from
20663         late IPA pass.
20664         (assemble_thunk): Rename to ...
20665         (expand_thunk); .. this one; export; get it working with
20666         general functions; make produced gimple valid.
20667         * cgraph.h (expand_thunk): Declare.
20669 2013-08-02  Jan Hubicka  <jh@suse.cz>
20671         * ipa-cp.c (gather_context_independent_values): Use
20672         ipa_get_param_move_cost.
20673         (get_replacement_map): Remove PARAM; move parameter folding
20674         into tree-inline.c
20675         (create_specialized_node): Update.
20676         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
20677         assert that we have gimple body; update move_cost.
20678         (count_formal_params): Assert that we have gimple body.
20679         (ipa_dump_param): New function.
20680         (ipa_alloc_node_params): Break out from ...
20681         (ipa_initialize_node_params): ... here.
20682         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
20683         (ipa_write_node_info): Stream move costs.
20684         (ipa_read_node_info): Read move costs.
20685         (ipa_update_after_lto_read): Do not recompute node params.
20686         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
20687         (ipa_get_param): Check we are not in WPA.
20688         (ipa_get_param_move_cost): New.
20689         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
20690         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
20691         parm numbers to be present.
20693 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
20695         PR rtl-optimization/58048
20696         * lra-constraints.c (process_alt_operands): Don't check asm
20697         operand on register.
20699 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
20701         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
20702         the implied StoreLoad barrier for atomic operations if before.
20704 2013-08-02  Jan Hubicka  <jh@suse.cz>
20705             Martin Liska  <marxin.liska@gmail.com>
20707         * cgraph.c (cgraph_function_body_availability): Do not check
20708         cgraph flags.
20709         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
20710         symtab_node_availability): Declare.
20711         * ipa.c (can_replace_by_local_alias): New.
20712         (function_and_variable_visibility): Use it.
20713         * symtab.c (symtab_for_node_and_aliases,
20714         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
20716 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
20718         PR rtl-optimization/57963
20719         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
20720         (lra_constraints): Use them.
20722 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
20724         * config/arm/types.md (define_attr "type"): Add "load_acq"
20725         and "store_rel".
20726         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
20727         changes.
20728         (cortex_a53_store1): Likewise.
20730 2013-08-01  Jan Hubicka  <jh@suse.cz>
20732         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
20733         partitions are not needed.
20735 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
20737         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
20738         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
20739         MAYBE_NON_Q_CLASS_P where appropriate.
20741 2013-08-01  Jan Hubicka  <jh@suse.cz>
20743         * cgraph.h (release_function_body): Declare.
20744         * tree.c (free_lang_data_in_decl): Free, parameters and return values
20745         of unused delcarations.
20747 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20749         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
20750         RTL form when subtracting a constant.
20752 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20754         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
20755         Generate canonical plus rtx with negated immediate instead of minus
20756         where appropriate.
20757         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
20759 2013-08-01  Jan Hubicka  <jh@suse.cz>
20761         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
20762         (cgraph_release_function_body): Likewise.
20763         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
20764         * cgraph.h (cgrpah_node): Rename abstract_and_needed
20765         to used_as_abstract_origin.
20766         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
20767         symbols used as abstract origins.
20768         * cgraphunit.c (analyze_functions): Update.
20769         * ipa.c (symtab_remove_unreachable_nodes): Recompute
20770         used_as_abstract_origin.
20771         * tree-inline.c (tree_function_versioning): Update
20772         used_as_abstract_origin; be ready for DECL_RESULT and
20773         DECL_ARGUMENTS to be NULL.
20775         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
20776         for abstract functions.
20777         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
20778         real symbols.
20780 2013-08-01  Jan Hubicka  <jh@suse.cz>
20782         * profile.c (compute_value_histograms): Fix thinko.
20784 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
20786         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
20787         aarch-common-protos.h to extra_headers.
20788         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20789         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
20790         * config/aarch64/t-aarch64 (aarch-common.o): Define.
20792 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
20794         * config/aarch64/aarch64.md (define_attr "type"): Delete.
20795         Include "../arm/types.md".  Define "type" attribute for all patterns.
20796         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
20797         attribute changes.
20799 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
20801         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
20802         to support power8 load fusion.
20803         (fusion_gpr_mem_load): Likewise.
20805         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
20807         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
20808         declarations for power8 load fusion.
20809         (emit_fusion_gpr_load): Likewise.
20811         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
20812         tuning for power8, turn on fusion mode by default.  Turn on sign
20813         extending fusion mode if normal fusion mode is on, and we are at
20814         -O2 or -O3.
20815         (fusion_gpr_load_p): New function, return true if we can fuse an
20816         addis instruction with a dependent load to a GPR.
20817         (emit_fusion_gpr_load): Emit the instructions for power8 load
20818         fusion to GPRs.
20820         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
20821         (VSX load fusion peepholes): New peepholes to fuse together an
20822         addi instruction with a VSX load instruction.
20824         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
20825         peepholes to fuse an addis instruction with a load to a GPR base
20826         register.  If we are supporting sign extending fusions, convert
20827         sign extending loads to zero extending loads and add an explicit
20828         sign extension.
20830 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
20832         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
20833         aarch-common-protos.h to extra_headers.
20834         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20835         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
20836         (arm_early_store_addr_dep): Likewise.
20837         (arm_no_early_alu_shift_dep): Likewise.
20838         (arm_no_early_alu_shift_value_dep): Likewise.
20839         (arm_no_early_mul_dep): Likewise.
20840         (arm_no_early_store_addr_dep): Likewise.
20841         (arm_mac_accumulator_is_mul_result): Likewise.
20842         (arm_mac_accumulator_is_result): Likewise.
20843         * config/arm/aarch-common.c: ... here.  New file.
20844         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
20845         here to ...
20846         (arm_early_store_addr_dep): Likewise.
20847         (arm_no_early_alu_shift_dep): Likewise.
20848         (arm_no_early_alu_shift_value_dep): Likewise.
20849         (arm_no_early_mul_dep): Likewise.
20850         (arm_no_early_store_addr_dep): Likewise.
20851         (arm_mac_accumulator_is_mul_result): Likewise.
20852         (arm_mac_accumulator_is_result): Likewise.
20853         * config/arm/aarch-common-protos.h: ... here.  New file.
20854         * config/arm/t-arm (aarch-common.o): Define.
20856 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
20858         * config/arm/arm.md: Include new file "types.md".
20859         (define_attr "type"): Move from here to ...
20860         (define_attr "mul32"): Likewise.
20861         (define_attr "mul64"): Likewise.
20862         * config/arm/types.md: ... here.  New file.
20864 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20866         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
20867         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
20869 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20871         * gen-pass-instances.awk: Fix offset of substr().
20873 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
20875         * Makefile.in (pass-instances.def): New.
20876         (passes.o): Replace dependency on passes.def with one on
20877         pass-instances.def
20879         * gen-pass-instances.awk: New.
20881         * passes.c (pass_manager::pass_manager): Use pass-instances.def
20882         rather than passes.def, updating local definition of NEXT_PASS
20883         macro to add an extra NUM parameter (currently unused).
20885 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
20887         * Makefile.in (PASS_MANAGER_H): New.
20888         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
20889         (passes.o): Likewise.
20890         (statistics.o): Likewise.
20891         (cgraphunit.o): Likewise.
20892         (context.o): Depend on PASS_MANAGER_H.
20894         * pass_manager.h: New.
20896         * cgraphunit.c (cgraph_add_new_function): Update for moves
20897         of globals to fields of pass_manager.
20898         (analyze_function): Likewise.
20899         (expand_function): Likewise.
20900         (ipa_passes): Likewise.
20901         (compile): Likewise.
20903         * context.c (context::context): New.
20904         * context.h  (context::context): New.
20905         (context::get_passes): New.
20906         (context::passes_): New.
20908         * lto-cgraph.c (input_node): Update for moves of globals to
20909         fields of pass_manager.
20911         * passes.c (all_passes): Remove, in favor of a field of the
20912         same name within the new class pass_manager.
20913         (all_small_ipa_passes): Likewise.
20914         (all_lowering_passes): Likewise.
20915         (all_regular_ipa_passes): Likewise.
20916         (all_late_ipa_passes): Likewise.
20917         (all_lto_gen_passes): Likewise.
20918         (passes_by_id): Likewise.
20919         (passes_by_id_size): Likewise.
20920         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
20921         the new class pass_manager.
20922         (set_pass_for_id): Convert to...
20923         (pass_manager::set_pass_for_id): ...method.
20924         (get_pass_for_id): Convert to...
20925         (pass_manager::get_pass_for_id): ...method.
20926         (register_one_dump_file): Move body of implementation into...
20927         (pass_manager::register_one_dump_file): ...here.
20928         (register_dump_files_1): Convert to...
20929         (pass_manager::register_dump_files_1): ...method.
20930         (register_dump_files): Convert to...
20931         (pass_manager::register_dump_files): ...method.
20932         (create_pass_tab): Update for moves of globals to fields of
20933         pass_manager.
20934         (dump_passes): Move body of implementation into...
20935         (pass_manager::dump_passes): ...here.
20936         (register_pass): Move body of implementation into...
20937         (pass_manager::register_pass): ...here.
20938         (init_optimization_passes): Convert into...
20939         (pass_manager::pass_manager): ...constructor for new
20940         pass_manager class, and initialize the pass_lists array.
20941         (check_profile_consistency): Update for moves of globals to
20942         fields of pass_manager.
20943         (dump_profile_report): Move body of implementation into...
20944         (pass_manager::dump_profile_report): ...here.
20945         (ipa_write_summaries_1): Update for moves of pass lists from
20946         being globals to fields of pass_manager.
20947         (ipa_write_optimization_summaries): Likewise.
20948         (ipa_read_summaries):  Likewise.
20949         (ipa_read_optimization_summaries): Likewise.
20950         (execute_all_ipa_stmt_fixups): Likewise.
20952         * statistics.c (statistics_fini): Update for moves of globals to
20953         fields of pass_manager.
20955         * toplev.c (general_init): Replace call to
20956         init_optimization_passes with construction of the pass_manager
20957         instance.
20959         * tree-pass.h (all_passes): Remove, in favor of a field of the
20960         same name within the new class pass_manager.
20961         (all_small_ipa_passes): Likewise.
20962         (all_lowering_passes): Likewise.
20963         (all_regular_ipa_passes): Likewise.
20964         (all_lto_gen_passes): Likewise.
20965         (all_late_ipa_passes): Likewise.
20966         (passes_by_id): Likewise.
20967         (passes_by_id_size): Likewise.
20968         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
20969         the new class pass_manager.
20970         (get_pass_for_id): Remove.
20972 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
20974         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
20975         configs.
20977 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
20979         * arm.md (mulhi3): New expand pattern.
20981 2013-07-30  Jan Hubicka  <jh@suse.cz>
20982             Martin Liska  <marxin.liska@gmail.com>
20984         * profile.c (compute_value_histograms): Do not ICE when
20985         there is mismatch only on some counters.
20987 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20989         PR rtl-optimization/57637
20990         * function.c (move_insn_for_shrink_wrap): Also check the
20991         GEN set of the LIVE problem for the liveness analysis
20992         if it exists, otherwise give up.
20994 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20996         PR tree-optimization/57993
20997         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
20998         replaced statement in the candidate table.
20999         (phi_add_costs): Return infinite cost when the hidden basis does
21000         not dominate all phis on which the candidate is dependent.
21001         (replace_one_candidate): Record replaced statement in the
21002         candidate table.
21004 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
21006         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
21007         (ashlv2si3): New expander.
21008         (*ashlv2si3_i): New define_insn_and_split.
21009         * predicates.md (float_operation): Allow patterns with three
21010         basic sub-patterns.
21012         PR rtl-optimization/58021
21013         * mode-switching.c (create_pre_exit): Always split off preceding
21014         insns if we are not at the basic block head.
21016 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
21018         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
21019         (UCLIBC_DYNAMIC_LINKER): New macro.
21020         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
21021         `-mnan=2008'.
21022         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
21023         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
21024         `-mnan=2008'.
21025         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
21026         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
21027         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
21028         for SF and DF modes.  Use ieee_quad_format for TF mode.
21029         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
21030         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
21031         (mips_option_override): Handle `-mnan=legacy'.
21032         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
21033         `-mabs=2008' and `-mnan=2008'.
21034         (OPTION_DEFAULT_SPECS): Add "nan" default.
21035         (ASM_SPEC): Handle `-mnan='.
21036         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
21037         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
21038         comment accordingly.
21039         (neg<mode>2): Likewise.
21040         * config/mips/mips.opt (mabs, mnan): New options.
21041         * doc/install.texi (Configuration): Document `--with-nan=' option.
21042         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
21043         `-mnan=' options.
21044         (MIPS Options): Document them.
21045         * config.gcc <mips*-*-*>: Handle `--with-nan='.
21046         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
21047         * configure: Regenerate.
21048         * config.in: Regenerate.
21050 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
21052         * config/i386/i386.md (float post-reload splitters): Do not check
21053         for subregs of SSE registers.
21055 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
21056             H.J. Lu  <hongjiu.lu@intel.com>
21058         PR target/57954
21059         PR target/57988
21060         * config/i386/i386.md (post-reload splitter
21061         to avoid partial SSE reg dependency stalls): New pattern.
21063 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
21065         * config/s390/s390.md ("movcc"): Swap load and store instructions.
21067 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
21069         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
21070         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
21072 2013-07-26  Cary Coutant  <ccoutant@google.com>
21074         * dwarf2out.c (die_checksum_ordered): Don't include template
21075         instantiations in signature.
21076         (is_template_parameter): New function.
21077         (is_template_instantiation): New function.
21078         (generate_skeleton_bottom_up): Don't include template instantiations
21079         in type unit DIE.
21080         (generate_skeleton): Likewise.
21081         (break_out_comdat_types): Move recursive call to break out nested
21082         types earlier.
21083         (prune_unused_types_mark_generic_parms_dies): Call
21084         is_template_parameter.
21086 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
21088         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
21089         uses vector registers.
21090         * config/aarch64/iterators.md: Add attributes rtn and vas.
21092 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21093             Richard Earnshaw  <richard.earnshaw@arm.com>
21095         * combine.c (simplify_comparison): Re-canonicalize operands
21096         where appropriate.
21097         * config/arm/arm.md (movcond_addsi): New splitter.
21099 2013-07-25  Sterling Augustine  <saugustine@google.com>
21101         * dwarf2out.c (size_of_pubnames): Move code to...
21102         (include_pubname_in_output): ...here.  New.
21103         (want_pubnames): Rearrange.
21104         (output_pubnames): Call include_pubname_in_output.  Move assertion.
21106 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
21108         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
21110 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
21112         PR target/38836
21113         * doc/extend.texi: Remove obsolete builtins. Fix
21114         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
21116 2013-07-25  Jan Hubicka  <jh@suse.cz>
21118         * cgraph.c (release_function_body): Break out from ...
21119         (cgraph_release_function_body): ... this one; also release DECL_RESULT
21120         and DECL_ARGUMENTS.
21121         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
21122         old_tree in the map.
21123         (create_specialized_node): Update.
21124         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
21125         into index.
21126         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
21127         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
21128         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
21129         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
21130         DECL_RESULT.
21132 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21134         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
21135         addsi3_carryin_alt2_<optab>): Correct output template.
21137 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21139         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
21140         Adjust for arm_restrict_it.
21141         Remove trailing whitespace.
21143 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
21145         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
21146         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
21148         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
21150 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
21152         PR rtl-optimization/57960
21153         * lra-constraints.c (process_alt_operands): Use the right mode
21154         when checking strict_low.
21156 2013-07-25  Jan Hubicka  <jh@suse.cz>
21158         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
21159         * cgraph.c (cgraph_remove_node): Do not release function body
21160         when in cgraph streaming.
21161         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
21162         in other partitions are not considered reachable; fix handling of
21163         clones.
21165 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21167         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
21169 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21171         PR target/19599
21172         PR target/57731
21173         PR target/57837
21174         * config/arm/arm.md ("*sibcall_insn): Replace use of
21175         Ss with US. Adjust output for v5 and v4t.
21176         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
21178         * config/arm/constraints.md ("Ss"): Rename to US.
21180 2013-07-25  Terry Guo  <terry.guo@arm.com>
21182         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
21183         shift_add/shift_sub0/shift_sub1 RTXs.
21185 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
21186             Anton Blanchard  <anton@au1.ibm.com>
21188         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
21189         (altivec_vpks<VI_char>ss): Likewise.
21190         (altivec_vpks<VI_char>us): Likewise.
21191         (altivec_vpku<VI_char>us): Likewise.
21192         (altivec_vpku<VI_char>um): Likewise.
21194 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
21196         Introduce context class.
21198         * Makefile.in (CONTEXT_H): New.
21199         (OBJS): Add context.o.
21200         (toplev.o): Add CONTEXT_H to dependencies.
21201         (context.o): New.
21203         * toplev.c (general_init): Create the singleton gcc::context instance.
21205         * context.c: New.
21207         * context.h: New.
21209 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
21211         PR rtl-optimization/57968
21212         * mode-switching.c (create_pre_exit): Allow instructions that
21213         don't set a return register to need a non-exit mode.
21215 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21216             Anton Blanchard  <anton@au1.ibm.com>
21218         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
21219         operands to vperm for little endian.
21220         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
21221         of lvsl to create the control mask for a vperm for little endian.
21223 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21224             Anton Blanchard  <anton@au1.ibm.com>
21226         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
21227         two operands for little-endian.
21229 2013-07-23  Steve Ellcey  <sellcey@mips.com>
21231         * config/mips/mips.c (mips_case_values_threshold): New.
21232         (TARGET_CASE_VALUES_THRESHOLD): Define.
21234 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21235             Anton Blanchard  <anton@au1.ibm.com>
21237         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
21238         selection of field for vector splat in little endian mode.
21240 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
21242         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
21243         expanders to rs6000.md.
21244         (ior<mode>3): Likewise.
21245         (and<mode>3): Likewise.
21246         (one_cmpl<mode>2): Likewise.
21247         (nor<mode>3): Likewise.
21248         (andc<mode>3): Likewise.
21249         (eqv<mode>3): Likewise.
21250         (nand<mode>3): Likewise.
21251         (orc<mode>3): Likewise.
21253         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
21254         declaration.
21256         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
21257         to split multi-word logical operations.
21258         (rs6000_split_logical_di): Likewise.
21259         (rs6000_split_logical): Likewise.
21261         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
21262         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
21263         and allow TImode operations in 32-bit.
21264         (vsx_and<mode>3_64bit): Likewise.
21265         (vsx_ior<mode>3_32bit): Likewise.
21266         (vsx_ior<mode>3_64bit): Likewise.
21267         (vsx_xor<mode>3_32bit): Likewise.
21268         (vsx_xor<mode>3_64bit): Likewise.
21269         (vsx_one_cmpl<mode>2_32bit): Likewise.
21270         (vsx_one_cmpl<mode>2_64bit): Likewise.
21271         (vsx_nor<mode>3_32bit): Likewise.
21272         (vsx_nor<mode>3_64bit): Likewise.
21273         (vsx_andc<mode>3_32bit): Likewise.
21274         (vsx_andc<mode>3_64bit): Likewise.
21275         (vsx_eqv<mode>3_32bit): Likewise.
21276         (vsx_eqv<mode>3_64bit): Likewise.
21277         (vsx_nand<mode>3_32bit): Likewise.
21278         (vsx_nand<mode>3_64bit): Likewise.
21279         (vsx_orc<mode>3_32bit): Likewise.
21280         (vsx_orc<mode>3_64bit): Likewise.
21282         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
21283         logical types in GPRs.
21285         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
21286         logical insns to rs6000.md, and allow TImode operations in
21287         32-bit.
21288         (altivec_ior<mode>3): Likewise.
21289         (altivec_xor<mode>3): Likewise.
21290         (altivec_one_cmpl<mode>2): Likewise.
21291         (altivec_nor<mode>3): Likewise.
21292         (altivec_andc<mode>3): Likewise.
21294         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
21295         attributes for moving the 128-bit logical operations into
21296         rs6000.md.
21297         (BOOL_REGS_OUTPUT): Likewise.
21298         (BOOL_REGS_OP1): Likewise.
21299         (BOOL_REGS_OP2): Likewise.
21300         (BOOL_REGS_UNARY): Likewise.
21301         (BOOL_REGS_AND_CR0): Likewise.
21302         (one_cmpl<mode>2): Add support for DI logical operations on
21303         32-bit, splitting the operations to 32-bit.
21304         (anddi3): Likewise.
21305         (iordi3): Likewise.
21306         (xordi3): Likewise.
21307         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
21308         changes to combine the 32/64-bit code, allow logical operations on
21309         TI mode in 32-bit, and to use similar match_operator patterns like
21310         scalar mode uses.  Combine the Altivec and VSX code for logical
21311         operations, and move it here.
21312         (ior<mode>3, 128-bit types): Likewise.
21313         (xor<mode>3, 128-bit types): Likewise.
21314         (one_cmpl<mode>3, 128-bit types): Likewise.
21315         (nor<mode>3, 128-bit types): Likewise.
21316         (andc<mode>3, 128-bit types): Likewise.
21317         (eqv<mode>3, 128-bit types): Likewise.
21318         (nand<mode>3, 128-bit types): Likewise.
21319         (orc<mode>3, 128-bit types): Likewise.
21320         (and<mode>3_internal): Likewise.
21321         (bool<mode>3_internal): Likewise.
21322         (boolc<mode>3_internal1): Likewise.
21323         (boolc<mode>3_internal2): Likewise.
21324         (boolcc<mode>3_internal1): Likewise.
21325         (boolcc<mode>3_internal2): Likewise.
21326         (eqv<mode>3_internal1): Likewise.
21327         (eqv<mode>3_internal2): Likewise.
21328         (one_cmpl1<mode>3_internal): Likewise.
21330 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
21332         * config/microblaze/microblaze.c (microblaze_expand_prologue):
21333         Rename flag_stack_usage to flag_stack_usage_info.
21335 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
21337         * config/microblaze/sync.md: New file.
21338         * config/microblaze/microblaze.md: Include sync.md
21339         * config/microblaze/microblaze.c: Add print_operand 'y'.
21340         * config/microblaze/constraints.md: Add memory_contraint
21341         'Q' which is a single register.
21343 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
21345         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
21347 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
21349         * reload.c (find_reloads): Exit loop once we find this operand
21350         cannot be reloaded somehow for this alternative.
21352         * reload.c (find_reloads): Exit loop once we find a hard register.
21354         * rtlanal.c (computed_jump_p): Exit loop once we find label
21355         reference is used.
21357         * i386.c (ix86_pad_returns): Exit loop after setting replace.
21359         * cfgloopmanip.c (remove_path): Exit loop after setting
21360         irred_invalidated.
21362         * gensupport.c (subst_dup): Avoid loop if code is not
21363         MATCH_DUP nor MATCH_OP_DUP.
21365 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
21367         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
21369 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21371         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
21372         true for SP_REGNUM if mode == ptr_mode.
21373         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
21374         with value R0_REGNUM + 31.
21376 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21378         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
21379         pad pointer-typed argument downward.
21381 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21383         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
21384         and __ILP32__ when the ILP32 model is in use.
21386 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21388         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
21389         (aarch64_load_symref_appropriately): In the case of
21390         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
21391         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
21392         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
21393         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
21394         if 'mode' doesn't equal to 'ptr_mode'.
21395         (aarch64_output_mi_thunk): Add an assertion on the alignment of
21396         'vcall_offset'; change to call aarch64_emit_move differently depending
21397         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
21398         to calculate the upper bound of 'vcall_offset'.
21399         (aarch64_cannot_force_const_mem): Change to also return true if
21400         mode != ptr_mode.
21401         (aarch64_legitimize_reload_address): In the case of large
21402         displacements, add new local variable 'xmode' and an assertion
21403         based on it; change to use 'xmode' to generate the new rtx and
21404         reload.
21405         (aarch64_asm_trampoline_template): Change to generate the template
21406         differently depending on TARGET_ILP32 or not; change to use
21407         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
21408         (aarch64_trampoline_size): Removed.
21409         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
21410         and replace immediate literals with it.  Change to use 'ptr_mode'
21411         instead of 'DImode' and call convert_memory_address if the mode
21412         of 'fnaddr' doesn't equal to 'ptr_mode'.
21413         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
21414         to output symbol.
21415         (aarch64_elf_asm_destructor): Likewise.
21416         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
21417         on TARGET_ILP32 instead of aarch64_trampoline_size.
21418         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
21419         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
21420         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
21421         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
21422         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
21423         (storewb_pair<GPI:mode>_<P:mode>): ... this.
21424         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
21425         depending on the value of 'mode'.
21426         (add_losym_<mode>): New.
21427         (ldr_got_small_<mode>): New, based on ldr_got_small.
21428         (ldr_got_small): Remove.
21429         (ldr_got_small_sidi): New.
21430         * config/aarch64/iterators.md (P): New.
21431         (PTR): Change to 'ptr_mode' in the condition.
21433 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
21435         * config.gcc (aarch64*-*-*): Support --with-abi.
21436         (aarch64*-*-elf): Support --with-multilib-list.
21437         (aarch64*-*-linux*): Likewise.
21438         (supported_defaults): Add abi to aarch64*-*-*.
21439         * configure.ac: Mention AArch64 for --with-multilib-list.
21440         * configure: Re-generated.
21441         * config/aarch64/biarchilp32.h: New file.
21442         * config/aarch64/biarchlp64.h: New file.
21443         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
21444         (ABI_SPEC): Ditto.
21445         (MULTILIB_DEFAULTS): Ditto.
21446         (DRIVER_SELF_SPECS): Ditto.
21447         (ASM_SPEC): Update to also substitute -mabi.
21448         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
21449         file whose name depends on -mabi= and -mbig-endian.
21450         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
21451         TARGET_ILP32.
21452         (POINTER_SIZE): New define.
21453         (POINTERS_EXTEND_UNSIGNED): Ditto.
21454         (enum aarch64_abi_type): New enumeration tag.
21455         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
21456         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
21457         (TARGET_ILP32): New define.
21458         * config/aarch64/aarch64.opt (mabi): New.
21459         (aarch64_abi): New.
21460         (ilp32, lp64): New values for -mabi.
21461         * config/aarch64/t-aarch64 (comma): New define.
21462         (MULTILIB_OPTIONS): Ditto.
21463         (MULTILIB_DIRNAMES): Ditto.
21464         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
21465         * doc/invoke.texi: Document -mabi for AArch64.
21467 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
21469         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
21471 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21472             Anton Blanchard  <anton@au1.ibm.com>
21474         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
21475         endianness when selecting field to splat.
21477 2013-07-22  Eric Christopher  <echristo@gmail.com>
21479         * dwarf2out.c (die_odr_checksum): New function to use
21480         CHECKSUM_ macros and ULEB128 for DIE tag.
21481         (generate_type_signature): Use.
21483 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
21485         * config.gcc (sparc*-*-*): Accept leon3 processor.
21486         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
21487         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
21488         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
21489         * config/sparc/sparc.opt (enum processor_type): Add leon3.
21490         (mfix-ut699): Adjust comment.
21491         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
21492         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
21493         (CPP_CPU_SPEC): Likewise.
21494         (ASM_CPU_SPEC): Likewise.
21495         * config/sparc/sparc.c (leon3_cost): New constant.
21496         (sparc_option_override): Add leon3 support.
21497         (mem_ref): New function.
21498         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
21499         (sparc_do_work_around_errata): Look into the instruction in the delay
21500         slot and adjust accordingly.  Add fix for the data cache nullify issues
21501         of the UT699.  Change insertion position for the NOP.
21502         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
21503         (leon3_load): New reservation.
21504         (leon_store): Bump latency to 2.
21505         (grfpu): New automaton.
21506         (grfpu_alu): New unit.
21507         (grfpu_ds): Likewise.
21508         (leon_fp_alu): Adjust.
21509         (leon_fp_mult): Delete.
21510         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
21511         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
21512         * config/sparc/sparc.md (cpu): Add leon3.
21513         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
21514         (swapsi): Likewise.
21515         (atomic_test_and_set): Likewise.
21516         (ldstub): Likewise.
21518 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
21520         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
21521         default for R5900 targets.
21522         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
21523         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
21524         * config/mips/mips.c (mips_option_override): Report an error for
21525         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
21526         for -march=r5900 -mhard-float.
21528 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
21530         * df-problems.c (can_move_insns_across): Exit loop once we
21531         find a non-fixed, non-global register.
21533         * ipa-pure-const.c (propagate_nothrow): Exit loop after
21534         setting can_throw.
21536         * omega.c (omega_eliminate_red): Break after setting red_found.
21537         (omega_problem_has_red_equations): Similarly after setting found.
21538         (omega_query_variable): Similarly after setting coupled.
21540 2013-07-22  Marek Polacek  <polacek@redhat.com>
21542         * gimplify.c: Don't include gimple.h twice.
21544 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21546         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
21547         instead of TARGET_THUMB1.
21548         (Pz): New constraint.
21549         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
21550         encodings.
21551         (compare_negsi_si): Likewise.
21552         (compare_addsi2_op0): Likewise.
21553         (compare_addsi2_op1): Likewise.
21554         (addsi3_carryin_<optab>): Likewise.
21555         (addsi3_carryin_alt2_<optab>): Likewise.
21556         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
21557         for arm_restrict_it.
21558         (subsi3_carryin): Likewise.
21559         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
21560         (minmax_arithsi): Disable for arm_restrict_it.
21561         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
21562         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
21563         (satsi_<SAT:code>_shift): Likewise.
21564         (arm_shiftsi3): Add alternative for 16-bit encoding.
21565         (arm32_movhf): Disable for arm_restrict_it.
21566         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
21567         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
21569 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
21571         * config/arm/arm.md (attribute "insn"): Delete.
21572         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
21573         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
21574         (not_shiftsi): Update for attribute change.
21575         (not_shiftsi_compare0): Likewise.
21576         (not_shiftsi_compare0_scratch): Likewise.
21577         (arm_one_cmplsi2): Likewise.
21578         (thumb1_one_cmplsi2): Likewise.
21579         (notsi_compare0): Likewise.
21580         (notsi_compare0_scratch): Likewise.
21581         (thumb1_movdi_insn): Likewise.
21582         (arm_movsi_insn): Likewise.
21583         (movhi_insn_arch4): Likewise.
21584         (movhi_bytes): Likewise.
21585         (arm_movqi_insn): Likewise.
21586         (thumb1_movqi_insn): Likewise.
21587         (arm32_movhf): Likewise.
21588         (thumb1_movhf): Likewise.
21589         (arm_movsf_soft_insn): Likewise.
21590         (thumb1_movsf_insn): Likewise.
21591         (thumb_movdf_insn): Likewise.
21592         (movsicc_insn): Likewise.
21593         (movsfcc_soft_insn): Likewise.
21594         (and_scc): Likewise.
21595         (cond_move): Likewise.
21596         (if_move_not): Likewise.
21597         (if_not_move): Likewise.
21598         (if_shift_move): Likewise.
21599         (if_move_shift): Likewise.
21600         (if_shift_shift): Likewise.
21601         (if_not_arith): Likewise.
21602         (if_arith_not): Likewise.
21603         (cond_move_not): Likewise.
21604         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
21605         (neon_mov<mode>): Likewise.
21606         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
21607         (thumb2_movsi_vfp): Likewise.
21608         (movsf_vfp): Likewise.
21609         (thumb2_movsf_vfp): Likewise.
21610         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21611         change.
21612         (cortexa7_older_only): Likewise.
21613         (cortexa7_younger): Likewise.
21614         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
21615         (1020alu_shift_op): Likewise.
21616         (1020alu_shift_reg_op): Likewise.
21617         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
21618         (alu_shift_op): Likewise.
21619         (alu_shift_reg_op): Likewise.
21620         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
21621         (11_alu_shift_op): Likewise.
21622         (11_alu_shift_reg_op): Likewise.
21623         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
21624         (9_alu_shift_reg_op): Likewise.
21625         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21626         change.
21627         (cortex_a15_alu_shift): Likewise.
21628         (cortex_a15_alu_shift_reg): Likewise.
21629         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
21630         (cortex_a5_alu_shift): Likewise.
21631         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
21632         change.
21633         (cortex_a53_alu_shift): Likewise.
21634         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21635         change.
21636         (cortex_a7_alu_reg): Likewise.
21637         (cortex_a7_alu_shift): Likewise.
21638         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21639         (cortex_a8_alu_shift): Likewise.
21640         (cortex_a8_alu_shift_reg): Likewise.
21641         (cortex_a8_mov): Likewise.
21642         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
21643         (cortex_a9_dp_shift): Likewise.
21644         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
21645         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
21646         (cortex_r4_mov): Likewise.
21647         (cortex_r4_alu_shift): Likewise.
21648         (cortex_r4_alu_shift_reg): Likewise.
21649         * config/arm/fa526.md (526_alu_op): Update for attribute change.
21650         (526_alu_shift_op): Likewise.
21651         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
21652         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
21653         (626te_alu_shift_op): Likewise.
21654         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
21655         (726te_alu_op): Likewise.
21656         (726te_alu_shift_op): Likewise.
21657         (726te_alu_shift_reg_op): Likewise.
21658         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
21659         (mp626_alu_shift_op): Likewise.
21660         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
21661         (pj4_alu_e1_conds): Likewise.
21662         (pj4_alu): Likewise.
21663         (pj4_alu_conds): Likewise.
21664         (pj4_shift): Likewise.
21665         (pj4_shift_conds): Likewise.
21666         (pj4_alu_shift): Likewise.
21667         (pj4_alu_shift_conds): Likewise.
21669 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21671         * config/arm/predicates.md (shiftable_operator_strict_it):
21672         New predicate.
21673         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
21674         Disable cond_exec version for arm_restrict_it.
21675         (thumb2_smaxsi3): Convert to generate cond_exec.
21676         (thumb2_sminsi3): Likewise.
21677         (thumb32_umaxsi3): Likewise.
21678         (thumb2_uminsi3): Likewise.
21679         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
21680         (thumb2_neg_abssi2): Likewise.
21681         (thumb2_mov_scc): Add alternative for 16-bit encoding.
21682         (thumb2_movsicc_insn): Adjust alternatives.
21683         (thumb2_mov_negscc): Disable for arm_restrict_it.
21684         (thumb2_mov_negscc_strict_it): New pattern.
21685         (thumb2_mov_notscc_strict_it): New pattern.
21686         (thumb2_mov_notscc): Disable for arm_restrict_it.
21687         (thumb2_ior_scc): Likewise.
21688         (thumb2_ior_scc_strict_it): New pattern.
21689         (thumb2_cond_move): Adjust for arm_restrict_it.
21690         (thumb2_cond_arith): Disable for arm_restrict_it.
21691         (thumb2_cond_arith_strict_it): New pattern.
21692         (thumb2_cond_sub): Adjust for arm_restrict_it.
21693         (thumb2_movcond): Likewise.
21694         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
21695         (thumb2_zero_extendhisi2_v6): Likewise.
21696         (thumb2_zero_extendqisi2_v6): Likewise.
21697         (orsi_notsi_si): Likewise.
21698         (orsi_not_shiftsi_si): Likewise.
21700 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
21702         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
21703         instruction sequence is 1 byte shorter.
21705 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
21707         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
21708         it is not needed after split.
21710 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
21712         PR target/51784
21713         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
21714         second label for nonlocal goto receivers. Don't output pic base labels
21715         unless we're producing PIC; mark that action unreachable().
21716         (ix86_save_reg): If the function contains a nonlocal label, save the
21717         PIC base reg.
21718         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
21719         * config/darwin.c (emitted_pic_label_num): New GTY.
21720         (update_pic_label_number_if_needed): New.
21721         (machopic_output_function_base_name): Adjust for nonlocal receiver
21722         case.
21723         (machopic_should_output_picbase_label): New.
21724         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
21725         (nonlocal_goto_receiver): New insn and split.
21727 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
21729         * config/aarch64/aarch64-builtins.c
21730         (aarch64_fold_builtin): Fold abs in all modes.
21731         * config/aarch64/aarch64-simd-builtins.def
21732         (abs): Enable for all modes.
21733         * config/aarch64/arm_neon.h
21734         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
21735         (vabs_f64): Add missing intrinsic.
21737 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
21739         * config/aarch64/arm_neon.h (vabs_s64): New function
21741 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
21743         PR target/57516
21744         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
21745         * config/avr/avr.md (adjust_len): Add `round'.
21746         * config/avr/avr-protos.h (avr_out_round): New prototype.
21747         (avr_out_plus): Add `out_label' argument.
21748         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
21749         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
21750         Handle the case where `insn' is just a pattern.
21751         (avr_out_bitop): Handle the case where `insn' is just a pattern.
21752         (avr_out_round): New function.
21753         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
21755 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
21757         * config/microblaze/microblaze.c (microblaze_expand_prologue):
21758         Add check for flag_stack_usage to handle -fstack-usage support
21760 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
21762         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
21763         interaction for new Power8 flags and VSX.
21765 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
21767         PR middle-end/57698
21768         * tree-inline.c (expand_call_inline): Emit errors during
21769         early_inlining only if optimization is not turned on.
21771 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21773         * passes.def: New.
21775         * passes.c (init_optimization_passes): Move the construction of
21776         the pass hierarchy into a new passes.def file.
21778         * Makefile.in (passes.o): Add dependency on passes.def.
21780 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21782         * passes.c (init_optimization_passes): Introduce macros for
21783         constructing the tree of passes (INSERT_PASSES_AFTER,
21784         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
21785         TERMINATE_PASS_LIST).
21787 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
21788             Wei Mi  <wmi@google.com>
21790         PR rtl-optimization/57878
21791         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
21792         top.
21793         (reload_pseudo_compare_func): Check nregs first for reload
21794         pseudos.
21796 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21798         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
21800 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
21802         * read-rtl.c (validate_const_int): Once an invalid character is
21803         seen, quit the loop.
21805         * gengtype.c (write_roots): Similarly once we find the "deletable"
21806         or "if_marked" option.
21808 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
21810         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
21811         "xtab" and "sat".  Move value "clz" from here to ...
21812         (attriubte "type"): ... here.
21813         (satsi_<SAT:code>): Delete "insn" attribute.
21814         (satsi_<SAT:code>_shift): Likewise.
21815         (arm_zero_extendqisi2addsi): Likewise.
21816         (arm_extendqisi2addsi): Likewise.
21817         (clzsi2): Update for attribute changes.
21818         (rbitsi2): Likewise.
21819         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
21820         attribute.
21821         (arm_usatsihi): Likewise.
21822         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21824 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
21826         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
21827         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
21828         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
21829         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
21830         in alphabetical order.
21831         (attribute "core_cycles"): Update for attribute changes.
21832         (arm_addsi3): Likewise.
21833         (addsi3_compare0): Likewise.
21834         (addsi3_compare0_scratch): Likewise.
21835         (addsi3_compare_op1): Likewise.
21836         (addsi3_compare_op2): Likewise.
21837         (compare_addsi2_op0): Likewise.
21838         (compare_addsi2_op1): Likewise.
21839         (addsi3_carryin_shift_<optab>): Likewise.
21840         (subsi3_carryin_shift): Likewise.
21841         (rsbsi3_carryin_shift): Likewise.
21842         (arm_subsi3_insn): Likewise.
21843         (subsi3_compare0): Likewise.
21844         (subsi3_compare): Likewise.
21845         (arm_andsi3_insn): Likewise.
21846         (thumb1_andsi3_insn): Likewise.
21847         (andsi3_compare0): Likewise.
21848         (andsi3_compare0_scratch): Likewise.
21849         (zeroextractsi_compare0_scratch
21850         (andsi_not_shiftsi_si): Likewise.
21851         (iorsi3_insn): Likewise.
21852         (iorsi3_compare0): Likewise.
21853         (iorsi3_compare0_scratch): Likewise.
21854         (arm_xorsi3): Likewise.
21855         (thumb1_xorsi3_insn): Likewise.
21856         (xorsi3_compare0): Likewise.
21857         (xorsi3_compare0_scratch): Likewise.
21858         (satsi_<SAT:code>_shift): Likewise.
21859         (rrx): Likewise.
21860         (arm_shiftsi3): Likewise.
21861         (shiftsi3_compare0): Likewise.
21862         (not_shiftsi): Likewise.
21863         (not_shiftsi_compare0): Likewise.
21864         (not_shiftsi_compare0_scratch): Likewise.
21865         (arm_one_cmplsi2): Likewise.
21866         (thumb_one_complsi2): Likewise.
21867         (notsi_compare0): Likewise.
21868         (notsi_compare0_scratch): Likewise.
21869         (thumb1_zero_extendhisi2): Likewise.
21870         (arm_zero_extendhisi2): Likewise.
21871         (arm_zero_extendhisi2_v6): Likewise.
21872         (arm_zero_extendhisi2addsi): Likewise.
21873         (thumb1_zero_extendqisi2): Likewise.
21874         (thumb1_zero_extendqisi2_v6): Likewise.
21875         (arm_zero_extendqisi2): Likewise.
21876         (arm_zero_extendqisi2_v6): Likewise.
21877         (arm_zero_extendqisi2addsi): Likewise.
21878         (thumb1_extendhisi2): Likewise.
21879         (arm_extendhisi2): Likewise.
21880         (arm_extendhisi2_v6): Likewise.
21881         (arm_extendqisi): Likewise.
21882         (arm_extendqisi_v6): Likewise.
21883         (arm_extendqisi2addsi): Likewise.
21884         (thumb1_extendqisi2): Likewise.
21885         (thumb1_movdi_insn): Likewise.
21886         (arm_movsi_insn): Likewise.
21887         (movsi_compare0): Likewise.
21888         (movhi_insn_arch4): Likewise.
21889         (movhi_bytes): Likewise.
21890         (arm_movqi_insn): Likewise.
21891         (thumb1_movqi_insn): Likewise.
21892         (arm32_movhf): Likewise.
21893         (thumb1_movhf): Likewise.
21894         (arm_movsf_soft_insn): Likewise.
21895         (thumb1_movsf_insn): Likewise.
21896         (movdf_soft_insn): Likewise.
21897         (thumb_movdf_insn): Likewise.
21898         (arm_cmpsi_insn): Likewise.
21899         (cmpsi_shiftsi): Likewise.
21900         (cmpsi_shiftsi_swp): Likewise.
21901         (arm_cmpsi_negshiftsi_si): Likewise.
21902         (movsicc_insn): Likewise.
21903         (movsfcc_soft_insn): Likewise.
21904         (arith_shiftsi): Likewise.
21905         (arith_shiftsi_compare0
21906         (arith_shiftsi_compare0_scratch
21907         (sub_shiftsi): Likewise.
21908         (sub_shiftsi_compare0
21909         (sub_shiftsi_compare0_scratch
21910         (and_scc): Likewise.
21911         (cond_move): Likewise.
21912         (if_plus_move): Likewise.
21913         (if_move_plus): Likewise.
21914         (if_move_not): Likewise.
21915         (if_not_move): Likewise.
21916         (if_shift_move): Likewise.
21917         (if_move_shift): Likewise.
21918         (if_shift_shift): Likewise.
21919         (if_not_arith): Likewise.
21920         (if_arith_not): Likewise.
21921         (cond_move_not): Likewise.
21922         (thumb1_ashlsi3): Set type attribute.
21923         (thumb1_ashrsi3): Likewise.
21924         (thumb1_lshrsi3): Likewise.
21925         (thumb1_rotrsi3): Likewise.
21926         (shiftsi3_compare0_scratch): Likewise.
21927         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
21928         (neon_mov<mode>): Likewise.
21929         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
21930         attribute changes.
21931         (thumb2_movsi_insn): Likewise.
21932         (thumb2_cmpsi_neg_shiftsi): Likewise.
21933         (thumb2_extendqisi_v6): Likewise.
21934         (thumb2_zero_extendhisi2_v6): Likewise.
21935         (thumb2_zero_extendqisi2_v6): Likewise.
21936         (thumb2_shiftsi3_short): Likewise.
21937         (thumb2_addsi3_compare0_scratch): Likewise.
21938         (orsi_not_shiftsi_si): Likewise.
21939         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
21940         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
21941         changes.
21942         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
21943         (1020alu_shift_op): Likewise.
21944         (1020alu_shift_reg_op): Likewise.
21945         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
21946         (alu_shift_op): Likewise.
21947         (alu_shift_reg_op): Likewise.
21948         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
21949         (11_alu_shift_op): Likewise.
21950         (11_alu_shift_reg_op): Likewise.
21951         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
21952         (9_alu_shift_reg_op): Likewise.
21953         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21954         changes.
21955         (cortex_a15_alu_shift): Likewise.
21956         (cortex_a15_alu_shift_reg): Likewise.
21957         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
21958         changes.
21959         (cortex_a5_alu_shift): Likewise.
21960         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
21961         changes.
21962         (cortex_a53_alu_shift): Likewise.
21963         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21964         changes.
21965         (cortex_a7_alu_reg): Likewise.
21966         (cortex_a7_alu_shift): Likewise.
21967         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
21968         changes.
21969         (cortex_a8_alu_shift): Likewise.
21970         (cortex_a8_alu_shift_reg): Likewise.
21971         (cortex_a8_mov): Likewise.
21972         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
21973         (cortex_a9_dp_shift): Likewise.
21974         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
21975         changes.
21976         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
21977         changes.
21978         (cortex_r4_mov): Likewise.
21979         (cortex_r4_alu_shift): Likewise.
21980         (cortex_r4_alu_shift_reg): Likewise.
21981         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
21982         (526_alu_shift_op): Likewise.
21983         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
21984         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
21985         (626te_alu_shift_op): Likewise.
21986         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
21987         (726te_alu_op): Likewise.
21988         (726te_alu_shift_op): Likewise.
21989         (726te_alu_shift_reg_op): Likewise.
21990         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
21991         (mp626_alu_shift_op): Likewise.
21992         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
21993         (pj4_alu_e1_conds): Likewise.
21994         (pj4_alu): Likewise.
21995         (pj4_alu_conds): Likewise.
21996         (pj4_shift): Likewise.
21997         (pj4_shift_conds): Likewise.
21998         (pj4_alu_shift): Likewise.
21999         (pj4_alu_shift_conds): Likewise.
22000         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
22001         changes.
22002         (cortexa7_older_only): Likewise.
22003         (cortexa7_younger): Likewise.
22005 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
22007         * ipa-pure-const.c (generate_summary): Rename to...
22008         (pure_const_generate_summary): ... this.
22010 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
22012         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
22014 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
22016         PR target/57909
22017         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
22018         usage in HI mode.
22020 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22022         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
22023         enabled without -march=zEC12.
22024         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
22025         flags to be set.
22027 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22029         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
22030         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
22031         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
22032         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
22033         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
22034         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
22035         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
22036         ISA_HAS_FP4.
22037         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
22038         and ISA_HAS_NMADD3_NMSUB3.
22039         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
22040         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
22041         (nmsub4<mode>, nmsub3<mode>): Likewise.
22042         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
22044 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22046         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
22047         TARGET_MIPS5400 checking.
22049 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
22050             Peter Bergner  <bergner@vnet.ibm.com>
22052         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
22053         registers in the comment.
22054         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
22055         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
22056         rather than FIRST_PSEUDO_REGISTERS.
22058 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
22060         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
22061         enable extra ISA flags with TARGET_HTM.
22063 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
22065         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
22066         Fix comment typos.
22068 2013-07-15  Cong Hou  <congh@google.com>
22070         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
22071         in compare function for sorting.
22073 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
22075         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
22076         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
22077         * config/rs6000/rs6000.opt: Add -mhtm option.
22078         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
22079         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
22080         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
22081         __HTM__ if the HTM instructions are available.
22082         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
22083         htm_spr_reg_operand): New define_predicates.
22084         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
22085         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
22086         Include htm.md.
22087         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
22088         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
22089         HTM builtin functions.
22090         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
22091         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
22092         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
22093         (rs6000_builtin_mask_calculate): Likewise.
22094         (rs6000_option_override_internal): Likewise.
22095         (bdesc_htm): Add new HTM builtin support.
22096         (htm_spr_num): New function.
22097         (htm_spr_regno): Likewise.
22098         (rs6000_htm_spr_icode): Likewise.
22099         (htm_expand_builtin): Likewise.
22100         (htm_init_builtins): Likewise.
22101         (rs6000_expand_builtin): Add support for HTM builtin functions.
22102         (rs6000_init_builtins): Likewise.
22103         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
22104         option.
22105         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
22106         (TARGET_HTM, MASK_HTM): Define macros.
22107         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
22108         (FIXED_REGISTERS): Likewise.
22109         (CALL_USED_REGISTERS): Likewise.
22110         (CALL_REALLY_USED_REGISTERS): Likewise.
22111         (REG_ALLOC_ORDER): Likewise.
22112         (enum reg_class): Likewise.
22113         (REG_CLASS_NAMES): Likewise.
22114         (REG_CLASS_CONTENTS): Likewise.
22115         (REGISTER_NAMES): Likewise.
22116         (ADDITIONAL_REGISTER_NAMES): Likewise.
22117         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
22118         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
22119         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
22120         * config/rs6000/htm.md: New file.
22121         * config/rs6000/htmintrin.h: New file.
22122         * config/rs6000/htmxlintrin.h: New file.
22124 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22126         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22127         Define SYMBOL_TINY_GOT, update comment.
22128         * config/aarch64/aarch64.c
22129         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
22130         (aarch64_expand_mov_immediate): Likewise.
22131         (aarch64_print_operand): Likewise.
22132         (aarch64_classify_symbol): Likewise.
22133         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
22134         (ldr_got_tiny): Define.
22136 2013-07-13  Tobias Grosser  <tobias@grosser.es>
22138         PR tree-optimization/54094
22139         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
22140           scheduling dimension for the parallelism check from the polyhedral
22141           information in the AST.
22142         * graphite-dependences.c (carries_deps): Do not assume the schedule is
22143           in 2D + 1 form.
22145 2013-07-13  Jason Merrill  <jason@redhat.com>
22147         * print-tree.c (debug_vec_tree): Use debug_raw.
22148         (debug_raw (vec<tree, va_gc> &)): New.
22149         (debug_raw (vec<tree, va_gc> *)): New.
22150         * tree.h: Declare them.
22152 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
22154         * ifcvt.c (ifcvt_after_combine): New static variable.
22155         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
22156         for size.
22157         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
22158         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
22159         rest_of_handle_if_after_reload): Pass new argument for if_convert.
22161 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
22163         * config/mips/mips.c (mips_expand_call): Remove empty statement.
22165 2013-07-12  Michael Matz  <matz@suse.de>
22167         PR middle-end/55771
22168         * convert.c (convert_to_real): Reject non-float inner types.
22170 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
22172         * config/aarch64/aarch64-protos.h
22173         (aarch64_simd_immediate_valid_for_move): Remove.
22174         * config/aarch64/aarch64.c (simd_immediate_info): New member.
22175         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
22176         cases.
22177         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
22179 2013-07-11  Steve Ellcey  <sellcey@mips.com>
22181         * config/mips/mips.c (mips_conditional_register_usage): Do not
22182         use t[0-7] registers in MIPS16 mode when optimizing for size.
22184 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
22186         * config/i386/i386.c (dispatch_function_versions): Fix array
22187         indexing of function_version_info to match actual_versions.
22189 2013-07-11  Teresa Johnson  <tejohnson@google.com>
22191         * vec.h (struct va_gc): Move release out-of-line.
22192         (va_gc::release): Call ggc_free on released vec.
22194 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22196         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
22197         Require GOT register as additional operand in UNSPEC.
22198         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
22199         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22200         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
22201         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
22202         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
22203         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
22204         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
22206 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
22208         PR target/57631
22209         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
22210         name seen by assembler/linker rather if available.
22212 2013-07-11  Andreas Schwab  <schwab@suse.de>
22214         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
22216 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
22218         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
22220 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
22222         * doc/tm.texi.in: Move hook documentation to ....
22223         * target.def: ... here.
22225         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
22226         text on @hook line.
22227         * doc/tm.texi: Regenerate.
22229 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
22231         PR c++/57869
22232         * doc/invoke.texi: Document -Wconditionally-supported.
22234 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22236         PR target/57844
22237         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
22238         of my_fp.
22240 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22242         PR target/57506
22243         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
22244         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
22245         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
22246         Remove duplicate devices.
22247         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
22248         * config/avr/t-multilib: Regenerate.
22249         * config/avr/avr-tables.opt: Regenerate.
22250         * doc/avr-mmcu.texi: Regenerate.
22252 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
22254         PR target/56987
22255         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
22257 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
22259         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
22260         the cost of MULT when optimizing for size.
22262 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22264         * config/cr16/cr16-protos.h: Don't include target.h.
22266 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
22268         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
22269         adjust register size for TDmode and TFmode for VSX registers.
22271 2013-07-08  Kai Tietz  <ktietz@redhat.com>
22273         PR target/56892
22274         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
22275         hook_bool_const_tree_true.
22277 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22279         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
22280         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
22281         * config/s390/s390.md: Define FPR*_REGNUM constants.
22282         Fix FPR2_REGNUM constant (18 -> 17).
22283         ("*trunc<BFP:mode><DFP_ALL:mode>2")
22284         ("*trunc<DFP_ALL:mode><BFP:mode>2")
22285         ("trunc<BFP:mode><DFP_ALL:mode>2")
22286         ("trunc<DFP_ALL:mode><BFP:mode>2")
22287         ("*extend<BFP:mode><DFP_ALL:mode>2")
22288         ("*extend<DFP_ALL:mode><BFP:mode>2")
22289         ("extend<BFP:mode><DFP_ALL:mode>2")
22290         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
22291         FPR4_REGNUM.
22293 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
22295         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
22297 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22299         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
22300         and cfun_fpr_bit_p to cfun_fpr_save_p.
22301         (s390_frame_area, s390_register_info, s390_frame_info)
22302         (s390_emit_prologue, s390_emit_epilogue)
22303         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
22304         register numbers.
22305         * config/s390/s390.h: Define *_REGNUM macros for floating point
22306         register numbers.
22308 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
22310         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
22312 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
22314         PR rtl-optimization/57786
22315         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
22316         and break out of the loop when it is set to false.
22318 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
22320         PR target/57819
22321         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
22322         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
22323         (const_int 63)) 0)).
22324         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
22325         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
22326         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
22328         PR rtl-optimization/57829
22329         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
22330         mask bits outside of mode are just sign-extension from mode to HWI.
22332 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
22334         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
22335         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
22336         adjust_address instead of change_address to keep info about alignment.
22337         (emit_strmov): Remove.
22338         (emit_memmov): New function.
22339         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
22340         (expand_movmem_epilogue): Likewise and return updated rtx for
22341         destination.
22342         (expand_constant_movmem_prologue): Likewise and return updated rtx for
22343         destination and source.
22344         (decide_alignment): Refactor, handle vector_loop.
22345         (ix86_expand_movmem): Likewise.
22346         (ix86_expand_setmem): Likewise.
22347         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
22349 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
22351         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
22352         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
22354 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
22356         * config/i386/sse.md (sse_movlhps): Change alternative 3
22357         of operand 2 to "m".
22359 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
22361         PR target/57807
22362         * config/i386/sse.md (iptr): New mode attribute.
22363         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
22364         (<sse>_vm<plusminus_insn><mode>3): Ditto.
22365         (<sse>_vmmul<mode>3): Ditto.
22366         (<sse>_vmdiv<mode>3): Ditto.
22367         (sse_vmrcpv4sf2): Ditto.
22368         (<sse>_vmsqrt<mode>2): Ditto.
22369         (sse_vmrsqrtv4sf2): Ditto.
22370         (<sse>_vm<code><mode>3): Ditto.
22371         (avx_vmcmp<mode>3): Ditto.
22372         (<sse>_vmmaskcmp<mode>3): Ditto.
22373         (<sse>_comi): Ditto.
22374         (<sse>_ucomi): Ditto.
22375         (*xop_vmfrcz_<mode>): Ditto.
22376         (*fmai_fmadd_<mode>): Ditto.
22377         (*fmai_fmsub_<mode>): Ditto.
22378         (*fmai_fnmadd_<mode>): Ditto.
22379         (*fmai_fnmsub_<mode>): Ditto.
22380         (*fma4i_vmfmadd_<mode>): Ditto.
22381         (*fma4i_vmfmsub_<mode>): Ditto.
22382         (*fma4i_vmfnmadd_<mode>): Ditto.
22383         (*fma4i_vmfnmsub_<mode>): Ditto.
22384         (*xop_vmfrcz_<mode>): Ditto.
22385         (sse_cvtps2pi): Ditto.
22386         (sse_cvttps2pi): Ditto.
22387         (sse_cvtss2si): Ditto.
22388         (sse_cvtss2si_2): Ditto.
22389         (sse_cvtss2siq_2): Ditto.
22390         (sse_cvttss2si): Ditto.
22391         (sse_cvttss2siq): Ditto.
22392         (sse_cvtsd2si): Ditto.
22393         (sse_cvtsd2si_2): Ditto.
22394         (sse_cvtsd2siq_2): Ditto.
22395         (sse_cvttsd2si): Ditto.
22396         (sse_cvttsd2siq): Ditto.
22397         (sse_cvtsd2ss): Ditto.
22398         (sse_cvtss2sd): Ditto.
22399         (avx2_pbroadcast<mode>): Ditto.
22400         (avx2_pbroadcast<mode>_1): Ditto.
22401         (*avx_vperm_broadcast_v4sf): Ditto.
22403         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
22404         (sse_movlhps): Ditto.
22405         (sse_storehps): Ditto.
22406         (sse_loadhps): Ditto.
22407         (sse_storelps): Ditto.
22408         (sse_loadlps): Ditto.
22409         (*vec_concatv4sf): Ditto.
22410         (*vec_interleave_highv2df): Ditto.
22411         (*vec_interleave_lowv2df): Ditto.
22412         (*vec_extractv2df_1_sse): Ditto.
22413         (*vec_extractv2df_0_sse): Ditto.
22414         (sse2_storelpd): Ditto.
22415         (sse2_loadlpd): Ditto.
22416         (sse2_movsd): Ditto.
22417         (*vec_concatv4si): Ditto.
22418         (vec_concatv2di): Ditto.
22420         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
22421         for Intel asm dialect.
22422         (mmx_punpcklwd): Ditto.
22423         (mmx_punpckldq): Ditto.
22425         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
22426         for intel assembler dialect.
22428 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
22430         PR target/29776
22431         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
22432         for BUILT_IN_C{LZ,LRSB}*.
22433         * tree.h (CASE_INT_FN): Add FN##IMAX case.
22434         * tree-vrp.c (extract_range_basic): Handle
22435         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
22436         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
22437         fall thru to code calling set_value*.
22438         * builtins.c (expand_builtin): Remove *IMAX cases.
22439         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
22440         if width is bigger than 2*HWI.
22442 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
22444         PR rtl-optimization/55342
22445         * lra-int.h (lra_subreg_reload_pseudos): New.
22446         * lra.c: Add undoing optional reloads to the block diagram.
22447         (lra_subreg_reload_pseudos): New.
22448         (lra_optional_reload_pseudos): Change comments.
22449         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
22450         lra_optional_reload_pseudos after undo transformations.
22451         * lra-assigns.c (pseudo_prefix_title): New.
22452         (lra_setup_reg_renumber): Use it.
22453         (spill_for): Ditto.  Check subreg reload pseudos too.
22454         (assign_by_spills): Consider subreg reload pseudos too.
22455         * lra-constraints.c (simplify_operand_subreg): Use
22456         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
22457         (curr_insn_transform): Recognize and do optional reloads.
22458         (undo_optional_reloads): New.
22459         (lra_undo_inheritance): Call undo_optional_reloads.
22461 2013-07-05  Thomas Quinot  <quinot@adacore.com>
22463         * tree-complex.c (expand_complex_operations_1): Fix typo.
22465 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
22467         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
22468         (tune_params): New member 'const vec_costs'.
22469         * config/aarch64/aarch64.c (generic_vector_cost): New.
22470         (generic_tunings): New member 'generic_vector_cost'.
22471         (aarch64_builtin_vectorization_cost): New.
22472         (aarch64_add_stmt_cost): New.
22473         (TARGET_VECTORIZE_ADD_STMT_COST): New.
22474         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
22476 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
22478         PR target/57777
22479         * config/i386/predicates.md (vsib_address_operand): Disallow
22480         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
22482 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
22484         PR middle-end/55030
22485         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
22486         expand_builtin_setjmp_receiver.
22487         (expand_label): Adjust, call expand_builtin_setjmp_receiver
22488         with NULL for the label parameter.
22489         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
22490         the frame-pointer.  Adjust comments.
22491         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
22492         only if LABEL is non-NULL.
22494 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
22496         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
22497         (ARM_ABI_AAPCS64): Ditto.
22498         (arm_abi): Ditto.
22499         (ARM_DEFAULT_ABI): Ditto.
22501 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
22503         * config/aarch64/aarch64-builtins.c
22504         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
22505         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
22506         (st1): Likewise.
22507         * config/aarch64/aarch64-simd.md
22508         (aarch64_ld1<VALL:mode>): New.
22509         (aarch64_st1<VALL:mode>): Likewise.
22510         * config/aarch64/arm_neon.h
22511         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
22513 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
22515         * config/i386/i386.c (gate_insert_vzeroupper): Check if
22516         target ISA is AVX.
22517         (ix86_option_override_internal):Turn on all -mavx target flags by
22518         default as they are dependent on AVX anyway.
22520 2013-07-02  Cary Coutant  <ccoutant@google.com>
22522         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
22523         deterministic hash.
22524         (loc_checksum_ordered): Likewise.
22525         (hash_loc_operands): Remove inline keyword.
22527 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
22529         PR tree-optimization/57741
22530         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
22531         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
22532         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
22533         Allow REAL_CST step_exprs if flag_associative_math.
22534         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
22536 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
22538         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
22540 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
22542         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
22544 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22546         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
22547         encoding.
22548         (iorsi3_insn): Likewise.
22549         (arm_xorsi3): Likewise.
22551 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
22553         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
22554         to ...
22555         (attribute "type"): ... here, and prefix with "wmmx_".
22556         (attribute "core_cycles"): Update for attribute changes.
22557         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
22558         (tbcstv4hi): Likewise.
22559         (tbcstv2si): Likewise.
22560         (iwmmxt_iordi3): Likewise.
22561         (iwmmxt_xordi3): Likewise.
22562         (iwmmxt_anddi3): Likewise.
22563         (iwmmxt_nanddi3): Likewise.
22564         (iwmmxt_arm_movdi): Likewise.
22565         (iwmmxt_movsi_insn): Likewise.
22566         (mov<mode>_internal): Likewise.
22567         (and<mode>3_iwmmxt): Likewise.
22568         (ior<mode>3_iwmmxt): Likewise.
22569         (xor<mode>3_iwmmxt): Likewise.
22570         (add<mode>3_iwmmxt): Likewise.
22571         (ssaddv8qi3): Likewise.
22572         (ssaddv4hi3): Likewise.
22573         (ssaddv2si3): Likewise.
22574         (usaddv8qi3): Likewise.
22575         (usaddv4hi3): Likewise.
22576         (usaddv2si3): Likewise.
22577         (sub<mode>3_iwmmxt): Likewise.
22578         (sssubv8qi3): Likewise.
22579         (sssubv4hi3): Likewise.
22580         (sssubv2si3): Likewise.
22581         (ussubv8qi3): Likewise.
22582         (ussubv4hi3): Likewise.
22583         (ussubv2si3): Likewise.
22584         (mulv4hi3_iwmmxt): Likewise.
22585         (smulv4hi3_highpart): Likewise.
22586         (umulv4hi3_highpart): Likewise.
22587         (iwmmxt_wmacs): Likewise.
22588         (iwmmxt_wmacsz): Likewise.
22589         (iwmmxt_wmacu): Likewise.
22590         (iwmmxt_wmacuz): Likewise.
22591         (iwmmxt_clrdi): Likewise.
22592         (iwmmxt_clrv8qi): Likewise.
22593         (iwmmxt_clr4hi): Likewise.
22594         (iwmmxt_clr2si): Likewise.
22595         (iwmmxt_uavgrndv8qi3): Likewise.
22596         (iwmmxt_uavgrndv4hi3): Likewise.
22597         (iwmmxt_uavgv8qi3): Likewise.
22598         (iwmmxt_uavgv4hi3): Likewise.
22599         (iwmmxt_tinsrb): Likewise.
22600         (iwmmxt_tinsrh): Likewise.
22601         (iwmmxt_tinsrw): Likewise.
22602         (iwmmxt_textrmub): Likewise.
22603         (iwmmxt_textrmsb): Likewise.
22604         (iwmmxt_textrmuh): Likewise.
22605         (iwmmxt_textrmsh): Likewise.
22606         (iwmmxt_textrmw): Likewise.
22607         (iwmxxt_wshufh): Likewise.
22608         (eqv8qi3): Likewise.
22609         (eqv4hi3): Likewise.
22610         (eqv2si3): Likewise.
22611         (gtuv8qi3): Likewise.
22612         (gtuv4hi3): Likewise.
22613         (gtuv2si3): Likewise.
22614         (gtv8qi3): Likewise.
22615         (gtv4hi3): Likewise.
22616         (gtv2si3): Likewise.
22617         (smax<mode>3_iwmmxt): Likewise.
22618         (umax<mode>3_iwmmxt): Likewise.
22619         (smin<mode>3_iwmmxt): Likewise.
22620         (umin<mode>3_iwmmxt): Likewise.
22621         (iwmmxt_wpackhss): Likewise.
22622         (iwmmxt_wpackwss): Likewise.
22623         (iwmmxt_wpackdss): Likewise.
22624         (iwmmxt_wpackhus): Likewise.
22625         (iwmmxt_wpackwus): Likewise.
22626         (iwmmxt_wpackdus): Likewise.
22627         (iwmmxt_wunpckihb): Likewise.
22628         (iwmmxt_wunpckihh): Likewise.
22629         (iwmmxt_wunpckihw): Likewise.
22630         (iwmmxt_wunpckilb): Likewise.
22631         (iwmmxt_wunpckilh): Likewise.
22632         (iwmmxt_wunpckilw): Likewise.
22633         (iwmmxt_wunpckehub): Likewise.
22634         (iwmmxt_wunpckehuh): Likewise.
22635         (iwmmxt_wunpckehuw): Likewise.
22636         (iwmmxt_wunpckehsb): Likewise.
22637         (iwmmxt_wunpckehsh): Likewise.
22638         (iwmmxt_wunpckehsw): Likewise.
22639         (iwmmxt_wunpckelub): Likewise.
22640         (iwmmxt_wunpckeluh): Likewise.
22641         (iwmmxt_wunpckeluw): Likewise.
22642         (iwmmxt_wunpckelsb): Likewise.
22643         (iwmmxt_wunpckelsh): Likewise.
22644         (iwmmxt_wunpckelsw): Likewise.
22645         (ror<mode>3): Likewise.
22646         (ashr<mode>3_iwmmxt): Likewise.
22647         (lshr<mode>3_iwmmxt): Likewise.
22648         (ashl<mode>3_iwmmxt): Likewise.
22649         (ror<mode>3_di): Likewise.
22650         (ashr<mode>3_di): Likewise.
22651         (lshr<mode>3_di): Likewise.
22652         (ashl<mode>3_di): Likewise.
22653         (iwmmxt_wmadds): Likewise.
22654         (iwmmxt_wmaddu): Likewise.
22655         (iwmmxt_tmia): Likewise.
22656         (iwmmxt_tmiaph): Likewise.
22657         (iwmmxt_tmiabb): Likewise.
22658         (iwmmxt_tmiatb): Likewise.
22659         (iwmmxt_tmiabt): Likewise.
22660         (iwmmxt_tmiatt): Likewise.
22661         (iwmmxt_tmovmskb): Likewise.
22662         (iwmmxt_tmovmskh): Likewise.
22663         (iwmmxt_tmovmskw): Likewise.
22664         (iwmmxt_waccb): Likewise.
22665         (iwmmxt_wacch): Likewise.
22666         (iwmmxt_waccw): Likewise.
22667         (iwmmxt_waligni): Likewise.
22668         (iwmmxt_walignr): Likewise.
22669         (iwmmxt_walignr0): Likewise.
22670         (iwmmxt_walignr1): Likewise.
22671         (iwmmxt_walignr2): Likewise.
22672         (iwmmxt_walignr3): Likewise.
22673         (iwmmxt_wsadb): Likewise.
22674         (iwmmxt_wsadh): Likewise.
22675         (iwmmxt_wsadbz): Likewise.
22676         (iwmmxt_wsadhz): Likewise.
22677         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
22678         (iwmmxt_wabsdiffb): Likewise.
22679         (iwmmxt_wabsdiffh): Likewise.
22680         (iwmmxt_wabsdiffw): Likewise.
22681         (iwmmxt_waddsubhx): Likewise
22682         (iwmmxt_wsubaddhx): Likewise.
22683         (addc<mode>3): Likewise.
22684         (iwmmxt_avg4): Likewise.
22685         (iwmmxt_avg4r): Likewise.
22686         (iwmmxt_wmaddsx): Likewise.
22687         (iwmmxt_wmaddux): Likewise.
22688         (iwmmxt_wmaddsn): Likewise.
22689         (iwmmxt_wmaddun): Likewise.
22690         (iwmmxt_wmulwsm): Likewise.
22691         (iwmmxt_wmulwum): Likewise.
22692         (iwmmxt_wmulsmr): Likewise.
22693         (iwmmxt_wmulumr): Likewise.
22694         (iwmmxt_wmulwsmr): Likewise.
22695         (iwmmxt_wmulwumr): Likewise.
22696         (iwmmxt_wmulwl): Likewise.
22697         (iwmmxt_wqmulm): Likewise.
22698         (iwmmxt_wqmulwm): Likewise.
22699         (iwmmxt_wqmulmr): Likewise.
22700         (iwmmxt_wqmulwmr): Likewise.
22701         (iwmmxt_waddbhusm): Likewise.
22702         (iwmmxt_waddbhusl): Likewise.
22703         (iwmmxt_wqmiabb): Likewise.
22704         (iwmmxt_wqmiabt): Likewise.
22705         (iwmmxt_wqmiatb): Likewise.
22706         (iwmmxt_wqmiatt): Likewise.
22707         (iwmmxt_wqmiabbn): Likewise.
22708         (iwmmxt_wqmiabtn): Likewise.
22709         (iwmmxt_wqmiatbn): Likewise.
22710         (iwmmxt_wqmiattn): Likewise.
22711         (iwmmxt_wmiabb): Likewise.
22712         (iwmmxt_wmiabt): Likewise.
22713         (iwmmxt_wmiatb): Likewise.
22714         (iwmmxt_wmiatt): Likewise.
22715         (iwmmxt_wmiabbn): Likewise.
22716         (iwmmxt_wmiabtn): Likewise.
22717         (iwmmxt_wmiatbn): Likewise.
22718         (iwmmxt_wmiattn): Likewise.
22719         (iwmmxt_wmiawbb): Likewise.
22720         (iwmmxt_wmiawbt): Likewise.
22721         (iwmmxt_wmiawtb): Likewise.
22722         (iwmmxt_wmiawtt): Likewise.
22723         (iwmmxt_wmiawbbn): Likewise.
22724         (iwmmxt_wmiawbtn): Likewise.
22725         (iwmmxt_wmiawtbn): Likewise.
22726         (iwmmxt_wmiawttn): Likewise.
22727         (iwmmxt_wmerge): Likewise.
22728         (iwmmxt_tandc<mode>3): Likewise.
22729         (iwmmxt_torc<mode>3): Likewise.
22730         (iwmmxt_torvsc<mode>3): Likewise.
22731         (iwmmxt_textrc<mode>3): Likewise.
22732         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
22733         (wmmxt_pack): Likewise.
22734         (wmmxt_mult_c1): Likewise.
22735         (wmmxt_mult_c2): Likewise.
22736         (wmmxt_alu_c1): Likewise.
22737         (wmmxt_alu_c2): Likewise.
22738         (wmmxt_alu_c3): Likewise.
22739         (wmmxt_transfer_c1): Likewise.
22740         (wmmxt_transfer_c2): Likewise.
22741         (wmmxt_transfer_c3): Likewise.
22742         (marvell_f_iwmmxt_wstr): Likewise.
22743         (marvell_f_iwmmxt_wldr): Likewise.
22745 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
22747         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
22749 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22751         Revert:
22752         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22753         * lra-constraints.c (need_for_split_p): Check call used hard regs
22754         living through calls.
22756         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
22757         call used regs for call insn.
22759 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
22761         PR target/57736
22762         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
22763         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
22765 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
22767         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
22769 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22771         * lra-constraints.c (need_for_split_p): Check call used hard regs
22772         living through calls.
22774 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
22776         PR target/57744
22777         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
22778         to tie with any other modes.  Eliminate Altivec vector mode tests,
22779         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
22780         code, to return 0 if testing MODE2 for a condition, if we've
22781         already tested MODE1 for the same condition.
22783 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22785         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
22786         layout.
22788 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22790         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22791         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
22793 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22795         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
22796         Define.
22797         (aarch64_symbolic_constant_p): Remove.
22798         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
22799         static.  Fix line length and white space.
22800         (aarch64_symbolic_constant_p): Remove.
22801         * config/aarch64/predicates.md (aarch64_valid_symref):
22802         Use aarch64_classify_symbol_expression.
22804 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22806         * config/arm/constraints.md (Ts): New constraint.
22807         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
22808         16-bit encodings.
22809         (compare_scc): Use "Ts" constraint for operand 0.
22810         (ior_scc_scc): Likewise.
22811         (and_scc_scc): Likewise.
22812         (and_scc_scc_nodom): Likewise.
22813         (ior_scc_scc_cmp): Likewise for operand 7.
22814         (and_scc_scc_cmp): Likewise.
22815         * config/arm/thumb2.md (thumb2_movsi_insn):
22816         Add alternatives for 16-bit encodings.
22817         (thumb2_movhi_insn): Likewise.
22818         (thumb2_movsicc_insn): Likewise.
22819         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
22820         (thumb2_negscc): Use "Ts" constraint.
22821         Move mvn instruction outside cond_exec block.
22822         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
22823         for 16-bit encodings.
22825 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22827         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
22828         encoding.
22829         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
22830         (mulsi3subsi): Likewise.
22831         (mulsidi3adddi): Likewise.
22832         (mulsidi3_v6): Likewise.
22833         (umulsidi3_v6): Likewise.
22834         (umulsidi3adddi_v6): Likewise.
22835         (smulsi3_highpart_v6): Likewise.
22836         (umulsi3_highpart_v6): Likewise.
22837         (mulhisi3tb): Likewise.
22838         (mulhisi3bt): Likewise.
22839         (mulhisi3tt): Likewise.
22840         (maddhisi4): Likewise.
22841         (maddhisi4tb): Likewise.
22842         (maddhisi4tt): Likewise.
22843         (maddhidi4): Likewise.
22844         (maddhidi4tb): Likewise.
22845         (maddhidi4tt): Likewise.
22846         (zeroextractsi_compare0_scratch): Likewise.
22847         (insv_zero): Likewise.
22848         (insv_t2): Likewise.
22849         (anddi_notzesidi_di): Likewise.
22850         (anddi_notsesidi_di): Likewise.
22851         (andsi_notsi_si): Likewise.
22852         (iordi_zesidi_di): Likewise.
22853         (xordi_zesidi_di): Likewise.
22854         (andsi_iorsi3_notsi): Likewise.
22855         (smax_0): Likewise.
22856         (smax_m1): Likewise.
22857         (smin_0): Likewise.
22858         (not_shiftsi): Likewise.
22859         (unaligned_loadsi): Likewise.
22860         (unaligned_loadhis): Likewise.
22861         (unaligned_loadhiu): Likewise.
22862         (unaligned_storesi): Likewise.
22863         (unaligned_storehi): Likewise.
22864         (extv_reg): Likewise.
22865         (extzv_t2): Likewise.
22866         (divsi3): Likewise.
22867         (udivsi3): Likewise.
22868         (arm_zero_extendhisi2addsi): Likewise.
22869         (arm_zero_extendqisi2addsi): Likewise.
22870         (compareqi_eq0): Likewise.
22871         (arm_extendhisi2_v6): Likewise.
22872         (arm_extendqisi2addsi): Likewise.
22873         (arm_movt): Likewise.
22874         (thumb2_ldrd): Likewise.
22875         (thumb2_ldrd_base): Likewise.
22876         (thumb2_ldrd_base_neg): Likewise.
22877         (thumb2_strd): Likewise.
22878         (thumb2_strd_base): Likewise.
22879         (thumb2_strd_base_neg): Likewise.
22880         (arm_negsi2): Add alternative for 16-bit encoding.
22881         (arm_one_cmplsi2): Likewise.
22883 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22885         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
22886         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
22887         (movdfcc): Likewise.
22888         * config/arm/vfp.md (*thumb2_movsf_vfp):
22889         Disable predication for arm_restrict_it.
22890         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
22891         (*thumb2_movdfcc_vfp): Likewise.
22892         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
22893         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
22894         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
22895         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
22896         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
22897         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
22898         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
22899         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
22900         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
22901         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
22902         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
22903         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
22904         Disable predication for arm_restrict_it.
22906 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
22908         * config/i386/bmiintrin.h (_bextr_u32): New.
22909         (_bextr_u64): Ditto.
22911 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
22913         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
22914         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
22915         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
22916         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
22917         * config/mips/n32-elf.h: ...this new file.
22919 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
22921         PR target/57224
22922         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
22923         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
22925 2013-06-27  Catherine Moore  <clm@codesourcery.com>
22927         * config/mips/mips-tables.opt: Regenerate.
22928         * config/mips/mips-cpus.def: Add m14ke and m14kec.
22929         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
22930         * doc/invoke.texi: Add -m14kc.
22932 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
22934         PR target/57623
22935         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
22936         constraints of operand 1 and 2.
22938         PR target/57623
22939         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
22940         to match RTL canonicalization.  Swap predicates and
22941         constraints of operand 1 and 2.
22943 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
22945         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
22946         Process OP_INOUT regs for splitting too.
22948 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
22950         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
22951         decl before the loop, initialize to NULL.
22952         (vectorizable_load): Initialize ptr_incr to NULL.
22954 2013-06-27  Martin Jambor  <mjambor@suse.cz>
22956         PR lto/57208
22957         * ipa-ref.h (ipa_maybe_record_reference): Declare.
22958         * ipa-ref.c (ipa_maybe_record_reference): New function.
22959         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
22960         * ipa-cp.c (create_specialized_node): Record potential references from
22961         aggvals.
22962         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
22964 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
22966         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
22967         parameter 'mode' of type 'enum machine_mode mode'; change to pass
22968         'mode' to force_reg.
22969         (aarch64_add_offset): Update calls to aarch64_force_temporary.
22970         (aarch64_expand_mov_immediate): Likewise.
22972 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
22974         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
22975         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
22977 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22979         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
22980         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
22981         (struct machine_function): Add tbegin_p.
22982         (s390_canonicalize_comparison): Fold CC mode compares to
22983         conditional jump if possible.
22984         (s390_emit_jump): Return the emitted jump.
22985         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
22986         Handle CCRAWmode compares.
22987         (s390_option_override): Default to -mhtm if available.
22988         (s390_reg_clobbered_rtx): Handle floating point regs as well.
22989         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
22990         FPRs instead of df_regs_ever_live_p.
22991         (s390_optimize_nonescaping_tx): New function.
22992         (s390_init_frame_layout): Extend clobbered_regs array to cover
22993         FPRs as well.
22994         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
22995         (s390_expand_tbegin): New function.
22996         (enum s390_builtin): New enum definition.
22997         (code_for_builtin): New array definition.
22998         (s390_init_builtins): New function.
22999         (s390_expand_builtin): New function.
23000         (TARGET_INIT_BUILTINS): Define.
23001         (TARGET_EXPAND_BUILTIN): Define.
23002         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
23003         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
23004         (s390_alc_comparison): Likewise.
23005         * config/s390/s390-modes.def: Add CCRAWmode.
23006         * config/s390/s390.h (processor_flags): Add PF_TX.
23007         (TARGET_CPU_HTM): Define macro.
23008         (TARGET_HTM): Define macro.
23009         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
23010         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
23011         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
23012         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
23013         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
23014         (TBEGIN_MASK, TBEGINC_MASK): New constants.
23015         ("*cc_to_int"): Move up.
23016         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
23017         constants other than 0.
23018         ("*ccraw_to_int"): New insn and splitter definition.
23019         ("tbegin", "tbegin_nofloat", "tbegin_retry")
23020         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
23021         ("tx_assist"): New expander.
23022         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
23023         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
23024         * config/s390/s390.opt: Add -mhtm option.
23025         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
23026         * config/s390/htmxlintrin.h: New file.
23027         * config/s390/htmintrin.h: New file.
23028         * config/s390/s390intrin.h: New file.
23029         * doc/extend.texi: Document htm builtins.
23030         * config.gcc: Add the new header files to extra_headers.
23032 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
23034         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
23035         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
23037 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
23038             Pat Haugen  <pthaugen@us.ibm.com>
23039             Peter Bergner  <bergner@vnet.ibm.com>
23041         * config/rs6000/power8.md: New.
23042         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
23043         setting for power8 entry.
23044         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
23045         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
23046         test for Power4/Power5 only.
23047         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
23048         support.
23049         (force_new_group): Adjust comment.
23050         * config/rs6000/rs6000.md: Include power8.md.
23052 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
23054         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
23055         * config/arm/arm-protos.h (arm_max_conditional_execute): New
23056         declaration.
23057         (tune_params): Update comment.
23058         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
23059         (arm_max_conditional_execute): New function.
23060         (thumb2_final_prescan_insn): Use max_insn_skipped and
23061         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
23063 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
23065         PR tree-optimization/57705
23066         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
23067         SSA_NAME step, provided that it is not defined inside the loop.
23068         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
23069         (get_initial_def_for_induction): Handle SSA_NAME IV step.
23071 2013-06-25  Martin Jambor  <mjambor@suse.cz>
23073         PR middle-end/57670
23074         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
23075         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
23076         calls in the dump.
23077         (ipa_note_param_call): Initialize member_ptr flag.
23078         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
23079         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
23080         (ipa_write_indirect_edge_info): Stream member_ptr flag.
23081         (ipa_read_indirect_edge_info): Likewise.
23083 2013-06-25  Richard Biener  <rguenther@suse.de>
23085         PR middle-end/56977
23086         * passes.c (init_optimization_passes): Move pass_fold_builtins
23087         and pass_dce earlier with -Og.
23089 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
23091         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
23092         <BIT_FIELD_REF>: Remove trailing TAB.
23093         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
23094         remove blank line.
23096 2013-06-24  Martin Jambor  <mjambor@suse.cz>
23098         PR tree-optimization/57358
23099         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
23100         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
23101         (ipa_analyze_params_uses): Generate pessimistic info when true.
23103 2013-06-24  Martin Jambor  <mjambor@suse.cz>
23105         PR tree-optimization/57539
23106         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
23107         global.inlined_to of the new node to it.  All callers changed.
23108         * ipa-inline-transform.c (clone_inlined_nodes): New variable
23109         inlining_into, pass it to cgraph_clone_node.
23110         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
23111         ipa_free_edge_args_substructures.
23112         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
23113         rdesc linked list.  Do not assert rdesc edges have inlined caller.
23114         Assert we have found an rdesc in the rdesc list.
23116 2013-06-24  Richard Biener  <rguenther@suse.de>
23118         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
23119         (pointer_set_lookup): Declare.
23120         (class pointer_map): New template class implementing a
23121         generic pointer to T map.
23122         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
23123         pointer_map<T>::contains, pointer_map<T>::insert,
23124         pointer_map<T>::traverse): New functions.
23125         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
23126         (pointer_set_lookup): New function.
23127         (pointer_set_contains): Use pointer_set_lookup.
23128         (pointer_set_insert): Likewise.
23129         (insert_aux): Remove.
23130         (struct pointer_map_t): Embed a pointer_set_t.
23131         (pointer_map_create): Adjust.
23132         (pointer_map_destroy): Likewise.
23133         (pointer_map_contains): Likewise.
23134         (pointer_map_insert): Likewise.
23135         (pointer_map_traverse): Likewise.
23136         * tree-streamer.h (struct streamer_tree_cache_d): Use a
23137         pointer_map<unsigned> instead of a pointer_map_t.
23138         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
23139         (streamer_tree_cache_lookup): Likewise.
23140         (streamer_tree_cache_create): Likewise.
23141         (streamer_tree_cache_delete): Likewise.
23142         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
23143         pointer_map<unsigned> instead of a pointer_map_t.
23144         (lto_init_tree_ref_encoder): Adjust.
23145         (lto_destroy_tree_ref_encoder): Likewise.
23146         * lto-section-out.c (lto_output_decl_index): Likewise.
23147         (lto_record_function_out_decl_state): Likewise.
23148         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
23150 2013-06-24  Richard Biener  <rguenther@suse.de>
23152         PR tree-optimization/57488
23153         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
23155 2013-06-24  Alan Modra  <amodra@gmail.com>
23157         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
23158         (gen_easy_altivec_constant): Likewise.
23159         * config/rs6000/predicates.md (easy_vector_constant_add_self,
23160         easy_vector_constant_msb): Likewise.
23162 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
23164         PR target/57688
23165         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
23166         add missing return true.
23168 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
23170         PR target/52483
23171         * config/sh/predicates.md (general_extend_operand): Invoke
23172         general_movsrc_operand for memory operands.
23173         (general_movsrc_operand): Allow reg+reg addressing, do not use
23174         general_operand for memory operands.
23176 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
23178         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
23179         when current target options does not apply.
23180         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
23181         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
23182         * config/i386/bmiintrin.h: Pass appropriate target
23183         attributes to header.
23184         * config/i386/mmintrin.h: Ditto.
23185         * config/i386/nmmintrin.h: Ditto.
23186         * config/i386/avx2intrin.h: Ditto.
23187         * config/i386/fxsrintrin.h: Ditto.
23188         * config/i386/tbmintrin.h: Ditto.
23189         * config/i386/xsaveintrin.h: Ditto.
23190         * config/i386/f16cintrin.h: Ditto.
23191         * config/i386/xtestintrin.h: Ditto.
23192         * config/i386/xsaveoptintrin.h: Ditto.
23193         * config/i386/bmi2intrin.h: Ditto.
23194         * config/i386/lzcntintrin.h: Ditto.
23195         * config/i386/smmintrin.h: Ditto.
23196         * config/i386/wmmintrin.h: Ditto.
23197         * config/i386/x86intrin.h: Remove all header include guards.
23198         * config/i386/prfchwintrin.h: Ditto.
23199         * config/i386/pmmintrin.h: Ditto.
23200         * config/i386/tmmintrin.h: Ditto.
23201         * config/i386/xmmintrin.h: Ditto.
23202         * config/i386/popcntintrin.h: Ditto.
23203         * config/i386/rdseedintrin.h: Ditto.
23204         * config/i386/ammintrin.h: Ditto.
23205         * config/i386/emmintrin.h: Ditto.
23206         * config/i386/immintrin.h: Remove all header include guards.
23207         * config/i386/fma4intrin.h: Ditto.
23208         * config/i386/lwpintrin.h: Ditto.
23209         * config/i386/xopintrin.h: Ditto.
23210         * config/i386/ia32intrin.h: Ditto.
23211         * config/i386/avxintrin.h: Ditto.
23212         * config/i386/rtmintrin.h: Ditto.
23213         * config/i386/fmaintrin.h: Ditto.
23214         * config/i386/mm3dnow.h: Ditto.
23216 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
23218         * common/config/i386/i386-common.c: Handle LZCNT.
23220 2013-06-22  Andi Kleen  <ak@linux.intel.com>
23222         * doc/extend.texi: Use __atomic_store_n instead of
23223         __atomic_store in HLE example.
23225 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
23227         * config/sh/sh.c: Remove <cstdlib> workaround.
23229 2013-06-21  Andi Kleen  <ak@linux.intel.com>
23231         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
23233 2013-06-21  Andi Kleen  <ak@linux.intel.com>
23235         * doc/extend.texi: Document that __atomic_clear and
23236           __atomic_test_and_set should only be used with bool.
23238 2013-06-20  Jan Hubicka  <jh@suse.cz>
23240         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
23241         types_same_for_odr.
23242         * tree.c (decls_same_for_odr): New function.
23243         (same_for_edr): New function.
23244         (types_same_for_odr): New function.
23245         (get_binfo_at_offset): Use it.
23246         * tree.h (types_same_for_odr): Declare.
23248 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
23249             Jason Merrill  <jason@redhat.com>
23251         * system.h: Include <cstdlib> as well as <stdlib.h>.
23253 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
23255         PR target/57655
23256         * config/i386/i386.c (construct_container): Report error if
23257         long double is used with disabled x87 float returns.
23259 2013-06-20  Jan Hubicka  <jh@suse.cz>
23261         * lto-cgraph.c (input_symtab): Do not set cgraph state.
23263 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
23265         PR rtl-optimization/57425
23266         PR rtl-optimization/57569
23267         * alias.c (write_dependence_p): Remove parameters mem_mode and
23268         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
23269         Changed all callers.
23270         (canon_anti_dependence): Get comments and semantics in sync.
23271         Add parameter mem_canonicalized.  Changed all callers.
23272         * rtl.h (canon_anti_dependence): Update prototype.
23274 2013-06-20  Richard Biener  <rguenther@suse.de>
23276         * data-streamer-in.c (streamer_read_uhwi): Optimize single
23277         byte case, inline streamer_read_uchar and defer section
23278         overrun check.
23280 2013-06-20  Richard Biener  <rguenther@suse.de>
23282         PR tree-optimization/57584
23283         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
23284         SSA names into the expanded expression that take part in
23285         abnormal coalescing.
23287 2013-06-19  Sharad Singhai  <singhai@google.com>
23289         * gcov.c (print_usage): Handle new option.
23290         (process_args): Ditto.
23291         (get_gcov_intermediate_filename): New function.
23292         (output_intermediate_file): New function.
23293         (output_gcov_file): New function
23294         (generate_results): Handle new option.
23295         (release_function): Relase demangled name.
23296         (read_graph_file): Handle demangled name.
23297         (output_lines): Ditto.
23298         * doc/gcov.texi: Document gcov intermediate format.
23300 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
23302         PR bootstrap/57604
23303         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
23304         (lra_emit_add): Use the functions.  Add comment about Y as an
23305         address segment.
23307 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
23309         PR driver/57652
23310         * collect2.c (collect_atexit): New.
23311         (collect_exit): Delete.
23312         (main): Register collect_atexit with atexit.
23313         (collect_wait): Change collect_exit to exit.
23314         (do_wait): Same.
23315         * collect2.h (collect_exit): Delete.
23316         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
23318 2013-06-19  Wei Mi  <wmi@google.com>
23320         PR rtl-optimization/57518
23321         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
23322         if regno is used in paradoxical subreg.
23323         (update_equiv_regs): Check pdx_subregs[regno] before
23324         set a reg to be equivalent with a mem.
23326 2013-06-19  Matthias Klose  <doko@ubuntu.com>
23328         PR driver/57651
23329         * file-find.h (find_a_file): Add a mode parameter.
23330         * file-find.c (find_a_file): Likewise.
23331         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
23332         with X_OK for the executables.
23333         * collect2.c (main): Call find_a_file with X_OK.
23335 2013-06-19  Steve Ellcey  <sellcey@mips.com>
23337         PR target/56942
23338         * config/mips/mips.md (casesi_internal_mips16_<mode>):
23339         Use NEXT_INSN instead of next_real_insn.
23341 2013-06-19  Jan Hubicka  <jh@suse.cz>
23343         * cgraph.h (const_value_known_p): Replace by ...
23344         (ctor_for_folding): .. this one.
23345         * cgraphunit.c (process_function_and_variable_attributes): Use it.
23346         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
23347         * expr.c (expand_expr_real_1): Likewise.
23348         (string_constant): Likewise.
23349         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
23350         * ipa.c (process_references): Likewise.
23351         (symtab_remove_unreachable_nodes): Likewise.
23352         * ipa-inline-analysis.c (param_change_prob): Likewise.
23353         * gimple-fold.c (canonicalize_constructor_val): Likewise.
23354         (get_base_constructor): Likwise.
23355         * varpool.c (varpool_remove_node): Likewise.
23356         (varpool_remove_initializer): LIkewise.
23357         (dump_varpool_node): LIkwise.
23358         (const_value_known_p): Rewrite to ...
23359         (ctor_for_folding): ... this one.
23361 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
23363         PR driver/57651
23364         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
23365         PERSONALITY in $PATH derived prefixes.
23367 2013-06-19  Jeff Law  <law@redhat.com>
23369         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
23370         in comment.
23372         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
23373         (simplify_bitwise_binary): Use it to simpify certain binary ops on
23374         booleans.
23376 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
23378         * config/arm/vfp.md: Move VFP instruction classification documentation
23379         to ...
23380         * config/arm/arm.md: ... here.  Update instruction classification
23381         documentation.
23383 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
23385         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
23386         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
23387         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
23389 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
23391         PR target/57609
23392         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23393         with NEXT_INSN.  Use tablejump_p to check for jump table data
23394         insns.
23396 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
23398         PR c++/56544
23399         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
23400         that now in C++ the value is correct per the C++ standards.
23402 2013-06-19  Richard Biener  <rguenther@suse.de>
23404         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
23405         for global context.
23407 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23409         Revert:
23410         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23412         PR target/57609
23413         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23414         with next_active_insn.
23416 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
23418         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
23419         functions are inlined during failures to flag an error.
23420         * tree-inline.c (expand_call_inline): Allow the error to be flagged
23421         in early inline pass.
23423 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
23425         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
23426         in comments.
23428 2013-06-18  Julian Brown  <julian@codesourcery.com>
23430         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
23431         Permit virtual register pre-reload if !strict.
23432         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
23433         change.
23434         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
23435         prototype.
23436         * config/arm/neon.md (movmisalign<mode>): Use
23437         neon_perm_struct_or_reg_operand instead of
23438         neon_struct_or_register_operand.
23439         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
23440         neon_permissive_struct_operand instead of neon_struct_operand.
23441         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
23442         neon_vector_mem_operand.
23443         * config/arm/predicates.md (neon_struct_operand): Adjust call to
23444         neon_vector_mem_operand.
23445         (neon_permissive_struct_operand): New.
23446         (neon_struct_or_register_operand): Rename to...
23447         (neon_perm_struct_or_reg_operand): This. Adjust call to
23448         neon_vector_mem_operand.
23450 2013-06-18  Richard Biener  <rguenther@suse.de>
23452         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
23453         * lto-streamer.h: Include pointer-set.h.
23454         (struct lto_decl_slot): Remove.
23455         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
23456         Remove next_index entry.
23457         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23458         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23459         (lto_init_tree_ref_encoder): Adjust.
23460         (lto_destroy_tree_ref_encoder): Likewise.
23461         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23462         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23463         (lto_output_decl_index): Adjust.
23464         (lto_new_out_decl_state): Likewise.
23465         (lto_record_function_out_decl_state): Likewise.
23466         * lto-streamer-out.c (copy_function): Likewise.
23468 2013-06-18  Richard Biener  <rguenther@suse.de>
23470         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
23471         * cgraphunit.c: Include cfgloop.h.
23472         (init_lowered_empty_function): Initialize the loop tree.
23473         (assemble_thunk): Insert new BBs into loops.
23475 2013-06-18  Richard Biener  <rguenther@suse.de>
23477         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
23478         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
23479         the map from cache entry to cache index optional.
23480         (streamer_tree_cache_replace_tree): Adjust accordingly.
23481         (streamer_tree_cache_append): Likewise.
23482         (streamer_tree_cache_delete): Likewise.
23483         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
23484         streamer cache map from cache entry to cache index.
23485         * lto-streamer-out.c (create_output_block): Adjust.
23487 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
23489         * config/arm/arm.md (attribute "insn"): Move multiplication and
23490         division attributes to...
23491         (attribute "type"): ... here.  Remove mult.
23492         (attribute "mul32"): New attribute.
23493         (attribute "mul64"): Add umaal.
23494         (*arm_mulsi3): Update attributes.
23495         (*arm_mulsi3_v6): Likewise.
23496         (*thumb_mulsi3): Likewise.
23497         (*thumb_mulsi3_v6): Likewise.
23498         (*mulsi3_compare0): Likewise.
23499         (*mulsi3_compare0_v6): Likewise.
23500         (*mulsi_compare0_scratch): Likewise.
23501         (*mulsi_compare0_scratch_v6): Likewise.
23502         (*mulsi3addsi): Likewise.
23503         (*mulsi3addsi_v6): Likewise.
23504         (*mulsi3addsi_compare0): Likewise.
23505         (*mulsi3addsi_compare0_v6): Likewise.
23506         (*mulsi3addsi_compare0_scratch): Likewise.
23507         (*mulsi3addsi_compare0_scratch_v6): Likewise.
23508         (*mulsi3subsi): Likewise.
23509         (*mulsidi3adddi): Likewise.
23510         (*mulsi3addsi_v6): Likewise.
23511         (*mulsidi3adddi_v6): Likewise.
23512         (*mulsidi3_nov6): Likewise.
23513         (*mulsidi3_v6): Likewise.
23514         (*umulsidi3_nov6): Likewise.
23515         (*umulsidi3_v6): Likewise.
23516         (*umulsidi3adddi): Likewise.
23517         (*umulsidi3adddi_v6): Likewise.
23518         (*smulsi3_highpart_nov6): Likewise.
23519         (*smulsi3_highpart_v6): Likewise.
23520         (*umulsi3_highpart_nov6): Likewise.
23521         (*umulsi3_highpart_v6): Likewise.
23522         (mulhisi3): Likewise.
23523         (*mulhisi3tb): Likewise.
23524         (*mulhisi3bt): Likewise.
23525         (*mulhisi3tt): Likewise.
23526         (maddhisi4): Likewise.
23527         (*maddhisi4tb): Likewise.
23528         (*maddhisi4tt): Likewise.
23529         (maddhidi4): Likewise.
23530         (*maddhidi4tb): Likewise.
23531         (*maddhidi4tt): Likewise.
23532         (divsi3): Likewise.
23533         (udivsi3): Likewise.
23534         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
23535         (thumb2_mulsi_short_compare0): Likewise.
23536         (thumb2_mulsi_short_compare0_scratch): Likewise.
23537         * config/arm/arm1020e.md (1020mult1): Update attribute change.
23538         (1020mult2): Likewise.
23539         (1020mult3): Likewise.
23540         (1020mult4): Likewise.
23541         (1020mult5): Likewise.
23542         (1020mult6): Likewise.
23543         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
23544         change.
23545         (cortex_a15_mult64): Likewise.
23546         (cortex_a15_sdiv): Likewise.
23547         (cortex_a15_udiv): Likewise.
23548         * config/arm/arm1026ejs.md (mult1): Update attribute change.
23549         (mult2): Likewise.
23550         (mult3): Likewise.
23551         (mult4): Likewise.
23552         (mult5): Likewise.
23553         (mult6): Likewise.
23554         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
23555         (pj4_ir_div): Likewise.
23556         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
23557         (11_mult2): Likewise.
23558         (11_mult3): Likewise.
23559         (11_mult4): Likewise.
23560         (11_mult5): Likewise.
23561         (11_mult6): Likewise.
23562         (11_mult7): Likewise.
23563         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
23564         (cortex_a8_mla): Likewise.
23565         (cortex_a8_mull): Likewise.
23566         (cortex_a8_smulwy): Likewise.
23567         (cortex_a8_smlald): Likewise.
23568         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
23569         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
23570         (cortex_r4_mul_3): Likewise.
23571         (cortex_r4_mla_4): Likewise.
23572         (cortex_r4_mla_3): Likewise.
23573         (cortex_r4_smlald): Likewise.
23574         (cortex_r4_mull): Likewise.
23575         (cortex_r4_sdiv): Likewise.
23576         (cortex_r4_udiv): Likewise.
23577         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
23578         (cortex_a7_idiv): Likewise.
23579         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
23580         (9_mult2): Likewise.
23581         (9_mult3): Likewise.
23582         (9_mult4): Likewise.
23583         (9_mult5): Likewise.
23584         (9_mult6): Likewise.
23585         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
23586         (cortex_a53_sdiv): Likewise.
23587         (cortex_a53_udiv): Likewise.
23588         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
23589         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
23590         (mp626_mult2): Likewise.
23591         (mp626_mult3): Likewise.
23592         (mp626_mult4): Likewise.
23593         * config/arm/fa526.md (526_mult1): Update attribute change.
23594         (526_mult2): Likewise.
23595         * config/arm/arm-generic.md (mult): Update attribute change.
23596         (mult_ldsched_strongarm): Likewise.
23597         (mult_ldsched): Likewise.
23598         (multi_cycle): Likewise.
23599         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
23600         * config/arm/fa606te.md (606te_mult1): Update attribute change.
23601         (606te_mult2): Likewise.
23602         (606te_mult3): Likewise.
23603         (606te_mult4): Likewise.
23604         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
23605         (cortex_a9_mac16): Likewise.
23606         (cortex_a9_multiply): Likewise.
23607         (cortex_a9_mac): Likewise.
23608         (cortex_a9_multiply_long): Likewise.
23609         * config/arm/fa626te.md (626te_mult1): Update attribute change.
23610         (626te_mult2): Likewise.
23611         (626te_mult3): Likewise.
23612         (626te_mult4): Likewise.
23614 2013-06-18  Richard Biener  <rguenther@suse.de>
23616         PR lto/57334
23617         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
23619 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23621         PR target/57609
23622         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23623         with next_active_insn.
23625 2013-06-18  Alan Modra  <amodra@gmail.com>
23627         * config/rs6000/rs6000.h (enum data_align): New.
23628         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
23629         (DATA_ABI_ALIGNMENT): Define.
23630         (CONSTANT_ALIGNMENT): Correct comment.
23631         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
23632         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
23634 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
23636         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
23637         ATTRIBUTE_UNUSED marking.
23639 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
23641         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
23642         alternative and update.
23643         (aarch64_dup_lanedi): Delete.
23644         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
23645         * config/aarch64/aarch64-simd-builtins.def: Update.
23647 2013-06-17  Richard Biener  <rguenther@suse.de>
23649         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
23650         (lto_input_scc): Declare.
23651         (lto_input_tree_1): Likewise.
23652         (struct lto_stats_d): Add num_tree_bodies_output and
23653         num_pickle_refs_output.
23654         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
23655         (lto_read_tree_1): Split out from ...
23656         (lto_read_tree): ... this.
23657         (lto_input_scc): New function.
23658         (lto_input_tree_1): Split out from ...
23659         (lto_input_tree): ... this.  Handle LTO_tree_scc.
23660         (lto_data_in_create): Create the streamer cache without hashes.
23661         * lto-streamer-out.c (create_output_block): Create the streamer
23662         cache with hashes when not doing WPA.
23663         (lto_write_tree_1): Split out from ...
23664         (lto_write_tree): ... this.
23665         (get_symbol_initial_value): New function.
23666         (lto_output_tree_1): Split out from ...
23667         (lto_output_tree): ... this.  Write trees as series of SCCs
23668         using a DFS walk via DFS_write_tree.
23669         (struct sccs, struct scc_entry): New types.
23670         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
23671         (DFS_write_tree_body): New function.
23672         (DFS_write_tree): Likewise.
23673         (hash_tree): Likewise.
23674         (scc_entry_compare): Likewise.
23675         (hash_scc): Likewise.
23676         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
23677         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
23678         TREE_CHAIN as regular reference.
23679         (streamer_read_integer_cst): Remove.
23680         (streamer_get_pickled_tree): Adjust.
23681         * tree-streamer-out.c (streamer_write_chain): Disable streaming
23682         of DECL_EXTERNALs in BLOCK_VARS for now.
23683         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
23684         reference.
23685         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
23686         Add hash value argument and record that if hashes are recorded
23687         in the cache.
23688         (streamer_tree_cache_insert_1): Adjust.
23689         (streamer_tree_cache_insert): Likewise.
23690         (streamer_tree_cache_insert_at): Rename to ...
23691         (streamer_tree_cache_replace_tree): ... this and adjust.
23692         (streamer_tree_cache_append): Adjust.
23693         (record_common_node): Likewise.
23694         (streamer_tree_cache_create): Add argument whether to
23695         record hash values together with trees.
23696         (streamer_tree_cache_delete): Adjust.
23697         * tree-streamer.h (struct streamer_tree_cache_d): Add
23698         vector of hashes.
23699         (streamer_read_integer_cst): Remove.
23700         (streamer_tree_cache_insert): Adjust.
23701         (streamer_tree_cache_append): Likewise.
23702         (streamer_tree_cache_insert_at): Rename to ...
23703         (streamer_tree_cache_replace_tree): ... this and adjust.
23704         (streamer_tree_cache_create): Add argument whether to record hashes.
23705         (streamer_tree_cache_get): Rename to ...
23706         (streamer_tree_cache_get_tree): ... this.
23707         (streamer_tree_cache_get_hash): New function.
23708         * tree.c (cache_integer_cst): New function.
23709         * tree.h (cache_integer_cst): Declare.
23710         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
23711         * lto-symtab.c (lto_varpool_replace_node): Only release
23712         DECL_INITIAL of non-prevailing decls.
23713         * varpool.c (varpool_remove_initializer): Do not release
23714         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
23716 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
23718         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
23719         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
23720         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
23721         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
23722         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
23723         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
23724         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
23725         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
23726         instead of TARGET_64BIT.
23727         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
23728         Require ISA_HAS_<D>DIV.
23730 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
23732         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
23733         (mips*-*-linux*): Move default with_llsc setting to where other
23734         defaults are set.
23735         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
23736         with_arch block.
23737         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
23738         Likewise.  Remove default with_tune setting.  Move default float
23739         setting to its own block.  Handle with_llsc in the same block as above.
23741 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
23743         PR rtl-optimization/57425
23744         PR rtl-optimization/57569
23745         * alias.c (write_dependence_p): Add new parameters mem_mode,
23746         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
23747         Changed all callers.
23748         (canon_anti_dependence): New function.
23749         * cse.c (check_dependence): Use canon_anti_dependence.
23750         * cselib.c (cselib_invalidate_mem): Likewise.
23751         * rtl.h (canon_anti_dependence): Declare.
23753 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
23755         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
23756         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
23757         ".set mips3" for 64-bit targets.
23759 2013-06-15  Dehao Chen  <dehao@google.com>
23761         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
23762         * gimple-low.c (gimple_check_call_matching_types): Likewise.
23763         (gimple_check_call_args): Likewise.
23764         * value-prof.c (check_ic_target): Likewise.
23765         * ipa-inline.c (early_inliner): Likewise.
23766         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
23767         * cgraph.c (cgraph_create_edge_1): Likewise.
23768         (cgraph_make_edge_direct): Likewise.
23770 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23772         PR target/57615
23773         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
23774         rs6000_output_move_128bit to handle emitting quad memory
23775         operations.  Set attribute length to 8 bytes.
23777 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
23779         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
23780         New pattern.
23781         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
23782         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
23783         (aarch64_<su>mlsl<mode>): Likewise.
23785 2013-06-14  Mike Stump  <mikestump@comcast.net>
23787         * Makefile.in (TARGET_H): Add insn-codes.h.
23789 2013-06-14  Alan Modra  <amodra@gmail.com>
23791         PR middle-end/57134
23792         PR middle-end/57586
23793         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
23794         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
23795         bitfield expansion when EXPAND_MEMORY.
23796         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
23798 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
23800         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
23801         test for clearing quad memory on 32-bit later.
23803 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
23805         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
23806         (fold_negate_expr): Likewise.
23807         (fold_real_zero_addition_p): Handle vectors.
23808         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
23810 2013-06-14  Alan Modra  <amodra@gmail.com>
23812         * varasm.c (force_const_mem): Revert 2013-06-07 change.
23814 2013-06-13  Jan Hubicka  <jh@suse.cz>
23816         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
23817         Local comdats are not externally visible.
23818         * symtab.c (dump_symtab_base): Dump externally visible.
23819         (verify_symtab_base): Verify back links in the symtab hash.
23821 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
23823         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
23824         CONVERT_EXPR as equal nodes.
23826 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
23828         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
23830 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
23832         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
23833         Generalize to complex and vector.
23834         * tree.c (build_all_ones_cst): New function.
23835         * tree.h (build_all_ones_cst): Declare it.
23837 2013-06-13  Alan Modra  <amodra@gmail.com>
23839         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
23840         * config/rs6000/rs6000.md (signbittf2): New insn.
23841         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
23842         (abstf2_internal, cmptf_internal2): Likewise.
23843         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
23845 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
23846             Pat Haugen  <pthaugen@us.ibm.com>
23847             Peter Bergner  <bergner@vnet.ibm.com>
23849         * config/rs6000/rs6000.c (emit_load_locked): Add support for
23850         power8 byte, half-word, and quad-word atomic instructions.
23851         (emit_store_conditional): Likewise.
23852         (rs6000_expand_atomic_compare_and_swap): Likewise.
23853         (rs6000_expand_atomic_op): Likewise.
23855         * config/rs6000/sync.md (larx): Add new modes for power8.
23856         (stcx): Likewise.
23857         (AINT): New mode iterator to include TImode as well as normal
23858         integer modes on power8.
23859         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
23860         that VSX registers are not considered.  Use AINT mode iterator
23861         instead of INT1 to allow inclusion of quad word atomic operations
23862         on power8.
23863         (load_locked<mode>): Likewise.
23864         (store_conditional<mode>): Likewise.
23865         (atomic_compare_and_swap<mode>): Likewise.
23866         (atomic_exchange<mode>): Likewise.
23867         (atomic_nand<mode>): Likewise.
23868         (atomic_fetch_<fetchop_name><mode>): Likewise.
23869         (atomic_nand_fetch<mode>): Likewise.
23870         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
23871         each type.
23872         (ATOMIC): On power8, add QImode, HImode modes.
23873         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
23874         modes that promote to SImode.
23875         (load_lockedti): Convert TImode arguments to PTImode, so that we
23876         get a guaranteed even/odd register pair.
23877         (load_lockedpti): Likewise.
23878         (store_conditionalti): Likewise.
23879         (store_conditionalpti): Likewise.
23881         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
23882         atomic load/store instructions.
23883         (HSI): Likewise.
23885 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
23887         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
23888         loads.
23889         (insn_count): New attribute, with most cases extracted from...
23890         (length): ...here.  Redefine most cases in terms of insn_count.
23891         (single_insn): Delete.
23892         (can_delay): Use insn_count to check for single instructions.
23893         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
23894         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
23895         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
23896         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
23897         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
23898         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
23899         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
23900         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
23901         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
23902         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
23903         rather than "length".
23904         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
23905         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
23906         Use "insn_count" rather than "length".
23907         * config/mips/mips-dsp.md
23908         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
23909         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
23910         length attributes.
23912 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
23914         PR tree-optimization/57361
23915         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
23917 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
23919         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
23920         to split.
23921         (aarch64_simd_combine<mode>): New instruction expansion.
23922         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
23923         function prototype.
23924         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
23925         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
23927 2013-06-12  Jan Hubicka  <jh@suse.cz>
23929         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
23930         decl has when in streaming stage.
23931         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
23932         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
23934 2013-06-12  Roland Stigge  <stigge@antcom.de>
23936         PR target/57578
23937         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
23939 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
23941         PR tree-optimization/57537
23942         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
23943         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
23945 2013-06-12  Richard Biener  <rguenther@suse.de>
23947         * data-streamer.h (streamer_write_char_stream): CSE
23948         obs->current_pointer.
23949         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
23950         streamer_write_char_stream manually and optimize the resulting loop.
23951         (streamer_write_hwi_stream): Likewise.
23953 2013-06-12  Jan Hubicka  <jh@suse.cz>
23955         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
23956         * cgraph.h (varpool_create_empty_node): Declare.
23957         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
23958         duplicated nodes.
23959         * symtab.c (symtab_unregister_node): Be lax about missin entries
23960         in node hash.
23961         (symtab_get_node): Update comment.
23962         * varpool.c (varpool_create_empty_node): Break out from ...
23963         (varpool_node_for_decl): ... here.
23964         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
23966 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
23968         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
23969         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
23970         part.  Use straight-line flow at the end.
23971         <COMPONENT_REF>: Remove superfluous else.
23972         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
23974 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
23976         PR target/56564
23977         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
23978         target hook even for !TREE_PUBLIC decls.  If no resolution info
23979         is available, return false for common and external decls.
23981 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23983         * config/rl78/constraints.md (U): New constraint.
23984         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
23985         valloc attribute.
23987 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
23989         PR target/57589
23990         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
23991         to allow returning address to AT_PLATFORM name.
23993 2013-06-11  Jan Hubicka  <jh@suse.cz>
23995         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
23996         * cgraph.h (symtab_node_base): Add weakref flag.
23997         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
23998         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
23999         (output_weakrefs): Use weakref flag.
24000         * fold-const.c (simple_operand_p): Handle WEAK.
24001         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
24002         * ipa.c (varpool_externally_visible_p): Drop weakref.
24003         (function_and_variable_visibility): Update comment; fix weakref
24004         sanity checks; do not clear DECL_WEAK on them.
24005         * lto-cgraph.c (lto_output_node): update.
24006         (lto_output_varpool_node): Update.
24007         (input_overwrite_node): Update.
24008         (input_node): Update.
24009         (input_varpool_node): Update.
24010         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
24011         (lto_symtab_merge_symbols): Add sanity check.
24012         (lto_symtab_prevailing_decl): Do not special case weakrefs.
24013         * passes.c (rest_of_decl_compilation): Set static flag, too.
24014         * symtab.c (dump_symtab_base): Dump weakref.
24015         (verify_symtab_base): Sanity check weakrefs.
24016         (symtab_make_decl_local): Remove duplicated code.
24017         (symtab_alias_ultimate_target): Simplify.
24018         * varpool.c (varpool_create_variable_alias): Set weakref flag.
24020 2013-06-11  Tom de Vries  <tom@codesourcery.com>
24022         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
24023         sequence_vect == NULL.
24025 2013-06-11  DJ Delorie  <dj@redhat.com>
24027         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
24028         (rl78_unwind_word_mode): New.
24030 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
24032         * final.c (debug_prefix_maps): Make static.
24034 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
24036         * function.c (initial_trampoline): Remove stray copy.
24038 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
24040         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
24042 2013-06-11  Martin Jambor  <mjambor@suse.cz>
24044         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
24045         within bounds at the beginning of the function.
24047 2013-06-11  Alan Modra  <amodra@gmail.com>
24049         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
24050         reporting.
24051         (get_named_section): Don't NULL !DECL_P decl.
24053 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
24055         * doc/invoke.texi (core-avx2): Document.
24056         (slm): Likewise.
24057         (atom): Updated with MOVBE.
24059 2013-06-11  Richard Biener  <rguenther@suse.de>
24061         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
24063 2013-06-11  Anton Blanchard  <anton@samba.org>
24065         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
24066         correct shift value in little-endian mode.
24068 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
24070         PR target/56564
24071         * varasm.c (get_variable_align): Move #endif to the right place.
24073 2013-06-10  Cary Coutant  <ccoutant@google.com>
24075         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
24076         for hash so that hash table traversal order is deterministic.
24078 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
24079             Pat Haugen  <pthaugen@us.ibm.com>
24080             Peter Bergner  <bergner@vnet.ibm.com>
24082         * config/rs6000/vector.md (GPR move splitter): Do not split moves
24083         of vectors in GPRS if they are direct moves or quad word load or
24084         store moves.
24086         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
24087         declaration.
24088         (direct_move_p): Likewise.
24089         (quad_load_store_p): Likewise.
24091         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
24092         classes into bins based on the physical register type.
24093         (reg_class_to_reg_type): Likewise.
24094         (IS_STD_REG_TYPE): Likewise.
24095         (IS_FP_VECT_REG_TYPE): Likewise.
24096         (reload_fpr_gpr): Arrays to determine what insn to use if we can
24097         use direct move instructions.
24098         (reload_gpr_vsx): Likewise.
24099         (reload_vsx_gpr): Likewise.
24100         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
24101         information that is a simplification of register classes.  Also
24102         precalculate direct move reload helpers.
24103         (direct_move_p): New function to return true if the operation can
24104         be done as a direct move instruciton.
24105         (quad_load_store_p): New function to return true if the operation
24106         is a quad memory operation.
24107         (rs6000_legitimize_address): If quad memory, only allow register
24108         indirect for TImode addresses.
24109         (rs6000_legitimate_address_p): Likewise.
24110         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
24111         (rs6000_reload_register_type): Likewise.
24112         (register_to_reg_type): Return register type.
24113         (rs6000_secondary_reload_simple_move): New helper function for
24114         secondary reload and secondary memory needed to identify anything
24115         that is a simple move, and does not need reloading.
24116         (rs6000_secondary_reload_direct_move): New helper function for
24117         secondary reload to identify cases that can be done with several
24118         instructions via the direct move instructions.
24119         (rs6000_secondary_reload_move): New helper function for secondary
24120         reload to identify moves between register types that can be done.
24121         (rs6000_secondary_reload): Add support for quad memory operations
24122         and for direct move.
24123         (rs6000_secondary_memory_needed): Likewise.
24124         (rs6000_debug_secondary_memory_needed): Change argument names.
24125         (rs6000_output_move_128bit): New function to return the move to
24126         use for 128-bit moves, including knowing about the various
24127         limitations of quad memory operations.
24129         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
24130         memory operations.  call rs6000_output_move_128bit for the actual
24131         instruciton(s) to generate.
24132         (vsx_movti_64bit): Likewise.
24134         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
24135         (UNSPEC_P8V_MTVSRWZ): Likewise.
24136         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
24137         (UNSPEC_P8V_MTVSRD): Likewise.
24138         (UNSPEC_P8V_XXPERMDI): Likewise.
24139         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
24140         (UNSPEC_FUSION_GPR): Likewise.
24141         (FMOVE128_GPR): New iterator for direct move.
24142         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
24143         (f32_sv): Likewise.
24144         (f32_dm): Likewise.
24145         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
24146         loads and direct move instructions.
24147         (zero_extendsidi2_lfiwzx): Likewise.
24148         (extendsidi2_lfiwax): Likewise.
24149         (extendsidi2_nocell): Likewise.
24150         (floatsi<mode>2_lfiwax): Likewise.
24151         (lfiwax): Likewise.
24152         (floatunssi<mode>2_lfiwzx): Likewise.
24153         (lfiwzx): Likewise.
24154         (fix_trunc<mode>_stfiwx): Likewise.
24155         (fixuns_trunc<mode>_stfiwx): Likewise.
24156         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
24157         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
24158         (parity<mode>2_cmpb): Set length/type attr.
24159         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
24160         for 'mr.' to fast_compare.
24161         (bpermd_<mode>): Change type attr to popcnt.
24162         (p8_fmrgow_<mode>): New insns for power8 direct move support.
24163         (p8_mtvsrwz_1): Likewise.
24164         (p8_mtvsrwz_2): Likewise.
24165         (reload_fpr_from_gpr<mode>): Likewise.
24166         (p8_mtvsrd_1): Likewise.
24167         (p8_mtvsrd_2): Likewise.
24168         (p8_xxpermdi_<mode>): Likewise.
24169         (reload_vsx_from_gpr<mode>): Likewise.
24170         (reload_vsx_from_gprsf): Likewise.
24171         (p8_mfvsrd_3_<mode>): LIkewise.
24172         (reload_gpr_from_vsx<mode>): Likewise.
24173         (reload_gpr_from_vsxsf): Likewise.
24174         (p8_mfvsrd_4_disf): Likewise.
24175         (multi-word GPR splits): Do not split direct moves or quad memory
24176         operations.
24178 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
24180         * tree-into-ssa.c (interesting_blocks): Make static.
24182 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
24184         PR target/56564
24185         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
24186         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
24187         Use DATA_ABI_ALIGNMENT for that case instead if defined.
24188         (get_variable_align): New function.
24189         (get_variable_section, emit_bss, emit_common,
24190         assemble_variable_contents, place_block_symbol): Use
24191         get_variable_align instead of DECL_ALIGN.
24192         (assemble_noswitch_variable): Add align argument, use it
24193         instead of DECL_ALIGN.
24194         (assemble_variable): Adjust caller.  Use get_variable_align
24195         instead of DECL_ALIGN.
24196         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
24197         caller.
24198         (DATA_ABI_ALIGNMENT): Define.
24199         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
24200         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
24201         opt is false, only return the psABI mandated alignment increase.
24202         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
24203         (DATA_ABI_ALIGNMENT): ... this.
24204         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
24205         (DATA_ABI_ALIGNMENT): ... this.
24206         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
24207         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
24208         (DATA_ABI_ALIGNMENT): ... this.
24209         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
24210         * doc/tm.texi: Regenerated.
24212 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
24214         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
24215         cmp_code to construct REG_EQUAL note.
24217 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
24219         PR target/57568
24220         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
24221         that operands[2] doesn't overlap with operands[0].
24223 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
24224             Jan Hubicka  <jh@suse.cz>
24226         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
24227         hack to mark symbols as used.
24229 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
24231         PR rtl-optimization/57559
24232         * lra-constraints.c (process_alt_operands): Don't discourage
24233         memory with known offset for offsetable memory constraint.
24234         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
24236 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
24238         * varasm.c (struct oc_local_state): Reorder fields.
24239         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
24240         and adjust accordingly.
24241         (output_constructor): Reorder initialization code and adjust call to
24242         output_constructor_bitfield.
24244 2013-06-07  Jan Hubicka  <jh@suse.cz>
24246         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
24248 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
24250         * tree-object-size.c (unknown): Make const.
24252 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24254         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
24255         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
24256         for last alternative in the cpu_facility attribute.
24258 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24260         PR target/56315
24261         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
24262         (xordi3): Change operand 2 constraint to arm_xordi_operand.
24263         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
24264         * config/arm/constraints.md (Dg): New constraint.
24265         * config/arm/neon.md (xordi3_neon): Remove.
24266         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
24267         * config/arm/predicates.md (arm_xordi_operand): New predicate.
24269 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24271         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
24272         Clean up alternatives.
24274 2013-06-07  Alan Modra  <amodra@gmail.com>
24276         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
24277         va_list_gpr_size.
24279 2013-06-07  Alan Modra  <amodra@gmail.com>
24281         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
24283 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24285         * config/arm/constraints.md (Df): New constraint.
24286         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
24287         Correct length attribute for last two alternatives.
24289 2013-06-07  Alan Modra  <amodra@gmail.com>
24291         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
24292         override user -mfp-in-toc.
24293         (offsettable_ok_by_alignment): Consider just the current access
24294         rather than the whole object, unless BLKmode.  Handle
24295         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
24296         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
24297         for -mcmodel=medium.
24298         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
24299         override user -mfp-in-toc or -msum-in-toc.  Default to
24300         -mno-fp-in-toc for -mcmodel=medium.
24302 2013-06-06  DJ Delorie  <dj@redhat.com>
24304         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
24305         TARGET_VALID_POINTER_MODE.
24307 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
24308             Pat Haugen  <pthaugen@us.ibm.com>
24309             Peter Bergner  <bergner@vnet.ibm.com>
24311         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
24312         Document new power8 builtins.
24314         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
24315         condition code register, to allow 128-bit logical operations to be
24316         done in the VSX or GPR registers.
24317         (nor<mode>3): Use the canonical form for nor.
24318         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
24319         vclz*, and vpopcnt* vector instructions.
24320         (nand<mode>3): Likewise.
24321         (orc<mode>3): Likewise.
24322         (clz<mode>2): LIkewise.
24323         (popcount<mode>2): Likewise.
24325         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
24326         that only the GPRs are recognized.
24328         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24329         support for new power8 builtins.
24331         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
24332         builtin functions.
24333         (xscvdpspn): Likewise.
24334         (vclz): Likewise.
24335         (vclzb): Likewise.
24336         (vclzh): Likewise.
24337         (vclzw): Likewise.
24338         (vclzd): Likewise.
24339         (vpopcnt): Likewise.
24340         (vpopcntb): Likewise.
24341         (vpopcnth): Likewise.
24342         (vpopcntw): Likewise.
24343         (vpopcntd): Likewise.
24344         (vgbbd): Likewise.
24345         (vmrgew): Likewise.
24346         (vmrgow): Likewise.
24347         (eqv): Likewise.
24348         (eqv_v16qi3): Likewise.
24349         (eqv_v8hi3): Likewise.
24350         (eqv_v4si3): Likewise.
24351         (eqv_v2di3): Likewise.
24352         (eqv_v4sf3): Likewise.
24353         (eqv_v2df3): Likewise.
24354         (nand): Likewise.
24355         (nand_v16qi3): Likewise.
24356         (nand_v8hi3): Likewise.
24357         (nand_v4si3): Likewise.
24358         (nand_v2di3): Likewise.
24359         (nand_v4sf3): Likewise.
24360         (nand_v2df3): Likewise.
24361         (orc): Likewise.
24362         (orc_v16qi3): Likewise.
24363         (orc_v8hi3): Likewise.
24364         (orc_v4si3): Likewise.
24365         (orc_v2di3): Likewise.
24366         (orc_v4sf3): Likewise.
24367         (orc_v2df3): Likewise.
24369         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
24370         allow power8 quad mode in 64-bit.
24371         (rs6000_builtin_vectorized_function): Add support to vectorize
24372         ISA 2.07 count leading zeros, population count builtins.
24373         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
24374         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
24375         (builtin_function_type): Add vgbbd builtin function which takes an
24376         unsigned argument.
24377         (altivec_expand_vec_perm_const): Add support for new power8 merge
24378         instructions.
24380         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
24381         that does not include TImdoe for use with 32-bit.
24382         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
24383         instructions.
24384         (UNSPEC_VSX_CVDPSPN): Likewise.
24385         (vsx_xscvdpspn): Likewise.
24386         (vsx_xscvspdpn): Likewise.
24387         (vsx_xscvdpspn_scalar): Likewise.
24388         (vsx_xscvspdpn_directmove): Likewise.
24389         (vsx_and<mode>3): Split logical operations into 32-bit and
24390         64-bit. Add support to do logical operations on TImode as well as
24391         VSX vector types.  Allow logical operations to be done in either
24392         VSX registers or in general purpose registers in 64-bit mode.  Add
24393         splitters if GPRs were used. For AND, add clobber of CCmode to
24394         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
24395         encoding.
24396         (vsx_and<mode>3_32bit): Likewise.
24397         (vsx_and<mode>3_64bit): Likewise.
24398         (vsx_ior<mode>3): Likewise.
24399         (vsx_ior<mode>3_32bit): Likewise.
24400         (vsx_ior<mode>3_64bit): Likewise.
24401         (vsx_xor<mode>3): Likewise.
24402         (vsx_xor<mode>3_32bit): Likewise.
24403         (vsx_xor<mode>3_64bit): Likewise.
24404         (vsx_one_cmpl<mode>2): Likewise.
24405         (vsx_one_cmpl<mode>2_32bit): Likewise.
24406         (vsx_one_cmpl<mode>2_64bit): Likewise.
24407         (vsx_nor<mode>3): Likewise.
24408         (vsx_nor<mode>3_32bit): Likewise.
24409         (vsx_nor<mode>3_64bit): Likewise.
24410         (vsx_andc<mode>3): Likewise.
24411         (vsx_andc<mode>3_32bit): Likewise.
24412         (vsx_andc<mode>3_64bit): Likewise.
24413         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
24414         and xxlorc instructions.
24415         (vsx_eqv<mode>3_64bit): Likewise.
24416         (vsx_nand<mode>3_32bit): Likewise.
24417         (vsx_nand<mode>3_64bit): Likewise.
24418         (vsx_orc<mode>3_32bit): Likewise.
24419         (vsx_orc<mode>3_64bit): Likewise.
24421         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
24423         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
24424         instruction.
24425         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
24426         (p8_vmrgow): Likewise.
24427         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
24428         GPRs to be split under VSX.
24429         (p8v_clz<mode>2): Add power8 count leading zero support.
24430         (p8v_popcount<mode>2): Add power8 population count support.
24431         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
24432         support.
24434         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
24435         instruction.
24437         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
24438         builtin functions.
24439         (vec_nand): Likewise.
24440         (vec_vclz): Likewise.
24441         (vec_vclzb): Likewise.
24442         (vec_vclzd): Likewise.
24443         (vec_vclzh): Likewise.
24444         (vec_vclzw): Likewise.
24445         (vec_vgbbd): Likewise.
24446         (vec_vmrgew): Likewise.
24447         (vec_vmrgow): Likewise.
24448         (vec_vpopcnt): Likewise.
24449         (vec_vpopcntb): Likewise.
24450         (vec_vpopcntd): Likewise.
24451         (vec_vpopcnth): Likewise.
24452         (vec_vpopcntw): Likewise.
24454 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24456         PR rtl-optimization/57468
24457         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
24458         spilled pseudos.
24460 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24462         PR rtl-optimization/57459
24463         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
24464         type when setting live regs.
24466 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24468         * config/s390/s390.opt (mlra): New option.
24469         * config/s390/s390.c (s390_decompose_address): Check displacement
24470         for all registers for LRA.
24471         (s390_secondary_reload): Don't used secondary reloads for LRA.
24472         (s390_lra_p): New function.
24473         (TARGET_LRA_P): Define.
24474         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
24475         of attribute cpu_facility to zarch for the last alternative.
24476         (*cmpmem_short): Ditto.
24478 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
24480         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
24481         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
24482         (arm_expand_prologue): Likewise.
24484 2013-06-06  Teresa Johnson  <tejohnson@google.com>
24486         PR c++/53743
24487         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
24488         as this is now done by redirect_edge_and_branch_force.
24489         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
24490         barriers, and fix interaction with splitting.
24491         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
24492         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
24493         reflect changes made in the routine.
24494         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
24495         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
24496         since this is called in cfglayout mode, and replace partition fixup
24497         with assert as that is now done by force_nonfallthru_and_redirect.
24498         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
24499         already be marked with region crossing note.
24500         (insert_section_boundary_note): Make non-static, gate on flag
24501         has_bb_partition, rewrite to also check for multiple partitions.
24502         (rest_of_handle_reorder_blocks): Remove call to
24503         insert_section_boundary_note, now done later during free_cfg.
24504         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
24505         * bb-reorder.h (insert_section_boundary_note): Declare.
24506         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
24507         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
24508         invoke insert_section_boundary_note.
24509         (try_redirect_by_replacing_jump): Remove unnecessary
24510         check for region crossing note.
24511         (fixup_partition_crossing): New function.
24512         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
24513         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
24514         in non-cfglayout mode.
24515         (force_nonfallthru_and_redirect): Fixup partition boundaries,
24516         remove old code that tried to do this. Emit barrier correctly
24517         when we are in cfglayout mode.
24518         (last_bb_in_partition): New function.
24519         (rtl_split_edge): Correctly fixup partition boundaries.
24520         (commit_one_edge_insertion): Remove old code that tried to
24521         fixup region crossing edge since this is now handled in
24522         split_block, and set up insertion point correctly since
24523         block may now end in a jump.
24524         (verify_hot_cold_block_grouping): Guard against checking when not in
24525         linearized RTL mode.
24526         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
24527         notes.
24528         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
24529         rtl_verify_flow_info, so not called in cfglayout mode.
24530         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
24531         (fixup_reorder_chain): Remove old code that attempted to fixup region
24532         crossing note as this is now handled in force_nonfallthru_and_redirect.
24533         (duplicate_insn_chain): Don't duplicate switch section notes.
24534         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
24535         note.
24536         * basic-block.h (emit_barrier_after_bb): Declare.
24538 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24540         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
24541         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
24542         arm_usatsihi): Adjust alternatives for arm_restrict_it.
24544 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24546         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
24547         where appropriate.
24548         * config/arm/ldmstm.md: Regenerate.
24550 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24552         * config/arm/sync.md (atomic_loaddi_1):
24553         Disable predication for arm_restrict_it.
24554         (arm_load_exclusive<mode>): Likewise.
24555         (arm_load_exclusivesi): Likewise.
24556         (arm_load_exclusivedi): Likewise.
24557         (arm_load_acquire_exclusive<mode>): Likewise.
24558         (arm_load_acquire_exclusivesi): Likewise.
24559         (arm_load_acquire_exclusivedi): Likewise.
24560         (arm_store_exclusive<mode>): Likewise.
24561         (arm_store_exclusive<mode>): Likewise.
24562         (arm_store_release_exclusivedi): Likewise.
24563         (arm_store_release_exclusive<mode>): Likewise.
24565 2013-06-06  Richard Biener  <rguenther@suse.de>
24567         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
24568         after LTO_null.
24569         (lto_tag_is_tree_code_p): Adjust.
24570         (lto_tag_is_gimple_code_p): Likewise.
24571         (lto_gimple_code_to_tag): Likewise.
24572         (lto_tag_to_gimple_code): Likewise.
24573         (lto_tree_code_to_tag): Likewise.
24574         (lto_tag_to_tree_code): Likewise.
24575         * data-streamer.h (streamer_write_hwi_in_range): Use
24576         uhwi streaming to stream the normalized range.
24577         (streamer_read_hwi_in_range): Likewise.
24579 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24581         * config/arm/arm.md (enabled_for_depr_it): New attribute.
24582         (predicable_short_it): Likewise.
24583         (predicated): Likewise.
24584         (enabled): Handle above.
24585         (define_cond_exec): Set predicated attribute to yes.
24587 2013-06-05  Mike Stump  <mikestump@comcast.net>
24589         * gdbinit.in (__FUNCTION__): Add.
24591 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
24593         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
24594         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
24596 2013-06-05  Jan Hubicka  <jh@suse.cz>
24598         * varasm.c (mark_decl_referenced): Revert the removal until targets
24599         are fixed.
24601 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
24603         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
24604         instead of mark_decl_referenced.
24606 2013-06-05  Jan Hubicka  <jh@suse.cz>
24608         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
24609         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
24610         and symtab_used_from_object_file_p.
24611         (cgraph_make_node_local_1): Clear forced_by_abi.
24612         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
24613         * cgraph.h (symtab_node_base): Add forced_by_abi.
24614         (decide_is_variable_needed): Remove.
24615         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
24616         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
24617         (decide_is_symbol_needed): ... this one; handle symbols in general;
24618         always analyze virtuals; honnor forced_by_abi.
24619         (cgraph_finalize_function): Update.
24620         (varpool_finalize_decl): Update.
24621         (symbol_defined_and_needed): Remove.
24622         (analyze_functions): Update.
24623         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24624         output_refs, input_overwrite_node): Handle forced_by_abi.
24625         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
24626         (address_taken_from_non_vtable_p): ... this one.
24627         (comdat_can_be_unshared_p_1): New function.
24628         (cgraph_comdat_can_be_unshared_p): Rename to ...
24629         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
24630         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
24631         (function_and_variable_visibility): Clear forced_by_abi as needed.
24632         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
24633         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
24634         * symtab.c (dump_symtab_base): Dump forced_by_abi.
24635         * varpool.c (decide_is_variable_needed): Remove.
24637 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24639         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
24640         (arm_option_override): Override arm_restrict_it where appropriate.
24641         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
24642         * config/arm/arm.opt (mrestrict-it): New command-line option.
24643         * doc/invoke.texi: Document -mrestrict-it.
24645 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
24647         * tsan.c (tsan_atomic_table): Make const.
24649 2013-06-05  Richard Biener  <rguenther@suse.de>
24651         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
24652         index associated with the tree we are supposed to replace.
24653         * tree-streamer-out.c (pack_ts_base_value_fields): Output
24654         TREE_ASM_WRITTEN as zero for everything but SSA names.
24656 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
24658         * tree-ssa-structalias.c (call_stmt_vars): Make static.
24660 2013-06-04  Jan Hubicka  <jh@suse.cz>
24662         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
24663         (input_node, input_varpool_node): Handle correctly external same
24664         body aliases.
24665         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
24666         nodes at ltrans stage.
24668 2013-06-04  Jan Hubicka  <jh@suse.cz>
24670         * ipa-inline.c (update_caller_keys): Fix availability test.
24671         (update_callee_keys): Likewise.
24672         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
24673         to follow ELF standard.
24675 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
24677         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
24678         (mips64r5900el-*-elf*): New configurations.
24679         * config/mips/mips-cpus.def (r5900): New processor.
24680         * config/mips/mips-tables.opt: Regenerate.
24681         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
24682         (mips_issue_rate): Handle PROCESSOR_R5900.
24683         (mips_reorg_process_insns): Force reorder mode for the R5900.
24684         * config/mips/mips.h (TARGET_MIPS5900): Define.
24685         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
24686         TARGET_MIPS5900.
24687         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
24688         TARGET_MIPS5900.
24689         * config/mips/mips.md (processor): Add r5900.
24690         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
24692 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24694         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
24695         into function to generate MOVI instruction.
24696         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
24697         (aarch64_preferred_simd_mode): Turn into wrapper.
24698         (aarch64_output_scalar_simd_mov_immediate): New function.
24699         * config/aarch64/aarch64-protos.h: Add prototype for above.
24701 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24703         * config/aarch64/aarch64.c (simd_immediate_info): Remove
24704         element_char member.
24705         (sizetochar): Return signed char.
24706         (aarch64_simd_valid_immediate): Remove elchar and other
24707         unnecessary variables.
24708         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
24709         Calculate element_char as required.
24710         * config/aarch64/aarch64-protos.h: Update and move prototype
24711         for aarch64_output_simd_mov_immediate.
24712         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
24713         Update arguments.
24715 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24717         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
24718         information completed by aarch64_simd_valid_immediate.
24719         (aarch64_legitimate_constant_p): Update arguments.
24720         (aarch64_simd_valid_immediate): Work with struct rather than many
24721         pointers.
24722         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
24723         (aarch64_simd_make_constant): Update arguments.
24724         (aarch64_output_simd_mov_immediate): Work with struct rather than
24725         many pointers.  Output immediate directly rather than as operand.
24726         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24727         Update prototype.
24728         * config/aarch64/constraints.md (Dn): Update arguments.
24730 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24732         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
24733         longer static.
24734         (aarch64_simd_immediate_valid_for_move): Remove.
24735         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
24736         (aarch64_simd_make_constant): Update call.
24737         (aarch64_output_simd_mov_immediate): Update call.
24738         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24739         Add prototype.
24740         * config/aarch64/constraints.md (Dn): Update call.
24742 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24744         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
24745         return type to bool for prototype.
24746         (aarch64_legitimate_constant_p): Check for true instead of not -1.
24747         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
24748         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
24750 2013-06-04  Catherine Moore  <clm@codesourcery.com>
24752         * config/mips/mips.opt (meva): New.
24753         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
24754         (ASM_SPEC): Handle -meva.
24755         * doc/invoke.texi (meva):  Document.
24757 2013-06-04  Alan Modra  <amodra@gmail.com>
24759         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
24760         constant output.
24762 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24764         * rtl.def: Add extra fourth optional field to define_cond_exec.
24765         * gensupport.c (process_one_cond_exec): Process attributes from
24766         define_cond_exec.
24767         * doc/md.texi: Document fourth field in define_cond_exec.
24769 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
24771         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
24772         out the processing order as in store_bit_field_1.
24774 2013-06-04  Jan Hubicka  <jh@suse.cz>
24776         PR middle-end/57500
24777         * cgraphunit.c (cgraph_process_same_body_aliases): Create
24778         non-VAR_DECL node if it does not exist yet.
24780 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
24782         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
24783         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
24784         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
24785         target_cpu_default setting.
24787 2013-06-03  Teresa Johnson  <tejohnson@google.com>
24789         * dumpfile.c (opt_info_switch_p): Change -fopt-info
24790         default to -fopt-info=optimized instead of all.
24791         * doc/invoke.texi: Ditto.
24792         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
24793         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
24794         (execute_vect_slp): Emit BB vectorization success under
24795         MSG_OPTIMIZED_LOCATIONS.
24796         * tree-vect-slp.c (vect_slp_transform_bb): Change
24797         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
24798         * tree-vect-loop.c (vect_transform_loop): Ditto.
24800 2013-06-03  Jason Merrill  <jason@redhat.com>
24802         PR c++/57415
24803         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24804         Use TARGET_EXPR for C++.
24806 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
24808         PR rtl-optimization/57268
24809         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
24810         if DEBUG_INSN_P (insn).
24812         Reapply
24813         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
24815         PR rtl-optimization/57268
24816         * sched-deps.c (sched_analyze_2): Flush dependence lists if
24817         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24819 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
24821         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
24822         (ix86_avoid_lea_for_addr): Likewise.
24823         (exact_dependency_1): Likewise.
24824         (ix86_adjust_cost): Likewise.
24825         (swap_top_of_ready_list): Fix formatting and !reload_completed check
24826         removed.
24827         (do_reorder_for_imul): Fix typo, formatting and
24828         !reload_completed check removed.
24829         (ix86_sched_reorder): Fix typo and formatting.
24830         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
24831         list.
24833 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
24835         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
24837 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
24839         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
24840         <STRING_CST>: Likewise.
24841         <VECTOR_CST>: Likewise.
24843 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
24844             Mikael Morin  <mikael@gcc.gnu.org>
24846         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
24847         * config.in: Regenerated.
24848         * configure: Regenerated.
24850 2013-06-01  Jan Hubicka  <jh@suse.cz>
24852         PR middle-end/57366
24853         * cgraphunit.c (compile): When weakref is not supported,
24854         set up transparent aliases before final output pass.
24855         * varasm.c (assemble_alias): Do not try to do it here.
24857 2013-06-01  Jan Hubicka  <jh@suse.cz>
24859         PR middle-end/57467
24860         * passes.c (for_per_function): Skip unanalyzed functions.
24862 2013-06-01  Jan Hubicka  <jh@suse.cz>
24864         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
24865         (lto_symtab_merge_symbols_1): ... this one.
24866         (lto_symtab_merge_cgraph_nodes): Rename to ...
24867         (lto_symtab_merge_symbols): ... this one; simplify.
24868         * cgraph.c (same_body_aliases_done): Rename to ...
24869         (cpp_implicit_aliases_done): ... this one.
24870         (cgraph_create_function_alias): Update.
24871         (cgraph_same_body_alias): Update.
24872         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
24873         (verify_edge_corresponds_to_fndecl): Simplify.
24874         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
24875         (cgraph_node): Remove same_body_alias.
24876         (varpool_node): Remove alias_of and extra_name_alias.
24877         (same_body_aliases_done): Rename to ..
24878         (cpp_implicit_aliases_done): ... this one.
24879         (symtab_alias_ultimate_target): Add default parameter.
24880         (symtab_resolve_alias): New function.
24881         (fixup_same_cpp_alias_visibility): Declare.
24882         (cgraph_function_node): Add default parameter.
24883         (cgraph_node_asm_name): Likewise.
24884         (cgraph_function_or_thunk_node): Add default parameter; do
24885         not ICE when it is NULL.
24886         (varpool_variable_node): Likewise.
24887         * tree-emutls.c (create_emultls_var): Update.
24888         (ipa_lower_emutls): Update.
24889         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
24890         (cgraph_reset_node): Reset alias info.
24891         (cgraph_finalize_function): Update.
24892         (fixup_same_cpp_alias_visibility): Move to symtab.c.
24893         (analyze_function): Simplify.
24894         (cgraph_process_same_body_aliases): Simplify.
24895         (analyze_functions): Fixup same body aliases.
24896         (handle_alias_pairs): Simplify.
24897         (assemble_thunk): Update.
24898         (assemble_thunks_and_aliases): Update.
24899         (output_weakrefs): Rewrite.
24900         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
24901         (lto_output_varpool_node): Likewise.
24902         (compute_ltrans_boundary): Remve assert.
24903         (get_alias_symbol): New functoin.
24904         (input_node): Rewrite alias handling.
24905         (input_varpool_node): Likewise.
24906         * ipa-pure-const.c (propagate_pure_const): Fix formating.
24907         * ipa.c (process_references): Handle weakrefs correctly.
24908         (symtab_remove_unreachable_nodes): Likewise.
24909         * trans-mem.c (get_cg_data): Update.
24910         (ipa_tm_create_version_alias): Update.
24911         (ipa_tm_execute): Update.
24912         * symtab.c (dump_symtab_base): Dump aliases.
24913         (verify_symtab_base): Verify aliases.
24914         (symtab_node_availability): New function.
24915         (symtab_alias_ultimate_target): Simplify.
24916         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
24917         handle all the fixup cases.
24918         (symtab_resolve_alias): New function.
24919         * passes.c (ipa_write_summaries): Handle weakrefs.
24920         * varpool.c (varpool_analyze_node): Simplify.
24921         (assemble_aliases): Update.
24922         (varpool_create_variable_alias): Simplify.
24923         (varpool_extra_name_alias): Simplify.
24924         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
24925         (lto_symtab_merge_symbols): ... this one.
24927 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
24929         Revert
24930         PR rtl-optimization/57268
24931         * sched-deps.c (sched_analyze_2): Flush dependence lists if
24932         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24934 2013-06-01  Tobias Burnus  <burnus@net-b.de>
24936         Partially reverted:
24937         2013-05-31  Tobias Burnus  <burnus@net-b.de>
24939         PR middle-end/57073
24940         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
24941         further up.
24943 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
24945         PR rtl-optimization/57268
24946         * sched-deps.c (sched_analyze_2): Flush dependence lists if
24947         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24949 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
24951         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
24952         unordered comparison operators when -fno-trapping-math is in effect
24953         on the e500.
24954         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
24955         and implement unordered comparison operators properly on the e500.
24957 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
24959         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
24960         for constant scalar integers.
24961         (simplify_relational_operation_1): Likewise.
24963 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
24965         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
24966         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
24967         Fix comment.
24969 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
24970             Igor Zamyatin  <igor.zamyatin@intel.com>
24972         Silvermont (SLM) architecture performance tuning.
24973         * config/i386/i386.h (enum ix86_tune_indices): Add
24974         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
24975         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
24977         * config/i386/i386.c (initial_ix86_tune_features)
24978         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
24979         (ix86_lea_outperforms): Handle Silvermont tuning.
24980         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
24981         call.
24982         (ix86_use_lea_for_mov): Likewise.
24983         (ix86_avoid_lea_for_addr): Likewise.
24984         (ix86_lea_for_add_ok): Likewise.
24985         (exact_dependency_1): New function.
24986         (exact_store_load_dependency): Likewise.
24987         (ix86_adjust_cost): Handle Silvermont tuning.
24988         (do_reoder_for_imul): Likewise.
24989         (swap_top_of_ready_list): New function.
24990         (ix86_sched_reorder): Changed to handle Silvermont tuning.
24992         * config/i386/i386.md (peepholes that split memory operand in fp
24993         converts): New.
24995 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24997         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24998         Remove un-necessary braces.
25000 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
25002         * config/aarch64/aarch64.c (aarch64_classify_symbol):
25003         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
25005 2013-05-31  Tobias Burnus  <burnus@net-b.de>
25007         PR middle-end/57073
25008         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
25010 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25012         PR target/56315
25013         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
25014         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
25015         * config/arm/neon.md (iordi3_neon): Remove.
25016         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
25017         * config/arm/predicates.md (imm_for_neon_logic_operand):
25018         Move to earlier in the file.
25019         (neon_logic_op2): Likewise.
25020         (arm_iordi_operand_neon): New predicate.
25022 2013-05-31  Richard Biener  <rguenther@suse.de>
25024         PR tree-optimization/57478
25025         PR tree-optimization/57453
25026         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
25027         are life as well.
25029 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
25031         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
25032         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
25034 2013-05-30  Tobias Burnus  <burnus@net-b.de>
25035             Thomas Koenig  <tkoenig@gcc.gnu.org>
25037         PR middle-end/57073
25038         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
25039         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
25041 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
25043         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
25045 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
25047         * target.def (register_usage_leveling_p): New hook.
25048         * targhooks.c (default_register_usage_leveling_p): New.
25049         * targhooks.h (default_register_usage_leveling_p): New prototype.
25050         * lra-assigns.c (register_usage_leveling_p): Use the hook.
25051         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
25052         * doc/tm.texi: Update.
25053         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
25055 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
25057         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
25058         (*insv_reg<mode>): New define_insn.
25060 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
25062         PR rtl-optimization/57439
25063         * postreload.c (move2add_valid_value_p): Check that we have
25064         a zero subreg_regno_offset when accessing the register in
25065         the requested mode.
25067 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
25068             Igor Zamyatin  <igor.zamyatin@intel.com>
25070         Silvermont (SLM) architecture pipeline model, tuning and
25071         insn selection.
25072         * config.gcc: Add slm config options and target.
25074         * config/i386/slm.md: New.
25076         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
25078         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
25079         PROCESSOR_SLM.
25080         (ix86_target_macros_internal): Likewise.
25082         * config/i386/i386.c (slm_cost): New cost.
25083         (m_SLM): New macro flag.
25084         (initial_ix86_tune_features): Set m_SLM.
25085         (x86_accumulate_outgoing_args): Likewise.
25086         (x86_arch_always_fancy_math_387): Likewise.
25087         (processor_target_table): Add slm cost.
25088         (cpu_names): Add slm cpu name.
25089         (x86_option_override_internal): Set SLM ISA.
25090         (ix86_issue_rate): New case PROCESSOR_SLM.
25091         (ia32_multipass_dfa_lookahead): Likewise.
25092         (fold_builtin_cpu): Add slm.
25094         * config/i386/i386.h (TARGET_SLM): New target macro.
25095         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
25096         (processor_type): Add PROCESSOR_SLM.
25098         * config/i386/i386.md (cpu): Add new value "slm".
25099         (slm.md): Include slm.md.
25101 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
25102             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25104         * config/arm/arm-protos.h: Add and update function protos.
25105         * config/arm/arm.c (use_simple_return_p): New added.
25106         (thumb2_expand_return): Check simple_return flag.
25107         * config/arm/arm.md: Add simple_return and conditional simple_return.
25108         * config/arm/iterators.md: Add iterator for return and simple_return.
25110 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25112         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
25113         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
25114         (arm_emit_vfp_multi_reg_pop): Likewise.
25115         (thumb2_emit_ldrd_pop): Likewise.
25116         (arm_expand_epilogue): Add misc REG_CFA notes.
25117         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
25119 2013-05-29  Lawrence Crowl  <crowl@google.com>
25121         * config/arm/t-arm: Update for below.
25123         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
25124         Change type to hash_table.  Update dependent calls and types.
25126         * config/i386/t-cygming: Update for below.
25128         * config/i386/t-interix: Update for below.
25130         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
25131         Change type to hash_table.  Update dependent calls and types.
25132         (i386_find_on_wrapper_list::wrappers): Likewise.
25134         * config/ia64/t-ia64: Update for below.
25136         * config/ia64/ia64.c (bundle_state_table):
25137         Change type to hash_table.  Update dependent calls and types.
25139         * config/mips/mips.c (mips_reorg_process_insns::htab):
25140         Change type to hash_table.  Update dependent calls and types.
25142         * config/sol2.c (solaris_comdat_htab):
25143         Change type to hash_table.  Update dependent calls and types.
25145         * config/t-sol2: Update for above.
25147 2013-05-29  Teresa Johnson  <tejohnson@google.com>
25149         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
25150         functions are not yet marked as defined.
25152 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
25153             Pat Haugen  <pthaugen@us.ibm.com>
25154             Peter Bergner  <bergner@vnet.ibm.com>
25156         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
25157         instructions.
25158         (VEC_A): Likewise.
25159         (VEC_C): Likewise.
25160         (vrotl<mode>3): Likewise.
25161         (vashl<mode>3): Likewise.
25162         (vlshr<mode>3): Likewise.
25163         (vashr<mode>3): Likewise.
25165         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25166         support for power8 V2DI builtins.
25168         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
25169         power8 V2DI builtins.
25170         (vupkhsw): Likewise.
25171         (vupklsw): Likewise.
25172         (vaddudm): Likewise.
25173         (vminsd): Likewise.
25174         (vmaxsd): Likewise.
25175         (vminud): Likewise.
25176         (vmaxud): Likewise.
25177         (vpkudum): Likewise.
25178         (vpksdss): Likewise.
25179         (vpkudus): Likewise.
25180         (vpksdus): Likewise.
25181         (vrld): Likewise.
25182         (vsld): Likewise.
25183         (vsrd): Likewise.
25184         (vsrad): Likewise.
25185         (vsubudm): Likewise.
25186         (vcmpequd): Likewise.
25187         (vcmpgtsd): Likewise.
25188         (vcmpgtud): Likewise.
25189         (vcmpequd_p): Likewise.
25190         (vcmpgtsd_p): Likewise.
25191         (vcmpgtud_p): Likewise.
25192         (vupkhsw): Likewise.
25193         (vupklsw): Likewise.
25194         (vaddudm): Likewise.
25195         (vmaxsd): Likewise.
25196         (vmaxud): Likewise.
25197         (vminsd): Likewise.
25198         (vminud): Likewise.
25199         (vpksdss): Likewise.
25200         (vpksdus): Likewise.
25201         (vpkudum): Likewise.
25202         (vpkudus): Likewise.
25203         (vrld): Likewise.
25204         (vsld): Likewise.
25205         (vsrad): Likewise.
25206         (vsrd): Likewise.
25207         (vsubudm): Likewise.
25209         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
25210         support for power8 V2DI instructions.
25212         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
25213         power8 V2DI instructions.  Combine pack and unpack insns to use an
25214         iterator for each mode.  Check whether a particular mode supports
25215         Altivec instructions instead of just checking TARGET_ALTIVEC.
25216         (UNSPEC_VPKUWUM): Likewise.
25217         (UNSPEC_VPKSHSS): Likewise.
25218         (UNSPEC_VPKSWSS): Likewise.
25219         (UNSPEC_VPKUHUS): Likewise.
25220         (UNSPEC_VPKSHUS): Likewise.
25221         (UNSPEC_VPKUWUS): Likewise.
25222         (UNSPEC_VPKSWUS): Likewise.
25223         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
25224         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
25225         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
25226         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
25227         (UNSPEC_VUPKHSB): Likewise.
25228         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
25229         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
25230         (UNSPEC_VUPKHSH): Likewise.
25231         (UNSPEC_VUPKLSB): Likewise.
25232         (UNSPEC_VUPKLSH): Likewise.
25233         (VI2): Likewise.
25234         (VI_char): Likewise.
25235         (VI_scalar): Likewise.
25236         (VI_unit): Likewise.
25237         (VP): Likewise.
25238         (VP_small): Likewise.
25239         (VP_small_lc): Likewise.
25240         (VU_char): Likewise.
25241         (add<mode>3): Likewise.
25242         (altivec_vaddcuw): Likewise.
25243         (altivec_vaddu<VI_char>s): Likewise.
25244         (altivec_vadds<VI_char>s): Likewise.
25245         (sub<mode>3): Likewise.
25246         (altivec_vsubcuw): Likewise.
25247         (altivec_vsubu<VI_char>s): Likewise.
25248         (altivec_vsubs<VI_char>s): Likewise.
25249         (altivec_vavgs<VI_char>): Likewise.
25250         (altivec_vcmpbfp): Likewise.
25251         (altivec_eq<mode>): Likewise.
25252         (altivec_gt<mode>): Likewise.
25253         (altivec_gtu<mode>): Likewise.
25254         (umax<mode>3): Likewise.
25255         (smax<mode>3): Likewise.
25256         (umin<mode>3): Likewise.
25257         (smin<mode>3): Likewise.
25258         (altivec_vpkuhum): Likewise.
25259         (altivec_vpkuwum): Likewise.
25260         (altivec_vpkshss): Likewise.
25261         (altivec_vpkswss): Likewise.
25262         (altivec_vpkuhus): Likewise.
25263         (altivec_vpkshus): Likewise.
25264         (altivec_vpkuwus): Likewise.
25265         (altivec_vpkswus): Likewise.
25266         (altivec_vpks<VI_char>ss): Likewise.
25267         (altivec_vpks<VI_char>us): Likewise.
25268         (altivec_vpku<VI_char>us): Likewise.
25269         (altivec_vpku<VI_char>um): Likewise.
25270         (altivec_vrl<VI_char>): Likewise.
25271         (altivec_vsl<VI_char>): Likewise.
25272         (altivec_vsr<VI_char>): Likewise.
25273         (altivec_vsra<VI_char>): Likewise.
25274         (altivec_vsldoi_<mode>): Likewise.
25275         (altivec_vupkhsb): Likewise.
25276         (altivec_vupkhs<VU_char>): Likewise.
25277         (altivec_vupkls<VU_char>): Likewise.
25278         (altivec_vupkhsh): Likewise.
25279         (altivec_vupklsb): Likewise.
25280         (altivec_vupklsh): Likewise.
25281         (altivec_vcmpequ<VI_char>_p): Likewise.
25282         (altivec_vcmpgts<VI_char>_p): Likewise.
25283         (altivec_vcmpgtu<VI_char>_p): Likewise.
25284         (abs<mode>2): Likewise.
25285         (vec_unpacks_hi_v16qi): Likewise.
25286         (vec_unpacks_hi_v8hi): Likewise.
25287         (vec_unpacks_lo_v16qi): Likewise.
25288         (vec_unpacks_hi_<VP_small_lc>): Likewise.
25289         (vec_unpacks_lo_v8hi): Likewise.
25290         (vec_unpacks_lo_<VP_small_lc>): Likewise.
25291         (vec_pack_trunc_v8h): Likewise.
25292         (vec_pack_trunc_v4si): Likewise.
25293         (vec_pack_trunc_<mode>): Likewise.
25295         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
25296         V2DI builtins.
25297         (vec_vmaxsd): Likewise.
25298         (vec_vmaxud): Likewise.
25299         (vec_vminsd): Likewise.
25300         (vec_vminud): Likewise.
25301         (vec_vpksdss): Likewise.
25302         (vec_vpksdus): Likewise.
25303         (vec_vpkudum): Likewise.
25304         (vec_vpkudus): Likewise.
25305         (vec_vrld): Likewise.
25306         (vec_vsld): Likewise.
25307         (vec_vsrad): Likewise.
25308         (vec_vsrd): Likewise.
25309         (vec_vsubudm): Likewise.
25310         (vec_vupkhsw): Likewise.
25311         (vec_vupklsw): Likewise.
25313 2013-05-29  Jan Hubicka  <jh@suse.cz>
25315         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
25316         flags; reorder rest of fields in more consistent way.
25317         (varpool_node): Remove analyzed, finalized and alias.
25318         (cgraph_ndoe): Likewise.
25319         (symtab_alias_ultimate_target): New function.
25320         (cgraph_function_node): Move offline.
25321         (cgraph_reset_node): Declare.
25322         (cgraph_comdat_can_be_unshared_p): Remove.
25323         (varpool_remove_initializer): Declare.
25324         (varpool_first_defined_variable, varpool_next_defined_variable
25325         cgraph_first_defined_function, cgraph_next_defined_function): Update.
25326         (cgraph_function_with_gimple_body_p): Update.
25327         (varpool_all_refs_explicit_p): Update.
25328         (symtab_alias_target): New function.
25329         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
25330         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
25331         (cgraph_function_or_thunk_node): Simplify using
25332         symtab_alias_ultimate_target.
25333         (varpool_variable_node): Likewise.
25334         * cgraph.c (cgraph_create_function_alias): Update.
25335         (cgraph_add_thunk): Update.
25336         (cgraph_remove_node): Update.
25337         (dump_cgraph_node): Do not dump removed flags.
25338         (cgraph_function_body_availability): Update.
25339         (cgraph_propagate_frequency): Update.
25340         (verify_cgraph_node): Check sanity of local flag.
25341         (cgraph_function_node): Move here from cgraph.h; revamp for
25342         cgraph_function_or_thunk_node.
25343         * lto-symtab.c (lto_varpool_replace_node): Update.
25344         (lto_symtab_resolve_can_prevail_p): Update.
25345         (lto_symtab_merge_cgraph_nodes): Update.
25346         * ipa-cp.c (determine_versionability, initialize_node_lattices,
25347         propagate_constants_accross_call, devirtualization_time_bonus,
25348         ipcp_propagate_stage): Update.
25349         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
25350         * ipa-inline-transform.c (clone_inlined_nodes,
25351         preserve_function_body_p): Update.
25352         * ipa-reference.c (propagate): Update.
25353         (write_node_summary_p): Update.
25354         * toplev.c (wrapup_global_declaration_2): Update.
25355         * cgraphunit.c (cgraph_analyze_function): Rename to ...
25356         (analyze_function) ... this one.
25357         (cgraph_process_new_functions): Update.
25358         (cgraph_reset_node): Export.
25359         (cgraph_finalize_function): Update.
25360         (cgraph_add_new_function): Update.
25361         (process_function_and_variable_attributes): Update.
25362         (varpool_finalize_decl): Update.
25363         (symbol_finalized): Remove.
25364         (symbol_finalized_and_needed): Rename to ...
25365         (symbol_defined_and_needed): ... update.
25366         (cgraph_analyze_functions): Update.
25367         (handle_alias_pairs): Update.
25368         (mark_functions_to_output): Update.
25369         (assemble_thunk): Update.
25370         (output_in_order): Update.
25371         (output_weakrefs): Update.
25372         (finalize_compilation_unit): Update.
25373         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
25374         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
25375         input_node, input_varpool_node): Update.
25376         * dbxout.c (dbxout_expand_expr): Update.
25377         * cgraphclones.c (cgraph_clone_node): Update.
25378         (cgraph_copy_node_for_versioning): Update.
25379         (cgraph_materialize_clone): Update.
25380         (cgraph_materialize_all_clones): Update.
25381         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
25382         propagate_pure_const, propagate_nothrow): Update.
25383         * lto-streamer-out.c (lto_output, write_symbol): Update.
25384         * ipa-utils.c (ipa_reverse_postorder): Update.
25385         * ipa-inline.c (can_inline_edge_p): Update.
25386         (update_caller_keys, ipa_inline): Update.
25387         * dwarf2out.c (reference_to_unused,
25388         premark_types_used_by_global_vars_helper): Update.
25389         * tree-eh.c (tree_could_trap_p): Update.
25390         * ipa-split.c (consider_split, execute_split_functions): Update.
25391         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
25392         has_addr_references_p): Update; move ahead in file for better
25393         readability.
25394         (process_references): Simplify.
25395         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
25396         bodies are removed.
25397         (cgraph_comdat_can_be_unshared_p): Make static.
25398         (cgraph_externally_visible_p): Update.
25399         (varpool_externally_visible_p): Update.
25400         (function_and_variable_visibility): Update.
25401         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
25402         ipa_tm_mark_force_output_node): Update.
25403         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
25404         estimate_edge_devirt_benefit, inline_generate_summary,
25405         inline_write_summary): Update.
25406         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
25407         * ipa-prop.c (ipa_compute_jump_functions): Update.
25408         (ipa_print_node_params, ipa_prop_read_section,
25409         ipa_update_after_lto_read, read_replacements_section): Update.
25410         * varasm.c (mark_decl_referenced): Update.
25411         (assemble_alias, dump_tm_clone_pairs): Update.
25412         * tree-inline.c (copy_bb): Update.
25413         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
25414         Update.
25415         * symtab.c (dump_symtab_base): Print new flags.
25416         (verify_symtab_base): Verify new flags.
25417         (symtab_alias_ultimate_target): New function.
25418         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
25419         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
25420         Update.
25421         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
25422         Update.
25423         * i386.c (ix86_get_function_versions_dispatcher,
25424         ix86_generate_version_dispatcher_body): Update.
25425         (fold_builtin_cpu): Use varpool_add_new_variable.
25426         * varpool.c (varpool_remove_initializer): Break out from ...
25427         (varpool_remove_node): ... this one.
25428         (dump_varpool_node, varpool_node_for_asm,
25429         cgraph_variable_initializer_availability, varpool_analyze_node,
25430         varpool_assemble_decl, varpool_remove_unreferenced_decls,
25431         varpool_finalize_named_section_flags, varpool_create_variable_alias):
25432         Update.
25434 2013-05-29  Jan Hubicka  <jh@suse.cz>
25436         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
25438 2013-05-29  Easwaran Raman  <eraman@google.com>
25440         PR tree-optimization/57442
25441         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
25442         when control exits the main loop.
25444 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
25446         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
25447         and RX600.
25448         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
25449         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
25450         * rx/t-rx: Add rx100 under multi library matches option for nofpu
25451         option.
25453 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25455         PR tree-optimization/57441
25456         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
25457         Don't limit size of incr_vec to number of candidates.
25459 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
25461         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
25462         and mips16 directories.
25463         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
25464         (MULTILIB_DIRNAMES): Ditto.
25465         (MULTILIB_EXCEPTIONS): Add new exceptions.
25466         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
25467         (MULTILIB_DIRNAMES): Ditto.
25468         (MULTILIB_EXCEPTIONS): Add new exceptions.
25470 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25471             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25473         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
25474         SYMBOL_TINY_ABSOLUTE.
25475         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
25476         SYMBOL_TINY_ABSOLUTE.
25477         (aarch64_expand_mov_immediate): Likewise.
25478         (aarch64_classify_symbol): Likewise.
25479         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
25480         Permit SYMBOL_TINY_ABSOLUTE.
25481         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
25483 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25484             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25486         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
25487         Refactor if/switch.  Replace gcc_assert with if.
25489 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
25491         * config/i386/i386.c (initial_ix86_tune_features): Enable
25492         FP Reassociation for AMD bdver1 and bdver2.
25494 2013-05-29  Martin Jambor  <mjambor@suse.cz>
25496         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
25497         and IMAGPART_EXPR do not occur within other handled_components.
25499 2013-05-29  Richard Biener  <rguenther@suse.de>
25501         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
25502         access on whether the use is in the BB we currently try to
25503         vectorize.
25504         (vect_bb_vectorization_profitable_p): Pass the BB we currently
25505         vectorize to vect_bb_slp_scalar_cost.
25507 2013-05-29  Richard Biener  <rguenther@suse.de>
25509         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
25510         computing scalar cost offsetted by stmts that are kept live
25511         by scalar uses.
25512         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
25513         for computation of scalar cost.
25515 2013-05-28  Steve Ellcey  <sellcey@mips.com>
25517         * config/mips/mips-cpus.def (mips32r2): Change processor type.
25519 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
25521         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
25522         array notation built-in reduction functions.
25523         * doc/passes.texi (Passes): Added documentation about changes done
25524         for Cilk Plus.
25525         * doc/invoke.texi (C Dialect Options): Added documentation about
25526         the -fcilkplus flag.
25527         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
25528         (BUILTINS_DEF): Depend on cilkplus.def.
25529         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
25530         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
25531         * cilkplus.def: New file.
25533 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
25535         PR rtl-optimization/57439
25536         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
25538 2013-05-28  Easwaran Raman  <eraman@google.com>
25540         PR tree-optimization/57337
25541         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
25542         (find_insert_point): Correctly identify the insertion point
25543         when two statements with the same UID is compared.
25545 2013-05-28  Richard Biener  <rguenther@suse.de>
25547         PR tree-optimization/56787
25548         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
25549         from the list of data references.
25550         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
25551         clobbers.
25552         (vect_analyze_loop_operations): Likewise.
25553         (vect_transform_loop): Remove clobbers.
25555 2013-05-28  Martin Jambor  <mjambor@suse.cz>
25557         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
25558         and REALPART_EXPRs have scalar type.
25560 2013-05-28  Richard Biener  <rguenther@suse.de>
25562         PR tree-optimization/57411
25563         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
25564         virtual operands.
25565         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
25566         virtual operand propagation.
25568 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
25570         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
25571         destination register for bmasksi_vis.
25572         (vector_init_bshuffle): Likewise.
25573         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
25575 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
25577         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
25578         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
25579         mode if the instruction isn't available in the original mode.
25580         * config/sparc/sparc.opt (mfix-ut699): New option.
25581         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
25582         (divdf3): Turn into expander.
25583         (divdf3_nofix): New insn.
25584         (divdf3_fix): Likewise.
25585         (divsf3): Disable if -mfix-ut699.
25586         (sqrtdf2): Turn into expander.
25587         (sqrtdf2_nofix): New insn.
25588         (sqrtdf2_fix): Likewise.
25589         (sqrtsf2): Disable if -mfix-ut699.
25591 2013-05-27  Richard Biener  <rguenther@suse.de>
25593         PR middle-end/57412
25594         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
25595         block for the new loop.
25597 2013-05-27  Richard Biener  <rguenther@suse.de>
25599         PR tree-optimization/57343
25600         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
25601         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
25602         (number_of_iterations_cond): Do not build the folded tree.
25604 2013-05-27  Richard Biener  <rguenther@suse.de>
25606         Revert
25607         PR middle-end/57381
25608         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25609         OEP_CONSTANT_ADDRESS_OF retained.
25611         PR tree-optimization/57417
25612         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
25613         for unchanged base.
25614         (set_ssa_val_to): Compare addresses using
25615         get_addr_base_and_unit_offset.
25617 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
25619         PR rtl-optimization/56833
25620         * postreload.c (move2add_record_mode): New function.
25621         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
25622         (move2add_use_add2_insn): Use move2add_record_sym_value.
25623         (move2add_use_add3_insn): Likewise.
25624         (reload_cse_move2add): Use move2add_valid_value_p and
25625         move2add_record_mode.  Invalidate call-clobbered and REG_INC
25626         affected regs by setting reg_mode to VOIDmode.
25627         (move2add_note_store): Don't pretend the inside of a SUBREG is
25628         the actual destination.  Invalidate single/leading registers by
25629         setting reg_mode to VOIDmode.
25630         Use move2add_record_sym_value, move2add_valid_value_p and
25631         move2add_record_mode.
25633 2013-05-27  Richard Biener  <rguenther@suse.de>
25635         PR tree-optimization/57396
25636         * tree-affine.c (double_int_constant_multiple_p): Properly
25637         return false for val == 0 and div != 0.
25639 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25641         * config/mips/mips.h: Use #elif in preprocessor conditions.
25643 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25645         PR target/53916
25646         * config/mips/constraints.md (kl): New constraint.
25647         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
25648         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
25649         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
25650         from LO for MIPS16.
25651         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
25653 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25655         PR target/55777
25656         * config/mips/mips.c (mips_can_inline_p): New function.
25657         (TARGET_CAN_INLINE_P): Define.
25659 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
25661         * sched-int.h (ds_t, dw_t): Make unsigned int.
25662         Fix documentation that describes how all the ds_t bits are used.
25663         Reserve the last bit for delayed-branch scheduling.
25664         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
25665         (BITS_PER_DEP_WEAK): Fix definition and documentation.
25666         (gen_dep_weak_1): Remove prototype.
25667         * sched-deps.c (get_dep_weak_1): Make static.
25668         * target.def (speculate_insn, needs_block_p, gen_spec_check,
25669         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
25670         * doc/tm.texi: Regenerate.
25671         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
25673 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
25675         PR debug/56950
25676         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
25678 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
25679             Sandra Loosemore  <sandra@codesourcery.com>
25681         * config.gcc (powerpc-*): Allow native for with-cpu.
25683 2013-05-24  Jeff Law  <law@redhat.com>
25685         PR tree-optimization/57124
25686         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
25687         conversion feeding a condition if the range has an overflow
25688         if -fstrict-overflow.  Add warnings for when we do make the
25689         transformation.
25691 2013-05-24  Dehao Chen  <dehao@google.com>
25693         * tree-cfg.c (locus_discrim_map): Fix the typo.
25694         (locus_discrim_hasher): Likewise.
25695         (locus_discrim_hasher::hash): Likewise.
25696         (locus_discrim_hasher::equal): Likewise.
25698 2013-05-24  Martin Jambor  <mjambor@suse.cz>
25700         PR tree-optimization/57294
25701         * cgraph.h (ipa_record_stmt_references): Declare.
25702         * cgraphbuild.c (ipa_record_stmt_references): New function.
25703         (build_cgraph_edges): Use ipa_record_stmt_references.
25704         (rebuild_cgraph_edges): Likewise.
25705         (cgraph_rebuild_references): Likewise.
25706         * ipa-prop.c (ipa_modify_call_arguments): Discard references
25707         associated with the old statement and build references from the
25708         newly built statements.
25709         * ipa-ref.c (ipa_remove_stmt_references): New function.
25710         * ipa-ref.h (ipa_remove_stmt_references): Declare.
25712 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
25714         * lra-constraints.c (emit_spill_move): Use smaller mode for
25715         mem-mem moves.
25716         (check_and_process_move): Consider mem-reg moves for secondary
25717         too.
25718         (curr_insn_transform): Don't lose insns emitted before for
25719         secondary memory moves.
25720         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
25721         reg set up in the current insn.
25723 2013-05-24  Dehao Chen  <dehao@google.com>
25725         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25726         hash function.
25727         (locus_descrim_hasher::equal): Likewise.
25728         (build_gimple_cfg): New discriminator assignment algorithm.
25729         (make_edges): Likewise.
25730         (next_discriminator_for_locus): Likewise.
25731         (same_line_p): Likewise.
25732         (assign_discriminators): Likewise.
25733         (make_cond_expr_edges): Likewise.
25734         (make_gimple_switch_edges): Likewise.
25735         (make_goto_expr_edges): Likewise.
25736         (make_gimple_asm_edges): Likewise.
25738 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
25740         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
25741         X format specifier to only display bottom 16 bits.
25742         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
25743         immediate to match for operand 2, since it will be masked.
25745 2013-05-24  Richard Biener  <rguenther@suse.de>
25747         PR tree-optimization/57287
25748         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
25749         all SSA names that occur in abnormal PHIs.
25751 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25753         PR tree-ssa/57385
25754         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
25755         that index is not negative.
25757 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
25759         PR rtl-optimization/55177
25760         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
25761         (simplify_byte_swapping_operation): New.
25762         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
25763         (simplify_relational_operation_1): Deal with BSWAP.
25765 2013-05-23  Richard Henderson  <rth@redhat.com>
25767         PR target/56742
25768         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
25769         (ix86_reorg): Call it.
25771 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
25773         PR target/57379
25774         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
25775         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
25776         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
25778 2013-05-23  Christian Bruel  <christian.bruel@st.com>
25780         PR debug/57351
25781         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
25783 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25784             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25786         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
25787         * config/aarch64/constraints.md (Usa): Remove.
25788         * doc/md.texi (AArch64 Usa): Remove.
25790 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25791             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25793         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
25794         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
25795         * config/aarch64/predicates.md (aarch64_const_address): Remove.
25796         (aarch64_mov_operand): Use aarch64_mov_operand_p.
25798 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
25800         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
25801         instruction (AdvSIMD).
25802         * config/aarch64/aarch64-builtins.c
25803         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
25804         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
25806 2013-05-23  Martin Jambor  <mjambor@suse.cz>
25808         PR middle-end/57347
25809         * tree.h (contains_bitfld_component_ref_p): Declare.
25810         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
25811         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
25812         caller.
25813         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
25814         not access a bit-field.  Assert all final offsets are byte-aligned.
25816 2013-05-23  Richard Biener  <rguenther@suse.de>
25818         PR tree-optimization/57380
25819         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
25820         least one invariant or re-used load.
25821         * passes.c (init_optimization_passes): Move pass_phiprop before
25822         pass_forwprop.
25824 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
25826         * config/aarch64/aarch64-simd.md
25827         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
25829 2013-05-23  Richard Biener  <rguenther@suse.de>
25831         PR middle-end/57381
25832         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25833         OEP_CONSTANT_ADDRESS_OF retained.
25835 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
25837         PR middle-end/57344
25838         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
25839         don't lower unit.  Handle unit not being always BITS_PER_WORD.
25841 2013-05-23  Richard Biener  <rguenther@suse.de>
25843         PR rtl-optimization/57341
25844         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
25845         instead of true_dependence.
25847 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
25849         * bb-reorder.c (branch_threshold): Make const.
25850         (exec_threshold): Ditto.
25852 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
25853             Pat Haugen  <pthaugen@us.ibm.com>
25854             Peter Bergner  <bergner@vnet.ibm.com>
25856         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
25857         documentation for the power8 crypto builtins.
25859         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
25861         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
25862         macros for defining power8 builtin functions.
25863         (BU_P8V_AV_2): Likewise.
25864         (BU_P8V_AV_P): Likewise.
25865         (BU_P8V_VSX_1): Likewise.
25866         (BU_P8V_OVERLOAD_1): Likewise.
25867         (BU_P8V_OVERLOAD_2): Likewise.
25868         (BU_CRYPTO_1): Likewise.
25869         (BU_CRYPTO_2): Likewise.
25870         (BU_CRYPTO_3): Likewise.
25871         (BU_CRYPTO_OVERLOAD_1): Likewise.
25872         (BU_CRYPTO_OVERLOAD_2): Likewise.
25873         (XSCVSPDP): Fix typo, point to the correct instruction.
25874         (VCIPHER): Add power8 crypto builtins.
25875         (VCIPHERLAST): Likewise.
25876         (VNCIPHER): Likewise.
25877         (VNCIPHERLAST): Likewise.
25878         (VPMSUMB): Likewise.
25879         (VPMSUMH): Likewise.
25880         (VPMSUMW): Likewise.
25881         (VPERMXOR_V2DI): Likewise.
25882         (VPERMXOR_V4SI: Likewise.
25883         (VPERMXOR_V8HI: Likewise.
25884         (VPERMXOR_V16QI: Likewise.
25885         (VSHASIGMAW): Likewise.
25886         (VSHASIGMAD): Likewise.
25887         (VPMSUM): Likewise.
25888         (VPERMXOR): Likewise.
25889         (VSHASIGMA): Likewise.
25891         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25892         __CRYPTO__ if the crypto instructions are available.
25893         (altivec_overloaded_builtins): Add support for overloaded power8
25894         builtins.
25896         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
25897         support for power8 crypto builtins.
25898         (builtin_function_type): Likewise.
25899         (altivec_init_builtins): Add support for builtins that take vector
25900         long long (V2DI) arguments.
25902         * config/rs6000/crypto.md: New file, define power8 crypto
25903         instructions.
25905 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
25906             Pat Haugen  <pthaugen@us.ibm.com>
25907             Peter Bergner  <bergner@vnet.ibm.com>
25909         * doc/invoke.texi (Option Summary): Add power8 options.
25910         (RS/6000 and PowerPC Options): Likewise.
25912         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
25913         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
25914         wm, wn, wr documentation.
25916         * config/rs6000/constraints.md (wm): New constraint for VSX
25917         registers if direct move instructions are enabled.
25918         (wn): New constraint for no registers.
25919         (wq): New constraint for quad word even GPR registers.
25920         (wr): New constraint if 64-bit instructions are enabled.
25921         (wv): New constraint if power8 vector instructions are enabled.
25922         (wQ): New constraint for quad word memory locations.
25924         * config/rs6000/predicates.md (const_0_to_15_operand): New
25925         constraint for 0..15 for crypto instructions.
25926         (gpc_reg_operand): If VSX allow registers in VSX registers as well
25927         as GPR and floating point registers.
25928         (int_reg_operand): New predicate to match only GPR registers.
25929         (base_reg_operand): New predicate to match base registers.
25930         (quad_int_reg_operand): New predicate to match even GPR registers
25931         for quad memory operations.
25932         (vsx_reg_or_cint_operand): New predicate to allow vector logical
25933         operations in both GPR and VSX registers.
25934         (quad_memory_operand): New predicate for quad memory operations.
25935         (reg_or_indexed_operand): New predicate for direct move support.
25937         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
25938         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
25939         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
25940         (POWERPC_MASKS): Add power8 options.
25941         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
25942         various options.
25944         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25945         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
25947         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
25948         (-mpower8-fusion): New power8 options.
25949         (-mpower8-fusion-sign): Likewise.
25950         (-mpower8-vector): Likewise.
25951         (-mcrypto): Likewise.
25952         (-mdirect-move): Likewise.
25953         (-mquad-memory): Likewise.
25955         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
25956         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
25957         registers.
25958         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
25959         (rs6000_debug_vector_unit): Add p8_vector.
25960         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
25961         definitions.  Also print fusion state.
25962         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
25963         (rs6000_builtin_mask_calculate): Add power8 builtin support.
25964         (rs6000_option_override_internal): Add support for power8.
25965         (rs6000_common_init_builtins): Add debugging for skipped builtins
25966         if -mdebug=builtin.
25967         (rs6000_adjust_cost): Add power8 support.
25968         (rs6000_issue_rate): Likewise.
25969         (insn_must_be_first_in_group): Likewise.
25970         (insn_must_be_last_in_group): Likewise.
25971         (force_new_group): Likewise.
25972         (rs6000_register_move_cost): Likewise.
25973         (rs6000_opt_masks): Likewise.
25975         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
25976         power8 capable assembler, default to power7 options.
25977         (TARGET_DIRECT_MOVE): Likewise.
25978         (TARGET_CRYPTO): Likewise.
25979         (TARGET_P8_VECTOR): Likewise.
25980         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
25981         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
25982         (VECTOR_MEM_P8_VECTOR_P): Likewise.
25983         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
25984         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
25985         (TARGET_XSCVDPSPN): Likewise.
25986         (TARGET_XSCVSPDPN): Likewsie.
25987         (TARGET_SYNC_HI_QI): Likewise.
25988         (TARGET_SYNC_TI): Likewise.
25989         (MASK_CRYPTO): Likewise.
25990         (MASK_DIRECT_MOVE): Likewise.
25991         (MASK_P8_FUSION): Likewise.
25992         (MASK_P8_VECTOR): Likewise.
25993         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
25994         temporary used by some of the direct move instructions to get two FP
25995         temporary registers does not force creation of a stack frame.
25996         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
25997         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
25998         that any VSX registers are tieable, even if they are also an
25999         Altivec vector mode.
26000         (r6000_reg_class_enum): Add wm, wr, wv constraints.
26001         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
26002         (RS6000_BTM_CRYPTO): Likewise.
26003         (RS6000_BTM_COMMON): Likewise.
26005         * config/rs6000/rs6000.md (cpu attribute): Add power8.
26006         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
26007         (enum rs6000_vector): Add power8 vector support.
26009 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26011         PR target/19599
26012         PR target/57340
26013         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
26014         (any_sibcall_could_use_r3): this and handle indirect calls.
26015         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
26017 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26019         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
26021 2013-05-22  Richard Biener  <rguenther@suse.de>
26023         PR middle-end/57349
26024         * profile.c (branch_prob): Do not split blocks that are
26025         abnormally receiving from ECF_RETURNS_TWICE functions.
26027 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26029         * recog.c (offsettable_address_addr_space_p): Fix calculation of
26030         address mode.  Move pointer mode initialization to the same place.
26032 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
26034         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
26035         while it has any effect.
26037 2013-05-21  Easwaran Raman  <eraman@google.com>
26039         PR tree-optimization/57322
26040         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
26041         UID of the statement added to the BB to be 1.
26043 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
26045         PR tree-optimization/57331
26046         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
26047         of conversion from pointer type to integral type with integer.
26049 2013-05-21  Martin Jambor  <mjambor@suse.cz>
26051         PR lto/57289
26052         * ipa-prop.c (ipa_read_node_info): Process param_used and
26053         controlled_uses in the same order as when writing.
26055 2013-05-21  Magnus Granberg  <baldrick@free.fr>
26057         PR plugins/56754
26058         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
26060 2013-05-21  Richard Biener  <rguenther@suse.de>
26062         PR tree-optimization/57318
26063         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
26064         estimate stmts with side-effects as likely eliminated.
26066 2013-05-21  Richard Biener  <rguenther@suse.de>
26068         PR tree-optimization/57330
26069         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
26070         preserve the call stmts fntype.
26072 2013-05-21  Richard Biener  <rguenther@suse.de>
26074         PR tree-optimization/57303
26075         * tree-ssa-sink.c (statement_sink_location): Improve killing
26076         stmt detection and properly handle self-assignments.
26078 2013-05-21  Christian Bruel  <christian.bruel@st.com>
26080         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
26081         spanning registers. LEAF_REG_REMAP is supported only for contiguous
26082         registers. Set register size out of the PARALLEL loop.
26084 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
26086         PR target/56547
26087         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
26088         (*fmasf4, *fmasf4_media): New insns.
26090 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26092         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
26093         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
26094         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
26095         (mips_idiv_insns): Update the comments to say that the returned
26096         instruction counts are in units of BASE_INSN_LENGTH.
26097         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
26098         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
26099         using 2 rather than 4 as the length of indirect MIPS16 and
26100         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
26101         length of a NOP.  Don't divide MIPS16 lengths by 2.
26102         (mips16_split_long_branches): Assume a branch is long if the
26103         length is greater than 4 rather than 8.
26104         * config/mips/mips.md (length): Give MIPS16 lengths directly,
26105         rather than multiplying them by 2.  Multiply instruction counts
26106         by BASE_INSN_LENGTH rather than 4.
26107         (*jump_mips16, tls_get_tp_mips16_<mode>)
26108         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
26110 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26112         * config/mips/mips.md (extended_mips16): Remove branch case.
26113         (length): Remove duplicated extended_mips16 test.
26115 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
26117         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
26119 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
26121         * recog.h (Recog_data): Rename to...
26122         (recog_data_d): ...this.
26123         (recog_data): Update accordingly.
26124         * recog.c (recog_data): Likewise.
26125         * reload.c (save_recog_data): Likewise.
26126         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
26127         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
26129 2013-05-17  Julian Brown  <julian@codesourcery.com>
26131         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
26132         found in a REG_EQUAL note, invalidate it.
26134 2013-05-17  Easwaran Raman  <eraman@google.com>
26136         * tree-ssa-reassoc.c (find_insert_point): New function.
26137         (insert_stmt_after): Likewise.
26138         (get_def_stmt): Likewise.
26139         (ensure_ops_are_available): Likewise.
26140         (not_dominated_by): Likewise.
26141         (rewrite_expr_tree): Do not move statements beyond what is
26142         necessary. Remove call to swap_ops_for_binary_stmt...
26143         (reassociate_bb): ... and move it here.
26144         (build_and_add_sum): Assign UIDs for new statements.
26145         (linearize_expr): Likewise.
26146         (do_reassoc): Renumber gimple statement UIDs.
26148 2013-05-17  Jan Hubicka  <jh@suse.cz>
26150         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
26151         weakrefs.
26152         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
26153         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
26154         weakrefs.
26155         (output_weakrefs): Update.
26157 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
26158             Martin Jambor  <mjambor@suse.cz>
26160         PR middle-end/57276
26161         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
26162         value that corresponds to the given aggval is found in values vector.
26164 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
26166         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
26167         sse, sse2, sse3, ssse3 and sse4a flags to options.
26169 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
26171         * gengtype-state.c: (s_expr_writer): New class, to handle
26172         prettifying of output layout of s-expressions.
26173         (state_writer): New class, to write out gtype.state.
26174         (state_written_type_count): Move this variable into member data of
26175         state_writer.
26176         (s_expr_writer::s_expr_writer): New code: constructor for new class
26177         (state_writer::state_writer(): ditto
26178         (s_expr_writer::write_new_line): New function
26179         (s_expr_writer::write_any_indent): ditto
26180         (s_expr_writer::begin_s_expr): ditto
26181         (s_expr_writer::end_s_expr): ditto
26182         (write_state_fileloc): convert to method of state_writer...
26183         (state_writer:: write_state_fileloc): ...and use methods of
26184         s_expr_writer to write indentation into the gtype.state output file
26185         to visually represent the hierarchical structure of the list
26186         structures
26187         (write_state_fields): ditto, renaming to...
26188         (state_writer::write_state_fields)
26189         (write_state_a_string): ditto, renaming to...
26190         (state_writer::write_state_a_string)
26191         (write_state_string_option): ditto, renaming to...
26192         (state_writer::write_state_string_option)
26193         (write_state_type_option): ditto, renaming to...
26194         (state_writer::write_state_type_option)
26195         (write_state_nested_option): ditto, renaming to...
26196         (state_writer::write_state_nested_option)
26197         (write_state_option): ditto, renaming to...
26198         (state_writer::write_state_option)
26199         (write_state_options): ditto, renaming to...
26200         (state_writer::write_state_options)
26201         (write_state_lang_bitmap): ditto, renaming to...
26202         (state_writer::write_state_lang_bitmap)
26203         (write_state_version): ditto, renaming to...
26204         (state_writer::write_state_version)
26205         (write_state_scalar_type): ditto, renaming to...
26206         (state_writer::write_state_scalar_type)
26207         (write_state_string_type): ditto, renaming to...
26208         (state_writer::write_state_string_type)
26209         (write_state_undefined_type): ditto, renaming to...
26210         (state_writer::write_state_undefined_type)
26211         (write_state_struct_union_type): ditto, renaming to...
26212         (state_writer::write_state_struct_union_type)
26213         (write_state_struct_type): ditto, renaming to...
26214         (state_writer::write_state_struct_type)
26215         (write_state_user_struct_type): ditto, renaming to...
26216         (state_writer::write_state_user_struct_type)
26217         (write_state_lang_struct_type): ditto, renaming to...
26218         (state_writer::write_state_lang_struct_type)
26219         (write_state_param_struct_type): ditto, renaming to...
26220         (state_writer::write_state_param_struct_type)
26221         (write_state_pointer_type): ditto, renaming to...
26222         (state_writer::write_state_pointer_type)
26223         (write_state_array_type): ditto, renaming to...
26224         (state_writer::write_state_array_type)
26225         (write_state_gc_used): ditto, renaming to...
26226         (state_writer::write_state_gc_used)
26227         (write_state_common_type_content): ditto, renaming to...
26228         (state_writer::write_state_common_type_content)
26229         (write_state_type): ditto, renaming to...
26230         (state_writer::write_state_type)
26231         (write_state_pair_list): ditto, renaming to...
26232         (state_writer::write_state_pair_list)
26233         (write_state_pair): ditto, renaming to...
26234         (state_writer::write_state_pair)
26235         (write_state_typedefs): ditto, renaming to...
26236         (state_writer::write_state_typedefs)
26237         (write_state_structures): ditto, renaming to...
26238         (state_writer::write_state_structures)
26239         (write_state_param_structs): ditto, renaming to...
26240         (state_writer::write_state_param_structs)
26241         (write_state_variables): ditto, renaming to...
26242         (state_writer::write_state_variables)
26243         (write_state_srcdir): ditto, renaming to...
26244         (state_writer::write_state_srcdir)
26245         (write_state_files_list): ditto, renaming to...
26246         (state_writer::write_state_files_list)
26247         (write_state_languages): ditto, renaming to...
26248         (state_writer::write_state_languages)
26249         (write_state): create a state_writer instance and use it when
26250         writing out the state file
26252 2013-05-17  Mike Stump  <mikestump@comcast.net>
26254         PR rtl-optimization/57304
26255         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
26256         accessing DF_REF_REAL_LOC.
26258 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26260         PR rtl-optimization/57281
26261         PR rtl-optimization/57300
26262         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
26263         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
26264         what the other splitter did if the registers are dead.
26266 2013-05-17  Richard Biener  <rguenther@suse.de>
26268         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
26269         MEM_REF offsets.
26271 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26273         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
26274         linking.
26276 2013-05-17  Marek Polacek  <polacek@redhat.com>
26278         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
26279         length when doing non-zero store of storing '\0' to '\0'.
26281 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
26283         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
26284         vect_external_def oprnd1 with loop_vinfo, try to emit
26285         optional cast, negation and and stmts on the loop preheader
26286         edge instead of into the pattern def seq.
26288         PR tree-optimization/57051
26289         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
26290         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
26292 2013-05-16  Nick Clifton  <nickc@redhat.com>
26294         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
26295         (rl78_is_naked_func): New function.
26296         (rl78_expand_prologue): Skip prologue generation for naked functions.
26297         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
26298         * doc/extend.texi (naked): Add RL78 to the list of processors
26299         that supports this attribute.
26301 2013-05-16  Jeff Law  <law@redhat.com>
26303         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
26305 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
26307         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
26308         cache parameters using detect_caches_amd also for CYRIX,
26309         NSC and TM2 signatures.
26311 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
26312             Dzianis Kahanovich  <mahatma@eu.by>
26314         PR target/45359
26315         PR target/46396
26316         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26317         VIA/Centaur processors and determine their cache parameters
26318         using detect_caches_amd.
26320 2013-05-16  Teresa Johnson  <tejohnson@google.com>
26322         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
26323         (rtl_verify_edges): New function.
26324         (rtl_verify_bb_insns): Ditto.
26325         (rtl_verify_bb_pointers): Ditto.
26326         (rtl_verify_bb_insn_chain): Ditto.
26327         (rtl_verify_fallthru): Ditto.
26328         (rtl_verify_bb_layout): Ditto.
26329         (rtl_verify_flow_info_1): Outline checks into new functions.
26330         (rtl_verify_flow_info): Ditto.
26332 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
26334         * cfghooks.c (copy_bbs): Add update_dominance argument.
26335         * cfghooks.h (copy_bbs): Update prototype.
26336         * tree-cfg.c (gimple_duplicate_sese_region):
26337         Add update_dominance argument.
26338         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
26339         * tree-ssa-loop-ch.c (copy_loop_headers): Update
26340         gimple_duplicate_sese_region call.
26341         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
26342         Update copy_bbs call.
26343         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
26344         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
26346 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
26348         * tree-vectorizer.h (NUM_PATTERNS): Increment.
26349         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
26350         vect_recog_rotate_pattern.
26351         (vect_recog_rotate_pattern): New function.
26353 2013-05-16  Jason Merrill  <jason@redhat.com>
26355         * Makefile.in (LLINKER): New variable.
26356         (mostlyclean): Remove link mutex.
26357         * configure.ac: Handle --enable-link-mutex.
26358         * lock-and-run.sh: New script.
26360 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26362         PR target/19599
26363         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
26364         for NULL decl.
26366 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26368         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
26370 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
26372         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
26373         * config/arm/arm.c (next_consecutive_mem): New function.
26374         (gen_movmem_ldrd_strd): Likewise.
26375         * config/arm/arm.md (movmemqi): Update condition and code.
26376         (unaligned_loaddi, unaligned_storedi): New patterns.
26378 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26380         * config.gcc: Obsolete *-*-solaris2.9*.
26381         * doc/install.texi (Specific, *-*-solaris2*): Document it.
26383 2013-05-16  Richard Biener  <rguenther@suse.de>
26385         * passes.c (init_optimization_passes): Move pass_parallelize_loops
26386         earlier, after GRAPHITE transforms and IV canonicalization.
26388 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
26390         * omp-low.c (extract_omp_for_data): For collapsed loops,
26391         if at least one of the loops is known at compile time to
26392         iterate zero times, set count to 0.
26393         (expand_omp_regimplify_p): New function.
26394         (expand_omp_for_generic): For collapsed loops, if at least
26395         one of the loops isn't known to iterate at least once,
26396         add runtime check with setting count to 0.
26397         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
26398         For unsigned types if it isn't known at compile time that
26399         the loop will iterate at least once, add runtime check to bypass
26400         the whole loop if initial condition isn't true.
26402 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
26404         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
26406 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
26408         PR middle-end/57286
26409         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
26410         transformations to avoid an infinite loop.
26412 2013-05-16  Marek Polacek  <polacek@redhat.com>
26414         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
26416 2013-05-15  Leif Ekblad  <leif@rdos.net>
26418         * config/i386/i386.c (ix86_decompose_address): Use
26419         DEFAULT_TLS_SEG_REG to access TLS segment register.
26420         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
26421         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
26422         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
26424 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
26426         PR target/57260
26427         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
26428         sibling calls to functions that would normally be lazily bound,
26429         unless $gp is call-clobbered.
26431 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
26433         * config/i386/i386.c (ix86_option_override_internal): Update
26434         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
26435         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
26436         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
26437         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
26438         of TARGET_3DNOW.
26439         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
26441 2013-05-15  Andreas Schwab  <schwab@suse.de>
26443         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
26444         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
26445         third operand.
26447 2013-05-15  Teresa Johnson  <tejohnson@google.com>
26449         * loop-unroll.c (report_unroll_peel): Check decision before
26450         emitting unroll/peel message.
26452 2013-05-15  Teresa Johnson  <tejohnson@google.com>
26454         * function.h (has_bb_partition): New rtl_data flag.
26455         (bb_reorder_complete): Ditto.
26456         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
26457         instead of flag_reorder_blocks_and_partition.
26458         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
26459         with some enhancements.
26460         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
26461         * bb-reorder.c (connect_traces): Check for has_bb_partition
26462         instead of flag_reorder_blocks_and_partition.
26463         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
26464         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
26465         verify_hot_cold_block_grouping.
26466         (partition_hot_cold_basic_blocks): Set has_bb_partition.
26468 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26470         PR target/19599
26471         * config/arm/predicates.md (call_insn_operand): New predicate.
26472         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
26473         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
26474         if insn is not a tail call.
26475         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
26476         registers.
26477         * config/arm/arm.h (enum reg_class): New caller save register class.
26478         (REG_CLASS_NAMES): Likewise.
26479         (REG_CLASS_CONTENTS): Likewise.
26480         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
26481         without decls.
26483 2013-05-15  Richard Biener  <rguenther@suse.de>
26485         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
26486         of MSG_OPTIMIZED_LOCATIONS.
26487         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
26488         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
26489         message.
26490         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
26491         of MSG_OPTIMIZED_LOCATIONS.
26492         (execute_vect_slp): Likewise.
26493         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26494         (vect_create_cond_for_alias_checks): Likewise.
26495         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
26496         (vect_recog_widen_mult_pattern): Likewise.
26497         (vect_recog_widen_sum_pattern): Likewise.
26498         (vect_recog_over_widening_pattern): Likewise.
26499         (vect_recog_widen_shift_pattern): Likewise.
26500         (vect_recog_vector_vector_shift_pattern): Likewise.
26501         (vect_recog_divmod_pattern): Likewise.
26502         (vect_recog_mixed_size_cond_pattern): Likewise.
26503         (vect_recog_bool_pattern): Likewise.
26504         (vect_pattern_recog_1): Likewise.
26506 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26508         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
26509         non-functions to builtin_unreachable.
26510         * ipa-inline-transform.c (inline_call): Do not assert estimates were
26511         correct when new direct edges were discovered.
26513 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26515         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
26516         header, print symbol order instead of node uid, print more information
26517         about indirect edge targets.
26518         (ipa_make_edge_direct_to_target): Print symbol order instead of node
26519         uids.
26520         (ipa_make_edge_direct_to_target): Likewise.
26521         (remove_described_reference): Likewise.
26522         (propagate_controlled_uses): Likewise.
26523         (ipa_print_node_params): Also print symbol order.
26524         (ipcp_transform_function): Print symbol order instead of node uids.
26525         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
26526         (cgraph_get_create_real_symbol_node): Likewise.
26527         * ipa-cp.c (print_lattice): Likewise.
26528         (print_all_lattices): Likewise.
26529         (determine_versionability): Likewise.
26530         (initialize_node_lattices): Likewise.
26531         (estimate_local_effects): Likewise.
26532         (update_profiling_info): Likewise.
26533         (create_specialized_node): Likewise.
26534         (perhaps_add_new_callers): Likewise.
26535         (decide_about_value): Likewise.
26536         (decide_whether_version_node): Likewise.
26537         (identify_dead_nodes): Likewise.
26538         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
26539         (dump_inline_summary): Likewise.
26540         (estimate_node_size_and_time): Likewise.
26541         (inline_analyze_function): Likewise.
26542         * ipa-inline.c (report_inline_failed_reason): Likewise.
26543         (want_early_inline_function_p): Likewise.
26544         (edge_badness): Likewise.
26545         (update_edge_key): Likewise.
26546         (inline_small_functions): Likewise.  Add dumping of order to two other
26547         dumps.
26548         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
26549         instead of node uids.
26550         (propagate_pure_const): Likewise.
26551         (propagate_pure_const): Likewise.
26552         * ipa-utils.c (dump_cgraph_node_set): Likewise.
26553         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
26554         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
26555         of node uids.
26556         * tree-pretty-print.c (dump_function_header): Likewise.
26557         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
26558         Print symbol order instead of node uids.
26560 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26562         * config/s390/s390.c (s390_register_move_cost): Don't impose the
26563         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
26565 2013-05-15  Richard Biener  <rguenther@suse.de>
26567         PR tree-optimization/57275
26568         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
26569         return value for fail to do runtime alias checks for gather loads.
26571 2013-05-15  Jan Hubicka  <jh@suse.cz>
26573         PR lto/57038
26574         PR lto/47375
26575         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
26576         weakrefs are not external.
26577         (lto_symtab_merge_decls): Fix thinko when dealing with
26578         non-lto_symtab decls.
26579         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
26580         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
26581         * varpool.c (dump_varpool_node): Dump more flags.
26583 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26585         * config/i386/i386.c (processor_alias_table): Add instruction
26586         FSGSBASE for AMD bdver3 architecture.
26588 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26590         * tree.c (warn_deprecated_use): Print file:line using locus color.
26591         * diagnostic.c (diagnostic_report_current_module): Print file:line
26592         and file:line:column using locus color.
26594 2013-05-14  Mike Stump  <mikestump@comcast.net>
26596         * gdbinit.in: Add __null.
26598 2013-05-14  Mike Stump  <mikestump@comcast.net>
26600         * recog.h: Rename struct recog_data to Recog_data.
26601         * recog.c: Likewise.
26602         * reload.c (can_reload_into): Likewise.
26603         * config/picochip/picochip.c: Likewise.
26605 2013-05-14  Mike Stump  <mikestump@comcast.net>
26607         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
26609 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
26611         * resource.h (struct resources): Remove unch_memory member.
26612         (CLEAR_RESOURCE): Don't clear unch_memory.
26613         * resource.c (mark_referenced_resources): Don't set it.
26614         (mark_set_resources): Likewise.
26615         (mark_target_live_regs): Don't clear it.
26616         (init_resource_info): Likewise.
26617         * reorg.c (resource_conflicts_p): Don't compare it.
26618         (redundant_insn): Don't set it.
26620         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
26621         Remove prototypes.
26622         * emit-rtl.c (next_label): Remove unused function.
26623         (skip_consecutive_labels, link_cc0_insns): Move to ...
26624         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
26625         only place where these functions are used, and make them static.
26627 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
26629         * fold-const.c (fold_negate_expr): Handle vectors.
26630         (fold_truth_not_expr): Make it static.
26631         (fold_invert_truthvalue): New static function.
26632         (invert_truthvalue_loc): Handle vectors. Do not call
26633         fold_truth_not_expr directly.
26634         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
26635         <TRUTH_NOT_EXPR>: Do not cast to boolean.
26636         (fold_comparison): Handle vector constants.
26637         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
26638         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
26639         * tree.h (fold_truth_not_expr): Remove declaration.
26641 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
26643         * config/aarch64/aarch64-simd.md
26644         (aarch64_vcond_internal<mode>): Rename to...
26645         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
26646         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
26647         float modes. Clarify all iterator modes.
26648         (vcond<mode><mode>): Use new name for vcond expanders.
26649         (vcond<v_cmp_result><mode>): Likewise.
26650         (vcondu<mode><mode>: Likewise.
26651         * config/aarch64/iterators.md (VDQF_COND): New.
26653 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
26655         PR bootstrap/57266
26656         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
26657         variable for the shift amount. Check that we shift by non-negative
26658         amounts.
26660 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
26662         PR target/42017
26663         * config/arm/arm.h (EPILOGUE_USES): Only return true
26664         for LR_REGNUM after epilogue_completed.
26666 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
26668         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
26669         is error_mark_node.
26671 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26673         PR target/57261
26674         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
26675         and Solaris 11+/x86 with gld.
26676         * configure: Regenerate.
26678 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26680         * expmed.c (expand_shift_1): Canonicalize rotates by
26681         constant bitsize / 2 to bitsize - 1.
26682         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
26683         case ROTATERT>: Likewise.
26685         Revert:
26686         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
26688         * config/i386/i386.md (rotateinv): New code attr.
26689         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26690         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26691         roll $31, %eax, etc.
26693 2013-05-14  Richard Biener  <rguenther@suse.de>
26695         PR middle-end/57235
26696         * tree-eh.c (sink_clobbers): Give up for successors with
26697         multiple predecessors and no virtual uses.
26699 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
26701         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
26702         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
26704 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26706         PR middle-end/57251
26707         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
26708         the case when both op0 and op1 have VOIDmode.
26710 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
26712         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
26713         in multiply-accumulate mode.
26715 2013-05-13  Guozhi Wei  <carrot@google.com>
26717         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
26719 2013-05-13  Kai Tietz  <ktietz@redhat.com>
26721         PR target/56975
26722         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
26723         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
26724         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
26725         * config/i386/i386.c (ix86_option_override_internal): Likewise.
26726         (ix86_expand_prologue): Likewise.
26727         (ix86_expand_split_stack_prologue): Likewise.
26728         (legitimate_pic_address_disp_p): Likewise.
26729         (legitimize_pic_address): Likewise.
26730         (legitimize_tls_address): Likewise.
26731         (legitimize_pe_coff_symbol): Likewise.
26732         (output_pic_addr_const): Likewise.
26733         (construct_plt_address): Likewise.
26734         (ix86_expand_call): Likewise.
26735         (x86_output_mi_thunk): Likewise.
26736         (x86_function_profiler): Likewise.
26738 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
26740         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
26741         similar switch cases.
26742         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
26743         (aarch64_simd_mov_to_<mode>low): Delete.
26744         (aarch64_simd_mov_to_<mode>high): Delete.
26745         (move_lo_quad_<mode>): Add w<-r alternative.
26746         (aarch64_simd_move_hi_quad_<mode>): Likewise.
26747         (aarch64_simd_mov_from_*): Update type attribute.
26748         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
26749         statement.
26751 2013-05-13  Jan Hubicka  <jh@suse.cz>
26753         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
26754         * config/i386/i386.c (ix86_compute_frame_layout,
26755         ix86_expand_epilogue, emit_i387_cw_initialization,
26756         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
26757         ix86_local_alignment): Fix use of size/speed predicates.
26759 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
26761         PR tree-optimization/45216
26762         PR tree-optimization/57157
26763         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
26764         the (-Y) & (B - 1) variant if OP is |.
26765         * expmed.c (expand_shift_1): For rotations by const0_rtx just
26766         return shifted.  Use (-op1) & (prec - 1) as other_amount
26767         instead of prec - op1.
26769 2013-05-13  Martin Jambor  <mjambor@suse.cz>
26771         PR middle-end/42371
26772         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
26773         (ipa_constant_data): New type.
26774         (ipa_jump_func): Use ipa_constant_data to hold information about
26775         constant jump functions.
26776         (ipa_get_jf_constant): Adjust to jump function type changes.
26777         (ipa_get_jf_constant_rdesc): New function.
26778         (ipa_param_descriptor): New field controlled_uses.
26779         (ipa_get_controlled_uses): New function.
26780         (ipa_set_controlled_uses): Likewise.
26781         * ipa-ref.h (ipa_find_reference): Declare.
26782         * ipa-prop.c (ipa_cst_ref_desc): New type.
26783         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
26784         changes.
26785         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
26786         New parameter cs.  Adjust all callers.
26787         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
26788         (remove_described_reference): New function.
26789         (jfunc_rdesc_usable): Likewise.
26790         (try_make_edge_direct_simple_call): Decrement controlled use count,
26791         attempt to remove reference if it hits zero.
26792         (combine_controlled_uses_counters): New function.
26793         (propagate_controlled_uses): Likewise.
26794         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
26795         (ipa_edge_duplication_hook): Duplicate reference descriptions.
26796         (ipa_print_node_params): Print described use counter.
26797         (ipa_write_jump_function): Adjust to jump function type changes.
26798         (ipa_read_jump_function): New parameter CS, pass it to
26799         ipa_set_jf_constant.  Adjust caller.
26800         (ipa_write_node_info): Stream controlled use count
26801         (ipa_read_node_info): Likewise.
26802         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
26803         asserting.
26804         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
26805         count.  Remove cloning-added reference if it reaches zero.
26806         * ipa-ref.c (ipa_find_reference): New function.
26808 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26810         * config/i386/i386.c (processor_target_table): Modified default
26811         alignment values for AMD BD and BT architectures.
26813 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
26815         * tree-vect-generic.c (uniform_vector_p): Move ...
26816         * tree.c (uniform_vector_p): ... here.
26817         * tree.h (uniform_vector_p): Declare it.
26818         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
26819         into a scalar.
26821 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
26823         PR tree-optimization/57230
26824         * tree-ssa-strlen.c (handle_char_store): Record length for
26825         array store from STRING_CST.
26827         PR tree-optimization/57230
26828         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
26829         check.
26831 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
26833         * config/epiphany/epiphany.c (epiphany_init): Check size of
26834         NUM_MODES_FOR_MODE_SWITCHING.
26835         (epiphany_expand_prologue):
26836         Remove CONFIG_REGNUM initial value handling code.
26837         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
26838         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
26839         (emit_set_fp_mode, epiphany_mode_after): Likewise.
26840         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
26841         Don't return 1 for FP_MODE_NONE.
26842         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
26843         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
26844         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
26845         * config/epiphany/epiphany.md (save_config): New pattern.
26847 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
26849         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
26851 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
26853         * config/i386/i386.md (memory): Handle sseishft1.
26854         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
26855         (*vec_extractv2di_1): Ditto.
26857 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
26859         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
26860         saved registers.
26862 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26864         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
26865         Add mthumb/march=armv7-a multilib.
26866         Add mthumb/march=armv7-r multilib.
26867         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
26869 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
26871         * config/v850/t-rtems: Add more multilibs.
26873 2013-05-10  Richard Biener  <rguenther@suse.de>
26875         PR tree-optimization/57214
26876         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
26877         not propagate from SSA names that occur in abnormal PHI nodes.
26879 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
26881         * stor-layout.c (element_precision): New function.
26882         * machmode.h (element_precision): Declare it.
26883         * tree.c (build_minus_one_cst): New function.
26884         (element_precision): Likewise.
26885         * tree.h (build_minus_one_cst): Declare new function.
26886         (element_precision): Likewise.
26887         * fold-const.c (operand_equal_p): Use element_precision.
26888         (fold_binary_loc): Handle vector types.
26889         * convert.c (convert_to_integer): Use element_precision.
26890         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
26891         separately.
26893 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
26895         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
26896         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
26897         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
26898         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26899         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
26900         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
26901         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
26902         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26903         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
26904         (Uuw8): New constraints.
26905         (Usb4): Move into alphabetical order.
26906         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
26907         (sd8_operand, ub8_operand, uw8_operand): New predicates.
26908         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
26909         previously unnamed patterns.
26910         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
26911         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
26912         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
26913         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
26914         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
26915         of specific lengths.
26917 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
26919         * config/i386/i386.md (rotateinv): New code attr.
26920         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26921         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26922         roll $31, %eax, etc.
26924         PR tree-optimization/45216
26925         PR tree-optimization/57157
26926         * tree-ssa-forwprop.c (simplify_rotate): New function.
26927         (ssa_forward_propagate_and_combine): Call it.
26929 2013-05-10  Richard Biener  <rguenther@suse.de>
26931         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
26932         disable peeling when we version for aliasing.
26933         (vector_alignment_reachable_p): Honor explicit user alignment.
26934         (vect_supportable_dr_alignment): Likewise.
26935         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
26936         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
26937         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
26938         then peeling to arrange for the cost-model check to come first.
26940 2013-05-10  Alan Modra  <amodra@gmail.com>
26942         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
26943         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
26944         * configure: Regenerate.
26946 2013-05-10  Alan Modra  <amodra@gmail.com>
26948         PR target/55033
26949         * varasm.c (default_elf_select_section): Move !DECL_P check..
26950         (get_named_section): ..to here before calling get_section_name.
26951         Adjust assertion.
26952         (default_section_type_flags): Add DECL_P check.
26953         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
26954         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
26956 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
26958         * config/epiphany/epiphany.c (epiphany_expand_prologue):
26959         When using gen_stack_adjust_str with a register offset, add a
26960         REG_FRAME_RELATED_EXPR note.
26962 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
26964         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
26965         (*vec_extractv4si_zext_mem): Ditto.
26966         (*vec_extractv2di): Add 0->x and x->x alternatives.
26967         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
26968         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
26970 2013-05-09  Jason Merrill  <jason@redhat.com>
26972         N3639 C++1y VLA support
26973         * gimplify.c (gimplify_vla_decl): Don't touch an existing
26974         DECL_VALUE_EXPR.
26976         * tree.c (build_constructor_va): New.
26977         * tree.h: Declare it.
26979 2013-05-09  Martin Jambor  <mjambor@suse.cz>
26981         PR lto/57084
26982         * gimple-fold.c (canonicalize_constructor_val): Call
26983         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
26985 2013-05-09  Jan Hubicka  <jh@suse.cz>
26986             Richard Biener  <rguenther@suse.de>
26988         PR lto/54095
26989         * symtab.c (symtab_make_decl_local): Do not add private names.
26991 2013-05-09  Jan Hubicka  <jh@suse.cz>
26993         PR lto/54095
26994         * symtab.c (insert_to_assembler_name_hash): Handle clones.
26995         (unlink_from_assembler_name_hash): Likewise.
26996         (symtab_prevail_in_asm_name_hash, symtab_register_node,
26997         symtab_unregister_node, symtab_initialize_asm_name_hash,
26998         change_decl_assembler_name): Update.
27000 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
27002         * config/aarch64/aarch64.md: New movtf split.
27003         (*movtf_aarch64): Update.
27004         (aarch64_movdi_tilow): Handle TF modes and rename to
27005         aarch64_movdi_<mode>low.
27006         (aarch64_movdi_tihigh): Handle TF modes and rename to
27007         aarch64_movdi_<mode>high
27008         (aarch64_movtihigh_di): Handle TF modes and rename to
27009         aarch64_mov<mode>high_di
27010         (aarch64_movtilow_di): Handle TF modes and rename to
27011         aarch64_mov<mode>low_di
27012         (aarch64_movtilow_tilow): Remove spurious whitespace.
27013         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
27014         splits.
27015         (aarch64_print_operand): Update.
27017 2013-05-09  Alan Modra  <amodra@gmail.com>
27019         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
27020         powerpc64le.
27021         * configure: Regenerate.
27023 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
27025         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
27026         splitter preparation statements.
27027         * config/i386/sse.md (*vec_extract* splitters): Ditto.
27028         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
27029         adjust_address_nv.
27031 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27033         * gimple-ssa-strength-reduction.c (count_candidates): Change
27034         return value to int.
27035         (analyze_candidates_and_replace): Change type of length to int.
27037 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
27039         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
27040         (*vec_extract<mode>): Use VI12_128 mode iterator.
27041         (*vec_extract<mode>_mem): Ditto.
27042         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
27043         attribute.
27045 2013-05-08  Diego Novillo  <dnovillo@google.com>
27047         PR bootstrap/54659
27049         Revert:
27050         2012-08-17  Diego Novillo  <dnovillo@google.com>
27052         PR bootstrap/54281
27053         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
27054         * config.in: Regenerate.
27055         * configure: Regenerate.
27056         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
27058 2013-05-08  Jan Hubicka  <jh@suse.cz>
27060         PR lto/54095
27061         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
27062         * cgraph.h (symtab_node_base): Add unique_name.
27063         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
27064         input_overwrite_node, input_varpool_node): Stream unique_name.
27065         * cgraphclones.c (cgraph_create_virtual_clone,
27066         cgraph_function_versioning): Set unique_name.
27067         * ipa.c (function_and_variable_visibility): Set unique_name.
27069 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27071         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
27072         (alloc_cand_and_find_basis): Restrict conditional candidate
27073         processing to CAND_MULTs.
27075 2013-05-08  Jan Hubicka  <jh@suse.cz>
27077         PR lto/54095
27078         lto-symtab.c (lto_symtab_symbol_p): New function.
27079         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
27080         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
27081         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
27082         Skip static symbols.
27084 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
27086         PR tree-optimization/57200
27087         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
27088         Only call inform if the preceding warning_at returns true.
27090 2013-05-07  Han Shen  <shenhan@google.com>
27092         * cfgexpand.c (record_or_union_type_has_array_p): New function.
27093         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
27094         * common.opt (fstack-protector-strong): New option.
27095         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
27096         * doc/invoke.texi (Optimization Options): Document
27097         "-fstack-protector-strong".
27098         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
27100 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
27102         * config/mips/mips.c (mips_machine_reorg2): Return 0.
27104 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
27106         * ira.c (update_equiv_regs): Add insn having equiv memory even if
27107         it is not lhs of the insn.
27108         (setup_reg_equiv): Remove insn having equiv memory which it is not
27109         lhs of the insn.
27110         * lra-constraints.c (process_address): Try to improve generation
27111         code for address base + disp.
27112         (lra_constraints): Make correct the code for checking insn setting
27113         up backward equivalence.  Remove insn only if it is in the init
27114         insn list.
27115         * lra-eliminations.c (update_reg_eliminate): Change return value.
27116         (lra_eliminate): Use the result.
27118 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
27120         * config/i386/sse.md (ssescalarnummask): New mode attribute.
27121         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
27122         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
27123         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
27124         register target operands.
27125         (*vec_extractv8hi_sse2): New pattern.
27126         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
27127         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
27128         (*vec_extract<mode>_mem): New insn and split pattern.
27130 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
27132         * config/arm/arm.c (arm_asan_shadow_offset): New function.
27133         (TARGET_ASAN_SHADOW_OFFSET): Define.
27134         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
27135         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
27137 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27139         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
27140         (incr_vec_index): Return -1 if increment not found.
27141         (create_add_on_incoming_edge): Assert if increment not found.
27142         (record_increment): Limit number of increments recorded.
27143         (all_phi_incrs_profitable): Return false if an increment not found.
27144         (replace_profitable_candidates): Don't process increments that were
27145         not recorded.
27146         (analyze_candidates_and_replace): Limit size of incr_vec.
27148 2013-05-07  Richard Biener  <rguenther@suse.de>
27150         * calls.c (special_function_p): setjmp-like functions are leaf.
27151         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
27152         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
27154 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
27156         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
27157         (aarch64_simd_mov<mode>): New expander.
27158         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
27159         (aarch64_simd_mov_to_<mode>high): Likewise.
27160         (aarch64_simd_mov_from_<mode>low): Likewise.
27161         (aarch64_simd_mov_from_<mode>high): Likewise.
27162         (aarch64_dup_lane<mode>): Update.
27163         (aarch64_dup_lanedi): New instruction pattern.
27164         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
27165         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
27167 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27169         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
27170         (replace_mult_candidate): Remove unnecessary argument; remove
27171         unnecessary parameter from call to introduce_cast_before_cand.
27172         (replace_unconditional_candidate): Remove unnecessary parameter
27173         from call to replace_mult_candidate.
27174         (replace_conditional_candidate): Likewise.
27175         (insert_initializers): Use make_temp_ssa_name.
27176         (introduce_cast_before_cand): Remove unnecessary argument; use
27177         make_temp_ssa_name.
27178         (replace_one_candidate): Remove unnecessary argument; remove
27179         unnecessary parameter from calls to introduce_cast_before_cand.
27180         (replace_profitable_candidates): Remove unnecessary parameters
27181         from calls to replace_one_candidate.
27183 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27185         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
27186         phi def as possibly hiding a basis for a CAND_ADD whose operands
27187         have been commuted in the analysis.
27188         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
27190 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
27192         * config/aarch64/aarch64.md
27193         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
27194         shift value between 0-4.
27196 2013-05-07  Richard Biener  <rguenther@suse.de>
27198         * double-int.h (rshift): New overload.
27199         * double-int.c (rshift): New function.
27200         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
27201         (create_reference_ops_from_ref): Remove.
27202         (vn_reference_insert): Use shared ops for constructing the
27203         reference and copy it.
27205 2013-05-07  Richard Biener  <rguenther@suse.de>
27207         PR middle-end/57190
27208         * tree-eh.c (sink_clobbers): Properly propagate
27209         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
27211 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
27213         PR tree-optimization/57149
27214         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
27215         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
27216         collect_phi_def_edges, execute_late_warn_uninitialized): Use
27217         uninit_undefined_value_p instead of ssa_undefined_value_p.
27219         PR debug/57184
27220         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
27221         for modifier == EXPAND_INITIALIZER.
27223 2013-05-07  Anton Blanchard  <anton@samba.org>
27225         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
27226         for powerpc64 little endian.
27227         * configure: Regenerate.
27229 2013-05-06  Graham Stott  <grahams@btinternet.com>
27231         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
27232         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
27233         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
27234         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
27236 2013-05-06  Graham Stott  <grahams@btinternet.com>
27238         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
27239         codes which allow non-lvalues.
27241 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
27243         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
27244         components are all 1s.
27245         (integer_minus_onep): New function.
27246         * tree.h (integer_minus_onep): Declare it.
27247         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
27248         integer_minus_onep instead of integer_all_onesp.
27250 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27252         PR target/52933
27253         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
27254         variations of these patterns.
27256 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
27258         * config/i386/i386.md (isa): Add x64_sse4 member.
27259         (enabled): Handle x64_sse4.
27260         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
27261         instruction for 64bit SSE4_1 targets.  Update insn attributes.
27262         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
27263         instruction for SSE4_1 targets.  Update insn attributes.
27264         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27265         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
27266         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
27267         const_1 selector.
27268         (*vec_extractv4si): Rename from *sse4_1_pextrd.
27269         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
27270         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
27272 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27274         PR target/57108
27275         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
27277 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
27279         * final.c (do_assembler_dialects): Don't handle curly braces and
27280         vertical bar escaped by % as dialect delimiters.
27281         (output_asm_insn): Print curly braces and vertical bar if escaped
27282         by % and ASSEMBLER_DIALECT defined.
27283         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
27284         * doc/tm.texi: Regenerated.
27286 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
27288         * config/mips/mips.c: Include tree-pass.h.
27289         (mips_reorg): Split in pre- and post-dbr_schedule parts.
27290         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
27291         (pass_mips_machine_reorg2): New machine specific pass.
27292         (insert_pass_mips_machine_reorg2): New pass plugin definition.
27293         (mips_option_override): Register the new pass.
27294         * rtl.h (cleanup_barriers): Remove prototype.
27295         (dbr_schedule): Likewise.
27296         * jump.c (cleanup_barriers): Make static.
27297         * reorg.c (dbr_schedule): Likewise.
27299 2013-05-06  Richard Biener  <rguenther@suse.de>
27301         PR tree-optimization/57185
27302         * tree-parloops.c (add_field_for_reduction): Handle anonymous
27303         SSA names properly.
27305 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
27307         PR target/57106
27308         * config/i386/i386.c (add_parameter_dependencies): Add dependence
27309         between "first_arg" and "insn", not "last" and "insn".
27311 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27313         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
27314         (find_candidates_in_block): Re-enable slsr_process_phi.
27315         (create_phi_basis): Fix double counting of candidate adjustment.
27317 2013-05-06  Richard Biener  <rguenther@suse.de>
27319         PR middle-end/57147
27320         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
27321         the edge is also fallthru, preserve it and just clear the
27322         abnormal flag.
27323         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
27324         also complex, preserve that and just clear the fallthru flag.
27325         * tree-inline.c (update_ssa_across_abnormal_edges): Also
27326         update virtual operands.
27328 2013-05-06  Alan Modra  <amodra@gmail.com>
27330         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
27331         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
27332         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
27333         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
27334         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27335         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
27337 2013-05-06  Alan Modra  <amodra@gmail.com>
27339         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
27340         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
27341         (DEFAULT_ASM_ENDIAN): Define.
27342         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
27343         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
27344         Update -K PIC clause from sysv4.h.
27345         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
27346         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
27348 2013-05-06  Alan Modra  <amodra@gmail.com>
27350         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
27351         twice for little-endian.
27352         (ashrdi3_no_power, ashrdi3): Support little-endian.
27354 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
27356         PR target/55303
27357         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
27358         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
27359         related expanders.
27360         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
27361         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
27362         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
27363         New predicates.
27365 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
27366             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27368         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
27369         * config/pa/pa.opt: Make mbig-switch a no-op.
27370         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
27371         (CASE_VECTOR_MODE): Always return SImode.
27372         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
27373         for the !TARGET_BIG_SWITCH case.
27374         * config/pa/pa-linux.h: Likewise.
27375         * config/pa/pa-openbsd.h: Likewise.
27376         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
27377         * config/pa/pa.md (short_jump): Remove define_insn.
27378         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
27379         (casesi0): Remove define_insn.
27380         (type): Remove btable_branch.
27381         (pa_combine_type): Likewise.
27382         (in_nullified_branch_delay): Likewise.
27383         (in_call_delay): Likewise.
27384         (define_delay): Likewise.
27385         (define_insn_reservation "Z3"): Likewise.
27386         (define_insn_reservation "Z4"): Likewise.
27387         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
27388         (pa_adjust_insn_length): Remove adjustment for btable branches.
27389         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
27390         and mno-big-switch
27392 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
27394         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
27395         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
27396         Add m->r,x alternatives.
27397         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
27398         splitters using SWI48x mode iterator.
27399         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
27400         TARGET_64BIT.  Add m->x alternative.
27401         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
27402         Add o->x alternative.  Enable for TARGET_SSE.
27403         (sse_storeq): Remove expander.
27404         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
27405         with memory input operand.
27406         (*vec_extractv2di_1 splitter): New.
27407         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
27408         * config/i386/i386.md (ssevecmodelower): New mode attribute.
27410 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
27412         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
27413         (INT_LOWPART): Delete.
27414         (extract_MB): Adjust.
27415         (extract_ME): Adjust.
27416         (print_operand): Adjust.
27418 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
27420         * config/rs6000/predicates.md (reg_or_add_cint_operand,
27421         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27422         (reg_or_logical_cint_operand, easy_fp_constant,
27423         logical_const_operand): Delete "CONST_DOUBLE" case.
27424         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
27425         "HOST_BITS_PER_WIDE_INT == 64" test.
27426         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
27427         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
27428         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
27429         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
27430         test.
27431         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
27432         CONST_DOUBLE DImode/VOIDmode case.
27433         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
27434         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
27435         CONST_DOUBLE VOIDmode case.
27436         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
27437         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
27438         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
27439         Delete CONST_DOUBLE case.
27440         (splitters for mov FMOVE64 const_double): Delete
27441         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
27442         "HOST_BITS_PER_WIDE_INT >= 64" test.
27443         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
27444         case.
27445         (mov DI const_double): Delete.
27447 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
27449         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
27450         on op shows all bits zero in mode of a lowpart subreg, return zero.
27452 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
27454         PR target/57150
27455         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
27456         to save TFmode registers and DImode to save TImode registers for
27457         caller save operations.
27458         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
27459         mark being partially clobbered since they only use the first
27460         double word.
27462         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
27463         and TDmode only use the upper 64-bits of each VSX register.
27465 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27467         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
27468         (find_candidates_in_block): Disable slsr_process_phi.
27470 2013-05-03  Guozhi Wei  <carrot@google.com>
27472         * coverage.c (coverage_obj_init): Move the construction of gcov
27473         constructor to ...
27474         (build_init_ctor): ... here.
27476 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27478         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
27479         (slsr_cand_d): Redefine def_phi.
27480         (stride_status, phi_adjust_status, count_phis_status): New enums.
27481         (find_phi_def): New.
27482         (find_basis_for_base_expr): New.
27483         (find_basis_for_candidate): Handle hidden bases.
27484         (alloc_cand_and_find_basis): Handle phi candidates.
27485         (slsr_process_phi): New.
27486         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
27487         (create_mul_imm_cand): Likewise.
27488         (create_add_ssa_cand): Exclude phi base candidates.
27489         (create_add_imm_cand): Likewise.
27490         (slsr_process_cast): Likewise.
27491         (slsr_process_copy): Likewise.
27492         (find_candidates_in_block): Handle phi candidates.
27493         (dump_candidate): Likewise.
27494         (unconditional_cands): Delete.
27495         (unconditional_cands_with_known_stride_p): Delete.
27496         (phi_dependent_cand_p): New.
27497         (cand_increment): Handle phi-dependent candidates.
27498         (replace_dependent): Delete.
27499         (replace_mult_candidate): New.
27500         (replace_unconditional_candidate): New.
27501         (incr_vec_index): Move to avoid forward reference.
27502         (create_add_on_incoming_edge): New.
27503         (create_phi_basis): New.
27504         (replace_dependents): Delete.
27505         (replace_conditional_candidate): New.
27506         (phi_add_costs): New.
27507         (replace_uncond_cands_and_profitable_phis): New.
27508         (record_increment): Handle phi adjustments.
27509         (record_phi_increments): New.
27510         (record_increments): Handle phi adjustments.
27511         (phi_incr_cost): New.
27512         (lowest_cost_path): Handle phis.
27513         (total_savings): Likewise.
27514         (analyze_increments): Likewise.
27515         (ncd_with_phi): New.
27516         (ncd_of_cand_and_phis): New.
27517         (nearest_common_dominator_for_cands): Handle phi increments.
27518         (all_phi_incrs_profitable): New.
27519         (replace_profitable_candidates): Handle phi-dependent candidates.
27520         (analyze_candidates_and_replace): Likewise.
27522 2013-05-03  Teresa Johnson  <tejohnson@google.com>
27524         PR bootstrap/57154
27525         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
27526         do not exceed REG_BR_PROB_BASE.
27528 2013-05-03  Jeff Law  <law@redhat.com>
27530         PR tree-optimization/57144
27531         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
27532         operand of the condition will bit into the new type when eliminating
27533         a cast feeding a condition.
27535 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
27537         PR rtl-optimization/57130
27538         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
27539         of COMPARE as in_code to the recursive call if needed.
27541 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
27543         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
27544         (enabled): Handle new members.
27545         * config/i386/sse.md (*vec_concatv2si): Merge from
27546         *vec_concatv2si_sse2 and vec_concatv2si_sse.
27547         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
27549 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
27551         PR tree-optimization/57027
27552         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
27553         for fnms opportunity, check we got the prerequisite kind
27554         of tree / gimple before using accessor functions.
27556 2013-05-03  Richard Biener  <rguenther@suse.de>
27558         * double-int.h (lshift): New overload without precision
27559         and arith argument.
27560         (operator *=, operator +=, operator -=): Move ...
27561         * double-int.c (operator *=, operator +=, operator -=): ... here
27562         and implement more efficiently.
27563         (mul_double_with_sign): Remove.
27564         (lshift_double): Adjust to take unsinged shift argument, push
27565         dispatching code to callers.
27566         (mul_double_wide_with_sign): Add early out for callers that
27567         are not interested in high parts or overflow.
27568         (lshift): New function.
27569         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
27570         dispatch code here.
27571         (lrotate, rrotate): Use logical shifts.
27572         * expr.c (get_inner_reference): Use lshift.
27573         * fixed-value.c (do_fixed_divide): Likewise.
27574         * tree-dfa.c (get_ref_base_and_extent): Likewise.
27575         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27576         (indirect_refs_may_alias_p): Likewise.
27577         (stmt_kills_ref_p_1): Likewise.
27579 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
27581         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
27583 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
27585         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
27586         scalar form of FABD instruction.
27588 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
27590         * lra-constraints.c (process_alt_operands): Add checking alt
27591         number to choose the best alternative.
27593 2013-05-02  Richard Biener  <rguenther@suse.de>
27595         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
27596         bitmap and its handling.
27597         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
27599 2013-05-02  Richard Biener  <rguenther@suse.de>
27601         PR middle-end/57140
27602         * tree-inline.c (copy_loops): Properly handle removed loops.
27603         (copy_cfg_body): Mark destination loops for fixup if source
27604         loops needed fixup.
27606 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
27608         PR target/56732
27609         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
27610         generating simple_return for naked functions.
27612 2013-05-02  Martin Jambor  <mjambor@suse.cz>
27614         PR middle-end/56988
27615         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
27616         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
27617         flags match.
27618         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
27619         ipa_agg_replacement_value structures.
27620         (known_aggs_to_agg_replacement_list): Likewise.
27621         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
27622         (read_agg_replacement_chain): Likewise.
27623         (ipcp_transform_function): Also check that by_ref flags match.
27625 2013-05-02  Richard Biener  <rguenther@suse.de>
27627         * graphds.h (struct graph): Add obstack member.
27628         * graphds.c (new_graph): Initialize obstack and allocate
27629         vertices from it.
27630         (add_edge): Allocate edge from the obstack.
27631         (free_graph): Free the obstack instead of all edges and vertices.
27633 2013-05-02  Teresa Johnson  <tejohnson@google.com>
27635         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
27636         divides.
27637         * cfg.c (update_bb_profile_for_threading): Ditto.
27638         * tree-inline.c (copy_bb): Ditto.
27639         (copy_edges_for_bb): Ditto.
27640         (initialize_cfun): Ditto.
27641         (copy_cfg_body): Ditto.
27642         (expand_call_inline): Ditto.
27643         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
27644         (estimate_node_size_and_time): Ditto.
27645         (inline_merge_summary): Ditto.
27646         * cgraphclones.c (cgraph_clone_edge): Ditto.
27647         (cgraph_clone_node): Ditto.
27648         * sched-rgn.c (compute_dom_prob_ps): Ditto.
27649         (compute_trg_info): Ditto.
27651 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
27653         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
27654         S reg when fp attribute set.
27655         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
27657 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
27659         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
27660         New pattern.
27661         (*and_one_cmplsi3_compare0_uxtw): Likewise.
27662         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
27663         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
27665 2013-05-02  Richard Biener  <rguenther@suse.de>
27667         * tree-scalar-evolution.c (scev_info_hasher): Remove.
27668         (struct instantiate_cache_entry): New type.
27669         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
27670         (struct instantiate_cache_type): New type.
27671         (set_instantiated_value, get_instantiated_value): Remove.
27672         (get_instantiated_value_entry): New function.
27673         (instantiate_scev_name): Use the new cache and adjust.
27674         (instantiate_scev_poly): Adjust.
27675         (instantiate_scev_binary): Likewise.
27676         (instantiate_array_ref): Likewise.
27677         (instantiate_scev_convert): Likewise.
27678         (instantiate_scev_not): Likewise.
27679         (instantiate_scev_3): Likewise.
27680         (instantiate_scev_2): Likewise.
27681         (instantiate_scev_r): Likewise.
27682         (instantiate_scev): Likewise.
27683         (resolve_mixers): Likewise.
27685 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
27687         PR target/57091
27688         * lra-constraints.c (best_small_class_operands_num): Remove.
27689         (process_alt_operands): Remove small_class_operands_num.  Take
27690         small classes operands into losers and only if the operand is not
27691         matched.  Modify debugging output.
27692         (curr_insn_transform): Remove best_small_class_operands_num.
27693         Print insn name.
27695 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27697         * config/aarch64/aarch64-builtins.c
27698         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
27699         * config/aarch64/aarch64-simd-builtins.def
27700         (reduc_splus_): Add new modes.
27701         (reduc_uplus_): New.
27702         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
27703         (reduc_uplus_v4sf): Likewise.
27704         (reduc_splus_v4sf): Likewise.
27705         (aarch64_addv<mode>): Likewise.
27706         (reduc_uplus_<mode>): Likewise.
27707         (reduc_splus_<mode>): Likewise.
27708         (aarch64_addvv2di): Likewise.
27709         (reduc_uplus_v2di): Likewise.
27710         (reduc_splus_v2di): Likewise.
27711         (aarch64_addvv2si): Likewise.
27712         (reduc_uplus_v2si): Likewise.
27713         (reduc_splus_v2si): Likewise.
27714         (reduc_<sur>plus_<mode>): New.
27715         (reduc_<sur>plus_v2di): Likewise.
27716         (reduc_<sur>plus_v2si): Likewise.
27717         (reduc_<sur>plus_v4sf): Likewise.
27718         (aarch64_addpv4sf): Likewise.
27719         * config/aarch64/arm_neon.h
27720         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
27721         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
27722         add UNSPEC_SADDV, UNSPEC_UADDV.
27723         (SUADDV): New.
27724         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
27726 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27728         * config/aarch64/arm_neon.h
27729         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
27731 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27733         * config/aarch64/aarch64-builtins
27734         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
27736 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27738         * config/aarch64/aarch64-simd-builtins.def
27739         (reduc_smax_): New.
27740         (reduc_smin_): Likewise.
27741         (reduc_umax_): Likewise.
27742         (reduc_umin_): Likewise.
27743         (reduc_smax_nan_): Likewise.
27744         (reduc_smin_nan_): Likewise.
27745         (fmax): Remove.
27746         (fmin): Likewise.
27747         (smax): Update for V2SF, V4SF and V2DF modes.
27748         (smin): Likewise.
27749         (smax_nan): New.
27750         (smin_nan): Likewise.
27751         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
27752         (<su><maxmin><mode>3): ...This, refactor.
27753         (s<maxmin><mode>3): New.
27754         (<maxmin_uns><mode>3): Likewise.
27755         (reduc_<maxmin_uns>_<mode>): Refactor.
27756         (reduc_<maxmin_uns>_v4sf): Likewise.
27757         (reduc_<maxmin_uns>_v2si): Likewise.
27758         (aarch64_<fmaxmin><mode>: Remove.
27759         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
27760         new builtin names.
27761         (vmin<q>_f<32,64>): Likewise.
27762         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27763         (FMAXMIN): New.
27764         (su): Add mappings for smax, smin, umax, umin.
27765         (maxmin): New.
27766         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27767         (FMAXMIN): Rename as...
27768         (FMAXMIN_UNS): ...This.
27769         (maxminv): Remove.
27770         (fmaxminv): Likewise.
27771         (fmaxmin): Likewise.
27772         (maxmin_uns): New.
27773         (maxmin_uns_op): Likewise.
27775 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27777         * config/aarch64/arm_neon.h
27778         (vac<ge, gt><sd>_f<32, 64>): Rename to...
27779         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
27780         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
27782 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27784         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
27785         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
27787 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27789         * config/aarch64/aarch64-simd.md
27790         (vcond<mode>_internal): Handle special cases for constant masks.
27791         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
27792         (vcondu<mode><mode>): Likewise.
27793         (vcond<v_cmp_result><mode>): New.
27795 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27797         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
27798         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
27799         * config/aarch64/aarch64-simd-builtins.def
27800         (cmeq): Update to BUILTIN_VALLDI.
27801         (cmgt): Likewise.
27802         (cmge): Likewise.
27803         (cmle): Likewise.
27804         (cmlt): Likewise.
27805         * config/aarch64/arm_neon.h
27806         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
27807         to builtins or C as appropriate.
27809 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27811         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
27812         (cmgeu): ...This.
27813         (cmhi): Rename to...
27814         (cmgtu): ...This.
27815         * config/aarch64/aarch64-simd.md
27816         (simd_mode): Add SF.
27817         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
27818         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
27819         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
27820         (cstore<mode>_neg): ...This.
27821         * config/aarch64/iterators.md
27822         (VALLF): new.
27823         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
27824         (COMPARISONS): New.
27825         (UCOMPARISONS): Likewise.
27826         (optab): Add missing comparisons.
27827         (n_optab): New.
27828         (cmp_1): Likewise.
27829         (cmp_2): Likewise.
27830         (CMP): Likewise.
27831         (cmp): Remove.
27832         (VCMP_S): Likewise.
27833         (VCMP_U): Likewise.
27834         (V_cmp_result): Add DF, SF modes.
27835         (v_cmp_result): Likewise.
27836         (v): Likewise.
27837         (vmtype): Likewise.
27838         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
27840 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
27842         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
27843         define_insn to define_insn_and_split.
27844         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
27845         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
27846         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
27847         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
27848         (thumb2_negscc): Likewise.
27850 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
27852         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
27854 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
27856         * config/arm/thumb2.md: Remove trailing whitespaces.
27858 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27860         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
27861         Use gen_int_mode rather than GEN_INT.
27863 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
27865         * value-prof.c (stream_in_histogram_value): Remove the strayed
27866         debug_gimple_stmt.
27868 2013-04-30  Richard Biener  <rguenther@suse.de>
27870         PR middle-end/57122
27871         * cfghooks.c (split_edge): Properly check for the loop latch edge.
27873 2013-04-30  Richard Biener  <rguenther@suse.de>
27875         PR middle-end/57107
27876         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
27878 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
27880         PR rtl-optimization/56957
27881         PR rtl-optimization/57105
27882         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
27883         variable.  Use just INSN_UID for determining whether an insn
27884         should be only disconnected from the insn stream.
27885         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
27887 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
27889         PR tree-optimization/57104
27890         * tsan.c (instrument_expr): Don't instrument accesses to
27891         DECL_HARD_REGISTER VAR_DECLs.
27893 2013-04-30  Richard Biener  <rguenther@suse.de>
27895         * function.h (loops_for_fn): New inline function.
27896         (set_loops_for_fn): Likewise.
27897         * cfgloop.h (place_new_loop): Add struct function parameter.
27898         (get_loop): Likewise.
27899         (get_loops): Likewise.
27900         (number_of_loops): Likewise.
27901         (fel_next): Adjust.
27902         (fel_init): Likewise.
27903         * cfg.c (get_loop_copy): Adjust.
27904         * cfgloop.c (flow_loops_dump): Likewise.
27905         (record_loop_exits): Likewise.
27906         (verify_loop_structure): Likewise.
27907         * cfgloopanal.c (mark_irreducible_loops): Likewise.
27908         (estimate_reg_pressure_cost): Likewise.
27909         (mark_loop_exit_edges): Likewise.
27910         * cfgloopmanip.c (place_new_loop): Likewise.
27911         (add_loop): Likewise.
27912         (duplicate_loop): Likewise.
27913         * graph.c (draw_cfg_nodes): Likewise.
27914         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
27915         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
27916         (extract_affine_chrec): Likewise.
27917         (build_scop_iteration_domain): Likewise.
27918         * graphite.c (graphite_initialize): Likewise.
27919         * ira-build.c (create_loop_tree_nodes): Likewise.
27920         (more_one_region_p): Likewise.
27921         (rebuild_regno_allocno_maps): Likewise.
27922         (mark_loops_for_removal): Likewise.
27923         (mark_all_loops_for_removal): Likewise.
27924         (remove_unnecessary_regions): Likewise.
27925         (ira_build): Likewise.
27926         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
27927         * loop-init.c (fix_loop_structure): Likewise.
27928         (gate_rtl_move_loop_invariants): Likewise.
27929         (gate_rtl_unswitch): Likewise.
27930         (gate_rtl_unroll_and_peel_loops): Likewise.
27931         (rtl_doloop): Likewise.
27932         * lto-streamer-in.c (input_cfg): Likewise.
27933         * lto-streamer-out.c (output_cfg): Likewise.
27934         * modulo-sched.c (sms_schedule): Likewise.
27935         * predict.c (tree_estimate_probability): Likewise.
27936         (tree_estimate_probability_driver): Likewise.
27937         (estimate_loops): Likewise.
27938         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
27939         (move_sese_region_to_fn): Likewise.
27940         (debug_loop_num): Likewise.
27941         * tree-chrec.c (chrec_evaluate): Likewise.
27942         (hide_evolution_in_other_loops_than_loop): Likewise.
27943         (chrec_component_in_loop_num): Likewise.
27944         (reset_evolution_in_loop): Likewise.
27945         (evolution_function_is_invariant_rec_p): Likewise.
27946         * tree-if-conv.c (main_tree_if_conversion): Likewise.
27947         * tree-inline.c (copy_loops): Likewise.
27948         (copy_cfg_body): Likewise.
27949         (tree_function_versioning): Likewise.
27950         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
27951         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
27952         Likewise.
27953         (add_to_evolution_1): Likewise.
27954         (scev_const_prop): Likewise.
27955         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
27956         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
27957         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
27958         (tree_ssa_lim_initialize): Likewise.
27959         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
27960         (verify_loop_closed_ssa): Likewise.
27961         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
27962         (tree_ssa_loop_im): Likewise.
27963         (tree_ssa_loop_unswitch): Likewise.
27964         (tree_vectorize): Likewise.
27965         (check_data_deps): Likewise.
27966         (tree_ssa_loop_ivcanon): Likewise.
27967         (tree_ssa_loop_bounds): Likewise.
27968         (tree_complete_unroll): Likewise.
27969         (tree_complete_unroll_inner): Likewise.
27970         (tree_parallelize_loops): Likewise.
27971         (tree_ssa_loop_prefetch): Likewise.
27972         (tree_ssa_loop_ivopts): Likewise.
27973         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
27974         * tree-vectorizer.c (vectorize_loops): Likewise.
27976 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
27978         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
27979         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
27980         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
27981         with EABI_LINK_SPEC.
27983 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
27985         PR target/44578
27986         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
27987         alternative.
27989 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
27991         PR target/57097
27992         * lra-constraints.c (process_alt_operands): Discourage a bit more
27993         using memory for pseudos.  Print cost dump for alternatives.
27994         Modify cost values for conflicts with early clobbers.
27995         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
27997 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
27999         PR target/57098
28000         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
28002 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
28004         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
28005         from/to S register.
28006         (movdi_aarch64): Support LDR/STR from/to D register.
28008 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
28010         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
28011         or higher by default.
28013 2013-04-29  Richard Biener  <rguenther@suse.de>
28015         PR middle-end/57075
28016         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
28017         even if not adding abnormal edges for calls that can make
28018         abnormal gotos.
28020 2013-04-29  Richard Biener  <rguenther@suse.de>
28022         PR middle-end/57103
28023         * tree-cfg.c (move_stmt_op): Fix condition under which to update
28024         TREE_BLOCK.
28025         (move_stmt_r): Remove redundant checking.
28027 2013-04-29  Teresa Johnson  <tejohnson@google.com>
28029         PR bootstrap/57077
28030         * basic-block.h (apply_scale): New function.
28031         (apply_probability): Use apply_scale.
28032         * gimple-streamer-in.c (input_bb): Ditto.
28033         * lto-streamer-in.c (input_cfg): Ditto.
28034         * lto-cgraph.c (merge_profile_summaries): Ditto.
28035         * tree-optimize.c (execute_fixup_cfg): Ditto.
28036         * tree-inline.c (copy_bb): Update comment to use apply_scale.
28037         (copy_edges_for_bb): Ditto.
28038         (copy_cfg_body): Ditto.
28040 2013-04-29  Tom de Vries  <tom@codesourcery.com>
28042         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
28043         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
28044         (tail_merge_optimize): Handle current_loops == NULL.
28046 2013-04-26  Jeff Law  <law@redhat.com>
28048         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
28049         (simplify_cond_using_ranges): Generalize code to simplify
28050         COND_EXPRs where one argument is a constant and the other
28051         is an SSA_NAME created by an integral type conversion.
28053 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28055         * config/arm/arm.md (store_minmaxsi): Use only when
28056         optimize_insn_for_size_p.
28058 2013-04-29  Christian Bruel  <christian.bruel@st.com>
28060         PR target/57108
28061         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
28063 2013-04-29  Richard Biener  <rguenther@suse.de>
28065         PR middle-end/57089
28066         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
28067         loop tree make sure to schedule a fixup for the child as well.
28068         (expand_omp_for_generic): Properly add loops.
28069         (expand_omp_for_static_nochunk): Likewise.
28070         (expand_omp_for_static_chunk): Likewise.
28071         (expand_omp_for): For the degenerate case fixup loops.
28072         (expand_omp_sections): Fix default bb placement in loops.
28073         (expand_omp_atomic_pipeline): Properly add loops.
28075 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28077         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
28079 2013-04-29  Tom de Vries  <tom@codesourcery.com>
28081         * tree-ssa-tail-merge.c: Update header comment.
28083 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28085         * config/aarch64/arm_neon.h
28086         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
28087         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
28088         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
28089         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
28090         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
28091         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
28092         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
28093         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
28095 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28097         * config/aarch64/aarch64-simd.md
28098         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
28099         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
28100         fix_trunc, fixuns_trunc.
28101         (ftrunc<VDQF:mode>2): New.
28102         * config/aarch64/iterators.md (optab): Add fix, fixuns.
28103         (fix_trunc_optab): New.
28105 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28107         * config/aarch64/aarch64-builtins.c
28108         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
28109         iceilf, lround, iroundf.
28111 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
28113         PR target/54349
28114         * config/i386/i386.h (enum ix86_tune_indices)
28115         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
28116         New, split from X86_TUNE_INTER_UNIT_MOVES.
28117         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
28118         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
28119         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
28120         (TARGET_INTER_UNIT_MOVES): Remove.
28121         * config/i386/i386.c (initial_ix86_tune_features): Update.
28122         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
28123         (ix86_expand_convert_uns_didf_sse): Use
28124         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28125         (ix86_expand_vector_init_one_nonzero): Ditto.
28126         (ix86_expand_vector_init_interleave): Ditto.
28127         (inline_secondary_memory_needed): Return true for moves from SSE class
28128         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
28129         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
28130         * config/i386/constraints.md (Yi, Ym): Depend on
28131         TARGET_INTER_UNIT_MOVES_TO_VEC.
28132         (Yj, Yn): New constraints.
28133         * config/i386/i386.md (*movdi_internal): Change constraints of
28134         operand 1 from Yi to Yj and from Ym to Yn.
28135         (*movsi_internal): Ditto.
28136         (*movdf_internal): Ditto.
28137         (*movsf_internal): Ditto.
28138         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
28139         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
28140         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
28141         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
28142         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
28143         * config/i386/sse.md (movdi_to_sse): Ditto.
28144         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
28145         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
28146         TARGET_INTER_UNIT_MOVES.
28147         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
28148         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
28149         instead of TARGET_INTER_UNIT_MOVES.
28150         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
28151         operand 1 from Yi to Yj and from Ym to Yn.
28153 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28155         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
28156         (float_truncate_hi_): Likewise.
28157         (float_extend_lo_): Likewise.
28158         (float_truncate_lo_): Likewise.
28159         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
28160         (aarch64_float_extend_lo_v2df): Likewise.
28161         (vec_unpacks_hi_v4sf): Likewise.
28162         (aarch64_float_truncate_lo_v2sf): Likewise.
28163         (aarch64_float_truncate_hi_v4sf): Likewise.
28164         (vec_pack_trunc_v2df): Likewise.
28165         (vec_pack_trunc_df): Likewise.
28167 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28169         * config/aarch64/aarch64-builtins.c
28170         (aarch64_fold_builtin): Fold float conversions.
28171         * config/aarch64/aarch64-simd-builtins.def
28172         (floatv2si, floatv4si, floatv2di): New.
28173         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
28174         * config/aarch64/aarch64-simd.md
28175         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
28176         * config/aarch64/iterators.md (FLOATUORS): New.
28177         (optab): Add float, floatuns.
28178         (su_optab): Likewise.
28180 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28182         * config/aarch64/aarch64-builtins.c
28183         (aarch64_builtin_vectorized_function): Use new names for
28184         fcvt builtins.
28185         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
28186         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
28187         (fcvtzu): Split as...
28188         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
28189         (fcvtas): Split as...
28190         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
28191         (fcvtau): Split as...
28192         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
28193         (fcvtps): Split as...
28194         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
28195         (fcvtpu): Split as...
28196         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
28197         (fcvtms): Split as...
28198         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
28199         (fcvtmu): Split as...
28200         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
28201         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
28202         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
28203         (lfrintnusf, lfrintnudf): Likewise.
28204         * config/aarch64/aarch64-simd.md
28205         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
28206         define_insn.
28207         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
28208         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
28209         (fcvt_pattern): Likewise.
28211 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28213         * config/aarch64/aarch64-simd.md
28214         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
28215         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
28217 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28219         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
28220         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
28221         (vrnd<a,m,n,p>_f32): Implement using builtins.
28222         (vrnd<i,x><q>_f<32, 64>): New.
28224 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
28226         * config/aarch64/aarch64-builtins.c
28227         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
28228         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
28229         (frintz): Rename to...
28230         (btrunc): ...this.
28231         (frintp): Rename to...
28232         (ceil): ...this.
28233         (frintm): Rename to...
28234         (floor): ...this.
28235         (frinti): Rename to...
28236         (nearbyint): ...this.
28237         (frintx): Rename to...
28238         (rint): ...this.
28239         (frinta): Rename to...
28240         (round): ...this.
28241         * config/aarch64/aarch64-simd.md
28242         (aarch64_frint<frint_suffix><mode>): Delete.
28243         (<frint_pattern><mode>2): Convert to insn.
28244         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
28245         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
28246         (frint_pattern): Likewise.
28247         (frint_suffix): Likewise.
28249 2013-04-29  Richard Biener  <rguenther@suse.de>
28251         PR tree-optimization/57081
28252         * loop-init.c: Include tree-flow.h.
28253         (loop_optimizer_finalize): Free number of iteration estimates.
28254         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
28256 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
28258         PR tree-optimization/57083
28259         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
28260         non-singleton shift count range, zero extend low_bound for uns case.
28262         * config/i386/predicates.md (general_vector_operand): New predicate.
28263         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
28264         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
28265         if they aren't nonimmediate operands.  If their original values
28266         satisfy const_vector_equal_evenodd_p, don't shift them.
28267         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
28268         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
28269         if not nonimmediate_operand.
28270         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
28271         instead of register_operand.
28272         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
28274 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28276         * stor-layout.c (finalize_size_functions): Allocate a structure and
28277         reset cfun before dumping the functions.
28279 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
28281         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
28283         PR target/56866
28284         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
28285         use xop_pmacsdqh if uns_p.
28286         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
28287         the immediate rotate count.
28289 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
28291         * rtl.h (struct rtx_def): Add comment for field jump.
28292         (LRA_SUBREG_P): New macro.
28293         * recog.c (register_operand): Check LRA_SUBREG_P.
28294         * lra.c (lra): Add note at the end of RTL code. Align non-empty
28295         stack frame.
28296         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28297         (lra_final_code_change): Skip subreg change for operators.
28298         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28299         if there are no operand changes.
28300         * lra-constraints.c (curr_insn_set): New.
28301         (match_reload): Set LRA_SUBREG_P.
28302         (emit_spill_move): Ditto.
28303         (check_and_process_move): Use curr_insn_set. Process only single
28304         set insns.  Don't initialize sec_mem_p and change_p.
28305         (simplify_operand_subreg): Use LRA_SUBREG_P.
28306         (reg_in_class_p): New function.
28307         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
28308         of #ifdef.  Add code to remove cycling.
28309         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28310         non-null disp.  Reload inner instead of disp when base and index
28311         are null.  Try to put lo_sum into register.
28312         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28313         (check_and_process_move): Move code for move cost check to
28314         simple_move_p.  Remove equiv_substitution.
28315         (simple_move_p): New function.
28316         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
28317         curr_insn_set.  Call check_and_process_move only for single set
28318         insns.  Use the new function.  Move call of check_and_process_move
28319         after operand equiv substitution and address process.
28321 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28323         PR go/57045
28324         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
28325         with nonlocal goto receivers or returns twice calls, ignore
28326         unininitialized values from abnormal edges to nl goto receiver
28327         or returns twice call.
28329 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28331         PR tree-optimization/57051
28332         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
28333         and VEC_RSHIFT_EXPR if shift count is a multiple of element
28334         bitsize.
28336 2013-04-26  Richard Biener  <rguenther@suse.de>
28338         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
28339         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
28340         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
28341         (fixup_loop_arrays_after_move): New function.
28342         (move_sese_region_to_fn): Properly outline the loop tree parts
28343         of the SESE region.
28345 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
28347         * config/i386/i386.md (type, unit): Fix long lines.
28349 2013-04-26  Richard Biener  <rguenther@suse.de>
28351         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
28352         (lto-streamer-out.o): Likewise.
28353         * cfgloop.c (init_loops_structure): Export, add struct function
28354         argument and adjust.
28355         (flow_loops_find): Adjust.
28356         * cfgloop.h (enum loop_estimation): Add EST_LAST.
28357         (init_loops_structure): Declare.
28358         * lto-streamer-in.c: Include cfgloop.h.
28359         (input_cfg): Input the loop tree.
28360         * lto-streamer-out.c: Include cfgloop.h.
28361         (output_cfg): Output the loop tree.
28362         (output_struct_function_base): Do not drop PROP_loops.
28364 2013-03-26  Richard Biener  <rguenther@suse.de>
28366         * tree-cfg.c (execute_build_cfg): Build the loop tree.
28367         (pass_build_cfg): Provide PROP_loops.
28368         (move_sese_region_to_fn): Remove loops that are outlined into fn
28369         for now.
28370         * tree-inline.c: Include cfgloop.h.
28371         (initialize_cfun): Do not drop PROP_loops.
28372         (copy_loops): New function.
28373         (copy_cfg_body): Copy loop structure.
28374         (tree_function_versioning): Initialize destination loop tree.
28375         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
28376         (pass_parallelize_loops): Do IL verification.
28377         * loop-init.c (loop_optimizer_init): Fixup loops if required.
28378         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
28379         the CFG make sure we fixup loops as well.
28380         * tree-ssa-tail-merge.c: Include cfgloop.h.
28381         (replace_block_by): When merging loop latches mark loops for fixup.
28382         * lto-streamer-out.c (output_struct_function_base): Drop
28383         PROP_loops for now.
28384         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
28385         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
28386         * ipa-split.c: Include cfgloop.h.
28387         (split_function): Add the new return block to the loop tree root.
28388         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
28389         whether we have removed the forwarder block.
28390         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
28391         * cfgloop.h (place_new_loop): Declare.
28392         * cfgloopmanip.c (place_new_loop): Export.
28393         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
28394         (tree-switch-conversion.o): Likewise.
28395         (tree-complex.o): Likewise.
28396         (tree-inline.o): Likewise.
28397         (tree-ssa-tailmerge.o): Likewise.
28398         (ipa-split.o): Likewise.
28399         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
28400         (tree-ssa-copy.o): Likewise.
28401         * tree-switch-conversion.c: Include cfgloop.h
28402         (process_switch): If we emit a bit-test cascade, schedule loops
28403         for fixup.
28404         * tree-complex.c: Include cfgloop.h.
28405         (expand_complex_div_wide): Properly add new basic-blocks to loops.
28406         * asan.c: Include cfgloop.h.
28407         (create_cond_insert_point): Properly add new basic-blocks to
28408         loops, schedule loop fixup.
28409         * cfgloop.c (verify_loop_structure): Check that looks are not
28410         marked for fixup.
28411         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
28412         to loops.
28413         (expand_omp_for_generic): Likewise.
28414         (expand_omp_sections): Likewise.
28415         (expand_omp_atomic_pipeline): Schedule loops for fixup.
28416         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
28417         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
28418         is initialized, not when loops are present.
28419         * tree-parloops.c (parallelize_loops): Remove checking here.
28420         * passes.c (init_optimization_passes): Schedule a copy-propagation
28421         pass before complete unrolling of inner loops.
28423 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
28425         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
28426         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
28427         (colorize_init): Add argument to _WIN32 version.
28428         * toplev.c: Include diagnostic-color.h.
28429         (process_options): Default to -fdiagnostics-color=auto if
28430         GCC_COLORS env var is in the environment.
28431         * common.opt (fdiagnostics-color=): Add Var and Init.
28432         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
28433         env var is in the environment, the default is auto rather than never.
28435         * diagnostic.h (file_name_as_prefix): Add context argument.
28436         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
28437         the string as locus.
28438         * langhooks.c (lhd_print_error_function): Adjust caller.
28440 2013-04-25  Lawrence Crowl  <crowl@google.com>
28442         * var-tracking.c (shared_hash_def::htab):
28443         Change type to hash_table.  Update dependent calls and types.
28445 2013-04-25  Lawrence Crowl  <crowl@google.com>
28447         * Makefile.in: Update as needed below.
28449         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
28450         Move declaration to after the type's method definitons.
28452         * attribs.c (htab_t scoped_attributes::attribute_hash):
28453         Change type to hash_table.  Update dependent calls and types.
28455         * bitmap.c (htab_t bitmap_desc_hash):
28456         Change type to hash_table.  Update dependent calls and types.
28458         * cselib.c (htab_t cselib_hash_table):
28459         Change type to hash_table.  Update dependent calls and types.
28461         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
28462         (hash_string_slot_node): Move implementation into lto-streamer.h
28463         struct string_slot_hasher.
28464         (eq_string_slot_node): Likewise.
28466         * data-streamer-out.c: Update output_block::string_hash_table
28467         dependent calls and types.
28469         * dwarf2cfi.c (htab_t trace_index):
28470         Change type to hash_table.  Update dependent calls and types.
28472         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
28473         Change type to hash_table.  Update dependent calls and types.
28474         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
28475         (htab_t optimize_external_refs::map): Likewise.
28476         (htab_t output_comp_unit::extern_map): Likewise.
28477         (htab_t output_comdat_type_unit::extern_map): Likewise.
28478         (htab_t output_macinfo::macinfo_htab): Likewise.
28479         (htab_t optimize_location_lists::htab): Likewise.
28480         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
28482         * except.c (htab_t ehspec_hash_type):
28483         Change type to hash_table.  Update dependent calls and types.
28484         (assign_filter_values::ttypes): Likewise.
28485         (assign_filter_values::ehspec): Likewise.
28486         (sjlj_assign_call_site_values::ar_hash): Likewise.
28487         (convert_to_eh_region_ranges::ar_hash): Likewise.
28489         * gcse.c (htab_t pre_ldst_table):
28490         Change type to hash_table.  Update dependent calls and types.
28492         * ggc-common.c (htab_t saving_htab):
28493         Change type to hash_table.  Update dependent calls and types.
28494         (htab_t loc_hash): Likewise.
28495         (htab_t ptr_hash): Likewise.
28496         (call_count): Rename ggc_call_count.
28497         (call_alloc): Rename ggc_call_alloc.
28498         (loc_descriptor): Rename make_loc_descriptor.
28499         (add_statistics): Rename ggc_add_statistics.
28501         * ggc-common.c (saving_htab):
28502         Change type to hash_table.  Update dependent calls and types.
28504         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
28505         (push_gimplify_context): Likewise.
28506         (pop_gimplify_context): Likewise.
28507         (struct gimple_temp_hash_elt): Added.
28508         (struct gimplify_hasher): Likewise.
28509         (struct gimplify_ctx.temp_htab):
28510         Change type to hash_table.  Update dependent calls and types.
28512         * gimple-fold.c: Include gimplify-ctx.h.
28514         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
28515         Change type to hash_table.  Update dependent calls and types.
28516         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
28517         avoid potential global name collision.
28519         * gimplify.c: Include gimplify-ctx.h.
28520         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
28521         (htab_t gimplify_ctx::temp_htab):
28522         Update dependent calls and types for new type hash_table.
28523         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
28524         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
28526         * gimplify-ctx.h: New.
28527         (struct gimple_temp_hash_elt): Move from gimplify.c.
28528         (class gimplify_hasher): New.
28529         (struct gimplify_ctx): Move from gimple.h.
28530         (htab_t gimplify_ctx::temp_htab):
28531         Change type to hash_table.  Update dependent calls and types.
28533         * graphite-clast-to-gimple.c: Include graphite-htab.h.
28534         (htab_t ivs_params::newivs_index):
28535         Change type to hash_table.  Update dependent calls and types.
28536         (htab_t ivs_params::params_index): Likewise.
28537         (htab_t print_generated_program::params_index): Likewise.
28538         (htab_t gloog::newivs_index): Likewise.
28539         (htab_t gloog::params_index): Likewise.
28541         * graphite.c: Include graphite-htab.h.
28542         4htab_t graphite_transform_loops::bb_pbb_mapping):
28543         Change type to hash_table.  Update dependent calls and types.
28545         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
28546         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
28547         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
28549         * graphite-dependences.c: Include graphite-htab.h.
28550         (loop_is_parallel_p): Change hash table type of parameter.
28552         * graphite-htab.h: New.
28553         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
28554         (extern find_pbb_via_hash): Move from graphite-poly.h.
28555         (extern loop_is_parallel_p): Move from graphite-poly.h.
28556         (extern get_loop_body_pbbs): Move from graphite-poly.h.
28558         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
28559         (extern loop_is_parallel_p): Move to graphite-htab.h.
28560         (extern get_loop_body_pbbs): Move to graphite-htab.h.
28562         * haifa-sched.c (htab_t delay_htab):
28563         Change type to hash_table.  Update dependent calls and types.
28564         (htab_t delay_htab_i2): Likewise.
28566         * ira-color.c (htab_t allocno_hard_regs_htab):
28567         Change type to hash_table.  Update dependent calls and types.
28569         * ira-costs.c (htab_t cost_classes_htab):
28570         Change type to hash_table.  Update dependent calls and types.
28572         * loop-invariant.c (htab_t merge_identical_invariants::eq):
28573         Change type to hash_table.  Update dependent calls and types.
28575         * loop-iv.c (htab_t bivs):
28576         Change type to hash_table.  Update dependent calls and types.
28578         * loop-unroll.c (htab_t opt_info::insns_to_split):
28579         Change type to hash_table.  Update dependent calls and types.
28580         (htab_t opt_info::insns_with_var_to_expand): Likewise.
28582         * lto-streamer.h (struct string_slot): Move from data-streamer.h
28583         (struct string_slot_hasher): New.
28584         (htab_t output_block::string_hash_table):
28585         Change type to hash_table.  Update dependent calls and types.
28587         * lto-streamer-in.c (freeing_string_slot_hasher): New.
28588         (htab_t file_name_hash_table):
28589         Change type to hash_table.  Update dependent calls and types.
28591         * lto-streamer-out.c: Update output_block::string_hash_table dependent
28592         calls and types.
28594         * lto-streamer.c (htab_t tree_htab):
28595         Change type to hash_table.  Update dependent calls and types.
28597         * omp-low.c: Include gimplify-ctx.h.
28599         * passes.c (htab_t name_to_pass_map):
28600         Change type to hash_table.  Update dependent calls and types.
28601         (pass_traverse): Rename to passes_pass_traverse.
28603         * plugin.c (htab_t event_tab):
28604         Change type to hash_table.  Update dependent calls and types.
28606         * postreload-gcse.c (htab_t expr_table):
28607         Change type to hash_table.  Update dependent calls and types.
28608         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
28610         * sese.c (debug_rename_map_1): Make extern.
28611         (htab_t copy_bb_and_scalar_dependences::rename_map):
28612         Change type to hash_table.  Update dependent calls and types.
28614         * sese.h (extern debug_rename_map): Move to .c file.
28616         * store-motion.c (htab_t store_motion_mems_table):
28617         Change type to hash_table.  Update dependent calls and types.
28619         * trans-mem.c (htab_t tm_new_mem_hash):
28620         Change type to hash_table.  Update dependent calls and types.
28622         * tree-browser.c (htab_t TB_up_ht):
28623         Change type to hash_table.  Update dependent calls and types.
28625         * tree-cfg.c (htab_t discriminator_per_locus):
28626         Change type to hash_table.  Update dependent calls and types.
28628         * tree-complex.c: Include tree-hasher.h
28629         (htab_t complex_variable_components):
28630         Change type to hash_table.  Update dependent calls and types.
28632         * tree-eh.c (htab_t finally_tree):
28633         Change type to hash_table.  Update dependent calls and types.
28635         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
28636         struct int_tree_hasher.
28637         (extern int_tree_map_eq): Likewise.
28638         (uid_decl_map_hash): Removed.
28639         (extern decl_tree_map_eq): Likewise.
28641         * tree-hasher.h: New.
28642         (struct int_tree_hasher): New.
28643         (typedef int_tree_htab_type): New.
28645         * tree-inline.c: Include gimplify-ctx.h.
28647         * tree-mudflap.c: Include gimplify-ctx.h.
28649         * tree-parloops.c: Include tree-hasher.h.
28650         (htab_t eliminate_local_variables_stmt::decl_address):
28651         Change type to hash_table.  Update dependent calls and types.
28652         (htab_t separate_decls_in_region::decl_copies): Likewise.
28654         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
28655         Change type to hash_table.  Update dependent calls and types.
28657         * tree-sra.c (candidates):
28658         Change type to hash_table.  Update dependent calls and types.
28660         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
28661         in tree-flow.h.
28662         (int_tree_map_hash): Likewise.
28664         * tree-ssa-dom.c (htab_t avail_exprs):
28665         Change type to hash_table.  Update dependent calls and types.
28667         * tree-ssa-live.c (var_map_base_init::tree_to_index):
28668         Change type to hash_table.  Update dependent calls and types.
28670         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
28671         Change type to hash_table.  Update dependent calls and types.
28673         * tree-ssa-phiopt.c (seen_ssa_names):
28674         Change type to hash_table.  Update dependent calls and types.
28676         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
28677         Change type to hash_table.  Update dependent calls and types.
28679         * tree-ssa-uncprop.c (equiv):
28680         Change type to hash_table.  Update dependent calls and types.
28682 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
28684         PR rtl-optimization/57003
28685         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
28686         call note_stores with kill_clobbered_value callback again after
28687         killing regs_invalidated_by_call.
28689 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28691         * config/aarch64/aarch64-simd.md
28692         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
28693         (aarch64_simd_bsl<mode>): Likewise.
28694         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
28696 2013-04-25  Marek Polacek  <polacek@redhat.com>
28698         PR tree-optimization/57066
28699         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
28701 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28703         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
28705 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28707         * config/aarch64/aarch64-builtins.c
28708         (aarch64_fold_builtin): New.
28709         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
28710         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
28711         * config/aarch64/aarch64-simd-builtins.def (abs): New.
28712         * config/aarch64/arm_neon.h
28713         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
28715 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28716             Tejas Belagod  <tejas.belagod@arm.com>
28718         * config/aarch64/aarch64-builtins.c
28719         (aarch64_gimple_fold_builtin): New.
28720         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
28721         * config/aarch64/aarch64-simd-builtins.def (addv): New.
28722         * config/aarch64/aarch64-simd.md (addpv4sf): New.
28723         (addvv4sf): Update.
28724         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
28726 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28728         * config/aarch64/aarch64.md
28729         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
28731 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28733         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
28734         (*ngcsi_uxtw): New pattern.
28736 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28737             Julian Brown  <julian@codesourcery.com>
28739         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
28740         (TB_DREG): Add T_V4HF.
28741         (v4hf_UP): New macro.
28742         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28743         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28744         Handle initialisation of V4HF. Adjust initialisation of reinterpret
28745         built-ins.
28746         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28747         (arm_vector_mode_supported_p): Handle V4HF.
28748         (arm_mangle_map): Handle V4HFmode.
28749         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
28750         * config/arm/arm_neon_builtins.def: Add entries for
28751         vcvtv4hfv4sf, vcvtv4sfv4hf.
28752         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
28753         (neon_vcvtv4hfv4sf): Likewise.
28754         * config/arm/neon-gen.ml: Handle half-precision floating point
28755         features.
28756         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
28757         * config/arm/arm_neon.h: Regenerate.
28758         * config/arm/neon.ml (type elts): Add F16.
28759         (type vectype): Add T_float16x4, T_floatHF.
28760         (type vecmode): Add V4HF.
28761         (type features): Add Requires_FP_bit feature.
28762         (elt_width): Handle F16.
28763         (elt_class): Likewise.
28764         (elt_of_class_width): Likewise.
28765         (mode_of_elt): Refactor.
28766         (type_for_elt): Handle F16, fix error messages.
28767         (vectype_size): Handle T_float16x4.
28768         (vcvt_sh): New function.
28769         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
28770         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
28771         (string_of_mode): Handle V4HF.
28772         * doc/arm-neon-intrinsics.texi: Regenerate.
28774 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28776         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
28777         format specifier in 'X' case.
28779 2013-04-25  Alan Modra  <amodra@gmail.com>
28781         PR target/57052
28782         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
28783         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
28784         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
28785         Repeat for many other rotate/shift and mask patterns using subregs.
28786         Name lshiftrt insns.
28787         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
28788         on WORDS_BIG_ENDIAN.
28790 2013-04-25  Alan Modra  <amodra@gmail.com>
28792         * config.gcc: Support little-endian powerpc-linux targets.
28793         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
28794         (LINK_OS_LINUX_SPEC): Define.
28795         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
28796         Preserve MASK_LITTLE_ENDIAN.
28797         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
28798         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
28799         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
28800         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
28801         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
28802         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
28803         Correct fp word order for little-endian.  Don't shift toc entries
28804         smaller than a word for little-endian.
28805         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
28806         (bswapdi2 splits): Correct low-part subreg for little-endian.
28807         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
28808         low/high where such is correct only for be.
28809         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
28810         little-endian for -mcall-aixdesc.
28812 2013-04-25  Alan Modra  <amodra@gmail.com>
28814         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
28815         replace_equiv_address_nv.
28817 2013-04-25  Alan Modra  <amodra@gmail.com>
28819         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
28821 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28823         Revert:
28824         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28825         * rtl.h (struct rtx_def): ...
28827 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28829         PR rtl-optimizations/57046
28830         * lra-constraints (split_reg): Set up lra_risky_transformations_p
28831         for multi-reg splits.
28833 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
28835         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
28837 2013-04-24  Sterling Augustine  <saugustine@google.com>
28839         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
28840         (comp_dir_string, debug_str_dwo_section): New.
28841         (DEBUG_STR_DWO_SECTION): Rename to ...
28842         (DEBUG_DWO_STR_SECTION): ... this.
28843         (DEBUG_NORM_STR_SECTION): Delete.
28844         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
28845         (DEBUG_STR_DWO_SECTION_FLAGS): New.
28846         (find_AT_string): Move most logic to ...
28847         (find_AT_string_in_table): ... here.  New.
28848         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
28849         add_skeleton_AT_string.  Delete logic.
28850         (output_skeleton_debug_sections): Remove call to
28851         add_top_level_skeleton_die_attrs.
28852         (add_comp_dir_attribute): Move logic to comp_dir_string.
28853         (dwarf2out_init): Initialize debug_str_dwo_section.
28854         (output_indirect_string): Call find_string_form.
28855         (output_indirect_strings): Rewrite.
28856         (prune_unused_types): Empty skeleton_debug_str_hash.
28857         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
28858         (dwarf2out_finish):  Call output_indirect_strings.
28860 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
28862         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
28864 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28866         * rtl.h (struct rtx_def): Add comment for field jump.
28867         (LRA_SUBREG_P): New macro.
28868         * recog.c (register_operand): Check LRA_SUBREG_P.
28869         * lra.c (lra): Add note at the end of RTL code. Align non-empty
28870         stack frame.
28871         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28872         (lra_final_code_change): Skip subreg change for operators.
28873         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28874         if there are no operand changes.
28875         * lra-constraints.c (curr_insn_set): New.
28876         (match_reload): Set LRA_SUBREG_P.
28877         (emit_spill_move): Ditto.
28878         (check_and_process_move): Use curr_insn_set. Process only single
28879         set insns.  Don't initialize sec_mem_p and change_p.
28880         (simplify_operand_subreg): Use LRA_SUBREG_P.
28881         (reg_in_class_p): New function.
28882         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
28883         of #ifdef.  Add code to remove cycling.
28884         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28885         non-null disp.  Reload inner instead of disp when base and index
28886         are null.  Try to put lo_sum into register.
28887         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28888         (check_and_process_move): Move code for move cost check to
28889         simple_move_p.  Remove equiv_substitution.
28890         (simple_move_p): New function.
28891         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
28892         curr_insn_set.  Call check_and_process_move only for single set
28893         insns.  Use the new function.  Move call of check_and_process_move
28894         after operand equiv substitution and address process.
28896 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
28898         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
28899         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
28900         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
28902 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
28904         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
28906 2013-04-24  Marek Polacek  <polacek@redhat.com>
28908         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
28909         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
28910         (select_loops_exit_conditions): Likewise.
28911         (number_of_iterations_for_all_loops): Likewise.
28912         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
28913         (scev_analysis): Likewise.
28915 2013-04-02  Catherine Moore  <clm@codesourcery.com>
28916             Chao-ying Fu  <fu@mips.com>
28918         * config/mips/micromips.md (jraddiusp): New pattern.
28919         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
28920         instruction if possible.
28922 2013-04-24  Alan Modra  <amodra@gmail.com>
28924         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
28926 2013-04-24  Julian Brown  <julian@codesourcery.com>
28927             Chung-Lin Tang  <cltang@codesourcery.com>
28929         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
28930         dependency behavior in enumeration type DIE generation. Add TODO note
28931         to comments about future DW_FORM_sdata/udata re-work of related code.
28933 2013-04-23  Lawrence Crowl  <crowl@google.com>
28935         * Makefile.in: Update as needed below.
28937         * hash-table.h (class hash_table):
28938         Correct many methods with parameter types compare_type to the correct
28939         value_type.  (Correct code was unlikely to notice the change.)
28940         (hash_table::elements_with_deleted) New.
28941         (class hashtable::iterator): New.
28942         (hashtable::begin()): New.
28943         (hashtable::end()): New.
28944         (FOR_EACH_HASH_TABLE_ELEMENT): New.
28946         * statistics.c (statistics_hashes):
28947         Change type to hash_table.  Update dependent calls and types.
28949         * tree-into-ssa.c (var_infos):
28950         Change type to hash_table.  Update dependent calls and types.
28952         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
28953         Change type to hash_table.  Update dependent calls and types.
28955         * tree-ssa-loop-im.c (struct mem_ref.refs):
28956         Change type to hash_table.  Update dependent calls and types.
28958         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
28959         Change type to hash_table.  Update dependent calls and types.
28961         * tree-ssa-sccvn.c (vn_tables_s::nary):
28962         Change type to hash_table.  Update dependent calls and types.
28963         (vn_tables_s::phis): Likewise.
28964         (vn_tables_s::references): Likewise.
28966         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
28967         (vn_reference_eq): Update parameter and return types.
28969         * tree-ssa-structalias.c (pointer_equiv_class_table):
28970         Change type to hash_table.  Update dependent calls and types.
28971         (location_equiv_class_table): Likewise.
28973         * tree-vect-data-refs.c: Consequential changes for making
28974         peeling a hash_table.
28976         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
28977         (destroy_loop_vec_info): Dependent hash_table update.
28979         * tree-vectorizer.h (peeling_htab):
28980         Change type to hash_table.  Update dependent calls and types.
28982 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
28984         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
28985         to check the register content is equal or not.
28986         * lra-constraints.c (match_reload): Use lra_assign_reg_val
28987         to assign register content record.
28988         * lra-eliminations.c (update_reg_eliminate): Use
28989         lra_update_reg_val_offset to update register content offset.
28990         * lra-int.h (struct lra_reg): Add offset member.
28991         (lra_reg_val_equal_p): New static inline function.
28992         (lra_update_reg_val_offset): New static inline function.
28993         (lra_assign_reg_val): New static inline function.
28994         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
28995         to assign register content record.
28996         (initialize_lra_reg_info_element): Initial offset to zero.
28998 2013-04-23  Catherine Moore  <clm@codesourcery.com>
29000         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
29001         operands.  Record compression.
29003 2013-04-23  Xinliang David Li  <davidxl@google.com>
29005         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
29007 2013-04-23  Richard Biener  <rguenther@suse.de>
29009         PR middle-end/57036
29010         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
29011         parameter, only add abnormal goto edges from the copied body
29012         if the call could perform abnormal gotos.
29013         (copy_cfg_body): Adjust.
29015 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
29017         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
29019 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
29021         * coretypes.h (gimple_stmt_iterator): Add struct to make
29022         compatible with C.
29024 2013-04-23  Richard Biener  <rguenther@suse.de>
29026         PR tree-optimization/57026
29027         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
29028         from SSA names occuring in abnormal PHI nodes.
29030 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29032         * lto/lto.c (print_lto_report_1): Fix LTO report names.
29034 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29036         * lto/lto.c (print_lto_report_1): Declare early.
29037         (read_cgraph_and_symbols): Call print_lto_report_1 early.
29039 2013-04-22  Andi Kleen  <ak@linux.intel.com>
29041         * common.opt (-flto-report-wpa): Add.
29042         * doc/invoke.texi (-flto-report-wpa): Add.
29043         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
29044         (lto_main): dito.
29046 2013-04-22  Xinliang David Li  <davidxl@google.com>
29048         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
29049         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
29050         * Makefile.in: New dependency
29052             David Daney <ddaney.cavm@gmail.com>
29054         * configure.ac (gcc_cv_as_micromips_support):  Use the
29055         --fatal-warnings option.
29056         * configure: Regenerate.
29058 2013-04-22  Marek Polacek  <polacek@redhat.com>
29060         PR sanitizer/56990
29061         * tsan.c (instrument_expr): Don't instrument expression
29062         in case its size is zero.
29064 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
29066         PR target/57032
29067         Revert:
29068         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
29070         * config/alpha/alpha.c (TARGET_LRA_P): New define.
29072 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29074         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
29075         (gimple_stmt_iterator): New typedef.
29076         * gimple.h (gimple_stmt_iterator): Rename to...
29077         (gimple_stmt_iterator_d): ... This.
29078         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
29079         trees be valid for GIMPLE and GENERIC.
29080         (TARGET_GIMPLE_FOLD_BUILTIN): New.
29081         * gimple-fold.c (gimple_fold_call): Call target hook
29082         gimple_fold_builtin.
29083         * hooks.c (hook_bool_gsiptr_false): New.
29084         * hooks.h (hook_bool_gsiptr_false): New.
29085         * target.def (fold_stmt): New.
29086         * doc/tm.texi: Regenerate.
29088 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
29090         PR target/57018
29091         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
29092         a set sp if no stack realignment.
29094 2013-04-22  Nick Clifton  <nickc@redhat.com>
29096         * config.gcc (tilegx-linux): Extend extra_objs rather than
29097         overwriting it.
29098         (tilepro-linux): Likewise.
29100 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29102         * config/aarch64/aarch64-builtins.c
29103         (CF): Remove.
29104         (CF0, CF1, CF2, CF3, CF4, CF10): New.
29105         (VAR<1-12>): Add MAP parameter.
29106         (BUILTIN_*): Likewise.
29107         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
29108         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
29109         (aarch64_ushl_n<mode>): Likewise.
29110         (aarch64_sshr_n<mode>): Likewise.
29111         (aarch64_ushr_n<mode>): Likewise.
29112         (aarch64_<maxmin><mode>): Likewise.
29113         (aarch64_sqrt<mode>): Likewise.
29114         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
29115         (vshr<q>_n_*): Likewise.
29117 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29119         * config/aarch64/aarch64-builtins.c
29120         (aarch64_simd_builtin_type_mode): Handle SF types.
29121         (sf_UP): Define.
29122         (BUILTIN_GPF): Define.
29123         (aarch64_init_simd_builtins): Handle SF types.
29124         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
29125         (frecps): Likewise.
29126         (frecpx): Likewise.
29127         * config/aarch64/aarch64-simd.md
29128         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
29129         (aarch64_frecpe<mode>): New.
29130         (aarch64_frecps<mode>): Likewise.
29131         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
29132         (v8type): Add frecp<esx>.
29133         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
29134         (aarch64_frecps<mode>): Likewise.
29135         * config/aarch64/iterators.md (FRECP): New.
29136         (frecp_suffix): Likewise.
29137         * config/aarch64/arm_neon.h
29138         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
29140 2013-04-22  Christian Bruel  <christian.bruel@st.com>
29142         PR target/56995
29143         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
29144         (REG_CLASS_NAMES): Idem.
29145         (REG_CLASS_CONTENTS): Idem.
29146         (REGCLASS_HAS_FP_REG): Idem.
29147         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
29148         (sh_conditional_register_usage): Idem.
29150 2013-04-21  Jeff Law  <law@redhat.com>
29152         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
29153         (ssa_forward_propagate_and_combine): Use it.
29155 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29157         * lra.c: Update the flow chart diagram.
29159 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
29161         PR rtl-optimization/56847
29162         * lra-constraints.c (process_alt_operands): Discourage alternative
29163         with non-matche doffsettable memory constraint fro memory with
29164         known offset.
29166 2013-04-19  Richard Biener  <rguenther@suse.de>
29168         PR tree-optimization/56982
29169         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
29170         function.
29171         * gimplify.c (gimplify_call_expr): Notice special calls.
29172         (gimplify_modify_expr): Likewise.
29173         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
29174         abnormal control flow receivers.
29175         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
29176         in the same way as cfun->has_nonlocal_labels.
29177         (gimple_purge_dead_abnormal_call_edges): Likewise.
29178         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
29179         receivers start a basic-block.
29181 2013-04-19  Richard Biener  <rguenther@suse.de>
29183         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
29184         member ...
29185         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
29186         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
29187         (SLP_TREE_LOAD_PERMUTATION): Add.
29188         (vect_transform_slp_perm_load): Adjust prototype.
29189         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
29190         (vect_free_slp_instance): Likewise.
29191         (vect_create_new_slp_node): Likewise.
29192         (vect_supported_slp_permutation_p): Remove.
29193         (vect_slp_rearrange_stmts): Adjust.
29194         (vect_supported_load_permutation_p): Likewise.  Inline
29195         vect_supported_slp_permutation_p here.
29196         (vect_analyze_slp_instance): Compute load permutations per
29197         slp node instead of per instance.
29198         (vect_get_slp_defs): Adjust.
29199         (vect_transform_slp_perm_load): Likewise.
29200         (vect_schedule_slp_instance): Remove redundant code.
29201         (vect_schedule_slp): Remove hack for PR56270, add it ...
29202         * tree-vect-stmts.c (vectorizable_load): ... here, do not
29203         CSE loads for SLP.  Adjust.
29205 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
29207         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
29208         spelling in two comments.
29210 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
29212         PR target/56797
29213         * config/arm/arm.c (load_multiple_sequence): Require SP
29214         as base register for loads if SP is in the register list.
29216 2013-04-19  Martin Jambor  <mjambor@suse.cz>
29218         PR tree-optimization/56718
29219         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
29220         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
29221         and made public.  Adjusted all callers.
29222         (ipa_intraprocedural_devirtualization): New function.
29223         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
29224         (ipa_intraprocedural_devirtualization): Likewise.
29225         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
29227 2013-04-19  Richard Biener  <rguenther@suse.de>
29229         PR tree-optimization/57000
29230         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
29232 2013-04-19  Terry Guo  <terry.guo@arm.com>
29234         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
29235         Replace with ...
29236         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
29237         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
29238         (cortex_m4_fmacs): Use new reservations.
29239         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
29241 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
29243         PR rtl-optimization/56999
29244         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
29245         related code.
29246         (lra_coalesce): Remove split_origin_bitmap and related code.
29247         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
29248         ranges if necessary.
29250 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
29252         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
29253         New array.
29254         (ix86_expand_call): Remove clobbered_registers array and use
29255         x86_64_ms_sysv_extra_clobbered_registers instead.
29256         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
29257         Declare here.
29258         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
29259         predicate.
29260         * config/i386/i386.md (*call_rex64_ms_sysv): Use
29261         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
29262         (*call_value_rex64_ms_sysv): Ditto.
29264 2013-04-18  Cary Coutant  <ccoutant@google.com>
29266         * dwarf2out.c (output_pubnames): Check die_perennial_p of
29267         parent instead of die_mark.
29269 2013-04-18  Diego Novillo  <dnovillo@google.com>
29271         * gimple.c (create_gimple_tmp): New.
29272         (get_expr_type): New.
29273         (build_assign): New.
29274         (build_type_cast): New.
29275         * gimple.h (enum ssa_mode): Define.
29276         (gimple_seq_set_location): New.
29277         * asan.c (build_check_stmt): Change some gimple_build_* calls
29278         to use build_assign and build_type_cast.
29280 2013-04-18  Richard Biener  <rguenther@suse.de>
29282         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29283         handle negative step.  Remove redundant checks.
29284         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
29285         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
29286         for negative step and grouped loads fail to vectorize.
29288 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29290         * emit-rtl.c (reset_insn_used_flags): New function.
29291         (reset_all_used_flags): Use it.
29292         (verify_insn_sharing): New function.
29293         (verify_rtl_sharing): Fix verification for SEQUENCEs.
29295 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
29297         PR tree-optimization/56984
29298         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
29299         and (x >> M) >= N don't register any assertion if N << M is the
29300         minimum value.
29302 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
29304         * lower-subreg.c (resolve_simple_move): If called self-recursive,
29305         do not delete_insn insns that have not yet been emitted, only
29306         unlink them with remove_insn.
29307         * df-scan.c (df_insn_delete): Revert r197492.
29309 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
29311         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
29312         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
29314 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
29316         * config/arm/arm.md (movsicc_insn): Convert define_insn into
29317         define_insn_and_split.
29318         (and_scc,ior_scc,negscc): Likewise.
29319         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
29321 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
29323         * config/arm/arm.c (use_return_insn): Return 0 for targets that
29324         can benefit from using a sequence of LDRD instructions in epilogue
29325         instead of a single LDM instruction.
29327 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29329         PR 45688
29330         * doc/extend.texi: Fix typo.
29332 2013-04-17  Richard Biener  <rguenther@suse.de>
29334         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
29335         (vect_build_slp_tree): ... here.
29336         (vect_build_slp_tree_1): Compute which stmts of the SLP group
29337         match.  Remove special-casing of mismatched complex loads.
29338         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
29339         re-try the match with swapped commutative operands.
29340         (vect_supported_load_permutation_p): Remove special-casing of
29341         mismatched complex loads.
29342         (vect_analyze_slp_instance): Adjust.
29344 2013-04-17  Richard Biener  <rguenther@suse.de>
29346         PR rtl-optimization/56921
29347         * cfgloop.h (struct loop): Add simple_loop_desc member.
29348         (struct niter_desc): Mark with GTY(()).
29349         (simple_loop_desc): Do not use aux field but simple_loop_desc.
29350         * loop-iv.c (get_simple_loop_desc): Likewise.
29351         (free_simple_loop_desc): Likewise.
29353         Revert
29354         2013-04-16  Richard Biener  <rguenther@suse.de>
29356         PR rtl-optimization/56921
29357         * loop-init.c (pass_rtl_move_loop_invariants): Add
29358         TODO_do_not_ggc_collect to todo_flags_finish.
29359         (pass_rtl_unswitch): Same.
29360         (pass_rtl_unroll_and_peel_loops): Same.
29361         (pass_rtl_doloop): Same.
29363 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
29365         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
29366         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
29367         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
29368         references.
29369         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
29370         * tree-streamer.c (record_common_node): Adjust reference in comment.
29372 2013-04-17  Terry Guo  <terry.guo@arm.com>
29374         * config/arm/cortex-m4.md: Add a new bypass.
29376 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29378         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
29379         New pattern.
29380         (*subs_<optab><mode>_multp2): New pattern.
29381         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29382         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
29384 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29386         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
29387         (*subs_mul_imm_<mode>): New pattern.
29389 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
29391         PR target/56948
29392         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
29393         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
29394         (vsx_movti_32bit): Change j->wa to O->wa.
29396 2013-04-16  Richard Biener  <rguenther@suse.de>
29398         PR rtl-optimization/56921
29399         * loop-init.c (pass_rtl_move_loop_invariants): Add
29400         TODO_do_not_ggc_collect to todo_flags_finish.
29401         (pass_rtl_unswitch): Same.
29402         (pass_rtl_unroll_and_peel_loops): Same.
29403         (pass_rtl_doloop): Same.
29405 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
29407         * config/arm/arm.c (emit_multi_reg_push): New declaration
29408         for an existing function.
29409         (arm_emit_strd_push): New function.
29410         (arm_expand_prologue): Used here.
29411         (arm_emit_ldrd_pop): New function.
29412         (arm_expand_epilogue): Used here.
29413         (arm_get_frame_offsets): Update condition.
29414         (arm_emit_multi_reg_pop): Add a special case for load of a single
29415         register with writeback.
29417 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
29419         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
29420         description.
29422 2013-04-16  Richard Biener  <rguenther@suse.de>
29424         PR tree-optimization/56756
29425         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
29426         (first_mem_ref_loc): New.
29427         (execute_sm): Place the load temporarily before a previous
29428         access instead of in the latch edge to ensure its SSA dependencies
29429         are defined at points dominating the load.
29431 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
29433         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
29434         correct fix by moving header and footer insn to the footer of
29435         the merged basic block.  Clear BB_END of the merged-away block.
29437         PR middle-end/43631
29438         * emit-rtl.c (make_note_raw): New function.
29439         (link_insn_into_chain): New static inline function.
29440         (add_insn): Use it.
29441         (add_insn_before, add_insn_after): Factor insn chain linking code...
29442         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
29443         using link_insn_into_chain.
29444         (note_outside_basic_block_p): New helper function for emit_note_after
29445         and emit_note_before.
29446         (emit_note_after): Use nobb variant of add_insn_after if the note
29447         should not be contained in a basic block.
29448         (emit_note_before): Use nobb variant of add_insn_before if the note
29449         should not be contained in a basic block.
29450         (emit_note_copy): Use make_note_raw.
29451         (emit_note): Likewise.
29452         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
29453         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
29454         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
29455         the moved barrier the tail of the basic block it follows.
29456         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
29458 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
29460         PR tree-optimization/56962
29461         * gimple-ssa-strength-reduction.c (record_increment): Only set
29462         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
29463         either rhs1 or rhs2 is equal to c->base_expr.
29465 2013-04-15  Richard Biener  <rguenther@suse.de>
29467         PR tree-optimization/56933
29468         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
29469         member.
29470         (GROUP_READ_WRITE_DEPENDENCE): Remove.
29471         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
29472         * tree-vect-data-refs.c (vect_analyze_group_access): Move
29473         dependence check ...
29474         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
29475         ... here.
29476         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
29477         GROUP_READ_WRITE_DEPENDENCE.
29479 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29481         * emit-rtl.c (reset_all_used_flags): New function.
29482         (verify_rtl_sharing): Call reset_all_used_flags before and after
29483         performing the checks.
29485 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29487         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
29488         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
29489         * config/arm/constraints.md (De): New constraint.
29490         * config/arm/neon.md (anddi3_neon): Delete.
29491         (neon_vand<mode>): Expand to standard anddi3 pattern.
29492         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
29493         Move earlier in the file.
29494         (neon_inv_logic_op2): Likewise.
29495         (arm_anddi_operand_neon): New predicate.
29497 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29499         * configure.ac (gcc_cv_ld_as_needed): Set
29500         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
29501         Use -z ignore, -z record on *-*-solaris2*.
29502         (HAVE_LD_AS_NEEDED): Update comment.
29503         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
29504         * configure: Regenerate.
29505         * config.in: Regenerate.
29506         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
29507         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
29508         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
29509         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
29510         equivalents.  Fix markup.
29511         * doc/tm.texi: Regenerate.
29513 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
29515         * config/i386/i386.opt: New option mstack-protector-guard=.
29516         * config/i386/i386-opts.h: Add enum stack_protector_guard.
29517         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
29518         TARGET_SSP_TLS_GUARD.
29519         * config/i386/i386.c (ix86_option_override_internal): Set
29520         ix86_stack_protector_guard.
29521         * config/i386/i386.md (stack_protect_set): Enable for
29522         TARGET_SSP_TLS_GUARD only.
29523         (stack_protect_set_<mode>): Ditto.
29524         (stack_protect_test): Ditto.
29525         (stack_protect_test_<mode>): Ditto.
29526         * doc/invoke.texi (i386 Option): Document.
29528 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
29530         PR target/56890
29531         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
29532         (S_MODES): Set H_MODE bit.
29533         (SF_MODES): Set only S_MODE and SF_MODE bits.
29534         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
29535         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
29536         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
29537         <MODE_FLOAT>: Likewise.
29539 2013-04-15  Joey Ye  <joey.ye@arm.com>
29541         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
29543 2013-04-15  Joey Ye  <joey.ye@arm.com>
29545         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
29546         for real far jump.
29547         (thumb_far_jump_used_p): Count instruction size and set
29548         far_jump_used.
29550 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
29552         * reorg.c (fill_simple_delay_slots): Reindent block of code.
29553         * resource.c (mark_target_live_regs): Reformat conditional block.
29555 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
29557         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
29558         notes, they are emitted only just before final.
29559         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
29561 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
29563         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
29564         * cfgrtl.c (delete_insn): Call it here instead.
29565         * lra-spills.c (lra_final_code_change): Use delete_insn.
29566         * haifa-sched.c (sched_remove_insn): Likewise.
29567         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
29568         returning to the nop pool.
29569         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
29570         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
29572 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
29574         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
29575         * doc/tm.texi: Regenerated.
29577 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
29579         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
29580         QImode checks.
29582 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
29584         * df-core.c (df_find_def): Compare register numbers.
29585         (df_find_use): Likewise.
29587 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
29589         PR target/56903
29590         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
29591         lra_in_progress for return.
29593 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
29595         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
29596         define_insn into define_insn_and_split and emit movsicc patterns.
29598 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
29600         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
29602 2013-04-12  Richard Biener  <rguenther@suse.de>
29604         * tree-pass.h (TODO_do_not_ggc_collect): New.
29605         * passes.c (execute_one_ipa_transform_pass): Honor
29606         TODO_do_not_ggc_collect.
29607         (execute_one_pass): Likewise.
29609         Revert
29610         2013-04-10  Richard Biener  <rguenther@suse.de>
29612         * passes.c (init_optimization_passes): Remove reload pass.
29613         * ira.c (do_reload): Merge into ...
29614         (ira): ... this.
29615         (rest_of_handle_reload): Remove.
29616         (pass_reload): Likewise.
29617         * config/i386/i386.c (ix86_option_override): Refer to ira instead
29618         of reload for vzeroupper pass placement.
29620 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
29622         PR tree-optimization/56918
29623         PR tree-optimization/56920
29624         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
29625         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
29626         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
29627         use wide_mul_with_sign method.
29629 2013-04-12  Richard Biener  <rguenther@suse.de>
29631         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
29632         not be considered a gimple constant.
29634 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
29636         * fold-const.c (const_binop): Handle vector shifts by a scalar.
29637         (fold_binary_loc): Call const_binop also for mixed vector-scalar
29638         operations.
29640 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29641             Jakub Jelinek  <jakub@redhat.com>
29643         * opts.c: Include diagnostic-color.h.
29644         (common_handle_option): Handle OPT_fdiagnostics_color_.
29645         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
29646         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
29647         (diagnostic-color.o): New.
29648         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
29649         (diagnostic_color_rule): New enum.
29650         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
29651         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
29652         the location string.
29653         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
29654         either NULL, or color kind.
29655         * diagnostic-color.c: New file.
29656         * diagnostic-color.h: New file.
29657         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
29658         arguments.
29659         * doc/invoke.texi (-fdiagnostics-color): Document.
29660         * pretty-print.h (pp_show_color): Define.
29661         (struct pretty_print_info): Add show_color field.
29662         * diagnostic.c: Include diagnostic-color.h.
29663         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
29664         macros.  Colorize error:, warning: etc. strings and also the location
29665         string.
29666         (diagnostic_show_locus): Colorize the caret line.
29667         * pretty-print.c: Include diagnostic-color.h.
29668         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
29669         inside of %< %> quotes or quoted through q format modifier.
29671 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29673         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
29675 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29677         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
29678         code in CC_NZ mode.
29679         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
29680         pattern.
29682 2013-04-11  Marek Polacek  <polacek@redhat.com>
29684         PR tree-optimization/48184
29685         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
29687 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
29689         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
29690         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
29691         (skip_simple_arithmetic): Tidy up.
29692         * tree.h (skip_simple_constant_arithmetic): Declare.
29694 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29696         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
29698 2013-04-11  Richard Biener  <rguenther@suse.de>
29700         * tree-vect-loop.c (get_initial_def_for_induction): Properly
29701         generate vector constants.
29703 2013-04-11  Richard Biener  <rguenther@suse.de>
29705         PR tree-optimization/56878
29706         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
29707         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
29708         New function.
29709         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29710         Prefer to align the DR with the most invariant base address.
29712 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29714         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
29715         comment.
29717 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
29719         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
29720         floating-point vector comparisons against 0.
29722 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
29724         PR tree-optimization/56899
29725         * fold-const.c (extract_muldiv_1): Apply distributive law
29726         only if TYPE_OVERFLOW_WRAPS (ctype).
29728 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
29730         PR target/56124
29731         * ira-costs.c (scan_one_insn): Check whether the source rtx of
29732         loading has side effect.
29734 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
29736         * config/sparc/sparc.c: Include tree-pass.h.
29737         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
29738         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
29739         head of file.  Change return type.  Split off gate function.
29740         (sparc_gate_work_around_errata): New function.
29741         (pass_work_around_errata): New pass definition.
29742         (insert_pass_work_around_errata) New pass insert definition to
29743         insert pass_work_around_errata just after delayed-branch scheduling.
29744         (sparc_option_override): Insert the pass.
29745         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
29747 2013-04-10  David S. Miller  <davem@davemloft.net>
29749         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
29750         or -mcpu=hypersparc.
29752         * target.def (cstore_mode): New hook.
29753         * target.h: Include insn-codes.h
29754         * targhooks.c: Likewise.
29755         (default_cstore_mode): New function.
29756         * targhooks.h: Declare it.
29757         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
29758         * doc/tm.texi: Rebuild.
29759         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
29760         target hook, rather than inspecting the insn_data.
29761         * config/sparc/sparc.c (sparc_cstore_mode): New function.
29762         (TARGET_CSTORE_MODE): Redefine.
29763         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
29764         result patterns.
29765         * config/sparc/predicates.md (cstore_result_operand): New special
29766         predicate.
29767         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
29768         Use it for operand 0.
29769         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
29770         (*snesi_special): Likewise.
29771         (*snesi_zero): Likewise.
29772         (*seqsi_zero): Likewise.
29773         (*sltu_insn): Likewise.
29774         (*sgeu_insn): Likewise.
29775         (*seqdi_special): Make operand 0 and comparison operation be of
29776         DImode.
29777         (*snedi_special): Likewise.
29778         (*snedi_special_vis3): Likewise.
29779         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
29780         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
29781         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
29782         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
29783         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
29784         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
29785         (*sltu_extend_sp64): Likewise.
29786         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
29787         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
29788         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
29789         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
29790         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
29792 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
29794         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
29795         (aarch64_start_file): Use the new function.
29797 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29798             Jason Merrill  <jason@redhat.com>
29800         * common.opt: Add -gdwarf.
29801         * opts.c (common_handle_option): Handle it.
29802         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
29804 2013-04-10  Richard Biener  <rguenther@suse.de>
29806         * passes.c (execute_todo): Do not call ggc_collect conditional here.
29807         (execute_one_ipa_transform_pass): But unconditionally here.
29808         (execute_one_pass): And here.
29809         (init_optimization_passes): Remove reload pass.
29810         * tree-pass.h (TODO_ggc_collect): Remove.
29811         (pass_reload): Likewise.
29812         * ira.c (do_reload): Merge into ...
29813         (ira): ... this.
29814         (rest_of_handle_reload): Remove.
29815         (pass_reload): Likewise.
29816         * config/i386/i386.c (ix86_option_override): Refer to ira instead
29817         of reload for vzeroupper pass placement.
29818         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
29819         and todo_flags_finish of all passes.
29821 2013-04-10  Richard Biener  <rguenther@suse.de>
29823         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
29824         first_const_oprnd field, rename first_def_type to first_op_type.
29825         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
29826         (vect_get_and_check_slp_defs): Always use the type of the
29827         operand.  Allow mixed vect_external_def, vect_constant_def types.
29828         (vect_get_constant_vectors): Handle mixed vect_external_def,
29829         vect_constant_def types.
29831 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
29833         PR tree-optimization/55524
29834         * tree-ssa-math-opts.c
29835         (convert_mult_to_fma): Don't use an fms construct
29836         when we don't have an fms operation, but fnma, and it looks
29837         likely that we'll be able to use the latter.
29839 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
29841         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
29842         function.
29843         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
29844         inline fail caused by overwritable functions.
29846 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
29848         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
29849         unnecessary bits in the constant power of two case.
29851 2013-04-10  Richard Biener  <rguenther@suse.de>
29853         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
29854         broken code swapping operands.
29855         (vect_build_slp_tree): Do not compute load permutations here.
29856         (vect_analyze_slp_instance): Compute load permutations here,
29857         after building the SLP tree.
29859 2013-04-09  Christian Bruel  <christian.bruel@st.com>
29861         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
29862         of next/prev_real_insn.
29864 2013-04-09  Jan Hubicka  <jh@suse.cz>
29866         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
29867         Drop aliased parameter.
29868         (function_and_variable_visibility): Do not handle alias pairs.
29869         * cgraph.c (varpool_externally_visible_p): Update prototype.
29870         * varpool.c (varpool_add_new_variable): Update.
29872 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29874         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
29876 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
29878         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
29880         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
29882 2013-04-09  Marek Polacek  <polacek@redhat.com>
29884         PR tree-optimization/48762
29885         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
29887 2013-04-09  Richard Biener  <rguenther@suse.de>
29889         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
29890         dealing with cost.
29891         (vect_build_slp_tree): Likewise.
29892         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
29893         calculating the cost of a SLP instance.
29894         (vect_analyze_slp_instance): Use it from here, after building
29895         the SLP tree.
29897 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
29899         PR middle-end/56883
29900         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
29901         expand_omp_for_static_chunk): Use simple_p = true in
29902         force_gimple_operand_gsi calls when assigning to addressable decls.
29904 2013-04-09  Jeff Law  <law@redhat.com>
29906         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
29907         when the boolean was created by converting a wider object which
29908         had a boolean range.
29910 2013-04-09  Richard Biener  <rguenther@suse.de>
29912         * tree-vectorizer.h (slp_void_p): Remove.
29913         (slp_tree): Typedef before _slp_tree declaration.
29914         (struct _slp_tree): Use a vector of slp_tree as children.
29915         (vect_get_place_in_interleaving_chain): Remove.
29916         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
29917         Move ...
29918         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
29919         and make static.
29920         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
29921         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
29922         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
29923         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
29924         Use slp_node instead of slp_void_p and adjust.
29926 2013-04-09  Richard Biener  <rguenther@suse.de>
29928         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
29929         work that is not necessary.
29931 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
29933         PR tree-optimization/56854
29934         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
29935         forward into clobber stmts if it would change MEM_REF lhs into
29936         non-MEM_REF.
29938 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
29940         * tree.c (type_hash_lookup, type_hash_add): Make static.
29941         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
29943 2013-04-09  Richard Biener  <rguenther@suse.de>
29945         * tree.h (unsave_expr_now): Remove.
29946         * tree-inline.c (mark_local_for_remap_r): Remove.
29947         (unsave_expr_1): Likewise.
29948         (unsave_r): Likewise.
29949         (unsave_expr_now): Likewise.
29950         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
29951         (propagate_tree_value): Likewise.
29953 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
29955         * doc/rtl.texi (sequence): Rewrite documentation to match the
29956         current use of SEQUENCE rtl objects.
29957         * rtl.def (SEQUENCE): Likewise.
29959         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
29960         Update documentation.
29961         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
29962         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
29964         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
29966 2013-04-08  Teresa Johnson  <tejohnson@google.com>
29968         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
29969         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
29970         methods.
29971         (estimate_edge_size_and_time): Add comment to suggest using rounding
29972         methods.
29973         (estimate_node_size_and_time): Ditto.
29974         (remap_edge_change_prob): Use helper rounding divide methods.
29975         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
29976         (gimple_mod_pow2_value_transform): Ditto.
29977         (gimple_mod_subtract_transform): Ditto.
29978         (gimple_ic_transform): Ditto.
29979         (gimple_stringops_transform): Ditto.
29980         * stmt.c (conditional_probability): Ditto.
29981         (emit_case_dispatch_table): Ditto.
29982         * lto-cgraph.c (merge_profile_summaries): Ditto.
29983         * tree-optimize.c (execute_fixup_cfg): Ditto.
29984         * cfgcleanup.c (try_forward_edges): Ditto.
29985         * cfgloopmanip.c (scale_loop_profile): Ditto.
29986         (loopify): Ditto.
29987         (duplicate_loop_to_header_edge): Ditto.
29988         (lv_adjust_loop_entry_edge): Ditto.
29989         * tree-vect-loop.c (vect_transform_loop): Ditto.
29990         * profile.c (compute_branch_probabilities): Ditto.
29991         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
29992         * lto-streamer-in.c (input_cfg): Ditto.
29993         * gimple-streamer-in.c (input_bb): Ditto.
29994         * ipa-cp.c (update_profiling_info): Ditto.
29995         (update_specialized_profile): Ditto.
29996         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
29997         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
29998         rounding methods.
29999         * sched-rgn.c (compute_dom_prob_ps): Ditto.
30000         (compute_trg_info): Ditto.
30001         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
30002         (purge_dead_edges): Ditto.
30003         * loop-unswitch.c (unswitch_loop): Ditto.
30004         * cgraphclones.c (cgraph_clone_edge): Ditto.
30005         (cgraph_clone_node): Ditto.
30006         * tree-inline.c (copy_bb): Ditto.
30007         (copy_edges_for_bb): Ditto.
30008         (initialize_cfun): Ditto.
30009         (copy_cfg_body): Ditto.
30010         (expand_call_inline): Ditto.
30012 2013-04-08  Kai Tietz  <ktietz@redhat.com>
30014         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
30015         TARGET_CYGWIN64 by TARGET_64BIT.
30017 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
30019         * config/epiphany/epiphany.md (GPR_1): New constant.
30020         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
30021         * config/epiphany/epiphany.c (gen_compare_reg):
30022         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
30023         is already in place.
30024         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
30025         Don't require being called during rtl expansion; If y operlaps r0,
30026         return 0.
30027         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
30028         (epiphany_expand_epilogue): Likewise.
30030         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
30031         Don't use CC_FPmode for ORDERED / UNORDERED.
30032         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
30034         * config/epiphany/constraints.md (CnL): New constraint.
30035         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
30036         * config/epiphany/predicates.md (add_operand): Allow 1024.
30038         * config/epiphany/epiphany.md (logical_op): New code iterator.
30039         (op_mnc): New code attribute.
30040         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
30041         (mov_f+1, mov_f+2): New peephole2 patterns.
30043         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
30044         (cstoresi4): Also allow re-use of zero result when doing a NE
30045         comparison to a non-zero operand.
30046         Use (clobber (scratch)) for first insn if the gpr output is not needed.
30048         * config/epiphany/epiphany.md (<insn_opname>v2si3):
30049         Use gen_addsi3_i / gen_subsi3_i.
30051 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
30053         PR c++/34949
30054         PR c++/50243
30055         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
30056         contain anything but clobbers, at most one __builtin_stack_restore,
30057         optionally debug stmts and final resx, and if it has at least one
30058         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
30059         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
30060         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
30061         which isn't defaut definition, remove them.
30062         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
30063         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
30064         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
30065         with MEM_REF LHS with SSA_NAME address.
30067 2013-04-08  Jeff Law  <law@redhat.com>
30069         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
30071 2013-04-08  Richard Biener  <rguenther@suse.de>
30073         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
30074         extra newline.
30075         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
30076         determined vector type.
30077         (vect_analyze_data_refs): Likewise.
30078         (vect_get_new_vect_var): Adjust.
30079         (vect_create_destination_var): Preserve SSA name versions.
30080         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
30081         not dump anything here.
30083 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
30085         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
30086         Add member lr_slot_known.
30087         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
30088         if necessary.
30089         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
30090         Remove code that sets lr_slot_offset according to what a previous
30091         version of epiphany_emit_save_restore used to do.
30092         (epiphany_emit_save_restore): When doing an lr save or restore,
30093         set/verify lr_slot_known and lr_slot_offset.
30095 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
30097         PR target/54338
30098         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
30099         in ALL_REGS.
30101 2013-04-08  Richard Biener  <rguenther@suse.de>
30103         * alias.c (find_base_term): Fix thinko in previous change.
30105 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
30107         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
30108         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
30109         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
30110         if possible to compute val.
30111         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
30112         For QImode integers don't require anything about precision.  Use
30113         const_with_all_bytes_same to find out if the constant doesn't have
30114         repeated bytes in it.
30116 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30118         * config/s390/s390.c (s390_expand_insv): Only accept insertions
30119         within mode size.
30121 2013-04-08  Marek Polacek  <polacek@redhat.com>
30123         PR rtl-optimization/48182
30124         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
30125         value to 1.
30127 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30129         PR target/55487
30130         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
30131         nuses, make sure we have a label.
30133 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30135         PR target/56843
30136         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
30137         (rs6000_emit_swdiv_low_precision): Remove.
30138         (rs6000_emit_swdiv): Rewrite to handle between one and four
30139         iterations of Newton-Raphson generally; modify required number of
30140         iterations for some cases.
30141         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
30143 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
30145         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
30146         set-but-unused variable.
30148         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
30149         basic blocks of released function bodies garbage-collectable.
30151         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
30152         (struct rtl_opt_pass): Add TODO_df_finish.
30154         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
30156 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30158         * config/arm/constraints.md (q): New constraint.
30159         * config/arm/ldrdstrd.md: New file.
30160         * config/arm/arm.md (ldrdstrd.md) New include.
30161         (arm_movdi): Use "q" instead of "r" constraint
30162         for double-word memory access.
30163         (movdf_soft_insn): Likewise.
30164         * config/arm/vfp.md (movdi_vfp): Likewise.
30165         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
30166         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
30167         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
30168         (mem_ok_for_ldrd_strd): Likewise.
30169         (output_move_double): Update assertion.
30171 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30173         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
30175 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30177         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
30178         define_insn_and_split.
30179         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
30181 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30183         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
30184         define_insn_and_split.
30185         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
30186         (shiftsi3_compare): New pattern.
30187         (rrx): New pattern.
30188         * config/arm/unspecs.md (UNSPEC_RRX): New.
30190 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30192         * config/arm/arm.md (negdi_extendsidi): New pattern.
30193         (negdi_zero_extendsidi): Likewise.
30195 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30197         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
30198         define_insn_and_split.
30199         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
30200         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
30202 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30204         * config/arm/arm.md (arm_subdi3): Convert define_insn into
30205         define_insn_and_split.
30206         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
30207         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
30209 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30211         * config/arm/arm.md (subsi3_carryin): New pattern.
30212         (subsi3_carryin_const): Likewise.
30213         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
30214         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
30216 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30218         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
30220 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
30222         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
30223         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
30225 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30227         * config/arm/arm.c (arm_expand_builtin): Change fcode
30228         type to unsigned int.
30230 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30232         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
30234 2013-04-04  Ian Lance Taylor  <iant@google.com>
30236         * doc/standards.texi (Standards): The Go frontend supports the Go 1
30237         language standard.
30239 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
30241         PR middle-end/56729
30242         * df-scan.c (df_insn_delete): Disable failing assert.
30244 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30246         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
30247         New function prototype.
30248         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
30249         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
30250         (arm_builtin_vectorized_function): New function.
30252 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30254         * config/arm/arm_neon_builtins.def: New file.
30255         * config/arm/arm.c (neon_builtin_data): Move contents to
30256         arm_neon_builtins.def.
30257         (enum arm_builtins): Include neon builtin definitions.
30258         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
30259         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
30261 2013-04-04  Marek Polacek  <polacek@redhat.com>
30263         PR tree-optimization/48186
30264         * predict.c (maybe_hot_frequency_p): Return false if
30265         HOT_BB_FREQUENCY_FRACTION is 0.
30266         (cgraph_maybe_hot_edge_p): Likewise.
30268 2013-04-04  Richard Biener  <rguenther@suse.de>
30270         PR tree-optimization/56826
30271         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
30272         more accurately.
30274 2013-04-04  Richard Biener  <rguenther@suse.de>
30276         PR tree-optimization/56213
30277         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
30278         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
30280 2013-04-04  Richard Biener  <rguenther@suse.de>
30282         PR tree-optimization/56837
30283         * tree-loop-distribution.c (classify_partition): For non-zero
30284         values require that the value has the same precision as its
30285         mode to be useful as memset value.
30287 2013-04-03  Nick Clifton  <nickc@redhat.com>
30289         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
30290         (fmssf4): Use fmsf.s on E3V5 architectures.
30291         (fnmasf4): Use fnmaf.s on E3V5 architectures.
30292         (fnmssf4): Use fnmsf.s on E3V5 architectures.
30294 2013-04-03  Jeff Law  <law@redhat.com>
30296         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
30297         (lra-eliminations.o): Likewise.
30299 2013-04-03  Teresa Johnson  <tejohnson@google.com>
30301         * gcov-io.c (compute_working_sets): Moved most of body of old
30302         compute_working_sets here from profile.c.
30303         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
30304         (gcov_working_set_t): Moved typedef here from basic-block.h
30305         (compute_working_set): Declare.
30306         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
30307         (get_working_sets): Renamed from compute_working_set,
30308         replace most of body with call to new compute_working_sets.
30309         (get_exec_counts): Replace call to compute_working_sets
30310         to get_working_sets.
30311         * profile.h (get_working_sets): Renamed from compute_working_set.
30312         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
30313         to get_working_sets.
30314         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
30315         * gcov-dump.c (dump_working_sets): New function.
30317 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
30319         * hwint.c (sext_hwi, zext_hwi): New functions.
30320         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
30321         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
30322         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
30323         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
30324         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
30325         (sext_hwi, zext_hwi): New functions.
30327 2013-04-03  Jeff Law  <law@redhat.com>
30329         PR tree-optimization/56799
30330         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
30331         back test for widening conversion erroneously dropped in prior change.
30333 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30335         PR target/56809
30336         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
30337         instead of next_real_insn.
30339 2013-04-03  Marek Polacek  <polacek@redhat.com>
30341         PR sanitizer/55702
30342         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
30344 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30346         PR target/56809
30347         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
30348         next_real_insn.
30349         (thumb1_output_casesi): Likewise.
30350         (thumb2_output_casesi): Likewise.
30352 2013-04-03  Richard Biener  <rguenther@suse.de>
30354         PR tree-optimization/56817
30355         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
30356         Split out ...
30357         (tree_unroll_loops_completely_1): ... new function to manually
30358         walk the loop tree, properly defering outer loops of unrolled
30359         loops to later iterations.
30361 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30363         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
30364         (vectorizable_load): Likewise.
30365         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
30366         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
30368 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30370         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
30371         BIT_FIELD_REF.
30373 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30375         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
30377 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
30379         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
30381 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30383         PR tree-optimization/56790
30384         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
30385         folding.
30387 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
30389         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
30390         Handle VEC_MERGE.
30391         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
30392         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
30393         equal arguments.
30395 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
30397         PR c/19449
30398         * tree.h (force_folding_builtin_constant_p): New decl.
30399         * builtins.c (force_folding_builtin_constant_p): New variable.
30400         (fold_builtin_constant_p): Fold immediately also if
30401         force_folding_builtin_constant_p.
30403 2013-04-03  Richard Biener  <rguenther@suse.de>
30405         PR tree-optimization/56812
30406         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
30407         DRs of the same interleaving chain are independent.
30409 2013-04-02  Jason Merrill  <jason@redhat.com>
30411         * gdbinit.in (pbb): Use debug fn.
30413 2013-04-02  Lawrence Crowl  <crowl@google.com>
30415         * sese.h (struct ivtype_map_elt_s): Remove unused.
30416         (extern debug_ivtype_map): Remove unused.
30417         (extern eq_ivtype_map_elts): Remove unused.
30418         * sese.c (debug_ivtype_map): Removed unused.
30419         (debug_ivtype_map_1): Removed unused.
30420         (debug_ivtype_elt): Remove unused.
30421         (eq_ivtype_map_elts): Remove unused.
30423 2013-04-02  Kai Tietz  <ktietz@redhat.com>
30425         PR target/52790
30426         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
30427         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
30428         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
30429         function.
30430         (legitimize_pe_coff_symbol): Likewise.
30431         (is_imported_p): New helper-function.
30432         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
30433         for Windows x64 targets.
30434         (ix86_expand_prologue): Optimize for pe-coff targets.
30435         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
30436         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
30437         medium/large code-model.
30438         (legitimize_pic_address): Likewise.
30439         (legitimize_tls_address): Likewise.
30440         (ix86_expand_call): Likewise.
30441         (x86_output_mi_thunk): Likewise.
30442         (get_dllimport_decl): Add new beimport argument.
30443         (construct_plt_address): Don't assert for x64 pe-coff targets.
30444         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
30445         targets.
30446         (SYMBOL_FLAG_STUBVAR): New macro.
30447         (SYMBOL_REF_STUBVAR_P): Likewise.
30448         * config/i386/winnt.c (stub_list): New structure.
30449         (stub_head): New local variable.
30450         (i386_pe_record_stub): New function.
30451         (i386_pe_file_end): Emit refptr-stubs.
30453 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
30455         PR rtl-optimization/56745
30456         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
30457         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
30459         PR c++/34949
30460         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
30461         and both of them are MEM_REFs, just compare first argument for
30462         equality and attempt to deal even with differing offsets.
30464         PR c++/34949
30465         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
30466         of gimple_clobber_p to be MEM_REF.
30467         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
30468         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
30469         after gimplification.
30470         * asan.c (get_mem_ref_of_assignment): Don't instrument
30471         gimple_clobber_p stmts.
30472         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
30473         gimple_clobber_p stmt if they have MEM_REF lhs and
30474         are dead because of another gimple_clobber_p stmt.
30475         * tree-ssa-live.c (clear_unused_block_pointer): Treat
30476         gimple_clobber_p stmts like debug stmts.
30477         (remove_unused_locals): Remove clobbers with MEM_REF lhs
30478         that refer to unused VAR_DECLs or uninitialized values.
30479         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
30480         gimple_clobber_p stmts if they refer to removed parameters.
30481         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
30482         formatting.
30484 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
30486         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
30487         using SWI48 mode attribute.
30489 2013-04-02  Wei Mi  <wmi@google.com>
30491         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
30492         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
30493         *<rotate_insn><mode>3_mask in i386.md.
30495 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
30497         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
30499 2013-04-02  Richard Biener  <rguenther@suse.de>
30501         PR tree-optimization/56778
30502         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30503         Runtime alias tests are not supported for gather loads.
30504         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
30505         stmts referenced from SSA operands before updating SSA form.
30507 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
30508             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30510         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
30511         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
30512         * config/arm/cortex-a53.md: New file.
30513         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
30514         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
30515         * config/arm/arm.c (arm_issue_rate): Likewise.
30516         * config/arm/arm-tune.md: Regenerate
30517         * config/arm/arm-tables.opt: Regenerate.
30518         * config/arm/arm-cores.def: Add cortex-a53.
30520 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
30522         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
30523         non-static link.
30525 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30527         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
30528         scalar load/store operations using B/H registers.
30529         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
30531 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30533         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
30534         scalar move.
30535         * config/aarch64/aarch64.c
30536         (aarch64_simd_scalar_immediate_valid_for_move): New.
30537         * config/aarch64/aarch64-protos.h
30538         (aarch64_simd_scalar_immediate_valid_for_move): New.
30539         * config/aarch64/constraints.md (Dh, Dq): New.
30540         * config/aarch64/iterators.md (hq): New.
30542 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
30544         * reorg.c (get_branch_condition): Deal with conditional returns.
30545         (fill_simple_delay_slots): Remove dead code dealing with jumps.
30547 2013-04-01  Wei Mi  <wmi@google.com>
30549         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
30550         Truncate operand 2 using %b asm operand modifier.
30551         (*<shift_insn><mode>3_mask): Ditto.
30552         (*<rotate_insn><mode>3_mask): Ditto.
30554 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
30556         PR middle-end/56798
30557         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
30559 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
30561         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
30562         of next_real_insn.
30563         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
30565 2013-03-30  Lawrence Crowl  <crowl@google.com>
30567         * dse.c (clear_alias_sets): Remove never set.
30568         (disqualified_clear_alias_sets): Remove never set.
30569         (clear_alias_mode_pool): Remove never set.
30570         (dse_step0): Remove condition that is never true.
30571         (canon_address): Remove condition that is never true.
30572         (dse_step7): Remove condition that is never true.
30573         (rest_of_handle_dse): Remove condition that is never true.
30574         (rest_of_handle_dse::did_global): Remove never read from above.
30575         (dse_step2_spill): Remove never called from above.
30576         (dse_step5_spill): Remove never called from above.
30578 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
30580         * doc/md.texi (Standard Names) <casesi>: Update documentation for
30581         JUMP_TABLE_DATA changes.
30582         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
30583         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
30584         (Insns) <jump_table_data>: New entry.
30585         * doc/tm.texi: Regenerate.
30587         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
30589         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
30590         for table jump at the end of a basic block using tablejump_p.
30591         * targhooks.c (default_invalid_within_doloop): Likewise.
30592         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
30593         target hook implementation that is identical to the default hook.
30594         (rs6000_invalid_within_doloop): Remove.
30596         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
30597         unused variable from tablejump_p call.
30599         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
30600         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
30601         (INSN_DELETED_P): Likewise.
30602         (emit_jump_table_data): New prototype.
30603         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
30604         after 4th as unused.
30605         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
30606         * sched-vis.c (print_insn): Likewise.
30607         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
30608         insn for compatibility with back ends that use next_active_insn to
30609         identify jump table data.
30610         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
30611         (remove_insn): Likewise.
30612         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
30613         to be emitted.
30614         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
30615         (emit_jump_table_data): New function.
30617         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
30618         basic block, a JUMP_TABLE_DATA never is.
30619         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
30620         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
30621         off from code handling real insns.
30622         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
30623         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
30624         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
30625         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
30626         is not a NONDEBUG_INSN_P.
30627         * ira-costs.c (scan_one_insn): Likewise.
30628         * jump.c (mark_all_labels): Likewise.
30629         (mark_jump_label_1): Likewise.
30630         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30631         * lra.c (get_insn_freq): Expect all insns reaching here to be in
30632         a basic block.
30633         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
30634         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
30635         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
30636         JUMP_TABLE_DATA_P insns.
30637         (calculate_elim_costs_all_insns): Likewise.
30638         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
30639         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
30640         (delete_output_reload): Code style fixups.
30641         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
30642         insn flags on this non-insn.
30643         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
30644         as scheduling barriers, for pre-change compatibility.
30645         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
30646         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
30648         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
30649         redundant JUMP_TABLE_DATA_P test.
30650         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
30651         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30652         (frv_for_each_packet): Likewise.
30653         * config/i386/i386.c (min_insn_size): Likewise.
30654         (ix86_avoid_jump_mispredicts): Likewise.
30655         * config/m32r/m32r.c (m32r_is_insn): Likewise.
30656         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
30657         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30658         (mips16_insn_length): Robustify.
30659         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
30660         (mips16_split_long_branches): Likewise.
30661         * config/pa/pa.c (pa_combine_instructions): Likewise.
30662         * config/rs6000/rs6000.c (get_next_active_insn): Treat
30663         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
30664         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
30665         as contributing to pool range lengths.
30666         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
30667         Remove redundant JUMP_TABLE_DATA_P test.
30668         (sh_loop_align): Likewise.
30669         (split_branches): Likewise.
30670         (sh_insn_length_adjustment): Likewise.
30671         * config/spu/spu.c (get_branch_target): Likewise.
30673 2013-03-29  Jan Hubicka  <jh@suse.cz>
30675         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
30676         gcov streaming; stream hot bb threshold to ltrans.
30677         * predict.c (get_hot_bb_threshold): Break out from ....
30678         (maybe_hot_count_p): ... here.
30679         (set_hot_bb_threshold): New function.
30680         * lto-section-in.c (lto_section_name): Add profile.
30681         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
30682         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
30683         and data-streamer.h
30684         (histogram_entry): New structure.
30685         (histogram, histogram_pool): New global vars.
30686         (histogram_hash): New structure.
30687         (histogram_hash::hash): New method.
30688         (histogram_hash::equal): Likewise.
30689         (account_time_size): New function.
30690         (cmp_counts): New function.
30691         (dump_histogram): New function.
30692         (ipa_profile_generate_summary): New function.
30693         (ipa_profile_write_summary): New function.
30694         (ipa_profile_read_summary): New function.
30695         (ipa_profile): Decide on threshold.
30696         (pass_ipa_profile): Add ipa_profile_write_summary and
30697         ipa_profile_read_summary.
30698         * Makefile.in (ipa.o): Update dependencies.
30699         * lto-streamer.h (LTO_section_ipa_profile): New section.
30701 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
30703         * tree.h (VAR_P): New.
30705 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
30707         PR lto/56777
30708         * doc/invoke.texi ([-fwhole-program]): Fix typo.
30710 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
30712         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
30713         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30714         (control_flow_insn_p): Likewise.
30715         * cfgrtl.c (duplicate_insn_chain): Likewise.
30716         * final.c (get_attr_length_1): Likewise.
30717         (shorten_branches): Likewise.
30718         (final_scan_insn): Likewise.
30719         * function.c (instantiate_virtual_regs): Likewise.
30720         * gcse.c (insert_insn_end_basic_block): Likewise.
30721         * ira-costs.c (scan_one_insn): Likewise.
30722         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30723         * lra.c (check_rtl): Likewise.
30724         * reload1.c (elimination_costs_in_insn): Likewise.
30725         * reorg.c (follow_jumps): Likewise.
30727         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
30728         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30729         (thumb_far_jump_used_p): Likewise.
30730         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
30731         (workaround_speculation): Likewise.
30732         (add_sched_insns_for_speculation): Likewise.
30733         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
30734         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30735         (frv_for_each_packet): Likewise.
30736         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
30737         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
30738         (final_emit_insn_group_barriers): Likewise.
30739         * config/m32r/m32r.c (m32r_is_insn): Likewise.
30740         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30741         (mips16_insn_length): Likewise.
30742         * config/pa/pa.c (pa_reorg): Likewise.
30743         (pa_combine_instructions): Likewise.
30744         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
30745         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
30746         (sh_reorg): Likewise.
30747         (split_branches): Likewise.
30748         * config/spu/spu.c (get_branch_target): Likewise.
30750         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
30751         JUMP_TABLE_DATA_P.
30753 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
30755         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
30756         Fix declaration name.
30758 2013-03-28  Lawrence Crowl  <crowl@google.com>
30760         * graphds.h (struct graph.indicies): Remove unused.
30761         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
30762         (SCOP_ORIGINAL_PDDRS): Remove unused.
30763         * sese.h (extern insert_loop_close_phis): Removed unused.
30764         (extern insert_guard_phis): Removed unused.
30765         (extern ivtype_map_elt_info): Removed unused.
30766         (new_ivtype_map_elt): Removed unused.
30767         * sese.c (ivtype_map_elt_info): Removed unused.
30769 2013-03-28  Lawrence Crowl  <crowl@google.com>
30771         * Makefile.in: Add several missing include dependences.
30772         (DUMPFILE_H): New.
30773         (test-dump.o): New.  This object is not added to any executable,
30774         but is present for ad-hoc testing.
30775         * bitmap.c
30776         (debug (const bitmap_head_def &)): New.
30777         (debug (const bitmap_head_def *)): New.
30778         * bitmap.h
30779         (extern debug (const bitmap_head_def &)): New.
30780         (extern debug (const bitmap_head_def *)): New.
30781         * cfg.c
30782         (debug (edge_def &)): New.
30783         (debug (edge_def *)): New.
30784         * cfghooks.c
30785         (debug (basic_block_def &)): New.
30786         (debug (basic_block_def *)): New.
30787         * dumpfile.h
30788         (dump_node (const_tree, int, FILE *)): Correct source file.
30789         * dwarf2out.c
30790         (debug (die_struct &)): New.
30791         (debug (die_struct *)): New.
30792         * dwarf2out.h
30793         (extern debug (die_struct &)): New.
30794         (extern debug (die_struct *)): New.
30795         * gimple-pretty-print.c
30796         (debug (gimple_statement_d &)): New.
30797         (debug (gimple_statement_d *)): New.
30798         * gimple-pretty-print.h
30799         (extern debug (gimple_statement_d &)): New.
30800         (extern debug (gimple_statement_d *)): New.
30801         * ira-build.c
30802         (debug (ira_allocno_copy &)): New.
30803         (debug (ira_allocno_copy *)): New.
30804         (debug (ira_allocno &)): New.
30805         (debug (ira_allocno *)): New.
30806         * ira-int.h
30807         (extern debug (ira_allocno_copy &)): New.
30808         (extern debug (ira_allocno_copy *)): New.
30809         (extern debug (ira_allocno &)): New.
30810         (extern debug (ira_allocno *)): New.
30811         * ira-lives.c
30812         (debug (live_range &)): New.
30813         (debug (live_range *)): New.
30814         * lra-int.h
30815         (debug (lra_live_range &)): New.
30816         (debug (lra_live_range *)): New.
30817         * lra-lives.c
30818         (debug (lra_live_range &)): New.
30819         (debug (lra_live_range *)): New.
30820         * omega.c
30821         (debug (omega_pb_d &)): New.
30822         (debug (omega_pb_d *)): New.
30823         * omega.h
30824         (extern debug (omega_pb_d &)): New.
30825         (extern debug (omega_pb_d *)): New.
30826         * print-rtl.c
30827         (debug (const rtx_def &)): New.
30828         (debug (const rtx_def *)): New.
30829         * print-tree.c
30830         (debug_tree (tree): Move within file.
30831         (debug_raw (const tree_node &)): New.
30832         (debug_raw (const tree_node *)): New.
30833         (dump_tree_via_hooks (const tree_node *, int)): New.
30834         (debug (const tree_node &)): New.
30835         (debug (const tree_node *)): New.
30836         (debug_verbose (const tree_node &)): New.
30837         (debug_verbose (const tree_node *)): New.
30838         (debug_head (const tree_node &)): New.
30839         (debug_head (const tree_node *)): New.
30840         (debug_body (const tree_node &)): New.
30841         (debug_body (const tree_node *)): New.
30842         (debug_vec_tree (tree): Move and reimplement in terms of dump.
30843         (debug (vec<tree, va_gc> &)): New.
30844         (debug (vec<tree, va_gc> *)): New.
30845         * rtl.h
30846         (extern debug (const rtx_def &)): New.
30847         (extern debug (const rtx_def *)): New.
30848         * sbitmap.c
30849         (debug_raw (simple_bitmap_def &)): New.
30850         (debug_raw (simple_bitmap_def *)): New.
30851         (debug (simple_bitmap_def &)): New.
30852         (debug (simple_bitmap_def *)): New.
30853         * sbitmap.h
30854         (extern debug (simple_bitmap_def &)): New.
30855         (extern debug (simple_bitmap_def *)): New.
30856         (extern debug_raw (simple_bitmap_def &)): New.
30857         (extern debug_raw (simple_bitmap_def *)): New.
30858         * sel-sched-dump.c
30859         (debug (vinsn_def &)): New.
30860         (debug (vinsn_def *)): New.
30861         (debug_verbose (vinsn_def &)): New.
30862         (debug_verbose (vinsn_def *)): New.
30863         (debug (expr_def &)): New.
30864         (debug (expr_def *)): New.
30865         (debug_verbose (expr_def &)): New.
30866         (debug_verbose (expr_def *)): New.
30867         (debug (vec<rtx> &)): New.
30868         (debug (vec<rtx> *)): New.
30869         * sel-sched-dump.h
30870         (extern debug (vinsn_def &)): New.
30871         (extern debug (vinsn_def *)): New.
30872         (extern debug_verbose (vinsn_def &)): New.
30873         (extern debug_verbose (vinsn_def *)): New.
30874         (extern debug (expr_def &)): New.
30875         (extern debug (expr_def *)): New.
30876         (extern debug_verbose (expr_def &)): New.
30877         (extern debug_verbose (expr_def *)): New.
30878         (extern debug (vec<rtx> &)): New.
30879         (extern debug (vec<rtx> *)): New.
30880         * sel-sched-ir.h
30881         (_list_iter_cond_expr): Make inline instead of static.
30882         * sreal.c
30883         (debug (sreal &)): New.
30884         (debug (sreal *)): New.
30885         * sreal.h
30886         (extern debug (sreal &)): New.
30887         (extern debug (sreal *)): New.
30888         * tree.h
30889         (extern debug_raw (const tree_node &)): New.
30890         (extern debug_raw (const tree_node *)): New.
30891         (extern debug (const tree_node &)): New.
30892         (extern debug (const tree_node *)): New.
30893         (extern debug_verbose (const tree_node &)): New.
30894         (extern debug_verbose (const tree_node *)): New.
30895         (extern debug_head (const tree_node &)): New.
30896         (extern debug_head (const tree_node *)): New.
30897         (extern debug_body (const tree_node &)): New.
30898         (extern debug_body (const tree_node *)): New.
30899         (extern debug (vec<tree, va_gc> &)): New.
30900         (extern debug (vec<tree, va_gc> *)): New.
30901         * tree-cfg.c
30902         (debug (struct loop &)): New.
30903         (debug (struct loop *)): New.
30904         (debug_verbose (struct loop &)): New.
30905         (debug_verbose (struct loop *)): New.
30906         * tree-dump.c: Add header dependence.
30907         * tree-flow.h
30908         (extern debug (struct loop &)): New.
30909         (extern debug (struct loop *)): New.
30910         (extern debug_verbose (struct loop &)): New.
30911         (extern debug_verbose (struct loop *)): New.
30912         * tree-data-ref.c
30913         (debug (data_reference &)): New.
30914         (debug (data_reference *)): New.
30915         (debug (vec<data_reference_p> &)): New.
30916         (debug (vec<data_reference_p> *)): New.
30917         (debug (vec<ddr_p> &)): New.
30918         (debug (vec<ddr_p> *)): New.
30919         * tree-data-ref.h
30920         (extern debug (data_reference &)): New.
30921         (extern debug (data_reference *)): New.
30922         (extern debug (vec<data_reference_p> &)): New.
30923         (extern debug (vec<data_reference_p> *)): New.
30924         (extern debug (vec<ddr_p> &)): New.
30925         (extern debug (vec<ddr_p> *)): New.
30926         * tree-ssa-alias.c
30927         (debug (pt_solution &)): New.
30928         (debug (pt_solution *)): New.
30929         * tree-ssa-alias.h
30930         (extern debug (pt_solution &)): New.
30931         (extern debug (pt_solution *)): New.
30932         * tree-ssa-alias.c
30933         (debug (_var_map &)): New.
30934         (debug (_var_map *)): New.
30935         (debug (tree_live_info_d &)): New.
30936         (debug (tree_live_info_d *)): New.
30937         * tree-ssa-alias.h
30938         (extern debug (_var_map &)): New.
30939         (extern debug (_var_map *)): New.
30940         (extern debug (tree_live_info_d &)): New.
30941         (extern debug (tree_live_info_d *)): New.
30943 2013-03-28  Jan Hubicka  <jh@suse.cz>
30945         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
30947 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
30949         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
30950         record only when desired or required.
30952 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
30954         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
30955         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
30957 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30959         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
30960         (*andsi3_compare0_uxtw): New pattern.
30961         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
30962         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
30964 2013-03-28  Jan Hubicka  <jh@suse.cz>
30966         * data-streamer-in.c (streamer_read_gcov_count): New function.
30967         * gimple-streamer-out.c: Include value-prof.h.
30968         (output_gimple_stmt): Output histogram.
30969         (output_bb): Use streamer_write_gcov_count.
30970         * value-prof.c: Include data-streamer.h
30971         (dump_histogram_value): Add HIST_TYPE_MAX.
30972         (stream_out_histogram_value): New function.
30973         (stream_in_histogram_value): New function.
30974         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
30975         (stream_out_histogram_value, stream_in_histogram_value): Declare.
30976         * data-streamer-out.c (streamer_write_gcov_count): New function.
30977         (streamer_write_gcov_count_stream): New function.
30978         * lto-cgraph.c (lto_output_edge): Update counter streaming.
30979         (lto_output_node): Likewise.
30980         (input_node, input_edge): Likewise.
30981         * lto-streamer-out.c (output_cfg): Update streaming.
30982         * lto-streamer-in.c (input_cfg): Likewise.
30983         * data-streamer.h (streamer_write_gcov_count,
30984         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
30985         * gimple-streamer-in.c: Include value-prof.h
30986         (input_gimple_stmt): Input histograms.
30987         (input_bb): Update profile streaming.
30989 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
30991         * genmodes.c (emit_max_int): New function.
30992         (emit_insn_modes_h): Added call to emit_max_function.
30993         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
30994         Added doc.
30995         * machmode.def: Fixed comment.
30997 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
30999         * combine.c (try_combine): Removed useless assert.
31000         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
31002 2013-03-28  Marek Polacek  <polacek@redhat.com>
31003             Richard Biener  <rguenther@suse.de>
31005         PR tree-optimization/56695
31006         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
31007         build signed result of a vector comparison.
31008         * tree-cfg.c (verify_gimple_comparison): Check that a result
31009         of a vector comparison has signed type.
31011 2013-03-28  Richard Biener  <rguenther@suse.de>
31013         PR tree-optimization/37021
31014         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
31015         do not restrict gaps between groups.
31016         * tree-vect-stmts.c (vectorizable_load): Properly account for
31017         a gap between groups.
31019 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
31021         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
31022         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
31023         is not enabled.
31025 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
31027         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
31028         * doc/extend.texi (Named Address Spaces): Ditto.
31029         (Variable Attributes): Ditto.
31031 2013-03-27  Kai Tietz  <ktietz@redhat.com>
31033         * config.build: Add support for cygwin x64 target.
31034         * config.gcc: Likewise.
31035         * config.host: Likewise.
31036         * configure.ac: Likewise
31037         * configure: Regenerated.
31039 2013-03-27  Kai Tietz  <ktietz@redhat.com>
31041         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
31042         * config/i386/t-cygwin-w64: New file.
31043         * config/i386/cygwin-w64.h: New file.
31044         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
31045         and add support for x64-cygwin target.
31046         (CPP_SPEC): Likewise.
31047         (CXX_WRAP_SPEC_LIST): Undefine before define.
31048         (LIBGCJ_SONAME): Use 15 as version.
31050 2013-03-27  Richard Biener  <rguenther@suse.de>
31052         PR tree-optimization/56716
31053         * tree-ssa-structalias.c (perform_var_substitution): Adjust
31054         dumping for ref nodes.
31056 2013-03-27  Martin Jambor  <mjambor@suse.cz>
31058         PR tree-optimization/55334
31059         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
31060         restricted pointers to arrays.
31062 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
31064         * Makefile.in (.SUFFIXES): Add .cc.
31065         (.c.o): Apply same recipe for implicit rule .cc.o.
31067 2013-03-27  Richard Biener  <rguenther@suse.de>
31069         PR tree-optimization/37021
31070         * tree-vect-data-refs.c (vect_check_strided_load): Allow
31071         REALPART/IMAGPART_EXPRs around the supported refs.
31072         * tree-ssa-structalias.c (find_func_aliases): Assume that
31073         floating-point values are not used to transfer pointers.
31075 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
31077         * target.def (TARGET_HAS_IFUNC_P): New target hook.
31078         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
31079         * doc/tm.texi: Regenerate.
31080         * targhooks.h (default_has_ifunc_p): New.
31081         * targhooks.c (default_has_ifunc_p): Ditto.
31082         * config/linux-protos.h: New file.
31083         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
31084         hook for linux which disables support of indirect functions in android.
31085         * config/linux-android.c: New file.
31086         * config/t-linux-android.c: Ditto.
31087         * config.gcc: Added new object file linux-android.o.
31088         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
31089         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
31090         * varasm.c (do_assemble_alias): Likewise.
31091         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
31092         doesn't support indirect functions.
31093         * configure: Regenerate.
31095 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
31097         PR target/56102
31098         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
31099         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
31100         mult-word mode.
31102 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31104         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
31106 2013-03-27  Terry Guo  <terry.guo@arm.com>
31108         * config/arm/arm-cores.def: Added core cortex-r7.
31109         * config/arm/arm-tune.md: Regenerated.
31110         * config/arm/arm-tables.opt: Regenerated.
31111         * doc/invoke.texi: Added entry for core cortex-r7.
31113 2013-03-27  Walter Lee  <walt@tilera.com>
31115         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
31116         double-decrement of next_scratch_regno.
31118 2013-03-27  Walter Lee  <walt@tilera.com>
31120         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
31121         input operands.
31122         (insn_v1mulus): Ditto.
31123         (insn_v2muls): Ditto.
31125 2013-03-27  Walter Lee  <walt@tilera.com>
31127         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
31128         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
31130 2013-03-27  Walter Lee  <walt@tilera.com>
31132         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
31133         (*sibcall_value): Ditto.
31135 2013-03-27  Walter Lee  <walt@tilera.com>
31137         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
31138         (insn_mnz_v8qi): ... this ...
31139         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
31140         vector equivalent.
31141         (insn_v<n>mnz): Replaced by ...
31142         (insn_v1mnz): ... this ...
31143         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
31144         equivalent.
31145         (insn_mz_<mode>): Replaced by ...
31146         (insn_mz_v8qi): ... this ...
31147         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
31148         vector equivalent.
31149         (insn_v<n>mz): Replaced by ...
31150         (insn_v1mz): ... this ...
31151         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
31152         equivalent.
31154 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
31156         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
31158 2013-03-26  Roland McGrath  <mcgrathr@google.com>
31160         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
31161         than fprintf with a non-constant, non-format string.
31163 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
31165         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
31166         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
31167         operand 0 predicate.
31168         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
31169         attribute.  Use general_x64nomem_operand as operand 1 predicate.
31170         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
31171         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
31172         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
31173         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
31174         (mov<mode>_insv_1): Remove expander.  Merge insn with
31175         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
31176         Use general_x64nomem_operand as operand 1 predicate.
31177         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
31178         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
31179         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
31180         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
31181         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
31182         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
31183         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
31184         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
31185         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
31186         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
31187         (general_x64nomem_operand): Ditto.
31189 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
31191         * config/rtems.opt: Add -pthread option.
31193 2013-03-26  Richard Biener  <rguenther@suse.de>
31195         * alias.c (find_base_term): Avoid redundant and not used recursion.
31196         (base_alias_check): Get the initial base term from the caller.
31197         (true_dependence_1): Compute and pass base terms to base_alias_check.
31198         (write_dependence_p): Likewise.
31199         (may_alias_p): Likewise.
31201 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
31203         * config/aarch64/aarch64.c (aarch64_classify_address): Support
31204         PC-relative load in SI modes and above only.
31206 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
31208         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
31209         * config/arm/iwmmxt.md (WCGR0): Update.
31210         (WCGR1, WCGR2, WCGR3): Likewise.
31212 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
31214         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
31215         Use x64 and nox64 isa attributes.
31217 2013-03-26  Richard Biener  <rguenther@suse.de>
31219         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
31220         alignment computations and rely on get_object_alignment_1
31221         for the !TYPE_P case.
31222         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
31224 2013-03-26  Walter Lee  <walt@tilera.com>
31226         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
31227         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
31229 2013-03-25  Jeff Law  <law@redhat.com>
31231         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
31232         check for INTEGRAL_TYPE_P that was missing due to checking in
31233         wrong version of prior patch.
31235 2013-03-25  Walter Lee  <walt@tilera.com>
31237         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
31238         TILEGX_INSN_SHUFFLEBYTES1.
31239         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
31240         shufflebytes1.
31241         (tilegx_builtins): Ditto.
31242         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
31244 2013-03-25  Walter Lee  <walt@tilera.com>
31246         * config/tilegx/tilegx.md (floatsisf2): New pattern.
31247         (floatunssisf2): New pattern.
31248         (floatsidf2): New pattern.
31249         (floatunssidf2): New pattern.
31251 2013-03-25  Walter Lee  <walt@tilera.com>
31253         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
31254         tests for constraint J, K, N, P.
31256 2013-03-25  Walter Lee  <walt@tilera.com>
31258         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
31259         Use indirect/pcrel encoding.
31260         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
31261         Ditto.
31263 2013-03-25  Steve Ellcey  <sellcey@mips.com>
31265         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
31266         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
31267         * config/mips/mips.c (mips_option_override): Set IMADD default.
31268         * config/mips/mips.h (PTF_AVOID_IMADD): New.
31269         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
31270         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
31271         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
31272         * doc/invoke.texi (-mimadd/-mno-imadd): New.
31274 2013-03-25  Jeff Law  <law@redhat.com>
31276         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
31277         slightly to avoid creating and folding useless trees.  Simplify
31278         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
31280 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
31282         * config/i386/i386.md (*zero_extendsidi2): Merge with
31283         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
31284         * config/i386/predicates.md (x86_64_zext_operand): Rename from
31285         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
31286         targets.  Clarify comment.
31288 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31290         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
31291         pass-through jump functions differently.
31292         (ipa_read_jump_function): Likewise.  Also use setter functions to set
31293         up jump functions.
31295 2013-03-25  Martin Jambor  <mjambor@suse.cz>
31297         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
31298         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
31299         process it.
31300         (ipa_get_indirect_edge_target): New function.
31301         (devirtualization_time_bonus): New parameter known_aggs, pass it to
31302         ipa_get_indirect_edge_target.  Update all callers.
31303         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
31304         ipa_get_indirect_edge_target_1 instead of calling
31305         ipa_get_indirect_edge_target.
31306         (create_specialized_node): Pass aggvlas to
31307         ipcp_discover_new_direct_edges.
31309 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31311         * config/arm/arm.md (f_sels, f_seld): New types.
31312         (*cmov<mode>): New pattern.
31313         * config/arm/predicates.md (arm_vsel_comparison_operator): New
31314         predicate.
31316 2013-03-25  Kai Tietz  <ktietz@redhat.com>
31318         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
31319         POSIX-printf for mingw-hosted  builds.
31321 2013-03-25  Richard Biener  <rguenther@suse.de>
31323         PR middle-end/56694
31324         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
31325         must-not-throw stmt location.
31327 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31329         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
31330         Emit load-acquire versions when acq is true.
31331         (arm_emit_store_exclusive): Add rel parameter.
31332         Emit store-release versions when rel is true.
31333         (arm_split_compare_and_swap): Use acquire-release instructions
31334         instead.
31335         of barriers when appropriate.
31336         (arm_split_atomic_op): Likewise.
31337         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
31338         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
31339         (VUNSPEC_SLX): Likewise.
31340         (VUNSPEC_LDA): Likewise.
31341         (VUNSPEC_STL): Likewise.
31342         * config/arm/sync.md (atomic_load<mode>): New pattern.
31343         (atomic_store<mode>): Likewise.
31344         (arm_load_acquire_exclusive<mode>): Likewise.
31345         (arm_load_acquire_exclusivesi): Likewise.
31346         (arm_load_acquire_exclusivedi): Likewise.
31347         (arm_store_release_exclusive<mode>): Likewise.
31349 2013-03-25  Catherine Moore  <clm@codesourcery.com>
31351         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
31352         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
31353         * config/mip/predicates.md (lwsp_swsp_operand,
31354         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
31355         sb16_operand, db4_operand, db7_operand, ib3_operand,
31356         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
31357         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
31358         andi16_operand): New predicates.
31359         * config/mips/mips.md (compression): New attribute.
31360         (enabled): New attribute.
31361         (length): Consider compression in computing length.
31362         (shift_compression): New code attribute.
31363         (*add<mode>3): New operands. Record compression.
31364         (sub<mode>3): Likewise.
31365         (one_cmpl<mode>2): Likewise.
31366         (*and<mode>3): Likewise.
31367         (*ior<mode>3): Likewise.
31368         (unnamed pattern for xor): Likewise.
31369         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
31370         (*<optab><mode>3): Likewise.
31371         (*mov<mode>_internal: Likewise.
31372         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
31373         (mips_unsigned_immediate_p): New.
31374         (umips_lwsp_swsp_address_p): New.
31375         (m16_based_address_p): New.
31376         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
31377         (mips_unsigned_immediate_p): New prototype.
31378         (lwsp_swsp_address_p): New prototype.
31379         (m16_based_address_p): New prototype.
31380         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
31381         (mips_signed_immediate_p): New function.
31382         (m16_based_address_p): New function.
31383         (lwsp_swsp_address_p): New function.
31384         (mips_print_operand_punctuation): Recognize short delay slot insns
31385         for microMIPS.add<mode>3"
31387 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31389         PR target/56720
31390         * config/arm/iterators.md (v_cmp_result): New mode attribute.
31391         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
31393 2013-03-25  Richard Biener  <rguenther@suse.de>
31395         PR tree-optimization/56689
31396         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
31397         any edge.
31399 2013-03-25  Richard Biener  <rguenther@suse.de>
31401         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
31402         of bitmap.
31403         (memory_references): Likewise.
31404         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
31405         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
31406         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
31407         (gather_mem_refs_in_loops): Fold into ...
31408         (analyze_memory_references): ... this.  Move initialization
31409         to tree_ssa_lim_initialize.
31410         (fill_always_executed_in): Rename to ...
31411         (fill_always_executed_in_1): ... this.
31412         (fill_always_executed_in): Move contains_call computation to
31413         this new function from ...
31414         (tree_ssa_lim_initialize): ... here.
31415         (tree_ssa_lim): Call fill_always_executed_in.
31417 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
31419         * postreload.c (reload_combine): Fix code detecting returns.
31421 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
31423         * function.c (emit_use_return_register_into_block): On cc0 targets,
31424         do not emit the sequence between cc0 setter and user.
31426 2013-03-25  Kai Tietz  <ktietz@redhat.com>
31428         * config/i386/predicates.md (local_symbolic_operand): Interpret
31429         dll-imported symbols as none-local.
31431 2013-03-25  Richard Biener  <rguenther@suse.de>
31433         * tree-ssa-loop-im.c (struct depend): Remove.
31434         (struct lim_aux_data): Make depends a vec of gimples.
31435         (free_lim_aux_data): Adjust.
31436         (add_dependency): Likewise.
31437         (set_level): Likewise.
31439 2013-03-25  Richard Biener  <rguenther@suse.de>
31441         PR middle-end/56434
31442         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
31443         the pointer returned by calls with ECF_MALLOC set.
31445 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
31447         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
31449 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
31451         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
31452         using MMXMODE mode iterator.
31453         (*move<mode>_internal): Merge with *movv2sf_internal and
31454         *movv2sf_internal_rex64 using MMXMODE mode iterator.
31456 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
31458         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
31459         (record_last_mem_set_info): Likewise.
31461         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
31462         of XNEWVEC followed by memset.
31463         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
31465 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
31467         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31468         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
31469         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
31470         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
31471         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
31472         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
31473         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
31474         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
31475         BARRIER_P instead of GET_CODE.
31477 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31479         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
31480         inaccuracy in the probing code.
31482         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
31483         (ctrapdi4): Likewise.
31485 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31487         * calls.c (expand_call): Add missing guard to code handling return
31488         of non-BLKmode structures in MSB.
31489         * function.c (expand_function_end): Likewise.
31491 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31493         * combine.c (try_combine): Adjust comment.  Do not add the set of
31494         insn #0 if the destination indirectly is set or dies in insn #2.
31495         Tidy up code to distribute a new note.
31497 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31499         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
31500         also for alternatives 16 and 17.
31502 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31504         * config/i386/sse.md (*mov<mode>_internal): Merge with
31505         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
31506         Emit insn template depending on type attribute.  Use
31507         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31508         movd instead of movq mnemonic for interunit moves.  Rewrite mode
31509         attribute calculation.  Remove unit attribute calculation.
31510         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
31511         Set prefix_data16 attribute for DImode ssemov types.
31512         Use Ym instead of y for SSE-MMX conversion alternatives.
31513         Reorder operand constraints.
31515 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
31517         * df.h (df_insn_delete): Adjust prototype.
31518         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
31519         and let it decide whether mark the basic block dirty.
31520         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
31521         * df-scan.c (df_insn_info_delete): New helper function, split
31522         off from df_insn_delete.
31523         (df_scan_free_bb_info): Use it.
31524         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
31525         Likewise.
31526         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
31527         that the insn is actually an insn and it has a non-NULL basic block.
31528         Do not mark basic block dirty if only deleting a DEBUG_INSN.
31530 2013-03-22  Richard Biener  <rguenther@suse.de>
31532         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
31533         dep_ref members.
31534         (mem_ref_alloc): Do not allocate them.
31535         (refs_independent_p): Do not query or maintain a cache.
31537 2013-03-22  Richard Biener  <rguenther@suse.de>
31539         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
31540         (gather_mem_refs_in_loops): Do not compute it.
31541         (analyze_memory_references): Do not allocate it.
31542         (tree_ssa_lim_finalize): Do not free it.
31543         (for_all_locs_in_loop): Do not query all_refs_in_loop.
31545 2013-03-22  Richard Biener  <rguenther@suse.de>
31547         * is-a.h (as_a): Use gcc_checking_assert.
31549 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
31551         * config/aarch64/aarch64.c (aarch64_print_operand): New
31552         format specifier for printing a constant in hex.
31553         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
31554         format specifier for printing second operand.
31556 2013-03-22  Richard Biener  <rguenther@suse.de>
31558         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
31559         bitmaps.
31560         (gather_mem_refs_in_loops): Perform store accumulation here.
31561         (create_vop_ref_mapping_loop): Remove.
31562         (create_vop_ref_mapping): Likewise.
31563         (analyze_memory_references): Initialize refs_stored_in_loop.
31564         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
31565         (record_indep_loop): Remove.
31566         (record_dep_loop): New function.
31567         (ref_indep_loop_p_1): Adjust to only walk over references
31568         in the loop, not its subloops.
31569         (ref_indep_loop_p): Rename to ...
31570         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
31571         maintaining a more fine-grained cache.
31572         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
31573         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
31575 2013-03-22  Richard Biener  <rguenther@suse.de>
31577         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
31578         (struct mem_ref): Make accesses_in_loop a vec of a vec of
31579         aggregate mem_ref_loc.
31580         (free_mem_ref_locs): Inline into ...
31581         (memref_free): ... this and adjust.
31582         (mem_ref_alloc): Adjust.
31583         (mem_ref_locs_alloc): Remove.
31584         (record_mem_ref_loc): Adjust.
31585         (get_all_locs_in_loop): Rewrite into ...
31586         (for_all_locs_in_loop): ... this iterator.
31587         (rewrite_mem_ref_loc): New functor.
31588         (rewrite_mem_refs): Use for_all_locs_in_loop.
31589         (sm_set_flag_if_changed): New functor.
31590         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
31591         (ref_always_accessed): New functor.
31592         (ref_always_accessed_p): Use for_all_locs_in_loop.
31594 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31596         * tree-pass.h (PROP_gimple_lvec): New.
31597         * passes.c (dump_properties): Handle PROP_gimple_lvec.
31598         (init_optimization_passes): Move pass_lower_vector.
31599         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
31600         PROP_gimple_lvec.
31601         (pass_lower_vector): Provide PROP_gimple_lvec.
31602         (pass_lower_vector_ssa): Likewise.
31603         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
31605 2013-03-21  Mark Wielaard  <mjw@redhat.com>
31607         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
31609 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
31611         * config/i386/i386.md (*movdi_internal): Disparage slightly
31612         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
31613         conversion alternatives.
31615 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
31617         PR middle-end/48087
31618         * diagnostic.def (DK_WERROR): New kind.
31619         * diagnostic.h (werrorcount): Define.
31620         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
31621         promoted to DK_ERROR, increment DK_WERROR counter instead of
31622         DK_ERROR counter.
31623         * toplev.c (toplev_main): Call print_ignored_options even if
31624         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
31625         even if just werrorcount is non-zero.
31627         PR debug/55608
31628         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
31629         on failure.
31630         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
31631         (string_cst_pool_decl): New function.
31632         (optimize_one_addr_into_implicit_ptr): New function.
31633         (resolve_addr_in_expr): Optimize DWARF location expression
31634         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
31635         which doesn't live in memory, but has DW_AT_location or
31636         DW_AT_const_value, or refers to a string literal, into
31637         DW_OP_GNU_implicit_pointer.
31638         (optimize_location_into_implicit_ptr): New function.
31639         (resolve_addr): If removing DW_AT_location of a variable because
31640         it was DW_OP_addr of address of the variable, but the variable doesn't
31641         live in memory, try to emit const value attribute for the initializer.
31643 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31645         * tree.h (VECTOR_TYPE_P): New macro.
31646         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
31647         TYPE_MODE): Use it.
31648         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
31649         VEC_COND_EXPR cannot be lvalues.
31650         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
31652 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31654         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
31655         Restrict the transformation to equal modes.
31657 2013-03-21  Richard Biener  <rguenther@suse.de>
31659         PR tree-optimization/39326
31660         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
31661         (MEM_ANALYZABLE): Adjust.
31662         (record_mem_ref_loc): Move bitmap ops ...
31663         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
31664         unanalyzable refs, do not record locations for it.
31665         (analyze_memory_references): Allocate ref zero as shared
31666         unanalyzable ref.
31667         (refs_independent_p): Do not test for unanalyzed mems here.
31668         (ref_indep_loop_p_1): Special-case disambiguation against
31669         the unanalyzed ref.
31670         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
31672 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
31674         * config/arm/arm-protos.h (tune_params): Add
31675         prefer_neon_for_64bits field.
31676         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
31677         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
31678         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
31679         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
31680         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
31681         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
31682         (arm_option_override): Handle -mneon-for-64bits new option.
31683         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
31684         (prefer_neon_for_64bits): Declare new variable.
31685         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
31686         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
31687         (arch_enabled): Handle new arch types. Remove support for onlya8
31688         and nota8.
31689         (one_cmpldi2): Use new arch names.
31690         (zero_extend<mode>di2, extend<mode>di2): Ditto.
31691         * config/arm/arm.opt (mneon-for-64bits): Add option.
31692         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
31693         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
31694         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
31695         of onlya8.
31696         * doc/invoke.texi (-mneon-for-64bits): Document.
31698 2013-03-21  Richard Biener  <rguenther@suse.de>
31700         PR tree-optimization/39326
31701         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
31702         (sort_bbs_in_loop_postorder_cmp): New function.
31703         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
31705 2013-03-21  Richard Biener  <rguenther@suse.de>
31707         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
31708         (vect_insert_into_interleaving_chain): Likewise.
31709         (vect_drs_dependent_in_basic_block): Inline ...
31710         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
31711         split out from ...
31712         (vect_analyze_data_ref_dependence): ... here.  Simplify.
31713         (vect_check_interleaving): Simplify.
31714         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
31715         (vect_slp_analyze_data_ref_dependences): ... this new function.
31716         (dr_group_sort_cmp): New function.
31717         (vect_analyze_data_ref_accesses): Compute data-reference groups
31718         here instead of in vect_analyze_data_ref_dependence.  Use
31719         a more efficient algorithm.
31720         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
31721         vect_slp_analyze_data_ref_dependences.  Call
31722         vect_analyze_data_ref_accesses earlier.
31723         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
31724         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
31725         (vect_slp_analyze_data_ref_dependences): New prototype.
31727 2013-03-21  Richard Biener  <rguenther@suse.de>
31729         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
31730         ref is stored in the loop.
31731         (find_refs_for_sm): Walk only over all stores.
31732         (store_motion_loop): Allocate from lim_bitmap_obstack.
31733         (store_motion): Likewise.
31735 2013-03-21  Richard Biener  <rguenther@suse.de>
31737         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
31738         Update virtual SSA form.
31740 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31742         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
31743         * configure: Regenerate.
31744         * config.in: Regenerate.
31745         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
31746         if !HAVE_LD_EH_FRAME_CIEV3.
31748 2013-03-21  Richard Biener  <rguenther@suse.de>
31750         * tree-cfg.c (verify_expr_no_block): New function.
31751         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
31752         nor DECL_VALUE_EXPR have locations with associated blocks.
31753         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
31754         (clear_unused_block_pointer): Remove code dealing with
31755         blocks in DECL_DEBUG_EXPR locations.
31757 2013-03-21  Richard Biener  <rguenther@suse.de>
31759         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
31760         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
31761         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
31762         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
31763         instead of DECL_DEBUG_EXPR_IS_FROM.
31764         * gimplify.c (gimplify_modify_expr): Likewise.
31765         * tree-cfg.c (verify_expr_location_1): Likewise.
31766         * tree-complex.c (create_one_component_var): Likewise.
31767         * tree-sra.c (create_access_replacement): Likewise.
31768         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
31769         (clear_unused_block_pointer): Likewise.
31770         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
31771         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
31772         * var-tracking.c (var_debug_decl): Likewise.
31773         (track_expr_p): Likewise.
31774         * tree-inline.c (add_local_variables): Likewise.  Set
31775         DECL_HAS_DEBUG_EXPR_P after copying it.
31776         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
31777         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
31779 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
31781         PR bootstrap/56656
31782         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
31783         * configure: Regenerate.
31784         * config.in: Regenerate.
31785         * config/i386/i386.md (*movdf_internal): Use
31786         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31787         movd instead of movq mnemonic for interunit moves.
31788         (*movdi_internal): Ditto.
31790 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31792         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
31793         (abd<mode>_3): New pattern.
31794         (aba<mode>_3): New pattern.
31795         (fabd<mode>_3): New pattern.
31797 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31799         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
31800         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
31801         occurrence of REGISTER_PREFIX as its empty string.
31803 2013-03-20  Jeff Law  <law@redhat.com>
31805         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
31806         addititional equivalences for equality comparisons between an SSA_NAME
31807         and a constant where the SSA_NAME was set from a widening conversion.
31809 2013-03-20  Walter Lee  <walt@tilera.com>
31811         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
31813 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31815         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
31816         depending on type attribute.
31817         (*movti_internal): Ditto.
31818         (*movtf_internal): Ditto.
31819         (*movxf_internal): Ditto.
31820         (*movdf_internal): Ditto.
31821         (*movsf_internal): Ditto.
31823 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31825         * config/i386/i386.md (*movti_internal): Set prefix attribute to
31826         maybe_vex for sselog1 and ssemov types.
31827         (*movdi_internal): Reorder operand constraints.
31828         (*movsi_internal): Ditto.  Set prefix attribute to
31829         maybe_vex for sselog1 and ssemov types.
31830         (*movtf_internal): Set prefix attribute to maybe_vex
31831         for sselog1 and ssemov types.
31832         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
31833         DImode ssemov types.  Reorder operand constraints.
31834         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
31835         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
31836         attribute for SImode ssemov types.  Reorder operand constraints.
31838 2013-03-20  Martin Jambor  <mjambor@suse.cz>
31840         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
31841         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
31843 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
31845         * config/rs6000/predicates.md (indexed_address, update_address_mem
31846         update_indexed_address_mem): New predicates.
31847         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
31848         attribute for load/store instructions.
31849         * config/rs6000/dfp.md (movsd_store): Likewise.
31850         (movsd_load): Likewise.
31851         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
31852         (unnamed HI->DI extend define_insn): Likewise.
31853         (unnamed SI->DI extend define_insn): Likewise.
31854         (unnamed QI->SI extend define_insn): Likewise.
31855         (unnamed QI->HI extend define_insn): Likewise.
31856         (unnamed HI->SI extend define_insn): Likewise.
31857         (unnamed HI->SI extend define_insn): Likewise.
31858         (extendsfdf2_fpr): Likewise.
31859         (movsi_internal1): Likewise.
31860         (movsi_internal1_single): Likewise.
31861         (movhi_internal): Likewise.
31862         (movqi_internal): Likewise.
31863         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
31864         attribute for load/store instructions.
31865         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
31866         instructions.
31867         (mov<mode>_softfloat): Likewise.
31868         (mov<mode>_hardfloat32): Likewise.
31869         (mov<mode>_hardfloat64): Likewise.
31870         (mov<mode>_softfloat64): Likewise.
31871         (movdi_internal32): Likewise.
31872         (movdi_internal64): Likewise.
31873         (probe_stack_<mode>): Likewise.
31875 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
31877         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
31878         floating point, and decimal floating point to reload iterator.
31880         * config/rs6000/constraints.md (wl constraint): New constraints to
31881         return FLOAT_REGS if certain options are used to reduce the number
31882         of separate patterns that exist in the file.
31883         (wx constraint): Likewise.
31884         (wz constraint): Likewise.
31886         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31887         -mdebug=reg, print wg, wl, wx, and wz constraints.
31888         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
31889         Initialize the reload functions for 64-bit binary/decimal floating
31890         point types.
31891         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
31892         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
31893         create the buffer on the stack to overcome not having a 32-bit
31894         load and store.
31895         (rs6000_emit_move): Likewise.
31896         (rs6000_secondary_memory_needed_rtx): Likewise.
31897         (rs6000_alloc_sdmode_stack_slot): Likewise.
31898         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
31899         via xxlxor, just like DFmode 0.0.
31901         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
31902         define as 1 if we are running on a power7 or newer.
31903         (enum r6000_reg_class_enum): Add new constraints.
31905         * config/rs6000/dfp.md (movsd): Delete, combine with binary
31906         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
31907         with other moves by using conditional constraits (wg).  Use LFIWZX
31908         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
31909         (movsd splitter): Likewise.
31910         (movsd_hardfloat): Likewise.
31911         (movsd_softfloat): Likewise.
31913         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
31914         binary and decimal floating point moves.
31915         (fmove_ok): New attributes to combine binary and decimal floating
31916         point moves, and to combine power6x (mfpgpr) moves along normal
31917         floating moves.
31918         (real_value_to_target): Likewise.
31919         (f32_lr): Likewise.
31920         (f32_lm): Likewise.
31921         (f32_li): Likewise.
31922         (f32_sr): Likewise.
31923         (f32_sm): Likewise.
31924         (f32_si): Likewise.
31925         (movsf): Combine binary and decimal floating point moves.  Combine
31926         power6x (mfpgpr) moves with other moves by using conditional
31927         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
31928         (mov<mode> for SFmode/SDmode); Likewise.
31929         (SFmode/SDmode splitters): Likewise.
31930         (movsf_hardfloat): Likewise.
31931         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
31932         (movsf_softfloat): Likewise.
31933         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
31935         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
31936         wx and wz constraints.
31938         * config/rs6000/constraints.md (wg constraint): New constraint to
31939         return FLOAT_REGS if -mmfpgpr (power6x) was used.
31941         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
31942         constraint.
31944         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31945         -mdebug=reg, print wg, wl, wx, and wz constraints.
31946         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
31947         Initialize the reload functions for 64-bit binary/decimal floating
31948         point types.
31949         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
31950         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
31951         create the buffer on the stack to overcome not having a 32-bit
31952         load and store.
31953         (rs6000_emit_move): Likewise.
31954         (rs6000_secondary_memory_needed_rtx): Likewise.
31955         (rs6000_alloc_sdmode_stack_slot): Likewise.
31956         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
31957         via xxlxor, just like DFmode 0.0.
31959         * config/rs6000/dfp.md (movdd): Delete, combine with binary
31960         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
31961         with other moves by using conditional constraits (wg).  Use LFIWZX
31962         and STFIWX for loading SDmode on power7.
31963         (movdd splitters): Likewise.
31964         (movdd_hardfloat32): Likewise.
31965         (movdd_softfloat32): Likewise.
31966         (movdd_hardfloat64_mfpgpr): Likewise.
31967         (movdd_hardfloat64): Likewise.
31968         (movdd_softfloat64): Likewise.
31970         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
31971         64-bit binary and decimal floating point moves.
31972         (FMOVE64X): Likewise.
31973         (movdf): Combine 64-bit binary and decimal floating point moves.
31974         Combine power6x (mfpgpr) moves with other moves by using
31975         conditional constraits (wg).
31976         (mov<mode> for DFmode/DDmode): Likewise.
31977         (DFmode/DDmode splitters): Likewise.
31978         (movdf_hardfloat32): Likewise.
31979         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
31980         (movdf_softfloat32): Likewise.
31981         (movdf_hardfloat64_mfpgpr): Likewise.
31982         (movdf_hardfloat64): Likewise.
31983         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
31984         (movdf_softfloat64): Likewise.
31985         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
31986         (reload_<mode>_load): Move to later in the file so they aren't in
31987         the middle of the floating point move insns.
31988         (reload_<mode>_store): Likewise.
31990         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
31991         constraint.
31993         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
31994         constraint if -mdebug=reg.
31995         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
31996         Enable using dd reload support if needed.
31998         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
31999         binary and decimal floating point moves in rs6000.md.
32000         (movtd_internal): Likewise.
32002         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
32003         decimal floating point moves.
32004         (movtf): Likewise.
32005         (movtf_internal): Likewise.
32006         (mov<mode>_internal, TDmode/TFmode): Likewise.
32007         (movtf_softfloat): Likewise.
32008         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
32010         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
32011         movdi_internal64, using wg constraint for move direct operations.
32012         (movdi_internal64): Likewise.
32014         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
32015         MODES_TIEABLE_P for selected modes.  Print the numerical value of
32016         the various virtual registers. Use GPR/FPR first/last values,
32017         instead of hard coding the register numbers.  Print which modes
32018         have reload functions registered.
32019         (rs6000_option_override_internal): If -mdebug=reg, trace the options
32020         settings before/after setting cpu, target and subtarget settings.
32021         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
32022         and for secondary reload failures in rs6000_secondary_reload_inner.
32023         (rs6000_secondary_reload_fail): Likewise.
32024         (rs6000_secondary_reload_inner): Likewise.
32026         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
32027         macros for first/last GPR and FPR registers.
32028         (LAST_GPR_REGNO): Likewise.
32029         (FIRST_FPR_REGNO): Likewise.
32030         (LAST_FPR_REGNO): Likewise.
32032         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
32033         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
32034         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
32035         (vcond<mode><mode>): Likewise.
32036         (vcondu<mode><mode>): Likewise.
32037         (vector_gtu<mode>): Likewise.
32038         (vector_gte<mode>): Likewise.
32039         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
32040         to prevent the compiler from converting DImode operations to TImode.
32041         (ior<mode>3): Likewise.
32042         (and<mode>3): Likewise.
32043         (one_cmpl<mode>2): Likewise.
32044         (nor<mode>3): Likewise.
32045         (andc<mode>3): Likewise.
32047         * config/rs6000/constraints.md (wt constraint): New constraint
32048         that returns VSX_REGS if TImode is allowed in VSX registers.
32050         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
32051         constant under VSX.
32053         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
32054         similar to TImode, but it is restricted to being in the GPRs.
32056         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
32057         TImode to occupy a single VSX register.
32059         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
32060         -mvsx-timode for power7/power8.
32061         (power7 cpu): Likewise.
32062         (power8 cpu): Likewise.
32064         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
32065         sure that TFmode/TDmode take up two registers if they are ever
32066         allowed in the upper VSX registers.
32067         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
32068         registers.
32069         (rs6000_init_hard_regno_mode_ok): Likewise.
32070         (rs6000_debug_reg_global): Add debugging for PTImode and wt
32071         constraint.  Print if LRA is turned on.
32072         (rs6000_option_override_internal): Give an error if -mvsx-timode
32073         and VSX is not enabled.
32074         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
32075         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
32076         to reg+offset addressing.  Use PTImode when checking offset
32077         addresses for validity.
32078         (reg_offset_addressing_ok_p): Likewise.
32079         (rs6000_legitimate_offset_address_p): Likewise.
32080         (rs6000_legitimize_address): Likewise.
32081         (rs6000_legitimize_reload_address): Likewise.
32082         (rs6000_legitimate_address_p): Likewise.
32083         (rs6000_eliminate_indexed_memrefs): Likewise.
32084         (rs6000_emit_move): Likewise.
32085         (rs6000_secondary_reload): Likewise.
32086         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
32087         reloads to fpr registers to continue to use reg+offset addressing,
32088         but 64-bit reloads to altivec registers need reg+reg addressing.
32089         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
32090         it.  Treat LO_SUM like a PLUS operation.
32091         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
32092         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
32093         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
32094         registers to share a register with a smaller sized type, since VSX
32095         puts scalars in the upper 64-bits.
32096         (print_operand): Add support for PTImode.
32097         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
32098         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
32099         registers, but don't have arithmetic support.
32100         (rs6000_memory_move_cost): Add test for VSX.
32101         (rs6000_opt_masks): Add -mvsx-timode.
32103         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
32104         for TImode.
32105         (VSs): Likewise.
32106         (VSr): Use wt constraint for TImode.
32107         (VSv): Drop TImode support.
32108         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
32109         (vsx_movti_64bit): Likewise.
32110         (vsx_movti_32bit): Likewise.
32111         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
32112         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
32113         one '?' on the appropriate output constraint.  Do not allow TImode
32114         logical operations on 32-bit systems.
32115         (vsx_ior<mode>3): Likewise.
32116         (vsx_xor<mode>3): Likewise.
32117         (vsx_one_cmpl<mode>2): Likewise.
32118         (vsx_nor<mode>3): Likewise.
32119         (vsx_andc<mode>3): Likewise.
32120         (vsx_concat_<mode>): Likewise.
32121         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
32123         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
32124         OPTION_MASK_VSX_TIMODE.
32125         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
32126         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
32128         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
32129         (TI2 iterator): New iterator for TImode, PTImode.
32130         (wd mode attribute): Add values for vector types.
32131         (movti_string): Replace TI move operations with operations for TImode
32132         and PTImode.  Add support for TImode being allowed in VSX registers.
32133         (mov<mode>_string, TImode/PTImode): Likewise.
32134         (movti_ppc64): Likewise.
32135         (mov<mode>_ppc64, TImode/PTImode): Likewise.
32136         (TI mode splitters): Likewise.
32138         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
32139         constraint.
32141 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
32143         PR tree-optimization/56355
32144         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
32145         Also handle integers with undefined overflow.
32147 2013-03-20  Catherine Moore  <clm@codesourcery.com>
32148             Maciej W. Rozycki  <macro@codesourcery.com>
32149             Tom de Vries  <tom@codesourcery.com>
32150             Nathan Sidwell  <nathan@codesourcery.com>
32151             Iain Sandoe  <iain@codesourcery.com>
32152             Nathan Froyd  <froydnj@codesourcery.com>
32153             Chao-ying Fu  <fu@mips.com>
32155         * doc/extend.texi: (micromips, nomicromips, nocompression):
32156         Document new function attributes.
32157         * doc/invoke.texi (minterlink-compressed, mmicromips,
32158         m14k, m14ke, m14kec): Document new options.
32159         (minterlink-mips16): Update documentation.
32160         * doc/md.texi (ZC, ZD): Document new constraints.
32161         * configure.ac (gcc_cv_as_micromips): Check if linker
32162         supports the .set micromips directive.
32163         * configure: Regenerate.
32164         * config.in: Regenerate.
32165         * config/mips/mips-tables.opt: Regenerate.
32166         * config/mips/micromips.md: New file.
32167         * constraints.md (ZC, ZD): New constraints.
32168         * config/mips/predicates.md (movep_src_register): New predicate.
32169         (movep_src_operand): New predicate.
32170         (non_volatile_mem_operand): New predicate.
32171         * config/mips/mips.md (multimem): New type.
32172         (length): Differentiate between 17-bit and 18-bit branch offsets.
32173         (MOVEP1, MOVEP2): New mode iterator.
32174         (mov_<load>l): Use ZC constraint.
32175         (mov_<load>r): Likewise.
32176         (mov_<store>l): Likewise.
32177         (mov_<store>r): Likewise.
32178         (*branch_equality<mode>_inverted): Add microMIPS support.
32179         (*branch_equality<mode>): Likewise.
32180         (*jump_absolute): Likewise.
32181         (indirect_jump_<mode>): Likewise.
32182         (tablejump_<mode>): Likewise.
32183         (<optab>_internal): Likewise.
32184         (sibcall_internal): Likewise.
32185         (sibcall_value_internal): Likewise.
32186         (prefetch): Use constraint ZD.
32187         * config/mips/mips.opt (minterlink-compressed): New option.
32188         (minterlink-mips16): Now an alias for minterlink-compressed.
32189         (mmicromips): New option.
32190         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32191         (compare_and_swap_12): Likewise.
32192         (sync_add<mode>): Likewise.
32193         (sync_<optab>_12): Likewise.
32194         (sync_old_<optab>_12): Likewise.
32195         (sync_new_<optab>_12): Likewise.
32196         (sync_nand_12): Likewise.
32197         (sync_old_nand_12): Likewise.
32198         (sync_new_nand_12): Likewise.
32199         (sync_sub<mode>): Likewise.
32200         (sync_old_add<mode>): Likewise.
32201         (sync_old_sub<mode>): Likewise.
32202         (sync_new_add<mode>): Likewise.
32203         (sync_new_sub<mode>): Likewise.
32204         (sync_<optab><mode>): Likewise.
32205         (sync_old_<optab><mode>): Likewise.
32206         (sync_new_<optab><mode>): Likewise.
32207         (sync_nand<mode>): Likewise.
32208         (sync_old_nand<mode>): Likewise.
32209         (sync_new_nand<mode>): Likewise.
32210         (sync_lock_test_and_set<mode>): Likewise.
32211         (test_and_set_12): Likewise.
32212         (atomic_compare_and_swap<mode>): Likewise.
32213         (atomic_exchange<mode>_llsc): Likewise.
32214         (atomic_fetch_add<mode>_llsc): Likewise.
32215         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32216         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32217         (umips_save_restore_pattern_p): Likewise.
32218         (umips_load_store_pair_p): Likewise.
32219         (umips_output_load_store_pair): Likewise.
32220         (umips_movep_target_p): Likewise.
32221         (umips_12bit_offset_address_p): Likewise.
32222         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32223         (mips_base_mips16): Rename this...
32224         (mips_base_compression_flags): ...to this. Update all uses.
32225         (mips_attribute_table): Add micromips, nomicromips and nocompression.
32226         (mips_mips16_decl_p): Delete.
32227         (mips_nomips16_decl_p): Delete.
32228         (mips_get_compress_on_flags): New function.
32229         (mips_get_compress_off_flags): New function.
32230         (mips_get_compress_mode): New function.
32231         (mips_get_compress_on_name): New function.
32232         (mips_get_compress_off_name): New function.
32233         (mips_insert_attributes): Support multiple compression types.
32234         (mips_merge_decl_attributes): Likewise.
32235         (umips_12bit_offset_address_p): New function.
32236         (mips_start_function_definition): Emit .set micromips directive.
32237         (mips_call_may_need_jalx_p): New function.
32238         (mips_function_ok_for_sibcall): Add microMIPS support.
32239         (mips_print_operand_punctuation): Support short delay slots and
32240         compact jumps.
32241         (umips_swm_mask, umips_swm_encoding): New.
32242         (umips_build_save_restore): New function.
32243         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
32244         (was_mips16_p): Remove.
32245         (old_compression_mode): New.
32246         (mips_set_compression_mode): New function.
32247         (mips_set_current_function): Add microMIPS support.
32248         (mips_option_override): Likewise.
32249         (umips_save_restore_pattern_p): New function.
32250         (umips_output_save_restore): New function.
32251         (umips_load_store_pair_p_1): New function.
32252         (umips_load_store_pair_p): New function.
32253         (umips_output_load_store_pair_1): New function.
32254         (umips_output_load_store_pair): New function.
32255         (umips_movep_target_p) New function.
32256         (mips_prepare_pch_save): Add microMIPS support.
32257         * config/mips/mips.h (TARGET_COMPRESSION): New.
32258         (TARGET_CPU_CPP_BUILTINS): Update macro
32259         to use new compression flags and to support microMIPS.
32260         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
32261         (MIPS_ARCH_FLOAT_SPEC): Likewise.
32262         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
32263         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
32264         (ASM_SPEC): Support mmicromips and mno-micromips.
32265         (M16STORE_REG_P): New macro.
32266         (MIPS_CALL): Support TARGET_MICROMIPS.
32267         (MICROMIPS_J): New macro.
32268         (mips_base_mips16): Rename this...
32269         (mips_base_compression_flags): ...to this.
32270         (UMIPS_12BIT_OFFSET_P): New macro.
32271         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
32272         (MULTILIB_DIRNAMES): Likewise.
32273 2013-03-20  Richard Biener  <rguenther@suse.de>
32275         PR tree-optimization/56661
32276         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
32277         the result does not have to be distinct.
32279 2013-03-20  Richard Biener  <rguenther@suse.de>
32281         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
32282         remap_gimple_op_r.
32284 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32285             Steven Bosscher  <steven@gcc.gnu.org>
32287         PR rtl-optimization/56605
32288         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
32290 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
32292         PR bootstrap/56656
32293         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
32294         that require movd instead of movq.
32296 2013-03-20  Richard Biener  <rguenther@suse.de>
32298         * tree-ssa-structalias.c (struct variable_info): Add pointer
32299         to the first field of an aggregate with sub-vars.  Make
32300         this and the pointer to the next subfield its ID.
32301         (vi_next): New function.
32302         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
32303         storedanything_id, integer_id): Increment by one.
32304         (new_var_info, get_call_vi, lookup_call_clobber_vi,
32305         get_call_clobber_vi): Adjust.
32306         (solution_set_expand): Simplify and speedup.
32307         (solution_set_add): Inline into ...
32308         (set_union_with_increment): ... this.  Adjust accordingly.
32309         (do_sd_constraint): Likewise.
32310         (do_ds_constraint): Likewise.
32311         (do_complex_constraint): Simplify.
32312         (build_pred_graph): Adjust.
32313         (solve_graph): Likewise.  Simplify and speedup.
32314         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
32315         get_constraint_for_component_ref, get_constraint_for_1,
32316         first_vi_for_offset, first_or_preceding_vi_for_offset,
32317         create_function_info_for, create_variable_info_for_1,
32318         create_variable_info_for, intra_create_variable_infos): Adjust.
32319         (init_base_vars): Push NULL for ID zero.
32320         (compute_points_to_sets): Adjust.
32322 2013-03-20  Richard Biener  <rguenther@suse.de>
32324         * cfgloop.c (verify_loop_structure): Streamline and avoid
32325         ICEing on corrupt loop tree.
32326         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
32327         loop tree.
32329 2013-03-20  Richard Biener  <rguenther@suse.de>
32331         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
32332         check whether an SSA update is needed.
32334 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
32336         * config/mips/constraints.md (T): Rename to...
32337         (Yf): ...this.
32338         (U): Rename to...
32339         (Yd): ...this.
32340         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
32341         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
32343 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32345         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
32346         (*subsi3_carryin_uxtw): Likewise.
32348 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32350         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
32351         (*rorsi3_insn_uxtw): Likewise.
32353 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
32355         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
32356         (*extrsi5_insn_uxtw): Likewise.
32358 2013-03-19  Richard Biener  <rguenther@suse.de>
32360         PR tree-optimization/56273
32361         * passes.c (init_optimization_passes): Move second VRP after DOM.
32363 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
32365         * config/i386/i386.md (*movti_internal): Merge from
32366         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
32367         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
32368         nox64 isa attributes.
32370 2013-03-18  Richard Biener  <rguenther@suse.de>
32372         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
32373         (unite): Likewise.
32374         (merge_node_constraints): Likewise.
32375         (build_succ_graph): Likewise.
32376         (valid_graph_edge): Inline into single caller.
32377         (unify_nodes): Likewise.  Use bitmap_set_bit return value
32378         and cache varinfo.
32379         (scc_visit): Fix formatting and variable use.
32380         (do_sd_constraint): Use gcc_checking_assert.
32381         (do_ds_constraint): Likewise.
32382         (do_complex_constraint): Likewise.
32383         (condense_visit): Likewise.  Cleanup.
32384         (dump_pred_graph): New function.
32385         (perform_var_substitution): Dump the pred-graph before
32386         variable substitution.
32387         (find_equivalent_node): Use gcc_checking_assert.
32388         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
32390 2013-03-18  Richard Biener  <rguenther@suse.de>
32392         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
32393         Remove cond_expr_stmt_list argument and do not gimplify the
32394         built expression.
32395         (vect_loop_versioning): Adjust.
32396         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
32397         Cleanup to use less temporaries.
32398         (vect_create_data_ref_ptr): Cleanup.
32400 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
32402         PR tree-optimization/56635
32403         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
32404         require types_compatible_p types.
32406 2013-03-18  Nick Clifton  <nickc@redhat.com>
32408         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
32409         spurious backslash.
32411         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
32412         Add missing line to comment describing function.
32414 2013-03-18  Richard Biener  <rguenther@suse.de>
32416         PR tree-optimization/56210
32417         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
32418         Handle string / character search functions.
32419         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
32421 2013-03-18  Richard Biener  <rguenther@suse.de>
32423         PR middle-end/56483
32424         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
32425         and implement properly.
32426         * gimple.h (gimple_cond_single_var_p): Remove.
32428 2013-03-18  Richard Biener  <rguenther@suse.de>
32430         * tree-data-ref.h (find_data_references_in_loop): Declare.
32431         * tree-data-ref.c (get_references_in_stmt): Use a stack
32432         vector pre-allocated in the callers.
32433         (find_data_references_in_stmt): Adjust.
32434         (graphite_find_data_references_in_stmt): Likewise.
32435         (create_rdg_vertices): Likewise.
32436         (find_data_references_in_loop): Export.
32437         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
32438         Compute dependences here...
32439         (vect_analyze_data_refs): ...not here.  When we encounter
32440         a non-vectorizable data reference in basic-block vectorization
32441         truncate the data reference vector.  Do not bother to
32442         fixup data-dependence information for gather loads.
32443         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
32444         of data references, as reported.
32446 2013-03-18  Richard Biener  <rguenther@suse.de>
32448         PR tree-optimization/3713
32449         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
32450         has_constants and expr.
32451         (stmt_has_constants): Properly valueize SSA names when deciding
32452         whether the stmt has constants.
32454 2013-03-18  Richard Biener  <rguenther@suse.de>
32456         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
32457         whole function when there is nothing to do.
32458         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
32459         * tree-vectorizer.c (vectorize_loops): Update virtual and
32460         loop-closed SSA once.
32461         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
32463 2013-03-18  Richard Biener  <rguenther@suse.de>
32465         PR middle-end/56113
32466         * domwalk.c (bb_postorder): New global static.
32467         (cmp_bb_postorder): New function.
32468         (walk_dominator_tree): Replace scheme imposing an order for
32469         visiting dominator sons by one sorting them at the time they
32470         are pushed on the stack.
32472 2013-03-18  Richard Biener  <rguenther@suse.de>
32474         PR tree-optimization/39326
32475         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
32476         (struct mem_ref): Replace mem member with ao_ref typed member.
32477         (MEM_ANALYZABLE): Adjust.
32478         (memref_eq): Likewise.
32479         (mem_ref_alloc): Likewise.
32480         (gather_mem_refs_stmt): Likewise.
32481         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
32482         (execute_sm_if_changed_flag_set): Adjust.
32483         (execute_sm): Likewise.
32484         (ref_always_accessed_p): Likewise.
32485         (refs_independent_p): Likewise.
32486         (can_sm_ref_p): Likewise.
32488 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
32490         PR c/56566
32491         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
32492         return 1 even for !unsignedp.
32494 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32496         * config/i386/i386.md (isa): Add x64 and nox64.
32497         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
32498         (*pushtf): Enable *roF alternative for x64 isa only.
32499         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
32500         mode attribute of integer alternatives to DImode for TARGET_64BIT.
32501         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
32502         (*movtf_internal): Merge from *movtf_internal_rex64 and
32503         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
32504         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
32505         nox64 isa attributes.
32506         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
32507         nox64 isa attributes.
32508         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
32510 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32512         * config/alpha/alpha.c (TARGET_LRA_P): New define.
32514 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
32516         PR target/56640
32517         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
32518         class names.  Remove trailing comma after "ALL_REGS".
32520 2013-03-16  Jan Hubicka  <jh@suse.cz>
32522         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
32523         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
32524         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
32525         of cgraph_get_create_node.
32526         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32528 2013-03-16  Jason Merrill  <jason@redhat.com>
32530         PR debug/49090
32531         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
32532         with DW_AT_default_value.
32534 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
32536         * BASE-VER: Set to 4.9.0.
32538 2013-03-14  Andi Kleen  <ak@linux.intel.com>
32540         PR target/56619
32541         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
32542         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
32543         Document _x* TSX intrinsics.
32545 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
32546             David Holsgrove  <david.holsgrove@xilinx.com>
32548         * configure.ac: Add MicroBlaze TLS support detection.
32549         * configure: Regenerate.
32550         * config/microblaze/microblaze-protos.h
32551         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
32552         symbol_mentioned_p, label_mentioned_p): Add prototypes.
32553         * config/microblaze/microblaze.c (microblaze_address_type): Add
32554         ADDRESS_TLS and tls_reloc address types.
32555         (microblaze_address_info): Add tls_reloc.
32556         (TARGET_HAVE_TLS): Define.
32557         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
32558          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
32559          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
32560         load_tls_operand,  microblaze_call_tls_get_addr,
32561         microblaze_legitimize_tls_address): New functions.
32562         (microblaze_classify_unspec): Handle UNSPEC_TLS.
32563         (get_base_reg): Use microblaze_tls_symbol_p.
32564         (microblaze_classify_address): Handle TLS.
32565         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
32566         label_mentioned_p and microblaze_tls_referenced_p.
32567         (microblaze_legitimize_address): Handle TLS.
32568         (microblaze_address_insns): Handle ADDRESS_TLS.
32569         (pic_address_needs_scratch): Handle TLS.
32570         (print_operand_address): Handle TLS.
32571         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
32572         (microblaze_expand_move): Handle TLS.
32573         (microblaze_legitimate_constant_p): Check
32574         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
32575         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
32576         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
32577         (PIC_OFFSET_TABLE_REGNUM): Set.
32578         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
32579         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
32580         (addsi3, movsi_internal2, movdf_internal): Update constraints
32581         * config/microblaze/predicates.md (arith_plus_operand): Define
32582         (move_operand): Redefine as move_src_operand,
32583         check microblaze_tls_referenced_p.
32585 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
32587         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
32588         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
32590 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
32592         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
32593         CC mode for AND.
32595 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
32597         PR tree-optimization/53265
32598         * common.opt (Waggressive-loop-optimizations): New option.
32599         * tree-ssa-loop-niter.c: Include tree-pass.h.
32600         (do_warn_aggressive_loop_optimizations): New function.
32601         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
32602         if number_of_latch_executions returned constant.
32603         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
32604         early.  If number_of_latch_executions returned constant, set
32605         nb_iterations_upper_bound back to it.
32606         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
32607         field.
32608         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
32609         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
32611         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
32612         (MULTILIB_OSDIRNAMES): Set.
32613         * genmultilib: If defaultosdirname doesn't start with :: , set
32614         defaultosdirname2 instead, clear it and emit two . multilib_raw
32615         entries instead of just one.
32617 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
32619         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32620         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
32621         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32622         (SUBTARGET_OVERRIDE_OPTIONS): New.
32624 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
32626         PR target/49880
32627         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
32628         (musermode): Convert to Var(TARGET_USERMODE).
32629         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
32630         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
32631         * config/sh/sh.c (sh_option_override): Use
32632         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
32633         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
32634         condition.
32635         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
32636         TARGET_SH4.
32637         (udivsi3_i4_single, divsi3_i4_single): Use
32638         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
32640 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
32642         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
32643         default setting.
32645 2013-03-13  Richard Biener  <rguenther@suse.de>
32647         PR tree-optimization/56608
32648         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
32649         calls when vectorizing basic-blocks.
32651 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
32653         PR plugins/45078
32654         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
32655         tm_file.
32657 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
32659         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
32661 2013-03-11  Jan Hubicka  <jh@suse.cz>
32663         PR lto/56557
32664         * lto-streamer-out.c (output_symbol_p): Skip references from
32665         constructors of external variables.
32667 2013-03-11  Jan Hubicka  <jh@suse.cz>
32669         PR middle-end/56571
32670         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
32671         from pseudos.
32672         * emit-rtl.c (verify_rtx_sharing): Likewise.
32673         (copy_insn_1): Likewise.
32674         * rtl.c (copy_rtx): Likewise.
32676 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
32678         PR target/56591
32679         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
32680         output_operand_lossage message.
32682 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
32684         PR target/56470
32685         * arm.c (shift_op): Validate RTL pattern on the fly.
32686         (arm_print_operand, case 'S'): Don't use shift_operator to validate
32687         the RTL.
32689 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32691         PR target/56347
32692         * config/pa/pa.md (call_value): Check for calls to powf and direct to
32693         new call patterns that clobber %fr12.
32694         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
32695         split and postreload patterns.
32696         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
32697         registers %fr12 and %fr12R as call used.
32699 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
32701         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
32702         (canon_address, record_store, replace_read, check_mem_read_rtx,
32703         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
32704         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
32705         rest_of_handle_dse): Likewise.
32707 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
32709         PR middle-end/56524
32710         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
32711         Add base_optabs.
32712         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
32713         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
32714         (save_optabs_if_changed): Replace with...
32715         (init_tree_optimization_optabs): ...this.
32716         * optabs.c (save_optabs_if_changed): Rename to...
32717         (init_tree_optimization_optabs): ...this.  Take the optimization node
32718         as argument.  Do nothing if the base optabs are already correct.
32719         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
32720         to recompute optabs.
32721         * function.h (function): Remove optabs field.
32722         * function.c (invoke_set_current_function_hook): Call
32723         init_tree_optimization_optabs.  Use the result to initialize
32724         this_fn_optabs.
32726 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
32728         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
32729         if GTMA_HAS_NO_INSTRUMENTATION.
32730         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
32731         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
32732         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
32733         * gimple-pretty-print.c (dump_gimple_transaction): Handle
32734         GTMA_HAS_NO_INSTRUMENTATION.
32736 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
32738         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
32739         libasan_preinit.o.
32741 2013-03-08  Marek Polacek  <polacek@redhat.com>
32742             Jakub Jelinek  <jakub@redhat.com>
32744         PR tree-optimization/56478
32745         * predict.c (is_comparison_with_loop_invariant_p): Change the
32746         type of loop_step to tree.
32747         (predict_loops): Adjust.
32748         (predict_iv_comparison): Perform the computations on double_ints.
32750 2013-03-08  Richard Biener  <rguenther@suse.de>
32752         PR tree-optimization/56570
32753         * tree-cfg.c (verify_expr_location_1): Verify locations for
32754         DECL_DEBUG_EXPR.
32755         * tree-sra.c (create_access_replacement): Strip locations
32756         from DECL_DEBUG_EXPRs.
32758 2013-03-08  Richard Biener  <rguenther@suse.de>
32760         * tree-inline.c (expand_call_inline): Do not associate
32761         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
32762         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
32764 2013-03-08  Richard Biener  <rguenther@suse.de>
32766         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
32767         or block changes with -Og.  Fix for location / block encoding
32768         changes and PHI arguments with locations.
32770 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
32772         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
32773         for all counters.
32774         (struct output_info): Likewise.
32775         (register_overhead): Remove bad gcc_assert.
32776         (bitmap_find_bit): If there is only a single bitmap element, do not
32777         count a miss as a search.
32778         (print_statistics): Update for counter type changes.
32779         (dump_bitmap_statistics): Likewise.  Print headers such that they
32780         are properly lined up with the printed counters.
32782 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
32784         PR tree-optimization/56559
32785         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
32786         check that it has only a single use.
32788 2013-03-07  Richard Biener  <rguenther@suse.de>
32790         * doc/invoke.texi (fwhole-program): Discourage use in combination
32791         with -flto.
32793 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
32795         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
32797         PR tree-optimization/56539
32798         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
32799         instead of GSI_CONTINUE_LINKING as last argument to
32800         force_gimple_operand_gsi.  Adjust function comment.
32802         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
32803         aarch64-cores.def.
32805         PR middle-end/56548
32806         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
32807         promoted mode, convert the result back to the original mode.
32809 2013-03-06  Richard Biener  <rguenther@suse.de>
32811         PR middle-end/56294
32812         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
32813         (insert_updated_phi_nodes_compare_uids): New function.
32814         (update_ssa): Sort symbols_to_rename after UID before
32815         traversing it to insert PHI nodes.
32817 2013-03-06  Richard Biener  <rguenther@suse.de>
32819         PR middle-end/50494
32820         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
32821         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
32823         Revert
32824         2013-02-13  Richard Biener  <rguenther@suse.de>
32826         PR lto/50494
32827         * varasm.c (output_constant_def_1): Get the decl representing
32828         the constant as argument.
32829         (output_constant_def): Wrap output_constant_def_1.
32830         (make_decl_rtl): Use output_constant_def_1 with the decl
32831         representing the constant.
32832         (build_constant_desc): Optionally re-use a decl already
32833         representing the constant.
32834         (tree_output_constant_def): Adjust.
32836 2013-03-06  Joey Ye  <joey.ye@arm.com>
32838         PR lto/50293
32839         * gcc.c (convert_white_space): New function.
32840         (main): Handles white space in function name.
32842 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
32844         PR target/56529
32845         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
32846         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
32847         to SH_DIV_CALL_TABLE for TARGET_SH2.
32848         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
32849         list.
32850         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
32851         call-table options.
32853 2013-03-05  Sterling Augustine  <saugustine@google.com>
32854             Cary Coutant  <ccoutant@google.com>
32856         PR debug/55364
32857         * dwarf2out.c (resolve_addr): Don't call
32858         remove_loc_list_addr_table_entries a second time for the same
32859         expression.
32861 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32863         PR debug/56510
32864         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
32865         (avoid_complex_debug_insns): New function.
32866         (expand_debug_locations): Call it.
32868         PR rtl-optimization/56484
32869         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
32870         lifetimes of hard registers on small register class machines.
32872 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
32874         * config/microblaze/microblaze-protos.h: Rename
32875         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
32876         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
32877         fast_interrupt.
32878         (microblaze_fast_interrupt_function_p): New function.
32879         (microblaze_is_interrupt_handler): Rename to
32880         microblaze_is_interrupt_variant and add fast_interrupt check.
32881         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
32882         (save_restore_insns): Likewise.
32883         (compute_frame_size): Likewise.
32884         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
32885         (microblaze_globalize_label): Likewise.
32886         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
32887         * config/microblaze/microblaze.md: Use wrapper
32888         microblaze_is_interrupt_variant.
32890 2013-03-05  Kai Tietz  <ktietz@redhat.com>
32892         * sdbout.c (sdbout_one_type): Switch to current function's section
32893         supporting cold/hot.
32895 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
32897         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
32898         -mxl-reorder.
32900 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32902         PR middle-end/56461
32903         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
32904         if VALGRIND_GET_VBITS is defined, temporarily make object
32905         memory all defined, and restore previous valgrind addressability
32906         and definability afterwards.  Free this_object at the end.
32908         PR middle-end/56461
32909         * lra.c (lra): Call lra_clear_live_ranges if live_p,
32910         right before calling lra_create_live_ranges, also call it
32911         when clearing live_p.  Only call lra_clear_live_ranges
32912         at the end if live_p.
32914         PR middle-end/56461
32915         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
32917 2013-03-05  Richard Biener  <rguenther@suse.de>
32919         PR tree-optimization/56521
32920         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
32921         value-id.
32923 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
32925         PR c++/55135
32926         * except.h (remove_unreachable_eh_regions): New prototype.
32927         * except.c (remove_eh_handler_splicer): New function, split out
32928         of remove_eh_handler.
32929         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
32930         warning about running it on many EH regions one at a time.
32931         (remove_unreachable_eh_regions_worker): New function, walk the
32932         EH tree in depth-first order and remove non-marked regions.
32933         (remove_unreachable_eh_regions): New function.
32934         * tree-eh.c (mark_reachable_handlers): New function, split out
32935         from remove_unreachable_handlers.
32936         (remove_unreachable_handlers): Use mark_reachable_handlers and
32937         remove_unreachable_eh_regions.
32938         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
32939         and remove_unreachable_eh_regions.
32941 2013-03-05  Richard Biener  <rguenther@suse.de>
32943         PR middle-end/56525
32944         * loop-init.c (fix_loop_structure): Remove loops in two stages,
32945         not freeing them until the end.
32947 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32949         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
32951 2013-03-05  Richard Biener  <rguenther@suse.de>
32953         PR tree-optimization/56270
32954         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
32955         of loads after scheduling an SLP instance.
32957 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32959         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
32960         tic6x.exp.
32961         (check_gcc_parallelize): Run guality.exp as a separate job from
32962         vect.exp with unsorted.exp and $(dg_target_exps) separately from
32963         struct-layout-1.exp with stackalign.exp.
32965         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
32967         PR middle-end/56461
32968         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
32969         load_index sbitmap even if some bit in it isn't set.
32971         PR middle-end/56461
32972         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
32973         (discover_iteration_bound_by_body_walk): Change queues to
32974         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
32975         spelling in comment.  Call safe_push on queues[bound_index] directly.
32976         Release queues[queue_index] in every iteration unconditionally.
32977         Release bounds vector.
32979         PR middle-end/56461
32980         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
32981         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
32982         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
32983         inner_phis vector.
32985 2013-03-05  Richard Biener  <rguenther@suse.de>
32987         PR lto/56515
32988         * tree-inline.c (remap_blocks_to_null): New function.
32989         (expand_call_inline): When expanding a call stmt without
32990         an associated block inline remap all callee blocks to NULL.
32992 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32994         PR rtl-optimization/56494
32995         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
32996         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
32997         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
32999         PR middle-end/56461
33000         * sel-sched-ir.c (free_sched_pools): Release
33001         succs_info_pool.stack[succs_info_pool.max_top] vectors too
33002         if succs_info_pool.max_top isn't -1.
33004         PR bootstrap/56509
33005         * opts.c (opts_obstack, opts_concat): Moved to...
33006         * opts-common.c (opts_obstack, opts_concat): ... here.
33008 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
33010         PR middle-end/56461
33011         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
33013 2013-03-04  Martin Jambor  <mjambor@suse.cz>
33015         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
33016         all appropriate places.
33018 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
33020         PR tree-optimization/56424
33021         * ipa-split.c (split_function): Do not set the RSO flag if result is
33022         not by reference and its type is a register type.
33024 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
33026         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
33027         (microblaze_legitimate_pic_operand): Likewise
33028         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
33029         new function microblaze_legitimate_pic_operand
33030         * config/microblaze/microblaze-protos.h
33031         (microblaze_legitimate_pic_operand): Declare.
33033 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33035         * config/microblaze/predicates.md (call_insn_simple_operand):
33036         New predicate for supported rtx code types.
33037         * config/microblaze/microblaze.md (call_internal1): Use
33038         call_insn_simple_operand predicate.
33040 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
33042         PR middle-end/56461
33043         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
33044         partitions.ordered_remove.
33046         PR middle-end/56461
33047         * tree-vect-stmts.c (vectorizable_conversion): Don't call
33048         vec_oprnds0.create (1) for modifier == NONE.
33050         PR middle-end/56461
33051         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
33052         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
33053         vec_oprnds1 right before pushing anything to it for
33054         scalar_shift_arg.
33056         PR middle-end/56461
33057         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
33058         set nbbs to 0 instead of having separate code path.
33059         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
33060         instead of false as last argument if returning NULL.
33062 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
33064         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
33065         the attribute is now called "target" instead of "option".
33066         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
33067         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
33068         attribute/pragma name for TARGET_OPTION_VALID_P and
33069         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
33070         * doc/tm.texi: Regenerated.
33072 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
33074         * config/microblaze/microblaze.c:
33075         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
33076         * config/microblaze/microblaze.h: Add -mxl-reorder to
33077         DRIVER_SELF_SPECS.
33078         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
33079         instructions emitted if TARGET_REORDER.
33080         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
33081         or 0 for -m/-mno case, but initialises as 2 to detect default use case
33082         separately.
33084 2013-03-01  Xinliang David Li  <davidxl@google.com>
33086         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
33087         walk length.
33089 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
33091         PR middle-end/56461
33092         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
33093         vector even when returning true.  Fix up function comment formatting.
33095         PR middle-end/56461
33096         * ira-build.c (ira_loop_nodes_count): New variable.
33097         (create_loop_tree_nodes): Initialize it.
33098         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
33100         PR middle-end/56461
33101         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
33102         method on dr_chain and result_chain.
33103         * tree-vect-stmts.c (vectorizable_store): Only call
33104         result_chain.create if j == 0.
33106         PR middle-end/56461
33107         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
33108         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
33109         before overwriting it.
33111 2013-03-01  Tobias Burnus  <burnus@net-b.de>
33113         * doc/extended.texi (C Extensions): Change order in @menu
33114         to match @node.
33115         (Other MIPS Built-in Functions): Move last MIPS entry before
33116         "picoChip Built-in Functions".
33117         (SH Built-in Functions): Move after RX Built-in Functions.
33118         * doc/gcc.texi (Introduction): Change order in @menu
33119         to match @node.
33120         * doc/md.texi (Constraints): Ditto.
33121         * gty.texi (Type Information): Ditto.
33122         (User-provided marking routines for template types): Make
33123         subsection.
33124         * doc/invoke.texi (AArch64 Options): Move before
33125         "Adapteva Epiphany Options".
33127 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
33128             Jakub Jelinek  <jakub@redhat.com>
33130         PR sanitizer/56454
33131         * asan.c (gate_asan): Lookup no_sanitize_address instead of
33132         no_address_safety_analysis attribute.
33133         * doc/extend.texi (no_address_safety_attribute): Rename to
33134         no_sanitize_address attribute, mention no_address_safety_analysis
33135         attribute as deprecated alias.
33137 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
33139         PR middle-end/56461
33140         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
33141         type to vec<vec<tree> > *.
33142         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
33143         to be vec<tree> instead of vec<tree> *, set vec_defs
33144         to vNULL and call vec_defs.create (number_of_vects), adjust other
33145         uses of vec_defs.
33146         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
33147         vectorizable_condition): Adjust vect_get_slp_defs callers.
33149 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33151         * config/aarch64/aarch64.c
33152         (aarch64_float_const_representable): Remove unused variable.
33154 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33156         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
33158 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33160         * config/aarch64/aarch64-builtins.c
33161         (aarch64_init_simd_builtins): Make static.
33163 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
33165         * config/aarch64/aarch64.c
33166         (aarch64_simd_make_constant): Make static.
33168 2013-02-28  Martin Jambor  <mjambor@suse.cz>
33170         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
33171         with no initialization to the RHS of debug statements.
33173 2013-02-28  Martin Jambor  <mjambor@suse.cz>
33175         PR tree-optimization/56294
33176         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
33177         Adjust dumping.
33178         (get_access_replacement): Do not call create_access_replacement.
33179         Assert a replacement exists.
33180         (get_repl_default_def_ssa_name): Create the replacement declaration
33181         itself.
33183 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33185         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
33186         final_end_function.
33188 2013-02-28  Marek Polacek  <polacek@redhat.com>
33190         PR rtl-optimization/56466
33191         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
33192         if we're changing a loop.
33193         (peel_loops_completely): Likewise.
33195 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
33197         PR c++/55813
33198         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
33200 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33202         PR target/56445
33203         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
33204         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
33205         INTX_FTYPE_FX, FX_FTYPE_INTX.
33206         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
33208 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33210         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
33211         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
33212         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
33213         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
33214         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
33215         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
33216         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
33217         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
33218         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
33219         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
33220         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
33221         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
33222         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
33223         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
33224         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
33225         (avrxmega6): Increase max flash segments from 5 to 6.
33226         * config/avr/t-multilib: Regenerate.
33227         * config/avr/avr-tables.opt: Regenerate.
33228         * doc/avr-mmcu.texi: Regenerate.
33230 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
33232         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
33233         (avr_device_to_arch): Rename to avr_device_to_ld.
33234         (avr_device_to_as): New prototype.
33235         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
33236         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
33237         * config/avr/driver-avr.c (avr_device_to_as): New.
33238         (avr_device_to_arch): Rename to avr_device_to_ld.
33240 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33242         PR middle-end/56461
33243         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
33244         method on dr_chain and result_chain.
33246         PR middle-end/56461
33247         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
33248         pointer_set_destroy on not_executed_last_iteration.
33250         PR middle-end/56461
33251         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
33253         PR middle-end/56461
33254         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
33255         FOR_EACH_DEFINED_FUNCTION when freeing state.
33257         PR middle-end/56461
33258         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
33259         pool_free.
33260         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
33261         overwriting it.
33263         PR middle-end/56461
33264         * ipa-cp.c (decide_whether_version_node): Call vec_free on
33265         known_aggs[i].items and release known_aggs vector.
33267         PR middle-end/56461
33268         * ipa-reference.c (propagate): Free node_info even for alias nodes.
33270 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33272         * config/microblaze/microblaze.c (microblaze_emit_compare):
33273         Use xor for EQ/NE comparisions.
33274         * config/microblaze/microblaze.md (cstoresf4): Add constraints
33275         (cbranchsf4): Adjust operator to comparison_operator.
33277 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33279         PR middle-end/56461
33280         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
33281         vector.
33282         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
33283         vec_safe_push, always update *slot.
33284         (redirect_edge_var_map_clear): Use vec_free.
33285         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
33286         (free_var_map_entry): Use vec_free.
33287         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
33288         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
33290 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
33292         PR middle-end/45472
33293         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
33294         when the may_trap_p bit of the exprs being merged differs.
33295         Reorder tests for speculativeness in the logical and operator.
33297 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
33299         * incpath.c (add_standard_paths): Use reconcat instead of concat
33300         where appropriate and avoid leaking memory.
33302         * opts.h: Include obstack.h.
33303         (opts_concat): New prototype.
33304         (opts_obstack): New declaration.
33305         * opts.c (opts_concat): New function.
33306         (opts_obstack): New variable.
33307         (init_options_struct): Call gcc_init_obstack on opts_obstack.
33308         (finish_options): Use opts_concat instead of concat
33309         and XOBNEWVEC instead of XNEWVEC.
33310         * opts-common.c (generate_canonical_option, decode_cmdline_option,
33311         generate_option): Likewise.
33312         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
33313         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
33315         PR target/56455
33316         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
33317         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
33319 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
33321         PR middle-end/56461
33322         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
33324 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
33326         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
33327         (arm_block_move_unaligned_straight): Likewise.
33328         (arm_adjust_block_mem): Likewise.
33330 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
33332         PR target/48901
33333         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
33334         temp, cond and label.
33335         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
33337         PR target/52500
33338         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
33339         * config/c6x/c6x.h (dbx_register_map): Update declaration.
33341         PR target/52501
33342         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
33343         of prologue/epilogue functions.
33345         PR target/52550
33346         * config/tilegx/tilegx.c (tilegx_expand_prologue):
33347         Remove unused variable cfa_offset.
33348         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
33350         PR target/54639
33351         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
33352         type promotion to unsigned.
33354         PR target/54640
33355         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
33356         for HOST_WIDE_INT of 32 bit / same size as int.
33357         (arm_block_move_unaligned_straight): Likewise.
33358         (arm_adjust_block_mem): Likewise.
33360         PR target/54662
33361         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
33362         ALL_CFLAGS.
33364 2013-02-26  Marek Polacek  <polacek@redhat.com>
33366         PR tree-optimization/56426
33367         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
33369 2013-02-26  Richard Biener  <rguenther@suse.de>
33371         PR target/56444
33372         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
33373         unused variable loops.
33375 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
33377         PR tree-optimization/56448
33378         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
33379         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
33380         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
33381         later operands of the references, or even first operand for
33382         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
33384         PR tree-optimization/56443
33385         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
33386         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
33387         to type_for_mode langhook.
33389 2013-02-25  Matt Turner  <mattst88@gmail.com>
33391         * doc/invoke.texi: Document r4700.
33393 2013-02-25  Richard Biener  <rguenther@suse.de>
33395         PR tree-optimization/56175
33396         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
33397         split out from ...
33398         (simplify_bitwise_binary): ... here.  Also guard the conversion
33399         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
33401 2013-02-25  Catherine Moore  <clm@codesourcery.com>
33403         Revert:
33404         2013-02-24  Catherine Moore  <clm@codesourcery.com>
33405             Maciej W. Rozycki  <macro@codesourcery.com>
33406             Tom de Vries  <tom@codesourcery.com>
33407             Nathan Sidwell  <nathan@codesourcery.com>
33408             Iain Sandoe  <iain@codesourcery.com>
33409             Nathan Froyd  <froydnj@codesourcery.com>
33410             Chao-ying Fu  <fu@mips.com>
33412         * doc/extend.texi: (micromips, nomicromips, nocompression):
33413         Document new function attributes.
33414         * doc/invoke.texi (minterlink-compressed, mmicromips,
33415         m14k, m14ke, m14kec): Document new options.
33416         (minterlink-mips16): Update documentation.
33417         * doc/md.texi (ZC, ZD): Document new constraints.
33418         * configure.ac (gcc_cv_as_micromips): Check if linker
33419         supports the .set micromips directive.
33420         * configure: Regenerate.
33421         * config.in: Regenerate.
33422         * config/mips/mips-tables.opt: Regenerate.
33423         * config/mips/micromips.md: New file.
33424         * constraints.md (ZC, AD): New constraints.
33425         * config/mips/predicates.md (movep_src_register): New predicate.
33426         (movep_src_operand): New predicate.
33427         (non_volatile_mem_operand): New predicate.
33428         * config/mips/mips.md (multimem): New type.
33429         (length): Differentiate between 17-bit and 18-bit branch offsets.
33430         (MOVEP1, MOVEP2): New mode iterator.
33431         (mov_<load>l): Use ZC constraint.
33432         (mov_<load>r): Likewise.
33433         (mov_<store>l): Likewise.
33434         (mov_<store>r): Likewise.
33435         (*branch_equality<mode>_inverted): Add microMIPS support.
33436         (*branch_equality<mode>): Likewise.
33437         (*jump_absolute): Likewise.
33438         (indirect_jump_<mode>): Likewise.
33439         (tablejump_<mode>): Likewise.
33440         (<optab>_internal): Likewise.
33441         (sibcall_internal): Likewise.
33442         (sibcall_value_internal): Likewise.
33443         (prefetch): Use constraint ZD.
33444         * config/mips/mips.opt (minterlink-compressed): New option.
33445         (minterlink-mips16): Now an alias for minterlink-compressed.
33446         (mmicromips): New option.
33447         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33448         (compare_and_swap_12): Likewise.
33449         (sync_add<mode>): Likewise.
33450         (sync_<optab>_12): Likewise.
33451         (sync_old_<optab>_12): Likewise.
33452         (sync_new_<optab>_12): Likewise.
33453         (sync_nand_12): Likewise.
33454         (sync_old_nand_12): Likewise.
33455         (sync_new_nand_12): Likewise.
33456         (sync_sub<mode>): Likewise.
33457         (sync_old_add<mode>): Likewise.
33458         (sync_old_sub<mode>): Likewise.
33459         (sync_new_add<mode>): Likewise.
33460         (sync_new_sub<mode>): Likewise.
33461         (sync_<optab><mode>): Likewise.
33462         (sync_old_<optab><mode>): Likewise.
33463         (sync_new_<optab><mode>): Likewise.
33464         (sync_nand<mode>): Likewise.
33465         (sync_old_nand<mode>): Likewise.
33466         (sync_new_nand<mode>): Likewise.
33467         (sync_lock_test_and_set<mode>): Likewise.
33468         (test_and_set_12): Likewise.
33469         (atomic_compare_and_swap<mode>): Likewise.
33470         (atomic_exchange<mode>_llsc): Likewise.
33471         (atomic_fetch_add<mode>_llsc): Likewise.
33472         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33473         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33474         (umips_save_restore_pattern_p): Likewise.
33475         (umips_load_store_pair_p): Likewise.
33476         (umips_output_load_store_pair): Likewise.
33477         (umips_movep_target_p): Likewise.
33478         (umips_12bit_offset_address_p): Likewise.
33479         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33480         (mips_base_mips16): Rename this...
33481         (mips_base_compression_flags): ...to this. Update all uses.
33482         (mips_attribute_table): Add micromips, nomicromips and nocompression.
33483         (mips_mips16_decl_p): Delete.
33484         (mips_nomips16_decl_p): Delete.
33485         (mips_get_compress_on_flags): New function.
33486         (mips_get_compress_off_flags): New function.
33487         (mips_get_compress_mode): New function.
33488         (mips_get_compress_on_name): New function.
33489         (mips_get_compress_off_name): New function.
33490         (mips_insert_attributes): Support multiple compression types.
33491         (mips_merge_decl_attributes): Likewise.
33492         (umips_12bit_offset_address_p): New function.
33493         (mips_start_function_definition): Emit .set micromips directive.
33494         (mips_call_may_need_jalx_p): New function.
33495         (mips_function_ok_for_sibcall): Add microMIPS support.
33496         (mips_print_operand_punctuation): Support short delay slots and
33497         compact jumps.
33498         (umips_swm_mask, umips_swm_encoding): New.
33499         (umips_build_save_restore): New function.
33500         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33501         (was_mips16_p): Remove.
33502         (old_compression_mode): New.
33503         (mips_set_compression_mode): New function.
33504         (mips_set_current_function): Add microMIPS support.
33505         (mips_option_override): Likewise.
33506         (umips_save_restore_pattern_p): New function.
33507         (umips_output_save_restore): New function.
33508         (umips_load_store_pair_p_1): New function.
33509         (umips_load_store_pair_p): New function.
33510         (umips_output_load_store_pair_1): New function.
33511         (umips_output_load_store_pair): New function.
33512         (umips_movep_target_p) New function.
33513         (mips_prepare_pch_save): Add microMIPS support.
33514         * config/mips/mips.h (TARGET_COMPRESSION): New.
33515         (TARGET_CPU_CPP_BUILTINS): Update macro
33516         to use new compression flags and to support microMIPS.
33517         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33518         (MIPS_ARCH_FLOAT_SPEC): Likewise.
33519         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33520         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33521         (ASM_SPEC): Support mmicromips and mno-micromips.
33522         (M16STORE_REG_P): New macro.
33523         (MIPS_CALL): Support TARGET_MICROMIPS.
33524         (MICROMIPS_J): New macro.
33525         (mips_base_mips16): Rename this...
33526         (mips_base_compression_flags): ...to this.
33527         (UMIPS_12BIT_OFFSET_P): New macro.
33528         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33529         (MULTILIB_DIRNAMES): Likewise.
33531 2013-02-25  Tom de Vries  <tom@codesourcery.com>
33533         PR rtl-optimization/56131
33534         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
33535         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
33536         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
33538 2013-02-25  Tobias Burnus  <burnus@net-b.de>
33540         * doc/invoke.texi (-fsanitize=): Move from optimization
33541         to debugging options.
33543 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
33545         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
33547 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
33548             Alexander Monakov  <amonakov@ispras.ru>
33550         PR middle-end/56077
33551         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
33552         flush pending lists also on non-jumps.  Adjust comment.
33554 2013-02-24  Catherine Moore  <clm@codesourcery.com>
33555             Maciej W. Rozycki  <macro@codesourcery.com>
33556             Tom de Vries  <tom@codesourcery.com>
33557             Nathan Sidwell  <nathan@codesourcery.com>
33558             Iain Sandoe  <iain@codesourcery.com>
33559             Nathan Froyd  <froydnj@codesourcery.com>
33560             Chao-ying Fu  <fu@mips.com>
33562         * doc/extend.texi: (micromips, nomicromips, nocompression):
33563         Document new function attributes.
33564         * doc/invoke.texi (minterlink-compressed, mmicromips,
33565         m14k, m14ke, m14kec): Document new options.
33566         (minterlink-mips16): Update documentation.
33567         * doc/md.texi (ZC, ZD): Document new constraints.
33568         * configure.ac (gcc_cv_as_micromips): Check if linker
33569         supports the .set micromips directive.
33570         * configure: Regenerate.
33571         * config.in: Regenerate.
33572         * config/mips/mips-tables.opt: Regenerate.
33573         * config/mips/micromips.md: New file.
33574         * constraints.md (ZC, AD): New constraints.
33575         * config/mips/predicates.md (movep_src_register): New predicate.
33576         (movep_src_operand): New predicate.
33577         (non_volatile_mem_operand): New predicate.
33578         * config/mips/mips.md (multimem): New type.
33579         (length): Differentiate between 17-bit and 18-bit branch offsets.
33580         (MOVEP1, MOVEP2): New mode iterator.
33581         (mov_<load>l): Use ZC constraint.
33582         (mov_<load>r): Likewise.
33583         (mov_<store>l): Likewise.
33584         (mov_<store>r): Likewise.
33585         (*branch_equality<mode>_inverted): Add microMIPS support.
33586         (*branch_equality<mode>): Likewise.
33587         (*jump_absolute): Likewise.
33588         (indirect_jump_<mode>): Likewise.
33589         (tablejump_<mode>): Likewise.
33590         (<optab>_internal): Likewise.
33591         (sibcall_internal): Likewise.
33592         (sibcall_value_internal): Likewise.
33593         (prefetch): Use constraint ZD.
33594         * config/mips/mips.opt (minterlink-compressed): New option.
33595         (minterlink-mips16): Now an alias for minterlink-compressed.
33596         (mmicromips): New option.
33597         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33598         (compare_and_swap_12): Likewise.
33599         (sync_add<mode>): Likewise.
33600         (sync_<optab>_12): Likewise.
33601         (sync_old_<optab>_12): Likewise.
33602         (sync_new_<optab>_12): Likewise.
33603         (sync_nand_12): Likewise.
33604         (sync_old_nand_12): Likewise.
33605         (sync_new_nand_12): Likewise.
33606         (sync_sub<mode>): Likewise.
33607         (sync_old_add<mode>): Likewise.
33608         (sync_old_sub<mode>): Likewise.
33609         (sync_new_add<mode>): Likewise.
33610         (sync_new_sub<mode>): Likewise.
33611         (sync_<optab><mode>): Likewise.
33612         (sync_old_<optab><mode>): Likewise.
33613         (sync_new_<optab><mode>): Likewise.
33614         (sync_nand<mode>): Likewise.
33615         (sync_old_nand<mode>): Likewise.
33616         (sync_new_nand<mode>): Likewise.
33617         (sync_lock_test_and_set<mode>): Likewise.
33618         (test_and_set_12): Likewise.
33619         (atomic_compare_and_swap<mode>): Likewise.
33620         (atomic_exchange<mode>_llsc): Likewise.
33621         (atomic_fetch_add<mode>_llsc): Likewise.
33622         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33623         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33624         (umips_save_restore_pattern_p): Likewise.
33625         (umips_load_store_pair_p): Likewise.
33626         (umips_output_load_store_pair): Likewise.
33627         (umips_movep_target_p): Likewise.
33628         (umips_12bit_offset_address_p): Likewise.
33629         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33630         (mips_base_mips16): Rename this...
33631         (mips_base_compression_flags): ...to this. Update all uses.
33632         (mips_attribute_table): Add micromips, nomicromips and nocompression.
33633         (mips_mips16_decl_p): Delete.
33634         (mips_nomips16_decl_p): Delete.
33635         (mips_get_compress_on_flags): New function.
33636         (mips_get_compress_off_flags): New function.
33637         (mips_get_compress_mode): New function.
33638         (mips_get_compress_on_name): New function.
33639         (mips_get_compress_off_name): New function.
33640         (mips_insert_attributes): Support multiple compression types.
33641         (mips_merge_decl_attributes): Likewise.
33642         (umips_12bit_offset_address_p): New function.
33643         (mips_start_function_definition): Emit .set micromips directive.
33644         (mips_call_may_need_jalx_p): New function.
33645         (mips_function_ok_for_sibcall): Add microMIPS support.
33646         (mips_print_operand_punctuation): Support short delay slots and
33647         compact jumps.
33648         (umips_swm_mask, umips_swm_encoding): New.
33649         (umips_build_save_restore): New function.
33650         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33651         (was_mips16_p): Remove.
33652         (old_compression_mode): New.
33653         (mips_set_compression_mode): New function.
33654         (mips_set_current_function): Add microMIPS support.
33655         (mips_option_override): Likewise.
33656         (umips_save_restore_pattern_p): New function.
33657         (umips_output_save_restore): New function.
33658         (umips_load_store_pair_p_1): New function.
33659         (umips_load_store_pair_p): New function.
33660         (umips_output_load_store_pair_1): New function.
33661         (umips_output_load_store_pair): New function.
33662         (umips_movep_target_p) New function.
33663         (mips_prepare_pch_save): Add microMIPS support.
33664         * config/mips/mips.h (TARGET_COMPRESSION): New.
33665         (TARGET_CPU_CPP_BUILTINS): Update macro
33666         to use new compression flags and to support microMIPS.
33667         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33668         (MIPS_ARCH_FLOAT_SPEC): Likewise.
33669         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33670         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33671         (ASM_SPEC): Support mmicromips and mno-micromips.
33672         (M16STORE_REG_P): New macro.
33673         (MIPS_CALL): Support TARGET_MICROMIPS.
33674         (MICROMIPS_J): New macro.
33675         (mips_base_mips16): Rename this...
33676         (mips_base_compression_flags): ...to this.
33677         (UMIPS_12BIT_OFFSET_P): New macro.
33678         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33679         (MULTILIB_DIRNAMES): Likewise.
33681 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
33683         PR target/52555
33684         * target-globals.c (save_target_globals): For init_reg_sets and
33685         target_reinit remporarily set this_fn_optabs to this_target_optabs.
33687 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
33689         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
33690         * config/aarch64/t-aarch64
33691         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
33693 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
33695         PR inline-asm/56148
33696         * lra-constraints.c (process_alt_operands): Reload operand
33697         conflicting with earlier clobber only if no more other conflicting
33698         operands.
33700 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
33702         PR sanitizer/56393
33703         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
33704         if not linking a shared library.
33706 2013-02-22  Seth LaForge  <sethml@google.com>
33708         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
33710 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
33712         * config/arm/arm.md (split for extendsidi): Update condition.
33713         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
33714         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
33715         (qhs_zextenddi_cstr): Likewise.
33717 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
33719         PR middle-end/56420
33720         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
33721         avoid signed wrapping.
33722         (expand_mult): Handle properly multiplication by
33723         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
33724         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
33725         in the compiler if coeff is HOST_WIDE_INT_MIN.
33726         (expand_divmod): Don't make ext_op1 static, change it's type to
33727         uhwi.  Avoid undefined behavior in -INTVAL (op1).
33729         PR rtl-optimization/50339
33730         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
33731         field.
33732         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
33733         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
33734         into splitting_ashiftrt field.
33735         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
33736         ASHIFTRT.
33737         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
33738         choices.
33740 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
33742         PR middle-end/56108
33743         * trans-mem.c (execute_tm_mark): Do not expand transactions that
33744         are sure to go irrevocable.
33746 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
33748         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
33749         scalars are valid operands.
33751 2013-02-21  Martin Jambor  <mjambor@suse.cz>
33753         PR tree-optimization/56310
33754         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
33755         only matching indices and non-negative final offsets.
33756         (intersect_aggregates_with_edge): Pass src_idx to
33757         agg_replacements_to_vector.  Pass src_idx insstead of index to
33758         intersect_with_agg_replacements.
33760 2013-02-21  Martin Jambor  <mjambor@suse.cz>
33762         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
33763         instead of hard-wired defaults.
33765 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
33767         * doc/invoke.texi (MIPS Options): Update documentation of the
33768         floating-point multiply-accumulate instruction restrictions.
33770 2013-02-21  Kostya Serebryany  <kcc@google.com>
33772         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
33773         asan_shadow_offset on x86_64 linux.
33775 2013-02-21  Richard Biener  <rguenther@suse.de>
33777         PR tree-optimization/56415
33778         Revert
33779         2013-02-11  Richard Biener  <rguenther@suse.de>
33781         PR tree-optimization/56273
33782         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33783         first VRP run.
33785 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
33787         PR bootstrap/56258
33788         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
33789         instead of @itemx.
33791         PR inline-asm/56405
33792         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
33793         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
33795 2013-02-20  Jan Hubicka  <jh@suse.cz>
33797         PR tree-optimization/56265
33798         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
33799         when target is referenced for first time.
33801 2013-02-20  Richard Biener  <rguenther@suse.de>
33803         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
33804         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
33805         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
33806         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
33807         not return anything.
33808         (rename_ssa_copies): Do not remove unused locals.
33809         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
33810         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
33811         * passes.c (execute_function_todo): Do not schedule unused locals
33812         removal if cleanup_tree_cfg did something.
33813         * tree-ssa-live.c (remove_unused_locals): Dump statistics
33814         about the number of removed locals.
33816 2013-02-20  Richard Biener  <rguenther@suse.de>
33818         PR tree-optimization/56398
33819         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
33821 2013-02-20  Martin Jambor  <mjambor@suse.cz>
33823         PR tree-optimization/55334
33824         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
33825         restricted pointers to arrays.
33827 2013-02-20  Richard Biener  <rguenther@suse.de>
33828             Jakub Jelinek  <jakub@redhat.com>
33830         PR tree-optimization/56396
33831         * tree-ssa-ccp.c (n_const_val): New static variable.
33832         (get_value): Return NULL for SSA names we don't have a lattice
33833         entry for.
33834         (ccp_initialize): Initialize n_const_val.
33835         * tree-ssa-copy.c (n_copy_of): New static variable.
33836         (init_copy_prop): Initialize n_copy_of.
33837         (get_value): Return NULL_TREE for SSA names we don't have a
33838         lattice entry for.
33840 2013-02-20  Martin Jambor  <mjambor@suse.cz>
33842         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
33844 2013-02-20  Richard Biener  <rguenther@suse.de>
33846         * genpreds.c (write_lookup_constraint): Do not compare first
33847         letter of the constraint again.
33849 2013-02-20  Richard Biener  <rguenther@suse.de>
33851         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
33852         and ceil_log2.
33853         (get_use_iv_cost): Terminate hashtable walk when coming across
33854         an empty entry.
33856 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
33858         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
33859         reassociation for avx2 targets.
33861 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33863         * config/microblaze/microblaze.c: microblaze_has_clz = 0
33864         Add version check for v8.10.a to enable microblaze_has_clz
33865         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
33866         version and TARGET_PATTERN_COMPARE check
33867         * config/microblaze/microblaze.md: New clzsi2 instruction
33869 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33871         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
33872         function before branching.
33874 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
33876         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
33877         DUMP_INSN_RTX_UID.
33878         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
33880 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
33882         PR middle-end/55889
33883         * sel-sched.c: Include ira.h.
33884         (implicit_clobber_conflict_p): New function.
33885         (moveup_expr): Use it.
33886         * Makefile.in (sel-sched.o): Depend on ira.h.
33888 2013-02-19  Richard Biener  <rguenther@suse.de>
33890         PR tree-optimization/56384
33891         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
33892         (vn_hash_type): Split out from ...
33893         (vn_hash_constant_with_type): ... here.
33894         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
33895         (vn_phi_eq): Compare types from vn_phi_s structure.
33896         (vn_phi_lookup): Populate vn_phi_s type.
33897         (vn_phi_insert): Likewise.
33899 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
33901         PR tree-optimization/56350
33902         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
33903         if haven't found reduction or nested cycle operand, rather than
33904         asserting we must find it.
33906         PR tree-optimization/56381
33907         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
33908         to fold_build3.
33910 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
33911             Jakub Jelinek  <jakub@redhat.com>
33913         PR target/52555
33914         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
33915         (swap_optab_enable): Same.
33916         (init_all_optabs): Use argument instead of global.
33917         * tree.h (struct tree_optimization_option): New field target_optabs.
33918         * expr.h (init_all_optabs): Add argument to prototype.
33919         (TREE_OPTIMIZATION_OPTABS): New.
33920         (save_optabs_if_changed): Protoize.
33921         * optabs.h: Declare this_fn_optabs.
33922         * optabs.c (save_optabs_if_changed): New.
33923         Declare this_fn_optabs.
33924         (init_optabs): Add argument to init_all_optabs() call.
33925         * function.c (invoke_set_current_function_hook): Handle per
33926         function optabs.
33927         * function.h (struct function): New field optabs.
33928         * config/mips/mips.c (mips_set_mips16_mode): Handle when
33929         optimization_current_node has changed.
33930         * target-globals.h (save_target_globals_default_opts): Protoize.
33931         * target-globals.c (save_target_globals_default_opts): New.
33933 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33935         PR target/56347
33936         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
33937         registers %fr12 and %fr12R as call used.
33939         PR target/56214
33940         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
33941         and HImode, require all displacements to be an integer multiple of
33942         their mode size.
33943         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
33944         only allow QImode and HImode when reload is in progress and strict is
33945         true.  Likewise for symbolic addresses.  Use base14_operand to check
33946         displacements in REG+BASE addresses.
33948 2013-02-18  Richard Biener  <rguenther@suse.de>
33950         PR tree-optimization/56366
33951         * tree-vect-loop.c (get_initial_def_for_induction): Properly
33952         handle sign-conversion of outer-loop initial induction value.
33954 2013-02-18  Richard Biener  <rguenther@suse.de>
33956         PR middle-end/56349
33957         * cfghooks.c (merge_blocks): If we merge a latch into another
33958         block adjust references to it.
33959         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
33960         (verify_loop_structure): Verify that a recorded latch is in fact
33961         a latch.
33963 2013-02-18  Richard Biener  <rguenther@suse.de>
33965         PR tree-optimization/56321
33966         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
33967         order SSA name release and virtual operand unlinking.
33969 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33971         * config/microblaze/microblaze.md (save_stack_block): Define.
33972         (restore_stack_block): Likewise.
33974 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33976         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
33977         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
33978         * config/microblaze/microblaze.c (microblaze_option_override):
33979         Bail out early for PIC modes when target does not support PIC.
33981 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33983         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
33984         Replace with a microblaze version.
33985         (microblaze_trampoline_init): Adapt for microblaze.
33986         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
33987         microblaze.
33989 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
33990             Dodji Seketeli  <dodji@redhat.com>
33992         PR asan/56330
33993         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
33994         (instrument_mem_region_access): Do not forget to always put
33995         instrumentation of the of 'base' and 'base + len' in a "if (len !=
33996         0) statement, even for cases where either 'base' or 'base + len'
33997         are not instrumented -- because they have been previously
33998         instrumented.  Simplify the logic by putting all the statements
33999         instrument 'base + len' inside a sequence, and then insert that
34000         sequence right before the current insertion point.  Then, to
34001         instrument 'base + len', just get an iterator on that statement.
34002         And do not forget to update the pointer to iterator the function
34003         received as argument.
34005 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
34007         PR rtl-optimization/56348
34008         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
34010 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
34012         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
34013         (clean_graph_dump_file): Pass base to start_graph_dump.
34015 2013-02-14  Richard Henderson  <rth@redhat.com>
34017         PR target/55941
34018         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
34020 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
34022         * collect2-aix.h: Define F_LOADONLY.
34024 2013-02-14  Richard Biener  <rguenther@suse.de>
34026         PR lto/50494
34027         * varasm.c (output_constant_def_1): Get the decl representing
34028         the constant as argument.
34029         (output_constant_def): Wrap output_constant_def_1.
34030         (make_decl_rtl): Use output_constant_def_1 with the decl
34031         representing the constant.
34032         (build_constant_desc): Optionally re-use a decl already
34033         representing the constant.
34034         (tree_output_constant_def): Adjust.
34036 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
34038         Fix an asan crash
34039         * asan.c (instrument_builtin_call):  Really put the length of the
34040         second source argument into src1_len.
34042 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
34044         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
34045         argument.  If it is false, don't create edge from then_bb to
34046         fallthru_bb.
34047         (insert_if_then_before_iter): Pass true to it.
34048         (build_check_stmt): Pass false to it.
34049         (transform_statements): Flush hash table only on extended basic
34050         block boundaries, rather than at the beginning of every bb.
34051         Don't flush hash table on nonfreeing_call_p calls.
34052         * tree-flow.h (nonfreeing_call_p): New prototype.
34053         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
34055 2013-02-13  David S. Miller  <davem@davemloft.net>
34057         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
34059 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
34061         PR target/56184
34062         * ira.c (max_regno_before_ira): Move from ...
34063         (ira): ... here.
34064         (fix_reg_equiv_init): Use max_regno_before_ira instead of
34065         vec_safe_length.
34067 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
34069         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
34071 2013-02-13  Richard Biener  <rguenther@suse.de>
34073         PR lto/56295
34074         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
34075         globals in MEM_REFs.
34077 2013-02-13  Richard Biener  <rguenther@suse.de>
34079         * loop-init.c (loop_optimizer_init): Clear loop state when
34080         re-initializing preserved loops.
34081         * loop-unswitch.c (unswitch_single_loop): Return whether
34082         we unswitched the loop.  Do not verify loop state here.
34083         (unswitch_loops): When we unswitched a loop discover new loops.
34085 2013-02-13  Kostya Serebryany  <kcc@google.com>
34087         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
34088         on x86_64 linux.
34089         * sanitizer.def: Rename __asan_init to __asan_init_v1.
34091 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
34093         Avoid instrumenting duplicated memory access in the same basic block
34094         * Makefile.in (asan.o): Add new dependency on hash-table.h
34095         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
34096         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
34097         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
34098         (free_mem_ref_resources, has_mem_ref_been_instrumented)
34099         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
34100         (get_mem_ref_of_assignment): New functions.
34101         (get_mem_refs_of_builtin_call): Extract from
34102         instrument_builtin_call and tweak a little bit to make it fit with
34103         the new signature.
34104         (instrument_builtin_call): Use the new
34105         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
34106         of is_gimple_builtin_call.
34107         (instrument_derefs, instrument_mem_region_access): Insert the
34108         instrumented memory reference into the hash table.
34109         (maybe_instrument_assignment): Renamed instrument_assignment into
34110         this, and change it to advance the iterator when instrumentation
34111         actually happened and return true in that case.  This makes it
34112         homogeneous with maybe_instrument_assignment, and thus give a
34113         chance to callers to be more 'regular'.
34114         (transform_statements): Clear the memory reference hash table
34115         whenever we enter a new BB, when we cross a function call, or when
34116         we are done transforming statements.  Use
34117         maybe_instrument_assignment instead of instrumentation.  No more
34118         need to special case maybe_instrument_assignment and advance the
34119         iterator after calling it; it's now handled just like
34120         maybe_instrument_call.  Update comment.
34122 2013-02-13  Richard Biener  <rguenther@suse.de>
34124         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
34125         Fix loop discovery code.
34127 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
34129         PR inline-asm/56148
34130         * lra-constraints.c (process_alt_operands): Match early clobber
34131         operand with itself.  Check conflicts with earlyclobber only if
34132         the operand is not reloaded.  Prefer to reload conflicting operand
34133         if earlyclobber and matching operands are the same.
34135 2013-02-12  Richard Biener  <rguenther@suse.de>
34137         PR lto/56297
34138         * lto-streamer-out.c (write_symbol): Do not output symbols
34139         for hard register variables.
34141 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
34143         PR target/54222
34144         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
34145         (umulsidi3_insn, mulsidi3_insn): New insns.
34147 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
34149         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
34150         (struct tune_params): Add vec_costs field.
34151         * config/arm/arm.c (arm_builtin_vectorization_cost)
34152         (arm_add_stmt_cost): New functions.
34153         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
34154         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
34155         (arm_default_vec_cost): New struct of type cpu_vec_costs.
34156         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
34157         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
34158         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
34159         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
34161 2013-02-12  Richard Biener  <rguenther@suse.de>
34163         PR lto/56295
34164         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
34165         decls again if possible.
34167 2013-02-12  Richard Biener  <rguenther@suse.de>
34169         PR middle-end/56288
34170         * tree-ssa.c (verify_ssa_name): Fix check, move
34171         SSA_NAME_IN_FREE_LIST check up.
34173 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
34174             Steven Bosscher   <steven@gcc.gnu.org>
34176         PR rtl-optimization/56151
34177         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
34178         equal to op0 or op1, and last_insn pattern is CODE operation
34179         with MEM dest and one of the operands matches that MEM.
34181 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
34183         * doc/extend.texi: Document Function Multiversioning and "default"
34184         parameter string to target attribute.
34185         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
34186         target attribute parameter is "default".
34187         (ix86_compare_version_priority): Remove checks for target attribute.
34188         (ix86_mangle_function_version_assembler_name): Change error to sorry.
34189         Remove check for target attribute equal to NULL. Add assert.
34190         (ix86_generate_version_dispatcher_body): Change error to sorry.
34192 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
34193             Jack Howarth  <howarth@bromo.med.uc.edu>
34194             Patrick Marlier  <patrick.marlier@gmail.com>
34196         PR libitm/55693
34197         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
34198         define ENDFILE_SPEC as TM_DESTRUCTOR.
34199         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
34201 2013-02-11  Alexander Potapenko  <glider@google.com>
34202             Jack Howarth  <howarth@bromo.med.uc.edu>
34203             Jakub Jelinek  <jakub@redhat.com>
34205         PR sanitizer/55617
34206         * config/darwin.c (cdtor_record): Rename ctor_record.
34207         (sort_cdtor_records): Rename sort_ctor_records.
34208         (finalize_dtors): New routine to sort destructors by
34209         priority before use in assemble_integer.
34210         (machopic_asm_out_destructor): Use finalize_dtors if needed.
34212 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
34214         PR rtl-optimization/56275
34215         * simplify-rtx.c (avoid_constant_pool_reference): Check that
34216         offset is non-negative and less than cmode size before
34217         calling simplify_subreg.
34219 2013-02-11  Richard Biener  <rguenther@suse.de>
34221         PR tree-optimization/56264
34222         * cfgloop.h (fix_loop_structure): Adjust prototype.
34223         * loop-init.c (fix_loop_structure): Return the number of
34224         newly discovered loops.
34225         * tree-cfgcleanup.c (repair_loop_structures): When new loops
34226         are discovered, do a full loop-closed SSA rewrite.
34228 2013-02-11  Richard Biener  <rguenther@suse.de>
34230         PR tree-optimization/56273
34231         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
34232         first VRP run.
34233         (check_array_ref): Fix missing newline in dumps.
34234         (search_for_addr_array): Likewise.
34236 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
34238         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
34240 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
34242         PR target/56256
34243         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
34245 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
34247         PR rtl-optimization/56246
34248         * lra-constraints.c (simplify_operand_subreg): Try to reuse
34249         reload pseudo.
34250         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
34251         constraints are satisfied.
34253 2013-02-08  Jeff Law  <law@redhat.com>
34255         PR debug/53948
34256         * emit-rtl.c (reg_is_parm_p): New function.
34257         * regs.h (reg_is_parm_p): New prototype.
34258         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
34259         callee-clobbered registers.
34261 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
34263         PR target/56043
34264         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
34265         If there is no implicit builtin declaration, just return NULL.
34267 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34269         * config/i386/sse.md (FMAMODEM): New mode iterator.
34270         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
34271         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
34273 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34275         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
34276         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
34277         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
34279 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34281         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
34282         (microblaze*-*-elf): Likewise.
34283         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
34284         LINK_SPEC.
34285         * config/microblaze/microblaze-c.c: Add builtin defines for
34286         _LITTLE_ENDIAN and _BIG_ENDIAN.
34287         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
34288         add to TARGET_DEFAULT flags.
34289         Expand ASM_SPEC and LINK_SPEC.
34290         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
34291         * config/microblaze/microblaze.md: Update extendsidi2 and
34292         movdi_internal instructions to use low-order / high-order reg
34293         print_operands.
34294         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
34295         options and inversemask / mask of LITTLE_ENDIAN.
34296         * config/microblaze/t-microblaze: Expand multilib options to
34297         include mlittle-endian (le) and update exceptions patterns.
34299 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
34301         PR rtl-optimization/56195
34302         * lra-constraints.c (get_reload_reg): Don't reuse regs
34303         if they have smaller mode than requested, if they have
34304         wider mode than requested, try to return a SUBREG.
34306         PR tree-optimization/56250
34307         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
34308         if type is unsigned and code isn't MULT_EXPR.
34310 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
34312         PR tree-optimization/56064
34313         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
34314         bits according to mode.
34315         * fixed-value.h (fixed_from_double_int)
34316         (const_fixed_from_double_int): Adjust comments.
34318 2013-02-08  Richard Biener  <rguenther@suse.de>
34320         PR lto/56231
34321         * lto-streamer.h (struct data_in): Remove current_file, current_line
34322         and current_col members.
34323         * lto-streamer-out.c (lto_output_location): Stream changed bits
34324         en-block for efficiency.
34325         * lto-streamer-in.c (clear_line_info): Remove.
34326         (lto_input_location): Cache current file, line and column
34327         globally via local statics.  Read changed bits en-block.
34328         (input_function): Do not call clear_line_info.
34329         (lto_read_body): Likewise.
34330         (lto_input_toplevel_asms): Likewise.
34332 2013-02-08  Michael Matz  <matz@suse.de>
34334         PR tree-optimization/52448
34335         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
34336         (nt_call_phase): New static.
34337         (add_or_mark_expr): Only mark accesses with newer phase than any
34338         call seen.
34339         (nonfreeing_call_p): New.
34340         (nt_init_block): Update nt_call_phase, mark blocks as visited.
34341         (nt_fini_block): Keep blocks marked as visited.
34342         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
34344 2013-02-08  Richard Biener  <rguenther@suse.de>
34346         * ira.c (ira): Free broken dominator information.
34348 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
34350         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
34352 2013-02-08  Marek Polacek  <polacek@redhat.com>
34354         * cfgloop.c (verify_loop_structure): Add more checking of headers.
34356 2013-02-08  Richard Biener  <rguenther@suse.de>
34358         PR middle-end/56181
34359         * cfgloop.h (flow_loops_find): Adjust.
34360         (bb_loop_header_p): Declare.
34361         * cfgloop.c (bb_loop_header_p): New function split out from ...
34362         (flow_loops_find): ... here.  Adjust function signature,
34363         support incremental loop structure update.
34364         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
34365         * cfgloopmanip.c (fix_loop_structure): Move ...
34366         * loop-init.c (fix_loop_structure): ... here.
34367         (apply_loop_flags): Split out from ...
34368         (loop_optimizer_init): ... here.
34369         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
34370         in incremental mode, only remove dead loops here.
34372 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
34374         PR target/54222
34375         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
34376         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
34377         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
34378         (*round<mode>3.libgcc): New insns for fixed-modes.
34379         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
34380         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
34381         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
34382         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
34383         implementations.  Define to __builtin_avr_absFX,
34384         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
34385         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
34386         __builtin_avr_countlsFX, respectively.
34387         * config/avr/avr-c.c (target.h): Include it.
34388         (enum avr_builtin_id): New enum.
34389         (avr_resolve_overloaded_builtin): New static function.
34390         (avr_register_target_pragmas): Use it to set
34391         targetm.resolve_overloaded_builtin.
34392         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
34393         tree nodes used by DEF_BUILTIN.
34394         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
34395         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
34396         <AVR_BUILTIN_xxBITS>: Same.
34398 2013-02-08  Richard Biener  <rguenther@suse.de>
34400         * cfgloop.c (verify_loop_structure): Properly handle
34401         a loop exiting to another loop header.
34402         * ira-int.h (ira_loops): Remove.
34403         * ira.c (ira_loops): Remove.
34404         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
34405         (do_reload): Use loop_optimizer_finalize.
34406         * ira-build.c (create_loop_tree_nodes): Use get_loops and
34407         number_of_loops to access the loop tree.
34408         (more_one_region_p): Likewise.
34409         (finish_loop_tree_nodes): Likewise.
34410         (rebuild_regno_allocno_maps): Likewise.
34411         (mark_loops_for_removal): Likewise.
34412         (mark_all_loops_for_removal): Likewise.
34413         (remove_unnecessary_regions): Likewise.
34414         (ira_build): Likewise.
34415         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
34417 2013-02-08  Richard Biener  <rguenther@suse.de>
34419         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
34420         * ipa-pure-const.c (analyze_function): Avoid calling
34421         mark_irreducible_loops twice.
34422         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
34424 2013-02-07  David S. Miller  <davem@davemloft.net>
34426         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
34427         on 'reg'.
34428         * var-tracking.c (vt_add_function_parameter): Test the presence of
34429         HAVE_window_save properly and do not remap argument registers when
34430         we have a leaf function.
34432 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
34434         PR bootstrap/56227
34435         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
34436         instead of "ll".
34437         * config/i386/i386.c (ix86_print_operand): Ditto.
34439 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
34441         * lra-constraints.c (process_alt_operands): Fix recently added comment.
34443 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
34445         PR rtl-optimization/56225
34446         * lra-constraints.c (process_alt_operands): Check that reload hard
34447         reg can hold value for strict_low_part.
34449 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
34451         PR debug/56154
34452         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
34453         dwarf2out_end_function.
34454         (in_first_function_p, maybe_at_text_label_p,
34455         first_loclabel_num_not_at_text_label): New variables.
34456         (dwarf2out_var_location): In the first function find out
34457         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
34458         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
34459         functions.
34461 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
34463         PR rtl-optimization/56178
34464         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
34465         SUBREG of a register.  Tidy up related block of code.
34466         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
34467         note if the source is a register or a SUBREG of a register.
34469 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
34471         PR target/56228
34472         * config/rs6000/rs6000.md (ptrm): New mode attr.
34473         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
34474         call_value_indirect_aix<pttrsize>,
34475         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
34476         m in constraints.
34478 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34480         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
34481         if -bnortl. Convert to strcmp and strncmp.
34483 2013-02-07  Alan Modra  <amodra@gmail.com>
34485         PR target/54009
34486         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
34487         addresses won't wrap when offsetting.
34488         (rs6000_secondary_reload): Provide secondary reloads needed for
34489         wrapping LO_SUM addresses.
34491 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
34493         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
34494         MACH, just __MACH__.
34496 2013-02-06  Richard Biener  <rguenther@suse.de>
34498         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
34499         instead of calling fix_loop_structure.
34501 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
34503         PR middle-end/56217
34504         * omp-low.c (use_pointer_for_field): Return false if
34505         lower_send_shared_vars doesn't generate any copy-out code.
34507 2013-02-06  Tom de Vries  <tom@codesourcery.com>
34509         PR rtl-optimization/56131
34510         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
34511         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
34512         of the label is NULL.  Add comment.
34514 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
34516         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
34518         PR sanitizer/55374
34519         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
34520         (STATIC_LIBTSAN_LIBS): Likewise.
34521         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
34522         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
34523         is defined, don't add anything else beyond that.
34524         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
34525         (LINK_COMMAND_SPEC): Use them.
34527         PR tree-optimization/56205
34528         * tree-stdarg.c (check_all_va_list_escapes): Return true if
34529         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
34530         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
34532 2013-02-05  Richard Biener  <rguenther@suse.de>
34534         PR tree-optimization/53342
34535         PR tree-optimization/53185
34536         * tree-vectorizer.h (vect_check_strided_load): Remove.
34537         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
34538         not disallow peeling for vectorized strided loads.
34539         (vect_check_strided_load): Make static and simplify.
34540         (vect_analyze_data_refs): Adjust.
34541         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
34542         correctly when vectorizing strided loads.
34544 2013-02-05  Richard Biener  <rguenther@suse.de>
34546         * doc/install.texi: Refer to ISL, not PPL.
34548 2013-02-05  Jan Hubicka  <jh@suse.cz>
34550         PR tree-optimization/55789
34551         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
34553 2013-02-05  Jan Hubicka  <jh@suse.cz>
34555         PR tree-optimization/55789
34556         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
34557         the dead call anyway.
34559 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
34561         PR sanitizer/55374
34562         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
34564 2013-02-04  Alexander Potapenko  <glider@google.com>
34565             Jack Howarth  <howarth@bromo.med.uc.edu>
34566             Jakub Jelinek  <jakub@redhat.com>
34568         PR sanitizer/55617
34569         * config/darwin.c (sort_ctor_records): Stabilized qsort
34570         on constructor priority by using original position.
34571         (finalize_ctors): New routine to sort constructors by
34572         priority before use in assemble_integer.
34573         (machopic_asm_out_constructor): Use finalize_ctors if needed.
34575 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
34577         PR libstdc++/54314
34578         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
34579         about visibility on artificial decls.
34580         * config/sol2.c (solaris_assemble_visibility): Likewise.
34582 2013-02-04  Kai Tietz  <ktietz@redhat.com>
34584         PR target/56186
34585         * config/i386/i386.c (function_value_ms_64): Add additional valtype
34586         argument and improve checking of return-argument types for 16-byte
34587         modes.
34588         (ix86_function_value_1): Add additional valtype argument on call
34589         of function_value_64.
34590         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
34591         handling infunction_value_64 function.
34593 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
34595         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
34597 2013-02-04  Richard Biener  <rguenther@suse.de>
34599         PR tree-optimization/56188
34600         * tree-ssa-structalias.c (label_visit): Consider case with
34601         initially non-empty points-to set.
34602         (perform_var_substitution): Dump node mapping and clean up.
34604 2013-02-04  Richard Guenther  <rguenther@suse.de>
34606         PR lto/56168
34607         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
34608         node prevail as last resort.
34609         (lto_symtab_merge_decls): Remove guard on LTRANS here.
34610         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
34612 2013-02-04  Richard Biener  <rguenther@suse.de>
34614         PR tree-optimization/56113
34615         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
34616         Merge into ...
34617         (equiv_class_lookup_or_add): ... this.
34618         (label_visit): Adjust and fix error in previous patch.
34619         (perform_var_substitution): Adjust.
34621 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
34623         * config/sh/divtab.c: Fix formatting and comments throughout the file.
34624         * config/sh/sh4-300.md: Likewise.
34625         * config/sh/sh4a.md: Likewise.
34626         * config/sh/constraints.md: Likewise.
34627         * config/sh/sh.md: Likewise.
34628         * config/sh/netbsd-elf.h: Likewise.
34629         * config/sh/predicates.md: Likewise.
34630         * config/sh/sh-protos.h: Likewise.
34631         * config/sh/ushmedia.h: Likewise.
34632         * config/sh/linux.h: Likewise.
34633         * config/sh/sh.c: Likewise.
34634         * config/sh/superh.h: Likewise.
34635         * config/sh/elf.h: Likewise.
34636         * config/sh/sh4.md: Likewise.
34637         * config/sh/sh.h: Likewise.
34639 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34641         * config/pa/constraints.md: Adjust unused letters.  Change "T"
34642         constraint to match_test floating_point_store_memory_operand().
34643         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
34644         (base14_operand): New.
34645         (floating_point_store_memory_operand): New.
34646         (integer_store_memory_operand): Revise to use base14_operand and
34647         reg_plus_base_memory_operand.
34648         (move_dest_operand): Allow symbolic_memory_operands.
34649         (symbolic_memory_operand): Check for LO_SOM.
34650         (symbolic_operand): Change default case to break.
34651         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
34652         CONST_DOUBLE values to be reloaded by putting them into memory when
34653         the destination is a floating point register.
34654         (movdf): Remove code to handle CONST_DOUBLE.
34655         (movsf): Likewise.
34656         (reload_indf_r1): New.
34657         (reload_insf_r1): New.
34658         Consistently use "Q" and "T" constraints with integer and floating
34659         point move instructions, respectively.
34660         (movdi): Remove FAIL.
34661         Change predicate for source operand unamed DImode move from
34662         general_operand to move_src_operand.
34663         (umulsidi3): Change predicate for destination operand to
34664         register_operand.
34665         Likewise for similar unamed patterns.
34666         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
34667         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
34668         (hppa_legitimize_address): Simplify mask calculation.
34669         (pa_emit_move_sequence): Revised handling of secondary reloads from
34670         REG+D addresses for floating point loads and stores.  Directly handle
34671         loading CONST0_RTX (mode) to a floating point register.
34672         (pa_secondary_reload): Handle reloading DF and SFmode constant values
34673         to floating point registers.  Don't restrict secondary reloads to
34674         floating point registers to integer modes.  Revise some comments and
34675         cleanup some code.
34676         (TARGET_LEGITIMATE_ADDRESS_P): Define.
34677         (pa_legitimate_address_p): New.
34678         (pa_legitimize_reload_address): New.
34679         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
34680         (STRICT_REG_OK_FOR_BASE_P): New.
34681         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
34682         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
34684 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
34685             Andrew Dixie  <andrewd@gentrack.com>
34687         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
34688         flag set.
34690 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
34692         * expmed.c (extract_bit_field_1): Pass the full width of the
34693         structure to get_best_reg_extraction_insn.
34695 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
34697         PR target/54601
34698         * configure.ac (use_cxa_atexit): Add AIX.
34699         * configure: Regenerate.
34701         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
34703 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
34705         PR debug/54793
34706         * final.c (need_profile_function): New variable.
34707         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
34708         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
34709         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
34710         notes, targetm.asm_out.function_prologue doesn't emit anything,
34711         HAVE_prologue and profiler should be emitted before prologue,
34712         set need_profile_function instead of emitting it.
34713         (final_scan_insn): If need_profile_function, emit
34714         profile_function on the first NOTE_INSN_BASIC_BLOCK or
34715         NOTE_INSN_FUNCTION_BEG note.
34717 2013-02-01  Richard Henderson  <rth@redhat.com>
34719         * config/rs6000/rs6000.md (smulditi3): New.
34720         (umulditi3): New.
34722         * config/alpha/alpha.md (umulditi3): New.
34724 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
34726         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
34727         (ASM_OUTPUT_ALIGNED_LOCAL): New.
34729 2013-02-01  Richard Biener  <rguenther@suse.de>
34731         PR tree-optimization/56113
34732         * tree-ssa-structalias.c (label_visit): Reduce work for
34733         single-predecessor nodes.
34735 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
34737         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
34738         range isn't testing for zero.
34740 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
34742         PR middle-end/56113
34743         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
34745 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
34746             Nick Clifton  <nickc@redhat.com>
34748         * config/v850/constraints.md (Q): Define as a memory constraint.
34749         * config/v850/predicates.md (label_ref_operand): New predicate.
34750         (e3v5_shift_operand): New predicate.
34751         (ior_operator): New predicate.
34752         * config/v850/t-v850: Add e3v5 multilib.
34753         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
34754         (v850_gen_movdi): Prototype.
34755         * config/v850/v850.c: Add support for e3v5 architecture.
34756         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
34757         TARGET_V850E_UP.
34758         (construct_save_jarl): Add e3v5 long JARL support.
34759         (v850_adjust_insn_length): New function.  Adjust length of call
34760         insns when using e3v5 instructions.
34761         (v850_gen_movdi): New function: Generate instructions to move a
34762         DImode value.
34763         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
34764         (CPP_SPEC): Define __v850e3v5__ as appropriate.
34765         (TARGET_USE_FPU): Enable for e3v5.
34766         (CONST_OK_FOR_W): New macro.
34767         (ADJUST_INSN_LENGTH): Define.
34768         * config/v850/v850.md (UNSPEC_LOOP): Define.
34769         (attr cpu): Add v850e3v5.
34770         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
34771         (movdi): New pattern.
34772         (movdi_internal): New pattern.
34773         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
34774         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
34775         (cstoresf4): Likewise.
34776         (cstoredf4): Likewise.
34777         (insv): New pattern.
34778         (rotlso3_a): New pattern.
34779         (rotlsi3_b): New pattern
34780         (rotlsi3_v850e3v5): New pattern.
34781         (doloop_begin): New pattern.
34782         (fix_loop_counter): New pattern.
34783         (doloop_end): New pattern.
34784         (branch_normal): Add e3v5 long branch support.
34785         (branch_invert): Likewise.
34786         (branch_z_normal): Likewise.
34787         (branch_z_invert): Likewise.
34788         (branch_nz_normal): Likewise.
34789         (branch_nz_invert): Likewise.
34790         (call_internal_short): Add e3v5 register-indirect JARL support.
34791         (call_internal_long): Likewise.
34792         (call_value_internal_short): Likewise.
34793         (call_value_internal_long): Likewise.
34794         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
34795         (mloop): New option.
34796         * config.gcc: Add support for configuring v840e3v5 target.
34797         * doc/invoke.texi: Document new v850 specific command line options.
34799 2013-01-31  Paul Koning  <ni1d@arrl.net>
34801         PR debug/55059
34802         PR debug/54508
34803         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
34804         children if parent is a class.
34805         (prune_unused_types_prune): Don't add DW_AT_declaration.
34807 2013-01-31  Richard Biener  <rguenther@suse.de>
34809         PR tree-optimization/56157
34810         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
34811         match up operand with SLP child.
34813 2013-01-31  Jason Merrill  <jason@redhat.com>
34815         PR debug/54410
34816         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
34817         parameters the first time.
34818         (gen_scheduled_generic_parms_dies): Check completeness here.
34820 2013-01-31  Richard Biener  <rguenther@suse.de>
34822         PR middle-end/53073
34823         * common.opt (faggressive-loop-optimizations): New flag,
34824         enabled by default.
34825         * doc/invoke.texi (faggressive-loop-optimizations): Document.
34826         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
34827         infer_loop_bounds_from_undefined by it.
34829 2013-01-31  Richard Biener  <rguenther@suse.de>
34831         PR tree-optimization/56150
34832         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
34833         visit virtual operands.
34834         (find_uses_to_rename_bb): Likewise.
34836 2013-01-31  Richard Biener  <rguenther@suse.de>
34838         PR tree-optimization/56150
34839         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
34840         mixed store non-store stmts.
34842 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
34844         PR sanitizer/55374
34845         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
34846         LIBASAN_EARLY_SPEC is defined.
34847         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
34848         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
34849         before %o.
34850         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
34852         PR c++/55742
34853         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
34854         invalid args instead of ICEing on it.
34855         (ix86_valid_target_attribute_tree): Return error_mark_node if
34856         ix86_valid_target_attribute_inner_p failed.
34857         (ix86_valid_target_attribute_p): Return false only if
34858         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
34859         target("default") attribute.
34860         (sorted_attr_string): Change argument from const char * to tree,
34861         merge in all target attribute arguments rather than just one.
34862         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
34863         instead of free.  Avoid using strcat.
34864         (ix86_mangle_function_version_assembler_name): Mangle
34865         target("default") as if no target attribute is present.  Adjust
34866         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
34867         instead of xmalloc and XDELETEVEC instead of free.
34868         (ix86_function_versions): Don't return true if one of the decls
34869         doesn't have target attribute.  If they don't and one of the decls
34870         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
34871         sorted_attr_string caller.  Use XDELETEVEC instead of free.
34872         (ix86_supports_function_versions): Remove.
34873         (make_name): Fix up formatting.
34874         (make_dispatcher_decl): Remove resolver_name and its initialization.
34875         Avoid leaking memory.
34876         (is_function_default_version): Return true if there is
34877         target("default") attribute rather than no target attribute at all.
34878         (make_resolver_func): Avoid leaking memory.
34879         (ix86_generate_version_dispatcher_body): Likewise.
34880         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
34881         * target.def (supports_function_versions): Remove.
34882         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
34883         * doc/tm.texi: Regenerated.
34885 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34887         PR rtl-optimization/56144
34888         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
34889         for values with side effects.
34891 2013-01-30  Richard Biener  <rguenther@suse.de>
34893         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
34894         (sparseset_pop): Likewise.
34895         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
34896         to be able to use quick_push in the worker loop.
34898 2013-01-30  Marek Polacek  <polacek@redhat.com>
34900         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
34902 2013-01-30  Richard Biener  <rguenther@suse.de>
34904         PR lto/56147
34905         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
34907 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
34909         PR tree-optimization/56064
34910         * fixed-value.c (fixed_from_double_int): New function.
34911         * fixed-value.h (fixed_from_double_int): New prototype.
34912         (const_fixed_from_double_int): New static inline function.
34913         * fold-const.c (native_interpret_fixed): New static function.
34914         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
34915         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
34916         (native_encode_fixed): New static function.
34917         (native_encode_expr) <FIXED_CST>: Use it.
34918         (native_interpret_int): Move double_int worker code to...
34919         * double-int.c (double_int::from_buffer): ...this new static method.
34920         * double-int.h (double_int::from_buffer): Prototype it.
34922 2013-01-30  Richard Biener  <rguenther@suse.de>
34924         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
34925         New pointer-map and obstack.
34926         (init_alias_vars): Allocate pointer-map and obstack.
34927         (delete_points_to_sets): Free them.
34928         (find_what_var_points_to): Cache result.
34929         (find_what_p_points_to): Adjust for changed interface of
34930         find_what_var_points_to.
34931         (compute_points_to_sets): Likewise.
34932         (ipa_pta_execute): Likewise.
34934 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34936         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
34937         * configure: Regenerate.
34938         * config.in: Regenerate.
34939         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
34940         #nobits/#progbits if supported.
34942 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
34944         PR target/56121
34945         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
34946         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
34947         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
34949 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34951         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
34952         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
34954 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34956         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
34957         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
34959 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34961         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
34962         declaration.
34963         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
34964         * config/arm/cortex-a7.md: New bypasses using
34965         arm_mac_accumulator_is_result.
34967 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34969         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
34970         (cortex_a7_neon_mla): Likewise.
34971         (cortex_a7_fpfmad): New reservation.
34972         (cortex_a7_fpmacs): Use ffmas and update required units.
34973         (cortex_a7_fpmuld): Update required units and latency.
34974         (cortex_a7_fpmacd): Likewise.
34975         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
34976         (cortex_a7_neon). Likewise.
34977         (bypass) Update participating units.
34979 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34981         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
34982         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
34983         from fmac to ffma.
34984         * config/arm/vfp11.md (vfp_farith): Use ffmas.
34985         (vfp_fmul): Use ffmad.
34986         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
34987         (cortex_r4_fmacd): Use ffmad.
34988         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
34989         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
34990         (cortex_a9_fmacd): Use ffmad.
34991         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
34992         (cortex_a8_vfp_macd): Use ffmad.
34993         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
34994         (cortex_a5_fpmacd): Use ffmad.
34995         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
34996         (cortex_a15_vfp_macd): Use ffmad.
34997         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
34999 2013-01-29  Jason Merrill  <jason@redhat.com>
35001         PR libstdc++/54314
35002         * varasm.c (default_assemble_visibility): Don't warn about
35003         visibility on artificial decls.
35005 2013-01-29  Richard Biener  <rguenther@suse.de>
35007         PR tree-optimization/56113
35008         * tree-ssa-structalias.c (equiv_class_lookup): Also return
35009         the bitmap leader.
35010         (label_visit): Free duplicate bitmaps and record the leader instead.
35011         (perform_var_substitution): Adjust.
35013 2013-01-29  Richard Biener  <rguenther@suse.de>
35015         PR tree-optimization/55270
35016         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
35017         the CFG, schedule loops for fixup.
35019 2013-01-29  Nick Clifton  <nickc@redhat.com>
35021         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
35022         SP_REG.
35024 2013-01-28  Leif Ekblad  <leif@rdos.net>
35026         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
35027         * config/i386/i386.h (TARGET_RDOS): New macro.
35028         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
35029         * config/i386/i386.c (ix86_option_override_internal): For 64bit
35030         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
35031         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
35032         DEFAULT_LARGE_SECTION_THRESHOLD.
35033         * config/i386/i386.md (R14_REG, R15_REG): New constants.
35034         * config/i386/rdos.h: New file.
35035         * config/i386/rdos64.h: New file.
35037 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
35039         PR other/54814
35040         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
35041         TEST_HARD_REG_BIT.
35043 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
35045         PR rtl-optimization/56117
35046         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
35047         call cselib_lookup_from_insn on the MEM before calling
35048         add_insn_mem_dependence.
35050 2013-01-28  Richard Biener  <rguenther@suse.de>
35052         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
35053         to a stmt that didn't have one.
35054         (copy_phis_for_bb): Likewise for PHI arguments.
35055         (copy_debug_stmt): Likewise for debug stmts.
35057 2013-01-28  Richard Biener  <rguenther@suse.de>
35059         PR tree-optimization/56034
35060         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
35061         (partition_builtin_p): Adjust.
35062         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
35063         it is the last partition.
35064         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
35065         up the vertex for the definition.
35066         (classify_partition): Classify whether a partition is a
35067         PKIND_REDUCTION, thus has uses outside of the loop.
35068         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
35069         Merge all PKIND_REDUCTION partitions into the last partition.
35070         (tree_loop_distribution): Seed partitions from reductions as well.
35072 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
35074         PR tree-optimization/56125
35075         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
35076         pow(x,c) into sqrt(x) * powi(x, n/2) or
35077         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
35078         optimizing for size.
35079         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
35080         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
35081         integer.
35083         PR tree-optimization/56094
35084         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
35085         to UNKNOWN_LOCATION while gimplifying expr.
35087 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
35089         PR target/56114
35090         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
35091         operand 0 in movabs insn template for -masm=intel asm alternative.
35092         (*movabs<mode>_2): Ditto for operand 1.
35094 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
35096         PR target/54663
35097         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
35098         of microblaze-c.o
35100 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
35102         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
35103         tm_file.
35105 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
35107         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
35108         Undef to avoid warning.
35110 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35112         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
35113         * configure: Regenerate.
35115 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
35117         PR tree-optimization/56098
35118         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
35119         for stmts with volatile ops.
35120         (cond_store_replacement): Don't optimize if assign has volatile ops.
35121         (cond_if_else_store_replacement_1): Don't optimize if either
35122         then_assign or else_assign have volatile ops.
35123         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
35124         volatile ops.
35126 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35128         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
35130 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35132         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
35133         missing ':' in asm example.
35135 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
35137         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
35138         entries into lane and laneq entries.
35139         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
35140         Remove AdvSIMD scalar modes.
35141         (aarch64_sq<r>dmulh_laneq<mode>): New.
35142         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
35143         modes.
35144         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
35145         builtin implementations to relfect changes in RTL in aarch64-simd.md.
35146         * config/aarch64/iterators.md (VCOND): New.
35147         (VCONQ): New.
35149 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
35151         PR target/54222
35152         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
35153         Add NULL LIBNAME argument to existing definitions.
35154         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
35155         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
35156         * config/avr/avr.c (DEF_BUILTIN): Same.
35157         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
35158         (avr_expand_builtin): Expand to a vanilla call if a libgcc
35159         implementation is available (DECL_ASSEMBLER_NAME is set).
35160         (avr_fold_absfx): New static function.
35161         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
35162         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
35163         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
35164         AVR_BUILTIN_ABSLLK.
35165         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
35166         (abshk, absk, abslk, absllk): Provide as static inline functions.
35168 2013-01-25  Marek Polacek  <polacek@redhat.com>
35170         PR tree-optimization/56035
35171         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
35173 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
35175         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
35176         (*movtf_internal_rex64): Add (!o,C) alternative
35177         (*movxf_internal_rex64): Ditto.
35178         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
35180 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
35182         * doc/invoke.texi: fix typo.
35183         * doc/objc.texi: fix typo.
35185 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
35187         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
35188         for the first two alternatives.
35190 2013-01-24  Diego Novillo  <dnovillo@google.com>
35192         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
35193         (ggc-zone.o): Remove.
35194         * configure.ac: Remove option --with-gc.
35195         * configure: Re-generate.
35196         * doc/install.texi: Remove documentation for --with-gc.
35197         * gengtype.c (write_enum_defn): Remove.  Update all users.
35198         (write_Types_process_field): Remove generation of gt_e_* argument.
35199         (output_type_enum): Remove.  Update all users.
35200         (write_enum_defn): Remove.  Update all users.
35201         (enum alloc_zone): Remove.  Update all users.
35202         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
35203         * ggc-common.c (ggc_splay_alloc): Remove first argument.
35204         Update all callers.
35205         (struct ptr_data): Remove field TYPE.  Update all users.
35206         (gt_pch_note_object): Remove argument TYPE.  Update all users.
35207         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
35208         Update all users.
35209         * ggc-none.c (ggc_alloc_typed_stat): Remove.
35210         (struct alloc_zone): Remove.
35211         (ggc_internal_alloc_zone_stat): Remove.
35212         (ggc_internal_cleared_alloc_zone_stat): Remove.
35213         * ggc-page.c (ggc_alloc_typed_stat): Remove.
35214         (ggc_pch_count_object): Remove last argument.  Update all users.
35215         (ggc_pch_alloc_object): Remove last argument.  Update all users.
35216         (struct alloc_zone): Remove.
35217         * ggc-zone.c: Remove.
35218         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
35219         (struct alloc_zone): Remove.
35220         (ggc_alloc_typed_stat): Remove.
35221         (ggc_alloc_typed): Remove.
35222         (ggc_splay_alloc): Remove first argument.
35223         (rtl_zone): Remove.  Update all users.
35224         (tree_zone): Remove.  Update all users.
35225         (tree_id_zone): Remove.  Update all users.
35226         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
35227         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
35228         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
35229         * tree-ssanames.c: Remove references to zone allocator in comments.
35231 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
35233         * config/avr/avr.c (avr_out_fract): Make register numbers that
35234         might be outside of source operand signed.
35236 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
35238         * config/i386/constraints.md (Yf): New constraint.
35239         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
35240         of f constraint to conditionaly disable x87 register preferences.
35241         (*movdf_internal): Ditto.
35242         (*movsf_internal): Ditto.
35244 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
35246         PR inline-asm/55934
35247         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
35248         that have operands with impossible constraints.
35249         Add a FIXME for a speed-up opportunity.
35250         * lra-constraints.c (process_alt_operands): Verify that a class
35251         selected from constraints on asms is valid for the operand mode.
35252         (curr_insn_transform): Remove incorrect comment.
35254 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
35256         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
35257         TOC operand is a valid symbol ref in the constant pool.
35259 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
35261         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
35263 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
35265         PR target/54222
35266         * config/avr/stdfix.h: New file.
35267         * t-avr (stdfix-gcc.h): New rule to build it.
35268         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
35270 2013-01-23  Kostya Serebryany  <kcc@google.com>
35272         * config/darwin.h: remove dependency on
35273         CoreFoundation (asan on Mac OS).
35275 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
35277         PR target/49069
35278         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
35279         instead of cmpdi_operand for first comparison operand.
35280         Don't assert that comparison operands aren't both constants.
35282 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35284         * doc/install.texi (Downloading the Source): Update references to
35285         downloading separate components.
35287 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
35289         * doc/extend.texi (__int128): Improve grammar.
35291 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
35293         PR target/56028
35294         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
35295         alternative to (o,r).
35296         (*movdi_internal_rex64): Remove (!o,n) alternative.
35297         (DImode immediate->memory splitter): Remove.
35298         (DImode immediate->memory peephole2): Remove.
35299         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
35300         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
35301         alternative to (!o,*r).
35302         (*movtf_internal_sse): New pattern.
35303         (*movxf_internal_rex64): New pattern.
35304         (*movxf_internal): Disable for TARGET_64BIT.
35305         (*movdf_internal_rex64): Remove (!o,F) alternative.
35307 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
35309         PR middle-end/56074
35310         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
35311         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
35312         * tree-vect-loop-manip.c (find_loop_location): Also ignore
35313         stmt locations where LOCATION_LOCUS of the stmt location is
35314         UNKNOWN_LOCATION or BUILTINS_LOCATION.
35316         PR target/55686
35317         * config/i386/i386.md (UNSPEC_STOS): New.
35318         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
35319         *strsetqi_1): Add UNSPEC_STOS.
35321 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
35323         PR c++/56067
35324         * doc/invoke.texi: Remove left over -Wsynth example.
35326 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
35328         PR tree-optimization/56051
35329         * fold-const.c (fold_binary_loc): Don't fold
35330         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
35331         a narrowing conversion, or widening conversion from signed
35332         to unsigned.
35334 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
35336         PR rtl-optimization/56023
35337         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
35338         dependent on debug instruction.
35340 2013-01-21  Martin Jambor  <mjambor@suse.cz>
35342         PR middle-end/56022
35343         * function.c (allocate_struct_function): Call
35344         invoke_set_current_function_hook earlier.
35346 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
35348         * reload1.c (init_reload): Only initialize reload_obstack
35349         during the first call.
35351 2013-01-21  Marek Polacek  <polacek@redhat.com>
35353         * cfgloop.c (verify_loop_structure): Fix up grammar.
35355 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
35357         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
35358         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
35360 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35362         PR target/56058
35363         * config/arm/marvell-pj4.md: Update copyright year.
35364         Fix up use of alu to alu_reg and simple_alu_imm.
35366 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
35368         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
35370 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
35372         PR target/55433
35373         * lra-constraints.c (curr_insn_transform): Don't reuse original
35374         insn for secondary memory move when memory mode should be different.
35376 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35378         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
35379         atomic_storedi_1): New patterns.
35381 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
35383         btver2 pipeline descriptions.
35384         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
35385         descriptions.
35386         * config/i386/i386.md (btver2_decode): New type attributes.
35387         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
35388         type attributes.
35389         * config/i386/btver2.md: New file describing btver2 pipelines.
35391 2013-01-19  Andrew Pinski  <apinski@cavium.com>
35393         PR tree-optimization/52631
35394         * tree-ssa-sccvn (visit_use): Before looking up the original
35395         statement, try looking up the simplified expression.
35397 2013-01-19  Anthony Green  <green@moxielogic.com>
35399         * config/moxie/moxie.c (moxie_expand_prologue): Set
35400         current_function_static_stack_size.
35402 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
35404         PR tree-optimization/56029
35405         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
35406         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
35408 2013-01-18  Sharad Singhai  <singhai@google.com>
35410         PR tree-optimization/55995
35411         * dumpfile.c (dump_loc): Print location only if available.
35412         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
35414 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
35416         PR target/55433
35417         * lra-constraints.c (curr_insn_transform): Reuse original insn for
35418         secondary memory move.
35419         (inherit_reload_reg): Use rclass instead of cl for
35420         check_secondary_memory_needed_p.
35422 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
35424         PR middle-end/56015
35425         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
35426         the case where writing real complex part of target modifies op1.
35428 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
35430         * config/aarch64/aarch64-simd.md
35431         (aarch64_vcond_internal<mode>): Handle unordered cases.
35432         * config/aarch64/iterators.md (v_cmp_result): New.
35434 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
35435             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
35437         * config/arm/marvell-pj4.md: New file.
35438         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
35439         * config/arm/arm.md (generic_sched): Add marvell_pj4.
35440         (generic_vfp): Likewise.
35441         * config/arm/arm-cores.def: Add marvell-pj4.
35442         * config/arm/arm-tune.md: Regenerate.
35443         * config/arm/arm-tables.opt: Regenerate.
35444         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
35445         * doc/invoke.texi: Document marvell-pj4.
35447 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
35449         * config/aarch64/arm_neon.h: Map scalar types to standard types.
35451 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35453         PR debug/54114
35454         PR debug/54402
35455         PR debug/49888
35456         * var-tracking.c (negative_power_of_two_p): New.
35457         (global_get_addr_cache, local_get_addr_cache): New.
35458         (get_addr_from_global_cache, get_addr_from_local_cache): New.
35459         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
35460         heading comment.
35461         (vt_stack_offset_p): Remove.
35462         (vt_canon_true_dep): Always canonicalize loc's address.
35463         (clobber_overlapping_mems): Make sure we have a MEM.
35464         (local_get_addr_clear_given_value): New.
35465         (val_reset): Clear local cached entries.
35466         (compute_bb_dataflow): Create and release the local cache.
35467         Disable duplicate MEMs clobbering.
35468         (emit_notes_in_bb): Clobber MEMs likewise.
35469         (vt_emit_notes): Create and release the local cache.
35470         (vt_initialize, vt_finalize): Create and release the global
35471         cache, respectively.
35472         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
35474 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35476         PR libmudflap/53359
35477         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
35478         not found in the symtab.
35480 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35482         PR debug/56006
35483         PR rtl-optimization/55547
35484         PR rtl-optimization/53827
35485         PR debug/53671
35486         PR debug/49888
35487         * alias.c (offset_overlap_p): New, factored out of...
35488         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
35489         the conservative special case for symbolic constants.  Don't
35490         adjust zero sizes on alignment.
35492 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
35494         PR rtl-optimization/52573
35495         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
35496         REG_UNUSED for the same register.
35498 2013-01-17  Richard Biener  <rguenther@suse.de>
35499             Marek Polacek  <polacek@redhat.com>
35501         PR rtl-optimization/55833
35502         * loop-unswitch.c (unswitch_loops): Move loop verification...
35503         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
35504         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
35505         Set it to true when we're removing a loop from hierarchy tree in
35506         an irreducible region.
35507         (fix_bb_placements): Adjust caller.
35508         (fix_loop_placements): Likewise.
35510 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
35512         * config/avr/builtins.def (DEF_BUILTIN): Factor out
35513         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
35514         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
35515         Remove ID.  Adjust comments.
35516         * config/avr/avr-c.c (avr_builtin_name): Remove.
35517         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
35518         * config/avr/avr.c (avr_tolower): New static function.
35519         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
35520         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
35521         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
35522         default expansion.
35524 2013-01-17  Jan Hubicka  <jh@suse.cz>
35526         PR tree-optimization/55273
35527         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
35529 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
35531         PR target/55981
35532         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
35533         store through atomic_store<mode>_1.
35534         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
35536 2013-01-17  Martin Jambor  <mjambor@suse.cz>
35538         PR tree-optimizations/55264
35539         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
35540         for virtual methods.
35541         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
35542         virtual methods before inlining is over.
35543         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
35544         virtual functions.
35545         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
35546         non-virtual.
35548 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35550         PR rtl-optimization/56005
35551         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
35552         pending reads for prefetch.
35554 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
35556         * config/aarch64/aarch64.md
35557         (*cstoresi_neg_uxtw): New pattern.
35558         (*cmovsi_insn_uxtw): New pattern.
35559         (*<optab>si3_uxtw): New pattern.
35560         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
35561         (*<optab>si3_insn_uxtw): New pattern.
35562         (*bswapsi2_uxtw): New pattern.
35564 2013-01-16  Richard Biener  <rguenther@suse.de>
35566         * tree-inline.c (tree_function_versioning): Remove set but
35567         never used variable.
35569 2013-01-16  Richard Biener  <rguenther@suse.de>
35571         PR tree-optimization/55964
35572         * tree-flow.h (rename_variables_in_loop): Remove.
35573         (rename_variables_in_bb): Likewise.
35574         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
35575         (copy_loop_before): Adjust and delete update-ssa status.
35576         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
35577         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
35578         (rename_variables_in_loop): Remove.
35579         (slpeel_update_phis_for_duplicate_loop): Likewise.
35580         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
35581         use available cfg machinery instead of duplicating it.
35582         Update PHI nodes and perform poor-mans SSA update here.
35583         (slpeel_tree_peel_loop_to_edge): Adjust.
35585 2013-01-16  Richard Biener  <rguenther@suse.de>
35587         PR tree-optimization/54767
35588         PR tree-optimization/53465
35589         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
35590         (vrp_visit_phi_node): For PHI arguments coming via backedges
35591         drop all symbolical range information.
35592         (execute_vrp): Compute backedges.
35594 2013-01-16  Richard Biener  <rguenther@suse.de>
35596         * doc/install.texi: Update CLooG and ISL requirements to
35597         0.18.0 and 0.11.1.
35599 2013-01-16  Christian Bruel  <christian.bruel@st.com>
35601         PR target/55301
35602         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
35603         (broken_move): Handle UNSPECV_SP_SWITCH_B.
35604         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
35606 2013-01-16  DJ Delorie  <dj@redhat.com>
35608         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
35609         (UNSPECV_SP_SWITCH_E): New.
35610         (sp_switch_1): Change to an unspec.
35611         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
35612         replace $r15.
35614 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
35616         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
35617         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
35618         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
35619         (expand_mem_thread_fence): Ditto.
35620         (expand_mem_signal_fence): Ditto.
35621         (expand_atomic_load): Ditto.
35622         (expand_atomic_store): Ditto.
35624 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
35626         PR rtl-optimization/55547
35627         PR rtl-optimization/53827
35628         PR debug/53671
35629         PR debug/49888
35630         * alias.c (memrefs_conflict_p): Set sizes to negative after
35631         AND adjustments.
35633 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35635         PR target/55940
35636         * function.c (thread_prologue_and_epilogue_insns): Always
35637         add crtl->drap_reg to set_up_by_prologue.set, even if
35638         stack_realign_drap is false.
35640 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35642         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
35643         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
35644         *call): Fix indention.
35646 2013-01-15  Tom de Vries  <tom@codesourcery.com>
35648         PR target/55876
35649         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
35650         Update comment.
35652 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
35654         PR rtl-optimization/55153
35655         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
35657 2013-01-15  Martin Jambor  <mjambor@suse.cz>
35659         PR tree-optimization/55920
35660         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
35661         accesses as grp_to_be_debug_replaced.
35663 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35665         PR tree-optimization/55920
35666         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
35667         there is non-useless type conversion needed from debug rhs to lhs,
35668         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
35670 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
35671             Mikael Pettersson  <mikpe@it.uu.se>
35673         PR target/43961
35674         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
35675         Thumb.
35676         (ASM_OUTPUT_CASE_LABEL): Remove.
35677         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
35678         * final.c (shorten_branches): Update alignment of labels before
35679         jump tables if CASE_VECTOR_SHORTEN_MODE.
35681 2013-01-15  Richard Biener  <rguenther@suse.de>
35683         PR bootstrap/55961
35684         * system.h: Do not include gmp.h for building host tools.
35686 2013-01-15  Richard Biener  <rguenther@suse.de>
35688         PR middle-end/55882
35689         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
35690         account for bitpos when computing alignment.
35692 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
35694         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
35695         (ix86_target_macros_internal): Likewise.
35697         * config/i386/i386.c (m_CORE2I7): Removed.
35698         (m_CORE_HASWELL): New macro.
35699         (m_CORE_ALL): Likewise.
35700         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
35701         (initial_ix86_arch_features): Likewise.
35702         (processor_target_table): Initializations for Core avx2.
35703         (cpu_names): New names "core-avx2".
35704         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
35705         PROCESSOR_CORE_HASWELL.
35706         (ix86_issue_rate): New case.
35707         (ia32_multipass_dfa_lookahead): Likewise.
35708         (ix86_sched_init_global): Likewise.
35710         * config/i386/i386.h (TARGET_HASWELL): New macro.
35711         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
35712         (processor_type): New PROCESSOR_HASWELL.
35714 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35716         PR tree-optimization/55955
35717         * tree-vect-loop.c (vectorizable_reduction): Give up early on
35718         *SHIFT_EXPR and *ROTATE_EXPR codes.
35720         PR tree-optimization/48766
35721         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
35722         -ftrapv disable -fwrapv.
35724 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35726         PR target/55974
35727         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
35728         etc. to 1 and not to __flash.
35729         Use LL suffix for __INT24_MAX__ with -mint8.
35730         Use ULL suffix for __UINT24_MAX__ with -mint8.
35732 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35734         * config/avr/avr-arch.h
35735         (struct base_arch_s): Use typedef avr_arch_t instead.
35736         (struct arch_info_s): Use typedef avr_arch_info_t instead.
35737         (struct mcu_type_s): Use typedef avr_mcu_t instead.
35738         * config/avr/avr.c: Same.
35739         * config/avr/avr-devices.c: Same.
35740         * config/avr/driver-avr.c: Same.
35741         * config/avr/gen-avr-mmcu-texi.c: Same.
35742         * config/avr/avr-mcus.def: Adjust comment.
35744 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
35746         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
35747         * config/aarch64/iterators.md (VALLDI): New.
35749 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
35750             Andi Kleen  <ak@linux.intel.com>
35752         PR target/55948
35753         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
35754         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
35755         memmodel flag.
35757 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35759         * config/avr/avr-stdint.h: Remove trailing blanks.
35760         * config/avr/avr-log.h: Same.
35761         * config/avr/avr-arch.h: Same.
35762         * config/avr/avr-devices.c: Same.
35763         * config/avr/avr-dimode.md: Same.
35764         * config/avr/predicates.md: Same.
35765         * config/avr/avr-c.c: Same.  And fix typo.
35767         * config/avr/avr-protos.h: Same.  And:
35768         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
35769         (init_cumulative_args): Rename to avr_init_cumulative_args.
35770         (expand_prologue): Rename to avr_expand_prologue.
35771         (expand_epilogue): Rename to avr_expand_epilogue.
35772         (adjust_insn_length): Rename to avr_adjust_insn_length.
35773         (notice_update_cc): Rename to avr_notice_update_cc.
35774         (final_prescan_insn): Rename to avr_final_prescan_insn.
35775         * config/avr/avr.c: Same.
35776         * config/avr/avr.h: Same.
35777         * config/avr/avr.md: Remove trailing blanks.
35778         (prologue): Use avr_expand_prologue.
35779         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
35781 2013-01-14  Richard Biener  <rguenther@suse.de>
35783         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
35784         verify_location, collect_subblocks): New functions.
35785         (verify_gimple_in_cfg): Verify that locations only reference
35786         BLOCKs in the functions BLOCK tree.
35788 2013-01-14  Richard Biener  <rguenther@suse.de>
35790         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
35791         PHI argument.
35792         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
35793         unshare reference.
35794         (insert_out_of_ssa_copy_on_edge): Likewise.
35795         (rewrite_close_phi_out_of_ssa): Likewise.
35796         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
35797         debug expressions.
35798         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
35799         propagated constants.
35800         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
35801         can not be shared.
35803 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35805         * config/avr/avr-modes.def: Add GPL copyright notice.
35807 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
35809         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
35810         MEMMODEL_MASK to determine memory model.
35811         (atomic_store<mode>): Ditto from operands[2].
35812         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
35814 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
35816         PR fortran/55935
35817         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
35818         (fold_gimple_assign): Don't call unshare_expr here.
35819         (fold_ctor_reference): Call unshare_expr.
35821 2013-01-13  Terry Guo  <terry.guo@arm.com>
35823         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
35824         * doc/fragments.texi: Document MULTILIB_REUSE.
35825         * gcc.c (multilib_reuse): New internal spec.
35826         (set_multilib_dir): Also search multilib from multilib_reuse.
35827         * genmultilib (tmpmultilib3): Refactor code.
35828         (tmpmultilib4): Ditto.
35829         (multilib_reuse): New multilib argument.
35831 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
35833         * Makefile.in: Update copyright.
35835 2013-01-12  Tom de Vries  <tom@codesourcery.com>
35837         PR middle-end/55890
35838         * calls.c (expand_call): Check if arg_nr is valid.
35840 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
35842         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
35843         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
35844         documentation.  Add missing '__' in front of
35845         __builtin_ia32_packssdw256.
35847 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35849         PR target/55719
35850         * config/s390/s390.c (s390_preferred_reload_class): Do not return
35851         NO_REGS for larl operands.
35852         (s390_reload_larl_operand): Use s390_load_address instead of
35853         emit_move_insn.
35855 2013-01-11  Richard Biener  <rguenther@suse.de>
35857         * tree-cfg.c (verify_node_sharing_1): Split out from ...
35858         (verify_node_sharing): ... here.
35859         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
35861 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
35863         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
35864         Substitute TREECHECKING.
35865         * configure: Regenerate.
35866         * Makefile.in (TREECHECKING): New.
35868 2013-01-11  Richard Guenther  <rguenther@suse.de>
35870         PR tree-optimization/44061
35871         * tree-vrp.c (extract_range_basic): Compute zero as
35872         value-range for __builtin_constant_p of function parameters.
35874 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
35876         Update copyright years.
35878 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
35880         PR rtl-optimization/55672
35881         * lra-eliminations.c (mark_not_eliminable): Permit addition with
35882         const to be eliminable.
35884 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
35886         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
35887         * configure: Regenerate.
35889 2013-01-10  Richard Biener  <rguenther@suse.de>
35891         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
35893 2013-01-10  Richard Biener  <rguenther@suse.de>
35895         PR bootstrap/55792
35896         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
35897         locations for virtual PHI arguments.
35898         (rewrite_update_phi_arguments): Likewise.
35900 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
35902         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
35903         on to assembler.
35905 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
35907         PR tree-optimization/55921
35908         * tree-complex.c (expand_complex_asm): New function.
35909         (expand_complex_operations_1): Call it for GIMPLE_ASM.
35911 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35913         PR target/55718
35914         * config/s390/s390.c (s390_symref_operand_p)
35915         (s390_loadrelative_operand_p): Merge the two functions.
35916         (s390_check_qrst_address, print_operand_address): Add parameters
35917         to s390_loadrelative_operand_p invokation.
35918         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
35919         (s390_reload_larl_operand, s390_secondary_reload): Use
35920         s390_loadrelative_operand_p instead of s390_symref_operand_p.
35921         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
35923 2013-01-09  Mike Stump  <mikestump@comcast.net>
35925         * dse.c (record_store): Remove unnecessary assert.
35927 2013-01-09  Jan Hubicka  <jh@suse.cz>
35929         PR tree-optimization/55569
35930         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
35931         * cfgloop.h (scale_loop_profile): Likewise.
35933 2013-01-09  Jan Hubicka  <jh@suse.cz>
35935         PR lto/45375
35936         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
35937         functions.
35938         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
35940 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
35942         PR middle-end/55114
35943         * expr.h (maybe_emit_group_store): Declare.
35944         * expr.c (maybe_emit_group_store): New function.
35945         * builtins.c (expand_builtin_int_roundingfn): Call it.
35946         (expand_builtin_int_roundingfn_2): Likewise.
35948 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
35950         PR rtl-optimization/55829
35951         * lra-constraints.c (match_reload): Add code for absent output.
35952         (curr_insn_transform): Add code for reloads of matched inputs
35953         without output.
35955 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
35957         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
35958         attribute of movddup insn to DF.
35959         (*vec_interleave_lowv2df): Ditto.
35960         (vec_dupv2df): Ditto.
35962 2013-01-09  Jan Hubicka  <jh@suse.cz>
35964         PR tree-optimiation/55875
35965         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
35966         EVERY_ITERATION parameter.
35967         (number_of_iterations_exit): Check if exit is executed every iteration.
35968         (idx_infer_loop_bounds): Similarly here.
35969         (n_of_executions_at_most): Simplify
35970         to only test for cases where statement is dominated by the
35971         particular bound; handle correctly the "postdominance" test.
35972         (scev_probably_wraps_p): Use max loop iterations info
35973         as a global bound first.
35975 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
35976             Nick Clifton  <nickc@redhat.com>
35978         * config/v850/v850.md (cbranchsf4): New pattern.
35979         (cstoresf4): New pattern.
35980         (cbranchdf4): New pattern.
35981         (cstoredf4): New pattern.
35982         (movsicc): Disallow floating point comparisons.
35983         (cmpsf_le_insn): Fix order of operators.
35984         (cmpsf_lt_insn): Likewise.
35985         (cmpsf_eq_insn): Likewise.
35986         (cmpdf_le_insn): Likewise.
35987         (cmpdf_lt_insn): Likewise.
35988         (cmpdf_eq_insn): Likewise.
35989         (cmpsf_ge_insn): Use LE comparison.
35990         (cmpdf_ge_insn): Likewise.
35991         (cmpsf_gt_insn): Use LT comparison.
35992         (cmpdf_gt_insn): Likewise.
35993         (cmpsf_ne_insn): Delete pattern.
35994         (cmpdf_ne_insn): Delete pattern.
35995         * config/v850/v850.c (v850_gen_float_compare): Use
35996         gen_cmpdf_eq_insn for NE comparison.
35997         (v850_float_z_comparison_operator)
35998         (v850_float_nz_comparison_operator): Move from here ...
35999         * config/v850/predicates.md: ... to here.  Move GT and GE
36000         comparisons into v850_float_z_comparison_operator.
36001         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
36002         Delete prototype.
36003         (v850_float_nz_comparison_operator): Likewise.
36005 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36007         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
36008         with calls to gen_insvsi/gen_insvdi.
36010 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
36012         * config/i386/i386.c (initial_ix86_tune_features): Set up
36013         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
36015 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
36016             Jakub Jelinek  <jakub@redhat.com>
36018         PR tree-optimization/48189
36019         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
36020         If nitercst is 0, don't predict the exit edge.
36022 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
36024         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
36025         in asm_fprintf with reg_names.
36026         (aarch64_print_operand_address): Likewise.
36027         (aarch64_return_addr): Likewise.
36028         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
36030 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36032         * config/pa/pa.h (VAL_U6_BITS_P): Define.
36033         (INT_U6_BITS): Likewise.
36034         * config/pa/predicates.md (uint6_operand): New predicate.
36035         (shift5_operand, shift6_operand): Likewise.
36036         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
36037         arith32_operand.
36038         (lshrdi3): Use shift6_operand.
36039         (shrpsi4, shrpdi4): New insn patterns.
36040         (extzv): Delete expander.
36041         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
36042         predicates in unamed zero extract patterns.  Tighten common constraint.
36043         (extv): Delete expander.
36044         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
36045         predicates in unamed sign extract patterns.  Tighten common constraint.
36046         (insv): Delete expander.
36047         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
36048         predicates in unamed insert patterns.  Tighten common constraint.
36049         Change uint32_operand predicate to uint6_operand predicate in unamed
36050         DImode pattern to insert constant values of type 1...1xxxx.
36052 2013-01-04  Jan Hubicka  <jh@suse.cz>
36054         PR tree-optimization/55823
36055         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
36056         issue.
36058 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36059             Uros Bizjak  <ubizjak@gmail.com>
36061         PR rtl-optimization/55845
36062         * df-problems.c (can_move_insns_across): Stop scanning at
36063         volatile_insn_p source instruction or give up if
36064         across_from .. across_to range contains any volatile_insn_p
36065         instructions.
36067 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
36069         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
36070         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
36071         Declare.
36072         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
36073         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
36075 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36077         PR fortran/55341
36078         * asan.c (asan_clear_shadow): New function.
36079         (asan_emit_stack_protection): Use it.
36081 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
36083         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
36084         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
36085         with tab instead of space.
36087 2013-01-08  Nick Clifton  <nickc@redhat.com>
36089         * config/rl78/rl78.c (rl78_expand_prologue): Always select
36090         register bank 0 at the start of an interrupt handler.
36091         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
36092         MDBH registers.
36094 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
36096         * config/aarch64/aarch64-simd.md
36097         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
36098         (aarch64_simd_bsl): Likewise.
36099         (aarch64_vcond_internal<mode>): Likewise.
36100         (vcond<mode><mode>): Likewise.
36101         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
36102         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
36104 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
36106         * config/aarch64/aarch64-builtins.c
36107         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
36109 2013-01-08  Martin Jambor  <mjambor@suse.cz>
36111         PR debug/55579
36112         * tree-sra.c (analyze_access_subtree): Return true also after
36113         potentially creating a debug-only replacement.
36115 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36117         PR middle-end/55890
36118         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
36120         PR tree-optimization/54120
36121         * tree-vrp.c (range_fits_type_p): Don't allow
36122         src_precision < precision from signed vr to unsigned_p
36123         if vr->min or vr->max is negative.
36124         (simplify_float_conversion_using_ranges): Test can_float_p
36125         against CODE_FOR_nothing.
36127 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
36128             Richard Biener  <rguenther@suse.de>
36130         PR middle-end/55851
36131         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
36132         types instead of just INTEGER_TYPE types.
36134 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
36136         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
36137         TF_SIZE): Define.
36139 2013-01-07  Steve Ellcey  <sellcey@mips.com>
36141         PR target/42661
36142         * config/mips/mips.opt: Change mad to mmad to match documentation.
36144 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36146         PR target/55897
36147         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
36148         .progmemx.data now.
36150 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36152         PR target/55897
36153         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
36154         (avr_addrspace_t): Add .section_name field.
36155         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
36156         array size.
36157         (avr_addrspace): Same.  Initialize .section_name.  Remove last
36158         NULL entry.  Put __memx into .progmemx.data.
36159         (progmem_section_prefix): Remove.
36160         (avr_asm_init_sections): No need to initialize progmem_section.
36161         (avr_asm_named_section): Use avr_addrspace[].section_name to get
36162         section name prefix.
36163         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
36164         retrieve the progmem section.
36165         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
36166         boundary to run over avr_addrspace[].
36167         (avr_register_target_pragmas): Ditto.
36169 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
36171         * varasm.c (output_constant_def_contents): For asan_protect_global
36172         protected strings, adjust DECL_ALIGN if needed, before testing for
36173         anchored symbols.
36174         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
36175         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
36176         normal decls.
36177         (output_object_block): For asan protected decls, emit asan padding
36178         after their contents.
36179         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
36180         (asan_finish_file): Test it here instead.
36182 2013-01-07  Nick Clifton  <nickc@redhat.com>
36183             Matthias Klose  <doko@debian.org>
36184             Doug Kwan  <dougkwan@google.com>
36185             H.J. Lu  <hongjiu.lu@intel.com>
36187         PR driver/55470
36188         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
36190         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
36192         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
36194         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
36196         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
36198 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36200         PR target/54461
36201         * doc/install.texi (Cross-Compiler-Specific Options): Document
36202         --with-avrlibc.
36204 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
36206         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
36207         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
36208         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
36209         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
36210         vqmovun_high_s64): Fix source operand number and update copyright.
36212 2013-01-07  Richard Biener  <rguenther@suse.de>
36214         PR middle-end/55890
36215         * gimple.h (gimple_call_builtin_p): New overload.
36216         * gimple.c (validate_call): New function.
36217         (gimple_call_builtin_p): Likewise.
36218         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
36219         Use gimple_call_builtin_p.
36220         (find_func_clobbers): Likewise.
36221         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
36222         (strlen_optimize_stmt): Likewise.
36224 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36226         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
36227         (vld1q_dup_*): Likewise.
36228         (vld1_*): Likewise.
36229         (vld1q_*): Likewise.
36230         (vld1_lane_*): Likewise.
36231         (vld1q_lane_*): Likewise.
36233 2013-01-07  Richard Biener  <rguenther@suse.de>
36235         * lto-streamer.h (LTO_minor_version): Bump to 2.
36237 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36239         * config/aarch64/aarch64-protos.h
36240         (aarch64_const_double_zero_rtx_p): Rename to...
36241         (aarch64_float_const_zero_rtx_p): ...this.
36242         (aarch64_float_const_representable_p): New.
36243         (aarch64_output_simd_mov_immediate): Likewise.
36244         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
36245         move immediate case.
36246         * config/aarch64/aarch64.c
36247         (aarch64_const_double_zero_rtx_p): Rename to...
36248         (aarch64_float_const_zero_rtx_p): ...this.
36249         (aarch64_print_operand): Allow printing of new constants.
36250         (aarch64_valid_floating_const): New.
36251         (aarch64_legitimate_constant_p): Check for valid floating-point
36252         constants.
36253         (aarch64_simd_valid_immediate): Likewise.
36254         (aarch64_vect_float_const_representable_p): New.
36255         (aarch64_float_const_representable_p): Likewise.
36256         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
36257         (aarch64_output_simd_mov_immediate): New.
36258         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
36259         (*movdf_aarch64): Likewise.
36260         * config/aarch64/constraints.md (Ufc): New.
36261         (Y): call aarch64_float_const_zero_rtx.
36262         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
36264 2013-01-07  Richard Biener  <rguenther@suse.de>
36266         PR tree-optimization/55888
36267         PR tree-optimization/55862
36268         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
36269         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
36270         not if it is contained therein.
36272 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36274         * config/avr/t-avr: Typo.
36276 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
36278         PR55243
36279         * config/avr/t-avr: Don't automatically rebuild
36280         $(srcdir)/config/avr/t-multilib
36281         $(srcdir)/config/avr/avr-tables.opt
36282         $(srcdir)/doc/avr-mmcu.texi
36283         (avr-mcus): New phony target to build them on request.
36284         (s-avr-mlib, s-avr-mmcu-texi): Remove.
36285         * avr/avr-mcus.def: Adjust comments.
36287 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
36289         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
36291 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36293         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
36295 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
36297         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
36299 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
36301         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
36302         to generate profiling.
36303         * config/rs6000/aix64.h (LIB_SPEC): Same.
36305 2013-01-04  Andrew Pinski  <apinski@cavium.com>
36307         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
36308         New function.
36309         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
36311 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
36313         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
36314         unconditionally.
36315         (ix86_expand_move): Ditto.
36316         (ix86_zero_extend_to_Pmode): Ditto.
36317         (ix86_expand_call): Ditto.
36318         (ix86_expand_special_args_builtin): Ditto.
36319         (ix86_expand_builtin): Ditto.
36321 2013-01-04  Richard Biener  <rguenther@suse.de>
36323         PR tree-optimization/55862
36324         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
36325         translating them through PHI nodes.
36327 2013-01-04  Martin Jambor  <mjambor@suse.cz>
36329         PR tree-optimization/55755
36330         * tree-sra.c (sra_modify_assign): Do not check that an access has no
36331         children when trying to avoid producing a VIEW_CONVERT_EXPR.
36333 2013-01-04  Marek Polacek  <polacek@redhat.com>
36335         PR middle-end/55859
36336         * opts.c (default_options_optimization): Clarify error message.
36338 2013-01-04  Richard Biener  <rguenther@suse.de>
36340         PR middle-end/55863
36341         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
36342         reassociation.
36344 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36346         PR target/53789
36347         * config/pa/pa.md (movsi): Revert previous change.
36348         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
36349         references.
36351 2013-01-03  Richard Henderson  <rth@redhat.com>
36353         * config/i386/i386.c (ix86_expand_move): Always assign to op1
36354         after eliminating TLS symbols.
36356 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
36358         PR bootstrap/50167
36359         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
36360         * graphite-poly.c (debug_gmp_value): Likewise.
36362 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
36364         PR target/55712
36365         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
36366         selected code model, define __code_mode_small__, __code_model_medium__,
36367         __code_model_large__, __code_model_32__ or __code_model_kernel__.
36368         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
36369         xchg temporary register with %k.  Declare temporary register as
36370         early clobbered.
36371         [__x86_64__]: For medium and large code models, preserve %rbx register.
36373 2013-01-03  Richard Biener  <rguenther@suse.de>
36375         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
36376         (dump_subscript): Adjust.
36377         (finalize_ddr_dependent): Do not dump redundant info.
36378         (analyze_siv_subscript): Adjust.
36379         (subscript_dependence_tester): Likewise.
36380         (compute_affine_dependence): Likewise.
36382 2013-01-03  Richard Biener  <rguenther@suse.de>
36384         Revert
36385         2013-01-03  Richard Biener  <rguenther@suse.de>
36387         PR tree-optimization/55857
36388         * tree-vect-stmts.c (vectorizable_load): Do not setup
36389         re-alignment for invariant loads.
36391         2013-01-02  Richard Biener  <rguenther@suse.de>
36393         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36394         invariant load do not generate a vector load from the scalar location.
36396 2013-01-03  Richard Biener  <rguenther@suse.de>
36398         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
36399         for not vectorizing.
36400         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
36401         not build INDIRECT_REFs, call get_name once only.
36402         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
36403         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
36405 2013-01-03  Richard Biener  <rguenther@suse.de>
36407         PR tree-optimization/55857
36408         * tree-vect-stmts.c (vectorizable_load): Do not setup
36409         re-alignment for invariant loads.
36411 2013-01-03  Richard Biener  <rguenther@suse.de>
36413         PR lto/55848
36414         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
36415         prefer a built-in decl.
36417 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36419         * gcc.c (process_command): Update copyright notice dates.
36420         * gcov.c (print_version): Likewise.
36421         * gcov-dump.c (print_version): Likewise.
36423         PR rtl-optimization/55838
36424         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
36425         iv0.step, iv1.step and step.
36427 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36428             Marc Glisse  <marc.glisse@inria.fr>
36430         PR tree-optimization/55832
36431         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
36432         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
36433         integer_{one,zero}_node.
36435 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
36437         PR debug/54402
36438         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
36439         * var-tracking.c (reverse_op): Don't add reverse ops to
36440         VALUEs that have already
36441         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
36443 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
36445         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
36447 2013-01-02  Teresa Johnson  <tejohnson@google.com>
36449         * dumpfile.c (dump_loc): Print filename with location.
36450         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
36451         new location_t parameter to emit complete unroll message with
36452         new dump framework.
36453         (canonicalize_loop_induction_variables): Compute loops location
36454         and pass to try_unroll_loop_completely.
36455         * loop-unroll.c (report_unroll_peel): New function.
36456         (peel_loops_completely): Use new dump format with location
36457         for main dumpfile message, and invoke report_unroll_peel on success.
36458         (decide_unrolling_and_peeling): Ditto.
36459         (decide_peel_once_rolling): Remove old dumpfile message subsumed
36460         by report_unroll_peel.
36461         (decide_peel_completely): Ditto.
36462         (decide_unroll_constant_iterations): Ditto.
36463         (decide_unroll_runtime_iterations): Ditto.
36464         (decide_peel_simple): Ditto.
36465         (decide_unroll_stupid): Ditto.
36466         * cfgloop.c (get_loop_location): New function.
36467         * cfgloop.h (get_loop_location): Declare.
36469 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
36471         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
36472         NULL.
36474 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36476         PR middle-end/55198
36477         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
36478         BLKmode objects when EXPAND_MEMORY is specified.
36480 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
36482         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
36483         in loop predicate.
36484         (fold_builtin_cpu): Do not share cpu model decls across statements.
36486 2013-01-02  Jason Merrill  <jason@redhat.com>
36488         PR c++/55804
36489         * tree.c (build_array_type_1): Revert earlier change.
36491 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
36493         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
36494         "cortex-a57".
36495         * config/aarch64/aarch64-tune.md: Re-generate.
36497 2013-01-02  Richard Biener  <rguenther@suse.de>
36499         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36500         invariant load do not generate a vector load from the scalar location.
36502 2013-01-02  Richard Biener  <rguenther@suse.de>
36504         PR bootstrap/55784
36505         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
36506         * configure: Regenerate.
36508 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36510         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
36511         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
36512         (expand_builtin_int_roundingfn_2): Keep the original target around
36513         for the fallback case.
36515 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36517         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
36518         to be clear for sign changes.
36520 2013-01-01  Jan Hubicka  <jh@suse.cz>
36522         * ipa-inline-analysis.c: Fix formatting.
36524 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
36526         PR tree-optimization/55831
36527         * tree-vect-loop.c (get_initial_def_for_induction): Use
36528         gsi_after_labels instead of gsi_start_bb.
36530 Copyright (C) 2013 Free Software Foundation, Inc.
36532 Copying and distribution of this file, with or without modification,
36533 are permitted in any medium without royalty provided the copyright
36534 notice and this notice are preserved.