2013-11-27 Kugan Vivekanandarajah <kuganv@linaro.org>
[official-gcc.git] / gcc / ChangeLog
blob15ce5e698f26dc3eb2e1318805650f503bdf7cc5
1 2013-11-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
3         * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
4         * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
6 2013-11-27  Marek Polacek  <polacek@redhat.com>
8         PR sanitizer/59306
9         * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
10         instead of walk_gimple_op.
11         (ubsan_pass): Adjust.  Call instrument_null only if SANITIZE_NULL.
13 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
14             Jakub Jelinek  <jakub@redhat.com>
16         * cgraph.h (enum cgraph_simd_clone_arg_type): New.
17         (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
18         (struct cgraph_node): Add simdclone and simd_clones fields.
19         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
20         ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
21         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
22         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
23         * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
24         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
25         * doc/tm.texi: Regenerated.
26         * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
27         * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
28         attribute is present.
29         * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
30         (simd_clone_vector_of_formal_parm_types): New function.
31         (simd_clone_struct_alloc, simd_clone_struct_copy,
32         simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
33         simd_clone_compute_base_data_type, simd_clone_mangle,
34         simd_clone_create, simd_clone_adjust_return_type,
35         create_tmp_simd_array, simd_clone_adjust_argument_types,
36         simd_clone_init_simd_arrays): New functions.
37         (struct modify_stmt_info): New type.
38         (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
39         simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
40         functions.
41         (pass_data_omp_simd_clone): New variable.
42         (pass_omp_simd_clone): New class.
43         (make_pass_omp_simd_clone): New function.
44         * passes.def (pass_omp_simd_clone): New.
45         * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
46         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target
47         hooks.
48         * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
49         * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
50         * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
51         * tree-pass.h (make_pass_omp_simd_clone): New prototype.
52         * tree-vect-data-refs.c: Include cgraph.h.
53         (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
54         and find_data_references_in_bb, if find_data_references_in_stmt
55         fails, still allow calls to #pragma omp declare simd functions
56         in #pragma omp simd loops unless they contain data references among
57         the call arguments or in lhs.
58         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
59         calls with no lhs.
60         (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls without
61         lhs.
62         * tree-vectorizer.h (enum stmt_vec_info_type): Add
63         call_simd_clone_vec_info_type.
64         (struct _stmt_vec_info): Add simd_clone_fndecl field.
65         (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
66         * tree-vect-stmts.c: Include tree-ssa-loop.h,
67         tree-scalar-evolution.h and cgraph.h.
68         (vectorizable_call): Handle calls without lhs.  Assert
69         !stmt_can_throw_internal instead of failing for it.  Don't update
70         EH stuff.
71         (struct simd_call_arg_info): New.
72         (vectorizable_simd_clone_call): New function.
73         (vect_transform_stmt): Call it.
74         (vect_analyze_stmt): Likewise.  Allow NULL STMT_VINFO_VECTYPE for
75         calls without lhs.
76         * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
77         if cgraph_function_with_gimple_body_p is true.
79 2013-11-27  Tom de Vries  <tom@codesourcery.com>
80             Marc Glisse  <marc.glisse@inria.fr>
82         PR middle-end/59037
83         * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
84         BIT_FIELD_REF.
85         * gimple-fold.c (gimple_fold_indirect_ref): Same.
86         * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
87         out-of-bounds.
89 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
91         PR middle-end/59138
92         * expr.c (emit_group_store): Don't write past the end of the structure.
93         (store_bit_field): Fix formatting.
95 2013-11-27  Richard Biener  <rguenther@suse.de>
97         PR tree-optimization/59288
98         * tree-vect-loop.c (get_initial_def_for_induction): Do not
99         re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
101 2013-11-27  Marek Polacek  <polacek@redhat.com>
103         * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
104         for a decl, recreate that decl.  Save into the hash table VAR_DECLs
105         rather than ADDR_EXPRs.
107 2013-11-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
109         * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
111 2013-11-26  David Malcolm  <dmalcolm@redhat.com>
113         * gengtype.c (struct seen_tag): New.
114         (already_seen_tag): New.
115         (mark_tag_as_seen): New.
116         (walk_subclasses): Support having multiple subclasses using the
117         same tag by tracking which tags have already been seen, and using
118         this to avoid adding duplicate cases to the "switch" statement.
119         The call to already_seen_tag introduces an O(N^2) when running
120         gengtype on N, the number of tags, due to the repeated linear
121         search, but currently max(N) is relatively small (the number of
122         GSS codes, which is 26).
123         (walk_type): Pass in a seen_tag for use by the walk_subclasses
124         recursion.
126         * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
127         underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
128         GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
129         GIMPLE_OMP_RETURN happens to share the data layout of
130         GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
131         (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
132         underlying GSS value from GSS_OMP_PARALLEL to
133         GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
134         not directly related; they merely share in-memory layout.
135         (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
136         for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
138         * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
139         Rename to...
140         (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
141         ...these.
142         (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
143         (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout):
144         ...these.
145         (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename
146         to...
147         (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
148         ...these.
150         * gimple.h (gimple_statement_resx): New subclass of
151         gimple_statement_eh_ctrl, with the invariant that
152         stmt->code == GIMPLE_RESX.
153         (gimple_statement_eh_dispatch): New subclass of
154         gimple_statement_eh_ctrl, with the invariant that
155         stmt->code == GIMPLE_EH_DISPATH.
157         (gimple_statement_omp_parallel): The existing class expressed
158         a layout (GSS_OMP_PARALLEL), but the codes with that layout
159         are not all related, so it makes more sense for this class to
160         express a *code* (GIMPLE_OMP_PARALLEL).  GSS_OMP_PARALLEL has
161         been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
162         rename the existing gimple_statement_omp_parallel class to...
163         (gimple_statement_omp_parallel_layout): ...this, expressing
164         a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
165         (gimple_statement_omp_taskreg): New subclass of
166         gimple_statement_omp_parallel_layout, expressing the invariant
167         that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
168         as used by the various gimple_omp_taskreg_ accessors.
169         (gimple_statement_omp_parallel): Reintroduce this class, this time
170         as a subclass of gimple_statement_omp_taskreg to express the
171         invariant stmt->code == GIMPLE_OMP_PARALLEL.
172         (gimple_statement_omp_target) New class, subclassing
173         gimple_statement_omp_parallel_layout, to express the invariant
174         stmt->code == GIMPLE_OMP_TARGET.
175         (gimple_statement_omp_task): Update to inherit from
176         gimple_statement_omp_taskreg rather than
177         gimple_statement_omp_parallel.
179         (gimple_statement_omp_single): Rename to...
180         (gimple_statement_omp_single_layout): ...this, expressing the
181         invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
182         (gimple_statement_omp_single): ...and reintroduce this name as
183         a subclass of gimple_statement_omp_single_layout, expressing
184         the invariant that code == GIMPLE_OMP_SINGLE.
185         (gimple_statement_omp_teams): New class, subclassing
186         gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
188         (gimple_statement_omp_atomic_store): Rename to...
189         (gimple_statement_omp_atomic_store_layout): ...this, expressing
190         the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
191         (gimple_statement_omp_atomic_store): ...and reintroduce this
192         name as a subclass of gimple_statement_omp_atomic_store_layout
193         with code == GIMPLE_OMP_ATOMIC_STORE.
194         (gimple_statement_omp_return): New class, subclassing
195         gimple_statement_omp_atomic_store_layout for the code
196         GIMPLE_OMP_RETURN.
198         (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
199         (is_a_helper <gimple_statement_resx>::test): New.
200         (is_a_helper <gimple_statement_eh_dispatch>::test): New.
201         (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
202         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
203         (is_a_helper <gimple_statement_omp_return>::test): New.
204         (is_a_helper <gimple_statement_omp_taskreg>::test): New.
205         (is_a_helper <gimple_statement_omp_parallel>::test): Only check
206         for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
207         GIMPLE_OMP_TARGET.
208         (is_a_helper <gimple_statement_omp_target>::test): New.
209         (is_a_helper <gimple_statement_omp_single>::test): Only check
210         for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
211         (is_a_helper <gimple_statement_omp_teams>::test): New.
213         (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
214         (is_a_helper <const gimple_statement_resx>::test): New.
215         (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
216         (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
217         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
218         (is_a_helper <const gimple_statement_omp_return>::test): New.
219         (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
220         (is_a_helper <const gimple_statement_omp_parallel>::test): Only
221         check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
222         GIMPLE_OMP_TARGET.
223         (is_a_helper <const gimple_statement_omp_target>::test): New.
224         (is_a_helper <const gimple_statement_omp_single>::test): Only
225         check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
226         (is_a_helper <const gimple_statement_omp_teams>::test): New.
228         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
229         gimple_omp_return_lhs_ptr): Replace bogus downcasts to
230         gimple_statement_omp_atomic_store with downcasts to
231         gimple_statement_omp_return, thus requiring that the code be
232         GIMPLE_OMP_RETURN.
233         (gimple_resx_region, gimple_resx_set_region): Replace bogus
234         downcasts to gimple_statement_eh_ctrl with downcasts to
235         gimple_statement_resx, thus requiring that the code be
236         GIMPLE_RESX.
237         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
238         Replace bogus downcasts to const gimple_statement_eh_ctrl with
239         downcasts to gimple_statement_eh_dispatch, thus requiring that
240         the code be GIMPLE_EH_DISPATCH.
241         (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
242         gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
243         gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
244         gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
245         gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
246         gimple_statement_omp_parallel with downcasts to
247         gimple_statement_omp_taskreg, thus requiring that the code be
248         either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
249         (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
250         gimple_omp_target_set_clauses, gimple_omp_target_child_fn
251         gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
252         gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
253         gimple_omp_target_set_data_arg): Replace bogus downcasts to
254         gimple_statement_omp_parallel with downcasts to
255         gimple_statement_omp_target, thus requiring that the code be
256         GIMPLE_OMP_TARGET.
257         (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
258         gimple_omp_teams_set_clauses): Replace bogus downcasts to
259         gimple_statement_omp_single with downcasts to
260         gimple_statement_omp_teams, thus requiring that the code be
261         GIMPLE_OMP_TEAMS.
263         * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
264         gimple_statement_resx.
265         (gimple_build_eh_dispatch): Fix bogus as_a<> to use
266         gimple_statement_eh_dispatch.
268 2013-11-26  Jakub Jelinek  <jakub@redhat.com>
270         PR tree-optimization/59014
271         * tree-vrp.c (register_edge_assert_for_1): Don't look
272         through conversions from non-integral types or through
273         narrowing conversions.
275         PR target/59229
276         * config/i386/i386.c (device_alg): Fix up formatting.
277         (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
278         similarly to count && count < epilogue_size_needed.  Fix up
279         comment typo.
280         * builtins.c (determine_block_size): Fix comment typo.
282         PR sanitizer/59258
283         * ubsan.c (ubsan_source_location): Don't add any location
284         to ADDR_EXPR in the ctor.  Revert 2013-11-22 change.
285         (ubsan_create_data): Strip block info from LOC.
287         PR middle-end/59273
288         * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
289         if there isn't optab handler for the corresponding vector PLUS_EXPR.
291         PR rtl-optimization/59166
292         * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
293         DF_REF_LOC in validate_change call.
294         (split_live_ranges_for_shrink_wrap): Likewise.
296         PR middle-end/59150
297         * omp-low.c (lower_rec_input_clause): For reduction with placeholder
298         of references to constant size types in simd loops, defer emitting
299         initializer for the new_var, emit it later on only if not using
300         SIMD arrays for it.
302         PR middle-end/59152
303         * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
304         for the inner loop if collapse_bb is non-NULL.
305         (expand_omp_simd): Use cont_bb rather than e->dest as latch.
307 2013-11-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>
309         Remove parameter keep_aligning from get_inner_reference.
310         * tree.h (get_inner_reference): Adjust header.
311         * expr.c (get_inner_reference): Remove parameter keep_aligning.
312         (get_bit_range, expand_assignment,
313         expand_expr_addr_expr_1, expand_expr_real_1): Adjust.
314         * asan.c (instrument_derefs): Adjust.
315         * builtins.c (get_object_alignment_2): Adjust. Remove handling of
316         VIEW_CONVERT_EXPR.
317         * cfgexpand.c (expand_debug_expr): Adjust.
318         * dbxout.c (dbxout_expand_expr): Adjust.
319         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
320         loc_list_from_tree, fortran_common): Adjust.
321         * fold-const.c (optimize_bit_field_compare,
322         decode_field_reference, fold_unary_loc, fold_comparison,
323         split_address_to_core_and_offset): Adjust.
324         * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust.
325         * simplifx-rtx.c (delegitimize_mem_from_attrs): Adjust.
326         * tree-affine.c (tree_to_aff_combination,
327         get_inner_reference_aff): Adjust.
328         * tree-data-ref.c (split_constant_offset_1,
329         dr_analyze_innermost): Adjust.
330         * tree-vect-data-refs.c (vect_check_gather,
331         vect_analyze_data_refs): Adjust.
332         * tree-scalar-evolution.c (interpret_rhs_expr): Adjust.
333         * tree-ssa-loop-ivopts.c (may_be_unaligned_p,
334         split_address_cost): Adjust.
335         * tsan.c (instrument_expr): Adjust.
336         * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust.
338 2013-11-26  Yufeng Zhang  <yufeng.zhang@arm.com>
340         * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
341         a constant immediate before force_reg.
343 2013-11-26  Richard Biener  <rguenther@suse.de>
345         PR tree-optimization/59245
346         * tree-vrp.c (set_value_range): Assert that we don't have
347         overflowed constants (but our infinities).
348         (set_value_range_to_value): Drop all overflow flags.
349         (vrp_visit_phi_node): Likewise.
350         (vrp_visit_assignment_or_call): Use set_value_range_to_value
351         to set a constant range.
353 2013-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
355         PR target/59290
356         * config/arm/arm.md (*zextendsidi_negsi): New pattern.
357         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
358         for zero_extend case.
360 2013-11-26   H.J. Lu  <hongjiu.lu@intel.com>
362         PR bootstrap/55552
363         * configure.ac (install_gold_as_default): New.  Set to yes for
364         --disable-ld or --enable-gold=default.
365         (gcc_cv_ld_gold_srcdir): New.
366         (gcc_cv_ld): Also check in-tree gold if install_gold_as_default
367         is yes.
368         (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
369         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
370         * configure: Regenerated.
372         * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
373         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
374         (original) [collect-ld && -fuse-ld=bfd]: Set to
375         $ORIGINAL_LD_BFD_FOR_TARGET.
376         (original) [collect-ld && -fuse-ld=gold]: Set to
377         $ORIGINAL_LD_GOLD_FOR_TARGET.
378         (dir) [collect-ld && ../gold/ld-new]: Set to gold.
379         (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
381 2013-11-26  Terry Guo  <terry.guo@arm.com>
383         * config/arm/arm.c (require_pic_register): Handle high pic base
384         register for thumb-1.
385         (arm_load_pic_register): Also initialize high pic base register.
386         * doc/invoke.texi: Update documentation for option -mpic-register.
388 2013-11-26  Oleg Endo  <olegendo@gcc.gnu.org>
390         PR target/58314
391         PR target/50751
392         * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
393         Prefix function names with 'sh_'.  Make them non-static.
394         * config/sh/sh-protos.h (sh_disp_addr_displacement,
395         sh_max_mov_insn_displacement): Add declarations.
396         * config/sh/constraints.md (Q): Reject QImode.
397         (Sdd): Use match_code "mem".
398         (Snd): Fix erroneous matching of non-memory operands.
399         * config/sh/predicates.md (short_displacement_mem_operand): New
400         predicate.
401         (general_movsrc_operand): Disallow PC relative QImode loads.
402         * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
403         (*movqi, *movhi): Merge both insns into...
404         (*mov<mode>): ... this new insn.  Replace generic 'm' constraints with
405         'Snd' and 'Sdd' constraints.  Calculate insn length dynamically based
406         on the operand types.
408 2013-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>
410         * config/epiphany/epiphany.c (epiphany_expand_prologue):
411         Remove unused variable save_config.
412         (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
413         assert.
415 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
417         * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
418         using other intrinsics.
419         (vtbx3_<psu>8): Likewise.
421 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
423         * config/aarch64/aarch64-builtins.c
424         (aarch64_types_bsl_p_qualifiers): New.
425         (aarch64_types_bsl_s_qualifiers): Likewise.
426         (aarch64_types_bsl_u_qualifiers): Likewise.
427         (TYPES_BSL_P): Likewise.
428         (TYPES_BSL_S): Likewise.
429         (TYPES_BSL_U): Likewise.
430         (BUILTIN_VALLDIF): Likewise.
431         (BUILTIN_VDQQH): Likewise.
432         * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
433         * config/aarch64/aarch64-simd.md
434         (aarch64_simd_bsl<mode>_internal): Handle more modes.
435         (aarch64_simd_bsl<mode>): Likewise.
436         * config/aarch64/arm_neon.h
437         (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
438         * config/aarch64/iterators.md (VALLDIF): New.
439         (Vbtype): Handle more modes.
441 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
443         * config/aarch64/aarch64-builtins.c
444         (aarch64_type_qualifiers): Add qualifier_poly.
445         (aarch64_build_scalar_type): Also build Poly types.
446         (aarch64_build_vector_type): Likewise.
447         (aarch64_build_type): Likewise.
448         (aarch64_build_signed_type): New.
449         (aarch64_build_unsigned_type): Likewise.
450         (aarch64_build_poly_type): Likewise.
451         (aarch64_init_simd_builtins): Also handle Poly types.
453 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
455         * config/aarch64/aarch64-builtins.c
456         (VAR1): Use new naming scheme for aarch64_builtins.
457         (aarch64_builtin_vectorized_function): Use new
458         aarch64_builtins names.
460 2013-11-26  Richard Biener  <rguenther@suse.de>
462         PR tree-optimization/59287
463         * tree-ssa-structalias.c (get_constraint_for_component_ref):
464         Remove no longer necessary special-casing of union accesses.
466 2013-11-26  Richard Biener  <rguenther@suse.de>
468         * pretty-print.c (output_buffer::~output_buffer): Really
469         free the obstacks.
471 2013-11-25  Jeff Law  <law@redhat.com>
473         * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
474         invalidate loop information.
476 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
478         * config/sh/sh.md (doloop_end_split): Add missing SI mode.
480 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
482         PR target/53976
483         PR target/59243
484         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
485         comments.
486         (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
487         previously visited basic blocks before recursing instead of only one
488         basic block.
490 2013-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
492         * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
493         * config/aarch64/aarch64-cores.def (cortex-a53):
494         Use cortexa53 tuning struct.
496 2013-11-25  Andrew Macleod  <amacleod@redhat.com>
498         PR bootstrap/59260
499         * fold-const.c: Include hash-table.h.
501 2013-11-25  Marek Polacek  <polacek@redhat.com>
503         PR sanitizer/59258
504         * ubsan.c (ubsan_create_data): Increase the size of the fields array.
506 2013-11-25  Richard Biener  <rguenther@suse.de>
508         * tree-dfa.c: Remove unused convert.h include.
510 2013-11-25  Terry Guo  <terry.guo@arm.com>
512         * doc/invoke.texi (-mslow-flash-data): Document new option.
513         * config/arm/arm.opt (mslow-flash-data): New option.
514         * config/arm/arm-protos.h (arm_max_const_double_inline_cost): Declare
515         it.
516         * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
517         are disabled.
518         (arm_disable_literal_pool): Declare it.
519         * config/arm/arm.c (arm_disable_literal_pool): New variable.
520         (arm_option_override): Handle new option.
521         (thumb2_legitimate_address_p): Don't allow symbol references when
522         literal pools are disabled.
523         (arm_max_const_double_inline_cost): New function.
524         * config/arm/arm.md (types.md): Include it before ...
525         (use_literal_pool): New attribute.
526         (enabled): Use new attribute.
527         (split pattern): Replace symbol+offset with MOVW/MOVT.
529 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
531         PR bootstrap/59279
532         Revert previous commit.
534 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
536         * jump.c (reset_insn_reg_label_operand_notes): New function,
537         split out from ...
538         (init_label_info): ... here.  Reset LABEL_NUSES in cfglayout mode.
539         * cfgcleanup.c (delete_dead_jump_tables_between): New function,
540         split out from ...
541         (delete_dead_jumptables): ... here.  Handle cfglayout mode.
542         (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
543         expensive CFG cleanup is called for.
544         * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
545         (cfg_layout_finalize): Delete dead jump tables before re-building
546         the insns chain.
547         * ira.c (ira): Rebuild jump labels *after* deleting unreachable
548         basic blocks, not before.
549         * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
551         * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
552         insns chain of a scheduling extended basic block, they cannot appear
553         there in cfglayout mode.
555 2013-11-24  Tobias Burnus  <burnus@net-b.de>
557         * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
559 2013-11-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
561         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
562         for little endian.
564 2013-11-24  H.J. Lu  <hongjiu.lu@intel.com>
566         * graphite-sese-to-poly.c: Don't include extra "expr.h".
568 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
570         * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
572 2013-11-23  David Edelson  <dje.gcc@gmail.com>
573             Andrew Dixie  <andrewd@gentrack.com>
575         PR target/33704
576         * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
577         (COLLECT_SHARED_FINI_FUNC): Define.
579         * collect2.c (aix_shared_initname): Declare.
580         (aix_shared_fininame): Declare.
581         (symkind): Add SYM_AIXI and SYM_AIXD.
582         (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
583         (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
584         (aixlazy_flag): Parse.
585         (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
586         (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
588 2013-11-23  David Edelsohn  <dje.gcc@gmail.com>
590         * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
591         (rs6000_xcoff_select_section): Place decls with stricter alignment
592         into named sections.
593         (rs6000_xcoff_unique_section): Allow unique sections for
594         uninitialized data with strict alignment.
596 2013-11-23  Jakub Jelinek  <jakub@redhat.com>
598         PR tree-optimization/59154
599         * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
600         rhs1 of a cast and new_op is invariant, fold_convert it.
601         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
602         simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
604 2013-11-23  Uros Bizjak  <ubizjak@gmail.com>
606         PR target/56788
607         * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
608         Declare as MULTI_ARG_1_SF instruction.
609         <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
610         * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
611         from *xop_vmfrcz_<mode>.
612         * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
613         to merge scalar result with __A.
614         (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
615         result with __A.
617 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
619         * gimplify.h (recalculate_side_effects): Delete.
620         * gimplify.c (recalculate_side_effects): Make static and add comment.
622 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
624         * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
625         for the destination of a define_peephole2.  Likewise register_operand
626         rather than arith_reg_operand.  Remove constraints from
627         define_peephole2s.
629 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
631         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
632         Delete.
633         (mn10300_store_multiple_operation_p): Declare.
634         * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
635         Rename to...
636         (mn10300_store_multiple_operation_p): ...this and remove mode
637         argument.
638         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
639         Define.
641 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
643         * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
644         (pop_multiple_operation): Delete.
645         (analyze_push_multiple_operation): Declare.
646         (analyze_pop_multiple_operation): Declare.
647         * config/bfin/bfin.c (push_multiple_operation): Rename to...
648         (analyze_push_multiple_operation): ...this and remove mode argument.
649         (pop_multiple_operation): Rename to...
650         (analyze_pop_multiple_operation): ...this and remove mode argument.
651         * config/bfin/predicates.md (push_multiple_operation): Define.
652         (pop_multiple_operation): Likewise.
654 2013-11-23  Alan Modra  <amodra@gmail.com>
656         * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
658 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
660         PR sanitizer/59061
661         * common.opt (static-liblsan): Add.
662         * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
663         Define.
664         * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK.  Renumber
665         SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
666         SANITIZE_RETURN.
667         * opts.c (common_handle_option): Handle -fsanitize=leak.
668         * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
669         (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
670         (LIBUBSAN_EARLY_SPEC): Remove.
671         (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
672         (SANITIZER_SPEC): Add -fsanitize=leak handling.
673         (sanitize_spec_function): Handle %sanitize(leak).
674         * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
676 2013-11-22  Aldy Hernandez  <aldyh@redhat.com>
677             Jakub Jelinek  <jakub@redhat.com>
679         * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
680         * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
681         (ipa_get_vector_of_formal_parm_types): ... this.  No longer static.
682         (ipa_modify_formal_parameters): Adjust caller.  Remove
683         synth_parm_prefix argument.  Use operator enum instead of bit fields.
684         Add assert for properly handling vector of references.  Handle
685         creating brand new parameters.
686         (ipa_modify_call_arguments): Use operator enum instead of bit
687         fields.
688         (ipa_combine_adjustments): Same.  Assert that IPA_PARM_OP_NEW is not
689         used.
690         (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
691         New functions.
692         (ipa_dump_param_adjustments): Rename reduction to new_decl.
693         Use operator enum instead of bit fields.
694         * ipa-prop.h (enum ipa_parm_op): New.
695         (struct ipa_parm_adjustment): New field op.  Rename reduction
696         to new_decl, new_arg_prefix to arg_prefix and remove remove_param
697         and copy_param.
698         (ipa_modify_formal_parameters): Remove last argument.
699         (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
700         ipa_get_adjustment_candidate): New prototypes.
701         * tree-sra.c (turn_representatives_into_adjustments): Use operator
702         enum.  Set arg_prefix.
703         (get_adjustment_for_base): Use operator enum.
704         (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
705         ipa-prop.c.
706         (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
707         (ipa_sra_modify_function_body): Same.  No longer static.
708         (sra_ipa_reset_debug_stmts): Use operator enum.
709         (modify_function): Do not pass prefix argument.
711 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
713         * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
714         (ubsan_pass): Ignore clobber stmts.
716         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
717         * opts.c (common_handle_option): Add -fsanitize=return.
718         * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
719         or it into SANITIZE_UNDEFINED.
721         * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
722         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
723         * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
724         Don't instrument accesses to VAR_DECLs which are known to fit
725         into their bounds and the vars are known to have shadow bytes
726         indicating allowed access.
727         (asan_dynamic_init_call): New function.
728         (asan_add_global): If vnode->dynamically_initialized,
729         set __has_dynamic_init to 1 instead of 0.
730         (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
731         * asan.h (asan_dynamic_init_call): New prototype.
732         * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
734 2013-11-22  Martin Jambor  <mjambor@suse.cz>
736         PR rtl-optimization/10474
737         * ira.c (interesting_dest_for_shprep_1): New function.
738         (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
739         also check parallels.
741 2013-11-22  Jeff Law  <law@redhat.com>
743         * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
744         NULL for RHS, which we used to invalidate equivalences.
745         (record_temporary_equivalences_from_phis): New bitmap arguments
746         and a boolean indicating if we have passed a backedge.  If we
747         have passed a backedge, then set the appropriate bit in the
748         bitmaps for the SRC & DEST of PHIs creating equivalences.
749         (invalidate_equivalences, dummy_simplify): New functions.
750         (cond_arg_set_in_b): Remove.
751         (record_temporary_equivalences_from_stmts_at_dest): New bitmap
752         arguments and a boolean indicating if we have passed a backedge.
753         If we have passed a backedge, then perform invalidations as needed.
754         (thread_around_empty_blocks): If we have seen a backedge, then
755         use the dummy simplify routine.
756         (thread_through_normal_block): Likewise.  Pass bitmaps and
757         backedge status to children.  Do not pessimize so much when
758         traversing backedges in the CFG.
759         (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
760         If we have seen a backedge, then use the dummy simplify routine.
761         Do not pessimize so much when traversing backedges.
763 2013-11-22  Hans-Peter Nilsson  <hp@axis.com>
765         * config/cris/cris.c (cris_atomic_align_for_mode): New function.
766         (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
768 2013-11-22  Yuri Rumyantsev  <ysrumyan@gmail.com>
770         * config/i386/i386.c(processor_alias_table): Enable PTA_AES,
771         PTA_PCLMUL and PTA_RDRND for Silvermont.
772         * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
773         for Silvermont.
775         * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
777 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
779         * hooks.h (hook_uint_mode_0): Add Prototype.
780         * hooks.c (hook_uint_mode_0): New default function.
781         * target.def (atomic_align_for_mode): New target hook.
782         * tree.c (build_atomic_base): Add alignment override parameter.
783         (build_common_tree_nodes): Use atomic alignment override.
784         * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
785         * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
787 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
789         * gimple.h: Remove all includes.
790         (recalculate_side_effects): Move prototype to gimplify.h.
791         * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
792         * gengtype.c (open_base_files): Add gimple.h include list.
793         * gimplify.h (recalculate_side_effects): Relocate prototype here.
794         * gimple.c: Adjust include list.
795         (recalculate_side_effects): Move to gimplify.c.
796         * gimplify.c: Adjust include list.
797         (recalculate_side_effects): Relocate from gimple.c.
798         * alias.c: Add required include files removed from gimple.h.
799         * asan.c: Likewise.
800         * builtins.c: Likewise.
801         * calls.c: Likewise.
802         * cfgexpand.c: Likewise.
803         * cfgloop.c: Likewise.
804         * cfgloopmanip.c: Likewise.
805         * cgraphbuild.c: Likewise.
806         * cgraph.c: Likewise.
807         * cgraphclones.c: Likewise.
808         * cgraphunit.c: Likewise.
809         * cilk-common.c: Likewise.
810         * data-streamer.c: Likewise.
811         * data-streamer-in.c: Likewise.
812         * data-streamer-out.c: Likewise.
813         * dse.c: Likewise.
814         * dwarf2out.c: Likewise.
815         * emit-rtl.c: Likewise.
816         * except.c: Likewise.
817         * expr.c: Likewise.
818         * fold-const.c: Likewise.
819         * function.c: Likewise.
820         * gimple-builder.c: Likewise.
821         * gimple-expr.c: Likewise.
822         * gimple-fold.c: Likewise.
823         * gimple-iterator.c: Likewise.
824         * gimple-low.c: Likewise.
825         * gimple-pretty-print.c: Likewise.
826         * gimple-ssa-isolate-paths.c: Likewise.
827         * gimple-ssa-strength-reduction.c: Likewise.
828         * gimple-streamer-in.c: Likewise.
829         * gimple-streamer-out.c: Likewise.
830         * gimple-walk.c: Likewise.
831         * gimplify-me.c: Likewise.
832         * graphite-blocking.c: Likewise.
833         * graphite.c: Likewise.
834         * graphite-clast-to-gimple.c: Likewise.
835         * graphite-dependences.c: Likewise.
836         * graphite-interchange.c: Likewise.
837         * graphite-optimize-isl.c: Likewise.
838         * graphite-poly.c: Likewise.
839         * graphite-scop-detection.c: Likewise.
840         * graphite-sese-to-poly.c: Likewise.
841         * internal-fn.c: Likewise.
842         * ipa.c: Likewise.
843         * ipa-cp.c: Likewise.
844         * ipa-devirt.c: Likewise.
845         * ipa-inline-analysis.c: Likewise.
846         * ipa-inline.c: Likewise.
847         * ipa-profile.c: Likewise.
848         * ipa-prop.c: Likewise.
849         * ipa-pure-const.c: Likewise.
850         * ipa-reference.c: Likewise.
851         * ipa-split.c: Likewise.
852         * ipa-utils.c: Likewise.
853         * langhooks.c: Likewise.
854         * lto-cgraph.c: Likewise.
855         * lto-compress.c: Likewise.
856         * lto-opts.c: Likewise.
857         * lto-section-in.c: Likewise.
858         * lto-section-out.c: Likewise.
859         * lto-streamer.c: Likewise.
860         * lto-streamer-in.c: Likewise.
861         * lto-streamer-out.c: Likewise.
862         * omp-low.c: Likewise.
863         * opts-global.c: Likewise.
864         * passes.c: Likewise.
865         * predict.c: Likewise.
866         * profile.c: Likewise.
867         * sese.c: Likewise.
868         * stmt.c: Likewise.
869         * stor-layout.c: Likewise.
870         * symtab.c: Likewise.
871         * targhooks.c: Likewise.
872         * toplev.c: Likewise.
873         * tracer.c: Likewise.
874         * trans-mem.c: Likewise.
875         * tree-affine.c: Likewise.
876         * tree.c: Likewise.
877         * tree-call-cdce.c: Likewise.
878         * tree-cfg.c: Likewise.
879         * tree-cfgcleanup.c: Likewise.
880         * tree-chrec.c: Likewise.
881         * tree-complex.c: Likewise.
882         * tree-data-ref.c: Likewise.
883         * tree-dfa.c: Likewise.
884         * tree-eh.c: Likewise.
885         * tree-emutls.c: Likewise.
886         * tree-if-conv.c: Likewise.
887         * tree-inline.c: Likewise.
888         * tree-into-ssa.c: Likewise.
889         * tree-loop-distribution.c: Likewise.
890         * tree-nested.c: Likewise.
891         * tree-nrv.c: Likewise.
892         * tree-object-size.c: Likewise.
893         * tree-outof-ssa.c: Likewise.
894         * tree-parloops.c: Likewise.
895         * tree-phinodes.c: Likewise.
896         * tree-predcom.c: Likewise.
897         * tree-pretty-print.c: Likewise.
898         * tree-profile.c: Likewise.
899         * tree-scalar-evolution.c: Likewise.
900         * tree-sra.c: Likewise.
901         * tree-ssa-address.c: Likewise.
902         * tree-ssa-alias.c: Likewise.
903         * tree-ssa.c: Likewise.
904         * tree-ssa-ccp.c: Likewise.
905         * tree-ssa-coalesce.c: Likewise.
906         * tree-ssa-copy.c: Likewise.
907         * tree-ssa-copyrename.c: Likewise.
908         * tree-ssa-dce.c: Likewise.
909         * tree-ssa-dom.c: Likewise.
910         * tree-ssa-dse.c: Likewise.
911         * tree-ssa-forwprop.c: Likewise.
912         * tree-ssa-ifcombine.c: Likewise.
913         * tree-ssa-live.c: Likewise.
914         * tree-ssa-loop.c: Likewise.
915         * tree-ssa-loop-ch.c: Likewise.
916         * tree-ssa-loop-im.c: Likewise.
917         * tree-ssa-loop-ivcanon.c: Likewise.
918         * tree-ssa-loop-ivopts.c: Likewise.
919         * tree-ssa-loop-manip.c: Likewise.
920         * tree-ssa-loop-niter.c: Likewise.
921         * tree-ssa-loop-prefetch.c: Likewise.
922         * tree-ssa-loop-unswitch.c: Likewise.
923         * tree-ssa-math-opts.c: Likewise.
924         * tree-ssanames.c: Likewise.
925         * tree-ssa-operands.c: Likewise.
926         * tree-ssa-phiopt.c: Likewise.
927         * tree-ssa-phiprop.c: Likewise.
928         * tree-ssa-pre.c: Likewise.
929         * tree-ssa-propagate.c: Likewise.
930         * tree-ssa-reassoc.c: Likewise.
931         * tree-ssa-sccvn.c: Likewise.
932         * tree-ssa-sink.c: Likewise.
933         * tree-ssa-strlen.c: Likewise.
934         * tree-ssa-structalias.c: Likewise.
935         * tree-ssa-tail-merge.c: Likewise.
936         * tree-ssa-ter.c: Likewise.
937         * tree-ssa-threadedge.c: Likewise.
938         * tree-ssa-threadupdate.c: Likewise.
939         * tree-ssa-uncprop.c: Likewise.
940         * tree-ssa-uninit.c: Likewise.
941         * tree-stdarg.c: Likewise.
942         * tree-streamer.c: Likewise.
943         * tree-streamer-in.c: Likewise.
944         * tree-streamer-out.c: Likewise.
945         * tree-switch-conversion.c: Likewise.
946         * tree-tailcall.c: Likewise.
947         * tree-vect-data-refs.c: Likewise.
948         * tree-vect-generic.c: Likewise.
949         * tree-vect-loop.c: Likewise.
950         * tree-vect-loop-manip.c: Likewise.
951         * tree-vectorizer.c: Likewise.
952         * tree-vect-patterns.c: Likewise.
953         * tree-vect-slp.c: Likewise.
954         * tree-vect-stmts.c: Likewise.
955         * tree-vrp.c: Likewise.
956         * tsan.c: Likewise.
957         * ubsan.c: Likewise.
958         * value-prof.c: Likewise.
959         * varpool.c: Likewise.
960         * var-tracking.c: Likewise.
961         * vtable-verify.c: Likewise.
962         * config/darwin.c: Likewise.
963         * config/aarch64/aarch64-builtins.c: Likewise.
964         * config/aarch64/aarch64.c: Likewise.
965         * config/alpha/alpha.c: Likewise.
966         * config/i386/i386.c: Likewise.
967         * config/i386/winnt.c: Likewise.
968         * config/ia64/ia64.c: Likewise.
969         * config/m32c/m32c.c: Likewise.
970         * config/mep/mep.c: Likewise.
971         * config/mips/mips.c: Likewise.
972         * config/rs6000/rs6000.c: Likewise.
973         * config/s390/s390.c: Likewise.
974         * config/sh/sh.c: Likewise.
975         * config/sparc/sparc.c: Likewise.
976         * config/spu/spu.c: Likewise.
977         * config/stormy16/stormy16.c: Likewise.
978         * config/tilegx/tilegx.c: Likewise.
979         * config/tilepro/tilepro.c: Likewise.
980         * config/xtensa/xtensa.c: Likewise.
982 2013-11-22  Richard Earnshaw  <rearnsha@arm.com>
984         PR target/59216
985         * arm.md (negdi_extendsidi): Fix invalid split.
987 2013-11-22  Alex Velenko  <Alex.Velenko@arm.com>
989         * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
990         (vmov_n_f64): Likewise.
991         (vmov_n_p8): Likewise.
992         (vmov_n_p16): Likewise.
993         (vmov_n_s8): Likewise.
994         (vmov_n_s16): Likewise.
995         (vmov_n_s32): Likewise.
996         (vmov_n_s64): Likewise.
997         (vmov_n_u8): Likewise.
998         (vmov_n_u16): Likewise.
999         (vmov_n_u32): Likewise.
1000         (vmov_n_u64): Likewise.
1001         (vmovq_n_f32): Likewise.
1002         (vmovq_n_f64): Likewise.
1003         (vmovq_n_p8): Likewise.
1004         (vmovq_n_p16): Likewise.
1005         (vmovq_n_s8): Likewise.
1006         (vmovq_n_s16): Likewise.
1007         (vmovq_n_s32): Likewise.
1008         (vmovq_n_s64): Likewise.
1009         (vmovq_n_u8): Likewise.
1010         (vmovq_n_u16): Likewise.
1011         (vmovq_n_u32): Likewise.
1012         (vmovq_n_u64): Likewise.
1014 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1016         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1017         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
1018         (reduc_<sur>plus_<mode>): Factorize V2DI into this.
1019         (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
1020         and also change to float UNSPEC.
1021         (reduc_maxmin_uns>_<mode>): Remove V2DI.
1022         * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
1023         vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
1024         result access for big-endian.
1025         (__LANE0): New macro used to fix up lane access of 'across-lanes'
1026         intrinsics for big-endian.
1027         * config/aarch64/iterators.md (VDQV): Add V2DI.
1028         (VDQV_S): New.
1029         (vp): New mode attribute.
1031 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1033         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1034         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
1035         big-endian.
1037 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1039         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
1040         for big-endian element order.
1041         (aarch64_simd_vec_setv2di): Likewise.
1042         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
1043         *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
1044         (vec_extract): Expand using aarch64_get_lane.
1045         * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
1047 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1049         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
1050         and stores to be ABI compliant.
1052 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1054         * input.h (input_line): Remove.
1055         (input_filename): Likewise.
1056         (in_system_header): Likewise.
1057         * tree.h (EXPR_LOC_OR_HERE): Remove.
1058         * config/bfin/bfin.c (output_file_start): Remove use of
1059         input_filename macro.
1060         * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
1061         * gimplify.c (internal_get_tmp_var): Likewise.
1062         EXPR_LOC_OR_HERE macro.
1063         (shortcut_cond_expr): Likewise.
1064         * tree-diagnostic.c (diagnostic_report_current_function): Remove
1065         use of input_filename macro.
1066         * tree.c (get_file_function_name): Likewise.
1068 2013-11-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
1070         * store-layout.c (place-field): Fix hwi test and accessor mismatch.
1072 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1074         * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
1075         (same sized) elements even if the type of the CONSTRUCTOR has
1076         vector mode and target is a REG.
1078 2013-11-22  Richard Biener  <rguenther@suse.de>
1080         Revert
1081         2013-11-21  Richard Biener  <rguenther@suse.de>
1083         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1084         nb_iterations_upper_bound by one.
1086 2013-11-22  H.J. Lu  <hongjiu.lu@intel.com>
1088         * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
1089         for Silvermont.
1091         * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
1092         core-avx-i, core-avx2 and slm.
1094 2013-11-22  Eric Botcazou  <ebotcazou@adacore.com>
1096         * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
1098 2013-11-22  Richard Sandiford  <rdsandiford@googlemail.com>
1100         * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
1101         (stzx_24_<mode>): Likewise mra_operand.
1103 2013-11-22  Jeff Law  <law@redhat.com>
1105         * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
1106         (thread_block_1): Do not cancel jump threads which go from
1107         inside a loop, through the header, then back inside the loop.
1108         (bb_ends_with_multiway_branch): New function.
1109         (thread_through_all_blocks): Handle threading cases which start
1110         in a loop through the loop header to a point in the loop.
1112         * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
1113         jump thread path properly.
1115 2013-11-22  Trevor Saunders  <tsaunders@mozilla.com>
1117         * vec.h (auto_vec): New class.
1118         * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
1119         function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
1120         ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
1121         tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
1122         tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
1123         tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1124         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
1125         tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
1126         appropriate instead of vec for local variables.
1128 2013-11-21  Teresa Johnson  <tejohnson@google.com>
1130         PR target/59233
1131         * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
1132         not understood by old_insns_match_p.
1134 2013-11-21  Bill Schmidt  <wschmidt@vnet.ibm.com>
1136         * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
1137         little endian change.
1138         (vec_pack_sfix_trunc_v2df): Likewise.
1139         (vec_pack_ufix_trunc_v2df): Likewise.
1140         * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
1141         double checking of endianness.
1143 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1145         * tree-vect-generic.c (optimize_vector_constructor): New function.
1146         (expand_vector_operations_1): Call it.
1148 2013-11-21  Uros Bizjak  <ubizjak@gmail.com>
1150         * config/i386/i386.c (ix86_expand_special_args_builtin): Use
1151         ix86_zero_extend_to_Pmode where appropriate.
1152         (ix86_expand_builtin): Ditto.
1154 2013-11-21  Cary Coutant  <ccoutant@google.com>
1156         * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
1157         (add_linkage_name): Don't add linkage name for -g1.
1158         (decls_for_scope): Process subblocks for -g1.
1159         (dwarf2out_source_line): Output line tables for -g1.
1160         (dwarf2out_finish): Likewise.
1161         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
1162         unused scopes for -g1.
1163         * opts.c (common_handle_option): Handle -g same as -g2.
1164         * doc/invoke.texi: Update description for -g1.
1166 2013-11-21  Peter Bergner  <bergner@vnet.ibm.com>
1168         * doc/extend.texi: Document htm builtins.
1170 2013-11-21  Jeff Law  <law@redhat.com>
1172         PR tree-optimization/59221
1173         * tree-ssa-threadedge.c (thread_across_edge): Properly manage
1174         temporary equivalences when threading through joiner blocks.
1176 2013-11-21  Joseph Myers  <joseph@codesourcery.com>
1178         PR rtl-optimization/55950
1179         * real.c (real_sqrt): Remove function.
1180         * real.h (real_sqrt): Remove prototype.
1181         * simplify-rtx.c (simplify_const_unary_operation): Do not fold
1182         SQRT using real_sqrt.
1184 2013-11-21  Richard Biener  <rguenther@suse.de>
1186         PR tree-optimization/59058
1187         * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
1188         * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
1189         * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
1190         (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
1191         (NITERS_KNOWN_P): Fold into ...
1192         (LOOP_VINFO_NITERS_KNOWN_P): ... this.
1193         (LOOP_VINFO_PEELING_FOR_NITER): Add.
1194         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
1195         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1196         (vect_do_peeling_for_alignment): Re-use precomputed niter
1197         instead of re-emitting it.
1198         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1199         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1200         * tree-vect-loop.c (vect_get_loop_niters): Use
1201         number_of_latch_executions.
1202         (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
1203         (vect_analyze_loop_form): Simplify.
1204         (vect_analyze_loop_operations): Move epilogue peeling code ...
1205         (vect_analyze_loop_2): ... here and adjust it to compute
1206         LOOP_VINFO_PEELING_FOR_NITER.
1207         (vect_estimate_min_profitable_iters): Use
1208         LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1209         (vect_build_loop_niters): Emit on the preheader.
1210         (vect_generate_tmps_on_preheader): Likewise.
1211         (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
1212         of recomputing it.  Adjust.
1214 2013-11-21  Richard Biener  <rguenther@suse.de>
1216         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
1217         LOC_LINE): Remove wrappers and fix all users.
1218         (struct _loop_vec_info): Remove loop_line_number member.
1219         (LOOP_VINFO_LOC): Remove.
1220         * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
1221         tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
1222         and LOC_LINE.
1224 2013-11-21  Richard Biener  <rguenther@suse.de>
1226         * tree-ssa-forwprop.c (simplify_vce): New function.
1227         (ssa_forward_propagate_and_combine): Call it.
1229 2013-11-21  Richard Biener  <rguenther@suse.de>
1231         * tree-vect-loop-manip.c (vect_build_loop_niters,
1232         vect_generate_tmps_on_preheader): Move ...
1233         * tree-vect-loop.c (vect_build_loop_niters,
1234         vect_generate_tmps_on_preheader): ... here and simplify.
1235         (vect_transform_loop): Call them here and pass down results
1236         to consumers.
1237         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
1238         Get niter variables from caller.
1239         (vect_do_peeling_for_alignment): Likewise.
1240         * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
1241         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
1242         Adjust prototypes.
1244 2013-11-21  Richard Biener  <rguenther@suse.de>
1246         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1247         nb_iterations_upper_bound by one.
1249 2013-11-21  Richard Biener  <rguenther@suse.de>
1251         PR tree-optimization/59058
1252         * tree-loop-distribution.c (struct partition_s): Add plus_one member.
1253         (build_size_arg_loc): Apply niter adjustment here.
1254         (generate_memset_builtin): Adjust.
1255         (generate_memcpy_builtin): Likewise.
1256         (classify_partition): Do not use number_of_exit_cond_executions
1257         but record whether niter needs to be adjusted.
1259 2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
1261         * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
1262         could throw.
1264 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
1266         PR target/53976
1267         * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
1268         * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
1269         * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
1270         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
1271         sh_optimize_sett_clrt pass.o to extra_objs.
1273 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
1275         * cfg.c (dump_edge_info): Remove redundant comment.
1276         * cfgcleanup.c (outgoing_edges_match): Reword reference to
1277         EXIT_BLOCK_PTR in comment.
1278         (try_optimize_cfg): Likewise.
1279         * cfgrtl.c (last_bb_in_partition): Likewise.
1280         * cgraph.c (cgraph_node_cannot_return): Likewise.
1281         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1282         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
1283         * ipa-split.c (consider_split): Likewise.
1284         * profile.c (find_spanning_tree): Likewise.
1285         * sched-int.h (common_sched_info_def.add_block): Likewise.
1286         * dominance.c (calc_dfs_tree_nonrec): Reword references in
1287         comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
1288         * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
1289         in comments to now removed ENTRY_BLOCK_PTR macro.
1290         (tree_forwarder_block_p): Reword reference in comment to
1291         EXIT_BLOCK_PTR.
1292         * tree-inline.c (copy_cfg_body): Reword references in comments to
1293         now removed ENTRY_BLOCK_PTR macro.
1294         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1295         * tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
1296         a comma to the comment to clarify the meaning.
1298 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
1300         * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
1301         Move to gimplify.c.
1302         (free_gimplify_stack): Add prototype.
1303         * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
1304         (struct gimplify_ctx): Relocate here.
1305         (gimplify_ctxp): Make static.
1306         (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a
1307         list of struct gimplify_ctx.
1308         (push_gimplify_context): Add default parameters and allocate a struct
1309         from the pool.
1310         (pop_gimplify_context): Free a struct back to the pool.
1311         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1312         gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
1313         use a local 'struct gimplify_ctx'.
1314         * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
1315         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
1316         Likewise.
1317         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1318         lower_omp_ordered, lower_omp_critical, lower_omp_for,
1319         create_task_copyfn, lower_omp_taskreg, lower_omp_target,
1320         lower_omp_teams, execute_lower_omp): Likewise.
1321         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
1322         * tree-inline.c (optimize_inline_calls): Likewise.
1324 2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1326         * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
1327         (vsx_extract_<mode>): Likewise.
1328         (*vsx_extract_<mode>_one_le): New LE variant on
1329         *vsx_extract_<mode>_zero.
1330         (vsx_extract_v4sf): Adjust for little endian.
1332 2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>
1334         PR rtl-optimization/59133
1335         * lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
1336         new pseudos.
1337         (lra_create_new_reg_with_unique_value): Pass new argument value.
1338         (lra_emit_add, lra_emit_move): Ditto.
1339         * lra-constraints.c (in_class_p): Add check for move for a new insn.
1340         (change_class): Rename to lra_change_class.  Move to lra-int.h.
1341         (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
1342         change_class.
1343         (process_addr_reg, process_addr): Ditto.
1344         (curr_insn_transform): Ditto.  Add check on old pseudo for
1345         optional reload.
1346         * lra-int.h (lra_get_regno_hard_regno): Move below.
1347         (lra_change_class): Renamed change_class from lra.c.
1349 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
1351         * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
1352         the children of a NULL pointer.
1354 2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
1356         * lra.c (lra): Set lra_in_progress before check_rtl call.
1357         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
1358         adding clobber regs when LRA is running.
1360 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
1362         * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
1363         restriction for ISA_MIPS32R2.
1364         (ISA_HAS_LXC1_SXC1): New macro.
1365         (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
1366         (ISA_HAS_NMADD4_NMSUB4): Likewise.
1367         (ISA_HAS_FP_RECIP_RSQRT): Likewise.
1368         (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
1369         * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
1370         ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
1371         (*<ANYF:storex>_<P:mode>): Likewise.
1373 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
1375         * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
1376         * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
1377         ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
1378         * config/mips/mips.md (recip_condition): Remove mode attribute.
1379         (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
1380         <recip_condition>.
1381         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
1383 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1385         PR target/59207
1386         * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
1387         Make sure neg2_ovf is set before being used.
1389 2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
1391         * plugin.def: Add comment about register_callback and
1392         invoke_plugin_callbacks_full.
1394         * plugin.c (register_callback, invoke_plugin_callbacks_full):
1395         Handle PLUGIN_INCLUDE_FILE event.
1397 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1399         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
1400         allow subregs of TDmode in FPRs of smaller size in little-endian.
1401         (rs6000_split_multireg_move): When splitting an access to TDmode
1402         in FPRs, do not use simplify_gen_subreg.
1404 2013-11-20  Joseph Myers  <joseph@codesourcery.com>
1406         PR middle-end/21718
1407         * real.c: Remove comment about decimal string conversion and
1408         rounding errors.
1409         (real_from_string): Use MPFR to convert nonzero decimal constant
1410         to REAL_VALUE_TYPE.
1412 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1414         * config/arm/arm.c (arm_dwarf_register_span): Take into account the
1415         endianness of the D registers for the legacy encodings.
1417 2013-11-20  Richard Earnshaw  <rearnsha@arm.com>
1419         PR rtl-optimization/54300
1420         * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
1421         outputs in a single-set are killed from the value chains.
1423 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
1425         * cgraph.h (varpool_node): Add need_bounds_init field.
1426         * lto-cgraph.c (lto_output_varpool_node): Output
1427         need_bounds_init value.
1428         (input_varpool_node): Read need_bounds_init value.
1429         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
1431 2013-11-20  Jan Hubicka  <jh@suse.cz>
1433         * opts.c (finish_options): Imply -ffat-lto-objects with
1434         -fno-use-linker-plugin.
1435         * common.opt (fuse-linker-plugin): Add var.
1437 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
1439         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
1440         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
1441         (gen_type_die_with_usage): Skip pointer bounds.
1442         (dwarf2out_global_decl): Likewise.
1444 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
1446         * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
1447         from all insns.
1449 2013-11-20  Yuri Rumyantsev  <ysrumyan@gmail.com>
1451         PR target/57756
1452         * config/i386/i386.c (ix86_option_override_internal): Add missed
1453         argument prefix for 'ix86_fpmath'.
1454         * config/i386/ssemath.h: Add missed definition of
1455         TARGET_FPMATH_DEFAULT_P macros.
1457 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1458             Mike Stump  <mikestump@comcast.net>
1459             Richard Sandiford  <rdsandiford@googlemail.com>
1461         * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
1462         instead of TREE_INT_CST_LOW, in cases where there is a protecting
1463         tree_fits_shwi_p or tree_fits_uhwi_p.
1464         * builtins.c (fold_builtin_powi): Likewise.
1465         * config/epiphany/epiphany.c (epiphany_special_round_type_align):
1466         Likewise.
1467         * dbxout.c (dbxout_symbol): Likewise.
1468         * expr.c (expand_expr_real_1): Likewise.
1469         * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
1470         (fold_binary_loc): Likewise.
1471         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
1472         * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
1473         * omp-low.c (lower_omp_for_lastprivate): Likewise.
1474         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1475         * stor-layout.c (compute_record_mode): Likewise.
1476         * tree-cfg.c (verify_expr): Likewise.
1477         * tree-dfa.c (get_ref_base_and_extent): Likewise.
1478         * tree-pretty-print.c (dump_array_domain): Likewise.
1479         * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
1480         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
1481         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
1482         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
1483         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
1484         * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
1485         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1486         (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
1487         (vn_reference_lookup_3, simplify_binary_expression): Likewise.
1488         * tree-ssa-structalias.c (bitpos_of_field): Likewise.
1489         (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
1490         (create_variable_info_for_1): Likewise.
1491         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1492         (vect_verify_datarefs_alignment): Likewise.
1493         (vect_analyze_data_ref_accesses): Likewise.
1494         (vect_prune_runtime_alias_test_list): Likewise.
1495         * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
1497 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
1499         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
1500         overflow.  Use tree_to_shwi.
1502 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
1504         * fold-const.c (fold_binary_loc): Use unsigned rather than signed
1505         HOST_WIDE_INTs when folding (x >> c) << c.
1507 2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1508             Dominik Vogt  <vogt@linux.vnet.ibm.com>
1510         * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
1511         int comparisons with an out of range condition code.
1512         (s390_optimize_nonescaping_tx): Skip empty BBs.
1513         Generate the new tbegin RTX when removing the FPR clobbers (with
1514         two SETs).
1515         (s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
1516         result before doing the retry calculations.
1517         (s390_init_builtins): Make tbegin "returns_twice" and tabort
1518         "noreturn".
1519         * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
1520         the TDB setting part of an tbegin.
1521         ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
1522         ("tx_assist"): Set unused argument to an immediate zero instead of
1523         loading zero into a GPR and pass it as argument.
1524         * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
1525         Remove inline and related attributes.
1526         (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
1527         (__TM_is_illegal, __TM_is_footprint_exceeded)
1528         (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
1530 2013-11-20  Richard Biener  <rguenther@suse.de>
1532         PR lto/59035
1533         * lto-opts.c (lto_write_options): Write defaults only if
1534         they were not explicitely specified.  Also write
1535         -ffp-contract default.
1536         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
1537         conservatively.
1538         (run_gcc): Pass through -ffp-contract.
1540 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1542         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
1544 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
1546         * gcc/config/aarch64/aarch64-builtins.c
1547         (aarch64_simd_itype): Remove.
1548         (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
1549         (VAR1): Use qualifiers.
1550         (aarch64_build_scalar_type): New.
1551         (aarch64_build_vector_type): Likewise.
1552         (aarch64_build_type): Likewise.
1553         (aarch64_init_simd_builtins): Refactor, remove special cases,
1554         consolidate main loop.
1555         (aarch64_simd_expand_args): Likewise.
1557 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
1559         PR c/53001
1560         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
1562 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
1564         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
1566 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1568         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
1569         to "vec<>" instances.
1570         (build_pretty_printer): Register the vec<>* prettyprinter.
1572 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1574         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
1575         (GdbSubprinter.handles_type): New.
1576         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
1577         (GdbSubprinterRegex): New subclass of GdbSubprinter.
1578         (GdbPrettyPrinters.add_printer): Remove in favor of...
1579         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
1580         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
1581         (GdbPrettyPrinters.__call__): Update search for subprinter
1582         to use handles_type method.
1583         (build_pretty_printer): Update registration of subprinters to
1584         use the new API above, supporting multiple spelling of each type,
1585         and allowing for future regex-based subprinters.
1587 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1589         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
1590         V16QI vector splat case for little endian.
1592 2013-11-19  Jeff Law  <law@redhat.com>
1594         * tree-ssa-threadedge.c (thread_across_edge): After threading
1595         through a joiner, allow threading a normal block requiring duplication.
1597         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
1598         jump threading requests that would muck up the loop structures.
1600         * tree-ssa-threadupdate.c: Fix trailing whitespace.
1601         * tree-ssa-threadupdate.h: Likewise.
1603 2013-11-19  Mike Stump  <mikestump@comcast.net>
1605         * gdbinit.in: Add pmz to print out mpz values.
1607 2013-11-20  Jan Hubicka  <jh@suse.cz>
1609         * common.opt (ffat-lto-objects): Disable by default.
1610         * doc/invoke.texi (fat-lto-objects): Update documentation.
1611         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
1613 2013-11-19  Martin Jambor  <mjambor@suse.cz>
1615         PR rtl-optimization/59099
1616         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
1617         here.
1618         (ira): Move init_reg_equiv and call to
1619         split_live_ranges_for_shrink_wrap up, remove analyses around call
1620         to find_moveable_pseudos.
1622 2013-11-20  Alan Modra  <amodra@gmail.com>
1624         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
1625         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
1626         to strict alignment on older processors when little-endian.
1627         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
1628         for ELFv2.
1630 2013-11-19  Teresa Johnson  <tejohnson@google.com>
1632         * common/config/i386/i386-common.c: Enable
1633         -freorder-blocks-and-partition at -O2 and up for x86.
1634         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
1635         * opts.c (finish_options): Only warn if
1636         -freorder-blocks-and-partition was set on command line.
1638 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
1640         * final.c (final_scan_insn): Emit a label for the split
1641         cold function part.  Label name is formed by suffixing
1642         the original function name with "cold".
1644 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1646         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
1647         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
1648         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
1649         (EXIT_BLOCK_PTR_FOR_FN): ...this.
1650         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
1651         cfun be explicit.
1652         (EXIT_BLOCK_PTR): Likewise.
1653         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
1654         (FOR_ALL_BB_FN): Update for renaming of
1655         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
1657         * cfg.c (init_flow): Likewise.
1658         (check_bb_profile): Likewise.
1659         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
1660         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
1661         * cfghooks.c (account_profile_record): Likewise.
1662         * cfgloop.c (init_loops_structure): Likewise.
1663         * cgraphbuild.c (record_eh_tables): Likewise.
1664         (compute_call_stmt_bb_frequency): Likewise.
1665         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
1666         * lto-streamer-in.c (input_cfg): Likewise.
1667         * predict.c (maybe_hot_frequency_p): Likewise.
1668         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1669         * tree-inline.c (initialize_cfun): Likewise.
1670         (copy_cfg_body): Likewise.
1671         (copy_body): Likewise.
1672         (tree_function_versioning): Likewise.
1674         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
1675         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1676         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
1677         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
1678         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1679         (connect_traces): Likewise.
1680         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
1681         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
1682         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
1683         macro.
1684         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
1685         EXIT_BLOCK_PTR.
1686         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
1687         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
1688         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
1689         (rotate_loop): Likewise.
1690         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
1691         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1692         EXIT_BLOCK_PTR.
1693         (alloc_aux_for_edges): Likewise.
1694         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
1695         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
1696         EXIT_BLOCK_PTR.
1697         (compact_blocks): Likewise.
1698         (clear_edges): Likewise.
1699         * cfganal.c (single_pred_before_succ_order): Remove usage of
1700         ENTRY_BLOCK_PTR macro.
1701         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
1702         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
1703         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
1704         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
1705         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
1706         EXIT_BLOCK_PTR.
1707         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
1708         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
1709         EXIT_BLOCK_PTR.
1710         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
1711         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
1712         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1713         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1714         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1715         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
1716         EXIT_BLOCK_PTR.
1717         (print_edge_list): Likewise.
1718         (create_edge_list): Likewise.
1719         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
1720         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1721         EXIT_BLOCK_PTR.
1722         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
1723         macro.
1724         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
1725         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1726         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
1727         (try_optimize_cfg): Likewise.
1728         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
1729         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
1730         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
1731         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
1732         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
1733         (try_forward_edges): Likewise.
1734         (try_simplify_condjump): Likewise.
1735         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
1736         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1737         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
1738         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
1739         EXIT_BLOCK_PTR.
1740         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
1741         (expand_gimple_tailcall): Likewise.
1742         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
1743         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1744         (tidy_fallthru_edges): Likewise.
1745         (verify_flow_info): Likewise.
1746         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
1747         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
1748         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
1749         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1750         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
1751         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
1752         (get_loop_body_in_dom_order): Likewise.
1753         (get_loop_body): Likewise.
1754         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
1755         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1756         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
1757         macro.
1758         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
1759         (fix_bb_placement): Likewise.
1760         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
1761         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1762         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
1763         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
1764         EXIT_BLOCK_PTR.
1765         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
1766         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
1767         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1768         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
1769         macro.
1770         (fixup_fallthru_exit_predecessor): Remove uses of macros:
1771         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1772         (fixup_reorder_chain): Likewise.
1773         (relink_block_chain): Likewise.
1774         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
1775         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
1776         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
1777         (force_one_exit_fallthru): Likewise.
1778         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
1779         EXIT_BLOCK_PTR.
1780         (rtl_verify_edges): Likewise.
1781         (commit_edge_insertions): Likewise.
1782         (commit_one_edge_insertion): Likewise.
1783         (rtl_split_edge): Likewise.
1784         (force_nonfallthru_and_redirect): Likewise.
1785         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
1786         (skip_insns_after_block): Likewise.
1787         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
1788         EXIT_BLOCK_PTR.
1789         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
1790         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
1791         EXIT_BLOCK_PTR.
1792         (contains_no_active_insn_p): Likewise.
1793         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
1794         (entry_of_function): Likewise.
1795         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
1796         (fixup_new_cold_bb): Likewise.
1797         (patch_jump_insn): Likewise.
1798         (try_redirect_by_replacing_jump): Likewise.
1799         (block_label): Likewise.
1800         (could_fall_through): Likewise.
1801         (can_fallthru): Likewise.
1802         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
1803         ENTRY_BLOCK_PTR macro.
1804         (rebuild_cgraph_edges): Likewise.
1805         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
1806         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1807         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
1808         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
1809         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
1810         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
1811         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
1812         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
1813         macro.
1814         (reg_nonzero_bits_for_combine): Likewise.
1815         (set_nonzero_bits_and_sign_copies): Likewise.
1816         (combine_instructions): Likewise.
1817         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
1818         EXIT_BLOCK_PTR.
1819         (bypass_conditional_jumps): Likewise.
1820         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
1821         (find_implicit_sets): Likewise.
1822         (cprop_jump): Likewise.
1823         * cse.c (cse_cc_succs): Likewise.
1824         (cse_find_path): Likewise.
1825         * df-problems.c (df_lr_confluence_0): Likewise.
1826         * df-scan.c (df_entry_block_defs_collect): Remove usage of
1827         ENTRY_BLOCK_PTR macro.
1828         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
1829         * dominance.c (iterate_fix_dominators): Remove usage of
1830         ENTRY_BLOCK_PTR macro.
1831         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1832         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
1833         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
1834         EXIT_BLOCK_PTR.
1835         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
1836         macro.
1837         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
1838         EXIT_BLOCK_PTR.
1839         * domwalk.c (cmp_bb_postorder): Likewise.
1840         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
1841         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
1842         macro.
1843         (sjlj_emit_function_enter): Likewise.
1844         * final.c (compute_alignments): Likewise.
1845         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
1846         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1847         (reposition_prologue_and_epilogue_notes): Remove usage of
1848         EXIT_BLOCK_PTR macro.
1849         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
1850         EXIT_BLOCK_PTR.
1851         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
1852         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
1853         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
1854         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
1855         (compute_code_hoist_vbeinout): Likewise.
1856         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
1857         (pre_expr_reaches_here_p_work): Likewise.
1858         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1859         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
1860         EXIT_BLOCK_PTR.
1861         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
1862         ENTRY_BLOCK_PTR macro.
1863         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
1864         macro.
1865         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
1866         ENTRY_BLOCK_PTR macro.
1867         * graphite-scop-detection.c (build_scops): Likewise.
1868         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
1869         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
1870         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
1871         macro.
1872         (unlink_bb_notes): Likewise.
1873         (create_check_block_twin): Likewise.
1874         (init_before_recovery): Likewise.
1875         (sched_extend_bb): Likewise.
1876         (priority): Likewise.
1877         * hw-doloop.c (reorder_loops): Likewise.
1878         (discover_loop): Likewise.
1879         * ifcvt.c (dead_or_predicable): Remove uses of macros:
1880         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1881         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
1882         (block_has_only_trap): Likewise.
1883         (cond_exec_find_if_block): Likewise.
1884         (merge_if_block): Likewise.
1885         * ipa-inline-analysis.c (param_change_prob): Remove usage of
1886         ENTRY_BLOCK_PTR macro.
1887         (record_modified): Likewise.
1888         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
1889         EXIT_BLOCK_PTR macro.
1890         (local_pure_const): Likewise.
1891         * ipa-split.c (split_function): Remove uses of macros:
1892         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1893         (find_split_points): Likewise.
1894         (consider_split): Likewise.
1895         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
1896         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
1897         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
1898         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
1899         * ira-emit.c (entered_from_non_parent_p): Remove usage of
1900         ENTRY_BLOCK_PTR macro.
1901         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
1902         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
1903         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
1904         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1905         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
1906         macro.
1907         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
1908         EXIT_BLOCK_PTR.
1909         (compute_farthest): Likewise.
1910         (compute_available): Likewise.
1911         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
1912         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
1913         EXIT_BLOCK_PTR.
1914         (compute_earliest): Likewise.
1915         (compute_antinout_edge): Likewise.
1916         * loop-iv.c (simplify_using_initial_values): Remove usage of
1917         ENTRY_BLOCK_PTR macro.
1918         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
1919         macro.
1920         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
1921         macro.
1922         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
1923         macro.
1924         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
1925         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1926         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
1927         macro.
1928         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
1929         macro.
1930         * lto-streamer-out.c (output_cfg): Likewise.
1931         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
1932         EXIT_BLOCK_PTR.
1933         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
1934         * mode-switching.c (optimize_mode_switching): Likewise.
1935         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
1936         * modulo-sched.c (rest_of_handle_sms): Likewise.
1937         (canon_loop): Likewise.
1938         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
1939         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
1940         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1941         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
1942         macro.
1943         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
1944         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
1945         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
1946         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
1947         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
1948         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
1949         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
1950         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
1951         (gimple_predict_edge): Likewise.
1952         (probably_never_executed): Likewise.
1953         * profile.c (find_spanning_tree): Remove uses of macros:
1954         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1955         (branch_prob): Likewise.
1956         (compute_branch_probabilities): Likewise.
1957         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
1958         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
1959         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
1960         (set_bb_counts): Likewise.
1961         (correct_negative_edge_counts): Likewise.
1962         (get_exec_counts): Likewise.
1963         (instrument_values): Likewise.
1964         (instrument_edges): Likewise.
1965         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
1966         EXIT_BLOCK_PTR.
1967         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
1968         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
1969         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
1970         (reg_to_stack): Likewise.
1971         * regs.h (REG_N_SETS): Likewise.
1972         * reload.c (find_dummy_reload): Likewise.
1973         (combine_reloads): Likewise.
1974         (push_reload): Likewise.
1975         * reload1.c (has_nonexceptional_receiver): Remove usage of
1976         EXIT_BLOCK_PTR macro.
1977         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
1978         macro.
1979         (find_basic_block): Likewise.
1980         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
1981         (schedule_ebbs): Likewise.
1982         * sched-int.h (sel_sched_p): Likewise.
1983         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
1984         macro.
1985         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
1986         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
1987         EXIT_BLOCK_PTR.
1988         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
1989         (extend_rgns): Likewise.
1990         (find_single_block_region): Likewise.
1991         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
1992         ENTRY_BLOCK_PTR macro.
1993         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
1994         (sel_create_recovery_block): Likewise.
1995         (bb_ends_ebb_p): Likewise.
1996         (sel_bb_end): Likewise.
1997         (sel_bb_head): Likewise.
1998         (free_lv_sets): Likewise.
1999         (init_lv_sets): Likewise.
2000         (tidy_control_flow): Likewise.
2001         (maybe_tidy_empty_bb): Likewise.
2002         * sel-sched-ir.h (_succ_iter_cond): Likewise.
2003         (_succ_iter_start): Likewise.
2004         (sel_bb_empty_or_nop_p): Likewise.
2005         (get_loop_exit_edges_unique_dests): Likewise.
2006         (inner_loop_header_p): Likewise.
2007         * sel-sched.c (create_block_for_bookkeeping): Likewise.
2008         (find_block_for_bookkeeping): Likewise.
2009         * store-motion.c (remove_reachable_equiv_notes): Likewise.
2010         (insert_store): Likewise.
2011         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
2012         ENTRY_BLOCK_PTR macro.
2013         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
2014         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
2015         (gate_tm_init): Likewise.
2016         (tm_region_init): Likewise.
2017         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
2018         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2019         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
2020         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2021         EXIT_BLOCK_PTR.
2022         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2023         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
2024         EXIT_BLOCK_PTR.
2025         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2026         macro.
2027         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
2028         EXIT_BLOCK_PTR.
2029         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
2030         macro.
2031         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2032         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2033         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2034         (build_gimple_cfg): Likewise.
2035         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2036         (gimple_can_merge_blocks_p): Likewise.
2037         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
2038         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2039         * tree-complex.c (update_parameter_components): Remove usage of
2040         ENTRY_BLOCK_PTR macro.
2041         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
2042         EXIT_BLOCK_PTR macro.
2043         * tree-inline.c (tree_function_versioning): Remove uses of macros:
2044         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2045         (delete_unreachable_blocks_update_callgraph): Likewise.
2046         (initialize_cfun): Likewise.
2047         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
2048         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
2049         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
2050         * tree-into-ssa.c (update_ssa): Likewise.
2051         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
2052         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
2053         (rewrite_into_ssa): Likewise.
2054         (rewrite_debug_stmt_uses): Likewise.
2055         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
2056         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2057         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
2058         ENTRY_BLOCK_PTR macro.
2059         * tree-scalar-evolution.h (block_before_loop): Likewise.
2060         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
2061         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
2062         EXIT_BLOCK_PTR.
2063         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
2064         macro.
2065         (propagate_dereference_distances): Remove uses of macros:
2066         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2067         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
2068         macro.
2069         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
2070         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
2071         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2072         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
2073         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2074         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
2075         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
2076         (mark_control_dependent_edges_necessary): Remove uses of macros:
2077         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2078         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
2079         ENTRY_BLOCK_PTR macro.
2080         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
2081         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
2082         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2083         (calculate_live_on_exit): Likewise.
2084         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2085         (loe_visit_block): Likewise.
2086         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
2087         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2088         (live_on_entry): Likewise.
2089         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
2090         EXIT_BLOCK_PTR macro.
2091         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
2092         ENTRY_BLOCK_PTR macro.
2093         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
2094         (bound_difference): Likewise.
2095         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
2096         of EXIT_BLOCK_PTR macro.
2097         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
2098         of ENTRY_BLOCK_PTR macro.
2099         * tree-ssa-math-opts.c (register_division_in): Likewise.
2100         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
2101         * tree-ssa-pre.c (compute_avail): Likewise.
2102         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
2103         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
2104         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2105         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
2106         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
2107         EXIT_BLOCK_PTR.
2108         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
2109         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
2110         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2111         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
2112         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2113         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
2114         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2115         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
2116         (find_pdom): Likewise.
2117         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2118         * tree-stdarg.c (reachable_at_most_once): Likewise.
2119         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
2120         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2121         (eliminate_tail_call): Likewise.
2122         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
2123         macro.
2124         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
2125         * var-tracking.c (vt_initialize): Remove uses of macros:
2126         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2127         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
2128         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
2129         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
2130         EXIT_BLOCK_PTR.
2131         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
2132         macro.
2133         * config/bfin/bfin.c (hwloop_optimize): Likewise.
2134         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
2135         of EXIT_BLOCK_PTR macro.
2136         * config/arm/arm.c (require_pic_register): Remove usage of
2137         ENTRY_BLOCK_PTR macro.
2138         (arm_r3_live_at_start_p): Likewise.
2139         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
2140         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2141         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
2142         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
2143         ENTRY_BLOCK_PTR macro.
2144         * config/i386/i386.c (ix86_count_insn): Likewise.
2145         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
2146         (ix86_pad_short_function): Likewise.
2147         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2148         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
2149         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
2150         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
2151         (ix86_expand_epilogue): Likewise.
2152         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
2153         (ia64_expand_prologue): Likewise.
2155 2013-11-19  Catherine Moore  <clm@codesourcery.com>
2157         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
2158         * config/mips/mips.opt (mfix-rm7000): New option.
2159         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
2160         * config/mips/mips.c (mips_reorg_process_insns): Disable
2161         noreorder for TARGET_FIX_RM7000.
2163 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
2165         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
2167 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2169         * config/arm/arm.c (arm_new_rtx_costs):
2170         Handle narrow mode add-shifts properly.
2171         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
2172         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
2173         Declare extern.
2175 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
2177         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
2179 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2181         * config/rs6000/vector.md ("mov<mode>"): Do not call
2182         rs6000_emit_le_vsx_move to move into or out of GPRs.
2183         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
2184         source and destination are not GPR hard regs.
2186 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2188         * basic-block.h (n_edges_for_function): Rename macro to...
2189         (n_edges_for_fn): ...this.
2190         (n_edges): Eliminate macro as work towards making uses of
2191         cfun be explicit.
2193         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
2194         to "n_edges_for_fn".
2196         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
2197         (clear_edges): Likewise.
2198         (free_edge): Likewise.
2199         * cfghooks.c (dump_flow_info): Likewise.
2200         * cprop.c (is_too_expensive): Likewise.
2201         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
2202         * gcse.c (is_too_expensive): Likewise.
2203         (prune_insertions_deletions): Likewise.
2204         * mcf.c (create_fixup_graph): Likewise.
2205         * sched-rgn.c (haifa_find_rgns): Likewise.
2206         * tree-cfg.c (gimple_dump_cfg): Likewise.
2207         * var-tracking.c (variable_tracking_main_1): Likewise.
2209 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2211         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
2212         length lines.
2214 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2216         * config/aarch64/aarch64.md
2217         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
2219 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2221         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
2223 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
2225         * varasm.c (align_variable): Give error instead of warning for
2226         unsupported alignment.
2227         (assemble_noswitch_variable): Likewise.
2229 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
2231         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
2232         cb_file_change.
2234 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
2236         * loop-doloop.c (doloop_optimize_loops): Remove unused
2237         loop iterator argument from FOR_EACH_LOOP.
2239 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2241         Convert gimple types from a union to C++ inheritance.
2242         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
2243         * coretypes.h (union gimple_statement_d): Remove declaration.
2244         (gimple): Convert from being a "union gimple_statement_d *"
2245         to a "struct gimple_statement_base *".
2246         (const_gimple): Likewise (with "const").
2247         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
2248         (ggc_alloc_cleared_gimple_statement_stat): ...this.
2249         * gimple-pretty-print.c (debug): Change parameter from a
2250         "gimple_statement_d &" to a "gimple_statement_base &".
2251         (debug): Change parameter from a "gimple_statement_d *" to
2252         a "gimple_statement_base *".
2253         * gimple-pretty-print.h (debug): Update declarations as above.
2254         * gimple.c (gimple_alloc_stat): Update for renaming of
2255         ggc_alloc_cleared_gimple_statement_d_stat to
2256         ggc_alloc_cleared_gimple_statement_stat.
2257         * gimple.h: Include "is-a.h" for use by is_a_helper
2258         specializations in followup autogenerated patch.
2259         (struct gimple statement_base): Make this type usable as a base
2260         class by adding "desc", "tag" and "variable_size" to GTY, thus
2261         using opting-in to gengtype's support for simple inheritance.
2262         (gimple_statement_with_ops_base): Convert to a subclass of
2263         gimple_statement_base, dropping initial "gsbase" field.  Note that
2264         this type is abstract, with no GSS_ value, and thus no GTY tag value.
2265         (gimple_statement_with_ops): Convert to a subclass of
2266         gimple_statement_with_ops_base, dropping initial "opbase" field.
2267         Add tag value to GTY marking.  Update marking of op field to
2268         reflect how num_ops field is accessed via inheritance.
2269         (gimple_statement_with_memory_ops_base): Convert to a subclass of
2270         gimple_statement_with_ops_base, dropping initial "opbase" field.
2271         Add tag value to GTY marking.
2272         (gimple_statement_with_memory_ops): Convert to a subclass of
2273         public gimple_statement_with_memory_ops_base, dropping initial
2274         "membase" field.  Add tag value to GTY marking.  Update marking
2275         of op field to reflect how num_ops field is accessed via inheritance.
2276         (gimple_statement_call): Analogous changes that also update the
2277         marking of the "u" union.
2278         (gimple_statement_omp): Convert to a subclass of
2279         gimple_statement_base, dropping initial "gsbase" field, adding
2280         tag value to GTY marking.
2281         (gimple_statement_bind): Likewise.
2282         (gimple_statement_catch): Likewise.
2283         (gimple_statement_eh_filter): Likewise.
2284         (gimple_statement_eh_else): Likewise.
2285         (gimple_statement_eh_mnt): Likewise.
2286         (gimple_statement_phi): Likewise.
2287         (gimple_statement_eh_ctrl): Likewise.
2288         (gimple_statement_try): Likewise.
2289         (gimple_statement_wce): Likewise.
2290         (gimple_statement_asm): Convert to a subclass of
2291         gimple_statement_with_memory_ops_base, dropping initial
2292         "membase" field, adding tag value to GTY marking, and updating
2293         marking of op field.
2294         (gimple_statement_omp_critical): Convert to a subclass of
2295         gimple_statement_omp, dropping initial "omp" field, adding tag
2296         value to GTY marking.
2297         (gimple_statement_omp_for): Likewise.
2298         (gimple_statement_omp_parallel): Likewise.
2299         (gimple_statement_omp_task): Convert to a subclass of
2300         gimple_statement_omp_parallel, dropping initial "par" field,
2301         adding tag value to GTY marking.
2302         (gimple_statement_omp_sections): Convert to a subclass of
2303         gimple_statement_omp, dropping initial "omp" field, adding
2304         tag value to GTY marking.
2305         (gimple_statement_omp_continue): Convert to a subclass of
2306         gimple_statement_base, dropping initial "gsbase" field, adding
2307         tag value to GTY marking.
2308         (gimple_statement_omp_single): Convert to a subclass of
2309         gimple_statement_omp, dropping initial "omp" field, adding
2310         tag value to GTY marking.
2311         (gimple_statement_omp_atomic_load): Convert to a subclass of
2312         gimple_statement_base, dropping initial "gsbase" field, adding
2313         tag value to GTY marking.
2314         (gimple_statement_omp_atomic_store): Convert to a subclass of
2315         gimple_statement_base, dropping initial "gsbase" field, adding
2316         tag value to GTY marking.
2317         (gimple_statement_transaction): Convert to a subclass of
2318         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
2319         field, adding tag value to GTY marking.
2320         (union gimple_statement_d): Remove.
2321         * system.h (CONST_CAST_GIMPLE): Update to use
2322         "struct gimple_statement_base *" rather than
2323         "union gimple_statement_d *".
2324         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
2325         gimple_statement_d to gimple_statement_base.
2327         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
2328         (gimple_set_use_ops): Port from union to usage of as_a.
2329         (gimple_set_vuse): Likewise.
2330         (gimple_set_vdef): Likewise.
2331         (gimple_call_internal_fn): Port from union to a static_cast,
2332         given that the type has already been asserted.
2333         (gimple_omp_body_ptr): Port from unchecked union usage to
2334         a static_cast.
2335         (gimple_omp_set_body): Likewise.
2337         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
2338         gimple types to a true class hierarchy.
2339         (update_call_edge_frequencies): Likewise.
2340         (gsi_insert_seq_nodes_before): Likewise.
2341         (gsi_insert_seq_nodes_after): Likewise.
2342         (gsi_split_seq_after): Likewise.
2343         (gsi_set_stmt): Likewise.
2344         (gsi_split_seq_before): Likewise.
2345         (gsi_remove): Likewise.
2346         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
2347         (gsi_next): Likewise.
2348         (gsi_prev): Likewise.
2349         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
2350         * gimple-ssa.h (gimple_vuse_op): Likewise.
2351         (gimple_vdef_op): Likewise.
2352         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
2353         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
2354         * gimple.c (gimple_set_code): Likewise.
2355         (gimple_alloc_stat): Likewise.
2356         (gimple_set_subcode): Likewise.
2357         (gimple_build_call_internal_1): Likewise.
2358         (gimple_check_failed): Likewise.
2359         (gimple_call_flags): Likewise.
2360         (gimple_set_bb): Likewise.
2361         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
2362         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
2363         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
2364         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
2365         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
2366         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
2367         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
2368         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
2369         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
2370         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
2371         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
2372         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
2373         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
2374         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
2375         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
2376         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
2377         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
2378         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
2379         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
2380         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
2381         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
2382         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
2383         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
2384         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
2385         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
2386         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
2387         Likewise.
2388         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
2389         Likewise.
2390         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
2391         Likewise.
2392         (is_a_helper <const gimple_statement_omp_atomic_store>
2393         (const_gimple)): Likewise.
2394         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
2395         Likewise.
2396         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
2397         Likewise.
2398         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
2399         Likewise.
2400         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
2401         Likewise.
2402         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
2403         Likewise.
2404         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
2405         Likewise.
2406         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
2407         Likewise.
2408         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
2409         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
2410         Likewise.
2411         (gimple_seq_last): Update for conversion of gimple types to a true
2412         class hierarchy.
2413         (gimple_seq_set_last): Likewise.
2414         (gimple_code): Likewise.
2415         (gimple_bb): Likewise.
2416         (gimple_block): Likewise.
2417         (gimple_set_block): Likewise.
2418         (gimple_location): Likewise.
2419         (gimple_location_ptr): Likewise.
2420         (gimple_set_location): Likewise.
2421         (gimple_no_warning_p): Likewise.
2422         (gimple_set_no_warning): Likewise.
2423         (gimple_set_visited): Likewise.
2424         (gimple_visited_p): Likewise.
2425         (gimple_set_plf): Likewise.
2426         (gimple_plf): Likewise.
2427         (gimple_set_uid): Likewise.
2428         (gimple_uid): Likewise.
2429         (gimple_init_singleton): Likewise.
2430         (gimple_modified_p): Likewise.
2431         (gimple_set_modified): Likewise.
2432         (gimple_expr_code): Likewise.
2433         (gimple_has_volatile_ops): Likewise.
2434         (gimple_set_has_volatile_ops): Likewise.
2435         (gimple_omp_subcode): Likewise.
2436         (gimple_omp_set_subcode): Likewise.
2437         (gimple_omp_return_set_nowait): Likewise.
2438         (gimple_omp_section_set_last): Likewise.
2439         (gimple_omp_parallel_set_combined_p): Likewise.
2440         (gimple_omp_atomic_set_need_value): Likewise.
2441         (gimple_omp_atomic_set_seq_cst): Likewise.
2442         (gimple_num_ops): Likewise.
2443         (gimple_set_num_ops): Likewise.
2444         (gimple_assign_nontemporal_move_p): Likewise.
2445         (gimple_assign_set_nontemporal_move): Likewise.
2446         (gimple_assign_rhs_code): Likewise.
2447         (gimple_assign_set_rhs_code): Likewise.
2448         (gimple_call_internal_p): Likewise.
2449         (gimple_call_with_bounds_p): Likewise.
2450         (gimple_call_set_with_bounds): Likewise.
2451         (gimple_call_set_tail): Likewise.
2452         (gimple_call_tail_p): Likewise.
2453         (gimple_call_set_return_slot_opt): Likewise.
2454         (gimple_call_return_slot_opt_p): Likewise.
2455         (gimple_call_set_from_thunk): Likewise.
2456         (gimple_call_from_thunk_p): Likewise.
2457         (gimple_call_set_va_arg_pack): Likewise.
2458         (gimple_call_va_arg_pack_p): Likewise.
2459         (gimple_call_set_nothrow): Likewise.
2460         (gimple_call_set_alloca_for_var): Likewise.
2461         (gimple_call_alloca_for_var_p): Likewise.
2462         (gimple_call_copy_flags): Likewise.
2463         (gimple_cond_code): Likewise.
2464         (gimple_cond_set_code): Likewise.
2465         (gimple_cond_make_false): Likewise.
2466         (gimple_cond_make_true): Likewise.
2467         (gimple_asm_volatile_p): Likewise.
2468         (gimple_asm_set_volatile): Likewise.
2469         (gimple_asm_set_input): Likewise.
2470         (gimple_asm_input_p): Likewise.
2471         (gimple_try_kind): Likewise.
2472         (gimple_try_set_kind): Likewise.
2473         (gimple_try_catch_is_cleanup): Likewise.
2474         (gimple_try_set_catch_is_cleanup): Likewise.
2475         (gimple_wce_cleanup_eh_only): Likewise.
2476         (gimple_wce_set_cleanup_eh_only): Likewise.
2477         (gimple_debug_bind_p): Likewise.
2478         (gimple_debug_source_bind_p): Likewise.
2479         (gimple_omp_for_set_kind): Likewise.
2480         (gimple_omp_for_set_combined_p): Likewise.
2481         (gimple_omp_for_set_combined_into_p): Likewise.
2482         (gimple_omp_target_set_kind): Likewise.
2483         (gimple_transaction_subcode): Likewise.
2484         (gimple_transaction_set_subcode): Likewise.
2485         (gimple_predict_predictor): Likewise.
2486         (gimple_predict_set_predictor): Likewise.
2487         (gimple_predict_outcome): Likewise.
2488         (gimple_predict_set_outcome): Likewise.
2489         (gimple_transaction_set_label): Likewise.
2490         (gimple_transaction_set_body): Likewise.
2491         (gimple_transaction_label_ptr): Likewise.
2492         (gimple_transaction_label): Likewise.
2493         (gimple_transaction_body_ptr): Likewise.
2494         (gimple_omp_continue_set_control_use): Likewise.
2495         (gimple_omp_continue_control_use_ptr): Likewise.
2496         (gimple_omp_continue_control_use): Likewise.
2497         (gimple_omp_continue_set_control_def): Likewise.
2498         (gimple_omp_continue_control_def_ptr): Likewise.
2499         (gimple_omp_continue_control_def): Likewise.
2500         (gimple_omp_atomic_load_rhs_ptr): Likewise.
2501         (gimple_omp_atomic_load_rhs): Likewise.
2502         (gimple_omp_atomic_load_set_rhs): Likewise.
2503         (gimple_omp_atomic_load_lhs_ptr): Likewise.
2504         (gimple_omp_atomic_load_lhs): Likewise.
2505         (gimple_omp_atomic_load_set_lhs): Likewise.
2506         (gimple_omp_atomic_store_val_ptr): Likewise.
2507         (gimple_omp_atomic_store_val): Likewise.
2508         (gimple_omp_atomic_store_set_val): Likewise.
2509         (gimple_omp_for_cond): Likewise.
2510         (gimple_omp_for_set_cond): Likewise.
2511         (gimple_omp_sections_set_control): Likewise.
2512         (gimple_omp_sections_control_ptr): Likewise.
2513         (gimple_omp_sections_control): Likewise.
2514         (gimple_omp_sections_set_clauses): Likewise.
2515         (gimple_omp_sections_clauses_ptr): Likewise.
2516         (gimple_omp_sections_clauses): Likewise.
2517         (gimple_omp_teams_set_clauses): Likewise.
2518         (gimple_omp_teams_clauses_ptr): Likewise.
2519         (gimple_omp_teams_clauses): Likewise.
2520         (gimple_omp_target_set_data_arg): Likewise.
2521         (gimple_omp_target_data_arg_ptr): Likewise.
2522         (gimple_omp_target_data_arg): Likewise.
2523         (gimple_omp_target_set_child_fn): Likewise.
2524         (gimple_omp_target_child_fn_ptr): Likewise.
2525         (gimple_omp_target_child_fn): Likewise.
2526         (gimple_omp_target_set_clauses): Likewise.
2527         (gimple_omp_target_clauses_ptr): Likewise.
2528         (gimple_omp_target_clauses): Likewise.
2529         (gimple_omp_single_set_clauses): Likewise.
2530         (gimple_omp_single_clauses_ptr): Likewise.
2531         (gimple_omp_single_clauses): Likewise.
2532         (gimple_omp_task_set_arg_align): Likewise.
2533         (gimple_omp_task_arg_align_ptr): Likewise.
2534         (gimple_omp_task_arg_align): Likewise.
2535         (gimple_omp_task_set_arg_size): Likewise.
2536         (gimple_omp_task_arg_size_ptr): Likewise.
2537         (gimple_omp_task_arg_size): Likewise.
2538         (gimple_omp_task_set_copy_fn): Likewise.
2539         (gimple_omp_task_copy_fn_ptr): Likewise.
2540         (gimple_omp_task_copy_fn): Likewise.
2541         (gimple_omp_task_set_data_arg): Likewise.
2542         (gimple_omp_task_data_arg_ptr): Likewise.
2543         (gimple_omp_task_data_arg): Likewise.
2544         (gimple_omp_task_set_child_fn): Likewise.
2545         (gimple_omp_task_child_fn_ptr): Likewise.
2546         (gimple_omp_task_child_fn): Likewise.
2547         (gimple_omp_task_set_clauses): Likewise.
2548         (gimple_omp_task_clauses_ptr): Likewise.
2549         (gimple_omp_task_clauses): Likewise.
2550         (gimple_omp_parallel_set_data_arg): Likewise.
2551         (gimple_omp_parallel_data_arg_ptr): Likewise.
2552         (gimple_omp_parallel_data_arg): Likewise.
2553         (gimple_omp_parallel_set_child_fn): Likewise.
2554         (gimple_omp_parallel_child_fn_ptr): Likewise.
2555         (gimple_omp_parallel_child_fn): Likewise.
2556         (gimple_omp_parallel_set_clauses): Likewise.
2557         (gimple_omp_parallel_clauses_ptr): Likewise.
2558         (gimple_omp_parallel_clauses): Likewise.
2559         (gimple_omp_for_set_pre_body): Likewise.
2560         (gimple_omp_for_pre_body_ptr): Likewise.
2561         (gimple_omp_for_set_incr): Likewise.
2562         (gimple_omp_for_incr_ptr): Likewise.
2563         (gimple_omp_for_incr): Likewise.
2564         (gimple_omp_for_set_final): Likewise.
2565         (gimple_omp_for_final_ptr): Likewise.
2566         (gimple_omp_for_final): Likewise.
2567         (gimple_omp_for_set_initial): Likewise.
2568         (gimple_omp_for_initial_ptr): Likewise.
2569         (gimple_omp_for_initial): Likewise.
2570         (gimple_omp_for_set_index): Likewise.
2571         (gimple_omp_for_index_ptr): Likewise.
2572         (gimple_omp_for_index): Likewise.
2573         (gimple_omp_for_collapse): Likewise.
2574         (gimple_omp_for_set_clauses): Likewise.
2575         (gimple_omp_for_clauses_ptr): Likewise.
2576         (gimple_omp_for_clauses): Likewise.
2577         (gimple_omp_critical_set_name): Likewise.
2578         (gimple_omp_critical_name_ptr): Likewise.
2579         (gimple_omp_critical_name): Likewise.
2580         (gimple_eh_dispatch_set_region): Likewise.
2581         (gimple_eh_dispatch_region): Likewise.
2582         (gimple_resx_set_region): Likewise.
2583         (gimple_resx_region): Likewise.
2584         (gimple_phi_set_arg): Likewise.
2585         (gimple_phi_arg): Likewise.
2586         (gimple_phi_set_result): Likewise.
2587         (gimple_phi_result_ptr): Likewise.
2588         (gimple_phi_result): Likewise.
2589         (gimple_phi_num_args): Likewise.
2590         (gimple_phi_capacity): Likewise.
2591         (gimple_wce_set_cleanup): Likewise.
2592         (gimple_wce_cleanup_ptr): Likewise.
2593         (gimple_try_set_cleanup): Likewise.
2594         (gimple_try_set_eval): Likewise.
2595         (gimple_try_cleanup_ptr): Likewise.
2596         (gimple_try_eval_ptr): Likewise.
2597         (gimple_eh_else_set_e_body): Likewise.
2598         (gimple_eh_else_set_n_body): Likewise.
2599         (gimple_eh_else_e_body_ptr): Likewise.
2600         (gimple_eh_else_n_body_ptr): Likewise.
2601         (gimple_eh_must_not_throw_set_fndecl): Likewise.
2602         (gimple_eh_must_not_throw_fndecl): Likewise.
2603         (gimple_eh_filter_set_failure): Likewise.
2604         (gimple_eh_filter_set_types): Likewise.
2605         (gimple_eh_filter_failure_ptr): Likewise.
2606         (gimple_eh_filter_types_ptr): Likewise.
2607         (gimple_eh_filter_types): Likewise.
2608         (gimple_catch_set_handler): Likewise.
2609         (gimple_catch_set_types): Likewise.
2610         (gimple_catch_handler_ptr): Likewise.
2611         (gimple_catch_types_ptr): Likewise.
2612         (gimple_catch_types): Likewise.
2613         (gimple_asm_string): Likewise.
2614         (gimple_asm_set_label_op): Likewise.
2615         (gimple_asm_label_op): Likewise.
2616         (gimple_asm_set_clobber_op): Likewise.
2617         (gimple_asm_clobber_op): Likewise.
2618         (gimple_asm_set_output_op): Likewise.
2619         (gimple_asm_output_op_ptr): Likewise.
2620         (gimple_asm_output_op): Likewise.
2621         (gimple_asm_set_input_op): Likewise.
2622         (gimple_asm_input_op_ptr): Likewise.
2623         (gimple_asm_input_op): Likewise.
2624         (gimple_asm_nlabels): Likewise.
2625         (gimple_asm_nclobbers): Likewise.
2626         (gimple_asm_noutputs): Likewise.
2627         (gimple_asm_ninputs): Likewise.
2628         (gimple_bind_set_block): Likewise.
2629         (gimple_bind_block): Likewise.
2630         (gimple_bind_add_seq): Likewise.
2631         (gimple_bind_add_stmt): Likewise.
2632         (gimple_bind_set_body): Likewise.
2633         (gimple_bind_body_ptr): Likewise.
2634         (gimple_bind_append_vars): Likewise.
2635         (gimple_bind_set_vars): Likewise.
2636         (gimple_bind_vars): Likewise.
2637         (gimple_call_clobber_set): Likewise.
2638         (gimple_call_use_set): Likewise.
2639         (gimple_call_set_internal_fn): Likewise.
2640         (gimple_call_set_fntype): Likewise.
2641         (gimple_call_fntype): Likewise.
2642         (gimple_omp_return_lhs_ptr): Likewise.
2643         (gimple_omp_return_lhs): Likewise.
2644         (gimple_omp_return_set_lhs): Likewise.
2645         (gimple_omp_taskreg_set_data_arg): Likewise.
2646         (gimple_omp_taskreg_data_arg_ptr): Likewise.
2647         (gimple_omp_taskreg_data_arg): Likewise.
2648         (gimple_omp_taskreg_set_child_fn): Likewise.
2649         (gimple_omp_taskreg_child_fn_ptr): Likewise.
2650         (gimple_omp_taskreg_child_fn): Likewise.
2651         (gimple_omp_taskreg_set_clauses): Likewise.
2652         (gimple_omp_taskreg_clauses_ptr): Likewise.
2653         (gimple_omp_taskreg_clauses): Likewise.
2654         (gimple_vuse): Likewise.
2655         (gimple_vdef): Likewise.
2656         (gimple_vuse_ptr): Likewise.
2657         (gimple_vdef_ptr): Likewise.
2658         * tree-inline.c (copy_debug_stmt): Likewise.
2659         * tree-phinodes.c (make_phi_node): Likewise.
2661         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
2662         (is_a_helper <gimple_statement_with_ops>::test): New.
2663         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
2664         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
2666         * gimple-streamer-in.c (input_gimple_stmt): Port from union
2667         access to use of as_a.
2668         * gimple.c (gimple_build_asm_1): Likewise.
2669         (gimple_build_try): Likewise.  Also, return a specific subclass
2670         rather than just gimple.
2671         (gimple_build_resx): Port from union access to use of as_a.
2672         (gimple_build_eh_dispatch): Likewise.
2673         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
2674         now that gengtype no longer provides a typed allocator function.
2675         (gimple_copy): Likewise.
2676         * gimple.h (gimple_build_try): Return a specific subclass rather
2677         than just gimple.
2678         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
2679         with subclass access by making use of new return type of
2680         gimple_build_try.
2681         * tree-phinodes.c: (allocate_phi_node): Return a
2682         "gimple_statement_phi *" rather than just a gimple.
2683         (resize_phi_node): Likewise.
2684         (make_phi_node): Replace union access with subclass access by
2685         making use of new return type of allocate_phi_node.
2686         (reserve_phi_args_for_new_edge): Replace union access with as_a.
2687         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
2688         than just a gimple.
2689         (remove_phi_args): Update for change to remove_phi_arg_num.
2691         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
2692         code field to reflect inheritance, rather than embedding of
2693         the base gimple type.
2695 2013-11-19  Richard Biener  <rguenther@suse.de>
2697         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
2698         and destructor and make fel_next a member function.
2699         (fel_next): Transform into ...
2700         (loop_iterator::next): ... this.
2701         (fel_init): Transform into ...
2702         (loop_iterator::loop_iterator): ... this.
2703         (loop_iterator::~loop_iterator): New.
2704         (FOR_EACH_LOOP): Remove loop-iterator argument.
2705         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
2706         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
2707         graphite-clast-to-gimple.c, graphite-scop-detection.c,
2708         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
2709         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
2710         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
2711         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
2712         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
2713         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
2714         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
2715         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
2716         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
2717         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
2718         FOR_EACH_LOOP_BREAK with break.
2720 2013-11-19  Richard Biener  <rguenther@suse.de>
2722         PR tree-optimization/59164
2723         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
2724         Uncomment assert.
2725         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
2726         whether we can create an epilogue loop to reflect thecases where
2727         we create one.
2729 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
2731         * graphite-sese-to-poly.c: Include expr.h.
2733 2013-11-19  Richard Biener  <rguenther@suse.de>
2735         PR middle-end/58956
2736         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
2737         loads into stmts that may clobber it.
2739 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
2741         * cgraphunit.c (symtab_terminator): New variable.
2742         (queued_nodes): Renamed from first.  Use symtab_terminator as
2743         initializer.
2744         (analyze_functions): Adjust accordingly.
2745         (cgraph_process_new_functions): Return void.
2746         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
2748 2013-11-19  Marek Polacek  <polacek@redhat.com>
2750         * opts.c (common_handle_option): Add -fsanitize=null option.
2751         Turn off -fdelete-null-pointer-checks option when doing the
2752         NULL pointer checking.
2753         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
2754         * tree-pass.h (make_pass_ubsan): Declare.
2755         (make_pass_sanopt): Declare.
2756         * timevar.def (TV_TREE_UBSAN): New timevar.
2757         * passes.def: Add pass_sanopt and pass_ubsan.
2758         * ubsan.h (ubsan_null_ckind): New enum.
2759         (ubsan_mismatch_data): New struct.
2760         (ubsan_expand_null_ifn): Declare.
2761         (ubsan_create_data): Adjust declaration.
2762         (ubsan_type_descriptor): Likewise.
2763         * asan.c: Include "ubsan.h".
2764         (pass_data_sanopt): New pass.
2765         (execute_sanopt): New function.
2766         (gate_sanopt): Likewise.
2767         (make_pass_sanopt): Likewise.
2768         (class pass_sanopt): New class.
2769         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
2770         gimple-iterator.h and cfgloop.h.
2771         (PROB_VERY_UNLIKELY): Define.
2772         (tree_type_map_hash): New function.
2773         (ubsan_type_descriptor): Add new parameter.
2774         Improve type name generation.
2775         (ubsan_create_data): Add new parameter.  Add pointer data into
2776         ubsan structure.
2777         (ubsan_expand_null_ifn): New function.
2778         (instrument_member_call): Likewise.
2779         (instrument_mem_ref): Likewise.
2780         (instrument_null): Likewise.
2781         (ubsan_pass): Likewise.
2782         (gate_ubsan): Likewise.
2783         (make_pass_ubsan): Likewise.
2784         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
2785         (class pass_ubsan): New class.
2786         (pass_data_ubsan): New pass.
2787         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
2788         * internal-fn.c (expand_UBSAN_NULL): New function.
2789         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
2790         even when !flag_toplevel_reorder.
2791         * internal-fn.def (UBSAN_NULL): New.
2793 2013-11-19  Jan Hubicka  <jh@suse.cz>
2795         * cgraph.c (cgraph_create_indirect_edge): Use
2796         get_polymorphic_call_info.
2797         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
2798         maybe_in_construction and maybe_derived_type.
2799         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
2800         (ipa_dummy_polymorphic_call_context): New global var.
2801         (possible_polymorphic_call_targets): Add context paramter.
2802         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
2803         (possible_polymorphic_call_target_p): Likewise.
2804         (get_polymorphic_call_info): New function.
2805         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
2806         (add_type_duplicate): Remove forgotten debug output.
2807         (method_class_type): Add sanity check.
2808         (maybe_record_node): Add FINALP parameter.
2809         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
2810         by info by get_binfo_at_offset.
2811         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
2812         parameters; pass them to record-binfo.
2813         (polymorphic_call_target_d): Add context and FINAL.
2814         (polymorphic_call_target_hasher::hash): Hash context.
2815         (polymorphic_call_target_hasher::equal): Compare context.
2816         (free_polymorphic_call_targets_hash):
2817         (get_class_context): New function.
2818         (contains_type_p): New function.
2819         (get_polymorphic_call_info): New function.
2820         (walk_bases): New function.
2821         (possible_polymorphic_call_targets): Add context parameter; honnor it.
2822         (dump_possible_polymorphic_call_targets): Dump context.
2823         (possible_polymorphic_call_target_p): Add context.
2824         (update_type_inheritance_graph): Update comment.s
2825         (ipa_set_jf_known_type): Assert that compoentn type is known.
2826         (ipa_note_param_call): Do not tamper with offsets.
2827         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
2828         outer type.
2829         (update_indirect_edges_after_inlining): Likewise.
2830         (ipa_write_indirect_edge_info): Stream new fields.
2831         (ipa_read_indirect_edge_info): Stream in new fields.
2833 2013-11-19  Jan Hubicka  <jh@suse.cz>
2835         * tree-pretty-print.c (dump_generic_node): Print class type of
2836         OBJ_TYPE_REF.
2838 2013-11-19  Joey Ye  <joey.ye@arm.com>
2840         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
2841         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
2842         for new option.
2843         * config/arm/arm.c (arm_option_override): By default disable
2844         -marm-pic-data-is-text-relative.
2845         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
2846         (arm_assemble_integer): Likewise.
2847         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
2848         New macro to initialize -marm-pic-data-is-text-relative.
2850 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
2852         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
2853         (address_cost_data): New field.
2854         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
2855         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
2857 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
2859         * config/aarch64/aarch64.md: Remove v8type from all insns.
2861 2013-11-19  Richard Biener  <rguenther@suse.de>
2863         PR tree-optimization/57517
2864         * tree-predcom.c (combinable_refs_p): Verify the combination
2865         is always executed when the refs are.
2867 2013-11-19  Jeff Law  <law@redhat.com>
2869         * tree-ssa-threadupdate.c: Include ssa-iterators.h
2870         (copy_phi_arg_into_existing_phi): New function.
2871         (any_remaining_duplicated_blocks): Likewise.
2872         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
2873         blocks on a jump threading path.
2875         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
2876         thread through a joiner which has the latch edge.
2878 2013-11-19  Jan Hubicka  <jh@suse.cz>
2880         * md.texi (setmem): Document new parameter.
2881         * optabs.c (maybe_gen_insn): Support 9 operands.
2882         * builtins.c (determine_block_size): Add probable_max_size;
2883         support anti-ranges.
2884         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
2885         probable_max_size.
2886         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
2887         emit_block_move, clear_storage_hints, set_storage_via_setmem):
2888         Likewise.
2889         * expr.h (emit_block_move_hints, clear_storage_hints,
2890         set_storage_via_setmem): Update prototype.
2891         * i386.md (setmem, movmem patterns): Add 9th operand.
2892         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
2893         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
2894         argument; pass it to decide_alg.
2896 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2898         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
2899         (n_basic_blocks_for_fn): ...this.
2901         (n_basic_blocks): Eliminate macro as work towards making uses of
2902         cfun be explicit.
2904         * cfgloop.c (init_loops_structure): Update for renaming of
2905         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
2906         * graph.c (draw_cfg_nodes_no_loops): Likewise.
2907         * ipa-utils.c (ipa_merge_profiles): Likewise.
2908         * lto-streamer-in.c (make_new_block): Likewise.
2909         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2910         (dump_function_to_file): Likewise.
2912         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
2913         macro with "n_basic_blocks_for_fn (cfun)".
2914         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
2915         (duplicate_computed_gotos): Likewise.
2916         (reorder_basic_blocks): Likewise.
2917         * bt-load.c (augment_live_range): Likewise.
2918         * cfg.c (expunge_block): Likewise.
2919         (compact_blocks): Likewise.
2920         * cfganal.c (single_pred_before_succ_order): Likewise.
2921         (compute_idf): Likewise.
2922         (flow_dfs_compute_reverse_init): Likewise.
2923         (pre_and_rev_post_order_compute): Likewise.
2924         (pre_and_rev_post_order_compute_fn): Likewise.
2925         (inverted_post_order_compute): Likewise.
2926         (post_order_compute): Likewise.
2927         (print_edge_list): Likewise.
2928         (find_unreachable_blocks): Likewise.
2929         (mark_dfs_back_edges): Likewise.
2930         * cfgcleanup.c (try_optimize_cfg): Likewise.
2931         (try_forward_edges): Likewise.
2932         * cfghooks.c (dump_flow_info): Likewise.
2933         * cfgloop.c (verify_loop_structure): Likewise.
2934         (get_loop_body): Likewise.
2935         (flow_loops_find): Likewise.
2936         * cfgloopmanip.c (add_loop): Likewise.
2937         (remove_path): Likewise.
2938         (find_path): Likewise.
2939         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2940         (rtl_verify_bb_layout): Likewise.
2941         (entry_of_function): Likewise.
2942         (rtl_create_basic_block): Likewise.
2943         * coverage.c (coverage_compute_cfg_checksum): Likewise.
2944         * cprop.c (one_cprop_pass): Likewise.
2945         (is_too_expensive): Likewise.
2946         * df-core.c (df_compute_cfg_image): Likewise.
2947         (df_compact_blocks): Likewise.
2948         (df_worklist_dataflow_doublequeue): Likewise.
2949         * dominance.c (calculate_dominance_info): Likewise.
2950         (calc_dfs_tree): Likewise.
2951         (calc_dfs_tree_nonrec): Likewise.
2952         (init_dom_info): Likewise.
2953         * domwalk.c (cmp_bb_postorder): Likewise.
2954         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2955         (generate_setjmp_warnings): Likewise.
2956         * fwprop.c (build_single_def_use_links): Likewise.
2957         * gcse.c (is_too_expensive): Likewise.
2958         (one_code_hoisting_pass): Likewise.
2959         (one_pre_gcse_pass): Likewise.
2960         * graphite.c (graphite_initialize): Likewise.
2961         * haifa-sched.c (haifa_sched_init): Likewise.
2962         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
2963         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
2964         * ira-build.c (ira_build): Likewise.
2965         * lcm.c (compute_nearerout): Likewise.
2966         (compute_available): Likewise.
2967         (compute_laterin): Likewise.
2968         (compute_antinout_edge): Likewise.
2969         * lra-lives.c (lra_create_live_ranges): Likewise.
2970         * lra.c (has_nonexceptional_receiver): Likewise.
2971         * mcf.c (create_fixup_graph): Likewise.
2972         * profile.c (branch_prob): Likewise.
2973         * reg-stack.c (convert_regs_2): Likewise.
2974         * regrename.c (regrename_analyze): Likewise.
2975         * reload1.c (has_nonexceptional_receiver): Likewise.
2976         * reorg.c (dbr_schedule): Likewise.
2977         * sched-deps.c (sched_deps_init): Likewise.
2978         * sched-ebb.c (schedule_ebbs): Likewise.
2979         * sched-rgn.c (extend_regions): Likewise.
2980         (schedule_insns): Likewise.
2981         (sched_rgn_init): Likewise.
2982         (extend_rgns): Likewise.
2983         (haifa_find_rgns): Likewise.
2984         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
2985         (sel_recompute_toporder): Likewise.
2986         * sel-sched.c (run_selective_scheduling): Likewise.
2987         * store-motion.c (one_store_motion_pass): Likewise.
2988         (remove_reachable_equiv_notes): Likewise.
2989         * tracer.c (tracer): Likewise.
2990         (tail_duplicate): Likewise.
2991         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
2992         (dump_cfg_stats): Likewise.
2993         (gimple_dump_cfg): Likewise.
2994         (create_bb): Likewise.
2995         (build_gimple_cfg): Likewise.
2996         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
2997         * tree-inline.c (optimize_inline_calls): Likewise.
2998         (fold_marked_statements): Likewise.
2999         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
3000         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3001         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3002         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
3003         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3004         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3005         * tree-ssa-pre.c (do_pre): Likewise.
3006         (init_pre): Likewise.
3007         (compute_avail): Likewise.
3008         * tree-ssa-reassoc.c (init_reassoc): Likewise.
3009         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3010         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
3011         (init_worklist): Likewise.
3012         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3013         * var-tracking.c (variable_tracking_main_1): Likewise.
3014         (vt_find_locations): Likewise.
3015         (vt_stack_adjustments): Likewise.
3016         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
3017         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
3019 2013-11-18  Jan Hubicka  <jh@suse.cz>
3021         * profile.c (compute_branch_probabilities): Do not sanity check
3022         run_max.
3024 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
3026         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
3027         GET_MODE_PRECISION.
3028         * fold-const.c (fold_single_bit_test_into_sign_test)
3029         (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
3031 2013-11-18  Teresa Johnson  <tejohnson@google.com>
3033         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
3034         cfglayout after bb reordering.
3035         * passes.def: Move compgotos before bb reordering since it goes into
3036         cfglayout.
3038 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
3040         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
3041         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
3042         static.
3043         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
3044         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
3045         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
3046         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
3047         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
3048         Remove all_lto_gen_passes.
3049         * passes.c (pass_manager::dump_passes): Remove its use.
3050         (pass_manager::register_pass): Likewise.
3051         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
3052         (pass_manager::pass_manager): Don't initialize or use it.
3053         (write_lto): New static function.
3054         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
3055         instead of using all_lto_gen_passes.
3056         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
3057         pass_ipa_lto_finish_out): Delete.
3058         * tree-pass.h (make_pass_ipa_lto_gimple_out,
3059         make_pass_ipa_lto_finish_out): Don't declare.
3061 2013-11-18  Jeff Law  <law@redhat.com>
3063         * tree-ssa-threadupdate.c (redirection_data): Record two
3064         duplicated blocks instead of just one.
3065         (local_info): Explain why we don't create a template for the
3066         second duplicated block in a thread path.
3067         (create_block_for_threading): Accept argument indicating array
3068         index into redirection_data to store its result.
3069         (lookup_redirection_data): Initialize both duplicate blocks.
3070         (ssa_create_duplicates): If a jump threading path needs multiple
3071         blocks duplicated, then duplicate them.
3072         (ssa_fix_duplicate_block_edges): Corresponding changes.
3073         (ssa_fixup_template_block, thread_single_edge):  Likewise.
3075 2013-11-18  Marek Polacek  <polacek@redhat.com>
3077         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
3079 2013-11-18  Andrew Pinski <apinski@cavium.com>
3080             Steve Ellcey  <sellcey@mips.com>
3082         PR target/56552
3083         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
3084         type restriction from equality_operator on conditonal move.
3085         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
3086         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
3088 2013-11-18  Jeff Law  <law@redhat.com>
3090         * tree-ssa-threadupdate.c: Fix file block comment.
3091         Fix minor indention issue.
3093 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
3095         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
3096         ix86_address_subreg_operand.  Move subreg checks to
3097         ix86_validate_address_register.  Move address override check to
3098         ix86_legitimate_address_p.
3099         (ix86_validate_address_register): New function.
3100         (ix86_legitimate_address_p): Call ix86_validate_address_register
3101         to validate base and index registers.  Add address override check
3102         from ix86_decompose_address.
3103         (ix86_decompose_address): Remove.
3105 2013-11-18  Richard Biener  <rguenther@suse.de>
3107         PR tree-optimization/59125
3108         PR tree-optimization/54570
3109         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
3110         is not complete do not treat component-references with offset zero
3111         but different fields as equal.
3112         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
3113         (compute_object_sizes): Apply TLC.  Propagate the constant
3114         results into all uses and fold their stmts.
3115         * passes.def (pass_all_optimizations): Move pass_object_sizes
3116         after the first pass_forwprop and before pass_fre.
3118 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3120         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3121         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3122         (tree_ctz): Remove cast to unsigned type.
3123         * builtins.c (fold_builtin_memory_op): Likewise.
3124         * dwarf2out.c (descr_info_loc): Likewise.
3125         * godump.c (go_output_typedef): Likewise.
3126         * omp-low.c (expand_omp_simd): Likewise.
3127         * stor-layout.c (excess_unit_span): Likewise.
3128         * tree-object-size.c (addr_object_size): Likewise.
3129         * tree-sra.c (analyze_all_variable_accesses): Likewise.
3130         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3131         (simplify_rotate): Likewise.
3132         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
3133         (handle_pointer_plus): Likewise.
3134         * tree-switch-conversion.c (check_range): Likewise.
3135         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
3136         * tsan.c (instrument_builtin_call): Likewise.
3137         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
3138         * trans-mem.c (tm_log_add): Likewise.
3139         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
3140         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
3141         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
3142         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
3144 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3146         * tree.h (host_integerp, tree_low_cst): Delete.
3147         * tree.c (host_integerp, tree_low_cst): Delete.
3149 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3151         * expr.h: Update comments to refer to tree_to_[su]hwi rather
3152         than tree_low_cst.
3153         * fold-const.c (fold_binary_loc): Likewise.
3154         * expr.c (store_constructor): Use tree_to_uhwi rather than
3155         tree_low_cst.
3156         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
3157         * stmt.c (emit_case_dispatch_table): Likewise.
3158         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
3160 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3162         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
3163         config/aarch64/aarch64.c, config/alpha/predicates.md,
3164         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
3165         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
3166         config/mep/mep-pragma.c, config/mips/mips.c,
3167         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
3168         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
3169         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
3170         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
3171         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
3172         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
3173         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
3174         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
3175         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
3176         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
3178 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3180         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
3181         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
3182         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
3183         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
3184         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
3185         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
3186         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
3187         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
3188         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
3189         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
3190         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
3192 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3194         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
3195         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
3197 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3199         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
3200         than host_integerp.
3202 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3204         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
3205         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
3206         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
3207         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
3208         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
3209         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
3210         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
3211         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
3212         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
3213         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
3214         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
3215         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
3216         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
3217         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
3218         tree_fits_uhwi_p throughout.
3220 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3222         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
3223         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
3224         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
3225         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
3226         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
3227         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
3228         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
3229         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
3230         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
3231         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
3232         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
3233         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
3234         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
3235         throughout.
3237 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3239         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
3240         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
3242 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3244         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
3245         flag if it kills its address, not its post-increment.
3247 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
3249         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3250         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3251         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3252         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3253         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3254         (gimple_call_with_bounds_p): New.
3255         (gimple_call_set_with_bounds): New.
3256         (gimple_call_num_nobnd_args): Remove.
3257         (gimple_call_nobnd_arg): Remove.
3258         * tree.h (CALL_WITH_BOUNDS_P): New.
3259         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3261 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
3263         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
3264         (symtab_node_name): Rename to symtab_node::name.
3265         (cgraph_node_asm_name): Remove.
3266         (varpool_node_asm_name): Remove.
3267         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
3268         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
3269         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
3270         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
3271         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
3273 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3275         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
3276         * config/arm/arm.c (arm_cortex_a53_tune): New.
3277         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
3279 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3281         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
3282         (case ${target}): Add bdver4.
3283         * config/i386/bdver3.md: Add bdver4.
3284         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
3285         -march=native recognize bdver4 processors.
3286         * config/i386/i386-c.c (ix86_target_macros_internal): Add
3287         bdver4 def_and_undef
3288         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
3289         (m_BDVER4): New definition.
3290         (m_AMD_MULTIPLE): Includes m_BDVER4.
3291         (processor_target_table): Add bdver4 entry.
3292         (static const char *const cpu_names): Add bdver4 entry.
3293         (software_prefetching_beneficial_p): Add bdver3.
3294         (ix86_option_override_internal): Add bdver4 instruction sets.
3295         (ix86_issue_rate): Add bdver4.
3296         (ix86_adjust_cost): Add bdver4.
3297         (ia32_multipass_dfa_lookahead): Add bdver4.
3298         (enum processor_model): Add M_AMDFAM15H_BDVER4.
3299         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
3300         (has_dispatch): Add bdver4.
3301         * config/i386/i386.h (TARGET_BDVER4): New definition.
3302         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
3303         (enum processor_type): Add PROCESSOR_BDVER4.
3304         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
3305         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
3306         * doc/extend.texi: Add details about bdver4.
3307         * doc/invoke.texi: Add details about bdver4. Add
3308         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
3310 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3312         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
3313         sdmode_stack_slot also in little-endian mode.
3315 2013-11-17  Jan Hubicka  <jh@suse.cz>
3317         * doc/md.texi (setmem, movstr): Update documentation.
3318         * builtins.c (determine_block_size): New function.
3319         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
3320         (expand_builtin_memset_args): Use it and pass it to
3321         set_storage_via_setmem.
3322         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
3323         parameters; update call to expander.
3324         (emit_block_move_hints): Add min_size/max_size parameters.
3325         (clear_storage_hints): Likewise.
3326         (set_storage_via_setmem): Likewise.
3327         (clear_storage): Update.
3328         * expr.h (emit_block_move_hints, clear_storage_hints,
3329         set_storage_via_setmem): Update prototypes.
3330         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
3331         (ix86_expand_movmem, ix86_expand_setmem): Remove.
3332         (ix86_expand_movmem, ix86_expand_setmem): Remove.
3333         * i386.md (movmem, setmem): Pass parameters.
3335 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
3337         PR target/59153
3338         * config/i386/i386.c (ix86_address_subreg_operand): Do not
3339         reject non-integer subregs.
3340         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
3341         Move check for invalid x32 constant addresses ...
3342         (ix86_legitimate_address_p): ... here.
3344 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3346         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
3347         parameter and use it in REG_FRAME_RELATED_EXPR note.
3348         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
3349         parameter.
3350         (rs6000_emit_prologue): Likewise, but for little endian VSX
3351         stores, pass the source register of the store instead.
3353 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
3355         * gimple.h: Reorder prototypes to match .c declaration order, and
3356         remove protyotypes for functions not in gimple.c.
3357         (LABEL): Move to tree-into-ssa.c.
3358         * gimple.c: Remove unused prototypes.
3359         (get_base_address): Move to tree.c.
3360         * tree.c (get_base_address): Relocate from gimple.c.
3361         * builtins.h (validate_gimple_arglist): Add prototype.
3362         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
3363         * cfgexpand.h: New File.
3364         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
3365         * tree.h (build_addr): Move to tree-nested.h.
3366         * tree-nested.h: New File.
3367         (build_addr, lower_nested_functions, insert_field_into_struct): Add
3368         prototypes.
3369         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
3370         * ipa-inline-analysis.c: Include cfgexpand.h.
3371         * cgraphunit.c: Include tree-nested.h.
3372         * omp-low.c: Likewise.
3373         * tree-parloops.c: Likewise.
3374         * gimple-low.h: Likewise.
3375         * tree-profile.h: Likewise.
3376         * expr.c: Include cfgexpand.h.
3377         * tree-affine.c: Likewise.
3378         * tree-ssa.c: Likewise.
3379         * tree-ssa-loop-im.c: Include trans-mem.h.
3380         * tree-ssa-tail-merge.c: Likewise.
3381         * value-prof.c: Include builtins.h and tree-nested.h.
3382         * tree-into-ssa.c (LABEL): Define here.
3384 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
3386         * config/arc/arc.c (arc_predicate_delay_insns): New function.
3387         (pass_data_arc_predicate_delay_insns): New pass_data instance.
3388         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
3389         (make_pass_arc_predicate_delay_insns): New function.
3390         (arc_init): Register pass_arc_predicate_delay_insns if
3391         flag_delayed_branch is active.
3393 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
3395         * config/arc/constraints.md (Rcq): Simplify register number test.
3397 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
3399         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
3401 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3403         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
3404         is null.
3406 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
3408         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
3409         * gimple-pretty-print.c (dump_omp_for): Add case for
3410         GF_OMP_FOR_KIND_CILKSIMD.
3411         * gimple.h (enum gf_mask): Restructure entries to add
3412         GF_OMP_FOR_KIND_CILKSIMD.
3413         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
3414         (gimplify_omp_for): Handle CILK_SIMD.
3415         (gimplify_expr): Add ccase for CILK_SIMD.
3416         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
3417         (build_outer_var_ref): Same.
3418         (check_omp_nesting_restrictions): Same.
3419         (lower_rec_input_clauses): Same.
3420         (lower_lastprivate_clauses): Same.
3421         (expand_omp_for): Same.
3422         (execute_expand_omp): Check flag_enable_cilkplus.
3423         (execute_lower_omp): Same.
3424         (diagnose_sb_0): Handle CILK_SIMD.
3425         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
3426         (setjmp_or_longjmp_p): New.
3427         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
3428         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
3429         * tree.def: Add tree code for CILK_SIMD.
3431 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3433         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
3434         Remove.
3435         (altivec_vperm_<mode>): Revert earlier little endian change.
3436         (*altivec_vperm_<mode>_internal): Remove.
3437         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
3438         (*altivec_vperm_<mode>_uns_internal): Remove.
3439         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
3441 2013-11-15  Jeff Law  <law@redhat.com>
3443         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
3444         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
3445         * gimple-ssa-isolate-paths.c
3446         (find_implicit_erroneous_behaviour): Corresponding changes.
3447         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
3448         (find_explicit_erroneous_behaviour): Likewise.
3450 2013-11-15  Jeff Law  <law@redhat.com>
3452         * ifcvt.c (find_cond_trap): Properly handle case where
3453         trap_bb == else_bb.
3455 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
3457         * configure: Regenerate.
3459 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
3461         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
3462         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
3463         where it is incorrect or missing.
3465 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
3467         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
3468         host_integerp test.
3469         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
3470         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
3471         constant.
3472         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
3473         pair with a TREE_CODE test and TREE_INT_CST_LOW.
3474         * tree-vect-generic.c (expand_vector_divmod): Likewise.
3476 2013-11-15  Richard Biener  <rguenther@suse.de>
3478         PR tree-optimization/50262
3479         * tree-ssa-alias.h (struct pt_solution): Split
3480         vars_contains_global into vars_contains_nonlocal,
3481         vars_contains_escaped and vars_contains_escaped_heap.
3482         * tree-ssa-structalias.c (label_visit): Expand comment.
3483         (handle_lhs_call): Adjust comment.
3484         (set_uids_in_ptset): Set the new flags appropriately.
3485         (pt_solution_set): Adjust.
3486         (pt_solution_set_var): Likewise.
3487         (pt_solution_ior_into): Likewise.
3488         (pt_solution_includes_global): Likewise.
3489         (pt_solutions_intersect_1): Optimize escaped handling.
3490         (compute_points_to_sets): Remove heap variable globalization.
3491         (ipa_escaped_pt): Adjust initializer.
3492         (pass_data_ipa_pta): Do not run TODO_update_ssa.
3493         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
3494         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
3496 2013-11-15  Richard Biener  <rguenther@suse.de>
3498         * tree-loop-distribution.c (tree_loop_distribution): Make sure
3499         to distribute all stores.
3501 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3503         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
3505 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
3507         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
3508         * configure.ac: Determine target_header_dir earlier.
3509         (--with-glibc-version): New configure option.
3510         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
3511         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
3512         * configure: Regenerate.
3513         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
3514         native toolchains for default.
3515         (--with-glibc-version): Document.
3517 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
3519         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
3521 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
3523         * lto-streamer-in.c (input function): Call cgraph_create_node if
3524         cgraph_get_node failed.
3526 2013-11-14   Olivier Hainque  <hainque@adacore.com>
3528         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
3529         defer allocation of DECL_IGNORED_P variables at toplevel unless really
3530         small.  Factorize size threshold computation from the existing one.
3531         (expand_used_vars): Refine comment.
3533 2013-11-14  Cong Hou  <congh@google.com>
3535         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
3536         address field as it can be obtained from dr.  Rename the struct.
3537         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
3538         steps of data references during sort.
3539         (vect_prune_runtime_alias_test_list): Adjust with the change to
3540         struct dr_with_seg_len.
3541         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3542         Adjust with the change to struct dr_with_seg_len.
3544 2013-11-14  Jeff Law  <law@redhat.com>
3546         PR middle-end/59127
3547         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
3548         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
3549         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
3550         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
3551         edges, then ignore it.  If the statement exhibiting erroneous
3552         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
3553         then we can not optimize.
3554         (find_explicit_erroneous_behaviour): Likewise.
3556 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
3558         * gimplify-me.h:  New file.  Add prototypes.
3559         * gimplify.h: Don't include gimple.h.
3560         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
3561         Relocate from gimple.h.
3562         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
3563         is_gimple_sizepos): Move to gimplify.h.
3564         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
3565         (enum gsi_iterator_update): Move to gimple-iterator.h.
3566         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
3567         * gimplify-me.c: New File.
3568         (force_gimple_operand_1, force_gimple_operand,
3569         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
3570         gimple_regimplify_operands): Relocate from gimplify.c.
3571         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
3572         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
3573         gimple_regimplify_operands): Move to gimplify-me.c.
3574         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
3575         from gimple.h.
3576         * Makefile.in (OBJS): Add gimplify-me.o
3577         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
3578         required.
3579         * cfgloopmanip.c: Likewise.
3580         * cgraphunit.c: Likewise.
3581         * cilk-common.c: Likewise.
3582         * fold-const.c: Likewise.
3583         * function.c: Likewise.
3584         * gimple-expr.c: Likewise.
3585         * gimple-fold.c: Likewise.
3586         * gimple-ssa-strength-reduction.c: Likewise.
3587         * gimple.c: Likewise.
3588         * graphite-clast-to-gimple.c: Likewise.
3589         * graphite-sese-to-poly.c: Likewise.
3590         * ipa-prop.c: Likewise.
3591         * ipa-split.c: Likewise.
3592         * ipa.c: Likewise.
3593         * langhooks.c: Likewise.
3594         * omp-low.c: Likewise.
3595         * sese.c: Likewise.
3596         * stor-layout.c: Likewise.
3597         * targhooks.c: Likewise.
3598         * trans-mem.c: Likewise.
3599         * tree-affine.c: Likewise.
3600         * tree-cfg.c: Likewise.
3601         * tree-cfgcleanup.c: Likewise.
3602         * tree-complex.c: Likewise.
3603         * tree-if-conv.c: Likewise.
3604         * tree-inline.c: Likewise.
3605         * tree-loop-distribution.c: Likewise.
3606         * tree-nested.c: Likewise.
3607         * tree-parloops.c: Likewise.
3608         * tree-predcom.c: Likewise.
3609         * tree-profile.c: Likewise.
3610         * tree-scalar-evolution.c: Likewise.
3611         * tree-sra.c: Likewise.
3612         * tree-ssa-address.c: Likewise.
3613         * tree-ssa-ccp.c: Likewise.
3614         * tree-ssa-dce.c: Likewise.
3615         * tree-ssa-forwprop.c: Likewise.
3616         * tree-ssa-ifcombine.c: Likewise.
3617         * tree-ssa-loop-im.c: Likewise.
3618         * tree-ssa-loop-ivopts.c: Likewise.
3619         * tree-ssa-loop-manip.c: Likewise.
3620         * tree-ssa-loop-niter.c: Likewise.
3621         * tree-ssa-loop-prefetch.c: Likewise.
3622         * tree-ssa-loop-unswitch.c: Likewise.
3623         * tree-ssa-math-opts.c: Likewise.
3624         * tree-ssa-phiopt.c: Likewise.
3625         * tree-ssa-phiprop.c: Likewise.
3626         * tree-ssa-pre.c: Likewise.
3627         * tree-ssa-propagate.c: Likewise.
3628         * tree-ssa-reassoc.c: Likewise.
3629         * tree-ssa-sccvn.c: Likewise.
3630         * tree-ssa-strlen.c: Likewise.
3631         * tree-ssa.c: Likewise.
3632         * tree-switch-conversion.c: Likewise.
3633         * tree-tailcall.c: Likewise.
3634         * tree-vect-data-refs.c: Likewise.
3635         * tree-vect-generic.c: Likewise.
3636         * tree-vect-loop-manip.c: Likewise.
3637         * tree-vect-loop.c: Likewise.
3638         * tree-vect-patterns.c: Likewise.
3639         * tree-vect-stmts.c: Likewise.
3640         * tree.c: Likewise.
3641         * tsan.c: Likewise.
3642         * value-prof.c: Likewise.
3643         * config/aarch64/aarch64.c: Likewise.
3644         * config/alpha/alpha.c: Likewise.
3645         * config/darwin.c: Likewise.
3646         * config/i386/i386.c: Likewise.
3647         * config/ia64/ia64.c: Likewise.
3648         * config/mep/mep.c: Likewise.
3649         * config/mips/mips.c: Likewise.
3650         * config/rs6000/rs6000.c: Likewise.
3651         * config/s390/s390.c: Likewise.
3652         * config/sh/sh.c: Likewise.
3653         * config/sparc/sparc.c: Likewise.
3654         * config/spu/spu.c: Likewise.
3655         * config/stormy16/stormy16.c: Likewise.
3656         * config/tilegx/tilegx.c: Likewise.
3657         * config/tilepro/tilepro.c: Likewise.
3658         * config/xtensa/xtensa.c: Likewise.
3660 2013-11-14  Diego Novillo  <dnovillo@google.com>
3662         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
3664 2013-11-14  Diego Novillo  <dnovillo@google.com>
3666         * tree.h: Include fold-const.h.
3667         (aggregate_value_p): Moved to function.h.
3668         (alloca_call_p): Moved to calls.h.
3669         (allocate_struct_function): Moved to function.h.
3670         (apply_tm_attr): Moved to attribs.h.
3671         (array_at_struct_end_p): Moved to expr.h.
3672         (array_ref_element_size): Moved to tree-dfa.h.
3673         (array_ref_low_bound): Moved to tree-dfa.h.
3674         (array_ref_up_bound): Moved to tree.h.
3675         (assemble_alias): Moved to cgraph.h.
3676         (bit_from_pos): Moved to stor-layout.h.
3677         (build_addr): Moved to tree-nested.h.
3678         (build_duplicate_type): Moved to tree-inline.h.
3679         (build_fold_addr_expr): Moved to fold-const.h.
3680         (build_fold_addr_expr_with_type): Moved to fold-const.h.
3681         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
3682         (build_fold_indirect_ref): Moved to fold-const.h.
3683         (build_fold_indirect_ref_loc): Moved to fold-const.h.
3684         (build_personality_function): Moved to tree.h.
3685         (build_range_check): Moved to fold-const.h.
3686         (build_simple_mem_ref): Moved to fold-const.h.
3687         (build_simple_mem_ref_loc): Moved to fold-const.h.
3688         (build_tm_abort_call): Moved to trans-mem.h.
3689         (byte_from_pos): Moved to stor-layout.h.
3690         (call_expr_flags): Moved to calls.h.
3691         (can_move_by_pieces): Moved to expr.h.
3692         (categorize_ctor_elements): Moved to expr.h.
3693         (change_decl_assembler_name): Moved to gcc-symtab.h.
3694         (combine_comparisons): Moved to fold-const.h.
3695         (complete_ctor_at_level_p): Moved to tree.h.
3696         (component_ref_field_offset): Moved to tree-dfa.h.
3697         (compute_builtin_object_size): Moved to tree-object-size.h.
3698         (compute_record_mode): Moved to stor-layout.h.
3699         (constant_boolean_node): Moved to fold-const.h.
3700         (constructor_static_from_elts_p): Moved to varasm.h.
3701         (cxx11_attribute_p): Moved to attribs.h.
3702         (debug_body): Moved to print-tree.h.
3703         (debug_find_tree): Moved to tree-inline.h.
3704         (debug_fold_checksum): Moved to fold-const.h.
3705         (debug_head): Moved to print-tree.h.
3706         (debug_head): Moved to print-tree.h.
3707         (debug_raw): Moved to print-tree.h.
3708         (debug_tree): Moved to print-tree.h.
3709         (debug_vec_tree): Moved to print-tree.h.
3710         (debug_verbose): Moved to print-tree.h.
3711         (debug_verbose): Moved to print-tree.h.
3712         (decl_attributes): Moved to attribs.h.
3713         (decl_binds_to_current_def_p): Moved to varasm.h.
3714         (decl_default_tls_model): Moved to varasm.h.
3715         (decl_replaceable_p): Moved to varasm.h.
3716         (div_if_zero_remainder): Moved to fold-const.h.
3717         (double_int mem_ref_offset): Moved to fold-const.h.
3718         (dump_addr): Moved to print-tree.h.
3719         (element_precision): Moved to machmode.h.
3720         (expand_dummy_function_end): Moved to function.h.
3721         (expand_function_end): Moved to function.h.
3722         (expand_function_start): Moved to function.h.
3723         (expand_label): Moved to stmt.h.
3724         (expr_first): Moved to tree-iterator.h.
3725         (expr_last): Moved to tree-iterator.h.
3726         (finalize_size_functions): Moved to stor-layout.h.
3727         (finish_builtin_struct): Moved to stor-layout.h.
3728         (finish_record_layout): Moved to stor-layout.h.
3729         (fixup_signed_type): Moved to stor-layout.h.
3730         (fixup_unsigned_type): Moved to stor-layout.h.
3731         (flags_from_decl_or_type): Moved to calls.h.
3732         (fold): Moved to fold-const.h.
3733         (fold_abs_const): Moved to fold-const.h.
3734         (fold_binary): Moved to fold-const.h.
3735         (fold_binary_loc): Moved to fold-const.h.
3736         (fold_binary_to_constant): Moved to fold-const.h.
3737         (fold_build1): Moved to fold-const.h.
3738         (fold_build1_initializer_loc): Moved to fold-const.h.
3739         (fold_build1_loc): Moved to fold-const.h.
3740         (fold_build1_stat_loc): Moved to fold-const.h.
3741         (fold_build2): Moved to fold-const.h.
3742         (fold_build2_initializer_loc): Moved to fold-const.h.
3743         (fold_build2_loc): Moved to fold-const.h.
3744         (fold_build2_stat_loc): Moved to fold-const.h.
3745         (fold_build3): Moved to fold-const.h.
3746         (fold_build3_loc): Moved to fold-const.h.
3747         (fold_build3_stat_loc): Moved to fold-const.h.
3748         (fold_build_call_array): Moved to fold-const.h.
3749         (fold_build_call_array_initializer): Moved to fold-const.h.
3750         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
3751         (fold_build_call_array_loc): Moved to fold-const.h.
3752         (fold_build_cleanup_point_expr): Moved to fold-const.h.
3753         (fold_convert): Moved to fold-const.h.
3754         (fold_convert_loc): Moved to fold-const.h.
3755         (fold_convertible_p): Moved to fold-const.h.
3756         (fold_defer_overflow_warnings): Moved to fold-const.h.
3757         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
3758         (fold_fma): Moved to fold-const.h.
3759         (fold_ignored_result): Moved to fold-const.h.
3760         (fold_indirect_ref): Moved to fold-const.h.
3761         (fold_indirect_ref_1): Moved to fold-const.h.
3762         (fold_indirect_ref_loc): Moved to fold-const.h.
3763         (fold_read_from_constant_string): Moved to fold-const.h.
3764         (fold_real_zero_addition_p): Moved to fold-const.h.
3765         (fold_single_bit_test): Moved to fold-const.h.
3766         (fold_strip_sign_ops): Moved to fold-const.h.
3767         (fold_ternary): Moved to fold-const.h.
3768         (fold_ternary_loc): Moved to fold-const.h.
3769         (fold_unary): Moved to tree-data-ref.h.
3770         (fold_unary_ignore_overflow): Moved to fold-const.h.
3771         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
3772         (fold_unary_loc): Moved to fold-const.h.
3773         (fold_unary_to_constant): Moved to fold-const.h.
3774         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
3775         (fold_undefer_overflow_warnings): Moved to fold-const.h.
3776         (folding_initializer): Moved to fold-const.h.
3777         (free_temp_slots): Moved to function.h.
3778         (generate_setjmp_warnings): Moved to function.h.
3779         (get_attribute_name): Moved to attribs.h.
3780         (get_identifier): Moved to stringpool.h.
3781         (get_identifier_with_length): Moved to stringpool.h.
3782         (get_inner_reference): Moved to tree.h.
3783         (gimple_alloca_call_p): Moved to calls.h.
3784         (gimplify_parameters): Moved to function.h.
3785         (highest_pow2_factor): Moved to expr.h.
3786         (indent_to): Moved to print-tree.h.
3787         (init_attributes): Moved to attribs.h.
3788         (init_dummy_function_start): Moved to function.h.
3789         (init_function_start): Moved to function.h.
3790         (init_inline_once): Moved to tree-inline.h.
3791         (init_object_sizes): Moved to tree-object-size.h.
3792         (init_temp_slots): Moved to function.h.
3793         (init_tree_optimization_optabs): Moved to optabs.h.
3794         (initialize_sizetypes): Moved to stor-layout.h.
3795         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
3796         (initializer_constant_valid_p): Moved to varasm.h.
3797         (int_const_binop): Moved to fold-const.h.
3798         (internal_reference_types): Moved to stor-layout.h.
3799         (invert_tree_comparison): Moved to fold-const.h.
3800         (invert_truthvalue): Moved to fold-const.h.
3801         (invert_truthvalue_loc): Moved to fold-const.h.
3802         (is_tm_ending_fndecl): Moved to trans-mem.h.
3803         (is_tm_may_cancel_outer): Moved to trans-mem.h.
3804         (is_tm_pure): Moved to trans-mem.h.
3805         (is_tm_safe): Moved to trans-mem.h.
3806         (layout_decl): Moved to stor-layout.h.
3807         (layout_type): Moved to stor-layout.h.
3808         (lookup_attribute_spec): Moved to attribs.h.
3809         (make_accum_type): Moved to stor-layout.h.
3810         (make_decl_one_only): Moved to varasm.h.
3811         (make_decl_rtl): Moved to tree.h.
3812         (make_decl_rtl_for_debug): Moved to varasm.h.
3813         (make_fract_type): Moved to stor-layout.h.
3814         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
3815         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
3816         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
3817         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
3818         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
3819         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
3820         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
3821         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
3822         (make_range): Moved to fold-const.h.
3823         (make_range_step): Moved to fold-const.h.
3824         (make_sat_signed_accum_type): Moved to stor-layout.h.
3825         (make_sat_signed_fract_type): Moved to stor-layout.h.
3826         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
3827         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
3828         (make_signed_accum_type): Moved to stor-layout.h.
3829         (make_signed_fract_type): Moved to stor-layout.h.
3830         (make_signed_type): Moved to stor-layout.h.
3831         (make_unsigned_accum_type): Moved to stor-layout.h.
3832         (make_unsigned_fract_type): Moved to stor-layout.h.
3833         (make_unsigned_type): Moved to stor-layout.h.
3834         (mark_decl_referenced): Moved to varasm.h.
3835         (mark_referenced): Moved to varasm.h.
3836         (may_negate_without_overflow_p): Moved to fold-const.h.
3837         (maybe_get_identifier): Moved to stringpool.h.
3838         (merge_ranges): Moved to fold-const.h.
3839         (merge_weak): Moved to varasm.h.
3840         (mode_for_size_tree): Moved to stor-layout.h.
3841         (multiple_of_p): Moved to fold-const.h.
3842         (must_pass_in_stack_var_size): Moved to calls.h.
3843         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
3844         (native_encode_expr): Moved to fold-const.h.
3845         (native_interpret_expr): Moved to fold-const.h.
3846         (non_lvalue): Moved to fold-const.h.
3847         (non_lvalue_loc): Moved to fold-const.h.
3848         (normalize_offset): Moved to stor-layout.h.
3849         (normalize_rli): Moved to stor-layout.h.
3850         (notice_global_symbol): Moved to varasm.h.
3851         (omit_one_operand): Moved to fold-const.h.
3852         (omit_one_operand_loc): Moved to fold-const.h.
3853         (omit_two_operands): Moved to fold-const.h.
3854         (omit_two_operands_loc): Moved to fold-const.h.
3855         (operand_equal_p): Moved to tree-data-ref.h.
3856         (parse_input_constraint): Moved to stmt.h.
3857         (parse_output_constraint): Moved to stmt.h.
3858         (place_field): Moved to stor-layout.h.
3859         (pop_function_context): Moved to function.h.
3860         (pop_temp_slots): Moved to function.h.
3861         (pos_from_bit): Moved to stor-layout.h.
3862         (preserve_temp_slots): Moved to function.h.
3863         (print_node): Moved to print-tree.h.
3864         (print_node_brief): Moved to print-tree.h.
3865         (print_rtl): Moved to rtl.h.
3866         (process_pending_assemble_externals): Moved to varasm.h.
3867         (ptr_difference_const): Moved to fold-const.h.
3868         (push_function_context): Moved to function.h.
3869         (push_struct_function): Moved to function.h.
3870         (push_temp_slots): Moved to function.h.
3871         (record_tm_replacement): Moved to trans-mem.h.
3872         (relayout_decl): Moved to stor-layout.h.
3873         (resolve_asm_operand_names): Moved to stmt.h.
3874         (resolve_unique_section): Moved to varasm.h.
3875         (rli_size_so_far): Moved to stor-layout.h.
3876         (rli_size_unit_so_far): Moved to stor-layout.h.
3877         (round_down): Moved to fold-const.h.
3878         (round_down_loc): Moved to fold-const.h.
3879         (round_up): Moved to fold-const.h.
3880         (round_up_loc): Moved to fold-const.h.
3881         (set_decl_incoming_rtl): Moved to emit-rtl.h.
3882         (set_decl_rtl): Moved to tree.h.
3883         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
3884         (set_user_assembler_name): Moved to varasm.h.
3885         (setjmp_call_p): Moved to calls.h.
3886         (size_binop): Moved to fold-const.h.
3887         (size_binop_loc): Moved to fold-const.h.
3888         (size_diffop): Moved to fold-const.h.
3889         (size_diffop_loc): Moved to fold-const.h.
3890         (size_int_kind): Moved to fold-const.h.
3891         (stack_protect_epilogue): Moved to function.h.
3892         (start_record_layout): Moved to stor-layout.h.
3893         (supports_one_only): Moved to varasm.h.
3894         (swap_tree_comparison): Moved to fold-const.h.
3895         (tm_malloc_replacement): Moved to trans-mem.h.
3896         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
3897         (tree build_invariant_address): Moved to fold-const.h.
3898         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
3899         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
3900         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
3901         (tree_expr_nonnegative_p): Moved to fold-const.h.
3902         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
3903         (tree_output_constant_def): Moved to varasm.h.
3904         (tree_overlaps_hard_reg_set): Moved to stmt.h.
3905         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
3906         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
3907         (tree_swap_operands_p): Moved to fold-const.h.
3908         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
3909         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
3910         (update_alignment_for_field): Moved to stor-layout.h.
3911         (use_register_for_decl): Moved to function.h.
3912         (variable_size): Moved to rtl.h.
3913         (vector_type_mode): Moved to stor-layout.h.
3914         * cgraph.h: Corresponding changes.
3915         * emit-rtl.h: Corresponding changes.
3916         * expr.h: Corresponding changes.
3917         * function.h: Corresponding changes.
3918         * optabs.h: Corresponding changes.
3919         * trans-mem.h: Corresponding changes.
3920         Protect against multiple inclusion.
3921         * tree-inline.h: Corresponding changes.
3922         * tree-iterator.h: Corresponding changes.
3923         * tree-dfa.h: Include expr.h.
3924         * tree-ssanames.h: Include stringpool.h.
3925         * attribs.h: New file.
3926         * calls.h: New file.
3927         * fold-const.h: New file.
3928         * gcc-symtab.h: New file.
3929         * print-rtl.h: New file.
3930         * print-tree.h: New file.
3931         * stmt.h: New file.
3932         * stor-layout.h: New file.
3933         * strinpool.h: New file.
3934         * tree-nested.h: New file
3935         * tree-object-size.h: New file.
3936         * varasm.h: New file.
3938 2013-11-14  Diego Novillo  <dnovillo@google.com>
3940         * alias.c: Include varasm.h.
3941         Include expr.h.
3942         * asan.c: Include calls.h.
3943         Include stor-layout.h.
3944         Include varasm.h.
3945         * attribs.c: Include stringpool.h.
3946         Include attribs.h.
3947         Include stor-layout.h.
3948         * builtins.c: Include stringpool.h.
3949         Include stor-layout.h.
3950         Include calls.h.
3951         Include varasm.h.
3952         Include tree-object-size.h.
3953         * calls.c: Include stor-layout.h.
3954         Include varasm.h.
3955         Include stringpool.h.
3956         Include attribs.h.
3957         * cfgexpand.c: Include stringpool.h.
3958         Include varasm.h.
3959         Include stor-layout.h.
3960         Include stmt.h.
3961         Include print-tree.h.
3962         * cgraph.c: Include varasm.h.
3963         Include calls.h.
3964         Include print-tree.h.
3965         * cgraphclones.c: Include stringpool.h.
3966         Include function.h.
3967         Include emit-rtl.h.
3968         Move inclusion of rtl.h earlier in the file.
3969         * cgraphunit.c: Include varasm.h.
3970         Include stor-layout.h.
3971         Include stringpool.h.
3972         * cilk-common.c: Include stringpool.h.
3973         Include stor-layout.h.
3974         * combine.c: Include stor-layout.h.
3975         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
3976         Include stringpool.h.
3977         Include calls.h.
3978         * config/aarch64/aarch64.c: Include stringpool.h.
3979         Include stor-layout.h.
3980         Include calls.h.
3981         Include varasm.h.
3982         * config/alpha/alpha.c: Include stor-layout.h.
3983         Include calls.h.
3984         Include varasm.h.
3985         * config/arc/arc.c: Include varasm.h.
3986         Include stor-layout.h.
3987         Include stringpool.h.
3988         Include calls.h.
3989         * config/arm/arm.c: Include stringpool.h.
3990         Include stor-layout.h.
3991         Include calls.h.
3992         Include varasm.h.
3993         * config/avr/avr-c.c: Include stor-layout.h.
3994         * config/avr/avr-log.c: Include print-tree.h.
3995         * config/avr/avr.c: Include print-tree.h.
3996         Include calls.h.
3997         Include stor-layout.h.
3998         Include stringpool.h.
3999         * config/bfin/bfin.c: Include varasm.h.
4000         Include calls.h.
4001         * config/c6x/c6x.c: Include stor-layout.h.
4002         Include varasm.h.
4003         Include calls.h.
4004         Include stringpool.h.
4005         * config/cr16/cr16.c: Include stor-layout.h.
4006         Include calls.h.
4007         * config/cris/cris.c: Include varasm.h.
4008         Include stor-layout.h.
4009         Include calls.h.
4010         Include stmt.h.
4011         * config/darwin.c: Include stringpool.h.
4012         Include varasm.h.
4013         Include stor-layout.h.
4014         * config/epiphany/epiphany.c: Include stor-layout.h.
4015         Include varasm.h.
4016         Include calls.h.
4017         Include stringpool.h.
4018         * config/fr30/fr30.c: Include stor-layout.h.
4019         Include varasm.h.
4020         * config/frv/frv.c: Include varasm.h.
4021         Include stor-layout.h.
4022         Include stringpool.h.
4023         * config/h8300/h8300.c: Include stor-layout.h.
4024         Include varasm.h.
4025         Include calls.h.
4026         Include stringpool.h.
4027         * config/i386/i386.c: Include stringpool.h.
4028         Include attribs.h.
4029         Include calls.h.
4030         Include stor-layout.h.
4031         Include varasm.h.
4032         * config/i386/winnt-cxx.c: Include stringpool.h.
4033         Include attribs.h.
4034         * config/i386/winnt.c: Include stringpool.h.
4035         Include varasm.h.
4036         * config/ia64/ia64-c.c: Include stringpool.h.
4037         * config/ia64/ia64.c: Include stringpool.h.
4038         Include stor-layout.h.
4039         Include calls.h.
4040         Include varasm.h.
4041         * config/iq2000/iq2000.c: Include stor-layout.h.
4042         Include calls.h.
4043         Include varasm.h.
4044         * config/lm32/lm32.c: Include calls.h.
4045         * config/m32c/m32c.c: Include stor-layout.h.
4046         Include varasm.h.
4047         Include calls.h.
4048         * config/m32r/m32r.c: Include stor-layout.h.
4049         Include varasm.h.
4050         Include stringpool.h.
4051         Include calls.h.
4052         * config/m68k/m68k.c: Include calls.h.
4053         Include stor-layout.h.
4054         Include varasm.h.
4055         * config/mcore/mcore.c: Include stor-layout.h.
4056         Include varasm.h.
4057         Include stringpool.h.
4058         Include calls.h.
4059         * config/mep/mep.c: Include varasm.h.
4060         Include calls.h.
4061         Include stringpool.h.
4062         Include stor-layout.h.
4063         * config/microblaze/microblaze.c: Include varasm.h.
4064         Include stor-layout.h.
4065         Include calls.h.
4066         * config/mips/mips.c: Include varasm.h.
4067         Include stringpool.h.
4068         Include stor-layout.h.
4069         Include calls.h.
4070         * config/mmix/mmix.c: Include varasm.h.
4071         Include stor-layout.h.
4072         Include calls.h.
4073         * config/mn10300/mn10300.c: Include stor-layout.h.
4074         Include varasm.h.
4075         Include calls.h.
4076         * config/moxie/moxie.c: Include stor-layout.h.
4077         Include varasm.h.
4078         Include calls.h.
4079         * config/msp430/msp430.c: Include stor-layout.h.
4080         Include calls.h.
4081         * config/nds32/nds32.c: Include stor-layout.h.
4082         Include varasm.h.
4083         Include calls.h.
4084         * config/pa/pa.c: Include stor-layout.h.
4085         Include stringpool.h.
4086         Include varasm.h.
4087         Include calls.h.
4088         * config/pdp11/pdp11.c: Include stor-layout.h.
4089         Include varasm.h.
4090         Include calls.h.
4091         * config/picochip/picochip.c: Include calls.h.
4092         Include stor-layout.h.
4093         Include stringpool.h.
4094         Include varasm.h.
4095         * config/rl78/rl78.c: Include varasm.h.
4096         Include stor-layout.h.
4097         Include calls.h.
4098         * config/rs6000/rs6000-c.c: Include stor-layout.h.
4099         Include stringpool.h.
4100         * config/rs6000/rs6000.c: Include stringpool.h.
4101         Include stor-layout.h.
4102         Include calls.h.
4103         Include print-tree.h.
4104         Include varasm.h.
4105         * config/rx/rx.c: Include varasm.h.
4106         Include stor-layout.h.
4107         Include calls.h.
4108         * config/s390/s390.c: Include print-tree.h.
4109         Include stringpool.h.
4110         Include stor-layout.h.
4111         Include varasm.h.
4112         Include calls.h.
4113         * config/score/score.c: Include stringpool.h.
4114         Include calls.h.
4115         Include varasm.h.
4116         Include stor-layout.h.
4117         * config/sh/sh-c.c: Include stringpool.h.
4118         Include attribs.h.h.
4119         * config/sh/sh.c: Include stringpool.h.
4120         Include stor-layout.h.
4121         Include calls.h.
4122         Include varasm.h.
4123         * config/sol2-c.c: Include stringpool.h.
4124         Include attribs.h.
4125         * config/sol2-cxx.c: Include stringpool.h.
4126         * config/sol2.c: Include stringpool.h.
4127         Include varasm.h.
4128         * config/sparc/sparc.c: Include stringpool.h.
4129         Include stor-layout.h.
4130         Include calls.h.
4131         Include varasm.h.
4132         * config/spu/spu-c.c: Include stringpool.h.
4133         * config/spu/spu.c: Include stringpool.h.
4134         Include stor-layout.h.
4135         Include calls.h.
4136         Include varasm.h.
4137         * config/stormy16/stormy16.c: Include stringpool.h.
4138         Include stor-layout.h.
4139         Include varasm.h.
4140         Include calls.h.
4141         * config/tilegx/tilegx.c: Include stringpool.h.
4142         Include stor-layout.h.
4143         Include varasm.h.
4144         Include calls.h.
4145         * config/tilepro/tilepro.c: Include stringpool.h.
4146         Include stor-layout.h.
4147         Include varasm.h.
4148         Include calls.h.
4149         * config/v850/v850-c.c: Include stringpool.h.
4150         Include attribs.h.
4151         * config/v850/v850.c: Include stringpool.h.
4152         Include stor-layout.h.
4153         Include varasm.h.
4154         Include calls.h.
4155         * config/vax/vax.c: Include calls.h.
4156         Include varasm.h.
4157         * config/vms/vms.c: Include stringpool.h.
4158         * config/vxworks.c: Include stringpool.h.
4159         * config/xtensa/xtensa.c: Include stringpool.h.
4160         Include stor-layout.h.
4161         Include calls.h.
4162         Include varasm.h.
4163         * convert.c: Include stor-layout.h.
4164         * coverage.c: Include stringpool.h.
4165         Include stor-layout.h.
4166         * dbxout.c: Include varasm.h.
4167         Include stor-layout.h.
4168         * dojump.c: Include stor-layout.h.
4169         * dse.c: Include stor-layout.h.
4170         * dwarf2asm.c: Include stringpool.h.
4171         Include varasm.h.
4172         * dwarf2cfi.c: Include stor-layout.h.
4173         * dwarf2out.c: Include rtl.h.
4174         Include stringpool.h.
4175         Include stor-layout.h.
4176         Include varasm.h.
4177         Include function.h.
4178         Include emit-rtl.h.
4179         Move inclusion of rtl.h earlier in the file.
4180         * emit-rtl.c: Include varasm.h.
4181         * except.c: Include stringpool.h.
4182         Include stor-layout.h.
4183         * explow.c: Include stor-layout.h.
4184         * expmed.c: Include stor-layout.h.
4185         * expr.c: Include stringpool.h.
4186         Include stor-layout.h.
4187         Include attribs.h.
4188         Include varasm.h.
4189         * final.c: Include varasm.h.
4190         * fold-const.c: Include stor-layout.h.
4191         Include calls.h.
4192         Include tree-iterator.h.
4193         * function.c: Include stor-layout.h.
4194         Include varasm.h.
4195         Include stringpool.h.
4196         * genattrtab.c (write_header): Emit includes for varasm.h,
4197         stor-layout.h and calls.h.
4198         * genautomata.c (main): Likewise.
4199         * genemit.c: Likewise.
4200         * genopinit.c: Likewise.
4201         * genoutput.c (output_prologue): Likewise.
4202         * genpeep.c: Likewise.
4203         * genpreds.c (write_insn_preds_c): Likewise.
4204         * gengtype.c (open_base_files): Add stringpool.h.
4205         * gimple-expr.c: Include stringpool.h.
4206         Include stor-layout.h.
4207         * gimple-fold.c: Include stringpool.h.
4208         Include expr.h.
4209         Include stmt.h.
4210         Include stor-layout.h.
4211         * gimple-low.c: Include tree-nested.h.
4212         Include calls.h.
4213         * gimple-pretty-print.c: Include stringpool.h.
4214         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
4215         Include expr.h.
4216         * gimple-walk.c: Include stmt.h.
4217         * gimple.c: Include calls.h.
4218         Include stmt.h.
4219         Include stor-layout.h.
4220         * gimplify.c: Include stringpool.h.
4221         Include calls.h.
4222         Include varasm.h.
4223         Include stor-layout.h.
4224         Include stmt.h.
4225         Include print-tree.h.
4226         Include expr.h.
4227         * gimplify-me.c: Include stmt.h
4228         Include stor-layout.h
4229         * internal-fn.c: Include stor-layout.h.
4230         * ipa-devirt.c: Include print-tree.h.
4231         Include calls.h.
4232         * ipa-inline-analysis.c: Include stor-layout.h.
4233         Include stringpool.h.
4234         Include print-tree.h.
4235         * ipa-inline.c: Include trans-mem.h.
4236         Include calls.h.
4237         * ipa-prop.c: Include expr.h.
4238         Include stor-layout.h.
4239         Include print-tree.h.
4240         * ipa-pure-const.c: Include print-tree.h.
4241         Include calls.h.
4242         * ipa-reference.c: Include calls.h.
4243         * ipa-split.c: Include stringpool.h.
4244         Include expr.h.
4245         Include calls.h.
4246         * ipa.c: Include calls.h.
4247         Include stringpool.h.
4248         * langhooks.c: Include stringpool.h.
4249         Include attribs.h.
4250         * lto-cgraph.c: Include stringpool.h.
4251         * lto-streamer-in.c: Include stringpool.h.
4252         * lto-streamer-out.c: Include stor-layout.h.
4253         Include stringpool.h.
4254         * omp-low.c: Include stringpool.h.
4255         Include stor-layout.h.
4256         Include expr.h.
4257         * optabs.c: Include stor-layout.h.
4258         Include stringpool.h.
4259         Include varasm.h.
4260         * passes.c: Include varasm.h.
4261         * predict.c: Include calls.h.
4262         * print-rtl.c: Include print-tree.h.
4263         * print-tree.c: Include varasm.h.
4264         Include print-rtl.h.
4265         Include stor-layout.h.
4266         * realmpfr.c: Include stor-layout.h.
4267         * reg-stack.c: Include varasm.h.
4268         * sdbout.c: Include varasm.h.
4269         Include stor-layout.h.
4270         * simplify-rtx.c: Include varasm.h.
4271         * stmt.c: Include varasm.h.
4272         Include stor-layout.h.
4273         * stor-layout.c: Include stor-layout.h.
4274         Include stringpool.h.
4275         Include varasm.h.
4276         Include print-tree.h.
4277         * symtab.c: Include rtl.h.
4278         Include print-tree.h.
4279         Include varasm.h.
4280         Include function.h.
4281         Include emit-rtl.h.
4282         * targhooks.c: Include stor-layout.h.
4283         Include varasm.h.
4284         * toplev.c: Include varasm.h.
4285         Include tree-inline.h.
4286         * trans-mem.c: Include calls.h.
4287         Include function.h.
4288         Include rtl.h.
4289         Include emit-rtl.h.
4290         * tree-affine.c: Include expr.h.
4291         * tree-browser.c: Include print-tree.h.
4292         * tree-call-cdce.c: Include stor-layout.h.
4293         * tree-cfg.c: Include trans-mem.h.
4294         Include stor-layout.h.
4295         Include print-tree.h.
4296         * tree-complex.c: Include stor-layout.h.
4297         * tree-data-ref.c: Include expr.h.
4298         * tree-dfa.c: Include stor-layout.h.
4299         * tree-eh.c: Include expr.h.
4300         Include calls.h.
4301         * tree-emutls.c: Include stor-layout.h.
4302         Include varasm.h.
4303         * tree-if-conv.c: Include stor-layout.h.
4304         * tree-inline.c: Include stor-layout.h.
4305         Include calls.h.
4306         * tree-loop-distribution.c: Include stor-layout.h.
4307         * tree-nested.c: Include stringpool.h.
4308         Include stor-layout.h.
4309         * tree-object-size.c: Include tree-object-size.h.
4310         * tree-outof-ssa.c: Include stor-layout.h.
4311         * tree-parloops.c: Include stor-layout.h.
4312         Include tree-nested.h.
4313         * tree-pretty-print.c: Include stor-layout.h.
4314         Include expr.h.
4315         * tree-profile.c: Include varasm.h.
4316         Include tree-nested.h.
4317         * tree-scalar-evolution.c: Include expr.h.
4318         * tree-sra.c: Include stor-layout.h.
4319         * tree-ssa-address.c: Include stor-layout.h.
4320         * tree-ssa-ccp.c: Include stor-layout.h.
4321         * tree-ssa-dce.c: Include calls.h.
4322         * tree-ssa-dom.c: Include stor-layout.h.
4323         * tree-ssa-forwprop.c: Include stor-layout.h.
4324         * tree-ssa-ifcombine.c: Include stor-layout.h.
4325         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
4326         * tree-ssa-loop-niter.c: Include calls.h.
4327         Include expr.h.
4328         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
4329         * tree-ssa-math-opts.c: Include stor-layout.h.
4330         * tree-ssa-operands.c: Include stmt.h.
4331         Include print-tree.h.
4332         * tree-ssa-phiopt.c: Include stor-layout.h.
4333         * tree-ssa-reassoc.c: Include stor-layout.h.
4334         * tree-ssa-sccvn.c: Include stor-layout.h.
4335         * tree-ssa-sink.c: Include stor-layout.h.
4336         * tree-ssa-strlen.c: Include stor-layout.h.
4337         * tree-ssa-structalias.c: Include stor-layout.h.
4338         Include stmt.h.
4339         * tree-ssa-tail-merge.c: Include stor-layout.h.
4340         Include trans-mem.h.
4341         * tree-ssa-uncprop.c: Include stor-layout.h.
4342         * tree-ssa.c: Include stor-layout.h.
4343         * tree-ssanames.c: Include stor-layout.h.
4344         * tree-streamer-in.c: Include stringpool.h.
4345         * tree-streamer-out.c: Include stor-layout.h.
4346         * tree-switch-conversion.c: Include varasm.h.
4347         Include stor-layout.h.
4348         * tree-tailcall.c: Include stor-layout.h.
4349         * tree-vect-data-refs.c: Include stor-layout.h.
4350         * tree-vect-generic.c: Include stor-layout.h.
4351         * tree-vect-loop.c: Include stor-layout.h.
4352         * tree-vect-patterns.c: Include stor-layout.h.
4353         * tree-vect-slp.c: Include stor-layout.h.
4354         * tree-vect-stmts.c: Include stor-layout.h.
4355         * tree-vectorizer.c: Include stor-layout.h.
4356         * tree-vrp.c: Include stor-layout.h.
4357         Include calls.h.
4358         * tree.c: Include stor-layout.h.
4359         Include calls.h.
4360         Include attribs.h.
4361         Include varasm.h.
4362         * tsan.c: Include expr.h.
4363         * ubsan.c: Include stor-layout.h.
4364         Include stringpool.h.
4365         * value-prof.c: Include tree-nested.h.
4366         Include calls.h.
4367         * var-tracking.c: Include varasm.h.
4368         Include stor-layout.h.
4369         * varasm.c: Include stor-layout.h.
4370         Include stringpool.h.
4371         Include gcc-symtab.h.
4372         Include varasm.h.
4373         * varpool.c: Include varasm.h.
4374         * vmsdbgout.c: Include varasm.h.
4375         * xcoffout.c: Include varasm.h.
4377 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
4379         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
4380         use (.&-4) idiom.
4382 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4384         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
4386 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4387             Alan Modra  <amodra@gmail.com>
4389         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
4390         (RS6000_SAVE_TOC): Remove.
4391         (RS6000_TOC_SAVE_SLOT): New macro.
4392         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
4393         (rs6000_parm_start): Use it.
4394         (rs6000_function_arg_advance_1): Likewise.
4395         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
4396         (rs6000_emit_epilogue): Likewise.
4397         (rs6000_call_aix): Likewise.
4398         (rs6000_output_function_prologue): Do not save/restore r11
4399         around calling _mcount for ABI_ELFv2.
4401 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4402             Alan Modra  <amodra@gmail.com>
4404         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
4405         Add prototype.
4406         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
4407         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
4408         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
4409         (rs6000_function_parms_need_stack): Likewise.
4410         (rs6000_reg_parm_stack_space): Likewise.
4411         (rs6000_function_arg): Do not replace BLKmode by Pmode when
4412         returning a register argument.
4414 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4415             Michael Gschwind  <mkg@us.ibm.com>
4417         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
4418         (ALTIVEC_ARG_MAX_RETURN): Likewise.
4419         (FUNCTION_VALUE_REGNO_P): Use them.
4420         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
4421         (rs6000_return_in_msb): New function.
4422         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
4423         Handle aggregates of up to 16 bytes for ELFv2.
4424         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
4426 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4427             Michael Gschwind  <mkg@us.ibm.com>
4429         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
4430         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
4431         (rs6000_discover_homogeneous_aggregate): Likewise.
4432         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
4433         (rs6000_function_arg_advance_1): Likewise.
4434         (rs6000_function_arg): Likewise.
4435         (rs6000_arg_partial_bytes): Likewise.
4436         (rs6000_psave_function_arg): Handle BLKmode arguments.
4438 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4439             Michael Gschwind  <mkg@us.ibm.com>
4441         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
4442         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
4443         (rs6000_discover_homogeneous_aggregate): Likewise.
4444         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
4445         (rs6000_function_arg_advance_1): Likewise.
4446         (rs6000_function_arg): Likewise.
4447         (rs6000_arg_partial_bytes): Likewise.
4448         (rs6000_psave_function_arg): Handle BLKmode arguments.
4450 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4452         * config/rs6000/rs6000.c (machine_function): New member
4453         r2_setup_needed.
4454         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
4455         (rs6000_output_mi_thunk): Set r2_setup_needed.
4456         (rs6000_output_function_prologue): Output global entry point
4457         prologue and local entry point marker if needed for ABI_ELFv2.
4458         Output -mprofile-kernel code here.
4459         (output_function_profiler): Do not output -mprofile-kernel
4460         code here; moved to rs6000_output_function_prologue.
4461         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
4463         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
4464         (rs6000_output_function_entry): Likewise.
4465         (rs6000_assemble_integer): Likewise.
4466         (rs6000_elf_encode_section_info): Likewise.
4467         (rs6000_elf_declare_function_name): Do not create dot symbols
4468         or .opd section for ABI_ELFv2.
4470         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
4471         (rs6000_trampoline_init): Likewise.
4472         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
4474         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
4475         for function descriptors in ABI_ELFv2.
4477         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
4478         on ABI_AIX only, not ABI_ELFv2.
4479         ("*call_value_indirect_aix<mode>"): Likewise.
4480         ("*call_indirect_elfv2<mode>"): New pattern.
4481         ("*call_value_indirect_elfv2<mode>"): Likewise.
4483         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
4484         check for function descriptors in ABI_ELFv2.
4485         ("current_file_function_operand"): Likewise.
4487         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
4488         (toc): Undefine.
4489         (FUNC_NAME): Define ELFv2 variant.
4490         (JUMP_TARGET): Likewise.
4491         (FUNC_START): Likewise.
4492         (HIDDEN_FUNC): Likewise.
4493         (FUNC_END): Likeiwse.
4495 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4497         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
4498         and --with-abi=elfv2.
4499         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
4500         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
4501         (mabi=elfv2): Likewise.
4502         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
4503         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
4504         if !RS6000_BI_ARCH.
4505         (ELFv2_ABI_CHECK): New macro.
4506         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
4507         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
4508         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
4509         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
4510         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
4512         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
4513         (debug_stack_info): Likewise.
4514         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
4515         (rs6000_legitimize_tls_address): Likewise.
4516         (rs6000_conditional_register_usage): Likewise.
4517         (rs6000_emit_move): Likewise.
4518         (init_cumulative_args): Likewise.
4519         (rs6000_function_arg_advance_1): Likewise.
4520         (rs6000_function_arg): Likewise.
4521         (rs6000_arg_partial_bytes): Likewise.
4522         (rs6000_output_function_entry): Likewise.
4523         (rs6000_assemble_integer): Likewise.
4524         (rs6000_savres_strategy): Likewise.
4525         (rs6000_stack_info): Likewise.
4526         (rs6000_function_ok_for_sibcall): Likewise.
4527         (rs6000_emit_load_toc_table): Likewise.
4528         (rs6000_savres_routine_name): Likewise.
4529         (ptr_regno_for_savres): Likewise.
4530         (rs6000_emit_prologue): Likewise.
4531         (rs6000_emit_epilogue): Likewise.
4532         (rs6000_output_function_epilogue): Likewise.
4533         (output_profile_hook): Likewise.
4534         (output_function_profiler): Likewise.
4535         (rs6000_trampoline_size): Likewise.
4536         (rs6000_trampoline_init): Likewise.
4537         (rs6000_elf_output_toc_section_asm_op): Likewise.
4538         (rs6000_elf_encode_section_info): Likewise.
4539         (rs6000_elf_reloc_rw_mask): Likewise.
4540         (rs6000_elf_declare_function_name): Likewise.
4541         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
4542         except that rs6000_compat_align_parm is always assumed false.
4543         (rs6000_gimplify_va_arg): Likewise.
4544         (rs6000_call_aix): Update comment.
4545         (rs6000_sibcall_aix): Likewise.
4546         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
4547         Treat ABI_ELFv2 the same as ABI_AIX.
4548         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
4549         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
4550         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
4551         ("load_toc_aix_si"): Likewise.
4552         ("load_toc_aix_di"): Likewise.
4553         ("call"): Likewise.
4554         ("call_value"): Likewise.
4555         ("*call_local_aix<mode>"): Likewise.
4556         ("*call_value_local_aix<mode>"): Likewise.
4557         ("*call_nonlocal_aix<mode>"): Likewise.
4558         ("*call_value_nonlocal_aix<mode>"): Likewise.
4559         ("*call_indirect_aix<mode>"): Likewise.
4560         ("*call_value_indirect_aix<mode>"): Likewise.
4561         ("sibcall"): Likewise.
4562         ("sibcall_value"): Likewise.
4563         ("*sibcall_aix<mode>"): Likewise.
4564         ("*sibcall_value_aix<mode>"): Likewise.
4565         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
4566         ("current_file_function_operand"): Likewise.
4568 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4570         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
4571         by making use of the fact that for vector / floating point arguments
4572         passed both in VRs/FPRs and in the fixed parameter area, the partial
4573         bytes mechanism is in fact not used.
4575 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4577         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
4578         (rs6000_finish_function_arg): Likewise.
4579         (rs6000_function_arg): Use rs6000_psave_function_arg and
4580         rs6000_finish_function_arg to handle both vector and floating
4581         point arguments that are also passed in GPRs / the stack.
4583 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4585         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
4586         (USE_ALTIVEC_FOR_ARG_P): Likewise.
4587         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
4588         (rs6000_function_arg_advance_1):Likewise.
4589         (rs6000_darwin64_record_arg_recurse): Likewise.
4590         (rs6000_function_arg): Likewise.
4591         (rs6000_arg_partial_bytes): Likewise.
4593 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4595         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
4596         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
4597         (rs6000_savres_strategy): Likewise.
4598         (rs6000_return_addr): Likewise.
4599         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
4600         testing for ABI_V4 (since ABI_DARWIN is impossible here).
4601         (rs6000_emit_prologue): Likewise.
4602         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
4603         (rs6000_elf_declare_function_name): Remove duplicated test.
4604         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
4605         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
4606         ("load_toc_v4_PIC_1_normal"): Likewise.
4607         ("load_toc_v4_PIC_1_476"): Likewise.
4608         ("load_toc_v4_PIC_1b"): Likewise.
4609         ("load_toc_v4_PIC_1b_normal"): Likewise.
4610         ("load_toc_v4_PIC_1b_476"): Likewise.
4611         ("load_toc_v4_PIC_2"): Likewise.
4612         ("load_toc_v4_PIC_3b"): Likewise.
4613         ("load_toc_v4_PIC_3c"): Likewise.
4614         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
4615         (RS6000_SAVE_AREA): Likewise.
4616         (FP_ARG_MAX_REG): Likewise.
4617         (RETURN_ADDRESS_OFFSET): Likewise.
4618         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
4619         of ABI_AIX.
4620         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4621         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4623 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4625         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
4626         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
4627         Create call insn directly instead of via various gen_... routines.
4628         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
4629         (rs6000_sibcall_aix): New function.
4630         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
4631         (TOC_SAVE_OFFSET_64BIT): Likewise.
4632         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
4633         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
4634         (AIX_FUNC_DESC_SC_32BIT): Likewise.
4635         (AIX_FUNC_DESC_SC_64BIT): Likewise.
4636         ("call" expander): Call rs6000_call_aix.
4637         ("call_value" expander): Likewise.
4638         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
4639         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
4640         ("*call_indirect_aix<mode>"): ... by this insn pattern.
4641         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
4642         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
4643         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
4644         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
4645         ("*call_nonlocal_aix<mode>"): ... this pattern.
4646         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
4647         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
4648         ("*call_local_aix<mode>"): New insn pattern.
4649         ("*call_value_local_aix<mode>"): Likewise.
4650         ("sibcall" expander): Call rs6000_sibcall_aix.
4651         ("sibcall_value" expander): Likewise.  Move earlier in file.
4652         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
4653         ("*sibcall_aix<mode>"): ... this pattern.
4654         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
4655         ("*sibcall_value_aix<mode>"): ... this pattern.
4656         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
4657         (rs6000_call_aix): Add prototype.
4658         (rs6000_sibcall_aix): Likewise.
4660 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
4662         PR sanitizer/59122
4663         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
4664         isn't confused by the artificial decl.
4666 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4668         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
4669         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
4670         Instead, add USEs of all modified call-saved CR fields to the
4671         insn storing the result to the stack slot, and provide an
4672         appropriate REG_FRAME_RELATED_EXPR for that insn.
4673         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
4674         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
4676 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4677             Alan Modra  <amodra@gmail.com>
4679         * function.c (assign_parms): Use all.reg_parm_stack_space instead
4680         of re-evaluating REG_PARM_STACK_SPACE target macro.
4681         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
4682         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
4683         (assign_parm_find_entry_rtl): Update call.
4684         * calls.c (initialize_argument_information): Update call.
4685         (emit_library_call_value_1): Likewise.
4686         * expr.h (locate_and_pad_parm): Update prototype.
4688 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4690         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
4691         arguments.
4693 2013-11-14  DJ Delorie  <dj@redhat.com>
4695         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
4696         to 16 bits.
4698 2013-11-14  Jeff Law  <law@redhat.com>
4700         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
4701         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
4703 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4705         * doc/invoke.texi: Update documentation for AArch64's -mcpu
4706         and -mtune options.
4708 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4710         * config/aarch64/aarch64-cores.def (example-1): Remove.
4711         (example-2): Likewise.
4712         * config/aarch64/aarch64-tune.md: Regenerate.
4713         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
4714         (generic_sched): Remove "large", "small".
4715         * config/aarch64/large.md: Delete.
4716         * config/aarch64/small.md: Delete.
4718 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4720         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
4721         * config/aarch64/aarch64-tune.md: Regenerate.
4722         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
4723         (generic_sched): "no" if we are tuning for cortexa15.
4724         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
4725         relative path.
4727 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4729         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
4730         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
4731         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
4732         (all_cores): Use cortexa53 when tuning for "generic".
4733         (aarch64_override_options): Fix comment.
4734         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
4735         * config/aarch64/aarch64-generic.md: Delete.
4737 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4739         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
4741 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4743         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
4744         (generic_rtx_cost_table): Remove.
4745         (aarch64_rtx_costs): Use fields from cpu_cost_table.
4746         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
4747         insn_extra_cost.
4748         (cpu_rtx_cost_table): Remove.
4750 2013-11-14  Julian Brown  <julian@codesourcery.com>
4751             Joey Ye  <joey.ye@arm.com>
4753         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
4754         (arm_v7m_tune): New.
4755         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
4756         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
4757         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
4758         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
4760 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
4762         PR target/57491
4763         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
4764         flag setting.
4766 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
4767             Uros Bizjak  <ubizjak@gmail.com>
4769         PR target/59101
4770         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
4771         operands[2] satisfies_constraint_Z that might have bit 31 set.
4773 2013-11-13  Jeff Law  <law@redhat.com>
4775         PR tree-optimization/59102
4776         * gimple-ssa-isolate-paths.c
4777         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
4778         gimple assignment before looking at gimple_assign_lhs.
4780 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
4782         * ira.c: Add comment about threads at the top of file.
4784 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
4786         * ira-color.c (coalesce_allocnos): Don't allocate and free
4787         sorted_copies.
4789 2013-11-14  Tom de Vries  <tom@codesourcery.com>
4791         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
4792         equality for GIMPLE_ASSIGN.
4794 2013-11-14  Tom de Vries  <tom@codesourcery.com>
4796         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
4797         function out of ...
4798         (gimple_equal_p): ... here.
4800 2013-11-14  Tom de Vries  <tom@codesourcery.com>
4802         * trans-mem.c (is_tm_ending): New function.
4803         * gimple.h (is_tm_ending): Declare.
4804         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
4805         BUILT_IN_TM_COMMIT.
4806         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
4808 2013-11-14  Tom de Vries  <tom@codesourcery.com>
4810         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
4812 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
4814         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
4815         (struct walk_stmt_info):  Relocate here from gimple.h.
4816         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
4817         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
4818         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
4819         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
4820         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
4821         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
4822         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
4823         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
4824         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
4825         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
4826         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
4827         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
4828         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
4829         (struct walk_stmt_info): Move to gimple-walk.h.
4830         (gimple_seq_set_location): Move to gimple.c
4831         * gimple-walk.c: New File.
4832         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
4833         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
4834         walk_stmt_load_store_ops): Relocate here from gimple.c.
4835         * gimple-iterator.c: Include gimple-iterator.h.
4836         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
4837         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
4838         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
4839         gimple-walk.c.
4840         (gimple_seq_set_location): Relocate from gimple.h.
4841         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
4842         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
4843         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
4844         * Makefile.in (OBJS): Add gimple-walk.o
4845         * asan.c: Update Include list as required for gimple-iterator.h and
4846         gimple-walk.h.
4847         * cfgexpand.c: Likewise.
4848         * cfgloop.c: Likewise.
4849         * cfgloopmanip.c: Likewise.
4850         * cgraph.c: Likewise.
4851         * cgraphbuild.c: Likewise.
4852         * cgraphunit.c: Likewise.
4853         * gimple-fold.c: Likewise.
4854         * gimple-low.c: Likewise.
4855         * gimple-pretty-print.c: Likewise.
4856         * gimple-ssa-isolate-paths.c: Likewise.
4857         * gimple-ssa-strength-reduction.c: Likewise.
4858         * gimple-streamer-in.c: Likewise.
4859         * gimple-streamer-out.c: Likewise.
4860         * gimplify.c: Likewise.
4861         * graphite-blocking.c: Likewise.
4862         * graphite-clast-to-gimple.c: Likewise.
4863         * graphite-dependences.c: Likewise.
4864         * graphite-interchange.c: Likewise.
4865         * graphite-optimize-isl.c: Likewise.
4866         * graphite-poly.c: Likewise.
4867         * graphite-scop-detection.c: Likewise.
4868         * graphite-sese-to-poly.c: Likewise.
4869         * graphite.c: Likewise.
4870         * ipa-inline-analysis.c: Likewise.
4871         * ipa-profile.c: Likewise.
4872         * ipa-prop.c: Likewise.
4873         * ipa-pure-const.c: Likewise.
4874         * ipa-split.c: Likewise.
4875         * lto-streamer-in.c: Likewise.
4876         * lto-streamer-out.c: Likewise.
4877         * omp-low.c: Likewise.
4878         * predict.c: Likewise.
4879         * profile.c: Likewise.
4880         * sese.c: Likewise.
4881         * tracer.c: Likewise.
4882         * trans-mem.c: Likewise.
4883         * tree-call-cdce.c: Likewise.
4884         * tree-cfg.c: Likewise.
4885         * tree-cfgcleanup.c: Likewise.
4886         * tree-complex.c: Likewise.
4887         * tree-data-ref.c: Likewise.
4888         * tree-dfa.c: Likewise.
4889         * tree-eh.c: Likewise.
4890         * tree-emutls.c: Likewise.
4891         * tree-if-conv.c: Likewise.
4892         * tree-inline.c: Likewise.
4893         * tree-into-ssa.c: Likewise.
4894         * tree-loop-distribution.c: Likewise.
4895         * tree-nested.c: Likewise.
4896         * tree-nrv.c: Likewise.
4897         * tree-object-size.c: Likewise.
4898         * tree-outof-ssa.c: Likewise.
4899         * tree-parloops.c: Likewise.
4900         * tree-predcom.c: Likewise.
4901         * tree-profile.c: Likewise.
4902         * tree-scalar-evolution.c: Likewise.
4903         * tree-sra.c: Likewise.
4904         * tree-ssa-ccp.c: Likewise.
4905         * tree-ssa-coalesce.c: Likewise.
4906         * tree-ssa-copy.c: Likewise.
4907         * tree-ssa-copyrename.c: Likewise.
4908         * tree-ssa-dce.c: Likewise.
4909         * tree-ssa-dom.c: Likewise.
4910         * tree-ssa-dse.c: Likewise.
4911         * tree-ssa-forwprop.c: Likewise.
4912         * tree-ssa-ifcombine.c: Likewise.
4913         * tree-ssa-live.c: Likewise.
4914         * tree-ssa-loop-ch.c: Likewise.
4915         * tree-ssa-loop-im.c: Likewise.
4916         * tree-ssa-loop-ivcanon.c: Likewise.
4917         * tree-ssa-loop-ivopts.c: Likewise.
4918         * tree-ssa-loop-manip.c: Likewise.
4919         * tree-ssa-loop-niter.c: Likewise.
4920         * tree-ssa-loop-prefetch.c: Likewise.
4921         * tree-ssa-loop.c: Likewise.
4922         * tree-ssa-math-opts.c: Likewise.
4923         * tree-ssa-phiopt.c: Likewise.
4924         * tree-ssa-phiprop.c: Likewise.
4925         * tree-ssa-pre.c: Likewise.
4926         * tree-ssa-propagate.c: Likewise.
4927         * tree-ssa-reassoc.c: Likewise.
4928         * tree-ssa-sink.c: Likewise.
4929         * tree-ssa-strlen.c: Likewise.
4930         * tree-ssa-structalias.c: Likewise.
4931         * tree-ssa-tail-merge.c: Likewise.
4932         * tree-ssa-ter.c: Likewise.
4933         * tree-ssa-threadedge.c: Likewise.
4934         * tree-ssa-threadupdate.c: Likewise.
4935         * tree-ssa-uncprop.c: Likewise.
4936         * tree-ssa-uninit.c: Likewise.
4937         * tree-ssa.c: Likewise.
4938         * tree-stdarg.c: Likewise.
4939         * tree-switch-conversion.c: Likewise.
4940         * tree-tailcall.c: Likewise.
4941         * tree-vect-data-refs.c: Likewise.
4942         * tree-vect-generic.c: Likewise.
4943         * tree-vect-loop-manip.c: Likewise.
4944         * tree-vect-loop.c: Likewise.
4945         * tree-vect-patterns.c: Likewise.
4946         * tree-vect-slp.c: Likewise.
4947         * tree-vect-stmts.c: Likewise.
4948         * tree-vectorizer.c: Likewise.
4949         * tree-vrp.c: Likewise.
4950         * tree.c: Likewise.
4951         * tsan.c: Likewise.
4952         * value-prof.c: Likewise.
4953         * vtable-verify.c: Likewise.
4955 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
4957         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
4958         fix.
4960 2013-11-13  Jeff Law  <law@redhat.com>
4962         * PR middle-end/59119
4963         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
4964         function, extracted from gimple_ssa_isolate_erroneous_paths.
4965         (find_explicit_erroneous_behaviour): Similarly.
4966         (insert_trap_and_remove_trailing_statements): Remove statements
4967         in reverse order.
4969 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
4971         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
4972         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
4973         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
4974         looking at INSN_CODE.
4975         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
4976         active_insn_p object, respect basic block boundaries.
4977         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
4978         follows immediately after the jump table data label.
4979         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
4980         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
4981         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
4983 2013-11-13  Teresa Johnson  <tejohnson@google.com>
4985         PR ipa/58862
4986         * predict.c (drop_profile): Error is currently too strict.
4987         (handle_missing_profiles): Pass call_count to drop_profile.
4989 2013-11-13  Teresa Johnson  <tejohnson@google.com>
4991         PR ipa/58862
4992         * ipa-inline.c (edge_badness): Fix overflow.
4994 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
4996         PR rtl-optimization/59036
4997         * ira-color.c (struct allocno_color_data): Add new members
4998         first_thread_allocno, next_thread_allocno, thread_freq.
4999         (sorted_copies): New static var.
5000         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
5001         (allocno_thread_conflict_p, merge_threads)
5002         (form_threads_from_copies, form_threads_from_bucket)
5003         (form_threads_from_colorable_allocno, init_allocno_threads): New
5004         functions.
5005         (bucket_allocno_compare_func): Add comparison by thread frequency
5006         and threads.
5007         (add_allocno_to_ordered_bucket): Rename to
5008         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
5009         (push_only_colorable): Call form_threads_from_bucket.
5010         (color_pass): Call init_allocno_threads.  Use
5011         consideration_allocno_bitmap instead of coloring_allocno_bitmap
5012         for nuillify allocno color data.
5013         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
5014         (coalesce_allocnos): Use static sorted copies.
5016 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
5018         * passes.c (execute_todo): Don't call do_per_function if
5019         flags are zero.
5020         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
5021         execute_function_dump if dump_file is NULL.
5023 2013-11-13  Martin Jambor  <mjambor@suse.cz>
5025         * cgraph.c (cgraph_get_create_node): Do what
5026         cgraph_get_create_real_symbol_node used to do.
5027         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
5028         call cgraph_get_create_node.
5029         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
5030         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
5031         cgraph_get_create_node.  Assert we get a node.
5033 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5035         * config/aarch64/aarch64-simd.md (vec_extract): New.
5037 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5039         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
5040         the constraint.
5042 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5044         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
5045         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
5046         or if optimization is enabled.
5047         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
5048         require that all the names based on a PARM_DECL or a RESULT_DECL that
5049         isn't ignored for debug info be coalesced.
5051 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5053         * config/c6x/c6x.c: Include "gimple-expr.h".
5055 2013-11-13  Richard Biener  <rguenther@suse.de>
5057         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
5058         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
5059         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
5060         dealing with type mismatches inside component reference chains.
5062 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
5064         PR tree-optimization/59077
5065         * ipa-pure-const.c (better_state): Update *state.
5067 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
5069         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
5070         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
5071         Update offset calculations.
5073 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5075         PR ada/35998
5076         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
5077         for fields.  Do not add the attribute if the size is negative.
5079 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5081         * config/arm/arm.c: Include aarch-cost-tables.h.
5082         (generic_extra_costs): Move from here...
5083         * config/arm/aarch-cost-tables.h: ... To here.  New file.
5085 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5086             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5087             Sergey Lega  <sergey.s.lega@intel.com>
5088             Anna Tikhonova  <anna.tikhonova@intel.com>
5089             Ilya Tocar  <ilya.tocar@intel.com>
5090             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5091             Ilya Verbin  <ilya.verbin@intel.com>
5092             Kirill Yukhin  <kirill.yukhin@intel.com>
5093             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5095         * config/i386/i386.c (ix86_print_operand): Support z-masking.
5096         * config/i386/predicate.md (const_0_to_4_operand): New.
5097         (const_0_to_5_operand): Ditto.
5098         * config/i386/sse.md (UNSPEC_COMPRESS): New.
5099         (UNSPEC_COMPRESS_STORE): Ditto.
5100         (UNSPEC_EXPAND): Ditto.
5101         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
5102         (define_mode_attr ssescalarsize): Ditto.
5103         (avx512f_load<mode>_mask): Ditto.
5104         (avx512f_store<mode>_mask): Ditto.
5105         (avx512f_storedqu<mode>_mask): Ditto.
5106         (avx512f_vmcmp<mode>3_mask): Ditto.
5107         (avx512f_fmadd_<mode>_mask): Ditto.
5108         (avx512f_fmadd_<mode>_mask3): Ditto.
5109         (avx512f_fmsub_<mode>_mask): Ditto.
5110         (avx512f_fmsub_<mode>_mask3): Ditto.
5111         (avx512f_fnmadd_<mode>_mask): Ditto.
5112         (avx512f_fnmadd_<mode>_mask3): Ditto.
5113         (avx512f_fnmsub_<mode>_mask): Ditto.
5114         (avx512f_fnmsub_<mode>_mask3): Ditto.
5115         (avx512f_fmaddsub_<mode>_mask): Ditto.
5116         (avx512f_fmaddsub_<mode>_mask3): Ditto.
5117         (avx512f_fmsubadd_<mode>_mask): Ditto.
5118         (avx512f_fmsubadd_<mode>_mask3): Ditto.
5119         (vec_unpacku_float_lo_v16si): Ditto.
5120         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
5121         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
5122         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
5123         (vec_extract_lo_<mode>_maskm): Ditto.
5124         (vec_extract_hi_<mode>_maskm): Ditto.
5125         (avx512f_vternlog<mode>_mask): Ditto.
5126         (avx512f_shufps512_mask): Ditto.
5127         (avx512f_fixupimm<mode>_mask): Ditto.
5128         (avx512f_shufpd512_mask): Ditto.
5129         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
5130         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
5131         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
5132         (ashr<mode>3<mask_name>): Ditto.
5133         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
5134         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
5135         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
5136         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
5137         (avx512f_pshufdv3_mask): Ditto.
5138         (avx512f_perm<mode>_mask): Ditto.
5139         (avx512f_vpermi2var<mode>3_mask): Ditto.
5140         (avx512f_vpermt2var<mode>3_mask): Ditto.
5141         (avx512f_compress<mode>_mask): Ditto.
5142         (avx512f_compressstore<mode>_mask): Ditto.
5143         (avx512f_expand<mode>_mask): Ditto.
5144         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
5145         to support masking.
5146         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
5147         (<plusminus_insn><mode>3<mask_name>): Ditto.
5148         (*<plusminus_insn><mode>3<mask_name>): Ditto.
5149         (mul<mode>3<mask_name>): Ditto.
5150         (*mul<mode>3<mask_name>): Ditto.
5151         (<sse>_div<mode>3<mask_name>): Ditto.
5152         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
5153         (<sse>_sqrt<mode>2<mask_name>): Ditto.
5154         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
5155         (<code><mode>3<mask_name>/smaxmin): Ditto.
5156         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
5157         (*<code><mode>3<mask_name>/smaxmin): Ditto.
5158         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
5159         (ufloatv16siv16sf2<mask_name>): Ditto.
5160         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
5161         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
5162         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
5163         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
5164         (ufloatv8siv8df<mask_name>): Ditto.
5165         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
5166         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
5167         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
5168         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
5169         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
5170         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
5171         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
5172         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
5173         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
5174         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
5175         (vec_extract_lo_<mode><mask_name>): Ditto.
5176         (vec_extract_hi_<mode><mask_name>): Ditto.
5177         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
5178         (avx512f_movddup512<mask_name>): Ditto.
5179         (avx512f_unpcklpd512<mask_name>): Ditto.
5180         (*avx512f_unpcklpd512<mask_name>): Ditto.
5181         (*avx512f_vmscalef<mode>): Ditto.
5182         (avx512f_scalef<mode><mask_name>): Ditto.
5183         (avx512f_getexp<mode><mask_name>): Ditto.
5184         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
5185         (avx512f_rndscale<mode><mask_name>): Ditto.
5186         (avx512f_shufps512_1<mask_name>): Ditto.
5187         (avx512f_shufpd512_1<mask_name>): Ditto.
5188         (<plusminus_insn><mode>3<mask_name>): Ditto.
5189         (*<plusminus_insn><mode>3<mask_name>): Ditto.
5190         (vec_widen_umult_even_v16si<mask_name>): Ditto.
5191         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
5192         (vec_widen_smult_even_v16si<mask_name>): Ditto.
5193         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
5194         (mul<mode>3<mask_name>): Ditto.
5195         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
5196         (<shift_insn><mode>3<mask_name>): Ditto.
5197         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
5198         (avx512f_<rotate><mode><mask_name>): Ditto.
5199         (<code><mode>3<mask_name>/maxmin): Ditto.
5200         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
5201         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
5202         (*andnot<mode>3<mask_name>): Ditto.
5203         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
5204         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
5205         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
5206         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
5207         (vec_set_lo_<mode><mask_name>): Ditto.
5208         (vec_set_hi_<mode><mask_name>): Ditto.
5209         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
5210         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
5211         (avx512f_pshufd_1<mask_name>): Ditto.
5212         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
5213         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
5214         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
5215         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
5216         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
5217         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
5218         (avx512er_exp2<mode><mask_name>): Ditto.
5219         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
5220         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
5221         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
5222         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
5223         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
5224         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
5225         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
5226         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
5227         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
5228         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
5229         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
5230         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
5231         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
5232         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
5233         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
5234         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
5235         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
5236         (avx512f_getmant<mode><mask_name>): Ditto.
5237         (clz<mode>2<mask_name>): Ditto.
5238         (<mask_codefor>conflict<mode><mask_name>): Ditto.
5239         (*srcp14<mode>): Remove visibility.
5240         (*rsqrt14<mode>): Ditto.
5241         (*fma_fmsub_<mode>): Ditto.
5242         (*fma_fnmadd_<mode>): Ditto.
5243         (*avx512f_rndscale<mode>): Ditto.
5244         * config/i386/subst.md: New file.
5246 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
5248         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
5249         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
5250         (atomic_load_explicit, atomic_exchange_explicit)
5251         (atomic_compare_exchange_strong_explicit)
5252         (atomic_compare_exchange_weak_explicit): Use __auto_type to
5253         declare variable initialized with PTR argument.
5255 2013-11-12  Jeff Law  <law@redhat.com>
5257         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
5258         backedge_seen_p.  Set, use and pass it to children appropriately.
5259         (thread_through_normal_block): Similarly.
5260         (thread_across_edge): Similarly.
5262         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
5263         memory references as volatile.
5264         (insert_trap_and_remove_trailing_statements): Fix comment.
5266 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
5268         PR other/58712
5269         * ira-costs.c (record_operand_costs): Check operands number for
5270         the single set.
5272 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
5274         PR target/59054
5275         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
5276         constraints that would allow DImode into the traditional Altivec
5277         registers, but cause undesirable code generation when loading 0 as
5278         a constant.
5279         (movdi_internal64): Likewise.
5280         (cmp<mode>_fpr): Do not use %x for CR register output.
5281         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
5282         -mallow-upper-sf debug switches are used.
5284 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
5286         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
5287         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
5288         Relocate prototypes from gimple.h.
5289         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
5290         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
5291         from gimple.h.
5292         * gimple.h: Move some prototypes to gimplify.h.
5293         (gimple_predicate, enum fallback, enum gimplify_status): Move to
5294         gimplify.h.
5295         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
5296         Relocate from gimpify.c.
5297         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5298         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
5299         is_gimple_reg_rhs) Relocate from gimplify.c.
5300         * gimplify.c (mark_addressable): Move to gimple-expr.c.
5301         (gimple_seq_add_stmt_without_update): Move to gimple.c.
5302         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5303         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
5304         is_gimple_reg_rhs): Move to gimple-expr.c.
5305         (should_carry_location_p): Move to gimple.c.
5306         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
5307         to gimple.h.
5308         (annotate_one_with_location, annotate_all_with_location_after,
5309         annotate_all_with_location): Move to gimple.c.
5310         (compare_case_labels, sort_case_labels,
5311         preprocess_case_label_vec_for_gimple): Move to gimple.c.
5312         (rhs_predicate_for): Make static.
5313         (gimplify_assign): Relocate from gimple.c.
5314         * gimple.c (gimplify_assign): Move to gimplify.c.
5315         (gimple_seq_add_stmt_without_update, should_carry_location_p,
5316         annotate_one_with_location, annotate_all_with_location_after,
5317         annotate_all_with_location, compare_case_labels, sort_case_labels,
5318         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
5319         * tree.h (unshare_expr, unshare_expr_without_location,
5320         mark_addressable): Move prototypes to gimplify.h.
5321         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
5322         tmp_var_id_num
5323         * asan.c: Include gimplify.h rather than gimple.h.
5324         * cfgloopmanip.c: Likewise.
5325         * cgraphunit.c: Likewise.
5326         * cilk-common.c: Likewise.
5327         * dwarf2out.c: Dont include gimple.h.
5328         * fold-const.c: Include gimplify.h rather than gimple.h.
5329         * function.c: Likewise.
5330         * gimple-fold.c: Likewise.
5331         * gimple-ssa-strength-reduction.c: Likewise.
5332         * graphite-clast-to-gimple.c: Likewise.
5333         * graphite-sese-to-poly.c: Likewise.
5334         * ipa-prop.c: Likewise.
5335         * ipa-split.c: Likewise.
5336         * ipa.c: Likewise.
5337         * langhooks.c: Dont include gimple.h.
5338         * loop-init.c: Include gimplify.h rather than gimple.h.
5339         * omp-low.c: Likewise.
5340         * sese.c: Likewise.
5341         * stor-layout.c: Likewise.
5342         * targhooks.c: Likewise.
5343         * trans-mem.c: Likewise.
5344         * tree-affine.c: Likewise.
5345         * tree-cfg.c: Likewise.
5346         * tree-cfgcleanup.c: Likewise.
5347         * tree-complex.c: Likewise.
5348         * tree-if-conv.c: Likewise.
5349         * tree-inline.c: Likewise.
5350         * tree-iterator.c: Likewise.
5351         * tree-loop-distribution.c: Likewise.
5352         * tree-nested.c: Likewise.
5353         * tree-parloops.c: Likewise.
5354         * tree-predcom.c: Likewise.
5355         * tree-profile.c: Likewise.
5356         * tree-scalar-evolution.c: Likewise.
5357         * tree-sra.c: Likewise.
5358         * tree-ssa-address.c: Likewise.
5359         * tree-ssa-ccp.c: Likewise.
5360         * tree-ssa-dce.c: Likewise.
5361         * tree-ssa-forwprop.c: Likewise.
5362         * tree-ssa-ifcombine.c: Likewise.
5363         * tree-ssa-loop-im.c: Likewise.
5364         * tree-ssa-loop-ivopts.c: Likewise.
5365         * tree-ssa-loop-manip.c: Likewise.
5366         * tree-ssa-loop-niter.c: Likewise.
5367         * tree-ssa-loop-prefetch.c: Likewise.
5368         * tree-ssa-loop-unswitch.c: Likewise.
5369         * tree-ssa-math-opts.c: Likewise.
5370         * tree-ssa-phiopt.c: Likewise.
5371         * tree-ssa-phiprop.c: Likewise.
5372         * tree-ssa-pre.c: Likewise.
5373         * tree-ssa-propagate.c: Likewise.
5374         * tree-ssa-reassoc.c: Likewise.
5375         * tree-ssa-sccvn.c: Likewise.
5376         * tree-ssa-strlen.c: Likewise.
5377         * tree-ssa.c: Likewise.
5378         * tree-switch-conversio: Likewise.n.c
5379         * tree-tailcall.c: Likewise.
5380         * tree-vect-data-refs.c: Likewise.
5381         * tree-vect-generic.c: Likewise.
5382         * tree-vect-loop-manip.c: Likewise.
5383         * tree-vect-loop.c: Likewise.
5384         * tree-vect-patterns.c: Likewise.
5385         * tree-vect-stmts.c: Likewise.
5386         * tsan.c: Likewise.
5387         * value-prof.c: Likewise.
5388         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
5389         * config/alpha/alpha.c: Likewise.
5390         * config/darwin.c: Likewise.
5391         * config/i386/i386.c: Likewise.
5392         * config/ia64/ia64.c: Likewise.
5393         * config/mep/mep.c: Likewise.
5394         * config/mips/mips.c: Likewise.
5395         * config/rs6000/rs6000.c: Likewise.
5396         * config/s390/s390.c: Likewise.
5397         * config/sh/sh.c: Likewise.
5398         * config/sparc/sparc.c: Likewise.
5399         * config/spu/spu.c: Likewise.
5400         * config/stormy16/stormy16.c: Likewise.
5401         * config/tilegx/tilegx.c: Likewise.
5402         * config/tilepro/tilepro.c: Likewise.
5403         * config/xtensa/xtensa.c: Likewise.
5405 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
5407         * tree.c (grow_tree_vec_stat): New function ...
5408         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
5409         and macro front-end.
5411 2013-11-12  Marek Polacek  <polacek@redhat.com>
5413         * final.c (update_alignments): Initialize label to NULL_RTX.
5415 2013-11-12  Jeff Law  <law@redhat.com>
5417         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
5418         (insert_trap_and_remove_trailing_statements): New argument OP which
5419         is the NULL pointer.  Emit the trap after the load/store through
5420         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
5421         when trivial to do so.
5422         (isolate_path): Corresponding changes.
5423         (gimple_ssa_isolate_erroneous_path): Likewise.
5425 2013-11-12  Teresa Johnson  <tejohnson@google.com>
5426             Jan Hubicka  <jh@suse.cz>
5428         * predict.c (drop_profile): New function.
5429         (handle_missing_profiles): Ditto.
5430         (counts_to_freqs): Don't overwrite estimated frequencies
5431         when function has no profile counts.
5432         * predict.h (handle_missing_profiles): Declare.
5433         * tree-inline.c (freqs_to_counts): New function.
5434         (copy_cfg_body): Invoke freqs_to_counts as needed.
5435         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
5437 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
5439         PR target/59088
5440         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
5441         Set for m_HASWELL.
5442         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
5444 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
5446         PR target/59084
5447         * config/i386/i386.c (ix86_option_override_internal): Check
5448         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
5449         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
5450         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
5451         MASK_AVX256_SPLIT_UNALIGNED_STORE.
5453         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
5454         Clear m_COREI7_AVX and update comments.
5455         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
5457 2013-11-12  Martin Jambor  <mjambor@suse.cz>
5459         PR rtl-optimization/10474
5460         * ira.c (interesting_dest_for_shprep): New function.
5461         (split_live_ranges_for_shrink_wrap): Likewise.
5462         (find_moveable_pseudos): Move calculation of dominance info,
5463         df_analysios and the final anlyses to...
5464         (ira): ...here, call split_live_ranges_for_shrink_wrap.
5466 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
5468         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
5469         Handle type conversion.
5471 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
5472             Jan Hubicka  <jh@suse.cz>
5474         * cgraph.c (dump_cgraph_node): Profile dump added.
5475         * cgraph.h (struct cgraph_node): New time profile variable added.
5476         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
5477         * gcov-io.h (gcov_type): New profiler type introduced.
5478         * ipa-profile.c (lto_output_node): Streaming for time profile added.
5479         (input_node): Time profiler is read from LTO stream.
5480         * predict.c (maybe_hot_count_p): Hot prediction changed.
5481         * profile.c (instrument_values): New case for time profiler added.
5482         (compute_value_histograms): Read of time profile.
5483         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
5484         * tree-profile.c (init_ic_make_global_vars): Time profiler
5485         function added.
5486         (gimple_init_edge_profiler): TP function instrumentation.
5487         (gimple_gen_time_profiler): New.
5488         * value-prof.c (gimple_add_histogram_value): Support for time profiler
5489         added.
5490         (dump_histogram_value): TP type added to dumps.
5491         (visit_hist): More sensitive check that takes TP into account.
5492         (gimple_find_values_to_profile): TP instrumentation.
5493         * value-prof.h (hist_type): New histogram type added.
5494         (struct histogram_value_t): Pointer to struct function added.
5495         * libgcc/Makefile.in: New GCOV merge function for TP added.
5496         * libgcov.c: function_counter variable introduced.
5497         (_gcov_merge_time_profile): New.
5498         (_gcov_time_profiler): New.
5500 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
5501             Jeff Law  <law@redhat.com>
5503         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
5504         ao_ref_init_from_ptr_and_size for builtins.
5506 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
5507             H.J. Lu  <hongjiu.lu@intel.com>
5509         PR target/58853
5510         * config/i386/x86-tune.def
5511         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
5512         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
5513         * config/i386/i386.h
5514         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
5515         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
5516         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
5517         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
5518         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
5519         misaligned_prologue_used.  Check that
5520         desired_aling <= epilogue_size_needed.
5522 2013-11-11  Cong Hou  <congh@google.com>
5524         PR tree-optimization/59050
5525         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
5527 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
5529         PR middle-end/59049
5530         * expmed.c (emit_store_flag): Fail for const-const comparison.
5532 2013-11-11  Tristan Gingold  <gingold@adacore.com>
5533             Eric Botcazou  <ebotcazou@adacore.com>
5535         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
5536         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
5537         * tree.def (CONSTRUCTOR): Likewise.
5538         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
5539         * gimplify.c (gimplify_init_constructor): Do not clear the object when
5540         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
5542 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
5544         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
5545         diagnostic_finish.
5547 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5549         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
5550         comparisons.
5552 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
5554         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
5556 2013-11-08  Jeff Law  <law@redhat.com>
5558         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
5559         threading paths first, then perform PHI node checks if applicable.
5561 2013-11-10  Karlson2k  <k2k@narod.ru>
5562             Kai Tietz  <ktietz@redhat.com>
5564         PR plugin/52872
5565         * configure.ac: Adding for exported symbols check
5566         and for rdynamic-check executable-extension.
5567         * configure: Regenerated.
5569 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
5571         * mode-switching.c (optimize_mode_switching): Mark block as
5572         nontransparent, if last_mode at block exit is different from no_mode.
5574 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5576         * function.c (NAME__MAIN): Move to...
5577         * cfgexpand.c (NAME__MAIN): ...here.
5579 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
5581         * target.def (can_use_doloop_p): New hook.
5582         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
5583         * doc/tm.texi: Regenerate.
5584         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
5585         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
5586         * hooks.c (hook_bool_dint_dint_uint_true): New function.
5587         * targhooks.h (can_use_doloop_if_innermost): Declare.
5588         * targhooks.c (can_use_doloop_if_innermost): New function.
5589         * target.h: Include double-int.h.
5590         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
5591         Remove iteration count, maximum iteration count, loop depth and
5592         enter-at-top inputs from doloop_begin and doloop_end.
5593         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
5594         interface.
5595         * config/arc/arc.c (arc_can_use_doloop_p): New function.
5596         (TARGET_CAN_USE_DOLOOP_P): Define.
5597         * config/arm/thumb2.md (doloop_end): Update for new interface.
5598         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
5599         * config/bfin/bfin.md (doloop_end): Update for new interface.
5600         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
5601         (TARGET_CAN_USE_DOLOOP_P): Define.
5602         * config/c6x/c6x.md (doloop_end): Update for new interface.
5603         * config/ia64/ia64.md (doloop_end): Update for new interface.
5604         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
5605         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
5606         interface.
5607         * config/mep/mep.c (mep_emit_doloop): Likewise.
5608         (TARGET_CAN_USE_DOLOOP_P): Define.
5609         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
5610         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
5611         * config/s390/s390.md (doloop_end): Update for new interface.
5612         * config/sh/sh.md (doloop_end): Likewise.
5613         * config/spu/spu.md (doloop_end): Likewise.
5614         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
5615         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
5616         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
5617         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
5618         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
5619         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
5620         interface.
5621         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
5623 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
5625         PR other/59055
5626         * doc/extend.texi: Move Cilk Plus Builtins node before Other
5627         Builtins node.
5629 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
5630             Joseph Myers  <joseph@codesourcery.com>
5632         * ginclude/stdatomic.h: New file.
5633         * Makefile.in (USER_H): Add stdatomic.h.
5635 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5637         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
5638         comparisons.
5640 2013-11-08  Jeff Law  <law@redhat.com>
5642         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
5643         * tree-ssa-threadupdate.c (delete_thread_path): New function.
5644         (ssa_redirect_edges, thread_block_1): Use it.
5645         (thread_through_loop_header, mark_threaded_blocks): Likewise.
5646         (thread_through_all_blocks, register_jump_thread): Likewise.
5647         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
5649 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
5651         * config/arm/aarch-common.c
5652         (search_term): New typedef.
5653         (shift_rtx_costs): New array.
5654         (arm_rtx_shift_left_p): New.
5655         (arm_find_sub_rtx_with_search_term): Likewise.
5656         (arm_find_sub_rtx_with_code): Likewise.
5657         (arm_early_load_addr_dep): Add sanity checking.
5658         (arm_no_early_alu_shift_dep): Likewise.
5659         (arm_no_early_alu_shift_value_dep): Likewise.
5660         (arm_no_early_mul_dep): Likewise.
5661         (arm_no_early_store_addr_dep): Likewise.
5663 2013-11-08  Richard Biener  <rguenther@suse.de>
5665         PR tree-optimization/59047
5666         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
5668 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
5670         * common.opt (fcheck-pointer-bounds): Move to ...
5671         * c-family/c.opt: ... here.
5672         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
5673         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
5674         * langhooks.h (lang_hooks): Remove chkp_supported field.
5675         * toplev.c (process_options): Remove chkp_supported check.
5677 2013-11-08  Richard Biener  <rguenther@suse.de>
5679         PR tree-optimization/59038
5680         PR tree-optimization/58955
5681         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
5682         previous change.  Handle known dependences correctly.
5684 2013-11-08  Tom de Vries  <tom@codesourcery.com>
5686         * config/rs6000/t-xilinx: Remove duplicate contents.
5688 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
5689             Joseph Myers  <joseph@codesourcery.com>
5691         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
5692         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
5693         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
5694         (struct tree_base): Add atomic_flag field.
5695         * tree.h (TYPE_ATOMIC): New accessor macro.
5696         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
5697         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
5698         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
5699         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
5700         * tree.c (set_type_quals): Set TYPE_ATOMIC.
5701         (find_atomic_core_type): New function.
5702         (build_qualified_type): Adjust alignment for qualified types.
5703         (build_atomic_base): New function
5704         (build_common_tree_nodes): Build atomicQI_type_node,
5705         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
5706         atomicTI_type_node.
5707         * print-tree.c (print_node): Print atomic qualifier.
5708         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
5709         * target.def (atomic_assign_expand_fenv): New hook.
5710         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
5711         * doc/tm.texi: Regenerate.
5712         * targhooks.c (default_atomic_assign_expand_fenv): New function.
5713         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
5714         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
5715         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
5716         function type.
5717         * config/i386/i386.c (enum ix86_builtins): Add
5718         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
5719         IX86_BUILTIN_FNCLEX.
5720         (bdesc_special_args): Add __builtin_ia32_fnstenv,
5721         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
5722         (ix86_expand_builtin): Handle the new built-in functions.
5723         (ix86_atomic_assign_expand_fenv): New function.
5724         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
5725         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
5726         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
5727         (fnstenv, fldenv, fnstsw, fnclex): New insns.
5729 2013-11-07  Steve Ellcey  <sellcey@mips.com>
5731         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
5732         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
5733         (MULTILIB_DIRNAMES): Add fp64 directory.
5734         (MULTILIB_EXCEPTIONS): Add new exclusions.
5736 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
5738         * gimplify.c (gimple_regimplify_operands): Do not set
5739         SSA_NAME_DEF_STMT.
5740         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
5741         (rewrite_close_phi_out_of_ssa): Same.
5742         (rewrite_phi_out_of_ssa): Same.
5743         (rewrite_degenerate_phi): Same.
5744         (handle_scalar_deps_crossing_scop_limits): Same.
5745         * tree-if-conv.c (predicate_scalar_phi): Same.
5746         * tree-parloops.c (create_loads_for_reductions): Same.
5747         (create_final_loads_for_reduction): Same.
5748         (create_loads_and_stores_for_name): Same.
5749         (transform_to_exit_first_loop): Same.
5750         (create_parallel_loop): Same.
5751         * tree-ssa-loop-im.c
5752         (move_computations_dom_walker::before_dom_children): Same.
5753         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
5754         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
5755         * tree-ssa-propagate.c (substitute_and_fold): Same.
5756         * tree-vect-loop.c (vect_finalize_reduction): Same.
5757         * tree-vect-stmts.c (vectorizable_call): Same.
5759 2013-11-07  Mike Stump  <mikestump@comcast.net>
5761         * config/pdp11/pdp11.c: Include dbxout.h.
5762         * config/picochip/picochip.c: Likewise.
5764 2013-11-07  Cong Hou  <congh@google.com>
5766         PR tree-optimization/56764
5767         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5768         Combine alias checks if it is possible to amortize the runtime
5769         overhead.  Return the number of alias checks after merging.
5770         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5771         Use the function vect_create_cond_for_alias_checks () to check
5772         the number of alias checks.
5774 2013-11-07  Jeff Law  <law@redhat.com>
5776         * varpool.c (ctor_for_folding): Fix typo in comment.
5778 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
5780         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
5781         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
5783 2013-11-07  Jeff Law  <law@redhat.com>
5785         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
5787         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
5788         No longer check if we have __builtin_trap, assume it's available.
5790 2013-11-07  Diego Novillo  <dnovillo@google.com>
5792         * attribs.c (lookup_scoped_attribute_spec): Make static.
5793         (get_attribute_namespace): Likewise.
5794         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
5795         (validate_arglist): Move earlier in the file. Make static.
5796         (expand_stack_restore): Move from stmt.c
5797         (expand_stack_save): Move from stmt.c
5798         (rewrite_call_expr_array): Move earlier in the file.
5799         (rewrite_call_expr_valist): Likewise.
5800         * cfgexpand.c: Include hard-reg-set.h before tree.h
5801         Include recog.h.
5802         Include output.h.
5803         (expand_asm_loc): Move from stmt.c.
5804         (n_occurrences): Move from stmt.c.
5805         (check_operand_nalternatives): Move from stmt.c.
5806         (tree_conflicts_with_clobbers_p): Move from stmt.c.
5807         (expand_asm_operands): Move from stmt.c
5808         (expand_asm_stmt): Move from stmt.c
5809         (expand_computed_goto): Move from stmt.c
5810         (expand_goto): Move from stmt.c
5811         (expand_null_return_1): Move from stmt.c
5812         (expand_null_return): Move from stmt.c
5813         (expand_value_return): Move from stmt.c
5814         (expand_return): Move from stmt.c
5815         (expand_main_function): Move from function.c
5816         (stack_protect_prologue): Move from function.c
5817         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
5818         (build_function_decl_skip_args): Move from tree.c.
5819         * explow.c (tree_expr_size): Move from tree.c.
5820         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
5821         (fields_length): Move from tree.c.
5822         * fold-const.c (size_low_cst): Move from tree.c.
5823         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
5824         (tree_expr_nonzero_p): Make static. Move earlier in the file.
5825         (fold_build3_initializer_loc): Remove.
5826         (tree_invalid_nonnegative_warnv_p): Make static.
5827         * function.c (expand_main_function): Move to cfgexpand.c.
5828         (stack_protect_prologue): Move to cfgexpand.c.
5829         (set_insn_locations): Move earlier in the file.
5830         * gimple-fold.c: Include langhooks.h.
5831         (truth_type_for): Move from tree.c.
5832         * print-tree.c (print_vec_tree): Remove.
5833         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
5834         (expand_goto): Move to cfgexpand.c.
5835         (n_occurrences): Move to cfgexpand.c.
5836         (expand_asm_loc): Move to cfgexpand.c
5837         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
5838         (expand_asm_operands): Move to cfgexpand.c.
5839         (expand_asm_stmt): Move to cfgexpand.c.
5840         (check_operand_nalternatives): Move to cfgexpand.c
5841         (expand_null_return): Move to cfgexpand.c.
5842         (expand_value_return): Move to cfgexpand.c.
5843         (expand_null_return_1): Move to cfgexpand.c.
5844         (expand_return): Move to cfgexpand.c.
5845         (expand_stack_save): Move to builtins.c.
5846         (expand_stack_restore): Move to builtins.c
5847         * symtab.c: Include output.h.
5848         (decl_assembler_name_hash): Move from tree.c.
5849         (decl_assembler_name_equal): Move from tree.c.
5850         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
5851         * tree-eh.c (in_array_bounds_p): Move from tree.c.
5852         (range_in_array_bounds_p): Move from tree.c.
5853         * tree-object-size.c (fini_object_sizes): Make static.
5854         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
5855         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
5856         * tree.c (decl_assembler_name_equal): Move to symtab.c.
5857         (tree_expr_size): Move to explow.c.
5858         (decl_assembler_name_hash): Move to symtab.c.
5859         (real_twop): Remove.
5860         (tree_expr_size): Move to explow.c.
5861         (stabilize_reference_1): Move earlier in the file. Make static.
5862         (omp_remove_redundant_declare_simd_attrs): Remove.
5863         (simple_cst_list_equal): Move earlier in the file. Make static.
5864         (size_low_cst): Move to fold-const.c.
5865         (build_type_no_quals): Remove.
5866         (build_function_type_skip_args): Move to cgraphclones.c.
5867         (build_function_decl_skip_args): Move to cgraphclones.c.
5868         (in_array_bounds_p): Move to tree-eh.c.
5869         (range_in_array_bounds_p): Move to tree-eh.c.
5870         (truth_type_for): Move to gimple-fold.c.
5871         (list_equal_p): Remove.
5872         * tree.h (decl_assembler_name_equal): Remove.
5873         (decl_assembler_name_hash): Remove.
5874         (truth_type_for): Remove.
5875         (build_type_no_quals): Remove.
5876         (build_function_decl_skip_args): Remove.
5877         (in_array_bounds_p): Remove.
5878         (range_in_array_bounds_p): Remove.
5879         (size_low_cst): Remove.
5880         (omp_remove_redundant_declare_simd_attrs): Remove.
5881         (tree_expr_size): Remove.
5882         (fields_length): Remove.
5883         (stabilize_reference_1): Remove.
5884         (expand_goto): Remove.
5885         (expand_stack_save): Remove.
5886         (expand_stack_restore): Remove.
5887         (expand_return): Remove.
5888         (fold_build3_initializer_loc): Remove.
5889         (tree_expr_nonzero_p): Remove.
5890         (tree_invalid_nonnegative_warnv_p): Remove.
5891         (tree_expr_nonzero_warnv_p): Remove.
5892         (fold_builtin_snprintf_chk): Remove.
5893         (validate_arglist): Remove.
5894         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
5895         (simple_cst_list_equal): Remove.
5896         (real_twop): Remove.
5897         (expand_main_function): Remove.
5898         (stack_protect_prologue): Remove.
5899         (print_vec_tree): Remove.
5900         (lookup_scoped_attribute_spec): Remove.
5901         (get_attribute_namespace): Remove.
5902         (expand_computed_goto): Remove.
5903         (expand_asm_stmt): Remove.
5904         (list_equal_p): Remove.
5905         (ssa_name_nonnegative_p): Remove.
5906         (fini_object_sizes): Remove.
5907         (addr_expr_of_non_mem_decl_p): Remove.
5908         (is_tm_safe_or_pure): Move to trans-mem.c.
5909         (more_const_call_expr_args_p): Remove.
5910         (save_vtable_map_decl): Remove.
5912 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
5914         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
5915         linker plugins, too.
5917         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
5918         link to libgomp and its dependencies.
5919         * config/ia64/hpux.h (LIB_SPEC): Likewise.
5920         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
5921         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
5922         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
5924 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
5926         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
5927         (determine_value_range): Add loop argument.  Use get_range_info to
5928         improve range.
5929         (bound_difference): Adjust caller.
5931 2013-11-07  Richard Biener  <rguenther@suse.de>
5932             Jakub Jelinek  <jakub@redhat.com>
5934         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
5935         latches from header PHI arguments from the latch edge.
5937 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
5939         PR c++/58176
5940         * varasm.c (output_constant): Handle NULLPTR_TYPE.
5942 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
5944         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
5945         misaligned_prologue_used when it has been set.
5947 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
5948             Jakub Jelinek  <jakub@redhat.com>
5950         PR sanitizer/59029
5951         * asan.c (get_mem_refs_of_builtin_call): Allow
5952         integer literals as addresses in instrumented builtins.
5954 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5956         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
5957         Explain why plus_constant is not used.
5959 2013-11-07  Richard Biener  <rguenther@suse.de>
5961         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
5962         (canonicalize_value): ... this.  Also handle stripping of
5963         TREE_OVERFLOW.
5964         (get_value, set_lattice_value, get_value_for_expr): Adjust.
5965         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
5966         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
5968 2013-11-07  Richard Biener  <rguenther@suse.de>
5970         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
5972 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
5974         PR target/59034
5975         * config/i386/i386.md (push peepholer/splitter): Use Pmode
5976         with stack_pointer_rtx.
5978 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
5980         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
5981         using operand_equal_p.
5983 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
5985         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
5986         * tree-affine.c (get_inner_reference_aff): Return base.
5987         * tree-affine.h (get_inner_reference_aff): Change prototype.
5989 2013-11-06  Tobias Burnus  <burnus@net-b.de>
5991         * doc/invoke.texi (Wdate-time): Fix typo.
5993 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
5995         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
5996         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
5997         fp_arith_reg_operand instead of arith_reg_operand.
5999 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
6001         * config/sh/sh.md (adddi3): Remove empty constraints.
6002         Remove can_create_pseudo_p and arith_reg_operand check.
6003         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
6004         Split before reload.
6006 2013-11-06  Jeff Law  <law@redhat.com>
6007             Tom Tromey  <tromey@redhat.com>
6009         * gdbinit.in: Disable strict type checking.
6011 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
6013         * tree-pass.h (make_pass_live_range_shrinkage): New external.
6014         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
6015         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
6016         (rest_of_handle_live_range_shrinkage): Ditto
6017         (class pass_live_range_shrinkage): Ditto.
6018         (pass_data_live_range_shrinkage): Ditto.
6019         (make_pass_live_range_shrinkage): Ditto.
6020         * sched-int.h (initialize_live_range_shrinkage): New prototype.
6021         (finish_live_range_shrinkage): Ditto.
6022         * sched-deps.c (create_insn_reg_set): Make void return value.
6023         * passes.def: Add pass_live_range_shrinkage.
6024         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
6025         * haifa-sched.c (live_range_shrinkage_p): New.
6026         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
6027         New functions.
6028         (rank_for_schedule): Add code for pressure relief through live
6029         range shrinkage.
6030         (schedule_insn): Print more debug info.
6031         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
6032         through live range shrinkage.
6033         * doc/invoke.texi (-flive-range-shrinkage): New.
6034         * common.opt (flive-range-shrinkage): New.
6036 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
6038         PR target/59021
6039         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
6040         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
6041         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
6042         RTXes that return in AVX256 register.
6044 2013-11-06  Richard Biener  <rguenther@suse.de>
6046         PR tree-optimization/58653
6047         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
6048         (prepare_initializers_chain): Adjust.
6050 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
6052         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
6053         (gimple_in_transaction): Use bb_in_transaction.
6054         * basic-block.h (bb_in_transaction): Relocate here and rename.
6055         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
6057 2013-11-06  Richard Biener  <rguenther@suse.de>
6059         * tree.c (drop_tree_overflow): New function.
6060         * tree.h (drop_tree_overflow): Declare.
6061         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
6062         * tree-vrp.c (range_int_cst_singleton_p): Use
6063         is_overflow_infinity instead of testing TREE_OVERFLOW.
6064         (extract_range_from_assert): Likewise.
6065         (zero_nonzero_bits_from_vr): Likewise.
6066         (extract_range_basic): Likewise.
6067         (register_new_assert_for): Use drop_tree_overflow.
6068         (vrp_visit_phi_node): Likewise.
6070 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
6072         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
6073         checking for leaf functions without dynamic stack allocation.
6074         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
6075         (ia64_expand_prologue): Likewise.
6076         * config/mips/mips.c (mips_expand_prologue): Likewise.
6077         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6078         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6079         (sparc_flat_expand_prologue): Likewise.
6081 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
6083         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
6084         (__ST3_LANE_FUNC): Likewise.
6085         (__ST4_LANE_FUNC): Likewise.
6087 2013-11-06  Nick Clifton  <nickc@redhat.com>
6089         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
6090         name returned by msp430_mcu_name.
6091         (LIB_SPEC): If a -T option has not been specified then set a
6092         default, mcu-specific, linker script.
6093         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
6094         * config/msp430/msp430.c (msp430x_names): Likewise.
6095         Alpha sort the names for ease of comparison.
6096         (msp430_mcu_name): New function:  Returns a string suitable for
6097         use as a C preprocessor symbol based upon the name of the MCU
6098         being targeted.
6099         (msp430_option_override): Accept msp430x and msp430xv2 as generic
6100         mcu names.
6101         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
6103         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
6104         unless it is the last part of a spec substring.
6105         * doc/invoke.texi (Spec Files): Document space insertion
6106         behaviour of %*.
6108 2013-11-06  Christian Bruel  <christian.bruel@st.com>
6110         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
6111         Factorize probabilities, Use adjust_address instead of
6112         adjust_automodify_address when possible. Enable for optimize.
6113         (sh_expand_strlen): New function.
6114         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
6115         * config/sh/sh.md (strlensi): New pattern.
6116         (UNSPEC_BUILTIN_STRLEN): Define.
6118 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
6120         PR middle-end/58970
6121         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
6122         (expand_assignment): If *bitpos is negative, set *offset
6123         and adjust *bitpos, so that it is not negative.
6125 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
6127         * config/i386/bdver3.md : Added two additional decoder units
6128         to support issue rate of 4 and remodeled vector unit.
6129         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
6130         architectures is set to 4.
6131         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
6132         lookahead is set to 4 for BD architectures.
6134 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6136         * config/rs6000/rs6000.c (rs6000_option_override_internal):
6137         Remove restriction against use of VSX instructions when generating
6138         code for little endian mode.
6140 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6142         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
6143         for both big and little endian.
6144         (mulv8hi3): Swap input operands for merge high and merge low
6145         instructions for little endian.
6147 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6149         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
6150         define_insn to define_expand that uses even patterns for big
6151         endian and odd patterns for little endian.
6152         (vec_widen_smult_even_v16qi): Likewise.
6153         (vec_widen_umult_even_v8hi): Likewise.
6154         (vec_widen_smult_even_v8hi): Likewise.
6155         (vec_widen_umult_odd_v16qi): Likewise.
6156         (vec_widen_smult_odd_v16qi): Likewise.
6157         (vec_widen_umult_odd_v8hi): Likewise.
6158         (vec_widen_smult_odd_v8hi): Likewise.
6159         (altivec_vmuleub): New define_insn.
6160         (altivec_vmuloub): Likewise.
6161         (altivec_vmulesb): Likewise.
6162         (altivec_vmulosb): Likewise.
6163         (altivec_vmuleuh): Likewise.
6164         (altivec_vmulouh): Likewise.
6165         (altivec_vmulesh): Likewise.
6166         (altivec_vmulosh): Likewise.
6168 2013-11-05  Mike Stump  <mikestump@comcast.net>
6170         * Makefile.in (mostlyclean): Remove c-family objects.
6172 2013-11-05  Ian Lance Taylor  <iant@google.com>
6174         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
6175         If possible, add .cfi directives to record change to bx.
6176         * config/i386/i386.c (ix86_emit_cfi): New function.
6177         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
6179 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
6181         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
6182         immediately after a label for a tablejump pattern.
6184         * config/arm/arm.c (is_jump_table): Remove.
6185         (create_fix_barrier): Use tablejump_p instead.
6186         (arm_reorg): Likewise.
6187         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
6188         (thumb2_output_casesi): Likewise.
6189         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
6190         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
6191         casesi_shift_media, casesi_load_media): Likewise.
6192         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
6193         * config/microblaze/microblaze.md: Likewise.
6195 2013-11-05  Tobias Burnus  <burnus@net-b.de>
6197         * doc/invoke.texi (-Wdate-time): Document.
6199 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
6201         * double-int.c (lshift_double, rshift_double): Remove
6202         SHIFT_COUNT_TRUNCATED handling.
6204 2013-11-05  Jeff Law  <law@redhat.com>
6206         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
6207         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
6208         * gimple-ssa-isolate-paths.c: New file.
6209         * gimple.c (check_loadstore): New function.
6210         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
6211         Verify OP is in the argument list and the argument corresponding
6212         to OP is a pointer type.  Use operand_equal_p rather than
6213         pointer equality when testing if OP is on the nonnull list.
6214         Use check_loadstore rather than count_ptr_derefs.  Handle
6215         GIMPLE_RETURN statements.
6216         * tree-vrp.c (infer_nonnull_range): Remove.
6217         * gimple.h (infer_nonnull_range): Declare.
6218         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
6219         * passes.def: Add pass_isolate_erroneous_paths.
6220         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
6221         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
6222         * tree-ssa.c (struct count_ptr_d): Remove.
6223         (count_ptr_derefs, count_uses_and_derefs): Remove.
6224         * tree-ssa.h (count_uses_and_derefs): Remove.
6226 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
6228         PR rtl-optimization/58997
6229         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
6230         get_iv_value to be in iv->mode rather than iv->extend_mode.
6231         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
6232         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
6233         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
6234         mode.
6236 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
6238         * gimple.h: Move some prototypes to gimple-expr.h and add to include
6239         list.
6240         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
6241         Move to gimple-expr.h.
6242         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
6243         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
6244         is_gimple_id, virtual_operand_p, is_gimple_addressable,
6245         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
6246         Relocate here.
6247         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
6248         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
6249         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
6250         is_gimple_address, is_gimple_invariant_address,
6251         is_gimple_ip_invariant_address, is_gimple_min_invariant,
6252         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
6253         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
6254         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
6255         gimple_decl_printable_name, useless_type_conversion_p,
6256         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
6257         gimple-expr.[ch].
6258         * gimple-expr.c: New File.
6259         (useless_type_conversion_p, gimple_set_body, gimple_body,
6260         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
6261         gimple_can_coalesce_p, extract_ops_from_tree_1,
6262         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
6263         is_gimple_address, is_gimple_invariant_address,
6264         is_gimple_ip_invariant_address, is_gimple_min_invariant,
6265         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
6266         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
6267         is_gimple_mem_ref_addr): Relocate here.
6268         * Makefile.in (OBJS): Add gimple-expr.o.
6270 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
6272         * gengtype-parse.c (struct_field_seq): Support empty structs.
6274 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
6276         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
6278 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
6280         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
6281         for !TARGET_80387.
6282         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
6283         _SOFT_FLOAT here.
6284         (LONG_DOUBLE_TYPE_SIZE): New define.
6285         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
6287 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
6289         PR c++/58724
6290         * doc/extend.texi [visibility ("visibility_type")]: Add example
6291         about visibility attribute on namespace declaration.
6293 2013-11-05  Richard Biener  <rguenther@suse.de>
6295         PR ipa/58492
6296         * passes.def (all_passes): Start with pass_fixup_cfg again.
6298 2013-11-05  Richard Biener  <rguenther@suse.de>
6300         PR tree-optimization/58955
6301         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
6302         edge direction.
6304 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6306         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
6307         little endian.
6308         (vec_pack_ufix_trunc_v2df): Likewise.
6310 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
6312         PR middle-end/58981
6313         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
6314         pattern, instead of word_mode.
6316         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
6317         Pmode for size.
6318         (set_storage_via_setmem): Likewise.
6320 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
6322         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
6323         gimple.h and the rest of the condition in eliminate_build.
6324         (eliminate_build): Call new routine.
6325         * gimple.h (phi_ssa_name_p): Delete.
6327 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
6329         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
6330         case of no prefix and reserving zero slots, because when that's the
6331         case we'll never get here.
6332         * vec.h (va_heap::reserve): Don't try and handle
6333         vec_prefix::calculate_allocation returning zero because that should
6334         never happen.
6336 2013-11-05  Richard Biener  <rguenther@suse.de>
6338         PR middle-end/58941
6339         * tree-dfa.c (get_ref_base_and_extent): Merge common code
6340         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
6341         process trailing array detection before diving into the
6342         view-converted object (and possibly apply some extra offset).
6344 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
6346         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
6347         New function.
6348         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
6350 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
6352         PR tree-optimization/58958
6353         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
6354         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
6356 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
6358         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
6359         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
6361 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
6363         PR tree-optimization/58984
6364         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
6365         set *SIZE_P if non-NULL on success.
6366         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
6367         callers.
6368         (ipcp_transform_function): Likewise.  Punt if size of access
6369         is different from TYPE_SIZE on v->value's type.
6371 2013-11-05  Tobias Burnus  <burnus@net-b.de>
6373         * doc/invoke.texi (-fopenmp-simd): Document new option.
6374         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
6375         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
6376         * tree.c (attribute_value_equal): Ditto.
6378 2013-11-04  Wei Mi  <wmi@google.com>
6380         * sched-rgn.c (add_branch_dependences): Keep insns in
6381         a SCHED_GROUP at the end of BB to remain their location.
6383 2013-11-04  Wei Mi  <wmi@google.com>
6385         * config/i386/i386.c (memory_address_length): Extract a part
6386         of code to rip_relative_addr_p.
6387         (rip_relative_addr_p): New Function.
6388         (ix86_macro_fusion_p): Ditto.
6389         (ix86_macro_fusion_pair_p): Ditto.
6390         * config/i386/i386.h: Add new tune features about macro-fusion.
6391         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6392         * doc/tm.texi: Generated.
6393         * doc/tm.texi.in: Ditto.
6394         * haifa-sched.c (try_group_insn): New Function.
6395         (group_insns_for_macro_fusion): Ditto.
6396         (sched_init): Call group_insns_for_macro_fusion.
6397         * target.def: Add two hooks: macro_fusion_p and
6398         macro_fusion_pair_p.
6400 2013-11-04  Kostya Serebryany  <kcc@google.com>
6402         Update to match the changed asan API.
6403         * asan.c (asan_function_start): New function.
6404         (asan_emit_stack_protection): Update the string stored in the
6405         stack red zone to match new API.  Store the PC of the current
6406         function in the red zone.
6407         (asan_global_struct): Update the __asan_global definition to match
6408         the new API.
6409         (asan_add_global): Ditto.
6410         * asan.h (asan_function_start): New prototype.
6411         * final.c (final_start_function): Call asan_function_start.
6412         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
6413         to __asan_init_v3.
6415 2013-11-04  Wei Mi  <wmi@google.com>
6417         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
6418         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
6419         * config/i386/i386.c (ix86_option_override_internal): Ditto.
6420         (ix86_issue_rate): Ditto.
6421         (ix86_adjust_cost): Ditto.
6422         (ia32_multipass_dfa_lookahead): Ditto.
6423         (ix86_sched_init_global): Ditto.
6424         (get_builtin_code_for_version): Ditto.
6425         * config/i386/i386.h (enum target_cpu_default): Ditto.
6426         (enum processor_type): Ditto.
6427         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6429 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
6431         PR rtl-optimization/58967
6432         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
6433         !lra_in_progress for mode sizes bigger word.
6435 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6437         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
6438         arguments to merge instruction for little endian.
6439         (vec_widen_umult_lo_v16qi): Likewise.
6440         (vec_widen_smult_hi_v16qi): Likewise.
6441         (vec_widen_smult_lo_v16qi): Likewise.
6442         (vec_widen_umult_hi_v8hi): Likewise.
6443         (vec_widen_umult_lo_v8hi): Likewise.
6444         (vec_widen_smult_hi_v8hi): Likewise.
6445         (vec_widen_smult_lo_v8hi): Likewise.
6447 2013-11-04  Ian Lance Taylor  <iant@google.com>
6449         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
6450         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
6451         builtins that take pointers.
6452         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
6453         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
6454         (run_gcc): Pass -fnon-call-exceptions.
6456 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
6458         * optabs.c (expand_vec_perm): Revert one incorrect line from
6459         2013-10-31 change.
6461         PR tree-optimization/58978
6462         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
6463         use_stmt by single_imm_use directly.  Only call single_imm_use
6464         on SSA_NAMEs.
6466 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
6468         PR rtl-optimization/58968
6469         * lra-spills.c (return_regno_p): New function.
6470         (lra_final_code_change): Use it.
6472 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
6474         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
6475         * target.def (float_exceptions_rounding_supported_p): New hook.
6476         * targhooks.c (default_float_exceptions_rounding_supported_p): New
6477         function.
6478         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
6479         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
6480         New @hook.
6481         * doc/tm.texi: Regenerate.
6482         * config.gcc (powerpc*-*-linux*): Set extra_objs.
6483         * config/rs6000/rs6000-linux.c: New file.
6484         * config/rs6000/rs6000-protos.h
6485         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
6486         * config/rs6000/linux.h
6487         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
6488         * config/rs6000/linux64.h
6489         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
6490         * config/rs6000/t-linux (rs6000-linux.o): New rule.
6491         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
6493 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6495         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
6496         Replace the define_insn_and_split with a define_insn and two
6497         define_splits, with the split after reload re-permuting the source
6498         register to its original value.
6499         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
6500         (*vsx_le_perm_store_v8hi): Likewise.
6501         (*vsx_le_perm_store_v16qi): Likewise.
6503 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6505         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
6506         little endian.
6508 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
6510         PR tree-optimization/58946
6511         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
6512         bbs with bbinfo[idx].op != NULL before all blocks with
6513         bbinfo[idx].op == NULL.
6515 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
6517         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
6518         (avr_dump_double_int_hex): Likewise.
6519         (avr_log_vadump): Remove %D and %X handling.
6520         * config/avr/avr.c (avr_double_int_push_digit): Delete.
6521         (avr_map_op_t): Change map from double_int to unsigned int.
6522         (avr_map_op): Update accordingly.
6523         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
6524         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
6525         unsigned ints rather than double_ints.
6527 2013-11-03  Marek Polacek  <polacek@redhat.com>
6529         Implement -fsanitize=vla-bound.
6530         * opts.c (common_handle_option): Handle vla-bound.
6531         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
6532         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
6533         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
6535 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
6537         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
6538         little endian.
6540 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
6542         * config/i386/constraints.md (Ts, Tv): New address constrains.
6543         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
6544         constraint for address_no_seg_operand.
6545         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
6546         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
6547         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
6548         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
6549         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
6550         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
6551         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
6552         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
6553         constraint for vsib_address_operand.
6555 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
6557         * gcse.c (pre_delete): Remove references to regmove from comments.
6558         * recog.c: (validate_replace_rtx_1): Likewise.
6559         * config/rl78/rl78.c: Likewise.
6560         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
6561         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
6562         * common/config/mmix/mmix-common.c: Likewise.
6564 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
6566         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
6567         * gimplify.c (gimplify_compound_lval): Likewise.
6568         * graphite-clast-to-gimple.c (gloog): Likewise.
6569         * graphite-dependences.c (loop_is_parallel_p): Likewise.
6570         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
6571         (limit_scop); Likewise.
6572         (build_scops): Likewise.
6573         (dot_scop): Likewise.
6574         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
6575         (build_scop_drs): Likewise.
6576         (insert_stmts): Likewise.
6577         (insert_out_of_ssa_copy): Likewise.
6578         (remove_phi): Likewise.
6579         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
6580         * hw-doloop.c (discover_loop): Likewise.
6581         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
6582         * tree-dfa.c (dump_enumerated_decls): Likewise.
6583         * tree-if-conv.c (if_convertable_loop_p): Likewise.
6584         * tree-inline.c (tree_function_versioning): Likewise.
6585         * tree-loop-distribution.c (build_rdg): Likewise.
6586         (rdg_flag_vertex_and_dependent): Likewise.
6587         (distribute_loop): Likewise.
6588         * tree-parloops.c (loop_parallel_p): Likewise.
6589         (eliminate_local_variables): Likewise.
6590         (separate_decls_in_region): Likewise.
6591         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
6592         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
6593         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
6594         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
6595         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
6596         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
6597         (vectorizable_condition): Likewise.
6599 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
6601         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
6602         * configure: Regenerate.
6603         * config/i386/i386.md (*movdi_internal): Change
6604         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
6605         (*movdf_internal): Ditto.
6606         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
6607         * config/i386/sse.md (vec_concatv2di): Output interunit movq
6608         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
6610 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
6612         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
6613         after comment.
6615 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
6617         Automated part of renaming of symtab_node_base to symtab_node.
6619         Patch autogenerated by rename_symtab.py from
6620         https://github.com/davidmalcolm/gcc-refactoring-scripts
6621         revision 58bb219cc090b2f4516a9297d868c245495ee622
6622         with ChangeLog entry fixed up by hand.
6624         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
6625         symtab_node.
6626         (cgraph_node_for_asm): Likewise.
6627         * cgraph.h (symtab_node_base): Likewise.
6628         (cgraph_node): Likewise.
6629         (varpool_node): Likewise.
6630         (is_a_helper <cgraph_node>::test): Likewise.
6631         (is_a_helper <varpool_node>::test): Likewise.
6632         (symtab_nodes): Likewise.
6633         (symtab_register_node): Likewise.
6634         (symtab_unregister_node): Likewise.
6635         (symtab_remove_node): Likewise.
6636         (symtab_get_node): Likewise.
6637         (symtab_node_for_asm): Likewise.
6638         (symtab_node_asm_name): Likewise.
6639         (symtab_node_name): Likewise.
6640         (symtab_insert_node_to_hashtable): Likewise.
6641         (symtab_add_to_same_comdat_group): Likewise.
6642         (symtab_dissolve_same_comdat_group_list): Likewise.
6643         (dump_symtab_node): Likewise.
6644         (debug_symtab_node): Likewise.
6645         (dump_symtab_base): Likewise.
6646         (verify_symtab_node): Likewise.
6647         (verify_symtab_base): Likewise.
6648         (symtab_used_from_object_file_p): Likewise.
6649         (symtab_alias_ultimate_target): Likewise.
6650         (symtab_resolve_alias): Likewise.
6651         (fixup_same_cpp_alias_visibility): Likewise.
6652         (symtab_for_node_and_aliases): Likewise.
6653         (symtab_nonoverwritable_alias): Likewise.
6654         (availability symtab_node_availability): Likewise.
6655         (symtab_semantically_equivalent_p): Likewise.
6656         (fixup_same_cpp_alias_visibility): Likewise.
6657         (symtab_prevail_in_asm_name_hash): Likewise.
6658         (cgraph): Likewise.
6659         (varpool): Likewise.
6660         (varpool_first_variable): Likewise.
6661         (varpool_next_variable): Likewise.
6662         (varpool_first_static_initializer): Likewise.
6663         (varpool_next_static_initializer): Likewise.
6664         (varpool_first_defined_variable): Likewise.
6665         (varpool_next_defined_variable): Likewise.
6666         (cgraph_first_defined_function): Likewise.
6667         (cgraph_next_defined_function): Likewise.
6668         (cgraph_first_function): Likewise.
6669         (cgraph_next_function): Likewise.
6670         (cgraph_first_function_with_gimple_body): Likewise.
6671         (cgraph_next_function_with_gimple_body): Likewise.
6672         (symtab_alias_target): Likewise.
6673         (symtab_real_symbol_p): Likewise.
6674         (symtab_can_be_discarded): Likewise.
6675         * cgraphbuild.c (mark_address): Likewise.
6676         (mark_load): Likewise.
6677         (mark_store): Likewise.
6678         * cgraphunit.c (decide_is_symbol_needed): Likewise.
6679         (first): Likewise.
6680         (enqueue_node): Likewise.
6681         (referred_to_p): Likewise.
6682         (cgraph_process_same_body_aliases): Likewise.
6683         (analyze_functions): Likewise.
6684         (handle_alias_pairs): Likewise.
6685         (output_weakrefs): Likewise.
6686         (compile): Likewise.
6687         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
6688         * ipa-inline-analysis.c (inline_write_summary): Likewise.
6689         * ipa-prop.c (remove_described_reference): Likewise.
6690         (try_decrement_rdesc_refcount): Likewise.
6691         (ipa_edge_duplication_hook): Likewise.
6692         * ipa-ref.c (ipa_record_reference): Likewise.
6693         (ipa_maybe_record_reference): Likewise.
6694         (ipa_clone_ref): Likewise.
6695         (ipa_clone_references): Likewise.
6696         (ipa_clone_referring): Likewise.
6697         (ipa_find_reference): Likewise.
6698         (ipa_remove_stmt_references): Likewise.
6699         (ipa_clear_stmts_in_references): Likewise.
6700         * ipa-ref.h (symtab_node_base): Likewise.
6701         (ipa_ref): Likewise.
6702         (ipa_record_reference): Likewise.
6703         (ipa_maybe_record_reference): Likewise.
6704         (ipa_clone_references): Likewise.
6705         (ipa_clone_referring): Likewise.
6706         (ipa_clone_ref): Likewise.
6707         (ipa_find_reference): Likewise.
6708         (ipa_remove_stmt_references): Likewise.
6709         (ipa_clear_stmts_in_references): Likewise.
6710         * ipa-reference.c (ipa_reference_write_optimization_summary):
6711         Likewise.
6712         * ipa.c (enqueue_node): Likewise.
6713         (process_references): Likewise.
6714         (walk_polymorphic_call_targets): Likewise.
6715         (symtab_remove_unreachable_nodes): Likewise.
6716         (address_taken_from_non_vtable_p): Likewise.
6717         (comdat_can_be_unshared_p_1): Likewise.
6718         (comdat_can_be_unshared_p): Likewise.
6719         (can_replace_by_local_alias): Likewise.
6720         (function_and_variable_visibility): Likewise.
6721         * is-a.h: Likewise (within example in comment).
6722         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
6723         (lto_symtab_encoder_encode): Likewise.
6724         (lto_symtab_encoder_delete_node): Likewise.
6725         (lto_symtab_encoder_in_partition_p): Likewise.
6726         (lto_set_symtab_encoder_in_partition): Likewise.
6727         (output_refs): Likewise.
6728         (compute_ltrans_boundary): Likewise.
6729         (output_symtab): Likewise.
6730         (input_node): Likewise.
6731         (input_ref): Likewise.
6732         (input_edge): Likewise.
6733         (input_cgraph_1): Likewise.
6734         (input_refs): Likewise.
6735         (output_cgraph_opt_summary): Likewise.
6736         (input_node_opt_summary): Likewise.
6737         (input_cgraph_opt_section): Likewise.
6738         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
6739         Likewise.
6740         * lto-streamer-out.c (lto_output): Likewise.
6741         (output_symbol_p): Likewise.
6742         (produce_symtab): Likewise.
6743         * lto-streamer.h (lto_encoder_entry): Likewise.
6744         (lto_free_function_in_decl_state_for_node): Likewise.
6745         (lto_symtab_encoder_encode): Likewise.
6746         (lto_symtab_encoder_delete_node): Likewise.
6747         (lto_symtab_encoder_in_partition_p): Likewise.
6748         (lto_set_symtab_encoder_in_partition): Likewise.
6749         (lto_symtab_encoder_lookup): Likewise.
6750         (lsei_node): Likewise.
6751         (lto_symtab_encoder_deref): Likewise.
6752         * symtab.c (symtab_hash): Likewise.
6753         (assembler_name_hash): Likewise.
6754         (symtab_nodes): Likewise.
6755         (hash_node): Likewise.
6756         (eq_node): Likewise.
6757         (hash_node_by_assembler_name): Likewise.
6758         (eq_assembler_name): Likewise.
6759         (insert_to_assembler_name_hash): Likewise.
6760         (unlink_from_assembler_name_hash): Likewise.
6761         (symtab_prevail_in_asm_name_hash): Likewise.
6762         (symtab_register_node): Likewise.
6763         (symtab_insert_node_to_hashtable): Likewise.
6764         (symtab_unregister_node): Likewise.
6765         (symtab_get_node): Likewise.
6766         (symtab_remove_node): Likewise.
6767         (symtab_initialize_asm_name_hash): Likewise.
6768         (symtab_node_for_asm): Likewise.
6769         (symtab_add_to_same_comdat_group): Likewise.
6770         (symtab_dissolve_same_comdat_group_list): Likewise.
6771         (symtab_node_asm_name): Likewise.
6772         (symtab_node_name): Likewise.
6773         (dump_symtab_base): Likewise.
6774         (dump_symtab_node): Likewise.
6775         (dump_symtab): Likewise.
6776         (debug_symtab_node): Likewise.
6777         (verify_symtab_base): Likewise.
6778         (verify_symtab_node): Likewise.
6779         (verify_symtab): Likewise.
6780         (symtab_used_from_object_file_p): Likewise.
6781         (symtab_node_availability): Likewise.
6782         (symtab_alias_ultimate_target): Likewise.
6783         (fixup_same_cpp_alias_visibility): Likewise.
6784         (symtab_resolve_alias): Likewise.
6785         (symtab_for_node_and_aliases): Likewise.
6786         (symtab_for_node_and_aliases): Likewise.
6787         (symtab_nonoverwritable_alias_1): Likewise.
6788         (symtab_nonoverwritable_alias): Likewise.
6789         (symtab_semantically_equivalent_p): Likewise.
6790         * value-prof.c (init_node_map): Likewise.
6791         * varasm.c (find_decl): Likewise.
6792         * varpool.c (varpool_node_for_asm): Likewise.
6793         (varpool_remove_unreferenced_decls): Likewise.
6795 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
6797         Manual part of renaming of symtab_node_base to symtab_node.
6799         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
6800         clashes with the preferred name for the base class.
6801         (const_symtab_node): Remove redundant typedef.
6803 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
6805         * optabs.c (expand_vec_perm): Avoid vector mode punning
6806         SUBREGs in SET_DEST.
6807         * expmed.c (store_bit_field_1): Likewise.
6808         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
6809         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
6810         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
6811         * config/i386/i386.c (ix86_expand_vector_move_misalign,
6812         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
6813         ix86_expand_sse_unpack, ix86_expand_args_builtin,
6814         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
6815         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
6816         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
6817         expand_vec_perm_vpshufb2_vpermq,
6818         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
6819         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
6820         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
6821         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
6822         than *d itself.
6824 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
6826         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
6827         Use gcc_unreachable for unhandled modes.  Do not check results of
6828         expand_simple_binop.  If not expanded to target, move the result.
6830 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
6831             Shiva Chen  <shiva0217@gmail.com>
6833         * config.gcc (nds32*-*-*): Add nds32 target.
6834         * config/nds32/nds32.c: New file.
6835         * config/nds32/nds32.h: New file.
6836         * config/nds32/nds32.md: New file.
6837         * config/nds32/constants.md: New file.
6838         * config/nds32/constraints.md: New file.
6839         * config/nds32/iterators.md: New file.
6840         * config/nds32/nds32-doubleword.md: New file.
6841         * config/nds32/nds32-intrinsic.md: New file.
6842         * config/nds32/nds32_intrinsic.h: New file.
6843         * config/nds32/nds32-modes.def: New file.
6844         * config/nds32/nds32-multiple.md: New file.
6845         * config/nds32/nds32.opt: New file.
6846         * config/nds32/nds32-opts.h: New file.
6847         * config/nds32/nds32-protos.h: New file.
6848         * config/nds32/nds32-peephole2.md: New file.
6849         * config/nds32/pipelines.md: New file.
6850         * config/nds32/predicates.md: New file.
6851         * config/nds32/t-mlibs: New file.
6852         * common/config/nds32: New directory and files.
6854         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
6855         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
6856         * doc/install.texi (Cross-Compiler-Specific Options): Document
6857         --with-nds32-lib for nds32 target.
6858         * doc/extend.texi (Function Attributes, Target Builtins): Document
6859         nds32 specific attributes.
6861 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
6863         * lra-constraints (process_alt_operands): Use the result
6864         elimination register for operand when matching constraints.
6866 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
6868         * tree-vrp.c (maybe_set_nonzero_bits): New function.
6869         (remove_range_assertions): Call it.
6871         * tree.c (tree_ctz): New function.
6872         * tree.h (tree_ctz): New prototype.
6873         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
6874         first argument from tree to const_tree.
6875         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
6876         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
6877         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
6878         static.
6879         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
6880         * tree-vect-loop.c (vect_analyze_loop_operations,
6881         vect_transform_loop): Don't force scalar loop for bound just because
6882         number of iterations is unknown, only do it if it is not known to be
6883         a multiple of vectorization_factor.
6884         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
6886         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
6887         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
6888         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
6889         (set_nonzero_bits, get_nonzero_bits): New prototypes.
6890         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
6891         a default def isn't partially constant.
6892         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
6893         is known to be partially zero.
6894         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
6895         to see if a default def isn't partially constant.
6896         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
6897         creation of a range, if VR_RANGE, try to improve nonzero_bits from
6898         the range.
6899         (set_nonzero_bits, get_nonzero_bits): New functions.
6901         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
6902         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
6903         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
6904         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
6905         uses but in the condition and ASSERT_EXPR and the other successor of
6906         the predecessor bb is __builtin_unreachable (), set_range_info of the
6907         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
6909 2013-10-31  Martin Jambor  <mjambor@suse.cz>
6911         PR rtl-optimization/58934
6912         Revert:
6913         2013-10-30  Martin Jambor  <mjambor@suse.cz>
6914         PR rtl-optimization/10474
6915         * ira.c (find_moveable_pseudos): Do not calculate dominance info
6916         nor df analysis.
6917         (interesting_dest_for_shprep): New function.
6918         (split_live_ranges_for_shrink_wrap): Likewise.
6919         (ira): Calculate dominance info and df analysis. Call
6920         split_live_ranges_for_shrink_wrap.
6922 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
6923             Yury Gribov  <y.gribov@samsung.com>
6925         PR sanitizer/58543
6926         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
6927         shadow pointer to avoid clobbering the main one.
6929 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
6931         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
6933 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
6935         PR bootstrap/58933
6936         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
6937         it for calling update_costs_from_allocno.
6938         (assign_hard_reg): Call restore_costs_from_copies only for
6939         !retry_p.  Pass new argument to update_costs_from_copies.
6940         (color_pass): Pass new argument to update_costs_from_copies.
6941         (ira_mark_allocation_change): Ditto.
6943 2013-10-30  Sharad Singhai  <singhai@google.com>
6945         PR middle-end/58134
6946         * opts.c (common_handle_option): Remove deprecated option
6947         -ftree-vectorizer-verbose.
6948         * doc/invoke.texi (Debugging Options): Ditto.
6949         * opts-global.c (handle_common_deferred_options): Ditto.
6950         (dump_remap_tree_vectorizer_verbose): Delete.
6951         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
6953 2013-10-30  DJ Delorie  <dj@redhat.com>
6955         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
6956         that take no arguments.
6958 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
6960         PR other/58545
6961         * reload1.c (update_eliminables_and_spill): New function, broken
6962         out of reload.
6963         (reload): Use it.  Check for frame size change after frame size
6964         alignment, and call update_eliminables_and_spill first if continue-ing.
6966 2013-10-30  Cong Hou  <congh@google.com>
6968         PR target/58762
6969         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
6970         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
6971         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
6973 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
6975         PR rtl-optimization/58369
6976         * reload1.c (compute_reload_subreg_offset): New function.
6977         (choose_reload_regs): Use it to pass endian-correct
6978         offset to subreg_regno_offset.
6980 2013-10-30  Tobias Burnus  <burnus@net-b.de>
6982         PR other/33426
6983         * tree-cfg.c (replace_loop_annotate): Replace warning by
6984         warning_at.
6986 2013-10-30  Jason Merrill  <jason@redhat.com>
6988         * configure.ac (loose_warn): Add -Wno-format if
6989         --disable-build-format-warnings.
6991 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
6993         * cgraphunit.c (analyze_functions): Split symtab_node declarations
6994         onto multiple lines to make things easier for rename_symtab.py.
6996         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
6997         (symtab_semantically_equivalent_p): Likewise.
6999 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7001         PR target/58784
7002         * lra.c (check_rtl): Remove address check before LRA work.
7004 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
7006         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
7007         POINTER_PLUS_EXPR in the defining statement.
7009 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7011         * regmove.c: Remove.
7012         * tree-pass.h (make_pass_regmove): Remove.
7013         * timevar.def (TV_REGMOVE): Remove.
7014         * passes.def (pass_regmove): Remove.
7015         * opts.c (default_options_table): Remove entry for regmove.
7016         * doc/passes.texi: Remove regmove pass description.
7017         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
7018         options.
7019         (-fdump-rtl-regmove): Ditto.
7020         * common.opt (foptimize-register-move, fregmove): Ignore.
7021         * Makefile.in (OBJS): Remove regmove.o.
7022         * regmove.c: Remove.
7023         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
7024         and type.
7025         (struct ira_allocno) New member allocno_prefs.
7026         (ALLOCNO_PREFS): New macro.
7027         (ira_prefs, ira_prefs_num): New external vars.
7028         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
7029         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
7030         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
7031         Ditto.
7032         (ira_add_allocno_copy_to_list): Remove prototype.
7033         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
7034         (ira_pref_iterator): New type.
7035         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
7036         (FOR_EACH_PREF): New macro.
7037         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
7038         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
7039         code.
7040         (ira_setup_alts): New function.
7041         (decrease_live_ranges_number): New function.
7042         (ira): Call the above function.
7043         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
7044         (ira_create_allocno): Initialize allocno prefs.
7045         (pref_pool, pref_vec): New static vars.
7046         (initiate_prefs, find_allocno_pref, ira_create_pref): New
7047         functions.
7048         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
7049         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
7050         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
7051         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
7052         (ira_add_allocno_copy_to_list): Make static.  Rename to
7053         add_allocno_copy_to_list.
7054         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
7055         swap_allocno_copy_ends_if_necessary.
7056         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
7057         ira_remove_allocno_prefs.
7058         (ira_flattening): Ditto.
7059         (ira_build): Call initiate_prefs, print_prefs.
7060         (ira_destroy): Call finish_prefs.
7061         * ira-color.c (struct update_cost_record): New.
7062         (struct allocno_color_data): Add new member update_cost_records.
7063         (update_cost_record_pool): New static var.
7064         (init_update_cost_records, get_update_cost_record): New functions.
7065         (free_update_cost_record_list, finish_update_cost_records): Ditto.
7066         (struct update_cost_queue_elem): Add member from.
7067         (initiate_cost_update): Call init_update_cost_records.
7068         (finish_cost_update): Call finish_update_cost_records.
7069         (queue_update_cost, get_next_update_cost): Add new param from.
7070         (Update_allocno_cost, update_costs_from_allocno): New functions.
7071         (update_costs_from_prefs): Ditto.
7072         (update_copy_costs): Rename to update_costs_from_copies.
7073         (restore_costs_from_copies): New function.
7074         (update_conflict_hard_regno_costs): Don't go back.
7075         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
7076         more debug info.
7077         (pop_allocnos): Add priniting more debug info.
7078         (color_allocnos): Remove prefs for conflicting hard regs.
7079         Call update_costs_from_prefs.
7080         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
7081         (get_dup_num): Rename, modify, and move to ira.c
7082         (process_regs_for_copy): Add prefs.
7083         (add_insn_allocno_copies): Put src as first arg of
7084         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
7085         * ira-costs.c (record_reg_classes): Modify and move code into
7086         record_operands_costs.
7087         (find_costs_and_classes): Create prefs for the hard reg of small
7088         reg class.
7089         (process_bb_node_for_hard_reg_moves): Add prefs.
7091 2013-10-30  Richard Biener  <rguenther@suse.de>
7093         PR middle-end/57100
7094         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
7095         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
7096         as worker for ...
7097         (pre_and_rev_post_order_compute): ... which now wraps it.
7098         * graph.c (draw_cfg_nodes_no_loops): Use
7099         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
7100         on cfun.
7102 2013-10-30  Christian Bruel  <christian.bruel@st.com>
7104         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
7105         (sh_expand_cmpstr): Handle known align and schedule improvements.
7106         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
7107         * config/sh/sh.md (cmpstrnsi): New pattern.
7109 2013-10-30  Martin Jambor  <mjambor@suse.cz>
7111         PR rtl-optimization/10474
7112         * ira.c (find_moveable_pseudos): Do not calculate dominance info
7113         nor df analysis.
7114         (interesting_dest_for_shprep): New function.
7115         (split_live_ranges_for_shrink_wrap): Likewise.
7116         (ira): Calculate dominance info and df analysis. Call
7117         split_live_ranges_for_shrink_wrap.
7119 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7121         PR target/58854
7122         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
7124 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7126         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
7127         * tree.h (POINTER_BOUNDS_P): New.
7128         (BOUNDED_TYPE_P): New.
7129         (BOUNDED_P): New.
7130         (pointer_bounds_type_node): New.
7131         * tree.c (build_common_tree_nodes): Initialize
7132         pointer_bounds_type_node.
7133         * gimple.h (gimple_call_get_nobnd_arg_index): New.
7134         (gimple_call_num_nobnd_args): New.
7135         (gimple_call_nobnd_arg): New.
7136         (gimple_return_retbnd): New.
7137         (gimple_return_set_retbnd): New
7138         * gimple.c (gimple_build_return): Increase number of ops
7139         for return statement.
7140         (gimple_call_get_nobnd_arg_index): New.
7141         * gimple-pretty-print.c (dump_gimple_return): Print second op.
7143 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7145         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
7146         with "chkp ctor" and "bnd_legacy" attributes.
7147         * gimplify.c (gimplify_init_constructor): Avoid infinite
7148         loop during gimplification of bounds initializer.
7150 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7152         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
7153         (handle_bnd_legacy): New.
7154         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
7155         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
7156         attributes.
7158 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
7160         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
7161         (BT_FN_PTR_CONST_PTR): New.
7162         (BT_FN_CONST_PTR_CONST_PTR): New.
7163         (BT_FN_PTR_CONST_PTR_SIZE): New.
7164         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
7165         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
7166         (BT_FN_VOID_CONST_PTR_SIZE): New.
7167         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
7168         * chkp-builtins.def: New.
7169         * builtins.def: include chkp-builtins.def.
7170         (DEF_CHKP_BUILTIN): New.
7171         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
7172         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
7173         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
7174         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
7175         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
7176         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
7177         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
7178         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
7179         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
7180         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
7181         * common.opt (fcheck-pointer-bounds): New.
7182         * toplev.c (process_options): Check Pointer Bounds Checker is
7183         supported.
7184         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
7186 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7188         * target.def (builtin_chkp_function): New.
7189         (chkp_bound_type): New.
7190         (chkp_bound_mode): New.
7191         (fn_abi_va_list_bounds_size): New.
7192         (load_bounds_for_arg): New.
7193         (store_bounds_for_arg): New.
7194         * targhooks.h (default_load_bounds_for_arg): New.
7195         (default_store_bounds_for_arg): New.
7196         (default_fn_abi_va_list_bounds_size): New.
7197         (default_chkp_bound_type): New.
7198         (default_chkp_bound_mode): New.
7199         (default_builtin_chkp_function): New.
7200         * targhooks.c (default_load_bounds_for_arg): New.
7201         (default_store_bounds_for_arg): New.
7202         (default_fn_abi_va_list_bounds_size): New.
7203         (default_chkp_bound_type): New.
7204         (default_chkp_bound_mode); New.
7205         (default_builtin_chkp_function): New.
7206         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
7207         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
7208         (TARGET_STORE_BOUNDS_FOR_ARG): New.
7209         (TARGET_BUILTIN_CHKP_FUNCTION): New.
7210         (TARGET_CHKP_BOUND_TYPE): New.
7211         (TARGET_CHKP_BOUND_MODE): New.
7212         * doc/tm.texi: Regenerated.
7213         * langhooks.h (lang_hooks): Add chkp_supported field.
7214         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
7215         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
7217 2013-10-29  Andrew Pinski <apinski@cavium.com>
7219         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
7220         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
7221         fails, combining the branches anyways.
7222         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
7223         increases the number of combinings.
7224         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
7226 2013-10-29  Mike Stump  <mikestump@comcast.net>
7228         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
7229         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
7230         (make_vector_mode): Increase namebuf to 16.
7231         (emit_insn_modes_h): When processing BImode, don't
7232         also match partial int modes.
7233         (emit_class_narrowest_mode): Likewise.
7235         * config/bfin/bfin-modes.def: Add precision to PDI.
7236         * config/m32c/m32c-modes.def: Add precision to PSI.
7237         * config/msp430/msp430-modes.def: Add precision to PSI.
7238         * config/rs6000/rs6000-modes.def: Add precision to PTI.
7239         * config/sh/sh-modes.def: Add precision to PSI and PDI.
7241 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
7243         PR target/54236
7244         * config/sh/sh.md (*addc): Rename existing variations to ...
7245         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
7246         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
7247         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
7248         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
7250 2013-10-29  Teresa Johnson  <tejohnson@google.com>
7252         PR ipa/58862
7253         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
7254         insanities when updating probabilities.
7256 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7258         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
7259         prettyprinter for cgraph_node to reflect the conversion of the
7260         symtable types to a C++ class hierarchy: it now *is* a
7261         symtab_node_base, rather than having one (named "symbol").
7263 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7265         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
7266         __cilkrts_pop_frame.  If matched, then return true for built-in
7267         function name.
7268         (expand_builtin): Added BUILT_IN_CILK_DETACH and
7269         BUILT_IN_CILK_POP_FRAME case.
7270         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
7271         (lhs_cilk_detect_spawn): Likewise.
7272         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
7273         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
7274         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
7275         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
7276         (LANG_HOOKS_CILKPLUS): Likewise.
7277         * tree.h (CILK_SPAWN_FN): Likewise.
7278         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
7279         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
7280         (OBJS): Added cilk-common.o.
7281         (BUILTINS_DEF): Added cilk-builtins.def.
7282         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
7283         (lhd_cilk_detect_spawn): Likewise.
7284         * langhooks.h (lang_hooks_for_cilkplus): New struct.
7285         (struct lang_hooks): Added new field called "cilkplus."
7286         * cilk-common.c: New file.
7287         * cilk.h: Likewise.
7288         * cilk-builtins.def: Likewise.
7289         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
7290         "__cilk" macro and set it to 200.
7291         * function.h (struct function::cilk_frame_decl): New field.
7292         (struct function::is_cilk_function): Likewise.
7293         (struct function::calls_cilk_spawn): Likewise.
7294         * gimplify.c (gimplify_call_expr): Added a check if the function call
7295         being gimplified is a spawn detach point.  If so, then add pop_frame
7296         and detach function calls.
7297         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
7298         for gimplifying _Cilk_spawn and _Cilk_sync statements.
7299         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
7300         function.  If so, added a _Cilk_sync and gimplified it.
7301         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
7302         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
7303         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
7304         spawner function.
7305         (can_inline_edge_p): Prevent inling of spawnee function.
7306         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
7307         for functions that use Cilk keywords.
7308         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
7309         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
7310         CILK_SYNC_STMT cases.
7311         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
7312         trees.
7313         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
7314         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
7315         * passes.texi (Cilk Keywords): New section that describes the compiler
7316         code changes for handling Cilk Keywords.
7318 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7320         Patch autogenerated by refactor_symtab.py from
7321         https://github.com/davidmalcolm/gcc-refactoring-scripts
7322         revision 58bb219cc090b2f4516a9297d868c245495ee622
7324         * asan.c (asan_finish_file): Update for conversion of symtab types to
7325         a true class hierarchy.
7326         * cfgexpand.c (estimated_stack_frame_size): Likewise.
7327         * cgraph.c (cgraph_get_body): Likewise.
7328         (cgraph_get_create_real_symbol_node): Likewise.
7329         (verify_cgraph_node): Likewise.
7330         (verify_edge_corresponds_to_fndecl): Likewise.
7331         (verify_edge_count_and_frequency): Likewise.
7332         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
7333         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
7334         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
7335         (cgraph_node_cannot_return): Likewise.
7336         (cgraph_set_pure_flag_1): Likewise.
7337         (cgraph_set_const_flag_1): Likewise.
7338         (cgraph_set_nothrow_flag_1): Likewise.
7339         (cgraph_make_node_local_1): Likewise.
7340         (cgraph_for_node_and_aliases): Likewise.
7341         (cgraph_for_node_thunks_and_aliases): Likewise.
7342         (cgraph_node_can_be_local_p): Likewise.
7343         (cgraph_node_cannot_be_local_p_1): Likewise.
7344         (cgraph_function_body_availability): Likewise.
7345         (dump_cgraph_node): Likewise.
7346         (cgraph_rtl_info): Likewise.
7347         (cgraph_mark_address_taken_node): Likewise.
7348         (cgraph_remove_node): Likewise.
7349         (cgraph_release_function_body): Likewise.
7350         (cgraph_update_edges_for_call_stmt_node): Likewise.
7351         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
7352         (cgraph_make_edge_direct): Likewise.
7353         (cgraph_resolve_speculation): Likewise.
7354         (cgraph_speculative_call_info): Likewise.
7355         (cgraph_turn_edge_to_speculative): Likewise.
7356         (cgraph_create_edge_1): Likewise.
7357         (cgraph_set_call_stmt): Likewise.
7358         (cgraph_node_for_asm): Likewise.
7359         (cgraph_add_thunk): Likewise.
7360         (cgraph_same_body_alias): Likewise.
7361         (cgraph_create_function_alias): Likewise.
7362         (cgraph_create_node): Likewise.
7363         (cgraph_create_empty_node): Likewise.
7364         (record_function_versions): Likewise.
7365         (used_from_object_file_p): Likewise.
7366         * cgraph.h (symtab_can_be_discarded): Likewise.
7367         (symtab_real_symbol_p): Likewise.
7368         (cgraph_mark_force_output_node): Likewise.
7369         (cgraph_edge_recursive_p): Likewise.
7370         (symtab_alias_target): Likewise.
7371         (varpool_all_refs_explicit_p): Likewise.
7372         (varpool_can_remove_if_no_refs): Likewise.
7373         (cgraph_only_called_directly_or_aliased_p): Likewise.
7374         (cgraph_next_function_with_gimple_body): Likewise.
7375         (cgraph_first_function_with_gimple_body): Likewise.
7376         (cgraph_function_with_gimple_body_p): Likewise.
7377         (cgraph_next_function): Likewise.
7378         (cgraph_first_function): Likewise.
7379         (cgraph_next_defined_function): Likewise.
7380         (cgraph_first_defined_function): Likewise.
7381         (varpool_next_defined_variable): Likewise.
7382         (varpool_first_defined_variable): Likewise.
7383         (varpool_next_static_initializer): Likewise.
7384         (varpool_first_static_initializer): Likewise.
7385         (varpool_next_variable): Likewise.
7386         (varpool_first_variable): Likewise.
7387         (varpool_node_name): Likewise.
7388         (varpool): Likewise.
7389         (cgraph): Likewise.
7390         (is_a_helper <varpool_node>::test): Likewise.
7391         (is_a_helper <cgraph_node>::test): Likewise.
7392         (varpool_variable_node): Likewise.
7393         (cgraph_function_or_thunk_node): Likewise.
7394         (varpool_alias_target): Likewise.
7395         (cgraph_alias_target): Likewise.
7396         (cgraph_node_name): Likewise.
7397         (varpool_node_asm_name): Likewise.
7398         (cgraph_node_asm_name): Likewise.
7399         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
7400         (cgraph_rebuild_references): Likewise.
7401         (rebuild_cgraph_edges): Likewise.
7402         (record_eh_tables): Likewise.
7403         (build_cgraph_edges): Likewise.
7404         (mark_store): Likewise.
7405         (mark_load): Likewise.
7406         (mark_address): Likewise.
7407         (record_type_list): Likewise.
7408         (record_reference): Likewise.
7409         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
7410         (cgraph_materialize_clone): Likewise.
7411         (cgraph_function_versioning): Likewise.
7412         (cgraph_copy_node_for_versioning): Likewise.
7413         (update_call_expr): Likewise.
7414         (cgraph_find_replacement_node): Likewise.
7415         (cgraph_create_virtual_clone): Likewise.
7416         (cgraph_clone_node): Likewise.
7417         * cgraphunit.c (compile): Likewise.
7418         (output_weakrefs): Likewise.
7419         (output_in_order): Likewise.
7420         (expand_function): Likewise.
7421         (assemble_thunks_and_aliases): Likewise.
7422         (expand_thunk): Likewise.
7423         (mark_functions_to_output): Likewise.
7424         (handle_alias_pairs): Likewise.
7425         (analyze_functions): Likewise.
7426         (walk_polymorphic_call_targets): Likewise.
7427         (varpool_finalize_decl): Likewise.
7428         (process_function_and_variable_attributes): Likewise.
7429         (cgraph_process_same_body_aliases): Likewise.
7430         (analyze_function): Likewise.
7431         (cgraph_add_new_function): Likewise.
7432         (cgraph_finalize_function): Likewise.
7433         (referred_to_p): Likewise.
7434         (cgraph_reset_node): Likewise.
7435         (cgraph_process_new_functions): Likewise.
7436         (enqueue_node): Likewise.
7437         (decide_is_symbol_needed): Likewise.
7438         * coverage.c (coverage_compute_profile_id): Likewise.
7439         * dbxout.c (dbxout_expand_expr): Likewise.
7440         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
7441         (reference_to_unused): Likewise.
7442         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7443         * gimplify.c (unvisit_body): Likewise.
7444         (unshare_body): Likewise.
7445         * ipa-cp.c (ipcp_generate_summary): Likewise.
7446         (ipcp_decision_stage): Likewise.
7447         (identify_dead_nodes): Likewise.
7448         (decide_whether_version_node): Likewise.
7449         (decide_about_value): Likewise.
7450         (perhaps_add_new_callers): Likewise.
7451         (create_specialized_node): Likewise.
7452         (update_profiling_info): Likewise.
7453         (ipcp_propagate_stage): Likewise.
7454         (estimate_local_effects): Likewise.
7455         (good_cloning_opportunity_p): Likewise.
7456         (devirtualization_time_bonus): Likewise.
7457         (propagate_constants_accross_call): Likewise.
7458         (initialize_node_lattices): Likewise.
7459         (ipcp_cloning_candidate_p): Likewise.
7460         (determine_versionability): Likewise.
7461         (print_all_lattices): Likewise.
7462         (print_lattice): Likewise.
7463         (ipcp_discover_new_direct_edges): Likewise.
7464         * ipa-devirt.c (ipa_devirt): Likewise.
7465         (likely_target_p): Likewise.
7466         (update_type_inheritance_graph): Likewise.
7467         (possible_polymorphic_call_target_p): Likewise.
7468         (dump_possible_polymorphic_call_targets): Likewise.
7469         (devirt_variable_node_removal_hook): Likewise.
7470         (record_binfo): Likewise.
7471         (maybe_record_node): Likewise.
7472         (build_type_inheritance_graph): Likewise.
7473         * ipa-inline-analysis.c (inline_write_summary): Likewise.
7474         (inline_generate_summary): Likewise.
7475         (inline_analyze_function): Likewise.
7476         (do_estimate_growth): Likewise.
7477         (simple_edge_hints): Likewise.
7478         (estimate_node_size_and_time): Likewise.
7479         (estimate_edge_devirt_benefit): Likewise.
7480         (compute_inline_parameters): Likewise.
7481         (estimate_function_body_sizes): Likewise.
7482         (compute_bb_predicates): Likewise.
7483         (initialize_inline_failed): Likewise.
7484         (dump_inline_summary): Likewise.
7485         (dump_inline_edge_summary): Likewise.
7486         * ipa-inline-transform.c (inline_transform): Likewise.
7487         (preserve_function_body_p): Likewise.
7488         (save_inline_function_body): Likewise.
7489         (inline_call): Likewise.
7490         (clone_inlined_nodes): Likewise.
7491         (can_remove_node_now_p): Likewise.
7492         (can_remove_node_now_p_1): Likewise.
7493         * ipa-inline.c (early_inliner): Likewise.
7494         (early_inline_small_functions): Likewise.
7495         (inline_always_inline_functions): Likewise.
7496         (ipa_inline): Likewise.
7497         (flatten_function): Likewise.
7498         (inline_small_functions): Likewise.
7499         (speculation_useful_p): Likewise.
7500         (recursive_inlining): Likewise.
7501         (update_caller_keys): Likewise.
7502         (reset_edge_caches): Likewise.
7503         (update_edge_key): Likewise.
7504         (edge_badness): Likewise.
7505         (relative_time_benefit): Likewise.
7506         (want_inline_self_recursive_call_p): Likewise.
7507         (want_inline_small_function_p): Likewise.
7508         (want_early_inline_function_p): Likewise.
7509         (num_calls): Likewise.
7510         (can_early_inline_edge_p): Likewise.
7511         (can_inline_edge_p): Likewise.
7512         (report_inline_failed_reason): Likewise.
7513         * ipa-profile.c (ipa_profile): Likewise.
7514         (ipa_propagate_frequency): Likewise.
7515         (ipa_propagate_frequency_1): Likewise.
7516         (ipa_profile_generate_summary): Likewise.
7517         * ipa-prop.c (ipcp_transform_function): Likewise.
7518         (read_replacements_section): Likewise.
7519         (ipa_prop_read_section): Likewise.
7520         (ipa_modify_call_arguments): Likewise.
7521         (ipa_print_node_params): Likewise.
7522         (propagate_controlled_uses): Likewise.
7523         (update_indirect_edges_after_inlining): Likewise.
7524         (remove_described_reference): Likewise.
7525         (ipa_make_edge_direct_to_target): Likewise.
7526         (ipa_analyze_node): Likewise.
7527         (ipa_analyze_params_uses): Likewise.
7528         (ipa_compute_jump_functions): Likewise.
7529         (ipa_get_callee_param_type): Likewise.
7530         (ipa_print_node_jump_functions): Likewise.
7531         (ipa_initialize_node_params): Likewise.
7532         (ipa_populate_param_decls): Likewise.
7533         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
7534         (write_agg_replacement_chain): Likewise.
7535         (ipa_write_node_info): Likewise.
7536         (ipa_edge_duplication_hook): Likewise.
7537         (try_decrement_rdesc_refcount): Likewise.
7538         * ipa-pure-const.c (propagate_nothrow): Likewise.
7539         (propagate_pure_const): Likewise.
7540         (pure_const_read_summary): Likewise.
7541         (pure_const_write_summary): Likewise.
7542         (analyze_function): Likewise.
7543         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
7544         (ipa_ref_referring_ref_list): Likewise.
7545         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
7546         (ipa_remove_stmt_references): Likewise.
7547         (ipa_find_reference): Likewise.
7548         (ipa_dump_referring): Likewise.
7549         (ipa_dump_references): Likewise.
7550         (ipa_record_reference): Likewise.
7551         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
7552         (ipa_reference_write_optimization_summary): Likewise.
7553         (write_node_summary_p): Likewise.
7554         (propagate): Likewise.
7555         (read_write_all_from_decl): Likewise.
7556         (generate_summary): Likewise.
7557         (analyze_function): Likewise.
7558         (propagate_bits): Likewise.
7559         (ipa_reference_get_not_written_global): Likewise.
7560         (ipa_reference_get_not_read_global): Likewise.
7561         * ipa-split.c (execute_split_functions): Likewise.
7562         (split_function): Likewise.
7563         * ipa-utils.c (ipa_merge_profiles): Likewise.
7564         (dump_cgraph_node_set): Likewise.
7565         (ipa_reverse_postorder): Likewise.
7566         (ipa_edge_within_scc): Likewise.
7567         (ipa_get_nodes_in_cycle): Likewise.
7568         (ipa_free_postorder_info): Likewise.
7569         (ipa_reduced_postorder): Likewise.
7570         (searchc): Likewise.
7571         (recursive_call_p): Likewise.
7572         * ipa.c (ipa_cdtor_merge): Likewise.
7573         (record_cdtor_fn): Likewise.
7574         (function_and_variable_visibility): Likewise.
7575         (varpool_externally_visible_p): Likewise.
7576         (cgraph_externally_visible_p): Likewise.
7577         (comdat_can_be_unshared_p): Likewise.
7578         (comdat_can_be_unshared_p_1): Likewise.
7579         (address_taken_from_non_vtable_p): Likewise.
7580         (ipa_discover_readonly_nonaddressable_vars): Likewise.
7581         (symtab_remove_unreachable_nodes): Likewise.
7582         (walk_polymorphic_call_targets): Likewise.
7583         (process_references): Likewise.
7584         (enqueue_node): Likewise.
7585         (has_addr_references_p): Likewise.
7586         (cgraph_non_local_node_p_1): Likewise.
7587         * is-a.h (varpool_analyze_node): Likewise.
7588         * lto-cgraph.c (input_symtab): Likewise.
7589         (merge_profile_summaries): Likewise.
7590         (input_cgraph_1): Likewise.
7591         (input_edge): Likewise.
7592         (input_varpool_node): Likewise.
7593         (input_node): Likewise.
7594         (input_overwrite_node): Likewise.
7595         (compute_ltrans_boundary): Likewise.
7596         (output_refs): Likewise.
7597         (lto_output_varpool_node): Likewise.
7598         (lto_output_node): Likewise.
7599         (reachable_from_other_partition_p): Likewise.
7600         (referenced_from_other_partition_p): Likewise.
7601         (lto_output_edge): Likewise.
7602         (output_node_opt_summary): Likewise.
7603         (add_node_to): Likewise.
7604         (reachable_from_this_partition_p): Likewise.
7605         (lto_set_symtab_encoder_in_partition): Likewise.
7606         (lto_symtab_encoder_in_partition_p): Likewise.
7607         (lto_set_symtab_encoder_encode_initializer): Likewise.
7608         (lto_symtab_encoder_encode_initializer_p): Likewise.
7609         (lto_set_symtab_encoder_encode_body): Likewise.
7610         (lto_symtab_encoder_encode_body_p): Likewise.
7611         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7612         Likewise.
7613         * lto-streamer-in.c (lto_read_body): Likewise.
7614         (fixup_call_stmt_edges): Likewise.
7615         (fixup_call_stmt_edges_1): Likewise.
7616         * lto-streamer-out.c (produce_symtab): Likewise.
7617         (output_symbol_p): Likewise.
7618         (write_symbol): Likewise.
7619         (lto_output): Likewise.
7620         (copy_function): Likewise.
7621         (output_function): Likewise.
7622         * passes.c (function_called_by_processed_nodes_p): Likewise.
7623         (ipa_write_optimization_summaries): Likewise.
7624         (ipa_write_summaries): Likewise.
7625         (do_per_function_toporder): Likewise.
7626         (do_per_function): Likewise.
7627         (dump_passes): Likewise.
7628         * symtab.c (symtab_semantically_equivalent_p): Likewise.
7629         (symtab_nonoverwritable_alias): Likewise.
7630         (symtab_nonoverwritable_alias_1): Likewise.
7631         (symtab_for_node_and_aliases): Likewise.
7632         (symtab_resolve_alias): Likewise.
7633         (fixup_same_cpp_alias_visibility): Likewise.
7634         (symtab_alias_ultimate_target): Likewise.
7635         (symtab_used_from_object_file_p): Likewise.
7636         (verify_symtab_base): Likewise.
7637         (dump_symtab_base): Likewise.
7638         (symtab_node_name): Likewise.
7639         (symtab_node_asm_name): Likewise.
7640         (symtab_dissolve_same_comdat_group_list): Likewise.
7641         (symtab_add_to_same_comdat_group): Likewise.
7642         (symtab_unregister_node): Likewise.
7643         (symtab_insert_node_to_hashtable): Likewise.
7644         (symtab_register_node): Likewise.
7645         (unlink_from_assembler_name_hash): Likewise.
7646         (insert_to_assembler_name_hash): Likewise.
7647         (eq_assembler_name): Likewise.
7648         (hash_node_by_assembler_name): Likewise.
7649         (eq_node): Likewise.
7650         (hash_node): Likewise.
7651         * toplev.c (wrapup_global_declaration_2): Likewise.
7652         * trans-mem.c (ipa_tm_execute): Likewise.
7653         (ipa_tm_transform_clone): Likewise.
7654         (ipa_tm_transform_transaction): Likewise.
7655         (ipa_tm_transform_calls_redirect): Likewise.
7656         (ipa_tm_insert_gettmclone_call): Likewise.
7657         (ipa_tm_insert_irr_call): Likewise.
7658         (ipa_tm_create_version): Likewise.
7659         (ipa_tm_create_version_alias): Likewise.
7660         (ipa_tm_mark_forced_by_abi_node): Likewise.
7661         (ipa_tm_mark_force_output_node): Likewise.
7662         (ipa_tm_diagnose_tm_safe): Likewise.
7663         (ipa_tm_mayenterirr_function): Likewise.
7664         (ipa_tm_scan_irr_function): Likewise.
7665         (ipa_tm_note_irrevocable): Likewise.
7666         (ipa_tm_scan_calls_clone): Likewise.
7667         (get_cg_data): Likewise.
7668         * tree-eh.c (tree_could_trap_p): Likewise.
7669         * tree-emutls.c (ipa_lower_emutls): Likewise.
7670         (create_emultls_var): Likewise.
7671         (lower_emutls_function_body): Likewise.
7672         (gen_emutls_addr): Likewise.
7673         (emutls_decl): Likewise.
7674         (new_emutls_decl): Likewise.
7675         * tree-inline.c (tree_function_versioning): Likewise.
7676         (optimize_inline_calls): Likewise.
7677         (expand_call_inline): Likewise.
7678         (estimate_num_insns): Likewise.
7679         (copy_bb): Likewise.
7680         (delete_unreachable_blocks_update_callgraph): Likewise.
7681         * tree-nested.c (gimplify_all_functions): Likewise.
7682         (create_nesting_tree): Likewise.
7683         (check_for_nested_with_variably_modified): Likewise.
7684         * tree-pretty-print.c (dump_function_header): Likewise.
7685         * tree-profile.c (tree_profiling): Likewise.
7686         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
7687         (modify_function): Likewise.
7688         (convert_callers): Likewise.
7689         (convert_callers_for_node): Likewise.
7690         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
7691         (associate_varinfo_to_alias): Likewise.
7692         (create_variable_info_for): Likewise.
7693         (get_constraint_for_ssa_var): Likewise.
7694         * tree-vectorizer.c (increase_alignment): Likewise.
7695         * tree.c (find_decls_types_in_var): Likewise.
7696         (find_decls_types_in_node): Likewise.
7697         (free_lang_data_in_decl): Likewise.
7698         * value-prof.c (gimple_ic_transform): Likewise.
7699         (gimple_ic): Likewise.
7700         (check_ic_target): Likewise.
7701         (init_node_map): Likewise.
7702         * varasm.c (decl_binds_to_current_def_p): Likewise.
7703         (default_binds_local_p_1): Likewise.
7704         (dump_tm_clone_pairs): Likewise.
7705         (assemble_alias): Likewise.
7706         (find_decl): Likewise.
7707         (mark_decl_referenced): Likewise.
7708         * varpool.c (varpool_for_node_and_aliases): Likewise.
7709         (varpool_extra_name_alias): Likewise.
7710         (varpool_create_variable_alias): Likewise.
7711         (add_new_static_var): Likewise.
7712         (varpool_finalize_named_section_flags): Likewise.
7713         (varpool_remove_unreferenced_decls): Likewise.
7714         (enqueue_node): Likewise.
7715         (varpool_assemble_decl): Likewise.
7716         (assemble_aliases): Likewise.
7717         (varpool_analyze_node): Likewise.
7718         (cgraph_variable_initializer_availability): Likewise.
7719         (varpool_add_new_variable): Likewise.
7720         (ctor_for_folding): Likewise.
7721         (dump_varpool_node): Likewise.
7722         (varpool_remove_initializer): Likewise.
7723         (varpool_remove_node): Likewise.
7724         (varpool_node_for_decl): Likewise.
7725         (varpool_create_empty_node): Likewise.
7726         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
7727         (ix86_get_function_versions_dispatcher): Likewise.
7729 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7731         * cgraph.h (symtab_node_base): Convert to a class;
7732         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
7733         chain_next/prev from symtab_node_def.
7734         (cgraph_node): Inherit from symtab_node; add GTY option
7735         tag ("SYMTAB_FUNCTION").
7736         (varpool_node): Inherit from symtab_node; add GTY option
7737         tag ("SYMTAB_VARIABLE").
7738         (symtab_node_def): Remove.
7739         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
7740         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
7741         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
7742         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
7744         * ipa-ref.h (symtab_node_def): Drop.
7745         (symtab_node): Change underlying type from symtab_node_def to
7746         symtab_node_base.
7747         (const_symtab_node): Likwise.
7749         * is-a.h: Update examples in comment.
7751         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
7752         (assembler_name_hash): Likewise.
7754 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
7756         * doc/tree-ssa.texi (gimple_phi_result): Document.
7757         (gimple_phi_num_args, gimple_phi_arg): Likewise.
7758         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
7759         (PHI_RESULT, PHI_NUM_ARGS): Remove.
7760         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
7762 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
7764         * expr.h: Revert change and include tree-core.h.
7765         * rtl.h: Revert change and don't include tree-core.h.
7767 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
7769         * config/darwin.c: Include gimple.h.
7770         * config/i386/winnt.c: Likewise.
7772 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
7774         PR tree-optimization/19831
7775         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
7777 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
7779         * tree-outof-ssa.h: Remove include files.
7780         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
7781         * expr.c: Likewise.
7782         * tree-ssa-coalesce.c: Likewise.
7783         * cfgexpand.c: Likewise.
7784         * tree-ssa-ter.c: Likewise.
7785         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
7786         * lto-streamer.h: Likewise.
7787         * cgraphbuild.c: Add gimple.h to include list.
7788         * data-streamer-in.c: Likewise.
7789         * ipa-cp.c: Likewise.
7790         * tree-streamer.c: Likewise.
7791         * lto-compress.c: Likewise.
7792         * ipa-reference.c: Likewise.
7793         * data-streamer-out.c: Likewise.
7794         * lto-cgraph.c: Likewise.
7795         * cgraphclones.c: Likewise.
7796         * ipa-utils.c: Likewise.
7797         * data-streamer.c: Likewise.
7798         * ipa-split.c: Likewise.
7799         * lto-section-in.c: Likewise.
7800         * tree-streamer-out.c: Likewise.
7801         * ipa-prop.c: Likewise.
7802         * tree-streamer-in.c: Likewise.
7803         * symtab.c: Likewise.
7804         * opts-global.c: Likewise.
7805         * lto-opts.c: Likewise.
7806         * lto-section-out.c: Likewise.
7807         * lto-streamer.c: Likewise.
7808         * rtl.h: Add tree-core.h to include list.
7809         * expr.h: Remove tree-core.h from include list.
7810         * gimple.h: Likewise.
7811         * ipa-utils.h: Likewise.
7812         * streamer-hooks.h: Likewise.
7813         * streamer-hooks.c: Include input.h.
7815 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7817         * config/arm/arm.c (cortexa7_extra_costs): New table.
7818         (arm_cortex_a7_tune): New.
7819         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
7821 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
7823         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
7825 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7827         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
7828         to use autogenerated markers for a class-hierarchy, every class
7829         must have a GTY marker.
7830         * gengtype.h (struct type): Add linked list of subclasses to
7831         the "s" member of the union.
7832         (add_subclass): New decl.
7833         * gengtype-state.c (read_state_struct_type): Set up subclass
7834         linked list.
7835         * gengtype.c (get_ultimate_base_class): New.
7836         (add_subclass): New.
7837         (new_structure): Set up subclass linked list.
7838         (set_gc_used_type): Propagate usage information to subclasses.
7839         (output_mangled_typename): Use get_ultimate_base_class.
7840         (walk_subclasses): Use the subclass linked list, avoiding an
7841         O(N^2) when writing out all types.
7842         (walk_type): Issue an error if the base class is missing a tag,
7843         rather than generating bogus C code.  Add a gcc_unreachable
7844         default case, in case people omit tags from concrete subclasses,
7845         or get the values wrong.
7846         (write_func_for_structure): Issue an error for subclasses for
7847         which the base doesn't have a "desc", since otherwise the
7848         autogenerated routines for the base would silently fail to visit
7849         any subclass fields.
7850         (write_root): Use get_ultimate_base_class, tweaking constness of
7851         tp to match that function's signature.
7853 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7855         * doc/gty.texi (GTY Options): Add note about inheritance to
7856         description of desc and tag.
7857         (Inheritance and GTY): New.
7859 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7861         * gengtype-parse.c (opts_have): Drop "static" so that
7862         we can use this from gengtype.c.
7863         * gengtype.c (set_gc_used_type): Mark any base class as used;
7864         update field traversal to visit inherited fields.
7865         (output_mangled_typename):  Convert references to classes within
7866         an inheritance hierarchy to reference the ultimate base class,
7867         since only it will have gt_ functions.
7868         (get_string_option): New.
7869         (walk_subclasses): New.
7870         (walk_type): Treat GTY structs that have a "desc" as being the
7871         root of an inheritance hierarchy.  Generate a switch on it
7872         within the marking function which walks all subclasses, adding
7873         cases for them via walk_subclasses.  For subclasses, visit all
7874         fields of the type (including inherited ones).
7875         (write_func_for_structure): Don't write fns for subclasses, only
7876         for the ultimate base class within an inheritance hierarchy.
7877         Subclasses-marking will be handled by the base class marking functions.
7878         (write_types): Likewise.
7879         (write_local_func_for_structure): Likewise.
7880         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
7881         a "tag" option (and are thus concrete subclasses).
7882         (write_root): Use the marker function for the ultimate base class.
7883         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
7884         (opts_have): Add declaration.
7886 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
7888         * lra-spills.c (lra_final_code_change): Remove useless move insns
7889         originated from moves of pseudos.
7891 2013-10-28  Jeff Law  <law@redhat.com>
7893         * lower-subreg.c (resolve_simple_move): Fix comment typo.
7895 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
7897         * df-scan.c (df_collection_rec): Adjust.
7898         (copy_defs): New constant.
7899         (copy_uses): Likewise.
7900         (copy_eq_uses): Likewise.
7901         (copy_mw): Likewise.
7902         (copy_all): Likewise.
7903         (df_insn_rescan): Adjust.
7904         (df_notes_rescan): Likewise.
7905         (df_swap_refs): Likewise.
7906         (df_sort_and_compress_refs): Likewise.
7907         (df_sort_and_compress_mws): Likewise.
7908         (df_install_refs): Likewise.
7909         (df_install_mws): Likewise.
7910         (df_refs_add_to_chains): Add flags parameter controlling which vectors
7911         are coppied.
7912         (df_bb_refs_record): Adjust.
7913         (df_record_entry_block_defs): Likewise.
7914         (df_record_exit_block_defs): Likewise.
7915         (df_refs_verify): Likewise.
7916         (df_mws_verify): Likewise.
7917         (df_insn_refs_verify): Likewise.
7918         (df_bb_verify): Likewise.
7919         * ipa-pure-const.c (finish_state): Remove.
7920         (propagate): Adjust.
7921         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
7922         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
7923         var-tracking.c: Adjust.
7924         * vec.c (stack_vecs): Remove.
7925         (register_stack_vec): Likewise.
7926         (stack_vec_register_index): Likewise.
7927         (unregister_stack_vec): Likewise.
7928         * vec.h (struct va_stack): Remove.
7929         (struct vec<T, A, vl_ptr>): Specialize as
7930         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
7931         allocation strategy compatable with the vl_ptr layout.
7932         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
7933         specialization anyway.
7934         (class stack_vec): New class.
7935         (vec_stack_alloc): Remove.
7936         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
7938 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7939             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7940             Sergey Lega  <sergey.s.lega@intel.com>
7941             Anna Tikhonova  <anna.tikhonova@intel.com>
7942             Ilya Tocar  <ilya.tocar@intel.com>
7943             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7944             Ilya Verbin  <ilya.verbin@intel.com>
7945             Kirill Yukhin  <kirill.yukhin@intel.com>
7946             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7948         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
7949         (*prefetch_avx512pf_<mode>): New.
7950         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
7951         (avx512f_maskcmp<mode>3): Ditto.
7952         (vashrv16si3): Ditto.
7954 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7955             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7956             Sergey Lega  <sergey.s.lega@intel.com>
7957             Anna Tikhonova  <anna.tikhonova@intel.com>
7958             Ilya Tocar  <ilya.tocar@intel.com>
7959             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7960             Ilya Verbin  <ilya.verbin@intel.com>
7961             Kirill Yukhin  <kirill.yukhin@intel.com>
7962             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7964         * config/i386/i386.md (any_truncate): New.
7965         (trunsuffix): Ditto.
7966         * config/i386/predicates.md (const_8_to_9_operand): New.
7967         (const_10_to_11_operand): Ditto.
7968         (const_12_to_13_operand): Ditto.
7969         (const_14_to_15_operand): Ditto.
7970         (const_16_to_19_operand): Ditto.
7971         (const_20_to_23_operand): Ditto.
7972         (const_24_to_27_operand): Ditto.
7973         (const_28_to_31_operand): Ditto.
7974         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
7975         (cvtusi2<ssescalarmodesuffix>32): New.
7976         (cvtusi2<ssescalarmodesuffix>64): Ditto.
7977         (ufloatv16siv16sf2): Ditto.
7978         (avx512f_fix_notruncv16sfv16si): Ditto.
7979         (avx512f_ufix_notruncv16sfv16si): Ditto.
7980         (avx512f_vcvtss2usi): Ditto.
7981         (avx512f_vcvtss2usiq): Ditto.
7982         (avx512f_vcvttss2usi): Ditto.
7983         (avx512f_vcvttss2usiq): Ditto.
7984         (avx512f_vcvtsd2usi): Ditto.
7985         (avx512f_vcvtsd2usiq): Ditto.
7986         (avx512f_vcvttsd2usi): Ditto.
7987         (avx512f_vcvttsd2usiq): Ditto.
7988         (ufloatv8siv8df): Ditto.
7989         (avx512f_cvtdq2pd512_2): Ditto.
7990         (avx512f_cvtpd2dq512): Ditto.
7991         (avx512f_ufix_notruncv8dfv8si): Ditto.
7992         (avx512f_cvtpd2ps512): Ditto.
7993         (vec_unpacks_lo_v16sf): Ditto.
7994         (vec_unpacks_hi_v16sf): Ditto.
7995         (vec_unpacks_float_hi_v16si): Ditto.
7996         (vec_unpacks_float_lo_v16si): Ditto.
7997         (avx512f_unpckhps512): Ditto.
7998         (avx512f_unpcklps512): Ditto.
7999         (avx512f_movshdup512): Ditto.
8000         (avx512f_movsldup512): Ditto.
8001         (vec_extract_lo_v32hi): Ditto.
8002         (vec_extract_hi_v32hi): Ditto.
8003         (vec_extract_lo_v64qi): Ditto.
8004         (vec_extract_hi_v64qi): Ditto.
8005         (avx512f_unpckhpd512): Ditto.
8006         (avx512f_movddup512): Ditto.
8007         (avx512f_unpcklpd512): Ditto.
8008         (*avx512f_unpcklpd512): Ditto.
8009         (avx512f_shufps512_1): Ditto.
8010         (avx512f_shufpd512_1): Ditto.
8011         (avx512f_interleave_highv8di): Ditto.
8012         (avx512f_interleave_lowv8di): Ditto.
8013         (PMOV_DST_MODE): Ditto.
8014         (pmov_src_mode): Ditto.
8015         (pmov_src_lower): Ditto.
8016         (pmov_suff): Ditto.
8017         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
8018         (*avx512f_<code>v8div16qi2): Ditto.
8019         (*avx512f_<code>v8div16qi2_store): Ditto.
8020         (vec_widen_umult_even_v16si): Ditto.
8021         (*vec_widen_umult_even_v16si): Ditto.
8022         (vec_widen_smult_even_v16si): Ditto.
8023         (*vec_widen_smult_even_v16si): Ditto.
8024         (avx512f_interleave_highv16si): Ditto.
8025         (avx512f_interleave_lowv16si): Ditto.
8026         (avx512f_<code>v16qiv16si2): Ditto.
8027         (avx512f_<code>v16hiv16si2): Ditto.
8028         (avx512f_<code>v8qiv8di2): Ditto.
8029         (avx512f_<code>v8hiv8di2): Ditto.
8030         (avx512f_<code>v8siv8di2): Ditto.
8031         (avx512cd_maskb_vec_dupv8di): Ditto.
8032         (avx512cd_maskw_vec_dupv16si): Ditto.
8033         (avx512f_vcvtph2ps512): Ditto.
8034         (avx512f_vcvtps2ph512): Ditto.
8035         (VEC_EXTRACT_MODE): Extened with wider modes.
8036         (VEC_PERM_AVX2): Ditto.
8037         (VEC_PERM_CONST): Ditto.
8039 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8041         * config/arc/arc.c (arc_ccfsm_post_advance):
8042         Add comment about TYPE_RETURN.
8044 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
8046         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
8047         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
8048         (strip_offset): Convert offset to unsigned number.
8050 2013-10-27  Tom de Vries  <tom@codesourcery.com>
8052         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
8053         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
8055 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
8057         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
8058         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
8059         (TARGET_BIG_ENDIAN): New macro.
8060         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
8061         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
8062         * config/sh/sh.c: Likewise.
8063         * config/sh/sh.h: Likewise.
8065 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
8067         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
8068         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
8070 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
8072         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
8073         Fix formatting.
8074         (cmpstr_t, cmpstrsi): Fix formatting.
8076 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
8078         PR target/52483
8079         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
8080         addressing, do not use general_operand for memory operands.
8082 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
8084         Revert:
8085         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8086         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8088 2013-10-26  Jeff Law  <law@redhat.com>
8090         * predict.c (PRED_MUDFLAP): Remove.
8091         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
8093         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
8094         (OBJS): Remove tree-nomudflap.o
8095         (GTFILES): Remove tree-mudflap.c
8096         * builtins.c (expand_builtin_alloc): Remove mudflap support.
8097         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8098         (mfwrap_spec, mflib_spec): Likewise.
8099         (cpp_unique_options, cc1_options, static_specs): Likewise.
8100         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
8101         * passes.def: Likewise.
8102         * toplev.c (compile_file, process_options): Likewise.
8103         * tree-inline.c (copy_tree_r): Likewise.
8104         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
8105         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
8106         (build_constant_desc, output_constant_def_contents): Likewise.
8107         (categorize_decl_for_section): Likewise.
8108         * tree-mudflap.c: Removed.
8109         * tree-mudflap.h: Removed.
8110         * tree-nomudflap.c: Removed.
8111         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
8112         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
8113         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8114         * config/sol2.h (MFLIB_SPEC): Likewise.
8115         * doc/install.texi: Remove mudflap references.
8116         * doc/passes.texi: Similarly.
8117         * doc/sourcebuild.texi: Similarly.
8118         * doc/invoke.texi: Remove mudlfap related options.
8120 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8122         PR rtl-optimization/58759
8123         * lra-constraints.c (lra_constraints): Remove wrong condition to
8124         remove insn setting up an equivalent pseudo.
8126 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8128         * config/rs6000/rs6000-protos.h
8129         (rs6000_secondary_memory_needed_mode): New prototype.
8130         * config/rs6000/rs6000.c: Include ira.h.
8131         (TARGET_LRA_P): Redefine.
8132         (rs6000_legitimate_offset_address_p): Call
8133         legitimate_constant_pool_address_p in strict mode for LRA.
8134         (rs6000_legitimate_address_p): Ditto.
8135         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
8136         (rs6000_emit_move): Add LRA version of code to generate load/store
8137         of SDmode values.
8138         (rs6000_secondary_memory_needed_mode): New.
8139         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
8140         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
8141         constants, memory, and FP registers.
8142         (rs6000_lra_p): New.
8143         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
8144         * config/rs6000/rs6000.opt (mlra): New option.
8145         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8147 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
8149         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
8150         has_single_use () and not do the conversion if has_single_use ()
8151         returns false for the multiplication result.
8153 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
8155         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
8156         to "NODE", since this works on a "tree", not an
8157         "enum tree_code".
8158         (CONSTANT_CLASS_P): Likewise.
8159         (TYPE_P): Likewise.
8160         (DECL_P): Likewise.
8161         (INDIRECT_REF_P): Likewise.
8162         (REFERENCE_CLASS_P): Likewise.
8163         (COMPARISON_CLASS_P): Likewise.
8164         (UNARY_CLASS_P): Likewise.
8165         (BINARY_CLASS_P): Likewise.
8166         (STATEMENT_CLASS_P): Likewise.
8167         (VL_EXP_CLASS_P): Likewise.
8168         (EXPRESSION_CLASS_P): Likewise.
8169         (IS_TYPE_OR_DECL_P): Likewise.
8171 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
8173         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
8174         ADDR_EXPR in the defining statement.
8176 2013-10-25  Richard Biener  <rguenther@suse.de>
8178         PR tree-optimization/58626
8179         * tree-loop-distribution.c (enum rdg_dep_type): Remove
8180         anti_dd, output_dd and input_dd.
8181         (struct rdg_edge): Remove level and relation members.
8182         (RDGE_LEVEL, RDGE_RELATION): Remove.
8183         (dot_rdg_1): Adjust.
8184         (create_rdg_edge_for_ddr): Remove.
8185         (create_rdg_edges_for_scalar): Adjust.
8186         (create_edge_for_control_dependence): Likewise.
8187         (create_rdg_edges): Split into ...
8188         (create_rdg_flow_edges): ... this
8189         (create_rdg_cd_edges): ... and this.
8190         (free_rdg): Adjust.
8191         (build_rdg): Likewise, do not compute data dependences or
8192         add edges for them.
8193         (pg_add_dependence_edges): New function.
8194         (pgcmp): Likewise.
8195         (distribute_loop): First apply all non-dependence based
8196         partition mergings.  Then compute dependences between partitions
8197         and merge and order partitions according to them.
8199 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
8201         PR rtl-optimization/58831
8202         * alias.c (init_alias_analysis): At the beginning of each iteration,
8203         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
8205 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
8207         * recog.c (search_ofs): New static variable moved from...
8208         (peep2_find_free_register): ...here.
8209         (peephole2_optimize): Initialize it.
8211 2013-10-25  Tobias Burnus  <burnus@net-b.de>
8213         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
8215 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
8217         * config/i386/i386.h (TARGET_MPX): New define.
8218         (TARGET_MPX_P): Ditto.
8220 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
8222         * config/i386/constraints.md (B): New.
8223         (Ti): New.
8224         (Tb): New.
8225         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
8226         * config/i386/i386-modes.def (BND32): New.
8227         (BND64): New.
8228         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
8229         * config/i386/i386.c (isa_opts): Add mmpx.
8230         (regclass_map): Add bound registers.
8231         (dbx_register_map): Likewise.
8232         (dbx64_register_map): Likewise.
8233         (svr4_dbx_register_map): Likewise.
8234         (PTA_MPX): New.
8235         (ix86_option_override_internal): Support MPX ISA.
8236         (ix86_conditional_register_usage): Support bound registers.
8237         (print_reg): Likewise.
8238         (ix86_code_end): Add MPX bnd prefix.
8239         (output_set_got): Likewise.
8240         (ix86_output_call_insn): Likewise.
8241         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
8242         (ix86_print_operand_punct_valid_p): Likewise.
8243         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
8244         UNSPEC_BNDMK_ADDR.
8245         (ix86_class_likely_spilled_p): Add bound regs support.
8246         (ix86_hard_regno_mode_ok): Likewise.
8247         (x86_order_regs_for_local_alloc): Likewise.
8248         (ix86_bnd_prefixed_insn_p): New.
8249         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
8250         (FIXED_REGISTERS): Add bound registers.
8251         (CALL_USED_REGISTERS): Likewise.
8252         (REG_ALLOC_ORDER): Likewise.
8253         (HARD_REGNO_NREGS): Likewise.
8254         (TARGET_MPX): New.
8255         (VALID_BND_REG_MODE): New.
8256         (FIRST_BND_REG): New.
8257         (LAST_BND_REG): New.
8258         (reg_class): Add BND_REGS.
8259         (REG_CLASS_NAMES): Likewise.
8260         (REG_CLASS_CONTENTS): Likewise.
8261         (BND_REGNO_P): New.
8262         (ANY_BND_REG_P): New.
8263         (BNDmode): New.
8264         (HI_REGISTER_NAMES): Add bound registers.
8265         * config/i386/i386.md (UNSPEC_BNDMK): New.
8266         (UNSPEC_BNDMK_ADDR): New.
8267         (UNSPEC_BNDSTX): New.
8268         (UNSPEC_BNDLDX): New.
8269         (UNSPEC_BNDLDX_ADDR): New.
8270         (UNSPEC_BNDCL): New.
8271         (UNSPEC_BNDCU): New.
8272         (UNSPEC_BNDCN): New.
8273         (UNSPEC_MPX_FENCE): New.
8274         (BND0_REG): New.
8275         (BND1_REG): New.
8276         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8277         (length_immediate): Likewise.
8278         (prefix_0f): Likewise.
8279         (memory): Likewise.
8280         (prefix_rep): Check for bnd prefix.
8281         (length_nobnd): New.
8282         (length): Use length_nobnd if specified.
8283         (BND): New.
8284         (bnd_ptr): New.
8285         (BNDCHECK): New.
8286         (bndcheck): New.
8287         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
8288         (*jcc_2): Likewise.
8289         (jump): Likewise.
8290         (simple_return_internal): Likewise.
8291         (simple_return_pop_internal): Likewise.
8292         (*indirect_jump): Add MPX bnd prefix.
8293         (*tablejump_1): Likewise.
8294         (simple_return_internal_long): Likewise.
8295         (simple_return_indirect_internal): Likewise.
8296         (<mode>_mk): New.
8297         (*<mode>_mk): New.
8298         (mov<mode>): New.
8299         (*mov<mode>_internal_mpx): New.
8300         (<mode>_<bndcheck>): New.
8301         (*<mode>_<bndcheck>): New.
8302         (<mode>_ldx): New.
8303         (*<mode>_ldx): New.
8304         (<mode>_stx): New.
8305         (*<mode>_stx): New.
8306         * config/i386/predicates.md (lea_address_operand): Rename to...
8307         (address_no_seg_operand): ... this.
8308         (address_mpx_no_base_operand): New.
8309         (address_mpx_no_index_operand): New.
8310         (bnd_mem_operator): New.
8311         * config/i386/i386.opt (mmpx): New.
8312         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
8313         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
8315 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
8317         * mode-classes.def (MODE_POINTER_BOUNDS): New.
8318         * tree.def (POINTER_BOUNDS_TYPE): New.
8319         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
8320         (POINTER_BOUNDS_MODE): New.
8321         (make_pointer_bounds_mode): New.
8322         * machmode.h (POINTER_BOUNDS_MODE_P): New.
8323         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
8324         (layout_type): Support POINTER_BOUNDS_TYPE.
8325         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
8326         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
8327         (type_contains_placeholder_1): Likewise.
8328         * tree.h (POINTER_BOUNDS_TYPE_P): New.
8329         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
8330         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
8332 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
8334         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
8335         mode of address computation when calling memory_address_addr_space.
8337 2013-08-24  Richard Henderson  <rth@twiddle.net>
8339         PR rtl/58542
8340         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
8341         instead of create_convert_operand_to.
8342         (maybe_emit_sync_lock_test_and_set): Likewise.
8343         (expand_atomic_compare_and_swap): Likewise.
8344         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
8346 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
8348         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
8349         Change param_is to use the struct and not the pointer to the struct.
8351 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
8353         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
8354         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8355         Move to targhooks.c.
8356         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
8357         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8358         Relocate from gimplify.c.
8359         * targhooks.h: Add 2 prototypes.
8360         * tree.h: Delete 2 prototypes.
8362 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
8364         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
8365         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
8367 2013-10-24  Cong Hou  <congh@google.com>
8369         * convert.c (convert_to_real): Guard those unsafe math function
8370         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
8371         specially.
8373 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
8375         PR ipa/58712
8376         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
8377         as argument.
8378         (cgraph_create_edge): Use the new argument.
8379         (cgraph_create_indirect_edge): Likewise.
8381 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
8383         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
8384         TYPE_UNCOND_BRANCH.
8385         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
8386         changes statep->state.
8388 2013-10-24  Tobias Burnus  <burnus@net-b.de>
8390         PR other/33426
8391         * tree-cfg.c (replace_loop_annotate): New function.
8392         (execute_build_cfg): Call it.
8393         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
8394         * internal-fn.c (expand_ANNOTATE): New function.
8395         * internal-fn.def (ANNOTATE): Define as new internal function.
8396         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
8397         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
8398         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
8399         * doc/extend.texi (Pragmas): Document #pragma ivdep.
8400         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
8402 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
8403             Marcus Shawcroft  <marcus.shawcroft@arm.com>
8405         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
8406         Special case reload SP+C into none GENERAL_REGS.
8408 2013-10-24  Michael Matz  <matz@suse.de>
8410         * gengtype.c (is_file_equal): Check that files will be same length.
8412 2013-10-25  Christian Bruel  <christian.bruel@st.com>
8414         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
8415         * config/sh/t-sh (sh-mem.o): New rule.
8416         * config/sh/sh-mem.cc (expand_block_move): Moved here.
8417         (sh_expand_cmpstr): New function.
8418         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
8419         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
8420         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
8421         (rotlhi3_8): Rename.
8423 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8425         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
8426         * Makefile.in (CXXDEPMODE): Assign and change users.
8427         (CCDEPMODE): Delete.
8428         * configure: Regenerate.
8430 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
8432         * gengtype-parse.c (require_without_advance): New.
8433         (type): For GTY-marked types that are not GTY((user)), parse any
8434         base classes, requiring them to be single-inheritance, and not
8435         be templates.  For non-GTY-marked types and GTY((user)),
8436         continue to skip over any C++ inheritance specification.
8437         * gengtype-state.c (state_writer::write_state_struct_type):
8438         Write base class of type (if any).
8439         (read_state_struct_type): Read base class of type (if any).
8440         * gengtype.c (new_structure): Add a "base_class" parameter.
8441         (create_optional_field_): Update for new parameter to new_structure.
8442         (adjust_field_rtx_def): Likewise.
8443         (adjust_field_tree_exp): Likewise.
8444         * gengtype.h (struct type): Add "base_class" field to the s
8445         union field.
8446         (new_structure): Add "base" parameter.
8448 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
8450         PR target/57756
8451         * config/i386/i386.c (ix86_option_override_internal):
8452         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
8453         (ix86_valid_target_attribute_tree):
8454         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
8455         Change TARGET_SSE to TARGET_SSE_P (opts->...)
8457 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
8459         * tree-ssa-loop.h: Remove include files.
8460         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
8461         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
8462         * graphite-clast-to-gimple.c: Likewise.
8463         * graphite-scop-detection.c: Likewise.
8464         * graphite-sese-to-poly.c: Likewise.
8465         * ipa-inline-analysis.c: Likewise.
8466         * ipa-pure-const.c: Likewise.
8467         * loop-init.c: Likewise.
8468         * passes.c: Likewise.
8469         * predict.c: Likewise.
8470         * tree-cfg.c: Likewise.
8471         * tree-cfgcleanup.c: Likewise.
8472         * tree-chrec.c: Likewise.
8473         * tree-data-ref.c: Likewise.
8474         * tree-loop-distribution.c: Likewise.
8475         * tree-parloops.c: Likewise.
8476         * tree-predcom.c: Likewise.
8477         * tree-scalar-evolution.c: Likewise.
8478         * tree-ssa-address.c: Likewise.
8479         * tree-ssa.c: Likewise.
8480         * tree-ssa-dce.c: Likewise.
8481         * tree-ssa-loop.c: Likewise.
8482         * tree-ssa-loop-im.c: Likewise.
8483         * tree-ssa-loop-ivcanon.c: Likewise.
8484         * tree-ssa-loop-ivopts.c: Likewise.
8485         * tree-ssa-loop-manip.c: Likewise.
8486         * tree-ssa-loop-niter.c: Likewise.
8487         * tree-ssa-loop-prefetch.c: Likewise.
8488         * tree-ssa-loop-unswitch.c: Likewise.
8489         * tree-ssa-reassoc.c: Likewise.
8490         * tree-vect-data-refs.c: Likewise.
8491         * tree-vect-loop.c: Likewise.
8492         * tree-vect-loop-manip.c: Likewise.
8493         * tree-vectorizer.c: Likewise.
8494         * tree-vect-stmts.c: Likewise.
8495         * tree-vrp.c: Likewise.
8497 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8499         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
8501 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
8503         PR tree-optimization/58775
8504         PR tree-optimization/58791
8505         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
8506         (insert_stmt_after): Rewritten, don't move the stmt, but really
8507         insert it.
8508         (get_stmt_uid_with_default): Remove.
8509         (build_and_add_sum): Use insert_stmt_after and
8510         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
8511         (update_range_test): Set uid on stmts added by
8512         force_gimple_operand_gsi.  Don't immediately modify statements
8513         in inter-bb optimization, just update oe->op values.
8514         (optimize_range_tests): Return bool whether any changed have been made.
8515         (update_ops): New function.
8516         (struct inter_bb_range_test_entry): New type.
8517         (maybe_optimize_range_tests): Perform statement changes here.
8518         (not_dominated_by, appears_later_in_bb, get_def_stmt,
8519         ensure_ops_are_available): Remove.
8520         (find_insert_point): Rewritten.
8521         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
8522         return LHS of the (new resp. old) stmt.  Don't call
8523         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
8524         instead of last, move new stmt at the right place.
8525         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
8526         (negate_value): Likewise.  Set uids.
8527         (break_up_subtract_bb): Initialize uids.
8528         (reassociate_bb): Adjust rewrite_expr_tree caller.
8529         (do_reassoc): Don't call renumber_gimple_stmt_uids.
8531 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
8533         PR target/58838
8534         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
8535         TARGET_32BIT final condition.
8536         (mulsi3_internal2 and splitter): Same.
8538 2013-10-23  Jeff Law  <law@redhat.com>
8540         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
8541         through joiner blocks with abnormal outgoing edges.
8543         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
8544         Add parameter JOINERS, to allow/disallow threading through joiner
8545         blocks.
8546         (thread_block): New.  Call thread_block_1.
8547         (mark_threaded_blocks): Remove code to filter out certain cases
8548         of threading through joiner blocks.
8549         (thread_through_all_blocks): Document how we can have a dangling
8550         edge AUX field and clear it.
8552 2013-10-23  Ian Lance Taylor  <iant@google.com>
8554         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
8555         (C++ Dialect Options): Likewise.
8556         (Optimize Options): Likewise.
8558 2013-10-23  Tom de Vries  <tom@codesourcery.com>
8560         PR tree-optimization/58805
8561         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
8563 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
8565         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
8566         sequence based on get_range_info returned range.
8568 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
8570         * tree-ssa.h: Remove all #include's
8571         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
8572         * alias.c: Move required includes from tree-ssa.h.
8573         * asan.c: Likewise.
8574         * builtins.c: Likewise.
8575         * calls.c: Likewise.
8576         * cfgexpand.c: Likewise.
8577         * cfghooks.c: Likewise.
8578         * cfgloop.c: Likewise.
8579         * cfgloopmanip.c: Likewise.
8580         * cgraph.c: Likewise.
8581         * cgraphbuild.c: Likewise.
8582         * cgraphclones.c: Likewise.
8583         * cgraphunit.c: Likewise.
8584         * dse.c: Likewise.
8585         * except.c: Likewise.
8586         * expr.c: Likewise.
8587         * final.c: Likewise.
8588         * fold-const.c: Likewise.
8589         * ggc-page.c: Likewise.
8590         * gimple-builder.c: Likewise.
8591         * gimple-fold.c: Likewise.
8592         * gimple-iterator.c: Likewise.
8593         * gimple-low.c: Likewise.
8594         * gimple-pretty-print.c: Likewise.
8595         * gimple-ssa-strength-reduction.c: Likewise.
8596         * gimple-streamer-in.c: Likewise.
8597         * gimple-streamer-out.c: Likewise.
8598         * gimplify.c: Likewise.
8599         * graphite-blocking.c: Likewise.
8600         * graphite-clast-to-gimple.c: Likewise.
8601         * graphite-dependences.c: Likewise.
8602         * graphite-interchange.c: Likewise.
8603         * graphite-optimize-isl.c: Likewise.
8604         * graphite-poly.c: Likewise.
8605         * graphite-scop-detection.c: Likewise.
8606         * graphite-sese-to-poly.c: Likewise.
8607         * graphite.c: Likewise.
8608         * ipa-cp.c: Likewise.
8609         * ipa-inline-analysis.c: Likewise.
8610         * ipa-inline-transform.c: Likewise.
8611         * ipa-inline.c: Likewise.
8612         * ipa-prop.c: Likewise.
8613         * ipa-pure-const.c: Likewise.
8614         * ipa-reference.c: Likewise.
8615         * ipa-split.c: Likewise.
8616         * ipa-utils.c: Likewise.
8617         * loop-init.c: Likewise.
8618         * lto-cgraph.c: Likewise.
8619         * lto-section-in.c: Likewise.
8620         * lto-section-out.c: Likewise.
8621         * lto-streamer-in.c: Likewise.
8622         * lto-streamer-out.c: Likewise.
8623         * lto-streamer.c: Likewise.
8624         * omp-low.c: Likewise.
8625         * passes.c: Likewise.
8626         * predict.c: Likewise.
8627         * print-tree.c: Likewise.
8628         * profile.c: Likewise.
8629         * sese.c: Likewise.
8630         * targhooks.c: Likewise.
8631         * tracer.c: Likewise.
8632         * trans-mem.c: Likewise.
8633         * tree-call-cdce.c: Likewise.
8634         * tree-cfg.c: Likewise.
8635         * tree-cfgcleanup.c: Likewise.
8636         * tree-chrec.c: Likewise.
8637         * tree-complex.c: Likewise.
8638         * tree-data-ref.c: Likewise.
8639         * tree-dfa.c: Likewise.
8640         * tree-eh.c: Likewise.
8641         * tree-emutls.c: Likewise.
8642         * tree-if-conv.c: Likewise.
8643         * tree-inline.c: Likewise.
8644         * tree-into-ssa.c: Likewise.
8645         * tree-loop-distribution.c: Likewise.
8646         * tree-mudflap.c: Likewise.
8647         * tree-nested.c: Likewise.
8648         * tree-nrv.c: Likewise.
8649         * tree-object-size.c: Likewise.
8650         * tree-outof-ssa.c: Likewise.
8651         * tree-parloops.c: Likewise.
8652         * tree-phinodes.c: Likewise.
8653         * tree-predcom.c: Likewise.
8654         * tree-pretty-print.c: Likewise.
8655         * tree-profile.c: Likewise.
8656         * tree-scalar-evolution.c: Likewise.
8657         * tree-sra.c: Likewise.
8658         * tree-ssa-address.c: Likewise.
8659         * tree-ssa-alias.c: Likewise.
8660         * tree-ssa-ccp.c: Likewise.
8661         * tree-ssa-coalesce.c: Likewise.
8662         * tree-ssa-copy.c: Likewise.
8663         * tree-ssa-copyrename.c: Likewise.
8664         * tree-ssa-dce.c: Likewise.
8665         * tree-ssa-dom.c: Likewise.
8666         * tree-ssa-dse.c: Likewise.
8667         * tree-ssa-forwprop.c: Likewise.
8668         * tree-ssa-ifcombine.c: Likewise.
8669         * tree-ssa-live.c: Likewise.
8670         * tree-ssa-loop-ch.c: Likewise.
8671         * tree-ssa-loop-im.c: Likewise.
8672         * tree-ssa-loop-ivcanon.c: Likewise.
8673         * tree-ssa-loop-ivopts.c: Likewise.
8674         * tree-ssa-loop-manip.c: Likewise.
8675         * tree-ssa-loop-niter.c: Likewise.
8676         * tree-ssa-loop-prefetch.c: Likewise.
8677         * tree-ssa-loop-unswitch.c: Likewise.
8678         * tree-ssa-loop.c: Likewise.
8679         * tree-ssa-math-opts.c: Likewise.
8680         * tree-ssa-operands.c: Likewise.
8681         * tree-ssa-phiopt.c: Likewise.
8682         * tree-ssa-phiprop.c: Likewise.
8683         * tree-ssa-pre.c: Likewise.
8684         * tree-ssa-propagate.c: Likewise.
8685         * tree-ssa-reassoc.c: Likewise.
8686         * tree-ssa-sccvn.c: Likewise.
8687         * tree-ssa-sink.c: Likewise.
8688         * tree-ssa-strlen.c: Likewise.
8689         * tree-ssa-structalias.c: Likewise.
8690         * tree-ssa-tail-merge.c: Likewise.
8691         * tree-ssa-ter.c: Likewise.
8692         * tree-ssa-threadedge.c: Likewise.
8693         * tree-ssa-threadupdate.c: Likewise.
8694         * tree-ssa-uncprop.c: Likewise.
8695         * tree-ssa-uninit.c: Likewise.
8696         * tree-ssa.c: Likewise.
8697         * tree-ssanames.c: Likewise.
8698         * tree-stdarg.c: Likewise.
8699         * tree-streamer-in.c: Likewise.
8700         * tree-switch-conversion.c: Likewise.
8701         * tree-tailcall.c: Likewise.
8702         * tree-vect-data-refs.c: Likewise.
8703         * tree-vect-generic.c: Likewise.
8704         * tree-vect-loop-manip.c: Likewise.
8705         * tree-vect-loop.c: Likewise.
8706         * tree-vect-patterns.c: Likewise.
8707         * tree-vect-slp.c: Likewise.
8708         * tree-vect-stmts.c: Likewise.
8709         * tree-vectorizer.c: Likewise.
8710         * tree-vrp.c: Likewise.
8711         * tree.c: Likewise.
8712         * tsan.c: Likewise.
8713         * value-prof.c: Likewise.
8714         * var-tracking.c: Likewise.
8715         * varpool.c: Likewise.
8716         * vtable-verify.c: Likewise.
8718 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8720         * config/tilegx/tilegx.c: Include "tree.h".
8722 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
8724         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
8725         the info, not after it.
8726         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
8727         dump_ssaname_info call.
8728         (pp_gimple_stmt_1): Adjust caller.
8729         (dump_phi_nodes): Likewise.  Don't print "# " here.
8731 2013-10-22  Jan Hubicka  <jh@suse.cz>
8733         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
8734         tuning flag.
8735         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
8736         * i386.c (expand_small_movmem_or_setmem): New function.
8737         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
8738         function.
8739         (alg_usable_p): Add support for value ranges; cleanup.
8740         (ix86_expand_set_or_movmem): Add support for misaligned moves.
8742 2013-10-22  Sterling Augustine  <saugustine@google.com>
8744         * doc/invoke.texi: Document -ggnu-pubnames.
8745         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
8746         logic.
8747         * dwarf2out.c: Include gdb/gdb-index.h.
8748         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
8749         debug_generate_pub_sections.
8750         (is_java, output_pubtables, output_pubname): New functions.
8751         (include_pubname_in_output): Handle debug_generate_pub_sections at
8752         level 2.
8753         (size_of_pubnames): Use new local space_for_flags based on
8754         debug_generate_pub_sections.
8755         (output_pubnames): Unify pubnames and pubtypes output logic.
8756         Genericize comments.  Call output_pubname.
8757         (dwarf2out_finish): Move logic to output_pubnames and call it.
8759 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
8761         PR target/58779
8762         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
8763         Remove CCCmode handling.
8764         <case LTU>: Return 'c' suffix for CCCmode.
8765         <case GEU>: Return 'nc' suffix for CCCmode.
8766         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
8767         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
8768         (*sub<mode>3_cc_overflow): Ditto.
8769         (*subsi3_zext_cc_overflow): Ditto.
8771 2013-10-22  Steve Ellcey  <sellcey@mips.com>
8773         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
8774         (AND (NOT OP1) (NOT OP2)).
8776 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
8778         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
8779         meaning of merge-high and merge-low masks for little endian; avoid
8780         use of vector-pack masks for little endian for mismatched modes.
8782 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8784         * config/tilepro/tilepro.c: Include "tree.h".
8786 2013-10-22  Andreas Schwab  <schwab@suse.de>
8788         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
8789         with PRE_DEC.
8791 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
8793         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
8794         [Ed Smith-Rowland]): New entries.
8795         ([Stephen M. Webb]): Update.
8797 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
8799         * tree-ssa-ter.h: Remove duplicate copy of file contents.
8801 2013-10-21  Marek Polacek  <polacek@redhat.com>
8803         PR middle-end/58809
8804         * fold-const.c (fold_range_test): Return 0 if the type is not
8805         an integral type.
8807 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
8809         * system.h: Move hwint.h include further down.
8810         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
8811         gcc_checking_asserts.
8812         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
8814 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8816         Fix volatile issues in optimize_bit_field_compare.
8817         * fold-const.c (optimize_bit_field_compare): Bail out if
8818         lvolatilep or rvolatilep.
8820 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8822         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
8823         and get_inner_reference returning different pmode for non-volatile
8824         bit-field members dependent on flag_strict_volatile_bitfields.
8825         * stor-layout.c (layout_decl): Remove special handling of
8826         flag_strict_volatile_bitfields.
8827         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
8828         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
8830 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
8832         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
8833         calculations.
8835 2013-10-21  Jeff Law  <law@redhat.com>
8837         * tree-ssa-threadedge.c (thread_through_normal_block): New
8838         argument VISITED.  Remove VISISTED as a local variable.  When we
8839         have a threadable jump, verify the destination of the jump has not
8840         been visised.
8841         (thread_across_edge): Allocate VISITED bitmap once at function
8842         scope and use it throughout.  Make sure to set appropriate bits in
8843         VISITED for E (start of jump thread path).
8844         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
8845         through a joiner if any edge on the path has a recorded jump thread.
8847 2013-10-21  Ian Lance Taylor  <iant@google.com>
8849         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
8850         don't imply that attributes can solve all problems.
8851         (Directory Options): Fix typo.
8853 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8855         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
8856         extend and extend_add.
8858 2013-10-21  Richard Biener  <rguenther@suse.de>
8860         PR tree-optimization/58794
8861         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
8862         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
8864 2013-10-21  Richard Biener  <rguenther@suse.de>
8866         PR middle-end/58742
8867         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
8868         to (T) X for sign-changing conversions (or no conversion).
8870 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
8872         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
8874 2013-10-20  Jan Hubicka  <jh@suse.cz>
8876         * config/i386/i386-tune.def: Add comment; organize into categories
8878 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
8880         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
8881         argument.  Update function comment.
8882         (expand_set_or_movmem_via_rep): New function combining
8883         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
8884         (expand_movmem_via_rep_mov): Remove.
8885         expand_setmem_via_rep_stos): Remove.
8886         (expand_movmem_epilogue): Update calls correspondingly.
8887         (expand_setmem_epilogue_via_loop): Likewise.
8888         (emit_memset): New.
8889         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
8890         (expand_set_or_movmem_prologue): New function combining
8891         expand_movmem_prologue and expand_setmem_prologue.
8892         (expand_movmem_prologue): Remove.
8893         (expand_setmem_prologue): Remove.
8894         (expand_set_or_movmem_constant_prologue): New function combining
8895         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
8896         (expand_constant_movmem_prologue): Remove.
8897         (expand_constant_setmem_prologue): Remove.
8898         (promote_duplicated_reg): Allow vector-const0 value.
8899         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
8900         and ix86_expand_setmem.
8901         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
8902         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
8904 2013-10-21  Diego Novillo  <dnovillo@google.com>
8906         * asan.c: Include tree.h
8907         * bb-reorder.c: Likewise.
8908         * cfgcleanup.c: Likewise.
8909         * cfgloopmanip.c: Likewise.
8910         * data-streamer-in.c: Likewise.
8911         * data-streamer-out.c: Likewise.
8912         * data-streamer.c: Likewise.
8913         * dwarf2cfi.c: Likewise.
8914         * graphite-blocking.c: Likewise.
8915         * graphite-clast-to-gimple.c: Likewise.
8916         * graphite-dependences.c: Likewise.
8917         * graphite-interchange.c: Likewise.
8918         * graphite-optimize-isl.c: Likewise.
8919         * graphite-poly.c: Likewise.
8920         * graphite-scop-detection.c: Likewise.
8921         * graphite-sese-to-poly.c: Likewise.
8922         * graphite.c: Likewise.
8923         * ipa-devirt.c: Likewise.
8924         * ipa-profile.c: Likewise.
8925         * ipa.c: Likewise.
8926         * ira.c: Likewise.
8927         * loop-init.c: Likewise.
8928         * loop-unroll.c: Likewise.
8929         * lower-subreg.c: Likewise.
8930         * lto/lto-object.c: Likewise.
8931         * recog.c: Likewise.
8932         * reginfo.c: Likewise.
8933         * tree-loop-distribution.c: Likewise.
8934         * tree-parloops.c: Likewise.
8935         * tree-ssa-strlen.c: Likewise.
8936         * tree-streamer.c: Likewise.
8937         * value-prof.c: Likewise.
8938         * target-globals.c: Likewise.
8939         * expr.h: Include tree-core.h instead of tree.h.
8940         * gimple.h: Likewise.
8941         * ipa-prop.h: Likewise.
8942         * ipa-utils.h: Likewise.
8943         * lto-streamer.h: Likewise.
8944         * streamer-hooks.h: Likewise.
8945         * ipa-reference.h: Include cgraph.h instead of tree.h.
8946         * cgraph.h: Include basic-block.h instead of tree.h.
8947         * tree-streamer.h: Do not include tree.h.
8948         * genattrtab.c (write_header): Generate inclusion of tree.h.
8949         * genautomata.c (main): Likewise.
8950         * genemit.c: Likewise.
8951         * genopinit.c: Likewise.
8952         * genoutput.c (output_prologue): Likewise.
8953         * genpeep.c: Likewise.
8955 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8957         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
8958         little endian.
8959         (vec_unpacku_hi_v8hi): Likewise.
8960         (vec_unpacku_lo_v16qi): Likewise.
8961         (vec_unpacku_lo_v8hi): Likewise.
8963 2013-10-20  Jan Hubicka  <jh@suse.cz>
8965         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
8966         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
8967         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
8969 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
8971         * config/mips/mips.h (ISA_HAS_WSBH): Define.
8972         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
8973         constants.
8974         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
8976 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
8978         PR target/58603
8979         * system.h: Undef m_slot.
8981 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8983         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
8984         all elements for both endian flavors.
8986 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
8988         PR target/58792
8989         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
8990         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
8991         and SI_REG for 64bit SYSV ABI targets.
8993 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
8995         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
8996         to multi_reg_return.  Clarify that we are skipping USEs of multiple
8997         return registers.  Use bool type where appropriate.
8999 2013-10-18  Jan Hubicka  <jh@suse.cz>
9001         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
9002         for cold functions.
9003         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
9004         (X86_TUNE_PUSH_MEMORY): Likewise.
9005         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
9006         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
9007         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
9008         New.
9009         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
9010         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
9011         Remove.
9012         (ix86_option_override_internal): Update to use tune features instead
9013         of variables.
9015 2013-10-18  Cong Hou  <congh@google.com>
9017         PR tree-optimization/58508
9018         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
9019         statement that contains data refs with zero-step.
9021 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9023         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
9024         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
9025         * gimple-low.c (gimple_check_call_arg,
9026         gimple_check_call_matching_types): Move to cgraph.c.
9027         * gimple-low.h: Remove prototype.
9028         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
9029         Relocate from gimple-low.c.
9030         * cgraph.h: Add prototype.  Don't include basic-block.h.
9031         * gimplify.c: Add gimple-low to include list.
9032         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
9033         * tree-eh.c: Add gimple-low to include list.
9034         * tree-nested.c: Likewise.
9035         * cfgexpand.c: Add tree-ssa-address.h to include list.
9036         * expr.c: Likewise.
9037         * gimple-fold.c: Likewise.
9038         * gimple-ssa-strength-reduction.c: Likewise.
9039         * trans-mem.c: Likewise.
9040         * tree-mudflap.c: Likewise.
9041         * tree-ssa-loop-ivopts.c: Likewise.
9042         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
9043         (degenerate_phi_result): Move to tree-phinodes.c.
9044         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
9045         * tree-ssa-threadedge.c: Likewise.
9046         * tree-vrp.c: Likewise.
9047         * tree-phinodes.c (degenerate_phi_result): Relocate here.
9048         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
9049         * tree-phinodes.h (degenerate_phi_result): Add prototype.
9050         * tree-ssa-copy.c: Include tree-ssa-dom.h.
9051         * tree-ssa-forwprop.c: Likewise.
9052         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
9053         pass_data_cleanup_cfg_post_optimizing,
9054         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
9055         * tree-optimize.c: Delete File.
9056         * graphite.c: Include tree-cfgcleanup.h.
9057         * passes.c: Likewise.
9058         * tree-cfg.c: Likewise.
9059         * tree-profile.c: Likewise.
9060         * tree-ssa-dse.c: Likewise.
9061         * tree-ssa-loop-ivcanon.c: Likewise.
9062         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
9063         * tree-outof-ssa.c: Include sbitmap.h.
9064         * tree-ssa-live.c: Likewise.
9065         * tree-ssa-propagate.c: Likewise.
9066         * tree-ssa-structalias.c: Likewise.
9067         * tree-stdarg.c: Likewise.
9068         * Makefile.in (OBJS): Delete tree-optimize.o.
9069         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
9070         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
9071         * varasm.c: Include basic-block.h.
9072         * cfgloop.h: Include function.h instead of basic-block.h
9073         (bb_loop_depth): Move to cfgloop.c.
9074         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
9076 2013-10-18  Teresa Johnson  <tejohnson@google.com>
9078         * predict.c (probably_never_executed): Compare frequency-based
9079         count to number of training runs.
9080         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
9082 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9084         * config/arm/arm.c (cortexa9_extra_costs): New table.
9085         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
9087 2013-10-18  Jeff Law  <law@redhat.com>
9089         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
9091         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
9092         (register_jump_thread): Add "registered_jump_thread" debug
9093         counter support.
9094         * dbgcnt.def (registered_jump_thread): New debug counter.
9096 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9098         * config/rs6000/rs6000.c: Include cgraph.h.
9100 2013-10-18  Teresa Johnson  <tejohnson@google.com>
9102         * tree-ssa-tail-merge.c (replace_block_by): Update edge
9103         weights during merging.
9105 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9107         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
9108         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
9109         * tree-ssa-operands.h: Remove prototype.
9110         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
9111         * gimple.c (virtual_operand_p): Relocate from gimple.c.
9112         * gimple.h: Add prototype.
9113         * gimple-ssa.h: Include tree-ssa-operands.h.
9114         * tree-dump.c: Add tree-cfg.h to include list.
9115         * tree-ssa-alias.c: Add ipa-reference.h to include list.
9116         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
9117         * config/i386/i386.c: Don't include tree-flow.h.
9118         * config/rs6000/rs6000.c: Likewise.
9120 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9122         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
9124 2013-10-18  Richard Biener  <rguenther@suse.de>
9126         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
9127         or TYPE_UNSIGNED of integral types.
9128         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
9129         NULL_TREE for zero-precision integral types.
9131 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
9133         * config/aarch64/arm_neon.h
9134         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
9136 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
9138         PR target/57756
9139         * opth-gen.awk: Define target_flags_explicit.
9141 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
9143         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
9144         fields to the reg_addr array that describes the valid addressing
9145         mode for any register, general purpose registers, floating point
9146         registers, and Altivec registers.
9147         (FIRST_RELOAD_REG_CLASS): Likewise.
9148         (LAST_RELOAD_REG_CLASS): Likewise.
9149         (struct reload_reg_map_type): Likewise.
9150         (reload_reg_map_type): Likewise.
9151         (RELOAD_REG_VALID): Likewise.
9152         (RELOAD_REG_MULTIPLE): Likewise.
9153         (RELOAD_REG_INDEXED): Likewise.
9154         (RELOAD_REG_OFFSET): Likewise.
9155         (RELOAD_REG_PRE_INCDEC): Likewise.
9156         (RELOAD_REG_PRE_MODIFY): Likewise.
9157         (reg_addr): Likewise.
9158         (mode_supports_pre_incdec_p): New helper functions to say whether
9159         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
9160         (mode_supports_pre_modify_p): Likewise.
9161         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
9162         print the valid address mode bits for each mode.
9163         (rs6000_debug_print_mode): Likewise.
9164         (rs6000_debug_reg_global): Likewise.
9165         (rs6000_setup_reg_addr_masks): New function to set up the address
9166         mask bits for each type.
9167         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
9168         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
9169         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
9170         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
9171         PRE_MODIFY are supported.
9172         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
9173         registers, instead of {src,dest}_av_p.
9174         (rs6000_print_options_internal): Tweak the debug output slightly.
9176 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
9178         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
9179         isa attribute.
9181 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
9183         * tree-flow.h (struct omp_region): Move to omp-low.c.
9184         Remove omp_ prototypes and variables.
9185         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
9186         (copy_var_decl): Relocate prototype from tree-flow.h.
9187         * gimple.c (copy_var_decl): Relocate from omp-low.c.
9188         * tree.h: Move prototype to omp-low.h.
9189         * omp-low.h: New File.  Relocate prototypes here.
9190         * omp-low.c (struct omp_region): Make local here.
9191         (root_omp_region): Make static.
9192         (copy_var_decl) Move to gimple.c.
9193         (new_omp_region): Make static.
9194         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
9195         * tree-cfg.c: Include omp-low.h.
9196         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
9197         * gimplify.c: Include omp-low.h.
9198         * tree-parloops.c: Likewise.
9200 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
9202         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
9203         operands are in memory, prefer to force non-matched operand 1 to
9204         the register.
9206 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
9208         PR target/58673
9209         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
9210         restrict TImode addresses to single indirect registers if both
9211         -mquad-memory and -mvsx-timode are used.
9212         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
9213         we should emit load/store quad.  Remove using %y for quad memory
9214         addresses.
9216         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
9217         constraints to allow load/store quad on machines where TImode is
9218         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
9219         for TImode to load integer constants.
9221 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9223         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
9225 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9227         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
9228         handling of STACK_REG.
9230 2013-10-17  Richard Biener  <rguenther@suse.de>
9232         PR tree-optimization/58143
9233         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
9234         New function.
9235         (rewrite_to_defined_overflow): Likewise.
9236         (move_computations_dom_walker::before_dom): Rewrite stmts
9237         with undefined signed overflow that are not always executed
9238         into unsigned arithmetic.
9240 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
9242         PR target/57756
9243         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
9244         explicit isa flag to be an options variable, instead of using
9245         global_options_set.  Remove define from rs6000.h.
9246         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
9248         * config/rs6000/rs6000.c (rs6000_option_override_internal):
9249         Initialize rs6000_isa_flags_explicit.
9250         (rs6000_function_specific_save): Add gcc_options* parameter, so
9251         that the powerpc builds after the 2013-10-15 changes.
9252         (rs6000_function_specific_restore): Likewise.
9254 2013-10-16  DJ Delorie  <dj@redhat.com>
9256         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
9257         op is a REG before checking REGNO.
9258         (rl78_alloc_physical_registers): Verify pattern is a SET before
9259         checking SET_SRC.
9261 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9263         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
9264         endianness.
9265         (vec_unpacks_lo_v4sf): Likewise.
9266         (vec_unpacks_float_hi_v4si): Likewise.
9267         (vec_unpacks_float_lo_v4si): Likewise.
9268         (vec_unpacku_float_hi_v4si): Likewise.
9269         (vec_unpacku_float_lo_v4si): Likewise.
9271 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9273         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
9274         (vsx_concat_v2sf): Likewise.
9276 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
9278         * config/aarch64/aarch64.md
9279         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
9281 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
9283         PR tree-optimization/58697
9284         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
9285         estimated_loop_iterations_int.
9286         (max_stmt_executions_int): Call get_max_loop_iterations_int.
9287         (get_max_loop_iterations_int): New.  HWINT version of
9288         get_max_loop_iterations.
9289         * cfgloop.h: Add prototypes.
9290         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
9291         * loop-unroll.c (decide_peel_once_rolling): Call
9292         get_estimated_loop_iterations_int.
9293         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
9294         * tree-ssa-loop-niter.h: Tweak prototypes.
9296 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
9298         * gengtype-parse.c (struct_field_seq): Ignore access-control
9299         keywords ("public:" etc).
9301 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9303         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
9304         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
9306 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
9308         * config/arm/arm.opt (mlra): New option.
9309         * config/arm/arm.c (arm_lra_p): New function.
9310         (TARGET_LRA_P): Define.
9312 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
9314         * tree-core.h (tree_code_name): Remove.
9315         * tree.h (get_tree_code_name): New prototype.
9316         * tree.c (tree_code_name): Make static.
9317         (get_tree_code_name): New function.
9318         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
9319         tree_class_check_failed, tree_range_check_failed,
9320         tree_not_class_check_failed, omp_clause_check_failed,
9321         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
9322         wrapper get_tree_code_name instead of calling tree_code_name directly.
9323         * tree-vrp.c (dump_asserts_for): Likewise.
9324         * tree-dump.c (dequeue_and_dump): Likewise.
9325         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
9326         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
9327         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
9328         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
9329         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
9330         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
9331         dump_gimple_omp_for): Likewise.
9332         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
9333         * tree-ssa-pre.c (print_pre_expr): Likewise.
9334         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
9335         * print-tree.c (print_node_brief, print_node): Likewise.
9336         * gimple.c (gimple_check_failed): Likewise.
9337         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
9338         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
9339         * config/mep/mep.c (mep_validate_vliw): Likewise.
9340         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
9341         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
9343 2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9345         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
9346         for AMD bdver3.
9348 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
9350         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
9351         (MULTILIB_MATCHES): Add multilib for -march=v8.
9353 2013-10-15 Sriraman Tallam  <tmsriram@google.com>
9355         PR target/57756
9356         * optc-save-gen.awk: Add extra parameter to the save and restore
9357         target calls.
9358         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
9359         * tree.c (build_optimization_node): New parameter.  Add extra parameter
9360         to call to cl_optimization_save.
9361         (build_target_option_node): New parameter. Add extra parameter
9362         to call to cl_target_option_save.
9363         * tree.h (build_optimization_node): New parameter.
9364         (build_target_option_node): New parameter.
9365         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
9366         build_optimization_node and build_target_option_node.
9367         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
9368         (handle_pragma_push_options): Ditto.
9369         * toplev.c (process_options): Ditto.
9370         * opts.c (init_options_struct): Check for opts_set non-null.
9371         * target.def (target_option.save): New parameter.
9372         (target_option.restore): New parameter.
9373         * tm.texi: Generate.
9374         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
9375         (ix86_pragma_target_parse): Ditto.
9376         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
9377         parameters.
9378         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
9379         to  build_optimization_node and build_target_option_node.
9380         (rs6000_valid_attribute_p): Ditto.
9381         (rs6000_pragma_target_parse): Ditto.
9382         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
9383         data.
9384         * config/i386/i386.h:
9385         TARGET_64BIT_P: New Macro
9386         TARGET_MMX_P: New Macro.
9387         TARGET_3DNOW_P: New Macro.
9388         TARGET_3DNOW_A_P: New Macro.
9389         TARGET_SSE_P: New Macro.
9390         TARGET_SSE2_P: New Macro.
9391         TARGET_SSE3_P: New Macro.
9392         TARGET_SSSE3_P: New Macro.
9393         TARGET_SSE4_1_P: New Macro.
9394         TARGET_SSE4_2_P: New Macro.
9395         TARGET_AVX_P: New Macro.
9396         TARGET_AVX2_P: New Macro.
9397         TARGET_AVX512F_P: New Macro.
9398         TARGET_AVX512PF_P: New Macro.
9399         TARGET_AVX512ER_P: New Macro.
9400         TARGET_AVX512CD_P: New Macro.
9401         TARGET_FMA_P: New Macro.
9402         TARGET_SSE4A_P: New Macro.
9403         TARGET_FMA4_P: New Macro.
9404         TARGET_XOP_P: New Macro.
9405         TARGET_LWP_P: New Macro.
9406         TARGET_ABM_P: New Macro.
9407         TARGET_BMI_P: New Macro.
9408         TARGET_BMI2_P: New Macro.
9409         TARGET_LZCNT_P: New Macro.
9410         TARGET_TBM_P: New Macro.
9411         TARGET_POPCNT_P: New Macro.
9412         TARGET_SAHF_P: New Macro.
9413         TARGET_MOVBE_P: New Macro.
9414         TARGET_CRC32_P: New Macro.
9415         TARGET_AES_P: New Macro.
9416         TARGET_PCLMUL_P: New Macro.
9417         TARGET_CMPXCHG16B_P: New Macro.
9418         TARGET_FSGSBASE_P: New Macro.
9419         TARGET_RDRND_P: New Macro.
9420         TARGET_F16C_P: New Macro.
9421         TARGET_RTM_P: New Macro.
9422         TARGET_HLE_P: New Macro.
9423         TARGET_RDSEED_P: New Macro.
9424         TARGET_PRFCHW_P: New Macro.
9425         TARGET_ADX_P: New Macro.
9426         TARGET_FXSR_P: New Macro.
9427         TARGET_XSAVE_P: New Macro.
9428         TARGET_XSAVEOPT_P: New Macro.
9429         TARGET_LP64_P: New Macro.
9430         TARGET_X32_P: New Macro.
9431         TARGET_FPMATH_DEFAULT_P: New Macro.
9432         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
9433         * config/i386/i386.c (ix86_option_override_internal): New parameters.
9434         opts and opts_set.
9435         Change ix86_tune_string to access opts->x_ix86_tune_string.
9436         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
9437         Change ix86_arch_string to access opts->x_ix86_arch_string.
9438         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
9439         Change ix86_pmode to access opts->x_ix86_pmode.
9440         Change ix86_abi to access opts->x_ix86_abi.
9441         Change ix86_cmodel to access opts->x_ix86_cmodel.
9442         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
9443         Change ix86_isa_flags_explicit to access
9444         opts->x_ix86_isa_flags_explicit.
9445         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
9446         Change ix86_regparm to access opts->x_ix86_regparm.
9447         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
9448         Change ix86_preferred_stack_boundary_arg to access
9449         opts->x_ix86_preferred_stack_boundary_arg.
9450         Change ix86_force_align_arg_pointer to access
9451         opts->x_ix86_force_align_arg_pointer.
9452         Change ix86_incoming_stack_boundar_arg to access
9453         opts->x_ix86_incoming_stack_boundar_arg.
9454         Change ix86_fpmath to access opts->x_ix86_fpmath.
9455         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
9456         Change ix86_recip_name to access opts->x_ix86_recip_name.
9457         Change ix86_stack_protector_guard to access
9458         opts->x_ix86_stack_protector_guard.
9459         Change ix86_tune_memcpy_strategy to access
9460         opts->x_ix86_tune_memcpy_strategy.
9461         Change ix86_tune_memset_strategy to access
9462         opts->x_ix86_tune_memset_strategy.
9463         Change global_options to access opts.
9464         Change global_options_set to access opts_set.
9465         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
9466         Change TARGET_MMX to TARGET_MMX_P (opts->...).
9467         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
9468         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
9469         Change TARGET_SSE to TARGET_SSE_P (opts->...).
9470         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
9471         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
9472         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
9473         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
9474         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
9475         Change TARGET_AVX to TARGET_AVX_P (opts->...).
9476         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
9477         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
9478         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
9479         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
9480         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
9481         Change TARGET_FMA to TARGET_FMA_P (opts->...).
9482         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
9483         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
9484         Change TARGET_XOP to TARGET_XOP_P (opts->...).
9485         Change TARGET_LWP to TARGET_LWP_P (opts->...).
9486         Change TARGET_ABM to TARGET_ABM_P (opts->...).
9487         Change TARGET_BMI to TARGET_BMI_P (opts->...).
9488         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
9489         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
9490         Change TARGET_TBM to TARGET_TBM_P (opts->...).
9491         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
9492         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
9493         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
9494         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
9495         Change TARGET_AES to TARGET_AES_P (opts->...).
9496         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
9497         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
9498         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
9499         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
9500         Change TARGET_F16C to TARGET_F16C_P (opts->...).
9501         Change TARGET_RTM to TARGET_RTM_P (opts->...).
9502         Change TARGET_HLE to TARGET_HLE_P (opts->...).
9503         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
9504         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
9505         Change TARGET_ADX to TARGET_ADX_P (opts->...).
9506         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
9507         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
9508         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
9509         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
9510         Change TARGET_X32 to TARGET_X32_P (opts->...).
9511         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
9512         Change TARGET_FLOAT_RETURNS_IN_80387 to
9513         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
9514         (ix86_function_specific_save): New parameter. Use opts-> fields
9515         to replace global fields.
9516         (ix86_function_specific_restore): Ditto.
9517         (ix86_valid_target_attribute_inner_p): New parameters.
9518         Fix recursive call.
9519         Fix call to ix86_handle_option and set_option.
9520         (ix86_valid_target_attribute_tree): New parameters.
9521         Change global_options to access opts.
9522         Change global_options_set to access opts_set.
9523         Fix call to ix86_valid_target_attribute_inner_p.
9524         Change ix86_tune_string to access opts->x_ix86_tune_string.
9525         Change ix86_arch_string to access opts->x_ix86_arch_string.
9526         Change ix86_fpmath to access opts->x_ix86_fpmath
9527         Fix call to ix86_option_override_internal.
9528         Fix call to ix86_add_new_builtins.
9529         Fix calls to build_optimization_node and build_target_option_node.
9530         (ix86_valid_target_attribute_p): Remove access to global_options.
9531         Use new gcc_options structure func_options.
9532         Fix call to ix86_valid_target_attribute_tree.
9533         Fix call to  build_optimization_node.
9534         (get_builtin_code_for_version): Fix call to
9535         ix86_valid_target_attribute_tree.
9537 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
9539         * Makefile.in (PICFLAG): New.
9540         (enable_host_shared): New.
9541         (INTERNAL_CFLAGS): Use PICFLAG.
9542         (LIBIBERTY): Use pic build of libiberty.a if configured with
9543         --enable-host-shared.
9544         * configure.ac: Add --enable-host-shared, setting up new
9545         PICFLAG variable.
9546         * configure: Regenerate.
9547         * doc/install.texi (--enable-shared): Add note contrasting it with ...
9548         (--enable-host-shared): New option.
9550 2013-10-15  Richard Biener  <rguenther@suse.de>
9552         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
9553         for built-in functions.
9555 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
9557         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
9558         (optimize_range_tests_1): New function,
9559         extracted from optimize_range_tests.
9560         (optimize_range_tests_xor): Similarly.
9561         (optimize_range_tests_diff): New function.
9562         (optimize_range_tests): Use optimize_range_tests_1.
9564 2013-10-15  Cong Hou  <congh@google.com>
9566         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
9567         requirement of the reduction pattern so that one operand of the
9568         reduction operation can come from outside of the loop.
9570 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9572         * config/arm/neon-schedgen.ml: Remove.
9573         * config/arm/cortex-a9-neon.md: Remove comment regarding
9574         neon-schedgen.ml.
9576 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9578         * config/arm/types: Remove old neon types.
9580 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9582         * config/arm/cortex-a7.md
9583         (cortex_a7_neon_type): New.
9584         (cortex_a7_neon_mul): Update for new types.
9585         (cortex_a7_neon_mla): Likewise.
9586         (cortex_a7_neon): Likewise.
9588 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9590         * config/arm/cortex-a15-neon.md
9591         (cortex_a15_neon_type): New,
9593         (cortex_a15_neon_int_1): Remove.
9594         (cortex_a15_neon_int_2): Likewise.
9595         (cortex_a15_neon_int_3): Likewise.
9596         (cortex_a15_neon_int_4): Likewise.
9597         (cortex_a15_neon_int_5): Likewise.
9598         (cortex_a15_neon_vqneg_vqabs): Likewise.
9599         (cortex_a15_neon_vmov): Likewise.
9600         (cortex_a15_neon_vaba): Likewise.
9601         (cortex_a15_neon_vaba_qqq): Likewise.
9602         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9603         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9604         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9605         Likewise.
9606         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9607         (cortex_a15_neon_mla_qqq_8_16): Likewise.
9608         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
9609         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9610         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9611         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
9612         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9613         (cortex_a15_neon_shift_1): Likewise.
9614         (cortex_a15_neon_shift_2): Likewise.
9615         (cortex_a15_neon_shift_3): Likewise.
9616         (cortex_a15_neon_vshl_ddd): Likewise.
9617         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9618         (cortex_a15_neon_vsra_vrsra): Likewise.
9619         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
9620         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
9621         (cortex_a15_neon_bp_3cycle): Likewise.
9622         (cortex_a15_neon_ldm_2): Likewise.
9623         (cortex_a15_neon_stm_2): Likewise.
9624         (cortex_a15_neon_mcr): Likewise.
9625         (cortex_a15_neon_mrc): Likewise.
9626         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
9627         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
9628         (cortex_a15_neon_fp_vmul_ddd): Likewise.
9629         (cortex_a15_neon_fp_vmul_qqd): Likewise.
9630         (cortex_a15_neon_fp_vmla_ddd): Likewise.
9631         (cortex_a15_neon_fp_vmla_qqq): Likewise.
9632         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
9633         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
9634         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9635         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9636         (cortex_a15_neon_bp_simple): Likewise.
9637         (cortex_a15_neon_bp_2cycle): Likewise.
9638         (cortex_a15_neon_bp_3cycle): Likewise.
9639         (cortex_a15_neon_vld1_1_2_regs): Likewise.
9640         (cortex_a15_neon_vld1_3_4_regs): Likewise.
9641         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9642         (cortex_a15_neon_vld2_4_regs): Likewise.
9643         (cortex_a15_neon_vld3_vld4): Likewise.
9644         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9645         (cortex_a15_neon_vst1_3_4_regs): Likewise.
9646         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
9647         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
9648         (cortex_a15_neon_vst3_vst4): Rename to...
9649         (cortex_a15_neon_vst4): This, update for new attributes.
9650         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
9651         (cortex_a15_neon_vld3_vld4_lane): Likewise.
9652         (cortex_a15_neon_vst1_vst2_lane): Likewise.
9653         (cortex_a15_neon_vst3_vst4_lane): Likewise.
9654         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
9655         (cortex_a15_neon_ldm_2): Likewise.
9656         (cortex_a15_neon_stm_2): Likewise.
9657         (cortex_a15_neon_mcr): Likewise.
9658         (cortex_a15_neon_mcr_2_mcrr): Likewise.
9659         (cortex_a15_neon_mrc): Likewise.
9660         (cortex_a15_neon_mrrc): Likewise.
9662         (cortex_a15_neon_abd): New.
9663         (cortex_a15_neon_abd_q): Likewise.
9664         (cortex_a15_neon_aba): Likewise.
9665         (cortex_a15_neon_aba_q): Likewise.
9666         (cortex_a15_neon_acc): Likewise.
9667         (cortex_a15_neon_acc_q): Likewise.
9668         (cortex_a15_neon_arith_basic): Likewise.
9669         (cortex_a15_neon_arith_complex): Likewise.
9670         (cortex_a15_neon_multiply): Likewise.
9671         (cortex_a15_neon_multiply_q): Likewise.
9672         (cortex_a15_neon_mla): Likewise.
9673         (cortex_a15_neon_mla_q): Likewise.
9674         (cortex_a15_neon_sat_mla_long): Likewise.
9675         (cortex_a15_neon_shift_acc): Likewise.
9676         (cortex_a15_neon_shift_imm_basic): Likewise.
9677         (cortex_a15_neon_shift_imm_complex): Likewise.
9678         (cortex_a15_neon_shift_reg_basic): Likewise.
9679         (cortex_a15_neon_shift_reg_basic_q): Likewise.
9680         (cortex_a15_neon_shift_reg_complex): Likewise.
9681         (cortex_a15_neon_shift_reg_complex_q): Likewise.
9682         (cortex_a15_neon_fp_negabs): Likewise
9683         (cortex_a15_neon_fp_arith): Likewise
9684         (cortex_a15_neon_fp_arith_q): Likewise
9685         (cortex_a15_neon_fp_cvt_int): Likewise
9686         (cortex_a15_neon_fp_cvt_int_q): Likewise
9687         (cortex_a15_neon_fp_cvt_16): Likewise
9688         (cortex_a15_neon_fp_mul): Likewise
9689         (cortex_a15_neon_fp_mul_q): Likewise
9690         (cortex_a15_neon_fp_mla): Likewise
9691         (cortex_a15_neon_fp_mla_q): Likewise
9692         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
9693         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
9694         (cortex_a15_neon_bitops): Likewise.
9695         (cortex_a15_neon_bitops_q): Likewise.
9696         (cortex_a15_neon_from_gp): Likewise.
9697         (cortex_a15_neon_from_gp_q): Likewise.
9698         (cortex_a15_neon_tbl3_tbl4): Likewise.
9699         (cortex_a15_neon_zip_q): Likewise.
9700         (cortex_a15_neon_to_gp): Likewise.
9701         (cortex_a15_neon_load_a): Likewise.
9702         (cortex_a15_neon_load_b): Likewise.
9703         (cortex_a15_neon_load_c): Likewise.
9704         (cortex_a15_neon_load_d): Likewise.
9705         (cortex_a15_neon_load_e): Likewise.
9706         (cortex_a15_neon_load_f): Likewise.
9707         (cortex_a15_neon_store_a): Likewise.
9708         (cortex_a15_neon_store_b): Likewise.
9709         (cortex_a15_neon_store_c): Likewise.
9710         (cortex_a15_neon_store_d): Likewise.
9711         (cortex_a15_neon_store_e): Likewise.
9712         (cortex_a15_neon_store_f): Likewise.
9713         (cortex_a15_neon_store_g): Likewise.
9714         (cortex_a15_neon_store_h): Likewise.
9715         (cortex_a15_vfp_to_from_gp): Likewise.
9717 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9719         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
9721         (cortex_a9_neon_vshl_ddd): Remove.
9722         (cortex_a9_neon_vst3_vst4): Likewise.
9723         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
9725         (cortex_a9_neon_bit_ops_q): New.
9727         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
9728         (cortex_a9_neon_int_2): Likewise.
9729         (cortex_a9_neon_int_3): Likewise.
9730         (cortex_a9_neon_int_4): Likewise.
9731         (cortex_a9_neon_int_5): Likewise.
9732         (cortex_a9_neon_vqneg_vqabs): Likewise.
9733         (cortex_a9_neon_vmov): Likewise.
9734         (cortex_a9_neon_vaba): Likewise.
9735         (cortex_a9_neon_vaba_qqq): Likewise.
9736         (cortex_a9_neon_shift_1): Likewise.
9737         (cortex_a9_neon_shift_2): Likewise.
9738         (cortex_a9_neon_shift_3): Likewise.
9739         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9740         (cortex_a9_neon_vsra_vrsra): Likewise.
9741         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9742         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9743         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9744         Likewise.
9745         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9746         (cortex_a9_neon_mla_qqq_8_16): Likewise.
9747         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
9748         Likewise.
9749         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9750         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9751         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
9752         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9753         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
9754         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
9755         (cortex_a9_neon_fp_vsum): Likewise.
9756         (cortex_a9_neon_fp_vmul_ddd): Likewise.
9757         (cortex_a9_neon_fp_vmul_qqd): Likewise.
9758         (cortex_a9_neon_fp_vmla_ddd): Likewise.
9759         (cortex_a9_neon_fp_vmla_qqq): Likewise.
9760         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
9761         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
9762         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9763         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9764         (cortex_a9_neon_bp_simple): Likewise.
9765         (cortex_a9_neon_bp_2cycle): Likewise.
9766         (cortex_a9_neon_bp_3cycle): Likewise.
9767         (cortex_a9_neon_ldr): Likewise.
9768         (cortex_a9_neon_str): Likewise.
9769         (cortex_a9_neon_vld1_1_2_regs): Likewise.
9770         (cortex_a9_neon_vld1_3_4_regs): Likewise.
9771         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9772         (cortex_a9_neon_vld2_4_regs): Likewise.
9773         (cortex_a9_neon_vld3_vld4): Likewise.
9774         (cortex_a9_neon_vld1_vld2_lane): Likewise.
9775         (cortex_a9_neon_vld3_vld4_lane): Likewise.
9776         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
9777         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9778         (cortex_a9_neon_vst1_3_4_regs): Likewise.
9779         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
9780         (cortex_a9_neon_vst1_vst2_lane): Likewise.
9781         (cortex_a9_neon_vst3_vst4_lane): Likewise.
9782         (cortex_a9_neon_mcr): Likewise.
9783         (cortex_a9_neon_mcr_2_mcrr): Likewise.
9784         (cortex_a9_neon_mrc): Likewise.
9785         (cortex_a9_neon_mrrc): Likewise.
9787 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9789         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
9791         (cortex_a8_neon_vshl_ddd): Remove.
9792         (cortex_a8_neon_vst3_vst4): Likewise.
9793         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
9795         (cortex_a8_neon_bit_ops_q): New.
9797         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
9798         (cortex_a8_neon_int_2): Likewise..
9799         (cortex_a8_neon_int_3): Likewise.
9800         (cortex_a8_neon_int_5): Likewise.
9801         (cortex_a8_neon_vqneg_vqabs): Likewise.
9802         (cortex_a8_neon_int_4): Likewise.
9803         (cortex_a8_neon_vaba): Likewise.
9804         (cortex_a8_neon_vaba_qqq): Likewise.
9805         (cortex_a8_neon_shift_1): Likewise.
9806         (cortex_a8_neon_shift_2): Likewise.
9807         (cortex_a8_neon_shift_3): Likewise.
9808         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9809         (cortex_a8_neon_vsra_vrsra): Likewise.
9810         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9811         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9812         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9813         Likewise.
9814         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9815         (cortex_a8_neon_mla_qqq_8_16): Likewise.
9816         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
9817         Likewise.
9818         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9819         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9820         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
9821         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9822         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
9823         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
9824         (cortex_a8_neon_fp_vsum): Likewise.
9825         (cortex_a8_neon_fp_vmul_ddd): Likewise.
9826         (cortex_a8_neon_fp_vmul_qqd): Likewise.
9827         (cortex_a8_neon_fp_vmla_ddd): Likewise.
9828         (cortex_a8_neon_fp_vmla_qqq): Likewise.
9829         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
9830         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
9831         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9832         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9833         (cortex_a8_neon_bp_simple): Likewise.
9834         (cortex_a8_neon_bp_2cycle): Likewise.
9835         (cortex_a8_neon_bp_3cycle): Likewise.
9836         (cortex_a8_neon_ldr): Likewise.
9837         (cortex_a8_neon_str): Likewise.
9838         (cortex_a8_neon_vld1_1_2_regs): Likewise.
9839         (cortex_a8_neon_vld1_3_4_regs): Likewise.
9840         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9841         (cortex_a8_neon_vld2_4_regs): Likewise.
9842         (cortex_a8_neon_vld3_vld4): Likewise.
9843         (cortex_a8_neon_vld1_vld2_lane): Likewise.
9844         (cortex_a8_neon_vld3_vld4_lane): Likewise.
9845         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9846         (cortex_a8_neon_vst1_3_4_regs): Likewise.
9847         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
9848         (cortex_a8_neon_vst1_vst2_lane): Likewise.
9849         (cortex_a8_neon_vst3_vst4_lane): Likewise.
9850         (cortex_a8_neon_mcr): Likewise.
9851         (cortex_a8_neon_mcr_2_mcrr): Likewise.
9852         (cortex_a8_neon_mrc): Likewise.
9853         (cortex_a8_neon_mrrc): Likewise.
9855 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9857         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
9858         (fp): New.
9859         * config/aarch64/aarch64-simd.md (neon_type): Remove.
9860         (aarch64_simd_dup<mode>): Add "type" attribute.
9861         (aarch64_dup_lane<mode>): Likewise.
9862         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
9863         (*aarch64_simd_mov<mode>): Likewise.
9864         (aarch64_simd_mov_from_<mode>low): Likewise.
9865         (aarch64_simd_mov_from_<mode>high): Likewise.
9866         (orn<mode>3): Likewise.
9867         (bic<mode>3): Likewise.
9868         (add<mode>3): Likewise.
9869         (sub<mode>3): Likewise.
9870         (mul<mode>3): Likewise.
9871         (*aarch64_mul3_elt<mode>): Likewise.
9872         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
9873         (*aarch64_mul3_elt_to_128df): Likewise.
9874         (*aarch64_mul3_elt_to_64v2df): Likewise.
9875         (neg<mode>2): Likewise.
9876         (abs<mode>2): Likewise.
9877         (abd<mode>_3): Likewise.
9878         (aba<mode>_3): Likewise.
9879         (fabd<mode>_3): Likewise.
9880         (*fabd_scalar<mode>3): Likewise.
9881         (and<mode>3): Likewise.
9882         (ior<mode>3): Likewise.
9883         (xor<mode>3): Likewise.
9884         (one_cmpl<mode>2): Likewise.
9885         (aarch64_simd_vec_set<mode>): Likewise.
9886         (aarch64_simd_lshr<mode>): Likewise.
9887         (aarch64_simd_ashr<mode>): Likewise.
9888         (aarch64_simd_imm_shl<mode>): Likewise.
9889         (aarch64_simd_reg_sshl<mode): Likewise.
9890         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
9891         (aarch64_simd_reg_shl<mode>_signed): Likewise.
9892         (aarch64_simd_vec_setv2di): Likewise.
9893         (aarch64_simd_vec_set<mode>): Likewise.
9894         (aarch64_mla<mode>): Likewise.
9895         (*aarch64_mla_elt<mode>): Likewise.
9896         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
9897         (aarch64_mls<mode>): Likewise.
9898         (*aarch64_mls_elt<mode>): Likewise.
9899         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
9900         (<su><maxmin><mode>3): Likewise.
9901         (move_lo_quad_<mode>): Likewise.
9902         (aarch64_simd_move_hi_quad_<mode>): Likewise.
9903         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
9904         (vec_pack_trunc_<mode>): Likewise.
9905         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
9906         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
9907         (*aarch64_<su>mlal_lo<mode>): Likewise.
9908         (*aarch64_<su>mlal_hi<mode>): Likewise.
9909         (*aarch64_<su>mlsl_lo<mode>): Likewise.
9910         (*aarch64_<su>mlsl_hi<mode>): Likewise.
9911         (*aarch64_<su>mlal<mode>): Likewise.
9912         (*aarch64_<su>mlsl<mode>): Likewise.
9913         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
9914         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
9915         (add<mode>3): Likewise.
9916         (sub<mode>3): Likewise.
9917         (mul<mode>3): Likewise.
9918         (div<mode>3): Likewise.
9919         (neg<mode>2): Likewise.
9920         (abs<mode>2): Likewise.
9921         (fma<mode>4): Likewise.
9922         (*aarch64_fma4_elt<mode>): Likewise.
9923         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
9924         (*aarch64_fma4_elt_to_128df): Likewise.
9925         (*aarch64_fma4_elt_to_64v2df): Likewise.
9926         (fnma<mode>4): Likewise.
9927         (*aarch64_fnma4_elt<mode>): Likewise.
9928         (*aarch64_fnma4_elt_<vswap_width_name><mode>
9929         (*aarch64_fnma4_elt_to_128df): Likewise.
9930         (*aarch64_fnma4_elt_to_64v2df): Likewise.
9931         (<frint_pattern><mode>2): Likewise.
9932         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
9933         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
9934         (vec_unpacks_lo_v4sf): Likewise.
9935         (aarch64_float_extend_lo_v2df): Likewise.
9936         (vec_unpacks_hi_v4sf): Likewise.
9937         (aarch64_float_truncate_lo_v2sf): Likewise.
9938         (aarch64_float_truncate_hi_v4sf): Likewise.
9939         (aarch64_vmls<mode>): Likewise.
9940         (<su><maxmin><mode>3): Likewise.
9941         (<maxmin_uns><mode>3): Likewise.
9942         (reduc_<sur>plus_<mode>): Likewise.
9943         (reduc_<sur>plus_v2di): Likewise.
9944         (reduc_<sur>plus_v2si): Likewise.
9945         (reduc_<sur>plus_<mode>): Likewise.
9946         (aarch64_addpv4sf): Likewise.
9947         (clz<mode>2): Likewise.
9948         (reduc_<maxmin_uns>_<mode>): Likewise.
9949         (reduc_<maxmin_uns>_v2di): Likewise.
9950         (reduc_<maxmin_uns>_v2si): Likewise.
9951         (reduc_<maxmin_uns>_<mode>): Likewise.
9952         (reduc_<maxmin_uns>_v4sf): Likewise.
9953         (aarch64_simd_bsl<mode>_internal): Likewise.
9954         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
9955         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
9956         (aarch64_get_lane<mode>): Likewise.
9957         (*aarch64_combinez<mode>): Likewise.
9958         (aarch64_combine<mode>): Likewise.
9959         (aarch64_simd_combine<mode>): Likewise.
9960         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
9961         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
9962         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
9963         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
9964         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
9965         (aarch64_<sur>h<addsub><mode>): Likewise.
9966         (aarch64_<sur><addsub>hn<mode>): Likewise.
9967         (aarch64_<sur><addsub>hn2<mode>): Likewise.
9968         (aarch64_pmul<mode>): Likewise.
9969         (aarch64_<su_optab><optab><mode>): Likewise.
9970         (aarch64_<sur>qadd<mode>): Likewise.
9971         (aarch64_sqmovun<mode>): Likewise.
9972         (aarch64_<sur>qmovn<mode>): Likewise.
9973         (aarch64_s<optab><mode>): Likewise.
9974         (aarch64_sq<r>dmulh<mode>): Likewise.
9975         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
9976         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
9977         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
9978         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
9979         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
9980         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
9981         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
9982         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
9983         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
9984         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
9985         (aarch64_sqdmull<mode>): Likewise.
9986         (aarch64_sqdmull_lane<mode>_internal): Likewise.
9987         (aarch64_sqdmull_n<mode>): Likewise.
9988         (aarch64_sqdmull2<mode>_internal): Likewise.
9989         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
9990         (aarch64_sqdmull2_n<mode>_internal): Likewise.
9991         (aarch64_<sur>shl<mode>): Likewise.
9992         (aarch64_<sur>q<r>shl<mode>
9993         (aarch64_<sur>shll_n<mode>): Likewise.
9994         (aarch64_<sur>shll2_n<mode>): Likewise.
9995         (aarch64_<sur>shr_n<mode>): Likewise.
9996         (aarch64_<sur>sra_n<mode>): Likewise.
9997         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
9998         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
9999         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
10000         (aarch64_cm<optab><mode>): Likewise.
10001         (aarch64_cm<optab>di): Likewise.
10002         (aarch64_cm<optab><mode>): Likewise.
10003         (aarch64_cm<optab>di): Likewise.
10004         (aarch64_cmtst<mode>): Likewise.
10005         (aarch64_cmtstdi): Likewise.
10006         (aarch64_cm<optab><mode>): Likewise.
10007         (*aarch64_fac<optab><mode>): Likewise.
10008         (aarch64_addp<mode>): Likewise.
10009         (aarch64_addpdi): Likewise.
10010         (sqrt<mode>2): Likewise.
10011         (vec_load_lanesoi<mode>): Likewise.
10012         (vec_store_lanesoi<mode>): Likewise.
10013         (vec_load_lanesci<mode>): Likewise.
10014         (vec_store_lanesci<mode>): Likewise.
10015         (vec_load_lanesxi<mode>): Likewise.
10016         (vec_store_lanesxi<mode>): Likewise.
10017         (*aarch64_mov<mode>): Likewise.
10018         (aarch64_ld2<mode>_dreg): Likewise.
10019         (aarch64_ld2<mode>_dreg): Likewise.
10020         (aarch64_ld3<mode>_dreg): Likewise.
10021         (aarch64_ld3<mode>_dreg): Likewise.
10022         (aarch64_ld4<mode>_dreg): Likewise.
10023         (aarch64_ld4<mode>_dreg): Likewise.
10024         (aarch64_tbl1<mode>): Likewise.
10025         (aarch64_tbl2v16qi): Likewise.
10026         (aarch64_combinev16qi): Likewise.
10027         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
10028         (aarch64_st2<mode>_dreg): Likewise.
10029         (aarch64_st2<mode>_dreg): Likewise.
10030         (aarch64_st3<mode>_dreg): Likewise.
10031         (aarch64_st3<mode>_dreg): Likewise.
10032         (aarch64_st4<mode>_dreg): Likewise.
10033         (aarch64_st4<mode>_dreg): Likewise.
10034         (*aarch64_simd_ld1r<mode>): Likewise.
10035         (aarch64_frecpe<mode>): Likewise.
10036         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10037         (aarch64_frecps<mode>): Likewise.
10039 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10041         * config/arm/iterators.md (V_elem_ch): New.
10042         (q): Likewise.
10043         (VQH_type): Likewise.
10044         * config/arm/arm.md (is_neon_type): New.
10045         (conds): Use is_neon_type.
10046         (anddi3_insn): Update type attribute.
10047         (xordi3_insn): Likewise.
10048         (one_cmpldi2): Likewise.
10049         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
10050         * config/arm/neon.md (neon_mov): Update type attribute.
10051         (*movmisalign<mode>_neon_store): Likewise.
10052         (*movmisalign<mode>_neon_load): Likewise.
10053         (vec_set<mode>_internal): Likewise.
10054         (vec_set<mode>_internal): Likewise.
10055         (vec_setv2di_internal): Likewise.
10056         (vec_extract<mode>): Likewise.
10057         (vec_extract<mode>): Likewise.
10058         (vec_extractv2di): Likewise.
10059         (*add<mode>3_neon): Likewise.
10060         (adddi3_neon): Likewise.
10061         (*sub<mode>3_neon): Likewise.
10062         (subdi3_neon): Likewise.
10063         (fma<VCVTF:mode>4): Likewise.
10064         (fma<VCVTF:mode>4_intrinsic): Likewise.
10065         (*fmsub<VCVTF:mode>4): Likewise.
10066         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
10067         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
10068         (ior<mode>3): Likewise.
10069         (and<mode>3): Likewise.
10070         (orn<mode>3_neon): Likewise.
10071         (orndi3_neon): Likewise.
10072         (bic<mode>3_neon): Likewise.
10073         (bicdi3_neon): Likewise.
10074         (xor<mode>3): Likewise.
10075         (one_cmpl<mode>2): Likewise.
10076         (abs<mode>2): Likewise.
10077         (neg<mode>2): Likewise.
10078         (negdi2_neon): Likewise.
10079         (*umin<mode>3_neon): Likewise.
10080         (*umax<mode>3_neon): Likewise.
10081         (*smin<mode>3_neon): Likewise.
10082         (*smax<mode>3_neon): Likewise.
10083         (vashl<mode>3): Likewise.
10084         (vashr<mode>3_imm): Likewise.
10085         (vlshr<mode>3_imm): Likewise.
10086         (ashl<mode>3_signed): Likewise.
10087         (ashl<mode>3_unsigned): Likewise.
10088         (neon_load_count): Likewise.
10089         (ashldi3_neon_noclobber): Likewise.
10090         (ashldi3_neon): Likewise.
10091         (signed_shift_di3_neon): Likewise.
10092         (unsigned_shift_di3_neon): Likewise.
10093         (ashrdi3_neon_imm_noclobber): Likewise.
10094         (lshrdi3_neon_imm_noclobber): Likewise.
10095         (<shift>di3_neon): Likewise.
10096         (widen_ssum<mode>3): Likewise.
10097         (widen_usum<mode>3): Likewise.
10098         (quad_halves_<code>v4si): Likewise.
10099         (quad_halves_<code>v4sf): Likewise.
10100         (quad_halves_<code>v8hi): Likewise.
10101         (quad_halves_<code>v16qi): Likewise.
10102         (reduc_splus_v2di): Likewise.
10103         (neon_vpadd_internal<mode>): Likewise.
10104         (neon_vpsmin<mode>): Likewise.
10105         (neon_vpsmax<mode>): Likewise.
10106         (neon_vpumin<mode>): Likewise.
10107         (neon_vpumax<mode>): Likewise.
10108         (*ss_add<mode>_neon): Likewise.
10109         (*us_add<mode>_neon): Likewise.
10110         (*ss_sub<mode>_neon): Likewise.
10111         (*us_sub<mode>_neon): Likewise.
10112         (neon_vadd<mode>_unspec): Likewise.
10113         (neon_vaddl<mode>): Likewise.
10114         (neon_vaddw<mode>): Likewise.
10115         (neon_vhadd<mode>): Likewise.
10116         (neon_vqadd<mode>): Likewise.
10117         (neon_vaddhn<mode>): Likewise.
10118         (neon_vmul<mode>): Likewise.
10119         (neon_vfms<VCVTF:mode>): Likewise.
10120         (neon_vmlal<mode>): Likewise.
10121         (neon_vmls<mode>): Likewise.
10122         (neon_vmlsl<mode>): Likewise.
10123         (neon_vqdmulh<mode>): Likewise.
10124         (neon_vqdmlal<mode>): Likewise.
10125         (neon_vqdmlsl<mode>): Likewise.
10126         (neon_vmull<mode>): Likewise.
10127         (neon_vqdmull<mode>): Likewise.
10128         (neon_vsub<mode>_unspec): Likewise.
10129         (neon_vsubl<mode>): Likewise.
10130         (neon_vsubw<mode>): Likewise.
10131         (neon_vqsub<mode>): Likewise.
10132         (neon_vhsub<mode>): Likewise.
10133         (neon_vsubhn<mode>): Likewise.
10134         (neon_vceq<mode>): Likewise.
10135         (neon_vcge<mode>): Likewise.
10136         (neon_vcgeu<mode>): Likewise.
10137         (neon_vcgt<mode>): Likewise.
10138         (neon_vcgtu<mode>): Likewise.
10139         (neon_vcle<mode>): Likewise.
10140         (neon_vclt<mode>): Likewise.
10141         (neon_vcage<mode>): Likewise.
10142         (neon_vcagt<mode>): Likewise.
10143         (neon_vtst<mode>): Likewise.
10144         (neon_vabd<mode>): Likewise.
10145         (neon_vabdl<mode>): Likewise.
10146         (neon_vaba<mode>): Likewise.
10147         (neon_vabal<mode>): Likewise.
10148         (neon_vmax<mode>): Likewise.
10149         (neon_vmin<mode>): Likewise.
10150         (neon_vpaddl<mode>): Likewise.
10151         (neon_vpadal<mode>): Likewise.
10152         (neon_vpmax<mode>): Likewise.
10153         (neon_vpmin<mode>): Likewise.
10154         (neon_vrecps<mode>): Likewise.
10155         (neon_vrsqrts<mode>): Likewise.
10156         (neon_vqabs<mode>): Likewise.
10157         (neon_vqneg<mode>): Likewise.
10158         (neon_vcls<mode>): Likewise.
10159         (clz<mode>2): Likewise.
10160         (popcount<mode>2): Likewise.
10161         (neon_vrecpe<mode>): Likewise.
10162         (neon_vrsqrte<mode>): Likewise.
10163         (neon_vget_lane<mode>_sext_internal): Likewise.
10164         (neon_vget_lane<mode>_zext_internal): Likewise.
10165         (neon_vdup_n<mode>): Likewise.
10166         (neon_vdup_n<mode>): Likewise.
10167         (neon_vdup_nv2di): Likewise.
10168         (neon_vdup_lane<mode>_interal): Likewise.
10169         (*neon_vswp<mode>): Likewise.
10170         (neon_vcombine<mode>): Likewise.
10171         (float<mode><V_cvtto>2): Likewise.
10172         (floatuns<mode><V_cvtto>2): Likewise.
10173         (fix_trunc<mode><V_cvtto>2): Likewise.
10174         (fixuns_trunc<mode><V_cvtto>2
10175         (neon_vcvt<mode>): Likewise.
10176         (neon_vcvt<mode>): Likewise.
10177         (neon_vcvtv4sfv4hf): Likewise.
10178         (neon_vcvtv4hfv4sf): Likewise.
10179         (neon_vcvt_n<mode>): Likewise.
10180         (neon_vcvt_n<mode>): Likewise.
10181         (neon_vmovn<mode>): Likewise.
10182         (neon_vqmovn<mode>): Likewise.
10183         (neon_vqmovun<mode>): Likewise.
10184         (neon_vmovl<mode>): Likewise.
10185         (neon_vmul_lane<mode>): Likewise.
10186         (neon_vmul_lane<mode>): Likewise.
10187         (neon_vmull_lane<mode>): Likewise.
10188         (neon_vqdmull_lane<mode>): Likewise.
10189         (neon_vqdmulh_lane<mode>): Likewise.
10190         (neon_vqdmulh_lane<mode>): Likewise.
10191         (neon_vmla_lane<mode>): Likewise.
10192         (neon_vmla_lane<mode>): Likewise.
10193         (neon_vmlal_lane<mode>): Likewise.
10194         (neon_vqdmlal_lane<mode>): Likewise.
10195         (neon_vmls_lane<mode>): Likewise.
10196         (neon_vmls_lane<mode>): Likewise.
10197         (neon_vmlsl_lane<mode>): Likewise.
10198         (neon_vqdmlsl_lane<mode>): Likewise.
10199         (neon_vext<mode>): Likewise.
10200         (neon_vrev64<mode>): Likewise.
10201         (neon_vrev32<mode>): Likewise.
10202         (neon_vrev16<mode>): Likewise.
10203         (neon_vbsl<mode>_internal): Likewise.
10204         (neon_vshl<mode>): Likewise.
10205         (neon_vqshl<mode>): Likewise.
10206         (neon_vshr_n<mode>): Likewise.
10207         (neon_vshrn_n<mode>): Likewise.
10208         (neon_vqshrn_n<mode>): Likewise.
10209         (neon_vqshrun_n<mode>): Likewise.
10210         (neon_vshl_n<mode>): Likewise.
10211         (neon_vqshl_n<mode>): Likewise.
10212         (neon_vqshlu_n<mode>): Likewise.
10213         (neon_vshll_n<mode>): Likewise.
10214         (neon_vsra_n<mode>): Likewise.
10215         (neon_vsri_n<mode>): Likewise.
10216         (neon_vsli_n<mode>): Likewise.
10217         (neon_vtbl1v8qi): Likewise.
10218         (neon_vtbl2v8qi): Likewise.
10219         (neon_vtbl3v8qi): Likewise.
10220         (neon_vtbl4v8qi): Likewise.
10221         (neon_vtbl1v16qi): Likewise.
10222         (neon_vtbl2v16qi): Likewise.
10223         (neon_vcombinev16qi): Likewise.
10224         (neon_vtbx1v8qi): Likewise.
10225         (neon_vtbx2v8qi): Likewise.
10226         (neon_vtbx3v8qi): Likewise.
10227         (neon_vtbx4v8qi): Likewise.
10228         (*neon_vtrn<mode>_insn): Likewise.
10229         (*neon_vzip<mode>_insn): Likewise.
10230         (*neon_vuzp<mode>_insn): Likewise.
10231         (neon_vld1<mode>): Likewise.
10232         (neon_vld1_lane<mode>): Likewise.
10233         (neon_vld1_lane<mode>): Likewise.
10234         (neon_vld1_dup<mode>): Likewise.
10235         (neon_vld1_dup<mode>): Likewise.
10236         (neon_vld1_dupv2di): Likewise.
10237         (neon_vst1<mode>): Likewise.
10238         (neon_vst1_lane<mode>): Likewise.
10239         (neon_vst1_lane<mode>): Likewise.
10240         (neon_vld2<mode>): Likewise.
10241         (neon_vld2<mode>): Likewise.
10242         (neon_vld2_lane<mode>): Likewise.
10243         (neon_vld2_lane<mode>): Likewise.
10244         (neon_vld2_dup<mode>): Likewise.
10245         (neon_vst2<mode>): Likewise.
10246         (neon_vst2<mode>): Likewise.
10247         (neon_vst2_lane<mode>): Likewise.
10248         (neon_vst2_lane<mode>): Likewise.
10249         (neon_vld3<mode>): Likewise.
10250         (neon_vld3qa<mode>): Likewise.
10251         (neon_vld3qb<mode>): Likewise.
10252         (neon_vld3_lane<mode>): Likewise.
10253         (neon_vld3_lane<mode>): Likewise.
10254         (neon_vld3_dup<mode>): Likewise.
10255         (neon_vst3<mode>): Likewise.
10256         (neon_vst3qa<mode>): Likewise.
10257         (neon_vst3qb<mode>): Likewise.
10258         (neon_vst3_lane<mode>): Likewise.
10259         (neon_vst3_lane<mode>): Likewise.
10260         (neon_vld4<mode>): Likewise.
10261         (neon_vld4qa<mode>): Likewise.
10262         (neon_vld4qb<mode>): Likewise.
10263         (neon_vld4_lane<mode>): Likewise.
10264         (neon_vld4_lane<mode>): Likewise.
10265         (neon_vld4_dup<mode>): Likewise.
10266         (neon_vst4<mode>): Likewise.
10267         (neon_vst4qa<mode>): Likewise.
10268         (neon_vst4qb<mode>): Likewise.
10269         (neon_vst4_lane<mode>): Likewise.
10270         (neon_vst4_lane<mode>): Likewise.
10271         (neon_vec_unpack<US>_lo_<mode>): Likewise.
10272         (neon_vec_unpack<US>_hi_<mode>): Likewise.
10273         (neon_vec_<US>mult_lo_<mode>): Likewise.
10274         (neon_vec_<US>mult_hi_<mode>): Likewise.
10275         (neon_vec_<US>shiftl_<mode>): Likewise.
10276         (neon_unpack<US>_<mode>): Likewise.
10277         (neon_vec_<US>mult_<mode>): Likewise.
10278         (vec_pack_trunc_<mode>): Likewise.
10279         (neon_vec_pack_trunc_<mode>): Likewise.
10280         (neon_vabd<mode>_2): Likewise.
10281         (neon_vabd<mode>_3): Likewise.
10283 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10285         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
10286         (load_pair): Update type attribute.
10287         (store_pair): Update type attribute.
10288         * config/aarch64/iterators.md (q): New.
10290 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10292         * config/arm/types.md: Add new types for Neon insns.
10294 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10295             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10296             Sergey Lega  <sergey.s.lega@intel.com>
10297             Anna Tikhonova  <anna.tikhonova@intel.com>
10298             Ilya Tocar  <ilya.tocar@intel.com>
10299             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10300             Ilya Verbin  <ilya.verbin@intel.com>
10301             Kirill Yukhin  <kirill.yukhin@intel.com>
10302             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10304         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
10305         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
10306         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
10307         (rcp14<mode>): New.
10308         (srcp14<mode>): Ditto.
10309         (rsqrt14<mode>): Ditto.
10310         (rsqrt14<mode>): Ditto.
10311         (avx512f_vmscalef<mode>): Ditto.
10312         (avx512f_scalef<mode>): Ditto.
10313         (avx512f_getexp<mode>): Ditto.
10314         (avx512f_sgetexp<mode>): Ditto.
10315         (avx512f_fixupimm<mode>): Ditto.
10316         (avx512f_sfixupimm<mode>): Ditto.
10317         (avx512f_rndscale<mode>): Ditto.
10318         (*avx512er_exp2<mode>): Ditto.
10319         (*avx512er_rcp28<mode>): Ditto.
10320         (avx512er_rsqrt28<mode>): Ditto.
10321         (avx512f_getmant<mode>): Ditto.
10322         (avx512f_getmant<mode>): Ditto.
10323         (avx512f_rndscale<mode>): Fix formatting.
10325 2013-10-15  Martin Jambor  <mjambor@suse.cz>
10327         * ipa-utils.h (ipa_edge_within_scc): Declare.
10328         * ipa-cp.c (edge_within_scc): Moved...
10329         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
10331 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10332             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10333             Sergey Lega  <sergey.s.lega@intel.com>
10334             Anna Tikhonova  <anna.tikhonova@intel.com>
10335             Ilya Tocar  <ilya.tocar@intel.com>
10336             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10337             Ilya Verbin  <ilya.verbin@intel.com>
10338             Kirill Yukhin  <kirill.yukhin@intel.com>
10339             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10341         * config/i386/predicates.md (const_8_to_15_operand): New.
10342         (const_16_to_31_operand): Ditto.
10343         * config/i386/sse.md (V8FI): New.
10344         (V16FI): Ditto.
10345         (reduc_splus_v8df): Ditto.
10346         (reduc_splus_v16sf): Ditto.
10347         (avx512f_vextract<shuffletype>32x4_1): Ditto.
10348         (vec_extract_hi_<mode>): Ditto.
10349         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
10350         (vec_set_lo_<mode>): Ditto.
10351         (vec_set_hi_<mode>): Ditto.
10352         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
10353         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
10354         (avx512f_pshufd_1): Ditto.
10355         (avx512f_broadcast<mode>): Ditto.
10356         (avx512f_broadcast<mode>): Ditto.
10357         (define_split): Split vec_extract_lo into move.
10358         (ssequartermode): Ditto.
10359         (ssedoublemode): Extened with wider modes.
10360         (vec_extract_lo_<mode>): Ditto.
10362 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10363             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10364             Sergey Lega  <sergey.s.lega@intel.com>
10365             Anna Tikhonova  <anna.tikhonova@intel.com>
10366             Ilya Tocar  <ilya.tocar@intel.com>
10367             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10368             Ilya Verbin  <ilya.verbin@intel.com>
10369             Kirill Yukhin  <kirill.yukhin@intel.com>
10370             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10372         * config/i386/predicates.md (register_or_constm1_operand): New.
10373         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
10374         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
10375         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
10376         UNSPEC_SCATTER_PREFETCH
10377         (VI48_512): New.
10378         (avx512f_ucmp<mode>3): Ditto.
10379         (avx512f_vternlog<mode>): Ditto.
10380         (avx512f_align<mode>): Ditto.
10381         (<shift_insn><mode>3): Ditto.
10382         (avx512f_<rotate>v<mode>): Ditto.
10383         (avx512f_<rotate><mode>): Ditto.
10384         (avx512f_eq<mode>3): Ditto.
10385         (avx512f_eq<mode>3_1): Ditto.
10386         (avx512f_gt<mode>3): Ditto.
10387         (avx512f_testm<mode>3): Ditto.
10388         (avx512f_testnm<mode>3): Ditto.
10389         (avx512pf_gatherpf<mode>): Ditto.
10390         (*avx512pf_gatherpf<mode>_mask): Ditto.
10391         (*avx512pf_gatherpf<mode>): Ditto.
10392         (avx512pf_scatterpf<mode>): Ditto.
10393         (*avx512pf_scatterpf<mode>_mask): Ditto.
10394         (*avx512pf_scatterpf<mode>): Ditto.
10395         (avx512f_vec_dup_gpr<mode>): Ditto.
10396         (clz<mode>2): Ditto.
10397         (conflict<mode>): Ditto.
10398         (REDUC_SMINMAX_MODE): Extened with wider modes.
10399         (reduc_<code>_<mode>): Ditto.
10400         (vlshr<mode>3): Ditto.
10401         (vashl<mode>3): Ditto.
10403 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10404             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10405             Sergey Lega  <sergey.s.lega@intel.com>
10406             Anna Tikhonova  <anna.tikhonova@intel.com>
10407             Ilya Tocar  <ilya.tocar@intel.com>
10408             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10409             Ilya Verbin  <ilya.verbin@intel.com>
10410             Kirill Yukhin  <kirill.yukhin@intel.com>
10411             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10413         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
10414         UNSPEC_SCATTER.
10415         (VI48F_512): New.
10416         (avx512fmaskmode): Ditto.
10417         (bcstscalarsuff): Ditto.
10418         (avx512f_blendm<mode>): Ditto.
10419         (cmp_imm_predicate): Ditto.
10420         (avx512f_cmp<mode>3): Ditto.
10421         (avx512f_vec_dup<mode>): Ditto.
10422         (avx512f_vec_dup_mem<mode>): Ditto.
10423         (avx512f_vpermi2var<mode>3): Ditto.
10424         (avx512f_vpermt2var<mode>3): Ditto.
10425         (vec_init<mode>): Ditto.
10426         (avx512f_gathersi<mode>): Ditto.
10427         (*avx512f_gathersi<mode>): Ditto.
10428         (*avx512f_gathersi<mode>_2): Ditto.
10429         (avx512f_gatherdi<mode>): Ditto.
10430         (*avx512f_gatherdi<mode>): Ditto.
10431         (*avx512f_gatherdi<mode>_2): Ditto.
10432         (avx512f_scattersi<mode>): Ditto.
10433         (*avx512f_scattersi<mode>): Ditto.
10434         (avx512f_scatterdi<mode>): Ditto.
10435         (*avx512f_scatterdi<mode>): Ditto.
10436         (sseintprefix): Extened with wider modes.
10437         (VEC_GATHER_IDXSI): Ditto.
10438         (VEC_GATHER_IDXDI): Ditto.
10439         (VEC_GATHER_SRCDI): Ditto.
10441 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
10442             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10444         * config/arm/t-aprofile: New file.
10445         * config.gcc: Handle --with-multilib-list option.
10447 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
10449         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
10450         the input for r2.
10452 2013-10-15  Richard Biener  <rguenther@suse.de>
10454         * tree-loop-distribution.c (build_empty_rdg): Inline into
10455         single user.
10456         (rdg_flag_vertex): Inline into single user.
10457         (rdg_flag_vertex_and_dependent): Likewise.
10458         (build_rdg_partition_for_vertex): Remove processed bitmap.
10459         (rdg_build_partitions): Simplify.
10461 2013-10-15  Richard Biener  <rguenther@suse.de>
10463         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
10464         Restructure forwarding through conversions and copies to
10465         avoid performing copy-propagation the wrong way.  Adjust
10466         recursion invocations.
10467         (forward_propagate_addr_expr): Add argument stating if we
10468         are recursing from a single-use.
10469         (ssa_forward_propagate_and_combine): Adjust.
10471 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
10473         * dumpfile.h (gcc::dump_manager): New class, to hold state
10474         relating to dumpfile management.
10475         (get_dump_file_name): Remove in favor of method of dump_manager.
10476         (dump_initialized_p): Likewise.
10477         (dump_start): Likewise.
10478         (dump_finish): Likewise.
10479         (dump_switch_p): Likewise.
10480         (dump_register): Likewise.
10481         (get_dump_file_info): Likewise.
10482         * context.c (gcc::context::context): Construct the dump_manager
10483         instance.
10484         * context.h (gcc::context::get_dumps): New.
10485         (gcc::context::m_dumps): New.
10486         * coverage.c (coverage_init): Port to dump_manager API.
10487         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
10488         (extra_dump_files_in_use): Likewise.
10489         (extra_dump_files_alloced): Likewise.
10490         (gcc::dump_manager::dump_manager): New.
10491         (dump_register): Convert to...
10492         (gcc::dump_manager::dump_register): ...method, replacing
10493         function-static next_dump with m_next_dump field.
10494         (get_dump_file_info): Convert to...
10495         (gcc::dump_manager::get_dump_file_info): ...method.
10496         (get_dump_file_name): Convert to...
10497         (gcc::dump_manager::get_dump_file_name): ...method.
10498         (dump_start): Convert to...
10499         (gcc::dump_manager::dump_start): ...method.
10500         (dump_finish): Convert to...
10501         (gcc::dump_manager::dump_finish): ...method.
10502         (dump_begin): Replace body with...
10503         (gcc::dump_manager::dump_begin): ...new method.
10504         (dump_phase_enabled_p): Convert to...
10505         (gcc::dump_manager::dump_phase_enabled_p): ...method.
10506         (dump_phase_enabled_p): Convert to...
10507         (gcc::dump_manager::dump_phase_enabled_p): ...method.
10508         (dump_initialized_p):  Convert to...
10509         (gcc::dump_manager::dump_initialized_p): ...method.
10510         (dump_flag_name): Replace body with...
10511         (gcc::dump_manager::dump_flag_name): ...new method.
10512         (dump_enable_all): Convert to...
10513         (gcc::dump_manager::dump_enable_all): ...new method.
10514         (opt_info_enable_passes): Convert to...
10515         (gcc::dump_manager::opt_info_enable_passes): ...new method.
10516         (dump_switch_p_1): Convert to...
10517         (gcc::dump_manager::dump_switch_p_1): ...new method.
10518         (dump_switch_p):  Convert to...
10519         (gcc::dump_manager::dump_switch_p): ...new method.
10520         (opt_info_switch_p): Port to dump_manager API.
10521         (enable_rtl_dump_file): Likewise.
10522         * opts-global.c (handle_common_deferred_options): Port to new
10523         dump_manager API.
10524         * passes.c (pass_manager::finish_optimization_passes): Likewise.
10525         (pass_manager::register_one_dump_file): Likewise.
10526         (pass_manager::register_pass): Likewise.
10527         (pass_init_dump_file): Likewise.
10528         (pass_fini_dump_file): Likewise.
10529         * statistics.c (statistics_early_init): Likewise.
10531 2013-10-14  Richard Biener  <rguenther@suse.de>
10533         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
10534         iterative_hash_canonical_type, gimple_canonical_type_hash,
10535         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
10536         gimple_register_canonical_type, print_gimple_types_stats,
10537         free_gimple_type_tables): Move to lto/lto.c
10538         (gt-gimple.h): Do not include.
10539         * gimple.h (gimple_register_canonical_type,
10540         print_gimple_types_stats, free_gimple_type_tables): Remove.
10541         * Makefile.in (GTFILES): Remove gimple.c.
10543 2013-10-14  Travis Snoozy  <quandary@remstate.com>
10545         PR target/58716
10546         * config/msp430/msp430.c (msp430_option_override): Correct thinko
10547         scanning for msp430x targets.
10549 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
10551         PR bootstrap/58509
10552         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
10553         (registers_ok_for_ldd_peep): Move around.
10554         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
10555         * config/sparc/sparc.md (widening peepholes): Use it.
10557 2013-10-14  Richard Biener  <rguenther@suse.de>
10559         PR middle-end/58712
10560         PR middle-end/55358
10561         * gimple.c (iterative_hash_canonical_type): Make sure to
10562         record the hash into the correct hashtable slot.
10564 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
10566         PR rtl-optimization/58662
10567         * combine.c (try_combine): Take into account death nodes on I2 when
10568         splitting a PARALLEL of two independent SETs.  Fix dump message.
10570 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
10572         PR target/51244
10573         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
10574         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
10575         extra_objs.
10576         * config/sh/t-sh (sh_treg_combine.o): New entry.
10577         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
10578         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
10579         (register_sh_passes): New function.  Register sh_treg_combine pass.
10580         (sh_option_override): Invoke it.
10581         (sh_canonicalize_comparison): Handle op0_preserve_value.
10582         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
10583         opportunities.  Canonicalize branch condition.
10584         (nott): Allow only if pseudos can be created for non-SH2A.
10586 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
10588         PR target/58690
10589         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
10590         (ix86_expand_movmem): Replace copy_addr_to_reg with
10591         ix86_copy_addr_to_reg.
10592         (ix86_expand_setmem): Likewise.
10594 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
10596         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
10597         provided by ix86_fp_compare_mode instead of CCFPUmode.
10599 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
10601         * config/aarch64/arm_neon.h
10602         (vtbx<1,3>_<psu>8): Fix register constriants.
10604 2013-10-11  Jeff Law  <law@redhat.com>
10606         PR tree-optimization/58640
10607         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
10608         threading paths that cross over two loop entry points.
10610 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10612         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
10613         handle vector float as well.
10614         (*vsx_le_perm_load_v4si): Likewise.
10615         (*vsx_le_perm_store_v2di): Likewise.
10616         (*vsx_le_perm_store_v4si): Likewise.
10618 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10620         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
10621         directly to circumvent subtract from splat{31} workaround.
10622         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
10623         prototype.
10624         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
10625         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
10626         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
10627         (altivec_vperm_<mode>): Convert to define_insn_and_split to
10628         separate big and little endian logic.
10629         (*altivec_vperm_<mode>_internal): New define_insn.
10630         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
10631         separate big and little endian logic.
10632         (*altivec_vperm_<mode>_uns_internal): New define_insn.
10633         (vec_permv16qi): Add little endian logic.
10635 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
10637         * doc/extend.texi (returns_nonnull): Remove arguments.
10639 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10640             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10641             Sergey Lega  <sergey.s.lega@intel.com>
10642             Anna Tikhonova  <anna.tikhonova@intel.com>
10643             Ilya Tocar  <ilya.tocar@intel.com>
10644             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10645             Ilya Verbin  <ilya.verbin@intel.com>
10646             Kirill Yukhin  <kirill.yukhin@intel.com>
10647             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10649         * config/i386/sse.md (VI48F_256_512): New.
10650         (avx2_permvar<mode>): Change to ...
10651         (<avx2_avx512f>_permvar<mode>): This.
10653 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10654             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10655             Sergey Lega  <sergey.s.lega@intel.com>
10656             Anna Tikhonova  <anna.tikhonova@intel.com>
10657             Ilya Tocar  <ilya.tocar@intel.com>
10658             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10659             Ilya Verbin  <ilya.verbin@intel.com>
10660             Kirill Yukhin  <kirill.yukhin@intel.com>
10661             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10663         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
10664         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
10665         * config/i386/sse.md (VI4_AVX): New.
10666         (sf2simodelower): Ditto.
10667         (sse2_cvtps2dq): Change to ...
10668         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
10670 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10671             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10672             Sergey Lega  <sergey.s.lega@intel.com>
10673             Anna Tikhonova  <anna.tikhonova@intel.com>
10674             Ilya Tocar  <ilya.tocar@intel.com>
10675             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10676             Ilya Verbin  <ilya.verbin@intel.com>
10677             Kirill Yukhin  <kirill.yukhin@intel.com>
10678             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10680         * config/i386/sse.md (V_512): New.
10681         (VI_512): Ditto.
10682         (vcond<V_512:mode><VF_512:mode>): Ditto.
10683         (vcond<V_512:mode><VI_512:mode>): Ditto.
10684         (vcondu<V_512:mode><VI_512:mode>): Ditto.
10686 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10687             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10688             Sergey Lega  <sergey.s.lega@intel.com>
10689             Anna Tikhonova  <anna.tikhonova@intel.com>
10690             Ilya Tocar  <ilya.tocar@intel.com>
10691             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10692             Ilya Verbin  <ilya.verbin@intel.com>
10693             Kirill Yukhin  <kirill.yukhin@intel.com>
10694             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10696         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
10697         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
10698         (FMAMODE): Ditto.
10699         (fma<mode>4): Removed condition.
10700         (fms<mode>4): Ditto.
10701         (fnma<mode>4): Ditto.
10702         (fnms<mode>4): Ditto.
10703         (fma4i_fmadd_<mode>): Ditto.
10704         (*fma_fmadd_<mode>): Ditto.
10705         (*fma_fmsub_<mode>): Ditto.
10706         (*fma_fnmadd_<mode>): Ditto.
10707         (*fma_fnmsub_<mode>): Ditto.
10708         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
10709         (*fma_fmaddsub_<mode>): Ditto.
10710         (*fma_fmsubadd_<mode>): Ditto.
10711         (*fmai_fmadd_<mode>): Ditto.
10712         (*fmai_fmsub_<mode>): Ditto.
10713         (*fmai_fnmadd_<mode>): Ditto.
10714         (*fmai_fnmsub_<mode>): Ditto.
10716 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10717             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10718             Sergey Lega  <sergey.s.lega@intel.com>
10719             Anna Tikhonova  <anna.tikhonova@intel.com>
10720             Ilya Tocar  <ilya.tocar@intel.com>
10721             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10722             Ilya Verbin  <ilya.verbin@intel.com>
10723             Kirill Yukhin  <kirill.yukhin@intel.com>
10724             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10726         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
10727         (VI124_256): Changed to ...
10728         (VI124_256_48_512): This.
10729         (ssepackmode): Extended with wider modes.
10730         (<code><mode>3): Changed iterator.
10731         (*avx2_<code><mode>3): Ditto.
10732         (vec_pack_trunc_<mode>): Ditto.
10734 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10735             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10736             Sergey Lega  <sergey.s.lega@intel.com>
10737             Anna Tikhonova  <anna.tikhonova@intel.com>
10738             Ilya Tocar  <ilya.tocar@intel.com>
10739             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10740             Ilya Verbin  <ilya.verbin@intel.com>
10741             Kirill Yukhin  <kirill.yukhin@intel.com>
10742             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10744         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
10745         (VI8F_256_512): Ditto.
10746         (abs<mode>2): Changed iterator.
10747         (avx2_perm<mode>): Changed to ...
10748         (<avx2_avx512f>_perm<mode>): This.
10749         (avx2_perm<mode>_1): Changed to ...
10750         (<avx2_avx512f>_perm<mode>_1): This.
10752 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10753             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10754             Sergey Lega  <sergey.s.lega@intel.com>
10755             Anna Tikhonova  <anna.tikhonova@intel.com>
10756             Ilya Tocar  <ilya.tocar@intel.com>
10757             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10758             Ilya Verbin  <ilya.verbin@intel.com>
10759             Kirill Yukhin  <kirill.yukhin@intel.com>
10760             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10762         * config/i386/sse.md (VI48_AVX512F): New.
10763         (VI48_AVX2): Changed to ...
10764         (VI48_AVX2_48_AVX512F): This.
10765         (avx2_ashrv<mode>): Changed to ...
10766         (<avx2_avx512f>_ashrv<mode>): This.
10767         (avx2_<shift_insn>v<mode>): Changed to ...
10768         (<avx2_avx512f>_<shift_insn>v<mode>): This.
10770 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10771             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10772             Sergey Lega  <sergey.s.lega@intel.com>
10773             Anna Tikhonova  <anna.tikhonova@intel.com>
10774             Ilya Tocar  <ilya.tocar@intel.com>
10775             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10776             Ilya Verbin  <ilya.verbin@intel.com>
10777             Kirill Yukhin  <kirill.yukhin@intel.com>
10778             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10780         * config/i386/sse.md (VI4_AVX512F): New.
10781         (VI8_AVX2_AVX512F): Ditto.
10782         (mul<mode>3): Extended with wider modes.
10783         (*<sse4_1_avx2>_mul<mode>3): Ditto.
10784         (mul<mode>3): Ditto.
10785         (vec_widen_<s>mult_odd_<mode>): Ditto.
10787 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10788             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10789             Sergey Lega  <sergey.s.lega@intel.com>
10790             Anna Tikhonova  <anna.tikhonova@intel.com>
10791             Ilya Tocar  <ilya.tocar@intel.com>
10792             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10793             Ilya Verbin  <ilya.verbin@intel.com>
10794             Kirill Yukhin  <kirill.yukhin@intel.com>
10795             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10797         * config/i386/sse.md (VI2_AVX512F): New.
10798         (VI124_AVX512F): Ditto.
10799         (sseunpackmode): Extended with wider modes.
10800         (sseunpackfltmode): Ditto.
10801         (vec_unpacks_float_hi_<mode>): Ditto.
10802         (vec_unpacks_float_lo_<mode>): Ditto.
10803         (vec_unpacku_float_hi_<mode>): Ditto.
10804         (vec_unpacku_float_lo_<mode>): Ditto.
10805         (vec_unpacks_lo_<mode>): Ditto.
10806         (vec_unpacks_hi_<mode>): Ditto.
10807         (vec_unpacku_lo_<mode>): Ditto.
10808         (vec_unpacku_hi_<mode>): Ditto.
10810 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10811             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10812             Sergey Lega  <sergey.s.lega@intel.com>
10813             Anna Tikhonova  <anna.tikhonova@intel.com>
10814             Ilya Tocar  <ilya.tocar@intel.com>
10815             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10816             Ilya Verbin  <ilya.verbin@intel.com>
10817             Kirill Yukhin  <kirill.yukhin@intel.com>
10818             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10820         * config/i386/i386.md (multdiv): New.
10821         (multdiv_mnemonic): Ditto.
10822         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
10823         (<sse>_vm<multdiv_mnemonic><mode>3): This.
10824         (<sse>_vmdiv<mode>3): Removed.
10826 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10827             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10828             Sergey Lega  <sergey.s.lega@intel.com>
10829             Anna Tikhonova  <anna.tikhonova@intel.com>
10830             Ilya Tocar  <ilya.tocar@intel.com>
10831             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10832             Ilya Verbin  <ilya.verbin@intel.com>
10833             Kirill Yukhin  <kirill.yukhin@intel.com>
10834             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10836         * config/i386/sse.md (V): Extended with wider modes.
10837         (VF2): Ditto.
10838         (ssehalfvecmode): Ditto.
10839         (i128): Ditto.
10840         (ssepackfltmode): Ditto.
10841         (avx_vec_concat<mode>): Ditto.
10842         (V_256_512): New iterator.
10843         (VF2_512_256): Ditto.
10844         (si2dfmode): New attribute.
10845         (si2dfmodelower): Ditto.
10846         (sf2dfmode): Ditto.
10847         (concat_tg_mode): Ditto.
10848         (floatv4siv4df2): Changed to ...
10849         (float<si2dfmodelower><mode>2): This.
10850         (avx_cvtps2pd256): Changed to ...
10851         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
10852         (vec_pack_trunc_v4df): Changed to ...
10853         (vec_pack_trunc_<mode>): This.
10854         (avx_vpermil<mode>): Changed to ...
10855         (<sse2_avx_avx512f>_vpermil<mode>): This.
10856         (<fixsuffix>fix_truncv8dfv8si2): New.
10857         (vec_pack_sfix_trunc_v8df): Ditto.
10858         (avx512f_rndscale<mode>): Ditto.
10859         (avx512f_roundpd512): Ditto.
10860         (vec_pack_ufix_trunc_<mode>): Updated iterator.
10862 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10863             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10864             Sergey Lega  <sergey.s.lega@intel.com>
10865             Anna Tikhonova  <anna.tikhonova@intel.com>
10866             Ilya Tocar  <ilya.tocar@intel.com>
10867             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10868             Ilya Verbin  <ilya.verbin@intel.com>
10869             Kirill Yukhin  <kirill.yukhin@intel.com>
10870             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10872         * config/i386/i386.md (any_fix): New iterator.
10873         (fixsuffix): New attribute.
10874         * config/i386/sse.md (VF1): Extened with wider modes.
10875         (VI): Ditto.
10876         (VI_AVX2): Ditto.
10877         (VI8): Ditto.
10878         (sseintvecmodelower): Ditto.
10879         (ssescalarmode): Ditto.
10880         (ssescalarnum): Ditto.
10881         (VF1_128_256): New.
10882         (ssexmmmode): Ditto.
10883         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
10884         (<sse>_rcp<mode>2): Change iterator.
10885         (rsqrt<mode>2): Ditto.
10886         (<sse>_rsqrt<mode>2): Ditto.
10887         (avx2_vec_dup<mode>): Ditto.
10888         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
10889         (round<mode>2_sfix): Ditto.
10890         (avx2_pbroadcast<mode>): Ditto.
10891         (*andnot<mode>3): Handle XI mode.
10892         (*<code><mode>3): Ditto.
10893         (AVXTOSSEMODE): Removed.
10894         (avx_vpermil<mode>): Changed to ...
10895         (<sse2_avx_avx512f>_vpermil<mode>): This.
10897 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10898             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10899             Sergey Lega  <sergey.s.lega@intel.com>
10900             Anna Tikhonova  <anna.tikhonova@intel.com>
10901             Ilya Tocar  <ilya.tocar@intel.com>
10902             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10903             Ilya Verbin  <ilya.verbin@intel.com>
10904             Kirill Yukhin  <kirill.yukhin@intel.com>
10905             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10907         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
10908         (<sse>_comi): Ditto.
10909         (<sse>_ucomi): Ditto.
10910         (sse_cvtss2siq_2): Ditto.
10911         (sse2_cvtsd2si): Ditto.
10912         (sse2_cvtsd2siq): Ditto.
10913         (sse2_cvttsd2si): Ditto.
10914         (sse2_cvttsd2siq): Ditto.
10915         (<shift_insn><mode>3): Ditto.
10916         (sse2_cvtsi2sdq): Update constraint and prefix.
10917         (sse_cvtsi2ss): Update prefix.
10918         (sse_cvtsi2ssq): Ditto.
10920 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
10922         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
10923         ignore internal calls.
10925 2013-10-11  Richard Biener  <rguenther@suse.de>
10927         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
10928         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
10929         TREE_OVERFLOW is set.
10931 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
10933         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
10935         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
10936         * gimple.h: Likewise.
10938         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
10940         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
10941         macros.
10943         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
10945         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
10946         * configure: Regenerate.
10948 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
10950         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
10951         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
10952         formatting fixes, use pp_colon instead of pp_character (..., ':'),
10953         similarly pp_right_paren.
10954         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
10955         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
10956         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
10957         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
10958         clauses.
10959         (omp_declare_simd_clauses_equal,
10960         omp_remove_redundant_declare_simd_attrs): New functions.
10961         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
10962         (walk_tree_1): Handle new OpenMP 4.0 clauses.
10963         * tree.h (OMP_LOOP_CHECK): Define.
10964         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10965         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
10966         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
10967         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
10968         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
10969         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
10970         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
10971         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
10972         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
10973         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
10974         OMP_CLAUSE_SIMDLEN_EXPR): Define.
10975         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
10976         (omp_remove_redundant_declare_simd_attrs): New prototype.
10977         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
10978         GIMPLE_OMP_TEAMS): New codes.
10979         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
10980         * omp-low.c (struct omp_context): Add cancel_label and cancellable
10981         fields.
10982         (target_nesting_level): New variable.
10983         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
10984         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
10985         for collapse > 1 static schedule unless ordered.
10986         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
10987         (determine_parallel_type): Adjust get_ws_args_for caller.
10988         (install_var_field): Handle mask & 4 for double indirection.
10989         (scan_sharing_clauses): Ignore shared clause on teams construct.
10990         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
10991         (create_omp_child_function): If inside target or declare target
10992         constructs, set "omp declare target" attribute on the child function.
10993         (find_combined_for): New function.
10994         (scan_omp_parallel): Handle combined loops.
10995         (scan_omp_target, scan_omp_teams): New functions.
10996         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
10997         restrictions and set ctx->cancellable for cancellable constructs.
10998         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
10999         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
11000         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
11001         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
11002         (omp_clause_aligned_alignment): New function.
11003         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
11004         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
11005         on teams constructs.  Handle user defined reductions and new
11006         OpenMP 4.0 clauses.
11007         (lower_reduction_clauses): Don't set placeholder to address of ref
11008         if it has already the right type.
11009         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
11010         (expand_parallel_call): Use the new non-_start suffixed builtins,
11011         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
11012         and GOMP_parallel_end after the call.
11013         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
11014         (expand_omp_for_init_counts): Handle combined loops.
11015         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
11016         loops.
11017         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
11018         end of cancellable loops.
11019         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11020         Likewise.  Handle collapse > 1 loops.
11021         (expand_omp_simd): Handle combined loops.
11022         (expand_omp_for): Add inner_stmt argument, adjust callers of
11023         expand_omp_for* functions, use expand_omp_for_static*chunk even
11024         for collapse > 1 unless ordered.
11025         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
11026         of cancellable sections.
11027         (expand_omp_single): Remove need_barrier variable, just rely on
11028         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
11029         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
11030         (expand_omp_atomic_load, expand_omp_atomic_store,
11031         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
11032         (expand_omp_target): New function.
11033         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
11034         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
11035         (build_omp_regions_1): Immediately close region for
11036         GF_OMP_TARGET_KIND_UPDATE.
11037         (maybe_add_implicit_barrier_cancel): New function.
11038         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
11039         cancellation.
11040         (lower_omp_single): Likewise.  Add clobber after the barrier.
11041         (lower_omp_taskgroup): New function.
11042         (lower_omp_for): Handle combined loops.  Adjust
11043         lower_rec_input_clauses caller.  Handle cancellation.
11044         (lower_depend_clauses): New function.
11045         (lower_omp_taskreg): Lower depend clauses.  Adjust
11046         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
11047         cancellation.
11048         (lower_omp_target, lower_omp_teams): New functions.
11049         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
11050         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
11051         and GOMP_cancellation_point calls.
11052         (lower_omp): Fold stmts inside of target region.
11053         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
11054         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11055         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
11056         (BT_FN_VOID_OMPFN_PTR_UINT,
11057         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
11058         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
11059         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
11060         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
11061         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
11062         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
11063         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
11064         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11065         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11066         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
11067         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11068         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
11069         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
11070         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
11071         BUILT_IN_GOMP_PARALLEL_END.
11072         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
11073         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11074         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11075         GF_OMP_FOR_KIND_DISTRIBUTE.
11076         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
11077         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
11078         (dump_gimple_omp_return): Print lhs if it has any.
11079         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
11080         gimple_omp_atomic_seq_cst_p.
11081         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
11082         and GIMPLE_OMP_TEAMS.
11083         * langhooks.c (lhd_omp_mappable_type): New function.
11084         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
11085         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
11086         hook.
11087         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
11088         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
11089         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
11090         (struct gimplify_omp_ctx): Add combined_loop field.
11091         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
11092         on stmts inside of target region.
11093         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
11094         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
11095         ORT_TARGET and ORT_TARGET_DATA.
11096         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
11097         Handle GOVD_MAP.
11098         (omp_notice_threadprivate_variable): Complain about threadprivate
11099         variables in target region.
11100         (omp_notice_variable): Complain about vars with non-mappable type
11101         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
11102         (omp_check_private): Ignore ORT_TARGET* regions.
11103         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
11104         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
11105         (find_combined_omp_for): New function.
11106         (gimplify_omp_for): Handle gimplification of combined loops.
11107         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
11108         OMP_TEAMS.
11109         (gimplify_omp_target_update): New function.
11110         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
11111         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
11112         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
11113         (gimplify_body): If fndecl has "omp declare target" attribute, add
11114         implicit ORT_TARGET context around it.
11115         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
11116         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
11117         * tree-nested.c (convert_nonlocal_reference_stmt,
11118         convert_local_reference_stmt, convert_gimple_call): Handle
11119         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11120         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
11121         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
11122         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
11123         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
11124         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
11125         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
11126         BUILT_IN_GOMP_LOOP_END_CANCEL,
11127         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
11128         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
11129         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
11130         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
11131         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
11132         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
11133         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
11134         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
11135         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
11136         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
11137         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
11138         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
11139         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
11140         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
11141         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
11142         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11143         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
11144         gimple_build_omp_teams): New functions.
11145         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
11146         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
11147         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
11148         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11149         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
11150         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
11151         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
11152         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
11153         GF_OMP_ATOMIC_SEQ_CST): New.
11154         (gimple_build_omp_taskgroup, gimple_build_omp_target,
11155         gimple_build_omp_teams): New prototypes.
11156         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
11157         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11158         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
11159         GIMPLE_OMP_SINGLE as end of range.
11160         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
11161         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
11162         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
11163         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
11164         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
11165         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
11166         gimple_omp_target_kind, gimple_omp_target_set_kind,
11167         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
11168         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
11169         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
11170         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
11171         gimple_omp_teams_set_clauses): New inlines.
11172         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
11173         and GIMPLE_OMP_TASKGROUP.
11174         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
11175         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
11176         enum omp_clause_proc_bind_kind): New.
11177         (union omp_clause_subcode): Add depend_kind, map_kind and
11178         proc_bind_kind fields.
11179         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
11180         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11181         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
11182         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
11183         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
11185 2013-10-10  Teresa Johnson  <tejohnson@google.com>
11187         * predict.c (tree_estimate_probability): Add new parameter
11188         for estimate_bb_frequencies.
11189         (estimate_bb_frequencies): Add new parameter to force estimation.
11190         (rebuild_frequencies): When max frequency in function is small,
11191         recompute counts from frequencies.
11192         * predict.h (estimate_bb_frequencies): New parameter.
11194 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
11196         * ipa-inline.c (ipa_inline): Fix leak of "order" when
11197         optimizations are disabled.
11199 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
11201         * coverage.c (coverage_finish): Fix leak of da_file_name.
11203 2013-10-10  Jan Hubicka  <jh@suse.cz>
11205         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
11206         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
11207         Bobcat and generic.
11209 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
11211         PR middle-end/58670
11212         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
11213         if any labels are in FALLTHRU_BB, use a special label emitted
11214         immediately after the asm goto insn rather than label_rtx
11215         of the LABEL_DECL.
11216         (expand_asm_stmt): Adjust caller.
11217         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
11218         edge if the last insn in predecessor is a jump with single successor,
11219         but it isn't simplejump_p.
11221 2013-10-10  Richard Biener  <rguenther@suse.de>
11223         PR tree-optimization/58656
11224         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
11226 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11228         * gimplify.c: Include expr.h and tm_p.h for targets with special
11229         va-arg padding requirements.
11231 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11233         * tree-flow.h: Move some prototypes to gimple.h.
11234         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
11235         * gimple.h: Relocate some prototypes from tree-flow.h
11236         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
11237         Move to gimplify.c.
11238         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
11239         (build_va_arg_indirect_ref): Relocate and make static.
11240         (std_gimplify_va_arg_expr): Relocate here.
11241         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
11242         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
11244 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11246         * doc/md.texi: Document the mnemonic attribute.
11248 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11250         PR target/57377
11251         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
11252         (set_attr_alternative x ...) when searching for user defined
11253         mnemonic attribute.
11255 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11257         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
11259 2013-10-09  Easwaran Raman <eraman@google.com>
11261         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
11262         * cfgexpand.c (defer_stack_allocation): ...use here
11263         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
11265 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
11267         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
11268         (operand_equal_for_value_replacement): New function, extracted from
11269         value_replacement and enhanced to catch more cases.
11270         (value_replacement): Use operand_equal_for_value_replacement.
11272 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11274         * loop-doloop.c (doloop_modify, doloop_optimize): Use
11275         get_max_loop_iterations.
11277 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11279         * config/arm/aarch-common.c (arm_early_load_addr_dep):
11280         Place comment above function.
11282 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11284         * tree-flow.h: Remove all remaining prototypes, enums and structs that
11285         are not related to tree-cfg.c.
11286         * tree-ssa-address.h: New file.  Relocate prototypes.
11287         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
11288         (addr_for_mem_ref): New.  Combine call to get_address_description and
11289         return addr_for_mem_ref.
11290         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
11291         * tree-ssa-live.h: Adjust prototypes.
11292         * passes.c: Include tree-ssa-live.h.
11293         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
11294         * graphite.c (graphite_transform_loops): Make static.
11295         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11296         make_pass_graphite, pass_data_graphite_transforms,
11297         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
11298         * ipa-pure-const.c (warn_function_noreturn): Make static.
11299         (execute_warn_function_noreturn, gate_warn_function_noreturn,
11300         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11301         Relocate from tree-cfg.c
11302         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
11303         static.
11304         (execute_warn_function_noreturn, gate_warn_function_noreturn,
11305         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11306         Move to ipa-pure-const.c.
11307         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
11308         Relocate from tree-optimize.c.
11309         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
11310         make_pass_fixup_cfg): Move to tree-cfg.c.
11311         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
11312         Relocate some prototypes.
11313         * tree-data-ref.h (tree_check_data_deps) Add prototype.
11314         * tree-dump.c (dump_function_to_file): Remove prototype.
11315         Add tree-flow.h to the include file.
11316         * tree-dump.h: Remove prototype.
11317         * tree-parloops.h: New File.  Add prototypes.
11318         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
11319         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
11320         from tree-ssa-loop.c.
11321         * tree-predcom.c (run_tree_predictive_commoning,
11322         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
11323         Relocate here from tree-ssa-loop.c.
11324         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
11325         ssa_name_values.release ().
11326         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
11327         (ssa_name_values): Relocate from tree-flow.h.
11328         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
11329         * tree-ssa-loop.c (run_tree_predictive_commoning,
11330         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
11331         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11332         make_pass_graphite, pass_data_graphite_transforms,
11333         make_pass_graphite_transforms, gate_tree_parallelize_loops,
11334         tree_parallelize_loops, pass_data_parallelize_loops,
11335         make_pass_parallelize_loops): Move to other files.
11336         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
11337         moved here.
11338         * tree.h: Remove prototypes from tree-address.c.
11340 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11342         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
11343         (struct int_tree_map): Move to tree-hasher.h
11344         (SCALE, LABEL, PERCENT): Move to gimple.h
11345         * tree-flow-inline.h: Delete.  Move functions to other files.
11346         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
11347         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
11348         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
11349         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
11350         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
11351         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
11352         * tree-hasher.h: Don't include tree-flow.h.
11353         (struct int_tree_map): Relocate from tree-flow.h.
11354         * tree-sra.c (contains_view_convert_expr_p): Relocate from
11355         tree-flow-inline.h and make static.
11356         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
11357         tree-flow-inline.h.
11358         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
11359         tree-flow-inline.h and make static.
11360         * tree.h (is_global_var, may_be_aliased): Relocate from
11361         tree-flow-inline.h.
11362         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
11363         * value-prof.c: No longer include tree-flow-inline.h.
11364         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
11366 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11368         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
11369         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
11370         (enum move_pos): Move to tree-ssa-loop-im.h
11371         * cfgloop.h: Move some prototypes.
11372         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
11373         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
11374         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
11375         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
11376         (loop_containing_stmt): Relocate from tree-flow-inline.h.
11377         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
11378         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
11379         (enum move_pos): Relocate here.
11380         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
11381         tree-ssa-loop.c.
11382         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
11383         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
11384         make_pass_lim): Relocate here from tree-ssa-loop.c.
11385         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
11386         tree-ssa-loop.c.
11387         (loop_edge_to_cancel, unloop_loops): Make static.
11388         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11389         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
11390         (tree_complete_unroll, gate_tree_complete_unroll,
11391         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
11392         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11393         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
11394         * tree-ssa-loop-ivopts.c: Remove local prototypes.
11395         (stmt_invariant_in_loop_p): Remove unused function.
11396         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
11397         * tree-ssa-loop-manip.h: New file.  Add prototypes.
11398         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
11399         (gcov_type_to_double_int): Move to cfgloop.h.
11400         (double_int_cmp, bound_index,
11401         estimate_numbers_of_iterations_loop): Make static.
11402         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
11403         (max_loop_iterations): Factor out get_max_loop_iterations.
11404         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
11405         cfgloop.c.
11406         * tree-ssa-loop-niter.h: New file.  Add prototypes.
11407         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
11408         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
11409         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
11410         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
11411         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
11412         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
11413         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
11414         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
11415         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
11416         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
11417         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11418         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
11419         pass_data_complete_unroll, make_pass_complete_unroll,
11420         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11421         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
11422         tree-ssa-loop-ivcanon.c.
11423         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
11424         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
11425         tree-ssa-loop-prefetch.c.
11426         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
11427         tree-ssa-loop-im.c.
11428         (get_lsm_tmp_name): Relocate and add suffix parameter.
11429         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
11430         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
11431         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
11432         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
11433         (get_estimated_loop_iterations): Factor out accessor from
11434         estimated_loop_iterations in tree-ssa-loop-niter.c.
11435         (get_max_loop_iterations): Factor out accessor from
11436         _max_loop_iterations in tree-ssa-niter.c.
11437         * loop-unroll.c (decide_unroll_constant_iterations,
11438         decide_unroll_runtime_iterations, decide_peel_simple,
11439         decide_unroll_stupid): Use new get_* accessors.
11441 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
11443         PR tree-optimization/20318
11444         * doc/extend.texi (returns_nonnull): New function attribute.
11445         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
11446         attribute.
11447         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
11448         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
11450 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
11452         PR middle-end/58570
11453         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
11454         false if both components are bitfields.
11456 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
11458         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
11459         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
11460         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
11461         * config/aarch64/aarch64.h
11462         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
11463         * config/aarch64/aarch64-simd-builtins.def
11464         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
11466 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
11468         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
11470 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
11472         * config/aarch64/arm_neon.h (vdiv_f64): Added.
11474 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
11476         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
11477         (vneg_f64): New intrinsic.
11478         (vneg_s8): Asm replaced with C.
11479         (vneg_s16): Likewise.
11480         (vneg_s32): Likewise.
11481         (vneg_s64): New intrinsic.
11482         (vnegq_f32): Asm replaced with C.
11483         (vnegq_f64): Likewise.
11484         (vnegq_s8): Likewise.
11485         (vnegq_s16): Likewise.
11486         (vnegq_s32): Likewise.
11487         (vnegq_s64): Likewise.
11489 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
11491         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
11493 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11495         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
11496         packed stack special handling.
11497         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
11498         back to fixed stack slots for FPRs saved due to stdarg.
11500 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11502         * config/s390/s390.c (s390_frame_info): Restructure function.
11504 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11506         * config/s390/s390.c (struct s390_frame_layout): New field
11507         gpr_save_slots.
11508         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
11509         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
11510         regs_ever_clobbered to char*.
11511         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
11512         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
11513         (s390_register_info): Enable FPR save slots.  Move/Copy some
11514         functionality into ...
11515         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
11516         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
11517         function.
11518         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
11519         not imply a stack frame.
11520         (s390_init_frame_layout): Remove variable clobbered_regs.
11521         (s390_update_register_info): Remove function.
11522         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
11523         cannot be used for register renaming.
11524         (s390_hard_regno_scratch_ok): New function.
11525         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
11526         (s390_initial_elimination_offset): Change offset calculation of
11527         the return address pointer.
11528         (save_gprs): Deal with only r6 being saved from the call-saved regs.
11529         (restore_gprs): Set frame related flag.
11530         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
11531         (s390_emit_prologue): Call s390_register_info instead of
11532         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
11533         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
11534         (s390_optimize_prologue): Call s390_optimize_register_info.
11535         Try to remove also FPR slot save/restore INSNs.  Remove frame
11536         related flags from restore INSNs.
11538 2013-10-08  DJ Delorie  <dj@redhat.com>
11540         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
11541         (movhi): Likewise.
11543         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
11544         avoid conflict with the MI use of %c.
11545         * config/rl78/rl78-real.md: change %c to %C throughout.
11546         * config/rl78/rl78-virt.md: Likewise.
11548 2013-10-08  Jan Hubicka  <jh@suse.cz>
11550         * config/i386/i386.c (ix86_option_override_internal): Switch
11551         to SSE math for -ffast-math when target ISA supports SSE2.
11553 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
11555         * tree-flow.h: Remove some prototypes.
11556         * tree.h: Remove some protypes, add a couple.
11557         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
11558         using_eh_for_cleanups_p): Add interface routines for front ends.
11559         * tree-eh.h: New file.  Add protoptyes.
11560         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
11561         (add_stmt_to_eh_lp_fn): Make static.
11562         (lower_try_finally): Use new using_eh_for_cleanups_p.
11563         * emit-rtl.c: Include tree-eh.h.
11564         * gimple.h: Include tree-eh.h.
11566 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
11568         PR tree-optimization/58480
11569         * tree-vrp.c (infer_nonnull_range): New function.
11570         (infer_value_range): Call infer_nonnull_range.
11572 2013-10-08  Dehao Chen  <dehao@google.com>
11574         PR tree-optimization/58619
11575         * tree-inline.c (copy_phis_for_bb): Combine location data
11576         only if non-null.
11578 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
11580         PR target/58423
11581         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
11582         RTX_FRAME_RELATED_P on INSN.
11584 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11586         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
11587         (altivec_expand_vec_perm_const): Call it.
11589 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11591         * config/rs6000/vector.md (mov<mode>): Emit permuted move
11592         sequences for LE VSX loads and stores at expand time.
11593         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
11594         prototype.
11595         * config/rs6000/rs6000.c (rs6000_const_vec): New.
11596         (rs6000_gen_le_vsx_permute): New.
11597         (rs6000_gen_le_vsx_load): New.
11598         (rs6000_gen_le_vsx_store): New.
11599         (rs6000_gen_le_vsx_move): New.
11600         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
11601         (*vsx_le_perm_load_v4si): New.
11602         (*vsx_le_perm_load_v8hi): New.
11603         (*vsx_le_perm_load_v16qi): New.
11604         (*vsx_le_perm_store_v2di): New.
11605         (*vsx_le_perm_store_v4si): New.
11606         (*vsx_le_perm_store_v8hi): New.
11607         (*vsx_le_perm_store_v16qi): New.
11608         (*vsx_xxpermdi2_le_<mode>): New.
11609         (*vsx_xxpermdi4_le_<mode>): New.
11610         (*vsx_xxpermdi8_le_V8HI): New.
11611         (*vsx_xxpermdi16_le_V16QI): New.
11612         (*vsx_lxvd2x2_le_<mode>): New.
11613         (*vsx_lxvd2x4_le_<mode>): New.
11614         (*vsx_lxvd2x8_le_V8HI): New.
11615         (*vsx_lxvd2x16_le_V16QI): New.
11616         (*vsx_stxvd2x2_le_<mode>): New.
11617         (*vsx_stxvd2x4_le_<mode>): New.
11618         (*vsx_stxvd2x8_le_V8HI): New.
11619         (*vsx_stxvd2x16_le_V16QI): New.
11621 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
11623         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
11625 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11627         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
11628         loop to work also for 31bit ABI.
11629         Save the stack pointer for frame_size > 0.
11631 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11633         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
11634         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
11635         constraint letters from expanders.
11636         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
11637         retry count to general_operand.
11638         ("tabort"): Give operand 0 a mode.
11639         ("tabort_1"): Add mode and constraint letter for operand 0.
11640         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
11642 2013-10-04  Jeff Law  <law@redhat.com>
11644         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
11646         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
11647         out of ...
11648         (thread_across_edge): Here.  Call it.
11650 2013-10-04  Cary Coutant  <ccoutant@google.com>
11652         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
11653         discarding a location list expression (or a piece of one).
11655 2013-10-03  Jan Hubicka  <jh@suse.cz>
11657         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
11658         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
11659         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
11661 2013-10-03  Jan Hubicka  <jh@suse.cz>
11663         * config/i386/i386.c (ix86_option_override_internal): Do not enable
11664         accumulate-outgoing-args when producing unwind info.
11666 2013-10-03  Wei Mi  <wmi@google.com>
11668         * lra-constraints.c (insert_move_for_subreg): New function
11669         extracted from simplify_operand_subreg.
11670         (simplify_operand_subreg): Add reload for paradoxical subreg.
11672 2013-10-03  Rong Xu  <xur@google.com>
11674         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
11675         the candidate of builtin_expect such that we should fix the
11676         size/time estimation.
11677         (estimate_function_body_sizes): Do the acutally size/time fix-up
11678         for builtin_expect.
11680 2013-10-03  Rong Xu  <xur@google.com>
11682         * predict.c (tree_predict_by_opcode): Get the probability
11683         for builtin_expect from param builtin_expect_probability.
11684         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
11685         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
11686         * doc/invoke.texi: Add documentation for builtin-expect-probability.
11688 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
11690         PR c++/19476
11691         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
11692         * calls.c (alloca_call_p): Use get_callee_fndecl.
11693         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
11694         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
11695         Likewise.
11696         (vrp_visit_stmt): Remove duplicated code.
11698 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
11700         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
11701         ceildf2, btruncdf2, instead of vsx_* name.
11703         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
11704         iterators to only do V2DF and V4SF here.  Move the DF code to
11705         rs6000.md where it is combined with SF mode.  Replace <VSv> with
11706         just 'v' since only vector operations are handled with these insns
11707         after moving the DF support to rs6000.md.
11708         (vsx_sub<mode>3): Likewise.
11709         (vsx_mul<mode>3): Likewise.
11710         (vsx_div<mode>3): Likewise.
11711         (vsx_fre<mode>2): Likewise.
11712         (vsx_neg<mode>2): Likewise.
11713         (vsx_abs<mode>2): Likewise.
11714         (vsx_nabs<mode>2): Likewise.
11715         (vsx_smax<mode>3): Likewise.
11716         (vsx_smin<mode>3): Likewise.
11717         (vsx_sqrt<mode>2): Likewise.
11718         (vsx_rsqrte<mode>2): Likewise.
11719         (vsx_fms<mode>4): Likewise.
11720         (vsx_nfma<mode>4): Likewise.
11721         (vsx_copysign<mode>3): Likewise.
11722         (vsx_btrunc<mode>2): Likewise.
11723         (vsx_floor<mode>2): Likewise.
11724         (vsx_ceil<mode>2): Likewise.
11725         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
11726         (vsx_sminsf3): Likewise.
11727         (vsx_fmadf4): Likewise.
11728         (vsx_fmsdf4): Likewise.
11729         (vsx_nfmadf4): Likewise.
11730         (vsx_nfmsdf4): Likewise.
11731         (vsx_cmpdf_internal1): Likewise.
11733         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
11734         simpler to select whether a target has SPE or traditional floating
11735         point support in iterators.
11736         (TARGET_DF_SPE): Likewise.
11737         (TARGET_SF_FPR): Likewise.
11738         (TARGET_DF_FPR): Likewise.
11739         (TARGET_SF_INSN): Macros to say whether floating point support
11740         exists for a given operation for expanders.
11741         (TARGET_DF_INSN): Likewise.
11743         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
11744         combining of SF/DF mode operations, using both traditional and VSX
11745         registers.
11746         (Fvsx): Likewise.
11747         (Ff): Likewise.
11748         (Fv): Likewise.
11749         (Fs): Likewise.
11750         (Ffre): Likewise.
11751         (FFRE): Likewise.
11752         (abs<mode>2): Combine SF/DF modes using traditional floating point
11753         instructions.  Add support for using the upper DF registers with
11754         VSX support, and SF registers with power8-vector support.  Update
11755         expanders for operations supported by both the SPE and traditional
11756         floating point units.
11757         (abs<mode>2_fpr): Likewise.
11758         (nabs<mode>2): Likewise.
11759         (nabs<mode>2_fpr): Likewise.
11760         (neg<mode>2): Likewise.
11761         (neg<mode>2_fpr): Likewise.
11762         (add<mode>3): Likewise.
11763         (add<mode>3_fpr): Likewise.
11764         (sub<mode>3): Likewise.
11765         (sub<mode>3_fpr): Likewise.
11766         (mul<mode>3): Likewise.
11767         (mul<mode>3_fpr): Likewise.
11768         (div<mode>3): Likewise.
11769         (div<mode>3_fpr): Likewise.
11770         (sqrt<mode>3): Likewise.
11771         (sqrt<mode>3_fpr): Likewise.
11772         (fre<Fs>): Likewise.
11773         (rsqrt<mode>2): Likewise.
11774         (cmp<mode>_fpr): Likewise.
11775         (smax<mode>3): Likewise.
11776         (smin<mode>3): Likewise.
11777         (smax<mode>3_vsx): Likewise.
11778         (smin<mode>3_vsx): Likewise.
11779         (negsf2): Delete SF operations that are merged with DF.
11780         (abssf2): Likewise.
11781         (addsf3): Likewise.
11782         (subsf3): Likewise.
11783         (mulsf3): Likewise.
11784         (divsf3): Likewise.
11785         (fres): Likewise.
11786         (fmasf4_fpr): Likewise.
11787         (fmssf4_fpr): Likewise.
11788         (nfmasf4_fpr): Likewise.
11789         (nfmssf4_fpr): Likewise.
11790         (sqrtsf2): Likewise.
11791         (rsqrtsf_internal1): Likewise.
11792         (smaxsf3): Likewise.
11793         (sminsf3): Likewise.
11794         (cmpsf_internal1): Likewise.
11795         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
11796         (negdf2): Delete DF operations that are merged with SF.
11797         (absdf2): Likewise.
11798         (nabsdf2): Likewise.
11799         (adddf3): Likewise.
11800         (subdf3): Likewise.
11801         (muldf3): Likewise.
11802         (divdf3): Likewise.
11803         (fred): Likewise.
11804         (rsqrtdf_internal1): Likewise.
11805         (fmadf4_fpr): Likewise.
11806         (fmsdf4_fpr): Likewise.
11807         (nfmadf4_fpr): Likewise.
11808         (nfmsdf4_fpr): Likewise.
11809         (sqrtdf2): Likewise.
11810         (smaxdf3): Likewise.
11811         (smindf3): Likewise.
11812         (cmpdf_internal1): Likewise.
11813         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
11814         (btrunc<mode>2): Delete separate expander, and combine with the
11815         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
11816         (btrunc<mode>2_fpr): Likewise.
11817         (ceil<mode>2): Likewise.
11818         (ceil<mode>2_fpr): Likewise.
11819         (floor<mode>2): Likewise.
11820         (floor<mode>2_fpr): Likewise.
11821         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
11822         Add support for using the upper registers with VSX and
11823         power8-vector.  Move insns to be closer to the define_expands. On
11824         VSX systems, prefer the traditional form of FMA over the VSX
11825         version, since the traditional form allows the target not to
11826         overlap with the inputs.
11827         (fms<mode>4_fpr): Likewise.
11828         (nfma<mode>4_fpr): Likewise.
11829         (nfms<mode>4_fpr): Likewise.
11831 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11832             Richard Earnshaw  <richard.earnshaw@arm.com>
11834         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
11835         (struct mult_cost_table): Likewise.
11836         (struct mem_cost_table): Likewise.
11837         (struct fp_cost_table): Likewise.
11838         (struct vector_cost_table): Likewise.
11839         (cpu_cost_table): Likewise.
11840         * config/arm/arm.opt (mold-rts-costs): New option.
11841         (mnew-generic-costs): Likewise.
11842         * config/arm/arm.c (generic_extra_costs): New table.
11843         (cortexa15_extra_costs): Likewise.
11844         (arm_slowmul_tune): Use NULL as new costs.
11845         (arm_fastmul_tune): Likewise.
11846         (arm_strongarm_tune): Likewise.
11847         (arm_xscale_tune): Likewise.
11848         (arm_9e_tune): Likewise.
11849         (arm_v6t2_tune): Likewise.
11850         (arm_cortex_a5_tune): Likewise.
11851         (arm_cortex_a9_tune): Likewise.
11852         (arm_v6m_tune): Likewise.
11853         (arm_fa726te_tune): Likewise.
11854         (arm_cortex_a15_tune): Use cortex15_extra_costs.
11855         (arm_cortex_tune): Use generict_extra_costs.
11856         (shifter_op_p): New function.
11857         (arm_unspec_cost): Likewise.
11858         (LIBCALL_COST): Define.
11859         (arm_new_rtx_costs): New function.
11860         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
11861         table is available. Use old costs otherwise unless mnew-generic-costs
11862         is specified.
11863         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
11864         (cpu_cost_table): Declare.
11866 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11868         PR target/58460
11869         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
11870         (*subs_mul_imm_<mode>)
11871         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
11872         (*sub_<shift>_<mode>)
11873         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
11874         Remove k constraint.
11876 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
11878         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
11879         code.
11880         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
11882 2013-10-02  Teresa Johnson  <tejohnson@google.com>
11884         * predict.c (probably_never_executed): New function.
11885         (probably_never_executed_bb_p): Invoke probably_never_executed.
11886         (probably_never_executed_edge_p): Ditto.
11887         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
11888         Treat profile insanities conservatively.
11890 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
11892         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
11894 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
11896         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
11897         use it.  Use smaller increase for scratch.  Don't increase reject
11898         for early clobber scratch.
11899         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
11900         setting eliminated regs except setting fp from hfp.
11901         (lra_eliminate): Check lra_insn_recog_data on NULL.
11903 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11905         PR target/58587
11906         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
11907         setting -mvsx-timode by default until the underlying problem is fixed.
11908         (RS6000_CPU, power7 defaults): Likewise.
11910 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
11912         * config/x-linux (host-linux.o): Remove header dependencies.
11913         Use $(COMPILE) and $(POSTCOMPILE).
11914         * config/t-linux-android (linux-android.o): Ditto.
11916 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
11918         * Makefile.in (expmed.o-warn): Remove.
11920 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
11922         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
11923         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
11925 2013-10-02  Teresa Johnson  <tejohnson@google.com>
11927         * dojump.c (do_jump_1): Divide probability between
11928         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
11930 2013-10-02  Tom Tromey  <tromey@redhat.com>
11932         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
11934 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
11936         * tree-flow.h: Remove some prototypes.
11937         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
11938         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
11939         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
11940         mark_virtual_phi_result_for_renaming): Relocate here.
11941         * tree-into-ssa.h: Add prototypes.
11942         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
11943         single_pred_before_succ_order.
11944         (blocks_in_phiopt_order): Rename and move to cfganal.c.
11945         (nonfreeing_call_p) Move to gimple.c.
11946         * cfganal.c (single_pred_before_succ_order): Move and renamed from
11947         tree-ssa-phiopt.c.
11948         * basic-block.h (single_pred_before_succ_order): Add prototype.
11949         * gimple.c (nonfreeing_call_p): Relocate here.
11950         * gimple.h: Add prototype.
11951         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
11952         * tree-ssa-dom.h: New file.  Relocate prototypes here.
11953         * tree-ssa.h: Include tree-ssa-dom.h.
11955 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
11957         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
11958         Use $(COMPILE) and $(POSTCOMPILE).
11960         * config/alpha/x-alpha (driver-alpha.o): Ditto.
11962 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
11964         * tree-flow.h: Remove some prototypes.
11965         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
11966         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
11967         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
11968         propagate_tree_value*): Move from here to...
11969         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
11970         propagate_tree_value*): Relocate here.
11971         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
11972         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
11973         * gimple-fold.c: Remove gimple-fold.h from include list.
11974         * tree-vrp.c: Remove gimple-fold.h from include list.
11975         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
11976         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
11977         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
11978         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
11979         * sese.c: Add tree-ssa-propagate.h to include list.
11981 2013-10-02  Richard Biener  <rguenther@suse.de>
11983         * tree-loop-distribution.c: Include tree-vectorizer.h for
11984         find_loop_location.
11985         (enum partition_kind): Remove PKIND_REDUCTION.
11986         (struct partition_s): Remove has_writes member, add reduction_p member.
11987         (partition_alloc): Adjust.
11988         (partition_builtin_p): Likewise.
11989         (partition_has_writes): Remove.
11990         (partition_reduction_p): New function.
11991         (partition_merge_into): Likewise.
11992         (generate_code_for_partition): Commonize builtin partition
11993         handling tail.
11994         (rdg_cannot_recompute_vertex_p): Remove.
11995         (already_processed_vertex_p): Likewise.
11996         (rdg_flag_vertex): Do not set has_writes.
11997         (classify_partition): Adjust.
11998         (rdg_build_partitions): Do not set has_writes, treat all
11999         partitions as useful.
12000         (distribute_loop): Record number of library calls generated.  Adjust.
12001         (tree_loop_distribution): Report number of loops and library
12002         calls generated as opt-info.
12004 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12006         * tree-flow.h: Include new .h files.  Move prototypes.
12007         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
12008         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
12009         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
12010         * tree-pretty-print.h: Add prototypes from tree-flow.h.
12011         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
12012         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
12013         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
12014         * tree.h (get_ref_base_and_extent): Move prototype out.
12015         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
12016         tree-dfa.h.
12017         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
12018         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
12019         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
12020         * tree-scalar-evolution.c: Include tree.h.
12021         * sese.c: Include tree.h.
12022         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
12023         * dwarf2out.c: Include tree-dfa.h.
12024         * tree-chrec.c: Include tree.h.
12025         * tree-data-ref.c: Include tree.h.
12027 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
12029         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
12030         Fix whitespace.
12032 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12034         * config/t-sol2 (sol2-c.o): Remove header dependencies.
12035         Use $(COMPILE) and $(POSTCOMPILE).
12036         (sol2-cxx.o): Likewise.
12037         (sol2-stubs.o): Likewise.
12038         (sol2.o): Likewise.
12039         * config/x-solaris (host-solaris.o): Likewise.
12041         * config/sparc/t-sparc (sparc.o): Remove.
12042         (sparc-c.o): Remove header dependencies.
12043         Use $(COMPILE) and $(POSTCOMPILE).
12044         * config/sparc/x-sparc: Likewise.
12046 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
12048         * config/arc/arc-opts.h: Add 2013 to Copyright years.
12049         * config/arc/arc700.md: Likewise.
12050         * config/arc/arc-modes.def: Likewise.
12051         * config/arc/arc-simd.h: Likewise.
12052         * config/arc/t-arc-uClibc: Likewise.
12053         * config/arc/t-arc-newlib: Likewise.
12055 2013-10-02  Renlin Li  <renlin.li@arm.com>
12057         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12058         plus_constant.
12059         (aarch64_expand_epilogue): Likewise.
12061 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12062             Yufeng Zhang  <yufeng.zhang@arm.com>
12064         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
12065         declaration.
12066         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
12067         'base_in' represent a conversion and legal_cast_p_1 holds; set
12068         'base_in' with the returned value from get_unwidened.
12070 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12072         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
12073         plus_constant is not used.
12075 2013-10-01  Wei Mi  <wmi@google.com>
12077         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
12078         * config/i386/i386.md: Add define_peephole2 to
12079         break partial reg stall for cvtss2sd/cvtsd2ss.
12081 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12083         * config/arc/arc.c (pass_arc_ifcvt::clone):
12084         Update for ctxt_ -> m_ctxt change.
12086 2013-10-01  Jeff Law  <law@redhat.com>
12088         * tree-ssa-threadupdate.c (struct redirection_data): Delete
12089         outgoing_edge and intermediate_edge fields.  Instead store the path.
12090         (redirection_data::hash): Hash on the last edge's destination index.
12091         (redirection_data::equal): Check the entire thread path.
12092         (lookup_redirectio_data): Corresponding changes.
12093         (create_edge_and_update_destination_phis): Likewise.
12094         (thread_single_edge): Likewise.
12096 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12097             Diego Novillo <dnovillo@google.com>
12099         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
12100         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
12101         (vld32wh_insn, vld32wl_insn): Delete commented-out old
12102         versions of these patterns.
12104         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
12105         (__builtin_arc_aligned): Likewise.
12107         * config/arc/arc.md: Expand adc_0 comment stating the intended
12108         purpose and why it isn't ready.
12109         Replace commented out call_value_via_label_mixed with a
12110         plain comment about bl_s.
12112         * config/arc/arc.c (stdio.h): Don't include directly.
12113         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
12114         Remove if (1) condition.
12115         (arc_encode_section_info): Fix comment.
12117 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12119         * config/arc/arc.c (arc_conditional_register_usage):
12120         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
12121         Also set reg_alloc_order for DMA config regs.
12123 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12124             Jeremy Bennett  <jeremy.bennett@embecosm.com>
12126         * doc/install.texi (--with-cpu): Mention ARC.
12127         (arc-*-elf32): New paragraph.
12128         (arc-linux-uclibc): Likewise.
12129         * doc/md.texi (Machine Constraints): Add ARC part.
12130         * doc/invoke.texi: (menu): Add ARC Options.
12131         (Machine Dependent Options) <ARC Options>: Add synopsis.
12132         (node ARC Options): Add.
12133         * doc/extend.texi (long_call / short_call attribute): Add ARC.
12134         (ARC Built-in Functions): New section defining
12135         generic ARC built-in functions.
12136         (ARC SIMD Built-in Functions): New section defining SIMD specific
12137         built-in functions.
12138         (Declaring Attributes of Functions): Extended
12139         description of short_call and long_call attributes for ARC and
12140         added index entries.
12142 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
12143             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
12144             Joern Rennecke  <joern.rennecke@embecosm.com>
12145             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
12146             Brendan Kehoe  <brendan@zen.org>
12147             Michael Eager  <eager@eagercon.com>
12148             Simon Cook  <simon.cook@embecosm.com>
12149             Jeremy Bennett  <jeremy.bennett@embecosm.com>
12151         * config/arc, common/config/arc: New directories.
12153 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12154             Brendan Kehoe  <brendan@zen.org>
12155             Simon Cook  <simon.cook@embecosm.com>
12157         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
12159 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
12161         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
12162         * tree-ssa-coalesce.h: New. Move prototype to here.
12163         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
12164         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
12165         (gimple_can_coalesce_p): Move to...
12166         * gimple.c (gimple_can_coalesce_p): Here.
12168 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
12170         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
12171         (dump_decl_set): Move to gimple.c.
12172         * gimple.h: Don't include tree-ssa-operands.h.
12173         (dump_decl_set): Add prototype.
12174         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12175         Move to gimple-ssa.h.
12176         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
12177         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
12178         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
12179         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
12180         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
12181         than PHI_ARG_DEF.
12182         (dump_decl_set): Relocate here.
12183         * gimple-ssa.h: New file.
12184         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12185         Relocate from gimple.h.
12186         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
12187         * tree-ssa-operands.c (swap_ssa_operands): Rename from
12188         swap_tree_operands and remove non-ssa path.
12189         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
12190         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
12191         swap_ssa_operands.
12192         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
12193         vect_is_simple_reduction_1): Use swap_ssa_operands.
12194         * tree-flow.h: Move various prototypes to tree-phinodes.h.
12195         (enum need_phi_state): Move to tree-into-ssa.c.
12196         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12197         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
12198         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
12199         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
12200         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12201         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12202         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12203         num_imm_uses): Move to ssa-iterators.h.
12204         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
12205         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
12206         tree-phinodes.h.
12207         (op_iter_done, op_iter_next_def, op_iter_next_tree,
12208         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
12209         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
12210         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
12211         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
12212         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
12213         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
12214         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
12215         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
12216         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
12217         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
12218         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
12219         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
12220         (set_phi_nodes): Move to tree-phinodes.h.
12221         * tree-ssa-operands.h (enum ssa_op_iter_type,
12222         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
12223         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
12224         (dump_decl_set): Remove prototype.
12225         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
12226         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
12227         (set_phi_nodes): Relocate from tree-flow-inline.h.
12228         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
12229         tree-flow-inline.h
12230         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
12231         include list.  Temporarily add gimple.h to include list.
12232         * ssa-iterators.h: New file.
12233         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12234         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
12235         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
12236         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
12237         Relocate from tree-ssa-operands.h.
12238         (delink_imm_use, link_imm_use_to_list, link_imm_use,
12239         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12240         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12241         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12242         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
12243         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
12244         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
12245         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
12246         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
12247         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
12248         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
12249         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
12250         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
12251         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
12252         Relocate from tree-flow-inline.h.
12253         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
12255 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
12257         * aarch64-simd.md
12258         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
12259         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
12260         Insert '\t' to output template.
12261         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
12262         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
12263         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
12264         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
12266 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
12268         * doc/install.texi (Host/target specific installation notes for GCC):
12269         Put @anchor before @heading.
12270         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
12271         Use @email for email addresses.
12273 2013-10-01  Jeff Law  <law@redhat.com>
12275         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
12276         a vec.  Only delete the path if we create one without successfully
12277         registering a jump thread.
12278         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
12279         as a pointer.
12280         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
12281         (paths): New vector of jump threading paths.
12282         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
12283         (THREAD_PATH): New accessor macro for the entire thread path.
12284         (lookup_redirection_data): Get intermediate and final outgoing edge
12285         from the thread path.
12286         (create_edge_and_update_destination_phis): Copy the threading path.
12287         (ssa_fix_duplicate_block_edges): Get edges and block types from the
12288         jump threading path.
12289         (ssa_redirect_edges): Get edges and block types from the jump threading
12290         path.  Free the path vector.
12291         (thread_block): Get edges from the jump threading path.  Look at the
12292         entire path to see if we thread to a loop exit.  If we cancel a jump
12293         thread request, then free the path vector.
12294         (thread_single_edge): Get edges and block types from the jump threading
12295         path.  Free the path vector.
12296         (thread_through_loop_header): Get edges and block types from the jump
12297         threading path.  Free the path vector.
12298         (mark_threaded_blocks): Iterate over the vector of paths and store
12299         the path on the appropriate edge.  Get edges and block types from the
12300         jump threading path.
12301         (mark_threaded_blocks): Get edges and block types from the jump
12302         threading path.  Free the path vector.
12303         (thread_through_all_blocks): Use the vector of paths rather than
12304         a vector of 3-edge sets.
12305         (register_jump_thread): Accept pointer to a path vector rather
12306         than the path vector itself.  Store the path vector for later use.
12307         Simplify.
12309 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
12310             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12312         PR target/58574
12313         * config/s390/s390.c (s390_split_branches): Modify check for table
12314         jump insns.
12315         (s390_chunkify_start): Rearrange table jump insn check in order to
12316         deal with compare and branch insns correctly.
12318 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
12320         PR target/58578
12321         Revert
12322         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
12323         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
12324         define_insn_and_split.
12325         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
12326         (shiftsi3_compare): New pattern.
12327         (rrx): New pattern.
12328         * config/arm/unspecs.md (UNSPEC_RRX): New.
12330 2013-10-01  Alan Modra  <amodra@gmail.com>
12332         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
12333         casing inout operands.
12335 2013-10-01  Richard Biener  <rguenther@suse.de>
12337         PR tree-optimization/58553
12338         * tree-loop-distribution.c (struct partition_s): Add niter member.
12339         (classify_partition): Populate niter member for the partition
12340         and properly identify whether the relevant store happens before
12341         or after the loop exit.
12342         (generate_memset_builtin): Use niter member from the partition.
12343         (generate_memcpy_builtin): Likewise.
12345 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
12347         * vec.h (vec_prefix, vec): Prefix member names with "m_".
12348         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
12350 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
12352         * basic-block.h (edge_list): Prefix member names with "m_".
12353         * context.h (context): Likewise.
12354         * domwalk.h (dom_walker): Likewise.
12355         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
12356         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
12357         * hash-table.h (hash_table): Likewise.
12358         * machmode.h (bit_field_mode_iterator): Likewise.
12359         * pass_manager.h (pass_list): Likewise.
12360         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
12361         * tree-pass.h (pass_data): Likewise.
12362         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
12363         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
12364         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
12365         * asan.c (pass_data_asan): Update accordingly.
12366         * cfganal.c (control_dependences::find_control_dependence): Likewise.
12367         (control_dependences::control_dependences): Likewise.
12368         (control_dependences::~control_dependences): Likewise.
12369         (control_dependences::~control_dependences): Likewise.
12370         (control_dependences::get_edges_dependent_on): Likewise.
12371         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
12372         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
12373         * context.c (gcc::context::context): Likewise.
12374         * cprop.c (pass_rtl_cprop::clone): Likewise.
12375         * domwalk.c (dom_walker::walk): Likewise.
12376         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
12377         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
12378         * mode-switching.c (pass_mode_switching::clone): Likewise.
12379         * passes.c (opt_pass::opt_pass): Likewise.
12380         (pass_manager::pass_manager): Likewise.
12381         * predict.c (pass_strip_predict_hints::clone): Likewise.
12382         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
12383         (pass_split_all_insns::clone): Likewise.
12384         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
12385         Likewise.
12386         (bit_field_mode_iterator::next_mode): Likewise.
12387         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
12388         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
12389         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
12390         * tree-complex.c (pass_lower_complex::clone): Likewise.
12391         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
12392         * tree-object-size.c (pass_object_sizes::clone): Likewise.
12393         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
12394         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
12395         (pass_fold_builtins::clone): Likewise.
12396         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
12397         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
12398         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
12399         (pass_cd_dce::clone): Likewise.
12400         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
12401         (pass_phi_only_cprop::clone): Likewise.
12402         * tree-ssa-dse.c (pass_dse::clone): Likewise.
12403         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
12404         * tree-ssa-loop.c (pass_lim::clone): Likewise.
12405         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
12406         * tree-ssa-pre.c (pass_fre::clone): Likewise.
12407         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
12408         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
12409         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
12410         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
12411         * tree-vrp.c (pass_vrp::clone): Likewise.
12412         * tsan.c (pass_tsan::clone): Likewise.
12414 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
12416         PR middle-end/58564
12417         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
12418         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
12420         PR middle-end/58564
12421         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
12422         optimization, punt if sign_bit_p looked through any zero extension.
12424 2013-09-30  Teresa Johnson  <tejohnson@google.com>
12426         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
12427         Update redirected out edge count in joiner case.
12428         (ssa_redirect_edges): Common the joiner and non-joiner cases
12429         so that joiner case gets profile updates.
12431 2013-09-30  Richard Biener  <rguenther@suse.de>
12433         PR tree-optimization/58554
12434         * tree-loop-distribution.c (classify_partition): Require
12435         unconditionally executed stores for memcpy and memset recognition.
12436         (tree_loop_distribution): Calculate dominance info.
12438 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
12440         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
12441         (NO_PROFILE_COUNTERS): Likewise.
12442         (PROFILE_HOOK): Likewise.
12443         (FUNCTION_PROFILER): Likewise.
12444         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
12446 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
12448         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
12449         calls and defines in TARGET_MACHO conditional.
12450         (load_macho_picbase_di): Likewise.
12451         (reload_macho_picbase): Likewise.
12452         (reload_macho_picbase_si): Likewise.
12453         (reload_macho_picbase_di): Likewise.
12454         (nonlocal_goto_receiver): Likewise.
12456 2013-09-30  Nick Clifton  <nickc@redhat.com>
12458         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
12459         that use the MSP430X ISA.
12460         (msp430_option_override): Scan -mmcu command line option for any
12461         MCU name that supports the MSP430X ISA.
12462         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
12463         -mmcu options which enable the MSP430X ISA.
12465 2013-09-30  Richard Biener  <rguenther@suse.de>
12467         PR middle-end/58532
12468         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
12469         before looking for setjmp-like calls.
12471 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
12473         PR target/10901
12474         * config/darwin-protos.h (machopic_get_function_picbase): New.
12475         * config/darwin.c (machopic_get_function_picbase): New.
12476         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
12477         label for a new func.  (load_macho_picbase_di): Likewise.
12478         (reload_macho_picbase): New expand.
12479         (reload_macho_picbase_si): New insn.
12480         (reload_macho_picbase_di): New insn.
12481         (nonlocal_goto_receiver): New define and split.
12482         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
12483         (unspecv enum): Add UNSPECV_NLGR.
12485 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
12487         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
12488         that altivec registers are correctly sized on Darwin.
12490 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
12492         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
12493         darwin-driver.o): Use COMPILE and POSTCOMPILE.
12494         * config/x-darwin (host-darwin.o): Likewise.
12495         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
12496         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
12497         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
12499 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
12501         * doc/invoke.texi: Fix usage of @tie{} command.
12503 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
12505         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
12507 2013-09-28  Jan Hubicka  <jh@suse.cz>
12509         * config/i386/x86-tune.def: Add documentation for each of the options;
12510         add whitespace.
12512 2013-09-28  Jan Hubicka  <jh@suse.cz>
12514         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
12515         generic.
12516         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
12517         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
12518         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
12519         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
12520         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
12522 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
12524         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
12525         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
12526         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
12527         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
12528         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
12529         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
12530         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
12531         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
12532         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
12533         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
12534         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
12535         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
12536         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
12537         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
12538         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
12539         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
12540         gimple.h, godump.c, graphite-clast-to-gimple.c,
12541         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
12542         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
12543         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
12544         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
12545         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
12546         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
12547         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
12548         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
12549         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
12550         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
12551         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
12552         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
12553         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
12554         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
12555         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
12556         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
12557         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
12558         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
12559         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
12560         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
12561         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
12562         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
12563         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
12564         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
12565         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
12566         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12567         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
12568         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
12569         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
12570         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
12571         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
12572         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
12573         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
12574         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
12575         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
12576         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
12577         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
12578         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
12579         whitespace before "(".
12581 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
12583         * expr.h (extract_bit_field): Remove packedp parameter.
12584         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
12585         from forward declaration.
12586         (store_split_bit_field): Remove packedp arg from calls to
12587         extract_fixed_bit_field.
12588         (extract_bit_field_1): Remove packedp parameter and packedp
12589         argument from recursive calls and calls to extract_fixed_bit_field.
12590         (extract_bit_field): Remove packedp parameter and corresponding
12591         arg to extract_bit_field_1.
12592         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
12593         to issue warnings.
12594         (extract_split_bit_field): Remove packedp arg from call to
12595         extract_fixed_bit_field.
12596         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
12597         (copy_blkmode_from_reg): Likewise.
12598         (copy_blkmode_to_reg): Likewise.
12599         (read_complex_part): Likewise.
12600         (store_field): Likewise.
12601         (expand_expr_real_1): Likewise.
12602         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
12603         to extract_bit_field.
12604         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
12605         call to extract_bit_field.
12606         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
12607         call to extract_bit_field.
12608         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
12609         and special packedp behavior from -fstrict-volatile-bitfields
12610         documentation.
12612 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12614         * lra-eliminations.c (init_elim_table): Guard value_p.
12616 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
12618         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
12619         DFmode, DImode, and SFmode in the upper VSX registers based on the
12620         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
12621         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
12622         of the VSX register handling.
12624         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
12625         (f32_sv): Likewise.
12626         (zero_extendsidi2_lfiwzx): Add support for loading into the
12627         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
12628         only do VSX memory options on Altivec registers.
12629         (extendsidi2_lfiwax): Likewise.
12630         (extendsfdf2_fpr): Likewise.
12631         (mov<mode>_hardfloat, SF/SD modes): Likewise.
12632         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
12633         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
12634         (movdi_internal64): Likewise.
12636 2013-09-27  Xinliang David Li  <davidxl@google.com>
12638         * opts.c (finish_options): Adjust parameters
12639         according to vect cost model.
12640         (common_handle_option): Set dynamic vect cost
12641         model for FDO.
12642         targhooks.c (default_add_stmt_cost): Compute stmt cost
12643         unconditionally.
12644         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
12645         Use helper function.
12646         * tree-vectorizer.h (unlimited_cost_model): New function.
12647         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
12648         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
12649         function.
12650         (vect_enhance_data_refs_alignment): Ditto.
12651         * flag-types.h: New enum.
12652         * common/config/i386/i386-common.c (ix86_option_init_struct):
12653         No need to initialize vect_cost_model flag.
12654         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
12655         unconditionally.
12657 2013-09-27  Diego Novillo  <dnovillo@google.com>
12659         * gimple.h (enum ssa_mode): Remove.
12661 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
12663         * cfgloop.h (number_of_loops): Fix typo in check for null.
12665 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
12667         PR middle-end/58551
12668         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
12669         are children of outermost saved_cfun's loop, and set it up to
12670         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
12671         if loop != loop0 and SESE region contains bbs that belong to loop0.
12673 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
12675         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
12676         (binary_scale_code_p, get_base_term, get_index_term): New functions.
12677         (set_address_segment, set_address_base, set_address_index)
12678         (set_address_disp): Accept the argument unconditionally.
12679         (baseness): Remove must_be_base_p and must_be_index_p checks.
12680         (decompose_normal_address): Classify as much as possible in the
12681         main loop.
12683 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
12685         * cse.c (count_reg_usage): Handle INT_LIST.
12686         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
12687         * reginfo.c (reg_scan_mark_refs): Likewise.
12688         * reload1.c (eliminate_regs_1): Likewise.
12690 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
12692         PR middle-end/58547
12693         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
12694         signed.
12696 2013-09-27  Richard Biener  <rguenther@suse.de>
12698         PR tree-optimization/58459
12699         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
12700         restriction not propagating into loops.
12702 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
12704         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
12705         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
12706         * doc/tree-ssa.texi (Walking use-def chains): Delete.
12708 2013-09-26  Richard Biener  <rguenther@suse.de>
12710         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
12712 2013-09-26  Richard Biener  <rguenther@suse.de>
12714         * alias.h (component_uses_parent_alias_set): Rename to ...
12715         (component_uses_parent_alias_set_from): ... this.
12716         * alias.c (component_uses_parent_alias_set): Rename to ...
12717         (component_uses_parent_alias_set_from): ... this and return
12718         the desired parent.
12719         (reference_alias_ptr_type_1): Use the result from
12720         component_uses_parent_alias_set_from instead of stripping
12721         components one at a time.
12722         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
12724 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
12726         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
12727         Move prototypes to...
12728         * tree-ssa-ter.h: New File.  Move prototypes here.
12729         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
12730         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
12731         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
12732         from is_replaceable_p.
12733         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
12734         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
12735         (process_replaceable): Use ter_is_replaceable_p.
12736         (find_replaceable_in_bb): Use ter_is_replaceable_p.
12737         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
12738         newly refactored ssa_is_replaceable_p.
12739         * cfgexpand.c: Include tree-outof-ssa.h.
12740         * ssaexpand.h: Delete.
12742 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
12744         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
12745         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
12746         tree-ssa.c
12747         (create_gimple_tmp): Delete.
12748         (get_expr_type, build_assign, build_type_cast): Move to...
12749         * gimple-builder.c: New File.
12750         (get_expr_type): Relocate from gimple.c.
12751         (build_assign, build_type_cast): Change to only create ssanames.
12752         * gimple.h: Move prototypes to...
12753         * gimple-builder.h: New File. Here.
12754         * tree-ssa.h: And here.
12755         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
12756         count_uses_and_derefs): Relocate from gimple.c.
12757         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
12758         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
12759         * tree-ssa-math-opts (execute_cse_reciprocals): Use
12760         gimple_replace_ssa_lhs.
12761         * asan.c: Include gimple-builder.h.
12762         * Makefile.in: Add gimple-builder.o.
12764 2013-09-26  Richard Biener  <rguenther@suse.de>
12766         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
12767         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
12768         (loe_visit_block): Use gcc_checking_assert.
12769         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
12770         gimple_assign_ssa_name_copy_p.
12771         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
12772         change.
12774 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
12776         * config/rs6000/t-rs6000 (rs6000.o): Remove.
12777         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
12779 2013-09-26  Richard Biener  <rguenther@suse.de>
12781         PR tree-optimization/58539
12782         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
12783         the fact that debug statements are not taking part in loop-closed
12784         SSA construction.
12786 2013-09-26  Nick Clifton  <nickc@redhat.com>
12788         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
12789         time warning message.
12790         (msp430_print_operand_raw): Delete unused letter parameter.
12791         (TARGET_PRINT_OPERAND_ADDRESS): Define.
12792         (msp430_print_operand_address): New function.
12793         (msp430_print_operand): Move address printing code from here to
12794         new function.
12795         * config/msp430/msp430.md (movsipsi2): Add comment in generated
12796         assembler.
12797         (zero_extendpsisi2): Likewise.
12798         (extendpsisi2): New pattern.
12799         (andneghi3): New pattern.
12801 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
12803         * config/aarch64/aarch64.opt (mlra): New option.
12804         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
12805         (TARGET_LRA_P): Define.
12807 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
12809         * expr.c (expand_assignment): Remove obsolete comment.
12811 2013-09-25  Jeff Law  <law@redhat.com>
12813         * tree-flow.h (thread_through_all_blocks): Prototype moved into
12814         tree-ssa-threadupdate.h.
12815         (register_jump_thread): Similarly.
12816         * tree-ssa-threadupdate.h: New header file.
12817         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
12818         * tree-vrp.c: Likewise.
12819         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
12820         (thread_around_empty_blocks): Change type of path vector argument to
12821         an edge,type pair from just an edge.  Initialize both elements when
12822         appending to a jump threading path.  Tweak references to elements
12823         appropriately.
12824         (thread_across_edge): Similarly.  Release memory for the elements
12825         as needed.
12826         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
12827         (dump_jump_thread_path): New function broken out from
12828         register_jump_thread.
12829         (register_jump_thread): Use dump_jump_thread_path.  Change type of
12830         path vector entries.  Search the path for NULL edges and dump
12831         the path if one is found.  Tweak the conversion of path to 3-edge
12832         form to use the block copy type information embedded in the path.
12834 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
12836         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
12838 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
12839             Vladimir Makarov  <vmakarov@redhat.com>
12841         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
12842         from the least significant bit.
12843         (strip_address_mutations): Add bitfield operations handling.
12844         (must_be_index_p): Add shifting and rotate operations handling.
12845         (set_address_base): Use must_be_base_p predicate.
12846         (set_address_index): Use must_be_index_p predicate.
12848 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12849             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12850             Sergey Lega  <sergey.s.lega@intel.com>
12851             Anna Tikhonova  <anna.tikhonova@intel.com>
12852             Ilya Tocar  <ilya.tocar@intel.com>
12853             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12854             Ilya Verbin  <ilya.verbin@intel.com>
12855             Kirill Yukhin  <kirill.yukhin@intel.com>
12856             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12858         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
12859         Use new names.
12860         (ix86_expand_vector_move_misalign): Support new unaligned load and
12861         stores and use new names.
12862         (CODE_FOR_sse2_storedqu): Rename to ...
12863         (CODE_FOR_sse2_storedquv16qi): ... this.
12864         (CODE_FOR_sse2_loaddqu): Rename to ...
12865         (CODE_FOR_sse2_loaddquv16qi): ... this.
12866         (CODE_FOR_avx_loaddqu256): Rename to ...
12867         (CODE_FOR_avx_loaddquv32qi): ... this.
12868         (CODE_FOR_avx_storedqu256): Rename to ...
12869         (CODE_FOR_avx_storedquv32qi): ... this.
12870         * config/i386/i386.md (fpint_logic): New.
12871         * config/i386/sse.md (VMOVE): Extend for AVX512.
12872         (VF): Ditto.
12873         (VF_128_256): New.
12874         (VF_512): Ditto.
12875         (VI_UNALIGNED_LOADSTORE): Ditto.
12876         (sse2_avx_avx512f): Ditto.
12877         (sse2_avx2): Extend for AVX512.
12878         (sse4_1_avx2): Ditto.
12879         (avx2_avx512f): New.
12880         (sse): Extend for AVX512.
12881         (sse2): Ditto.
12882         (sse4_1): Ditto.
12883         (avxsizesuffix): Ditto.
12884         (sseintvecmode): Ditto.
12885         (ssePSmode): Ditto.
12886         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
12887         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
12888         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
12889         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
12890         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
12891         (<sse2_avx_avx512f>_storedqu<mode): ... this.
12892         (<sse>_movnt<mode>): Replace constraint "x" with "v".
12893         (STORENT_MODE): Extend for AVX512.
12894         (*absneg<mode>2): Replace constraint "x" with "v".
12895         (*mul<mode>3): Ditto.
12896         (*ieee_smin<mode>3): Ditto.
12897         (*ieee_smax<mode>3): Ditto.
12898         (avx_cmp<mode>3): Replace VF with VF_128_256.
12899         (*<sse>_maskcmp<mode>3_comm): Ditto.
12900         (<sse>_maskcmp<mode>3): Ditto.
12901         (<sse>_andnot<mode>3): Extend for AVX512.
12902         (<code><mode>3, anylogic): Replace VF with VF_128_256.
12903         (<code><mode>3, fpint_logic): New.
12904         (*<code><mode>3): Extend for AVX512.
12905         (avx512flogicsuff): New.
12906         (avx512f_<logic><mode>): Ditto.
12907         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
12908         VF_128_256.
12909         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
12910         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
12911         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
12912         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
12913         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
12914         (xop_vpermil2<mode>3): Ditto.
12915         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
12916         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
12917         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
12918         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
12920 2013-09-25  Tom Tromey  <tromey@redhat.com>
12922         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
12923         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
12924         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
12925         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
12926         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
12927         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
12928         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
12929         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
12930         (GRAPHITE_HTAB_H): Remove.
12932 2013-09-25  Tom Tromey  <tromey@redhat.com>
12934         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
12936 2013-09-25  Tom Tromey  <tromey@redhat.com>
12938         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
12940 2013-09-25  Tom Tromey  <tromey@redhat.com>
12942         * config/i386/t-i386 (i386.o): Remove.
12943         (i386-c.o): Use COMPILE and POSTCOMPILE.
12945 2013-09-25  Tom Tromey  <tromey@redhat.com>
12947         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
12949 2013-09-25  Tom Tromey  <tromey@redhat.com>
12951         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
12952         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
12953         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
12954         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
12955         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
12956         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
12957         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
12958         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
12959         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
12960         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
12961         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
12962         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
12963         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
12964         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
12965         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
12966         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
12967         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
12968         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
12969         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
12970         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
12971         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
12972         (tree-ssa-pre.o, tree-ssa-sccvn.o)
12973         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
12974         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
12975         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
12976         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
12977         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
12978         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
12979         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
12980         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
12981         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
12982         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
12983         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
12984         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
12985         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
12986         (graphite-clast-to-gimple.o, graphite-dependences.o)
12987         (graphite-interchange.o, graphite-poly.o)
12988         (graphite-scop-detection.o, graphite-sese-to-poly.o)
12989         (graphite-optimize-isl.o, tree-vect-loop.o)
12990         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
12991         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
12992         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
12993         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
12994         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
12995         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
12996         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
12997         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
12998         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
12999         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
13000         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
13001         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
13002         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
13003         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
13004         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
13005         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
13006         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
13007         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
13008         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
13009         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
13010         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
13011         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
13012         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
13013         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
13014         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
13015         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
13016         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
13017         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
13018         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
13019         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
13020         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
13021         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
13022         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
13023         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
13024         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
13025         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
13026         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
13027         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
13028         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
13029         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
13030         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
13031         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
13032         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
13033         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
13034         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
13035         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
13036         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
13037         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
13038         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
13039         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
13040         (gcov-dump.o): Remove.
13041         (default-c.o): Use COMPILE and POSTCOMPILE.
13042         (CFLAGS-gcc.o): New variable.
13043         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
13045 2013-09-25  Tom Tromey  <tromey@redhat.com>
13047         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
13048         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
13049         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
13050         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
13051         (c-family/c-pragma.o, c-family/c-pretty-print.o)
13052         (c-family/c-semantics.o, c-family/c-ada-spec.o)
13053         (c-family/array-notation-common.o, c-family/stub-objc.o)
13054         (c-family/c-ubsan.o): Remove.
13056 2013-09-25  Tom Tromey  <tromey@redhat.com>
13058         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
13060 2013-09-25  Tom Tromey  <tromey@redhat.com>
13062         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
13063         to add -DENABLE_SHARED_LIBGCC.
13064         (gcc.o): Don't use subshell.
13066 2013-09-25  Tom Tromey  <tromey@redhat.com>
13068         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
13069         * configure.ac: Don't invoke AM_PROG_CC_C_O.
13070         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
13071         * configure, config.in: Rebuild.
13073 2013-09-25  Tom Tromey  <tromey@redhat.com>
13075         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
13076         (COMPILE, POSTCOMPILE): New variables.
13077         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
13078         (DEPFILES): New variable.
13079         Include ".Po" files.
13080         * configure.ac: Add checks for dependency checking.
13081         * configure, aclocal.m4: Regenerate.
13083 2013-09-25  Tom Tromey  <tromey@redhat.com>
13085         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
13086         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
13088 2013-09-25  Tom Tromey  <tromey@redhat.com>
13090         * Makefile.in (generated_files): Add options.h,
13091         target-hooks-def.h, insn-opinit.h,
13092         common/common-target-hooks-def.h, pass-instances.def,
13093         c-family/c-target-hooks-def.h.
13095 2013-09-25  Jeff Law  <law@redhat.com>
13097         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
13098         than foo[foo.length () - 1] to access last member in a vec.
13099         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
13101 2013-09-25  Richard Biener  <rguenther@suse.de>
13103         PR middle-end/58521
13104         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
13106 2013-09-25  Jan Hubicka  <jh@suse.cz>
13108         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
13109         test.
13111 2013-09-25  Marek Polacek  <polacek@redhat.com>
13113         PR sanitizer/58420
13114         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
13115         when determining the type name.
13117 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
13119         * config/sh/sh.md: Fix formatting.
13121 2013-09-24  Xinliang David Li  <davidxl@google.com>
13123         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
13124         max peel iterations parameter.
13125         * param.def: New parameter.
13126         * doc/invoke.texi: Document New parameter.
13128 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
13130         * gimple-pretty-print.c: Various whitespace tweaks.
13131         * tree-core.h: Likewise.
13132         * tree-pretty-print.c: Likewise.
13133         * tree-ssa-alias.c: Likewise.
13134         * tree-ssa-copy.c: Likewise.
13135         * tree-ssanames.c: Likewise.
13136         * tree-ssanames.h: Likewise.
13137         * tree-vrp.c: Likewise.
13139 2013-09-24  Alan Modra  <amodra@gmail.com>
13141         PR middle-end/57134
13142         PR middle-end/57586
13143         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
13144         for output operands that disallow regs.  Don't use EXPAND_WRITE on
13145         inout operands.
13147 2013-09-24  Richard Biener  <rguenther@suse.de>
13149         PR middle-end/58513
13150         * tree.c (reference_alias_ptr_type): Move ...
13151         * alias.c (reference_alias_ptr_type): ... here and implement
13152         in terms of the new reference_alias_ptr_type_1.
13153         (ref_all_alias_ptr_type_p): New helper.
13154         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
13155         use ref_all_alias_ptr_type_p.
13156         (get_deref_alias_set): Add flag_strict_aliasing check here.
13157         (reference_alias_ptr_type_1): New function, split out from ...
13158         (get_alias_set): ... here.
13159         (alias_ptr_types_compatible_p): New function.
13160         * alias.h (reference_alias_ptr_type): Declare.
13161         (alias_ptr_types_compatible_p): Likewise.
13162         * tree.h (reference_alias_ptr_type): Remove.
13163         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
13164         to compare MEM_REF alias types.
13166 2013-09-24  Richard Biener  <rguenther@suse.de>
13168         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
13170 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13172         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
13173         reload helper function arrays into a single array reg_addr.
13174         (reload_fpr_gpr): Likewise.
13175         (reload_gpr_vsx): Likewise.
13176         (reload_vsx_gpr): Likewise.
13177         (struct rs6000_reg_addr): Likewise.
13178         (reg_addr): Likewise.
13179         (rs6000_debug_reg_global): Change rs6000_vector_reload,
13180         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
13181         (rs6000_init_hard_regno_mode_ok): Likewise.
13182         (rs6000_secondary_reload_direct_move): Likewise.
13183         (rs6000_secondary_reload): Likewise.
13185         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
13186         constraints: wu, ww, and wy.  Repurpose wv constraint added during
13187         power8 changes.  Put wg constraint in alphabetical order.
13189         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
13190         for future work to add ISA 2.07 VSX single precision support.
13191         (-mvsx-scalar-double): Change default from -1 to 1, update
13192         documentation comment.
13193         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
13194         (-mupper-regs-df): New debug switch to control whether DF values
13195         can go in the traditional Altivec registers.
13196         (-mupper-regs-sf): New debug switch to control whether SF values
13197         can go in the traditional Altivec registers.
13199         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
13200         and wy constraints.
13201         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
13202         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
13203         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
13204         (rs6000_debug_legitimate_address_p): Print if we are running
13205         before, during, or after reload.
13206         (rs6000_secondary_reload): Add a comment.
13207         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
13209         * config/rs6000/constraints.md (wa constraint): Sort w<x>
13210         constraints.  Update documentation string.
13211         (wd constraint): Likewise.
13212         (wf constraint): Likewise.
13213         (wg constraint): Likewise.
13214         (wn constraint): Likewise.
13215         (ws constraint): Likewise.
13216         (wt constraint): Likewise.
13217         (wx constraint): Likewise.
13218         (wz constraint): Likewise.
13219         (wu constraint): New constraint for ISA 2.07 SFmode scalar
13220         instructions.
13221         (ww constraint): Likewise.
13222         (wy constraint): Likewise.
13223         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
13224         in the previous submissions.
13225         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
13227 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
13229         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
13230         (REG_BR_PROB): Say that the probability is stored in an int_list.
13231         * reg-notes.def: Update commentary to mention INT_LIST.
13232         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
13233         (INT_LIST): New rtx.
13234         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
13235         * rtlanal.c (int_reg_note_p): New function.
13236         (alloc_reg_note): Assert that the note does not have an int argument.
13237         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
13238         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
13239         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
13240         rather than an INSN_LIST.  Handle INT_LIST.
13241         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
13242         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
13243         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
13244         Manipulate them as ints rather than rtxes.
13245         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
13246         * regmove.c (copy_src_to_dest): Likewise.
13247         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
13249         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
13250         into the cases that need it.
13251         * config/arm/arm.c (arm_unwind_emit): Likewise.
13253         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
13254         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
13255         * loop-doloop.c (add_test, doloop_modify): Likewise.
13256         * loop-unswitch.c (compare_and_jump_seq): Likewise.
13257         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
13258         * predict.c (combine_predictions_for_insn): Likewise.
13259         * print-rtl.c (print_rtx): Handle INT_LIST.
13260         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
13261         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
13262         * config/arm/arm.c (emit_unlikely_jump): Likewise.
13263         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
13264         (ix86_split_fp_branch, predict_jump): Likewise.
13265         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
13266         * config/sh/sh.c (expand_cbranchsi4): Likewise.
13267         * config/spu/spu.c (ea_load_store_inline): Likewise.
13269         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
13270         value of a REG_BR_PROB note.
13271         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13272         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
13273         * emit-rtl.c (try_split): Likewise.
13274         * predict.c (br_prob_note_reliable_p): Likewise.
13275         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
13276         * reorg.c (mostly_true_jump): Likewise.
13277         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
13278         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
13279         * config/i386/i386.c (ix86_print_operand): Likewise.
13280         * config/ia64/ia64.c (ia64_print_operand): Likewise.
13281         * config/mmix/mmix.c (mmix_print_operand): Likewise.
13282         * config/rs6000/rs6000.c (output_cbranch): Likewise.
13283         * config/s390/s390.c (s390_expand_tbegin): Likewise.
13284         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
13285         * config/sparc/sparc.c (output_cbranch): Likewise.
13286         * config/spu/spu.c (get_branch_target): Likewise.
13287         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
13288         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
13290 2013-09-23  Jan Hubicka  <jh@suse.cz>
13292         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
13293         for ipa-devirt.
13294         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
13295         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
13296         of external calls
13297         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
13298         (gimple_fold_call): Dump inconsistent devirtualizations; add
13299         sanity check for type based devirtualizations.
13300         * ipa-prop.c: Include ipa-utils.h
13301         (ipa_intraprocedural_devirtualization): Add sanity check.
13302         (try_make_edge_direct_virtual_call): Likewise.
13304 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
13306         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
13307         assignment statements.
13309 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
13311         * gimple-pretty-print.c (dump_ssaname_info): New function.
13312         (dump_gimple_phi): Call it.
13313         (pp_gimple_stmt_1): Likewise.
13314         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
13315         (range_info_def): Declare.
13316         * tree-pretty-print.c (pp_double_int): New function.
13317         (dump_generic_node): Call it.
13318         * tree-pretty-print.h (pp_double_int): Declare.
13319         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
13320         * tree-ssanames.h (range_info_def): New structure.
13321         (value_range_type): Move definition here.
13322         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
13323         Declare.
13324         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
13325         initialization.
13326         (set_range_info): New function.
13327         (get_range_info): Likewise.
13328         (duplicate_ssa_name_range_info): Likewise.
13329         (duplicate_ssa_name_fn): Check pointer type and call
13330         duplicate_ssa_name_range_info.
13331         * tree-ssa-copy.c (fini_copy_prop): Likewise.
13332         * tree-vrp.c (value_range_type): Remove definition, now in
13333         tree-ssanames.h.
13334         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
13335         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
13336         (SSA_NAME_RANGE_INFO): New macro.
13338 2013-09-23  Richard Biener  <rguenther@suse.de>
13340         PR tree-optimization/58464
13341         * tree-ssa-pre.c (phi_trans_lookup): Remove.
13342         (phi_trans_add): Change to add conditionally on being not present.
13343         (phi_translate_1): Remove recursion detection here.
13344         (phi_translate): Pre-seed the cache with NULL to catch
13345         recursion here in a more generic way.
13346         (bitmap_find_leader): Adjust comment.
13347         (get_representative_for): Dump value-numbers.
13348         (create_expression_by_pieces): Likewise.
13349         (insert_into_preds_of_block): Likewise.
13351 2013-09-23  Christian Bruel  <christian.bruel@st.com>
13353         PR target/58475
13354         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
13355         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
13357 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
13359         Revert r202780:
13360         2013-09-20  Renlin Li  <renlin.li@arm.com>
13362         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13363         plus_constant.
13364         (aarch64_expand_epilogue): Likewise.
13365         (aarch64_legitimize_reload_address): Likewise.
13367 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
13369         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
13370         NULL_TREE before pushing them onto the vector.  Likewise for labels.
13372 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
13374         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
13375         comparison operators when -fno-trapping-math is in effect.
13376         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
13377         comparison operators in TFmode and assert that unsupported operators
13378         cannot reach here.
13379         (ia64_print_operand): Likewise.
13381 2013-09-21  Jan Hubicka  <jh@suse.cz>
13383         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
13384         (sse_typeless_stores): Enable for core
13385         (sse_load0_by_pxor): Likewise.
13386         (four_jump_limit): Disable for core.
13387         (pad_returns): Likewise.
13388         (avoid_vector_decode): Likewise.
13389         (fuse_cmp_and_branch): Enable for cores.
13390         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
13392 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
13394         PR middle-end/56791
13395         * config/pa/pa.c (pa_option_override): Disable auto increment and
13396         decrement instructions until reload is completed.
13398         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
13399         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
13400         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13402 2013-09-20  DJ Delorie  <dj@redhat.com>
13403             Nick Clifton  <nickc@redhat.com>
13405         * config/rl78/rl78.c: Various whitespace and comment tweaks.
13406         (need_to_save): Save bank 0 on interrupts.
13407         (characterize_address): Strip far address wrappers.
13408         (rl78_as_legitimate_address): Likewise.
13409         (transcode_memory_rtx): Likewise.
13410         (rl78_peep_movhi_p): Disable this peephole after devirt.
13411         (rl78_propogate_register_origins): Forget all origins when a
13412         CLOBBER is seen.
13413         * config/rl78/rl78-virt.md: Various whitespace tweaks.
13414         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
13415         peephole2's.
13416         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
13417         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
13418         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
13419         relocating.
13420         * config/rl78/constraints.md: Various whitespace and paren tweaks.
13422 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
13424         * config/pa/pa.md: In "scc" insn patterns, change output template to
13425         handle const0_rtx in reg_or_0_operand operands.
13427 2013-09-20  Martin Husemann  <martin@NetBSD.org>
13429         PR target/56875
13430         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
13431         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
13433 2013-09-20  Richard Biener  <rguenther@suse.de>
13435         PR middle-end/58484
13436         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
13437         remembering SSA name version and block index.
13438         (new_scev_info_str): Adjust.
13439         (hash_scev_info): Likewise.  Also hash the block index.
13440         (eq_scev_info): Adjust.
13441         (find_var_scev_info): Likewise.
13442         (struct instantiate_cache_entry): Remove.
13443         (struct instantiate_cache_type): Use a htab to map name, block
13444         to chrec.
13445         (instantiate_cache_type::~instantiate_cache_type): Adjust.
13446         (get_instantiated_value_entry): Likewise.
13447         (hash_idx_scev_info, eq_idx_scev_info): New functions.
13448         (instantiate_scev_name): Adjust.
13450 2013-09-20  Jeff Law  <law@redhat.com>
13452         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
13454 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
13456         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
13457         Call aarch64_simd_expand_args to update op[argc].
13459 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
13461         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
13462         plugin argument.
13464 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
13466         * gengtype.c (file_rules): Added rule for *.cc files.
13467         (get_output_file_with_visibility): Give fatal message when no
13468         rules found.
13470 2013-09-20  Renlin Li  <renlin.li@arm.com>
13472         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
13473         (aarch64_expand_epilogue): Likewise.
13474         (aarch64_legitimize_reload_address): Likewise.
13476 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13478         PR middle-end/57748
13479         * expr.c (expand_assignment): Remove misalignp code path.
13481 2013-09-20  Marek Polacek  <polacek@redhat.com>
13483         PR sanitizer/58413
13484         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
13485         TYPE_PRECISION.  Add asserts.
13487 2013-09-20  Richard Biener  <rguenther@suse.de>
13489         PR tree-optimization/58453
13490         * tree-loop-distribution.c (distribute_loop): Apply the cost
13491         model for -ftree-loop-distribute-patterns, too.
13493 2013-09-20  Richard Biener  <rguenther@suse.de>
13495         PR middle-end/58473
13496         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
13497         make type comparison less strict.
13499 2013-09-20  Alan Modra  <amodra@gmail.com>
13501         * configure: Regenerate.
13502         * aclocal.m4: Regenerate.
13504 2013-09-20  Marek Polacek  <polacek@redhat.com>
13506         PR other/58467
13507         * doc/extend.texi: Document that attribute used is meant to be used
13508         on variables with static storage duration.
13510 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
13512         PR tree-optimization/58472
13513         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
13514         simd_lane_access set inv_p = false.
13515         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
13516         the simduid magic VAR_DECL.
13518 2013-09-19  Jan Hubicka  <jh@suse.cz>
13520         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
13522 2013-09-17  Jeff Law  <law@redhat.com>
13524         * tree-ssa-dom.c (record_temporary_equivalences): New function
13525         split out of dom_opt_dom_walker::after_dom_children.
13526         (dom_opt_dom_walker::thread_across_edge): Move common code
13527         in here from dom_opt_dom_walker::after_dom_children.
13528         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
13530 2013-09-19  Jan Hubicka  <jh@suse.cz>
13532         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
13533         (TARGET_GENERIC): Use PROCESOR_GENERIC
13534         (enum processor_type): Unify generic32 and 64.
13535         * i386.md (cpu): Likewise.
13536         * x86-tune.def (use_leave): Enable for generic32.
13537         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
13538         * athlon.md: Change generic64 to generic in all occurences.
13539         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
13540         (ix86_target_macros_internal): Likewise.
13541         * driver-i386.c (host_detect_local_cpu): Likewise.
13542         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
13543         to ..
13544         (generic_memcpy, generic_memset, generic_cost): This one.
13545         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
13546         (m_GENERIC32, m_GENERIC64): Remove.
13547         (m_GENERIC): Turn into one flag.
13548         (processor_target): Unify generic tunnings.
13549         (ix86_option_override_internal): Replace generic32/64 by generic.
13550         (ix86_issue_rate): Likewise.
13551         (ix86_adjust_cost): Likewise.
13553 2013-09-19  Jan Hubicka  <jh@suse.cz>
13555         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
13556         of speculative flag.
13558 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
13560         * omp-low.c (expand_omp_sections): Always pass len - 1 to
13561         GOMP_sections_start, even if !exit_reachable.
13563 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
13565         * lra-constraints.c (need_for_all_save_p): Use macro
13566         HARD_REGNO_CALL_PART_CLOBBERED.
13567         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
13568         set up pseudo conflict hard regs.
13570 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
13572         PR target/58452
13573         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
13574         operands.
13576 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
13578         PR rtl-optimization/58438
13579         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
13580         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
13581         from previous subpasses.
13583 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
13585         * arm.c (arm_get_frame_offsets): Validate architecture supports
13586         LDRD/STRD before accepting the tuning preference.
13587         (arm_expand_prologue): Likewise.
13588         (arm_expand_epilogue): Likewise.
13590 2013-09-18  Richard Biener  <rguenther@suse.de>
13592         PR tree-optimization/58417
13593         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
13594         have chrecs with symbols defined in the loop as operands.
13595         (chrec_fold_multiply): Likewise.
13596         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
13597         parameters before folding binary operations.
13598         (struct instantiate_cache_entry_hasher): Remove.
13599         (struct instantiate_cache_type): Use a pointer-map.
13600         (instantiate_cache_type::instantiate_cache_type): New function.
13601         (instantiate_cache_type::get): Likewise.
13602         (instantiate_cache_type::set): Likewise.
13603         (instantiate_cache_type::~instantiate_cache_type): Adjust.
13604         (get_instantiated_value_entry): Likewise.
13605         (global_cache): New global.
13606         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
13607         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
13608         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
13609         (instantiate_scev_name): Adjust.
13610         (instantiate_scev): Construct global instead of local cache.
13611         (resolve_mixers): Likewise.
13613 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
13614             Paolo Carlini  <paolo.carlini@oracle.com>
13616         PR c++/58458
13617         * doc/implement-cxx.texi: Fix references to the C++ standards.
13619 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
13621         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
13622         * tree-vect-data-refs.c (vect_analyze_data_refs): For
13623         simd_lane_access drs, update also DR_ALIGNED_TO.
13625 2013-09-18  Marek Polacek  <polacek@redhat.com>
13627         PR sanitizer/58411
13628         * doc/extend.texi: Document no_sanitize_undefined attribute.
13629         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
13630         no_sanitize_undefined attribute.
13632 2013-09-18  Nick Clifton  <nickc@redhat.com>
13634         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
13635         (ASM_DECLARE_FUNCTION_NAME): Define.
13637 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
13639         * compare-elim.c (find_comparison_dom_walker): New class
13640         (find_comparisons_in_bb): Rename to
13641         find_comparison_dom_walker::before_dom_children
13642         (find_comparisons): Adjust
13643         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
13644         adjust.
13645         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
13646         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
13647         (init_walk_dominator_tree): Remove declaration.
13648         (fini_walk_dominator_tree): Remove declaration.
13649         * fwprop.c (single_def_use_dom_walker): New class
13650         (single_def_use_enter_block): Convert to
13651         single_def_use_dom_walker::before_dom_children.
13652         (single_def_use_leave_block): Convert to
13653         single_def_use_dom_walker::after_dom_children.
13654         (build_single_def_use_links): Adjust.
13655         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
13656         class.
13657         (find_candidates_in_block): Convert to
13658         find_candidates_dom_walker::before_dom_children.
13659         (execute_strength_reduction): Adjust.
13660         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
13661         (sese_dom_walker): New class.
13662         (sese_dom_walker::sese_dom_walker): New constructor.
13663         (sese_dom_walker::~sese_dom_walker): New destructor.
13664         (build_sese_conditions_before): Convert to
13665         sese_dom_walker::before_dom_children.
13666         (build_sese_conditions_after): Convert to
13667         sese_dom_walker::after_dom_children.
13668         (build_poly_scop): Adjust
13669         * tree-into-ssa.c (rewrite_dom_walker): New class
13670         (rewrite_enter_block): Convert to
13671         rewrite_dom_walker::before_dom_children.
13672         (rewrite_leave_block): Convert to
13673         rewrite_dom_walker::after_dom_children.
13674         (rewrite_update_dom_walker): New class.
13675         (rewrite_update_enter_block): Convert to
13676         rewrite_update_dom_walker::before_dom_children.
13677         (rewrite_update_leave_block): Convert to
13678         rewrite_update_dom_walker::after_dom_children.
13679         (rewrite_blocks, rewrite_into_ssa): Adjust.
13680         (mark_def_dom_walker): New class.
13681         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
13682         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
13683         (mark_def_sites_blocks): Convert to
13684         mark_def_dom_walker::before_dom_children.
13685         (mark_def_site_blocks): Remove.
13686         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
13687         (tree_ssa_dominator_optimize): Adjust.
13688         (dom_thread_across_edge): Convert to method
13689         dom_opt_dom_walker::thread_across_edge.
13690         (dom_opt_enter_block): Convert to member function
13691         dom_opt_dom_walker::before_dom_children.
13692         (dom_opt_leave_block): Convert to member function
13693         dom_opt_dom_walker::after_dom_children.
13694         * tree-ssa-dse.c (dse_dom_walker): New class.
13695         (dse_enter_block): Convert to member function
13696         dse_dom_walker::before_dom_children.
13697         (tree_ssa_dse): Adjust.
13698         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
13699         (determine_invariantness_stmt): Convert to method
13700         invariantness_dom_walker::before_dom_children.
13701         (determine_invariantness): Remove
13702         (move_computations_dom_walker): New class.
13703         (move_computations_stmt): Convert to method
13704         move_computations_dom_walker::before_dom_children.
13705         (move_computations, tree_ssa_lim): Adjust.
13706         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
13707         (nt_init_block): Convert to method
13708         notrappping_dom_walker::before_dom_children.
13709         (nt_fini_block): Convert to method
13710         method nontrapping_dom_walker::after_dom_children.
13711         (get_non_trapping): Adjust.
13712         * tree-ssa-pre.c (eliminate_dom_walker): New class.
13713         (eliminate_bb): Convert to method
13714         eliminate_dom_walker::before_dom_children.
13715         (eliminate_leave_block): Convert to method
13716         eliminate_dom_walker::after_dom_children.
13717         (eliminate): Adjust.
13718         * tree-ssa-strlen.c (strlen_dom_walker): New class.
13719         (strlen_enter_block): Convert to method
13720         strlen_dom_walker::before_dom_children.
13721         (strlen_leave_block): Convert to method
13722         method strlen_dom_walker::after_dom_children.
13723         (tree_ssa_strlen): Adjust.
13724         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
13725         (tree_ssa_uncprop): Adjust.
13726         (uncprop_leave_block): Convert to method
13727         uncprop_dom_walker::after_dom_children.
13728         (uncprop_leave_block): Convert to method
13729         uncprop_dom_walker::before_dom_children.
13731 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
13733         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
13734         branch in same basic block.  Check both src and dest of the move insn.
13736 2013-09-17  Nick Clifton  <nickc@redhat.com>
13738         * config/rl78/rl78-real.md (bf): New pattern.
13739         (bt): New pattern.
13740         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
13741         (rl78_print_operand): Do not put a # before a %B.
13742         * config/rl78/rl78.opt: Tweak doc strings.
13744 2013-09-17  DJ Delorie  <dj@redhat.com>
13746         * config/rl78/constraints.md (Wcv): Allow up to $r31.
13747         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
13748         (rl78_option_override): Likewise, if -mallregs.
13749         (is_virtual_register): Likewise.
13750         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
13751         (REGNO_OK_FOR_BASE_P): Likewise.
13752         * config/rl78/rl78.opt (-mallregs): New.
13754 2013-09-17  Nick Clifton  <nickc@redhat.com>
13756         * config/rl78/rl78.c (need_to_save): Change return type to bool.
13757         For interrupt functions: save all call clobbered registers if the
13758         interrupt handler is not a leaf function.
13759         (rl78_expand_prologue): Always recompute the frame information.
13760         For interrupt functions: only select bank 0 if one of the bank 0
13761         registers is going to be psuhed.
13763 2013-09-17  DJ Delorie  <dj@redhat.com>
13765         * config/rl78/constraints.md: For each W* constraint, rename to C*
13766         and create a W* constraint that checks for an optional ES: prefix
13767         pattern also.
13768         * config/rl78/rl78.md (UNS_ES_ADDR): New.
13769         (es_addr): New.  Used to wrap far addresses.
13770         * config/rl78/rl78-protos.h (rl78_es_addr): New.
13771         (rl78_es_base): New.
13772         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
13773         wrapped far addresses.
13774         (rl78_print_operand_1): Unwrap far addresses before processing.
13775         (rl78_lo16): Wrap far addresses in unspecs.
13776         (rl78_es_addr): New.
13777         (rl78_es_base): New.
13778         (insn_ok_now): Check for not-yet-wrapped far addresses.
13779         (transcode_memory_rtx): Properly re-wrap far addresses.
13781 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13783         * config/sparc/t-rtems: Add leon3 multilibs.
13785 2013-09-17  Cong Hou  <congh@google.com>
13787         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
13788         when checking the dot production pattern. The type of rhs operand
13789         of multiply is now checked correctly.
13791 2013-09-17  Jeff Law  <law@redhat.com>
13793         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13794         edge implied equivalences into successor phis.
13795         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
13796         here from tree-ssa-threadedge.c.
13797         (mark_threaded_blocks): When threading through a joiner, if both
13798         successors of the joiner's clone reach the same block, verify the
13799         PHI arguments are equal.  If not, cancel the jump threading request.
13800         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
13801         tree-ssa-threadupdate.c
13802         (thread_across_edge): Don't check PHI argument equality when
13803         threading through joiner block here.
13805 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
13807         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
13808         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
13809         (warn_uninit, warn_uninitialized_vars,
13810         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
13811         Move to tree-ssa-uninit.c.
13812         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
13813         (has_undefined_value_p): New.  Pass dependant parts of
13814         ssa_undefined_value_p.
13815         (uninit_undefined_value_p): Use has_undefined_value_p.
13816         (warn_uninit, warn_uninitialized_vars,
13817         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
13818         Move from tree-ssa.c.
13819         * tree-ssa.h: Adjust prototypes.
13821 2013-09-17  Jan Hubicka  <jh@suse.cz>
13823         PR middle-end/58332
13824         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
13825         * ipa-inline.c (can_inline_edge_p): Do not downgrade
13826         FUNCTION_NOT_OPTIMIZED.
13827         * ipa-inline-analysis.c (compute_inline_parameters): Function
13828         not optimized is not inlinable unless it is alwaysinline.
13829         (inline_analyze_function): Force calls in not optimized
13830         function not inlinable.
13832 2013-09-17  Jan Hubicka  <jh@suse.cz>
13834         PR middle-end/58329
13835         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
13836         to return NULL.
13837         * ipa.c (function_and_variable_visibility): Likewise.
13838         * ipa-profile.c (ipa_profile): Likewise.
13840 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13842         PR ipa/58398
13843         * cgraph.c (cgraph_function_body_availability): Check for ifunc
13844         attribute, and don't inline the resolver in this case.
13846 2013-09-17  Teresa Johnson  <tejohnson@google.com>
13848         * coverage.c (get_coverage_counts): Add missing newline.
13850 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13852         PR tree-optimization/58088
13853         * fold-const.c (mask_with_trailing_zeros): New function.
13854         (fold_binary_loc): Make sure we don't recurse infinitely
13855         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
13856         Use mask_with_trailing_zeros where appropriate.
13858 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
13860         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
13861         of 'prev' var to get better distance estimation.
13863 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
13865         * tree-inline.h (struct copy_body_data): Add transform_parameter.
13866         * tree-inline.c (is_parameter_of): New predicate.
13867         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
13868         a parameter has been remapped.
13869         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
13870         (optimize_inline_calls): Initialize transform_parameter.
13871         (copy_gimple_seq_and_replace_locals): Likewise.
13872         (tree_function_versioning): Likewise.
13873         (maybe_inline_call_in_expr): Likewise.
13875 2013-09-17  Nick Clifton  <nickc@redhat.com>
13877         * config/msp430/msp430-protos.h: Add prototypes for new functions.
13878         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
13879         interrupt handlers.
13880         (is_attr_func): New function.
13881         (msp430_is_interrupt_func): New function.
13882         (is_naked_func): New function.
13883         (is_reentrant_func): New function.
13884         (is_critical_func): New function.
13885         (msp430_start_function): Add annotations for function attributes.
13886         (msp430_attr): New function.
13887         (msp430_attribute_table): New.
13888         (msp430_function_section): New function.
13889         (TARGET_ASM_FUNCTION_SECTION): Define.
13890         (msp430_builtin): New enum.
13891         (msp430_init_builtins): New function.
13892         (msp430_builtin_devl): New function.
13893         (msp430_expand_builtin): New function.
13894         (TARGET_INIT_BUILTINS): Define.
13895         (TARGET_EXPAND_BUILTINS): Define.
13896         (TARGET_BUILTIN_DECL): Define.
13897         (msp430_expand_prologue): Add support for naked, interrupt,
13898         critical and reentrant functions.
13899         (msp430_expand_epilogue): Likewise.
13900         (msp430_print_operand): Handle 'O' character.
13901         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
13902         NO_TRAMPOLINES.
13903         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
13904         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
13905         (pushm): Use a 'n' rather than an 'i' constraint.
13906         (msp_return): Add generation of the interrupt return instruction.
13907         (disable_interrupts): New pattern.
13908         (enable_interrupts): New pattern.
13909         (push_intr_state): New pattern.
13910         (pop_intr_state): New pattern.
13911         (bic_SR): New pattern.
13912         (bis_SR): New pattern.
13913         * doc/extend.texi: Document MSP430 function attributes and builtin
13914         functions.
13916 2013-09-17  Richard Biener  <rguenther@suse.de>
13918         PR tree-optimization/58432
13919         * tree-loop-distribution.c (tree_loop_distribution): Also
13920         scan PHIs for outside loop uses and seed a partition from them.
13922 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
13924         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
13925         (restructure_reference): Call backtrace_base_for_ref.
13927 2013-09-17  Alan Modra  <amodra@gmail.com>
13929         PR target/57589
13930         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
13931         patch.
13933 2013-09-16  DJ Delorie  <dj@redhat.com>
13935         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
13936         vregs location for RL78/G10.
13937         (rl78_expand_prologue): Avoid SEL on G10.
13938         (rl78_expand_epilogue): Likewise.
13939         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
13940         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13941         __RL78_G10__ when appropriate.
13942         (ASM_SPEC): Pass -mg10 along to the assembler.
13943         * config/rl78/rl78.md (sel_rb): Disable for G10.
13944         * config/rl78/rl78.opt: Add -mg10 option.
13945         * config/rl78/t-rl78: Add -mg10 multilib.
13947 2013-09-16  Xinliang David Li  <davidxl@google.com>
13949         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
13950         * omp-low.c (omp_max_vf): Ditto.
13951         (expand_omp_simd): Ditto.
13952         * tree-vectorizer.c (vectorize_loops): Ditto.
13953         (gate_vect_slp): Ditto.
13954         (gate_increase_alignment): Ditto.
13955         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
13956         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
13957         (gate_tree_vectorize): Name change.
13958         (tree_vectorize): Ditto.
13959         (pass_vectorize::gate): Call new function.
13960         (pass_vectorize::execute): Ditto.
13961         * opts.c: O3 default setting change.
13962         (finish_options): Check new flag.
13963         * doc/invoke.texi: Document new flags.
13964         * common.opt: New flags.
13966 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
13968         * doc/tm.texi.in (Cond Exec Macros): Remove node.
13969         (Condition Code): Don't reference it.
13970         * doc/tm.texi: Regenerate.
13972 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
13974         PR middle-end/58418
13975         * lra-constraints.c (undo_optional_reloads): Consider all optional
13976         reload even if it did not get a hard reg.
13978 2013-09-16  Teresa Johnson  <tejohnson@google.com>
13980         * dumpfile.c (dump_loc): Remove newline emission.
13981         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
13982         emission to dump_printf_loc calls where missing.
13983         (vect_mark_for_runtime_alias_test): Ditto.
13984         (vect_analyze_data_ref_dependence): Ditto.
13985         (vect_analyze_data_ref_dependences): Ditto.
13986         (vect_slp_analyze_data_ref_dependence): Ditto.
13987         (vect_slp_analyze_data_ref_dependences): Ditto.
13988         (vect_compute_data_ref_alignment): Ditto.
13989         (vect_update_misalignment_for_peel): Ditto.
13990         (vect_verify_datarefs_alignment): Ditto.
13991         (vector_alignment_reachable_p): Ditto.
13992         (vect_get_data_access_cost): Ditto.
13993         (vect_enhance_data_refs_alignment): Ditto.
13994         (vect_find_same_alignment_drs): Ditto.
13995         (vect_analyze_data_refs_alignment): Ditto.
13996         (vect_analyze_group_access): Ditto.
13997         (vect_analyze_data_ref_access): Ditto.
13998         (vect_analyze_data_ref_accesses): Ditto.
13999         (vect_prune_runtime_alias_test_list): Ditto.
14000         (vect_analyze_data_refs): Ditto.
14001         (vect_create_addr_base_for_vector_ref): Ditto.
14002         (vect_create_data_ref_ptr): Ditto.
14003         (vect_grouped_store_supported): Ditto.
14004         (vect_grouped_load_supported): Ditto.
14005         * value-prof.c (check_counter): Ditto.
14006         (check_ic_target): Ditto.
14007         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
14008         (vect_recog_widen_mult_pattern): Ditto.
14009         (vect_recog_widen_sum_pattern): Ditto.
14010         (vect_recog_over_widening_pattern): Ditto.
14011         (vect_recog_widen_shift_pattern): Ditto.
14012         (vect_recog_rotate_pattern): Ditto.
14013         (vect_recog_vector_vector_shift_pattern): Ditto.
14014         (vect_recog_divmod_pattern): Ditto.
14015         (vect_recog_mixed_size_cond_pattern): Ditto.
14016         (vect_recog_bool_pattern): Ditto.
14017         (vect_pattern_recog_1): Ditto.
14018         (vect_pattern_recog): Ditto.
14019         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
14020         (vect_is_simple_iv_evolution): Ditto.
14021         (vect_analyze_scalar_cycles_1): Ditto.
14022         (vect_get_loop_niters): Ditto.
14023         (vect_analyze_loop_1): Ditto.
14024         (vect_analyze_loop_form): Ditto.
14025         (vect_analyze_loop_operations): Ditto.
14026         (vect_analyze_loop_2): Ditto.
14027         (vect_analyze_loop): Ditto.
14028         (report_vect_op): Ditto.
14029         (vect_is_slp_reduction): Ditto.
14030         (vect_is_simple_reduction_1): Ditto.
14031         (vect_get_known_peeling_cost): Ditto.
14032         (vect_estimate_min_profitable_iters): Ditto.
14033         (vect_model_reduction_cost): Ditto.
14034         (vect_model_induction_cost): Ditto.
14035         (get_initial_def_for_induction): Ditto.
14036         (vect_create_epilog_for_reduction): Ditto.
14037         (vectorizable_reduction): Ditto.
14038         (vectorizable_induction): Ditto.
14039         (vectorizable_live_operation): Ditto.
14040         (vect_loop_kill_debug_uses): Ditto.
14041         (vect_transform_loop): Ditto.
14042         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
14043         (vect_stmt_relevant_p): Ditto.
14044         (process_use): Ditto.
14045         (vect_mark_stmts_to_be_vectorized): Ditto.
14046         (vect_model_simple_cost): Ditto.
14047         (vect_model_promotion_demotion_cost): Ditto.
14048         (vect_model_store_cost): Ditto.
14049         (vect_get_store_cost): Ditto.
14050         (vect_model_load_cost): Ditto.
14051         (vect_get_load_cost): Ditto.
14052         (vect_init_vector_1): Ditto.
14053         (vect_get_vec_def_for_operand): Ditto.
14054         (vect_finish_stmt_generation): Ditto.
14055         (vectorizable_call): Ditto.
14056         (vectorizable_conversion): Ditto.
14057         (vectorizable_assignment): Ditto.
14058         (vectorizable_shift): Ditto.
14059         (vectorizable_operation): Ditto.
14060         (vectorizable_store): Ditto.
14061         (vectorizable_load): Ditto.
14062         (vectorizable_condition): Ditto.
14063         (vect_analyze_stmt): Ditto.
14064         (vect_transform_stmt): Ditto.
14065         (vect_is_simple_use): Ditto.
14066         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
14067         (vect_can_advance_ivs_p): Ditto.
14068         (vect_update_ivs_after_vectorizer): Ditto.
14069         (vect_do_peeling_for_loop_bound): Ditto.
14070         (vect_gen_niters_for_prolog_loop): Ditto.
14071         (vect_update_inits_of_drs): Ditto.
14072         (vect_create_cond_for_alias_checks): Ditto.
14073         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
14074         (vect_build_slp_tree_1): Ditto.
14075         (vect_supported_load_permutation_p): Ditto.
14076         (vect_analyze_slp_instance): Ditto.
14077         (vect_analyze_slp): Ditto.
14078         (vect_make_slp_decision): Ditto.
14079         (vect_detect_hybrid_slp): Ditto.
14080         (vect_bb_vectorization_profitable_p): Ditto.
14081         (vect_slp_analyze_bb_1): Ditto.
14082         (vect_update_slp_costs_according_to_vf): Ditto.
14083         (vect_get_mask_element): Ditto.
14084         (vect_transform_slp_perm_load): Ditto.
14085         (vect_schedule_slp_instance): Ditto.
14086         (vect_schedule_slp): Ditto.
14087         (vect_slp_transform_bb): Ditto.
14088         * profile.c (read_profile_edge_counts): Ditto.
14089         (compute_branch_probabilities): Ditto.
14090         * coverage.c (get_coverage_counts): Ditto.
14092 2013-09-16  Diego Novillo  <dnovillo@google.com>
14094         * tree-core.h: Add missing comment lines from refactoring of tree.h.
14096 2013-09-16  Jan Hubicka  <jh@suse.cz>
14098         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
14099         abstract functions; for static functions check the presence of body.
14101 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14103         * config/aarch64/aarch64-simd-builtins.def (fma): New.
14104         * config/aarch64/aarch64-simd.md
14105         (aarch64_mla_elt<mode>): New.
14106         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
14107         (aarch64_mls_elt<mode>): Likewise.
14108         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
14109         (aarch64_fma4_elt<mode>): Likewise.
14110         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
14111         (aarch64_fma4_elt_to_128v2df): Likewise.
14112         (aarch64_fma4_elt_to_64df): Likewise.
14113         (fnma<mode>4): Likewise.
14114         (aarch64_fnma4_elt<mode>): Likewise.
14115         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
14116         (aarch64_fnma4_elt_to_128v2df): Likewise.
14117         (aarch64_fnma4_elt_to_64df): Likewise.
14118         * config/aarch64/iterators.md (VDQSF): New.
14119         * config/aarch64/arm_neon.h
14120         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
14121         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
14123 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14125         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
14126         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
14127         (aarch64_mul3_elt_to_128df): Likewise.
14128         (aarch64_mul3_elt_to_64v2df): Likewise.
14129         * config/aarch64/iterators.md (VEL): Also handle DFmode.
14130         (VMUL): New.
14131         (VMUL_CHANGE_NLANES) Likewise.
14132         (h_con): Likewise.
14133         (f): Likewise.
14134         * config/aarch64/arm_neon.h
14135         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
14137 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14139         * config/aarch64/arm_neon.h
14140         (vcvtx_high_f32_f64): Fix parameters.
14142 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14143             Uros Bizjak  <ubizjak@gmail.com>
14145         * config/alpha.c: Include tree-ssanames.h.
14147 2013-09-16  Richard Biener  <rguenther@suse.de>
14149         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
14150         (dot_rdg_1): Handle control_dd.
14151         (create_edge_for_control_dependence): New function.
14152         (create_rdg_edges): Add control dependences if asked for.
14153         (build_rdg): Likewise.
14154         (generate_loops_for_partition): If there are not necessary
14155         control stmts remove all their dependencies.
14156         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
14157         (distribute_loop): Pass on control dependences.
14158         (tree_loop_distribution): Compute control dependences and remove
14159         restriction on number of loop nodes.
14161 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
14163         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
14164         for internal calls.
14166 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
14168         * cse.c (try_const_anchors): Punt on CC modes.
14170 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14172         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
14174 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
14176         PR target/58382
14177         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
14178         calls to word_mode.
14180 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
14182         PR target/48094
14183         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
14184         seen.
14185         (darwin_objc1_section): Likewise.
14186         (darwin_file_end): Emit Image Info section when required.
14188 2013-09-14  Jan Hubicka  <jh@suse.cz>
14190         * tree-into-ssa.c (gate_into_ssa): New.
14191         (pass_data_build_ssa): Use it.
14192         * cgraph.h (expand_thunk): Update prototype.
14193         * cgraphunit.c (analyze_function): Expand thunks early.
14194         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
14195         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
14196         set lowered flag; do not add new function.
14197         (assemble_thunks_and_aliases): Update.
14198         * tree-ssa.c (gate_init_datastructures): New gate.
14199         (pass_data_init_datastructures): Use it.
14201 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
14203         PR target/58269
14204         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
14205         xmm register set described in the psABI.
14207 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
14209         * dwarf2out.c (should_emit_struct_debug): Add check
14210         for type_decl variable is not NULL.
14212 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
14214         * config.gcc: Use new winnt-c.c target hooks
14215         * config/t-winnt: New file
14216         * config/winnt-c.c: New file
14217         * doc/tm.texi.in: Document new hook
14218         * doc/tm.texi: Regenerated
14220 2013-09-13  Jan Hubicka  <jh@suse.cz>
14222         PR middle-end/58094
14223         * ipa-inline.c (check_callers): New function.
14224         (check_caller_edge): Remove.
14225         (want_inline_function_to_all_callers_p): Also permit alises that are
14226         called dirrectly.
14227         (inline_to_all_callers): Terminate the walk when devirtualization
14228         introduce new calls.
14230 2013-09-13  Jan Hubicka  <jh@suse.cz>
14232         * ipa-inline-analysis.c (struct growth_data): Add node.
14233         (do_estimate_growth_1): Fix detection of recursion.
14235 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
14237         PR tree-optimization/58392
14238         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
14239         to avoid shadowing of outer loop variable.  If
14240         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
14241         replace_by_duplicate_decl simduid of loops that have it set and
14242         set dest_cfun->has_simduid_loops and/or
14243         dest_cfun->has_force_vect_loops.
14244         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
14245         instead of maybe_lookup_decl.
14246         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
14247         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
14248         call.  Copy over force_vect and copy and remap simduid.  Set
14249         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
14250         (copy_cfg_body): Remove blocks_to_copy argument.  Use
14251         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
14252         caller.  Don't set cfun->has_simduid_loops and/or
14253         cfun->has_force_vect_loops here.
14254         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
14255         caller.
14256         (expand_call_inline, tree_function_versioning): Adjust copy_body
14257         callers.
14259 2013-09-13  Martin Jambor  <mjambor@suse.cz>
14261         PR bootstrap/58388
14262         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
14263         the assert if the edge was a speculative one.
14265 2013-09-13  Richard Biener  <rguenther@suse.de>
14267         * tree-data-ref.h (known_dependences_p): Move here ...
14268         * tree-loop-distribution.c (known_dependences_p): ... from here.
14269         (dump_rdg_component, debug_rdg_component): Remove.
14270         (dump_rdg): Adjust.
14271         (generate_loops_for_partition): Use gimple_uid instead of
14272         relying on matching stmt visit order.
14273         (rdg_build_partitions): Take starting stmt vector.
14274         (ldist_gen): Merge into ...
14275         (distribute_loop): ... this function.  Do not compute starting
14276         vertices vector.
14277         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
14279 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14281         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
14282         Set type attribute correctly. Set predicable_short_it attribute.
14283         (cmpsi_shiftsi): Remove %? from output template.
14285 2013-09-13  Richard Biener  <rguenther@suse.de>
14287         * tree-loop-distribution.c (struct rdg_component,
14288         rdg_defs_used_in_other_loops_p, free_rdg_components,
14289         rdg_build_components): Remove.
14290         (stmts_from_loop): Do not record virtual PHIs.
14291         (generate_loops_for_partition): Skip virtual PHIs.
14292         (build_rdg_partition_for_component): Rename to ...
14293         (build_rdg_partition_for_vertex): ... this and adjust.
14294         (rdg_build_partitions): Take a vector of starting vertices
14295         instead of components.  Remove unnecessary leftover handling.
14296         (ldist_gen): Do not build components or record other stores.
14297         (distribute_loop): Do not distribute loops containing stmts
14298         with side-effects.
14300 2013-09-13  Christian Bruel  <christian.bruel@st.com>
14302         PR target/58314
14303         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
14305 2013-09-13  Kai Tietz  <ktietz@redhat.com>
14307         * config.gcc: Separate cases for mingw and cygwin targets,
14308         and add 64-bit cygwin target case.
14310         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
14311         dll-export inline-functions.
14312         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
14314 2013-09-13  Jeff Law  <law@redhat.com>
14316         PR middle-end/58387
14317         Revert:
14318         2013-09-06  Jeff Law  <law@redhat.com>
14320         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14321         edge implied equivalences into successor phis.
14323 2013-09-12  DJ Delorie  <dj@redhat.com>
14325         * config/rl78/rl78-virt.md: Change from | to \; for asm line
14326         separators.
14328 2013-09-12  Brooks Moses  <bmoses@google.com>
14330         PR driver/42955
14331         * Makefile.in: Do not install driver binaries in $(target)/bin.
14333 2013-09-12  DJ Delorie  <dj@redhat.com>
14335         * config/rl78/rl78.opt (mrelax): New.
14336         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
14337         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
14339         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
14340         between SP and FP.
14341         (rl78_expand_epilogue): Likewise.
14343 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
14345         PR middle-end/58335
14346         * lra-eliminations.c (remove_reg_equal_offset_note): New.
14347         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
14348         pointer elimination with using remove_reg_equal_offset_note.
14350 2013-09-12  DJ Delorie  <dj@redhat.com>
14352         * config/msp430/: New port.
14353         * config.gcc (msp430): Added.
14354         * doc/invoke.texi: Document MSP430 options.
14355         * doc/install.texi: Document msp430-elf
14356         * doc/md.texi: Document msp430-elf
14357         * doc/contrib.texi: Document msp430-elf
14359         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
14360         PSImode.
14362 2013-09-12  Martin Jambor  <mjambor@suse.cz>
14364         PR ipa/58389
14365         * ipa-prop.c (remove_described_reference): Give up if the edge in the
14366         reference descriptor is NULL.
14367         (ipa_edge_removal_hook): If owning a reference descriptor, set its
14368         edge to NULL.
14370 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
14372         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
14373         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
14374         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
14375         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
14376         make_temp_ssa_name): move to tree-ssanames.h
14377         * tree-ssa-alias.h: Move prototype.
14378         * tree-ssa.h: Include tree-ssanames.h.
14379         * tree-ssanames.c (FREE_SSANAMES): Move to here.
14380         * tree-ssanames.h: New.  Move items from tree-flow*.h
14381         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
14383 2013-09-12  Richard Biener  <rguenther@suse.de>
14385         PR tree-optimization/58404
14386         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
14387         propagate non-invariant addresses into dereferences wrapped
14388         in component references.
14390 2013-09-12  Richard Biener  <rguenther@suse.de>
14392         PR tree-optimization/58402
14393         * passes.def: Move pass_late_warn_uninitialized later.
14395 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
14397         * tree-ssa.h: New.  Move content from tree-flow.h and
14398         tree-flow-inline.h.
14399         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
14400         Move prototypes belonging to tree-ssa.c.
14401         * tree-flow-inline.h (redirect_edge_var_map_def,
14402         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
14403         tree-ssa.h.
14404         * gimple.h: Adjust prototypes.
14405         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
14406         to...
14407         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
14408         * tree.h: Move prototype to tree-ssa.h.
14409         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
14410         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
14411         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
14412         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
14413         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
14414         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
14415         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
14416         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
14417         graphite-blocking.c, graphite-clast-to-gimple.c,
14418         graphite-dependences.c, graphite-interchange.c,
14419         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
14420         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
14421         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
14422         ipa-reference.c, ipa-split.c, ipa-utils.c,
14423         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
14424         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
14425         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
14426         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
14427         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
14428         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
14429         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
14430         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
14431         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
14432         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
14433         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
14434         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
14435         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
14436         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
14437         value-prof.c, var-tracking.c,
14438         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
14440 2013-09-12  Richard Biener  <rguenther@suse.de>
14442         PR tree-optimization/58396
14443         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
14444         (build_rdg): Take a loop-nest parameter, fix memleaks.
14445         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
14447 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
14449         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
14450         for SLM.
14452 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
14454         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
14455         The FMA instruction names should have a 'v' prefix.
14457 2013-09-12  Richard Biener  <rguenther@suse.de>
14459         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
14460         (dot_rdg): Use popen instead of system in optional code.
14461         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
14462         (already_processed_vertex_p): Adjust.
14463         (has_anti_or_output_dependence, predecessor_has_mem_write,
14464         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
14465         rdg_flag_uses): Remove.
14466         (rdg_flag_vertex): Simplify.
14467         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
14468         remove recursion.
14469         (build_rdg_partition_for_component): Process the first vertex
14470         of a component only.
14471         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
14473 2013-09-12  Alan Modra  <amodra@gmail.com>
14475         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
14477 2013-09-11  DJ Delorie  <dj@redhat.com>
14478             Nick Clifton  <nickc@redhat.com>
14480         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
14481         (rl78_stack_based_mem): New.
14482         * config/rl78/constraints.md (Iv08): New.
14483         (Iv16): New.
14484         (Iv24): New.
14485         (Is09): New.
14486         (Is17): New.
14487         (Is25): New.
14488         (ISsi): New.
14489         (IShi): New.
14490         (ISqi): New.
14491         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
14492         (movhi): Likewise.
14493         (movsi): Change from expand to insn-and-split.
14494         (ashrsi3): Clobber AX.
14495         (lshrsi3): New.
14496         (ashlsi3): New.
14497         (cbranchsi4): New.
14498         * config/rl78/rl78.md (CC_REG): Fix.
14499         (addsi3): Allow memory and immediate operands.
14500         (addsi3_internal): Split into...
14501         (addsi3_internal_virt): ...new, and ...
14502         (addsi3_internal_real): ...new.
14503         (subsi): New.
14504         (subsi3_internal_virt): New.
14505         (subsi3_internal_real): New.
14506         (mulsi3): Add memory operand.
14507         (mulsi3_rl78): Likewise.
14508         (mulsi3_g13): Likewise.
14509         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
14510         (cbranchqi4_real): Add more constraint options.
14511         (cbranchhi4_real): Expand pattern.
14512         (cbranchhi4_real_signed): New.
14513         (cbranchhi4_real_inverted): New.
14514         (cbranchsi4_real_lt): New.
14515         (cbranchsi4_real_ge): New.
14516         (cbranchsi4_real_signed): New.
14517         (cbranchsi4_real): New.
14518         (peephole2): New.
14519         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
14520         constant shifts.
14521         (lshrsi3_virt): Likewise.
14522         (ashlsi3_virt): Likewise.
14523         (cbranchqi4_virt_signed): New.
14524         (cbranchhi4_virt_signed): New.
14525         (cbranchsi4_virt): New.
14526         * config/rl78/rl78.c: Whitespace fixes throughout.
14527         (move_elim_pass): New.
14528         (pass_data_rl78_move_elim): New.
14529         (pass_rl78_move_elim): New.
14530         (make_pass_rl78_move_elim): New.
14531         (rl78_devirt_info): Run devirt earlier.
14532         (rl78_move_elim_info): New.
14533         (rl78_asm_file_start): Register it.
14534         (rl78_split_movsi): New.
14535         (rl78_as_legitimate_address): Allow virtual base registers when
14536         appropriate.
14537         (rl78_addr_space_convert): Remove spurious debug stuff.
14538         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
14539         (rl78_print_operand): More cases for not printing '#'.
14540         (rl78_expand_compare): Remove most of the logic.
14541         (content_memory): New.
14542         (clear_content_memory): New.
14543         (get_content_index): New.
14544         (get_content_name): New.
14545         (display_content_memory): New.
14546         (update_content): New.
14547         (record_content): New.
14548         (already_contains): New.
14549         (insn_ok_now): Re-recog insns with virtual registers.
14550         (add_postponed_content_update): New.
14551         (process_postponed_content_update): New.
14552         (gen_and_emit_move): New.
14553         (transcode_memory_rtx): Record new location content.
14554         Use gen_and_emit_move.
14555         (force_into_acc): New.
14556         (move_to_acc): Use gen_and_emit_move.
14557         (move_from_acc): Likewise.
14558         (move_acc_to_reg): Likewise.
14559         (move_to_x): Likewise.
14560         (move_to_hl): Likewise.
14561         (move_to_de): Likewise.
14562         (rl78_alloc_physical_registers_op1): Record location content.
14563         (has_constraint): New.
14564         (rl78_alloc_physical_registers_op2): Record location content.
14565         Optimize use of HL.
14566         (rl78_alloc_physical_registers_ro1): Likewise.
14567         (rl78_alloc_physical_registers_cmp): Likewise.
14568         (rl78_alloc_physical_registers_umul): Likewise.
14569         (rl78_alloc_address_registers_macax): New.
14570         (rl78_alloc_physical_registers): Initialize and set location
14571         content memory as needed.
14572         (rl78_reorg): Make sure split2 is called.
14573         (rl78_rtx_costs): New.
14575 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
14577         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
14578         for (not (neg ...)) and (neg (not ...)) cases.
14580 2013-09-11  Richard Biener  <rguenther@suse.de>
14582         PR middle-end/58377
14583         * passes.def: Split critical edges before late uninit warning passes.
14584         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
14586 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
14588         PR tree-optimization/58385
14589         * fold-const.c (build_range_check): If both low and high are NULL,
14590         use omit_one_operand_loc to preserve exp side-effects.
14592 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14594         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
14596 2013-09-11  Richard Biener  <rguenther@suse.de>
14598         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
14599         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
14600         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
14601         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
14602         stmts_from_loop, known_dependences_p, build_empty_rdg,
14603         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
14604         * tree-loop-distribution.c: ... here.
14605         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
14606         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
14607         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
14608         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
14609         * tree-loop-distribution.c: ... here.
14610         * tree-loop-distribution.c: Include gimple-pretty-print.h.
14611         (struct partition_s): Add loops member.
14612         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
14613         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
14614         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
14616 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14617             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14618             Sergey Lega  <sergey.s.lega@intel.com>
14619             Anna Tikhonova  <anna.tikhonova@intel.com>
14620             Ilya Tocar  <ilya.tocar@intel.com>
14621             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14622             Ilya Verbin  <ilya.verbin@intel.com>
14623             Kirill Yukhin  <kirill.yukhin@intel.com>
14624             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14626         * config/i386/constraints.md (k): New.
14627         (Yk): Ditto.
14628         * config/i386/i386.c (const regclass_map): Add new mask registers.
14629         (dbx_register_map): Ditto.
14630         (dbx64_register_map): Ditto.
14631         (svr4_dbx_register_map): Ditto.
14632         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
14633         disabled.
14634         (ix86_preferred_reload_class): Disable constants for mask registers.
14635         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
14636         (ix86_hard_regno_mode_ok): Support new mask registers.
14637         (x86_order_regs_for_local_alloc): Ditto.
14638         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
14639         (FIXED_REGISTERS): Add new mask registers.
14640         (CALL_USED_REGISTERS): Ditto.
14641         (REG_ALLOC_ORDER): Ditto.
14642         (VALID_MASK_REG_MODE): New.
14643         (FIRST_MASK_REG): Ditto.
14644         (LAST_MASK_REG): Ditto.
14645         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
14646         (MAYBE_MASK_CLASS_P): New.
14647         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
14648         (REG_CLASS_CONTENTS): Ditto.
14649         (MASK_REGNO_P): New.
14650         (ANY_MASK_REG_P): Ditto.
14651         (HI_REGISTER_NAMES): Add new mask registers.
14652         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
14653         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
14654         mask registers.
14655         (attribute "type"): Add mskmov, msklog.
14656         (attribute "length_immediate"): Support them.
14657         (attribute "memory"): Ditto.
14658         (attribute "prefix_0f"): Ditto.
14659         (*movhi_internal): Support new mask registers.
14660         (*movqi_internal): Ditto.
14661         (define_split): Split out clobber pattern is a logic
14662         insn on mask registers.
14663         (*k<logic><mode>): New.
14664         (*andhi_1): Extend to support mask regs.
14665         (*andqi_1): Extend to support mask regs.
14666         (kandn<mode>): New.
14667         (define_split): Split and-not to and and not if operands
14668         are not mask regs.
14669         (*<code><mode>_1): Separate HI mode to new pattern...
14670         (*<code>hi_1): This.
14671         (*<code>qi_1): Extend to support mask regs.
14672         (kxnor<mode>): New.
14673         (kortestzhi): Ditto.
14674         (kortestchi): Ditto.
14675         (kunpckhi): Ditto.
14676         (*one_cmpl<mode>2_1): Remove HImode and handle it...
14677         (*one_cmplhi2_1): ...Here, now with mask registers support.
14678         (*one_cmplqi2_1): Support new mask registers.
14679         (HI/QImode arithmetics splitter): Don't split if mask registers
14680         are used.
14681         (HI/QImode not splitter): Ditto.
14682         * config/i386/predicated.md (mask_reg_operand): New.
14683         (general_reg_operand): Ditto.
14685 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14687         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
14688         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
14690 2013-09-10  Jeff Law  <law@redhat.com>
14692         PR tree-optimization/58380
14693         * tree-ssa-threadupdate.c (thread_block): Recognize another case
14694         of threading through a buried loop header.
14696         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
14697         return value for single successor case.
14699 2013-09-10  Jan Hubicka  <jh@suse.cz>
14701         * ipa-devirt.c (ipa_devirt): Enable with LTO.
14703 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
14705         PR target/58361
14706         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
14707         support conditional execution.
14708         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
14710 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
14712         * lra.c (lra): Clear lra_optional_reload_pseudos before every
14713         constraint pass.
14714         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
14715         Check destination too to check move insn.
14716         (undo_optional_reloads): Add check that the original peudo did not
14717         changed its allocation and the optional reload was inherited on last
14718         inheritance pass.  Break loop after deciding to keep optional reload.
14719         (lra_undo_inheritance): Add check that inherited pseudo still in
14720         memory.
14722 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
14724         * config/aarch64/aarch64.md (generic_sched): New.
14725         * config/aarch64/aarch64-generic.md (load): Make conditional
14726         on generic_sched attribute.
14727         (nonload): Likewise.
14729 2013-09-10  Jan Hubicka  <jh@suse.cz>
14731         * lto-cgraph.c: Include ipa-utils.h.
14732         (compute_ltrans_boundary): Also add possible targets into the boundary.
14734 2013-09-10  Jan Hubicka  <jh@suse.cz>
14736         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
14737         VAR_DECL of vtable rather than full expression.
14739 2013-09-10  Jan Hubicka  <jh@suse.cz>
14740             Paolo Carlini  <paolo.carlini@oracle.com>
14742         * cgraphunit.c (analyze_functions): Save input_location, set it
14743         to UNKNOWN_LOCATION and restore it at the end.
14745 2013-09-10  Martin Jambor  <mjambor@suse.cz>
14747         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
14748         represented by a thunk.
14750 2013-09-10  Jeff Law  <law@redhat.com>
14752         PR tree-optimization/58343
14753         * tree-ssa-threadupdate.c (thread_block): Identify and disable
14754         jump threading requests through loop headers buried in the middle
14755         of a jump threading path.
14757         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
14758         in return value/type.
14760 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
14762         PR rtl-optimization/58365
14763         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
14764         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
14765         it differs.
14767 2013-09-10  Richard Biener  <rguenther@suse.de>
14769         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
14770         * tree-data-ref.c (create_rdg_vertices): Collect all data
14771         references, signal failure to the caller, use data-ref API.
14772         (build_rdg): Compute data references only once.  Maintain lifetime
14773         of data references and data dependences from within RDG.
14774         (free_rdg): Free dependence relations.
14775         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
14776         inventing extra dependences.
14777         (distribute_loop): Update for RDG API changes.
14779 2013-09-10  Kai Tietz  <ktietz@redhat.com>
14781         * doc/invoke.texi (fms-extensions): Document changed
14782         behavior for ms-abi targets.
14783         * config/i386/i386.c (ix86_option_override_internal):
14784         Set default value of option -fms-extension for ms-abi targets.
14786 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14788         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
14790 2013-09-10  Alan Modra  <amodra@gmail.com>
14792         PR target/58330
14793         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
14795 2013-09-10  Alan Modra  <amodra@gmail.com>
14797         * config/rs6000/predicates.md (add_cint_operand): New.
14798         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
14799         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
14800         using add_cint_operand.
14801         (largetoc_high_plus_aix): Likewise.
14803 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
14805         PR tree-optimization/58364
14806         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
14807         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
14808         the current range can't be an unconditional true or false.
14810 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
14812         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
14814 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
14816         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
14818 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
14820         PR c++/43452
14821         * doc/invoke.texi (-Wdelete-incomplete): Document it.
14823 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
14825         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
14826         NO_REGS for immediate that can't be moved directly into FP_REGS.
14828 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14830         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
14831         comparison with negated operand.
14832         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
14833         RTL form.
14835 2013-09-09  Richard Biener  <rguenther@suse.de>
14837         PR middle-end/58326
14838         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
14839         of a subloop record all its block as affecting loop-closed SSA form.
14841 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14843         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
14844         of an rtx/bitpos pair.
14845         (store_fixed_bit_field): Update accordingly.
14847 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14849         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
14850         GEN_INT.
14851         * builtins.c (expand_errno_check): Likewise.
14852         * dwarf2cfi.c (init_return_column_size): Likewise.
14853         * except.c (sjlj_mark_call_sites): Likewise.
14854         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
14855         * lra-constraints.c (emit_inc): Likewise.
14856         * ree.c (combine_set_extension): Likewise.
14857         * regmove.c (fixup_match_2): Likewise.
14858         * reload1.c (inc_for_reload): Likewise.
14860 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14862         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
14863         (force_to_mode, simplify_shift_const_1, simplify_comparison):
14864         Use gen_int_mode with the mode of the associated simplify_* call.
14865         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
14866         * expmed.c (expand_shift_1): Likewise.
14867         * function.c (instantiate_virtual_regs_in_insn): Likewise.
14868         * loop-iv.c (iv_number_of_iterations): Likewise.
14869         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
14870         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14872 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14874         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
14875         of the associated expand_* call.
14876         (asan_emit_stack_protection): Likewise.
14877         * builtins.c (round_trampoline_addr): Likewise.
14878         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
14879         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
14880         (emit_store_flag): Likewise.
14881         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
14882         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
14883         Likewise.
14884         * function.c (instantiate_virtual_regs_in_insn): Likewise.
14885         * ifcvt.c (noce_try_store_flag_constants): Likewise.
14886         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
14887         * modulo-sched.c (generate_prolog_epilog): Likewise.
14888         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
14889         (expand_ctz, expand_ffs, expand_unop): Likewise.
14891 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14893         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
14894         of the associated gen_rtx_* call.
14895         * caller-save.c (init_caller_save): Likewise.
14896         * combine.c (find_split_point, make_extraction): Likewise.
14897         (make_compound_operation): Likewise.
14898         * dwarf2out.c (mem_loc_descriptor): Likewise.
14899         * explow.c (plus_constant, probe_stack_range): Likewise.
14900         * expmed.c (expand_mult_const): Likewise.
14901         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
14902         * reload1.c (init_reload): Likewise.
14903         * valtrack.c (cleanup_auto_inc_dec): Likewise.
14904         * var-tracking.c (adjust_mems): Likewise.
14905         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
14906         rather than gen_rtx_fmt_ee.
14908 2013-09-09  Jan Hubicka  <jh@suse.cz>
14910         PR middle-end/58294
14911         * value-prof.c (gimple_ic): Copy also abnormal edges.
14913 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14915         * asan.c (asan_shadow_cst): Use gen_int_mode.
14917 2013-09-08  Jan Hubicka  <jh@suse.cz>
14919         * ipa-profile.c: Add toplevel comment.
14920         (ipa_propagate_frequency_1): Be more conservative when profile is read.
14921         (contains_hot_call_p): New function.
14922         (ipa_propagate_frequency): Set frequencies based on counts when
14923         profile is read.
14924         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
14925         profile; do not tamper with profile after inlining if it is read.
14927 2013-09-08  Jan Hubicka  <jh@suse.cz>
14929         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
14930         speculative edges.
14932 2013-09-08  Jan Hubicka  <jh@suse.cz>
14934         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
14935         summary generation.
14937 2013-09-08  Jeff Law  <law@redhat.com>
14939         PR bootstrap/58340
14940         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
14941         of 'found'.
14943 2013-09-08  Andi Kleen  <ak@linux.intel.com>
14945         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
14947 2013-09-08  Jan Hubicka  <jh@suse.cz>
14949         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
14951 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
14953         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
14954         for non-debug insns.
14955         * lra.c (new_insn_reg): Take the containing insn as a parameter.
14956         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
14957         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
14958         accordingly.
14960 2013-09-08  Jan Hubicka  <jh@suse.cz>
14962         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
14963         targets and devirtualize to BUILT_IN_UNREACHABLE.
14964         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
14965         * ipa.c (walk_polymorphic_call_targets): New function.
14966         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
14967         functions; use the new timevar.
14968         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
14969         was removed from the program.
14970         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
14971         not consider it in the walk when its vtable is dead.
14972         (possible_polymorphic_call_targets_1): Pass anonymous flag to
14973         record_binfo.
14974         (devirt_variable_node_removal_hook): New function.
14975         (possible_polymorphic_call_targets): Also register
14976         devirt_variable_node_removal_hook.
14977         (ipa_devirt): Do not do non-speculative devirtualization.
14978         (gate_ipa_devirt): One execute if devirtualizing speculatively.
14980 2013-09-08  Jan Hubicka  <jh@suse.cz>
14982         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
14983         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
14984         varpool_remove_variable_insertion_hook): Declare.
14985         * varpool.c (varpool_node_hook_list): New structure.
14986         (first_varpool_node_removal_hook,
14987         first_varpool_variable_insertion_hook): New variables.
14988         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
14989         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
14990         varpool_remove_variable_insertion_hook,
14991         varpool_call_variable_insertion_hooks): New functions.
14992         (varpool_remove_node): Use it.
14994 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
14996         PR c++/54941
14997         * diagnostic.c (diagnostic_build_prefix): When s.file is
14998         "<built-in>" don't output line and column numbers.
15000 2013-09-06  Jan Hubicka  <jh@suse.cz>
15002         * cgraphunit.c (expand_thunk): Get body before touching arguments.
15003         * lto-streamer-out.c: Stream thunks, too.
15004         * lto-streamer-in.c (input_function): Pop cfun here
15005         (lto_read_body): Instead of here.
15007 2013-09-06  Caroline Tice  <cmtice@google.com>
15009         * doc/install.texi: Add documentation for the --enable-vtable-verify
15010         and the --disable-libvtv configure options.
15012 2013-09-06  Jeff Law  <law@redhat.com>
15014         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15015         edge implied equivalences into successor phis.
15017 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
15019         * resource.c (mark_referenced_resources): Handle COND_EXEC.
15021 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
15023         * resource.c (mark_target_live_regs): Compute resources taking
15024         into account if a call is predicated or not.
15026 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
15028         * toplev.c (output_stack_usage): Be prepared for suffixes created by
15029         the compiler in the function names.
15031 2013-09-06  Jan Hubicka  <jh@suse.cz>
15033         PR middle-end/58094
15034         * ipa-inline.c (has_caller_p): New function.
15035         (want_inline_function_to_all_callers_p): Use it.
15036         (sum_callers, inline_to_all_callers): Break out from ...
15037         (ipa_inline): ... here.
15039 2013-09-06  Jan Hubicka  <jh@suse.cz>
15041         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
15042         only when AVX is enabled.
15044 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15046         * config/aarch64/aarch64.md
15047         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
15048         is fpsimd_<load/store>2.
15049         (load_pair<mode>): Likewise.
15050         (store_pair<mode>): Likewise.
15052 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15054         * config/arm/types.md (type): Add "mrs" type.
15055         * config/aarch64/aarch64.md
15056         (aarch64_load_tp_hard): Make type "mrs".
15057         * config/arm/arm.md
15058         (load_tp_hard): Make type "mrs".
15059         * config/arm/cortex-a15.md: Update with new attributes.
15060         * config/arm/cortex-a5.md: Update with new attributes.
15061         * config/arm/cortex-a53.md: Update with new attributes.
15062         * config/arm/cortex-a7.md: Update with new attributes.
15063         * config/arm/cortex-a8.md: Update with new attributes.
15064         * config/arm/cortex-a9.md: Update with new attributes.
15065         * config/arm/cortex-m4.md: Update with new attributes.
15066         * config/arm/cortex-r4.md: Update with new attributes.
15067         * config/arm/fa526.md: Update with new attributes.
15068         * config/arm/fa606te.md: Update with new attributes.
15069         * config/arm/fa626te.md: Update with new attributes.
15070         * config/arm/fa726te.md: Update with new attributes.
15072 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15074         * config/aarch64/aarch64.md
15075         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
15076         (*movtf_aarch64): Likewise.
15077         * config/arm/arm.md
15078         (thumb1_movdi_insn): Use "multiple" for type where more than one
15079         instruction is used for a move.
15080         (*arm32_movhf): Likewise.
15081         (*thumb_movdf_insn): Likewise.
15083 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15085         * config/arm/types.md (type): Rename fcpys to fmov.
15086         * config/arm/vfp.md
15087         (*arm_movsi_vfp): Rename type fcpys as fmov.
15088         (*thumb2_movsi_vfp): Likewise
15089         (*movhf_vfp_neon): Likewise
15090         (*movhf_vfp): Likewise
15091         (*movsf_vfp): Likewise
15092         (*thumb2_movsf_vfp): Likewise
15093         (*movsfcc_vfp): Likewise
15094         (*thumb2_movsfcc_vfp): Likewise
15095         * config/aarch64/aarch64-simd.md
15096         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
15097         * config/aarch64/aarch64.md
15098         (*movsi_aarch64): Replace type mov_reg with fmovs.
15099         (*movdi_aarch64): Likewise
15100         (*movsf_aarch64): Likewise
15101         (*movdf_aarch64): Likewise
15102         * config/arm/arm.c
15103         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
15104         * config/arm/iwmmxt.md
15105         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
15106         * config/arm/arm1020e.md: Update with new attributes.
15107         * config/arm/cortex-a15-neon.md: Update with new attributes.
15108         * config/arm/cortex-a5.md: Update with new attributes.
15109         * config/arm/cortex-a53.md: Update with new attributes.
15110         * config/arm/cortex-a7.md: Update with new attributes.
15111         * config/arm/cortex-a8-neon.md: Update with new attributes.
15112         * config/arm/cortex-a9.md: Update with new attributes.
15113         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15114         * config/arm/cortex-r4f.md: Update with new attributes.
15115         * config/arm/marvell-pj4.md: Update with new attributes.
15116         * config/arm/vfp11.md: Update with new attributes.
15118 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15120         * config/aarch64/aarch64.md
15121         (*madd<mode>): Fix type attribute.
15122         (*maddsi_uxtw): Likewise.
15123         (*msub<mode>): Likewise.
15124         (*msubsi_uxtw): Likewise.
15125         (<su_optab>maddsidi4): Likewise.
15126         (<su_optab>msubsidi4): Likewise.
15128 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15130         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
15131         * config/arm/arm.md (core_cycles): Remove fdiv.
15132         * config/arm/vfp.md:
15133         (*sqrtsf2_vfp): Update for attribute changes.
15134         (*sqrtdf2_vfp): Likewise.
15135         * config/aarch64/aarch64.md:
15136         (sqrt<mode>2): Update for attribute changes.
15137         * config/arm/arm1020e.md: Update with new attributes.
15138         * config/arm/cortex-a15-neon.md: Update with new attributes.
15139         * config/arm/cortex-a5.md: Update with new attributes.
15140         * config/arm/cortex-a53.md: Update with new attributes.
15141         * config/arm/cortex-a7.md: Update with new attributes.
15142         * config/arm/cortex-a8-neon.md: Update with new attributes.
15143         * config/arm/cortex-a9.md: Update with new attributes.
15144         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15145         * config/arm/cortex-r4f.md: Update with new attributes.
15146         * config/arm/marvell-pj4.md: Update with new attributes.
15147         * config/arm/vfp11.md: Update with new attributes.
15149 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15151         * config/arm/types.md
15152         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
15153         * config/aarch64/aarch64.md
15154         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
15155         new attributes.
15156         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
15157         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
15158         (float<GPI:mode><GPF:mode>2): Likewise.
15159         * config/arm/vfp.md
15160         (*truncsisf2_vfp): Update with new attributes.
15161         (*truncsidf2_vfp): Likewise.
15162         (fixuns_truncsfsi2): Likewise.
15163         (fixuns_truncdfsi2): Likewise.
15164         (*floatsisf2_vfp): Likewise.
15165         (*floatsidf2_vfp): Likewise.
15166         (floatunssisf2): Likewise.
15167         (floatunssidf2): Likewise.
15168         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
15169         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
15170         * config/arm/arm1020e.md: Update with new attributes.
15171         * config/arm/cortex-a15-neon.md: Update with new attributes.
15172         * config/arm/cortex-a5.md: Update with new attributes.
15173         * config/arm/cortex-a53.md: Update with new attributes.
15174         * config/arm/cortex-a7.md: Update with new attributes.
15175         * config/arm/cortex-a8-neon.md: Update with new attributes.
15176         * config/arm/cortex-a9.md: Update with new attributes.
15177         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15178         * config/arm/cortex-r4f.md: Update with new attributes.
15179         * config/arm/marvell-pj4.md: Update with new attributes.
15180         * config/arm/vfp11.md: Update with new attributes.
15182 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15184         * config/aarch64/arm_neon.h
15185         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
15186         (vqtbx<1,2,3,4><q>_s8): Likewise.
15188 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15190         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
15191         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
15192         (add<mode>3): Add type attribute.
15193         (add<mode>3): Likewise.
15194         (usadd<mode>3): Likewise.
15195         (ssadd<mode>3): Likewise.
15196         (sub<mode>3): Likewise.
15197         (sub<mode>3): Likewise.
15198         (ussub<mode>3): Likewise.
15199         (sssub<mode>3): Likewise.
15200         (ssmulsa3): Likewise.
15201         (usmulusa3): Likewise.
15202         (arm_usatsihi): Likewise.
15203         * config/arm/vfp.md
15204         (*movdi_vfp): Add types for all instructions.
15205         (*movdi_vfp_cortexa8): Likewise.
15206         (*movhf_vfp_neon): Likewise.
15207         (*movhf_vfp): Likewise.
15208         (*movdf_vfp): Likewise.
15209         (*thumb2_movdf_vfp): Likewise.
15210         (*thumb2_movdfcc_vfp): Likewise.
15211         * config/arm/arm.md: Add type attribute to all insn patterns.
15212         (*thumb1_adddi3): Add type attribute.
15213         (*arm_adddi3): Likewise.
15214         (*adddi_sesidi_di): Likewise.
15215         (*adddi_zesidi_di): Likewise.
15216         (*thumb1_addsi3): Likewise.
15217         (addsi3_compare0): Likewise.
15218         (*addsi3_compare0_scratch): Likewise.
15219         (*compare_negsi_si): Likewise.
15220         (cmpsi2_addneg): Likewise.
15221         (*addsi3_carryin_<optab>): Likewise.
15222         (*addsi3_carryin_alt2_<optab>): Likewise.
15223         (*addsi3_carryin_clobercc_<optab>): Likewise.
15224         (*subsi3_carryin): Likewise.
15225         (*subsi3_carryin_const): Likewise.
15226         (*subsi3_carryin_compare): Likewise.
15227         (*subsi3_carryin_compare_const): Likewise.
15228         (*arm_subdi3): Likewise.
15229         (*thumb_subdi3): Likewise.
15230         (*subdi_di_zesidi): Likewise.
15231         (*subdi_di_sesidi): Likewise.
15232         (*subdi_zesidi_di): Likewise.
15233         (*subdi_sesidi_di): Likewise.
15234         (*subdi_zesidi_ze): Likewise.
15235         (thumb1_subsi3_insn): Likewise.
15236         (*arm_subsi3_insn): Likewise.
15237         (*anddi3_insn): Likewise.
15238         (*anddi_zesidi_di): Likewise.
15239         (*anddi_sesdi_di): Likewise.
15240         (*ne_zeroextracts): Likewise.
15241         (*ne_zeroextracts): Likewise.
15242         (*ite_ne_zeroextr): Likewise.
15243         (*ite_ne_zeroextr): Likewise.
15244         (*anddi_notdi_di): Likewise.
15245         (*anddi_notzesidi): Likewise.
15246         (*anddi_notsesidi): Likewise.
15247         (andsi_notsi_si): Likewise.
15248         (thumb1_bicsi3): Likewise.
15249         (*iordi3_insn): Likewise.
15250         (*iordi_zesidi_di): Likewise.
15251         (*iordi_sesidi_di): Likewise.
15252         (*thumb1_iorsi3_insn): Likewise.
15253         (*xordi3_insn): Likewise.
15254         (*xordi_zesidi_di): Likewise.
15255         (*xordi_sesidi_di): Likewise.
15256         (*arm_xorsi3): Likewise.
15257         (*andsi_iorsi3_no): Likewise.
15258         (*smax_0): Likewise.
15259         (*smax_m1): Likewise.
15260         (*arm_smax_insn): Likewise.
15261         (*smin_0): Likewise.
15262         (*arm_smin_insn): Likewise.
15263         (*arm_umaxsi3): Likewise.
15264         (*arm_uminsi3): Likewise.
15265         (*minmax_arithsi): Likewise.
15266         (*minmax_arithsi_): Likewise.
15267         (*satsi_<SAT:code>): Likewise.
15268         (arm_ashldi3_1bit): Likewise.
15269         (arm_ashrdi3_1bit): Likewise.
15270         (arm_lshrdi3_1bit): Likewise.
15271         (*arm_negdi2): Likewise.
15272         (*thumb1_negdi2): Likewise.
15273         (*arm_negsi2): Likewise.
15274         (*thumb1_negsi2): Likewise.
15275         (*negdi_extendsid): Likewise.
15276         (*negdi_zero_extend): Likewise.
15277         (*arm_abssi2): Likewise.
15278         (*thumb1_abssi2): Likewise.
15279         (*arm_neg_abssi2): Likewise.
15280         (*thumb1_neg_abss): Likewise.
15281         (one_cmpldi2): Likewise.
15282         (extend<mode>di2): Likewise.
15283         (*compareqi_eq0): Likewise.
15284         (*arm_extendhisi2addsi): Likewise.
15285         (*arm_movdi): Likewise.
15286         (*thumb1_movdi_insn): Likewise.
15287         (*arm_movt): Likewise.
15288         (*thumb1_movsi_insn): Likewise.
15289         (pic_add_dot_plus_four): Likewise.
15290         (pic_add_dot_plus_eight): Likewise.
15291         (tls_load_dot_plus_eight): Likewise.
15292         (*thumb1_movhi_insn): Likewise.
15293         (*thumb1_movsf_insn): Likewise.
15294         (*movdf_soft_insn): Likewise.
15295         (*thumb_movdf_insn): Likewise.
15296         (cbranchsi4_insn): Likewise.
15297         (cbranchsi4_scratch): Likewise.
15298         (*negated_cbranchsi4): Likewise.
15299         (*tbit_cbranch): Likewise.
15300         (*tlobits_cbranch): Likewise.
15301         (*tstsi3_cbranch): Likewise.
15302         (*cbranchne_decr1): Likewise.
15303         (*addsi3_cbranch): Likewise.
15304         (*addsi3_cbranch_scratch): Likewise.
15305         (*arm_cmpdi_insn): Likewise.
15306         (*arm_cmpdi_unsig): Likewise.
15307         (*arm_cmpdi_zero): Likewise.
15308         (*thumb_cmpdi_zero): Likewise.
15309         (*deleted_compare): Likewise.
15310         (*mov_scc): Likewise.
15311         (*mov_negscc): Likewise.
15312         (*mov_notscc): Likewise.
15313         (*cstoresi_eq0_thumb1_insn): Likewise.
15314         (cstoresi_nltu_thumb1): Likewise.
15315         (cstoresi_ltu_thu): Likewise.
15316         (thumb1_addsi3_addgeu): Likewise.
15317         (*arm_jump): Likewise.
15318         (*thumb_jump): Likewise.
15319         (*check_arch2): Likewise.
15320         (arm_casesi_internal): Likewise.
15321         (thumb1_casesi_dispatch): Likewise.
15322         (*arm_indirect_jump): Likewise.
15323         (*thumb1_indirect_jump): Likewise.
15324         (nop): Likewise.
15325         (*and_scc): Likewise.
15326         (*ior_scc): Likewise.
15327         (*compare_scc): Likewise.
15328         (*cond_move): Likewise.
15329         (*cond_arith): Likewise.
15330         (*cond_sub): Likewise.
15331         (*cmp_ite0): Likewise.
15332         (*cmp_ite1): Likewise.
15333         (*cmp_and): Likewise.
15334         (*cmp_ior): Likewise.
15335         (*ior_scc_scc): Likewise.
15336         (*ior_scc_scc_cmp): Likewise.
15337         (*and_scc_scc): Likewise.
15338         (*and_scc_scc_cmp): Likewise.
15339         (*and_scc_scc_nod): Likewise.
15340         (*negscc): Likewise.
15341         (movcond_addsi): Likewise.
15342         (movcond): Likewise.
15343         (*ifcompare_plus_move): Likewise.
15344         (*if_plus_move): Likewise.
15345         (*ifcompare_move_plus): Likewise.
15346         (*if_move_plus): Likewise.
15347         (*ifcompare_arith_arith): Likewise.
15348         (*if_arith_arith): Likewise.
15349         (*ifcompare_arith_move): Likewise.
15350         (*if_arith_move): Likewise.
15351         (*ifcompare_move_arith): Likewise.
15352         (*if_move_arith): Likewise.
15353         (*ifcompare_move_not): Likewise.
15354         (*if_move_not): Likewise.
15355         (*ifcompare_not_move): Likewise.
15356         (*if_not_move): Likewise.
15357         (*ifcompare_shift_move): Likewise.
15358         (*if_shift_move): Likewise.
15359         (*ifcompare_move_shift): Likewise.
15360         (*if_move_shift): Likewise.
15361         (*ifcompare_shift_shift): Likewise.
15362         (*ifcompare_not_arith): Likewise.
15363         (*ifcompare_arith_not): Likewise.
15364         (*if_arith_not): Likewise.
15365         (*ifcompare_neg_move): Likewise.
15366         (*if_neg_move): Likewise.
15367         (*ifcompare_move_neg): Likewise.
15368         (*if_move_neg): Likewise.
15369         (prologue_thumb1_interwork): Likewise.
15370         (*cond_move_not): Likewise.
15371         (*sign_extract_onebit): Likewise.
15372         (*not_signextract_onebit): Likewise.
15373         (stack_tie): Likewise.
15374         (align_4): Likewise.
15375         (align_8): Likewise.
15376         (consttable_end): Likewise.
15377         (consttable_1): Likewise.
15378         (consttable_2): Likewise.
15379         (consttable_4): Likewise.
15380         (consttable_8): Likewise.
15381         (consttable_16): Likewise.
15382         (*thumb1_tablejump): Likewise.
15383         (prefetch): Likewise.
15384         (force_register_use): Likewise.
15385         (thumb_eh_return): Likewise.
15386         (load_tp_hard): Likewise.
15387         (load_tp_soft): Likewise.
15388         (tlscall): Likewise.
15389         (*arm_movtas_ze): Likewise.
15390         (*arm_rev): Likewise.
15391         (*arm_revsh): Likewise.
15392         (*arm_rev16): Likewise.
15393         * config/arm/thumb2.md
15394         (*thumb2_smaxsi3): Likewise.
15395         (*thumb2_sminsi3): Likewise.
15396         (*thumb32_umaxsi3): Likewise.
15397         (*thumb2_uminsi3): Likewise.
15398         (*thumb2_negdi2): Likewise.
15399         (*thumb2_abssi2): Likewise.
15400         (*thumb2_neg_abss): Likewise.
15401         (*thumb2_movsi_insn): Likewise.
15402         (tls_load_dot_plus_four): Likewise.
15403         (*thumb2_movhi_insn): Likewise.
15404         (*thumb2_mov_scc): Likewise.
15405         (*thumb2_mov_negs): Likewise.
15406         (*thumb2_mov_negs): Likewise.
15407         (*thumb2_mov_nots): Likewise.
15408         (*thumb2_mov_nots): Likewise.
15409         (*thumb2_movsicc_): Likewise.
15410         (*thumb2_movsfcc_soft_insn): Likewise.
15411         (*thumb2_indirect_jump): Likewise.
15412         (*thumb2_and_scc): Likewise.
15413         (*thumb2_ior_scc): Likewise.
15414         (*thumb2_ior_scc_strict_it): Likewise.
15415         (*thumb2_cond_move): Likewise.
15416         (*thumb2_cond_arith): Likewise.
15417         (*thumb2_cond_ari): Likewise.
15418         (*thumb2_cond_sub): Likewise.
15419         (*thumb2_negscc): Likewise.
15420         (*thumb2_movcond): Likewise.
15421         (thumb2_casesi_internal): Likewise.
15422         (thumb2_casesi_internal_pic): Likewise.
15423         (*thumb2_alusi3_short): Likewise.
15424         (*thumb2_mov<mode>_shortim): Likewise.
15425         (*thumb2_addsi_short): Likewise.
15426         (*thumb2_subsi_short): Likewise.
15427         (thumb2_addsi3_compare0): Likewise.
15428         (*thumb2_cbz): Likewise.
15429         (*thumb2_cbnz): Likewise.
15430         (*thumb2_one_cmplsi2_short): Likewise.
15431         (*thumb2_negsi2_short): Likewise.
15432         (*orsi_notsi_si): Likewise.
15433         * config/arm/arm1020e.md: Update with new attributes.
15434         * config/arm/arm1026ejs.md: Update with new attributes.
15435         * config/arm/arm1136jfs.md: Update with new attributes.
15436         * config/arm/arm926ejs.md: Update with new attributes.
15437         * config/arm/cortex-a15.md: Update with new attributes.
15438         * config/arm/cortex-a5.md: Update with new attributes.
15439         * config/arm/cortex-a53.md: Update with new attributes.
15440         * config/arm/cortex-a7.md: Update with new attributes.
15441         * config/arm/cortex-a8.md: Update with new attributes.
15442         * config/arm/cortex-a9.md: Update with new attributes.
15443         * config/arm/cortex-m4.md: Update with new attributes.
15444         * config/arm/cortex-r4.md: Update with new attributes.
15445         * config/arm/fa526.md: Update with new attributes.
15446         * config/arm/fa606te.md: Update with new attributes.
15447         * config/arm/fa626te.md: Update with new attributes.
15448         * config/arm/fa726te.md: Update with new attributes.
15450 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15452         * config/aarch64/aarch64-simd.md
15453         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
15454         <vwx> iterator to ensure correct register choice.
15455         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
15456         (aarch64_sqdmull_n<mode>): Likewise.
15457         (aarch64_sqdmull2_n<mode>_internal): Likewise.
15458         * config/aarch64/arm_neon.h
15459         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
15460         (vml<as><q>_n_<su>16): Likewise.
15461         (vml<as>l_high_lane<q>_<su>16): Likewise.
15462         (vml<as>l_high_n_<su>16): Likewise.
15463         (vml<as>l_lane<q>_<su>16): Likewise.
15464         (vml<as>l_n_<su>16): Likewise.
15465         (vmul<q>_lane<q>_<su>16): Likewise.
15466         (vmul<q>_n_<su>16): Likewise.
15467         (vmull_lane<q>_<su>16): Likewise.
15468         (vmull_n_<su>16): Likewise.
15469         (vmull_high_lane<q>_<su>16): Likewise.
15470         (vmull_high_n_<su>16): Likewise.
15471         (vqrdmulh<q>_n_s16): Likewise.
15473 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
15475         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
15476         have the correct lane parameter.
15478 2013-09-06  Richard Biener <rguenther@suse.de>
15480         * cfganal.c (control_dependences::~control_dependences):
15481         Properly free all of the vector.
15483 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
15485         PR target/58269
15486         * config/i386/i386.c (ix86_conditional_register_usage):
15487         Proper initialize extended SSE registers.
15489 2013-09-06  Jan Hubicka  <jh@suse.cz>
15491         PR tree-optimization/58311
15492         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
15494 2013-09-06  Jan Hubicka  <jh@suse.cz>
15496         * Makefile.in (tree-sra.o): Update dependencies.
15497         * tree-sra.c: Include ipa-utils.h
15498         (scan_function): Use recursive_call_p.
15499         (has_caller_p): New function.
15500         (cgraph_for_node_and_aliases): Count also callers of aliases.
15502 2013-09-06  Jan Hubicka  <jh@suse.cz>
15504         PR middle-end/58094
15505         * cgraph.h (symtab_semantically_equivalent_p): Declare.
15506         * tree-tailcall.c: Include ipa-utils.h.
15507         (find_tail_calls): Use it.
15508         * ipa-pure-const.c (check_call): Likewise.
15509         * ipa-utils.c (recursive_call_p): New function.
15510         * ipa-utils.h (recursive_call_p): Dclare.
15511         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
15512         (symtab_semantically_equivalent_p): New function.
15513         * Makefile.in (tree-tailcall.o): Update dependencies.
15515 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
15517         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
15518         non-inlinable part.
15520 2013-09-06  Richard Biener  <rguenther@suse.de>
15522         * lto-streamer.h (lto_global_var_decls): Remove.
15523         * Makefile.in (OBJS): Remove lto-symtab.o.
15524         (lto-symtab.o): Remove.
15525         (GTFILES): Remove lto-symtab.c
15526         * lto-symtab.c: Move to lto/
15528 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15530         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
15531         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
15532         (UNSPEC_FPINT_RINT): New constant definitions.
15533         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
15534         definition with 2 attributes.
15535         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
15536         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
15537         definitions.
15539 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15541         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
15542         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
15543         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
15544         attribute to "z196_alone".
15545         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
15546         "zEC12_simple".
15548 2013-09-06  Richard Biener  <rguenther@suse.de>
15550         * basic-block.h (class control_dependences): New.
15551         * tree-ssa-dce.c (control_dependence_map): Remove.
15552         (cd): New global.
15553         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
15554         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
15555         find_pdom, find_control_dependence, find_all_control_dependences):
15556         Move to cfganal.c.
15557         (mark_control_dependent_edges_necessary,
15558         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
15559         tree_dce_done, perform_tree_ssa_dce): Adjust.
15560         * cfganal.c (set_control_dependence_map_bit,
15561         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
15562         find_all_control_dependences): Move from tree-ssa-dce.c and
15563         implement as methods of control_dependences class.
15564         (control_dependences::control_dependences): New.
15565         (control_dependences::~control_dependences): Likewise.
15566         (control_dependences::get_edges_dependent_on): Likewise.
15567         (control_dependences::get_edge): Likewise.
15569 2013-09-04  Jan Hubicka  <jh@suse.cz>
15571         * tree.c (types_same_for_odr): Drop overactive check.
15572         * ipa-devirt.c (hash_type_name): Likewise.
15574 2013-09-04  Jan Hubicka  <jh@suse.cz>
15576         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
15577         (analyze_functions): ... here.
15579 2013-09-04  Jan Hubicka  <jh@suse.cz>
15581         PR middle-end/58201
15582         * cgraphunit.c (analyze_functions): Clear AUX fields
15583         after processing; initialize assembler name has.
15585 2013-09-05  Jeff Law  <law@redhat.com>
15587         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
15588         from thread_around_empty_block.  Record threading path into PATH.
15589         Recurse if threading through the initial block is successful.
15590         (thread_across_edge): Corresponding changes to slightly simplify.
15592 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
15594         * config/aarch64/aarch64.md
15595         (type): Remove frecpe, frecps, frecpx.
15596         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
15597         fix to be a TARGET_SIMD instruction.
15598         (aarch64_frecps): Remove.
15599         * config/aarch64/aarch64-simd.md
15600         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
15601         (aarch64_frecps<mode>): Handle all float/vector of float modes.
15603 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
15604             Sofiane Naci  <sofiane.naci@arm.com>
15606         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
15607         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
15608         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
15609         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
15610         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
15611         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
15612         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
15613         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
15614         into "clz, "rbit".  Rename "shift" to "shift_imm".
15615         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
15616         changes.  Update for attribute changes all occurrences of arlo_* and
15617         shift* types.
15618         * config/arm/arm-fixed.md: Update for attribute changes
15619         all occurrences of arlo_* types.
15620         * config/arm/thumb2.md: Update for attribute changes all occurrences
15621         of arlo_* types.
15622         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
15623         (cortexa7_older_only): Likewise.
15624         (cortexa7_younger):  Likewise.
15625         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
15626         (1020alu_shift_op): Likewise.
15627         (1020alu_shift_reg_op): Likewise.
15628         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
15629         (alu_shift_op): Likewise.
15630         (alu_shift_reg_op): Likewise.
15631         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
15632         (11_alu_shift_op): Likewise.
15633         (11_alu_shift_reg_op): Likewise.
15634         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
15635         (9_alu_shift_reg_op): Likewise.
15636         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
15637         attribute changes.
15638         (cortex_a15_alu_shift): Likewise.
15639         (cortex_a15_alu_shift_reg): Likewise.
15640         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
15641         attribute changes.
15642         (cortex_a5_alu_shift): Likewise.
15643         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
15644         attribute changes.
15645         (cortex_a53_alu_shift): Likewise.
15646         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
15647         attribute changes.
15648         (cortex_a7_alu_reg): Likewise.
15649         (cortex_a7_alu_shift): Likewise.
15650         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
15651         attribute changes.
15652         (cortex_a8_alu_shift): Likewise.
15653         (cortex_a8_alu_shift_reg): Likewise.
15654         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
15655         (cortex_a9_dp_shift): Likewise.
15656         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
15657         attribute changes.
15658         * config/arm/cortex-r4.md
15659         (cortex_r4_alu): Update for attribute changes.
15660         (cortex_r4_mov): Likewise.
15661         (cortex_r4_alu_shift_reg): Likewise.
15662         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
15663         (526_alu_shift_op): Likewise.
15664         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
15665         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
15666         (626te_alu_shift_op): Likewise.
15667         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
15668         (726te_alu_shift_op): Likewise.
15669         (726te_alu_shift_reg_op): Likewise.
15670         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
15671         (mp626_alu_shift_op): Likewise.
15672         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
15673         (pj4_alu_conds): Likewise.
15674         (pj4_shift): Likewise.
15675         (pj4_shift_conds): Likewise.
15676         (pj4_alu_shift): Likewise.
15677         (pj4_alu_shift_conds): Likewise.
15678         * config/aarch64/aarch64.md: Update for attribute change
15679         all occurrences of arlo_* and shift* types.
15681 2013-09-05  Mike Stump  <mikestump@comcast.net>
15683         * tree.h: Move documentation for tree_function_decl to tree-core.h
15684         with the declaration.
15686 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
15688         PR target/58139
15689         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
15690         looking for widest mode.
15692 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
15694         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
15696 2013-09-05  Richard Biener  <rguenther@suse.de>
15698         PR tree-optimization/58137
15699         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
15700         Do not create vectors of pointers.
15701         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
15702         types for the components of the vector initializer.
15703         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
15704         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
15706 2013-09-05  Martin Jambor  <mjambor@suse.cz>
15708         * ipa-prop.c (remove_described_reference): Accept missing references,
15709         return false if that hppens, otherwise return true.
15710         (cgraph_node_for_jfunc): New function.
15711         (try_decrement_rdesc_refcount): Likewise.
15712         (try_make_edge_direct_simple_call): Use them.
15713         (ipa_edge_removal_hook): Remove references from rdescs.
15714         (ipa_edge_duplication_hook): Clone rdescs and their references
15715         when the new edge has the same caller as the old one.
15716         * cgraph.c (cgraph_resolve_speculation): Remove speculative
15717         reference before removing any edges.
15719 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
15721         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
15722         initial store.
15723         * thumb2.md (thumb2_storewb_parisi): New pattern.
15725 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
15727         * config/aarch64/aarch64-option-extensions.def: Add
15728         AARCH64_OPT_EXTENSION of 'crc'.
15729         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
15730         (AARCH64_ISA_CRC): Ditto.
15731         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
15732         description of the CRC extension.
15734 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15736         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
15737         * config/rs6000/linux.h: Ditto.
15738         * alpha/linux.h: Ditto.
15739         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
15740         no_c99_libc_has_function.
15741         * config/c6x/uclinux-elf.h: Ditto.
15742         * config/lm32/uclinux-elf.h: Ditto.
15743         * config/m68k/uclinux.h: Ditto.
15744         * config/moxie/uclinux.h: Ditto.
15745         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
15746         (crisv32-*-linux*, cris-*-linux*): Ditto.
15747         * config/bfin/bfin.c: Include "tm_p.h".
15749 2013-09-05  Richard Biener  <rguenther@suse.de>
15751         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
15752         check for a definition without a basic-block.
15754 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
15755             Sofiane Naci <sofiane.naci@arm.com>
15757         * config/aarch64/aarch64.md
15758         (*movti_aarch64): Rename r_2_f and f_2_r.
15759         (*movsf_aarch64): Likewise.
15760         (*movdf_aarch64): Likewise.
15761         (*movtf_aarch64): Likewise.
15762         (aarch64_movdi_<mode>low): Likewise.
15763         (aarch64_movdi_<mode>high): Likewise.
15764         (aarch64_mov<mode>high_di): Likewise.
15765         (aarch64_mov<mode>low_di): Likewise.
15766         (aarch64_movtilow_tilow): Likewise.
15767         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
15768         values to config/arm/types.md
15769         (attribute "conds"): Update for attribute change.
15770         (anddi3_insn): Likewise.
15771         (iordi3_insn): Likewise.
15772         (xordi3_insn): Likewise.
15773         (one_cmpldi2): Likewise.
15774         * config/arm/types.md (type): Add Neon types.
15775         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
15776         use "type" attribute.
15777         (movmisalign<mode>_neon_store): Likewise.
15778         (movmisalign<mode>_neon_load): Likewise.
15779         (vec_set<mode>_internal): Likewise.
15780         (vec_setv2di_internal): Likewise.
15781         (vec_extract<mode>): Likewise.
15782         (vec_extractv2di): Likewise.
15783         (add<mode>3_neon): Likewise.
15784         (adddi3_neon): Likewise.
15785         (sub<mode>3_neon): Likewise.
15786         (subdi3_neon): Likewise.
15787         (mul<mode>3_neon): Likewise.
15788         (mul<mode>3add<mode>_neon): Likewise.
15789         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
15790         (fma<VCVTF:mode>4)): Likewise.
15791         (fma<VCVTF:mode>4_intrinsic): Likewise.
15792         (fmsub<VCVTF:mode>4)): Likewise.
15793         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
15794         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
15795         (ior<mode>3): Likewise.
15796         (and<mode>3): Likewise.
15797         (anddi3_neon): Likewise.
15798         (orn<mode>3_neon): Likewise.
15799         (orndi3_neon): Likewise.
15800         (bic<mode>3_neon): Likewise.
15801         (bicdi3_neon): Likewise.
15802         (xor<mode>3): Likewise.
15803         (one_cmpl<mode>2): Likewise.
15804         (abs<mode>2): Likewise.
15805         (neg<mode>2): Likewise.
15806         (umin<mode>3_neon): Likewise.
15807         (umax<mode>3_neon): Likewise.
15808         (smin<mode>3_neon): Likewise.
15809         (smax<mode>3_neon): Likewise.
15810         (vashl<mode>3): Likewise.
15811         (vashr<mode>3_imm): Likewise.
15812         (vlshr<mode>3_imm): Likewise.
15813         (ashl<mode>3_signed): Likewise.
15814         (ashl<mode>3_unsigned): Likewise.
15815         (neon_load_count): Likewise.
15816         (ashldi3_neon_noclobber): Likewise.
15817         (signed_shift_di3_neon): Likewise.
15818         (unsigned_shift_di3_neon): Likewise.
15819         (ashrdi3_neon_imm_noclobber): Likewise.
15820         (lshrdi3_neon_imm_noclobber): Likewise.
15821         (widen_ssum<mode>3): Likewise.
15822         (widen_usum<mode>3): Likewise.
15823         (quad_halves_<code>v4si): Likewise.
15824         (quad_halves_<code>v4sf): Likewise.
15825         (quad_halves_<code>v8hi): Likewise.
15826         (quad_halves_<code>v16qi): Likewise.
15827         (reduc_splus_v2di): Likewise.
15828         (neon_vpadd_internal<mode>): Likewise.
15829         (neon_vpsmin<mode>): Likewise.
15830         (neon_vpsmax<mode>): Likewise.
15831         (neon_vpumin<mode>): Likewise.
15832         (neon_vpumax<mode>): Likewise.
15833         (ss_add<mode>_neon): Likewise.
15834         (us_add<mode>_neon): Likewise.
15835         (ss_sub<mode>_neon): Likewise.
15836         (us_sub<mode>_neon): Likewise.
15837         (neon_vadd<mode>_unspec): Likewise.
15838         (neon_vaddl<mode>): Likewise.
15839         (neon_vaddw<mode>): Likewise.
15840         (neon_vhadd<mode>): Likewise.
15841         (neon_vqadd<mode>): Likewise.
15842         (neon_vaddhn<mode>): Likewise.
15843         (neon_vmul<mode>): Likewise.
15844         (neon_vmla<mode>): Likewise.
15845         (neon_vmlal<mode>): Likewise.
15846         (neon_vmls<mode>): Likewise.
15847         (neon_vmlsl<mode>): Likewise.
15848         (neon_vqdmulh<mode>): Likewise.
15849         (neon_vqdmlal<mode>): Likewise.
15850         (neon_vqdmlsl<mode>): Likewise.
15851         (neon_vmull<mode>): Likewise.
15852         (neon_vqdmull<mode>): Likewise.
15853         (neon_vsub<mode>_unspec): Likewise.
15854         (neon_vsubl<mode>): Likewise.
15855         (neon_vsubw<mode>): Likewise.
15856         (neon_vqsub<mode>): Likewise.
15857         (neon_vhsub<mode>): Likewise.
15858         (neon_vsubhn<mode>): Likewise.
15859         (neon_vceq<mode>): Likewise.
15860         (neon_vcge<mode>): Likewise.
15861         (neon_vcgeu<mode>): Likewise.
15862         (neon_vcgt<mode>): Likewise.
15863         (neon_vcgtu<mode>): Likewise.
15864         (neon_vcle<mode>): Likewise.
15865         (neon_vclt<mode>): Likewise.
15866         (neon_vcage<mode>): Likewise.
15867         (neon_vcagt<mode>): Likewise.
15868         (neon_vtst<mode>): Likewise.
15869         (neon_vabd<mode>): Likewise.
15870         (neon_vabdl<mode>): Likewise.
15871         (neon_vaba<mode>): Likewise.
15872         (neon_vabal<mode>): Likewise.
15873         (neon_vmax<mode>): Likewise.
15874         (neon_vmin<mode>): Likewise.
15875         (neon_vpaddl<mode>): Likewise.
15876         (neon_vpadal<mode>): Likewise.
15877         (neon_vpmax<mode>): Likewise.
15878         (neon_vpmin<mode>): Likewise.
15879         (neon_vrecps<mode>): Likewise.
15880         (neon_vrsqrts<mode>): Likewise.
15881         (neon_vqabs<mode>): Likewise.
15882         (neon_vqneg<mode>): Likewise.
15883         (neon_vcls<mode>): Likewise.
15884         (clz<mode>2): Likewise.
15885         (popcount<mode>2): Likewise.
15886         (neon_vrecpe): Likewise.
15887         (neon_vrsqrte): Likewise.
15888         (neon_vget_lane<mode>_sext_internal): Likewise.
15889         (neon_vget_lane<mode>_zext_internal): Likewise.
15890         (neon_vdup_n<mode>): Likewise.
15891         (neon_vdup_nv2di): Likewise.
15892         (neon_vdpu_lane<mode>_internal): Likewise.
15893         (neon_vswp<mode>): Likewise.
15894         (float<mode><V_cvtto>2): Likewise.
15895         (floatuns<mode><V_cvtto>2): Likewise.
15896         (fix_trunc<mode><V_cvtto>)2): Likewise
15897         (fixuns_trunc<mode><V_cvtto)2): Likewise.
15898         (neon_vcvt<mode>): Likewise.
15899         (neon_vcvtv4sfv4hf): Likewise.
15900         (neon_vcvtv4hfv4sf): Likewise.
15901         (neon_vcvt_n<mode>): Likewise.
15902         (neon_vmovn<mode>): Likewise.
15903         (neon_vqmovn<mode>): Likewise.
15904         (neon_vqmovun<mode>): Likewise.
15905         (neon_vmovl<mode>): Likewise.
15906         (neon_vmul_lane<mode>): Likewise.
15907         (neon_vmull_lane<mode>): Likewise.
15908         (neon_vqdmull_lane<mode>): Likewise.
15909         (neon_vqdmulh_lane<mode>): Likewise.
15910         (neon_vmla_lane<mode>): Likewise.
15911         (neon_vmlal_lane<mode>): Likewise.
15912         (neon_vqdmlal_lane<mode>): Likewise.
15913         (neon_vmls_lane<mode>): Likewise.
15914         (neon_vmlsl_lane<mode>): Likewise.
15915         (neon_vqdmlsl_lane<mode>): Likewise.
15916         (neon_vext<mode>): Likewise.
15917         (neon_vrev64<mode>): Likewise.
15918         (neon_vrev32<mode>): Likewise.
15919         (neon_vrev16<mode>): Likewise.
15920         (neon_vbsl<mode>_internal): Likewise.
15921         (neon_vshl<mode>): Likewise.
15922         (neon_vqshl<mode>): Likewise.
15923         (neon_vshr_n<mode>): Likewise.
15924         (neon_vshrn_n<mode>): Likewise.
15925         (neon_vqshrn_n<mode>): Likewise.
15926         (neon_vqshrun_n<mode>): Likewise.
15927         (neon_vshl_n<mode>): Likewise.
15928         (neon_vqshl_n<mode>): Likewise.
15929         (neon_vqshlu_n<mode>): Likewise.
15930         (neon_vshll_n<mode>): Likewise.
15931         (neon_vsra_n<mode>): Likewise.
15932         (neon_vsri_n<mode>): Likewise.
15933         (neon_vsli_n<mode>): Likewise.
15934         (neon_vtbl1v8qi): Likewise.
15935         (neon_vtbl2v8qi): Likewise.
15936         (neon_vtbl3v8qi): Likewise.
15937         (neon_vtbl4v8qi): Likewise.
15938         (neon_vtbx1v8qi): Likewise.
15939         (neon_vtbx2v8qi): Likewise.
15940         (neon_vtbx3v8qi): Likewise.
15941         (neon_vtbx4v8qi): Likewise.
15942         (neon_vtrn<mode>_internal): Likewise.
15943         (neon_vzip<mode>_internal): Likewise.
15944         (neon_vuzp<mode>_internal): Likewise.
15945         (neon_vld1<mode>): Likewise.
15946         (neon_vld1_lane<mode>): Likewise.
15947         (neon_vld1_dup<mode>): Likewise.
15948         (neon_vld1_dupv2di): Likewise.
15949         (neon_vst1<mode>): Likewise.
15950         (neon_vst1_lane<mode>): Likewise.
15951         (neon_vld2<mode>): Likewise.
15952         (neon_vld2_lane<mode>): Likewise.
15953         (neon_vld2_dup<mode>): Likewise.
15954         (neon_vst2<mode>): Likewise.
15955         (neon_vst2_lane<mode>): Likewise.
15956         (neon_vld3<mode>): Likewise.
15957         (neon_vld3qa<mode>): Likewise.
15958         (neon_vld3qb<mode>): Likewise.
15959         (neon_vld3_lane<mode>): Likewise.
15960         (neon_vld3_dup<mode>): Likewise.
15961         (neon_vst3<mode>): Likewise.
15962         (neon_vst3qa<mode>): Likewise.
15963         (neon_vst3qb<mode>): Likewise.
15964         (neon_vst3_lane<mode>): Likewise.
15965         (neon_vld4<mode>): Likewise.
15966         (neon_vld4qa<mode>): Likewise.
15967         (neon_vld4qb<mode>): Likewise.
15968         (neon_vld4_lane<mode>): Likewise.
15969         (neon_vld4_dup<mode>): Likewise.
15970         (neon_vst4<mode>): Likewise.
15971         (neon_vst4qa<mode>): Likewise.
15972         (neon_vst4qb<mode>): Likewise.
15973         (neon_vst4_lane<mode>): Likewise.
15974         (neon_vec_unpack<US>_lo_<mode>): Likewise.
15975         (neon_vec_unpack<US>_hi_<mode>): Likewise.
15976         (neon_vec_<US>mult_lo_<mode>): Likewise.
15977         (neon_vec_<US>mult_hi_<mode>): Likewise.
15978         (neon_vec_<US>shiftl_<mode>): Likewise.
15979         (neon_unpack<US>_<mode>): Likewise.
15980         (neon_vec_<US>mult_<mode>): Likewise.
15981         (vec_pack_trunc_<mode>): Likewise.
15982         (neon_vec_pack_trunk_<mode>): Likewise.
15983         (neon_vabd<mode>_2): Likewise.
15984         (neon_vabd<mode>_3): Likewise.
15985         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
15986         (thumb2_movsi_vfp): Likewise.
15987         (movdi_vfp): Likewise.
15988         (movdi_vfp_cortexa8): Likewise.
15989         (movhf_vfp_neon): Likewise.
15990         (movhf_vfp): Likewiwse.
15991         (movsf_vfp): Likewiwse.
15992         (thumb2_movsf_vfp): Likewiwse.
15993         (movdf_vfp): Likewise.
15994         (thumb2_movdf_vfp): Likewise.
15995         (movsfcc_vfp): Likewise.
15996         (thumb2_movsfcc_vfp): Likewise.
15997         (movdfcc_vfp): Likewise.
15998         (thumb2_movdfcc_vfp): Likewise.
15999         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
16000         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
16001         (v10_v2c): Likewise.
16002         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
16003         attribute change.
16004         (cortex_a15_neon_int_2): Likewise.
16005         (cortex_a15_neon_int_3): Likewise.
16006         (cortex_a15_neon_int_4): Likewise.
16007         (cortex_a15_neon_int_5): Likewise.
16008         (cortex_a15_neon_vqneg_vqabs): Likewise.
16009         (cortex_a15_neon_vmov): Likewise.
16010         (cortex_a15_neon_vaba): Likewise.
16011         (cortex_a15_neon_vaba_qqq): Likewise.
16012         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16013         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16014         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
16015         scalar_64_32_long_scalar): Likewise.
16016         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16017         (cortex_a15_neon_mla_qqq_8_16): Likewise.
16018         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16019         lotype_qdd_64_32_long): Likewise.
16020         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16021         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16022         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
16023         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16024         (cortex_a15_neon_shift_1): Likewise.
16025         (cortex_a15_neon_shift_2): Likewise.
16026         (cortex_a15_neon_shift_3): Likewise.
16027         (cortex_a15_neon_vshl_ddd): Likewise.
16028         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16029         (cortex_a15_neon_vsra_vrsra): Likewise.
16030         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
16031         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
16032         (cortex_a15_neon_fp_vmul_ddd): Likewise.
16033         (cortex_a15_neon_fp_vmul_qqd): Likewise.
16034         (cortex_a15_neon_fp_vmla_ddd): Likewise.
16035         (cortex_a15_neon_fp_vmla_qqq): Likewise.
16036         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
16037         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
16038         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16039         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16040         (cortex_a15_neon_bp_simple): Likewise.
16041         (cortex_a15_neon_bp_2cycle): Likewise.
16042         (cortex_a15_neon_bp_3cycle): Likewise.
16043         (cortex_a15_neon_vld1_1_2_regs): Likewise.
16044         (cortex_a15_neon_vld1_3_4_regs): Likewise.
16045         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16046         (cortex_a15_neon_vld2_4_regs): Likewise.
16047         (cortex_a15_neon_vld3_vld4): Likewise.
16048         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16049         (cortex_a15_neon_vst1_3_4_regs): Likewise.
16050         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
16051         (cortex_a15_neon_vst3_vst4): Likewise.
16052         (cortex_a15_neon_vld1_vld2_lane): Likewise.
16053         (cortex_a15_neon_vld3_vld4_lane" 10
16054         (cortex_a15_neon_vst1_vst2_lane): Likewise.
16055         (cortex_a15_neon_vst3_vst4_lane): Likewise.
16056         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
16057         (cortex_a15_neon_ldm_2): Likewise.0
16058         (cortex_a15_neon_stm_2): Likewise.
16059         (cortex_a15_neon_mcr): Likewise.
16060         (cortex_a15_neon_mcr_2_mcrr): Likewise.
16061         (cortex_a15_neon_mrc): Likewise.
16062         (cortex_a15_neon_mrrc): Likewise.
16063         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
16064         change.
16065         (cortex_a15_alu_shift): Likewise.
16066         (cortex_a15_alu_shift_reg): Likewise.
16067         (cortex_a15_mult32): Likewise.
16068         (cortex_a15_mult64): Likewise.
16069         (cortex_a15_block): Likewise.
16070         (cortex_a15_branch): Likewise.
16071         (cortex_a15_load1): Likewise.
16072         (cortex_a15_load3): Likewise.
16073         (cortex_a15_store1): Likewise.
16074         (cortex_a15_store3): Likewise.
16075         (cortex_a15_call): Likewise.
16076         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
16077         (cortex_a5_f2r): Likewise.
16078         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
16079         change.
16080         (cortex_a53_f2r): Likewise.
16081         * config/arm/cortex-a7.md
16082         (cortex_a7_branch): Update for attribute change.
16083         (cortex_a7_call): Likewise.
16084         (cortex_a7_alu_imm): Likewise.
16085         (cortex_a7_alu_reg): Likewise.
16086         (cortex_a7_alu_shift): Likewise.
16087         (cortex_a7_mul): Likewise.
16088         (cortex_a7_load1): Likewise.
16089         (cortex_a7_store1): Likewise.
16090         (cortex_a7_load2): Likewise.
16091         (cortex_a7_store2): Likewise.
16092         (cortex_a7_load3): Likewise.
16093         (cortex_a7_store3): Likewise.
16094         (cortex_a7_load4): Likewise.
16095         (cortex_a7_store4): Likewise.
16096         (cortex_a7_fpalu): Likewise.
16097         (cortex_a7_fconst): Likewise.
16098         (cortex_a7_fpmuls): Likewise.
16099         (cortex_a7_neon_mul): Likewise.
16100         (cortex_a7_fpmacs): Likewise.
16101         (cortex_a7_neon_mla: Likewise.
16102         (cortex_a7_fpmuld: Likewise.
16103         (cortex_a7_fpmacd: Likewise.
16104         (cortex_a7_fpfmad: Likewise.
16105         (cortex_a7_fdivs: Likewise.
16106         (cortex_a7_fdivd: Likewise.
16107         (cortex_a7_r2f: Likewise.
16108         (cortex_a7_f2r: Likewise.
16109         (cortex_a7_f_flags: Likewise.
16110         (cortex_a7_f_loads: Likewise.
16111         (cortex_a7_f_loadd: Likewise.
16112         (cortex_a7_f_stores: Likewise.
16113         (cortex_a7_f_stored: Likewise.
16114         (cortex_a7_neon): Likewise.
16115         * config/arm/cortex-a8-neon.md
16116         (cortex_a8_neon_mrc): Update for attribute change.
16117         (cortex_a8_neon_mrrc): Likewise.
16118         (cortex_a8_neon_int_1): Likewise.
16119         (cortex_a8_neon_int_2): Likewise.
16120         (cortex_a8_neon_int_3): Likewise.
16121         (cortex_a8_neon_int_4): Likewise.
16122         (cortex_a8_neon_int_5): Likewise.
16123         (cortex_a8_neon_vqneg_vqabs): Likewise.
16124         (cortex_a8_neon_vmov): Likewise.
16125         (cortex_a8_neon_vaba): Likewise.
16126         (cortex_a8_neon_vaba_qqq): Likewise.
16127         (cortex_a8_neon_vsma): Likewise.
16128         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16129         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16130         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16131         long_scalar): Likewise.
16132         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16133         (cortex_a8_neon_mla_qqq_8_16): Likewise.
16134         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16135         long_scalar_qdd_64_32_long): Likewise.
16136         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16137         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16138         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
16139         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16140         (cortex_a8_neon_shift_1): Likewise.
16141         (cortex_a8_neon_shift_2): Likewise.
16142         (cortex_a8_neon_shift_3): Likewise.
16143         (cortex_a8_neon_vshl_ddd): Likewise.
16144         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16145         (cortex_a8_neon_vsra_vrsra): Likewise.
16146         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
16147         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
16148         (cortex_a8_neon_fp_vsum): Likewise.
16149         (cortex_a8_neon_fp_vmul_ddd): Likewise.
16150         (cortex_a8_neon_fp_vmul_qqd): Likewise.
16151         (cortex_a8_neon_fp_vmla_ddd): Likewise.
16152         (cortex_a8_neon_fp_vmla_qqq): Likewise.
16153         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
16154         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
16155         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16156         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16157         (cortex_a8_neon_bp_simple): Likewise.
16158         (cortex_a8_neon_bp_2cycle): Likewise.
16159         (cortex_a8_neon_bp_3cycle): Likewise.
16160         (cortex_a8_neon_ldr): Likewise.
16161         (cortex_a8_neon_str): Likewise.
16162         (cortex_a8_neon_vld1_1_2_regs): Likewise.
16163         (cortex_a8_neon_vld1_3_4_regs): Likewise.
16164         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16165         (cortex_a8_neon_vld2_4_regs): Likewise.
16166         (cortex_a8_neon_vld3_vld4): Likewise.
16167         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16168         (cortex_a8_neon_vst1_3_4_regs): Likewise.
16169         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
16170         (cortex_a8_neon_vst3_vst4): Likewise.
16171         (cortex_a8_neon_vld1_vld2_lane): Likewise.
16172         (cortex_a8_neon_vld3_vld4_lane): Likewise.
16173         (cortex_a8_neon_vst1_vst2_lane): Likewise.
16174         (cortex_a8_neon_vst3_vst4_lane): Likewise.
16175         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
16176         (cortex_a8_neon_mcr): Likewise.
16177         (cortex_a8_neon_mcr_2_mcrr): Likewise.
16178         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
16179         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
16180         change.
16181         (ca9_neon_mrrc): Likewise.
16182         (cortex_a9_neon_int_1): Likewise.
16183         (cortex_a9_neon_int_2): Likewise.
16184         (cortex_a9_neon_int_3): Likewise.
16185         (cortex_a9_neon_int_4): Likewise.
16186         (cortex_a9_neon_int_5): Likewise.
16187         (cortex_a9_neon_vqneg_vqabs): Likewise.
16188         (cortex_a9_neon_vmov): Likewise.
16189         (cortex_a9_neon_vaba): Likewise.
16190         (cortex_a9_neon_vaba_qqq): Likewise.
16191         (cortex_a9_neon_vsma): Likewise.
16192         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16193         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16194         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16195         long_scalar): Likewise.
16196         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16197         (cortex_a9_neon_mla_qqq_8_16): Likewise.
16198         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16199         long_scalar_qdd_64_32_long): Likewise.
16200         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16201         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16202         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
16203         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16204         (cortex_a9_neon_shift_1): Likewise.
16205         (cortex_a9_neon_shift_2): Likewise.
16206         (cortex_a9_neon_shift_3): Likewise.
16207         (cortex_a9_neon_vshl_ddd): Likewise.
16208         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16209         (cortex_a9_neon_vsra_vrsra): Likewise.
16210         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
16211         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
16212         (cortex_a9_neon_fp_vsum): Likewise.
16213         (cortex_a9_neon_fp_vmul_ddd): Likewise.
16214         (cortex_a9_neon_fp_vmul_qqd): Likewise.
16215         (cortex_a9_neon_fp_vmla_ddd): Likewise.
16216         (cortex_a9_neon_fp_vmla_qqq): Likewise.
16217         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
16218         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
16219         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16220         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16221         (cortex_a9_neon_bp_simple): Likewise.
16222         (cortex_a9_neon_bp_2cycle): Likewise.
16223         (cortex_a9_neon_bp_3cycle): Likewise.
16224         (cortex_a9_neon_ldr): Likewise.
16225         (cortex_a9_neon_str): Likewise.
16226         (cortex_a9_neon_vld1_1_2_regs): Likewise.
16227         (cortex_a9_neon_vld1_3_4_regs): Likewise.
16228         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16229         (cortex_a9_neon_vld2_4_regs): Likewise.
16230         (cortex_a9_neon_vld3_vld4): Likewise.
16231         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16232         (cortex_a9_neon_vst1_3_4_regs): Likewise.
16233         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
16234         (cortex_a9_neon_vst3_vst4): Likewise.
16235         (cortex_a9_neon_vld1_vld2_lane): Likewise.
16236         (cortex_a9_neon_vld3_vld4_lane): Likewise.
16237         (cortex_a9_neon_vst1_vst2_lane): Likewise.
16238         (cortex_a9_neon_vst3_vst4_lane): Likewise.
16239         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
16240         (cortex_a9_neon_mcr): Likewise.
16241         (cortex_a9_neon_mcr_2_mcrr): Likewise.
16242         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
16243         (cortex_a9_fps): Likewise.
16244         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
16245         change.
16246         (cortex_m4_fmuls): Likewise.
16247         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
16248         change.
16249         (cortex_r4_mrc): Likewise.
16250         * config/arm/iterators.md: Update comment referring to neon_type.
16251         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
16252         (iwmmxt_movsi_insn): Likewise.
16253         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
16254         attribute change.
16255         (pj4_core_to_vfp): Likewise.
16256         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
16257         attribute change.
16258         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
16259         (vfp_fstore): Likewise.
16260         * doc/md.texi: Change references to neon_type to refer to type.
16262 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
16264         * tree.h (DECL_BUILT_IN): Fix typo in comment.
16266 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
16268         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
16269         lglobl if not weak.
16271 2013-09-04  Easwaran Raman  <eraman@google.com>
16273         PR middle-end/57370
16274         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
16275         (build_and_add_sum): Use it.
16276         (appears_later_in_bb): Simplify code.
16278 2013-09-04  Teresa Johnson  <tejohnson@google.com>
16280         * dumpfile.c (dump_finish): Don't close stderr/stdout.
16282 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
16284         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
16286 2013-09-04  Jan Hubicka  <jh@suse.cz>
16288         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
16289         * ipa-devirt.c: Include diganostic.h
16290         (odr_type_d): Add types and types_set.
16291         (hash_type_name): Work for types with vtables during LTO.
16292         (odr_hasher::remove): Fix comment; destroy types_set.
16293         (add_type_duplicate): New function,
16294         (get_odr_type): Use it.
16295         (dump_type_inheritance_graph): Dump type duplicates.
16296         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
16297         graph.
16298         * tree.c (types_same_for_odr): Give exact answers on types with
16299         virtual tables.
16301 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
16303         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
16304         explaining their differences.
16306 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
16308         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
16310 2013-09-03  Jeff Law  <law@redhat.com>
16312         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
16313         when not threading through a joiner block.  Pass joiner/no joiner
16314         state to register_jump_thread.
16315         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
16316         state from argument rather than implying on path length.
16317         Dump the entire jump thread path into debugging dump.
16318         * tree-flow.h (register_jump_thread): Update prototype.
16320 2013-08-29  Xinliang David Li  <davidxl@google.com>
16322         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16323         Remove a trivial gcc_assert.
16325 2013-08-29  Xinliang David Li  <davidxl@google.com>
16327         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
16328         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
16329         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16330         Delay base decl alignment adjustment.
16331         * tree-vectorizer.c (vect_destroy_datarefs): New function.
16332         * tree-vectorizer.h: New data structure.
16333         (set_dr_misalignment): New function.
16334         (dr_misalignment): Ditto.
16335         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
16336         (vectorizable_load): Ditto.
16337         (ensure_base_align): New function.
16338         (vectorize_loops): Add dbg_cnt support.
16339         (execute_vect_slp): Ditto.
16340         * dbgcnt.def: New debug counter.
16341         * Makefile: New dependency.
16343 2013-09-03  Meador Inge  <meadori@codesourcery.com>
16345         Revert:
16347         2013-08-30  Meador Inge  <meadori@codesourcery.com>
16349         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
16351 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
16353         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
16354         function descriptor.
16356 2013-09-03  Richard Biener  <rguenther@suse.de>
16358         * tree-affine.c (add_elt_to_tree): Fix association issue,
16359         avoid useless converts and make sure to always return a
16360         properly typed result.
16362 2013-09-03  Richard Biener  <rguenther@suse.de>
16364         PR middle-end/57656
16365         * fold-const.c (negate_expr_p): Fix division case.
16366         (negate_expr): Likewise.
16368 2013-09-03  Richard Biener  <rguenther@suse.de>
16370         PR lto/58285
16371         * tree-streamer-out.c: Include tm.h.
16372         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
16374 2013-09-03  Jan Hubicka  <jh@suse.cz>
16376         * tree-profile.c (tree_profiling): Cleanup CFG when done.
16378 2013-09-03  Alan Modra  <amodra@gmail.com>
16380         * config.gcc (powerpc*-*-linux*): Add support for little-endian
16381         multilibs to big-endian target and vice versa.
16382         * config/rs6000/t-linux64: Use := assignment on all vars.
16383         (MULTILIB_EXTRA_OPTS): Remove fPIC.
16384         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
16385         * config/rs6000/t-linux64le: New file.
16386         * config/rs6000/t-linux64bele: New file.
16387         * config/rs6000/t-linux64lebe: New file.
16389 2013-09-02  Jan Hubicka  <jh@suse.cz>
16391         * ipa-inline-transform.c (inline_transform): Do not
16392         optimize_inline_calls when not optimizing.
16394 2013-09-02  Jan Hubicka  <jh@suse.cz>
16396         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
16397         duplicated nodes for assembler names.
16398         * symtab.c (symtab_unregister_node): Do not attempt to unlink
16399         hard registers from assembler name hash.
16401 2013-09-02  Jan Hubicka  <jh@suse.cz>
16403         * ipa-split.c (execute_split_functions): Split externally visible
16404         functions called once.
16406 2013-09-02  Martin Jambor  <mjambor@suse.cz>
16408         PR ipa/58106
16409         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
16410         linked list.  When finding the correct duplicate, also consider also
16411         the caller in additon to its inlined_to node.
16413 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
16415         * config/aarch64/aarch64-simd-builtins.def
16416         (dup_lane_scalar): Remove.
16417         * config/aarch64/aarch64-simd.md
16418         (aarch64_simd_dup): Add 'w->w' alternative.
16419         (aarch64_dup_lane<mode>): Allow for VALL.
16420         (aarch64_dup_lane_scalar<mode>): Remove.
16421         (aarch64_dup_lane_<vswap_width_name><mode>): New.
16422         (aarch64_get_lane_signed<mode>): Add w->w altenative.
16423         (aarch64_get_lane_unsigned<mode>): Likewise.
16424         (aarch64_get_lane<mode>): Likewise.
16425         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
16426         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
16427         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
16428         (VCON): Change container of V2SF.
16429         (vswap_width_name): Likewise.
16430         * config/aarch64/arm_neon.h
16431         (__aarch64_vdup_lane_any): New.
16432         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
16433         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
16434         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
16436 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
16438         PR middle-end/56382
16439         * expr.c (emit_move_complex): Do not move complex FP values as parts if
16440         the source or the destination is a single hard register.
16442 2013-09-02  Richard Biener  <rguenther@suse.de>
16444         PR middle-end/57511
16445         * tree-scalar-evolution.c (instantiate_scev_name): Allow
16446         non-linear SCEVs.
16448 2013-09-02  Richard Biener  <rguenther@suse.de>
16450         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
16451         arithmetic to sizetype.
16453 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
16455         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
16456         Find auto-increment use both before and after candidate.
16458 2013-09-02  Marek Polacek  <polacek@redhat.com>
16460         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
16462 2013-09-01  Jan Hubicka  <jh@suse.cz>
16464         * Makefile.in: Add ipa-profile.o
16465         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
16466         * cgraph.c (struct cgraph_propagate_frequency_data,
16467         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
16468         ipa-profile.c; replace cgraph_ by ipa_ prefix.
16469         * cgraph.h (cgraph_propagate_frequency): Remove.
16470         * ipa-inline-analysis.c: Include ipa-utils.h;
16471         drop duplicated cfgloop.h.
16472         (inline_update_callee_summaries): Update.
16473         * ipa-profile.c: New file.
16474         * ipa-utils.h (ipa_propagate_frequency): Declare.
16475         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
16476         data-streamer.h, value-prof.h.
16477         (symtab_remove_unreachable_nodes): Update profile.
16478         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
16479         account_time_size, cmp_counts, dump_histogram,
16480         ipa_profile_generate_summary, ipa_profile_write_summary,
16481         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
16482         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
16483         Move to ipa-profile.c.
16485 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
16487         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
16489 2013-09-01  Jan Hubicka  <jh@suse.cz>
16491         * common.opt (fdevirtualize-speculatively): New function.
16492         * invoke.texi (fdevirtualize-speculatively): Document.
16493         * ipa-devirt.c: Include ipa-inline.h
16494         (likely_target_p): New function.
16495         (ipa_devirt): New function.
16496         (gate_ipa_devirt): New function.
16497         (pass_data_ipa_devirt): New static var.
16498         (pass_ipa_devirt): Likewise.
16499         (make_pass_ipa_devirt): New function.
16500         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
16501         (common_handle_option): Disable devirtualization when
16502         value range profiling is available.
16503         * passes.def (pass_ipa_devirt): Add.
16504         * timever.def (TV_IPA_DEVIRT): New timevar.
16505         * tree-pass.h (make_pass_ipa_devirt):
16507 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
16509         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
16510         include sanitize(undefined).
16512 2013-08-31  Diego Novillo  <dnovillo@google.com>
16514         * Makefile.in (TREE_CORE_H): Define.
16515         (TREE_H): Use.
16516         (GTFILES): Add tree-core.h.
16517         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
16518         size the array.
16519         * tree-core.h: New file.
16520         Move all data structures, enum, typedefs, global
16521         declarations and constants from ...
16522         * tree.h: ... here.
16524 2013-08-31  Jan Hubicka  <jh@suse.cz>
16526         * bulitins.c (expand_builtin): Do not early exit for gcov
16527         instrumented functions.
16529 2013-08-31  Marek Polacek  <polacek@redhat.com>
16531         * ubsan.c: Include tm_p.h.
16533 2013-08-31  Jan Hubicka  <jh@suse.cz>
16535         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
16536         warning.
16538         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
16539         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
16540         * tree-cfg.c (verify_gimple_label): ... here.
16541         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
16542         (ipa_merge_profiles): New function.
16543         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
16544         (lto_input_function_body): Likewise.
16545         * ipa-utils.h (ipa_merge_profiles): Declare.
16546         * lto-streamer.h (lto_input_function_body): Update prototype.
16547         (emit_label_in_global_context_p): Remove.
16548         * lto-symtab.c: Include ipa-utils.h
16549         (lto_cgraph_replace_node): Use ipa_merge_profiles.
16551 2013-08-31  Jan Hubicka  <jh@suse.cz>
16553         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
16555 2013-08-31  Jan Hubicka  <jh@suse.cz>
16557         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
16559 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
16561         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
16562         "cmp" RTX before signed_comparison_operator check to account
16563         for "code" changes.
16565 2013-08-30  Jan Hubicka  <jh@suse.cz>
16567         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
16568         (detect_type_change_1): Rename to ...
16569         (detect_type_change): ... this one; early return on non-polymorphic
16570         types.
16571         (detect_type_change_ssa): Add comp_type parameter; update
16572         use of detect_type_change.
16573         (compute_complex_assign_jump_func): Add param_type parameter;
16574         update use of detect_type_change_ssa.
16575         (compute_complex_ancestor_jump_func): Likewise.
16576         (ipa_get_callee_param_type): New function.
16577         (ipa_compute_jump_functions_for_edge): Compute parameter type;
16578         update calls to the jump function computation functions.
16580 2013-08-30  Teresa Johnson  <tejohnson@google.com>
16581             Steven Bosscher  <steven@gcc.gnu.org>
16583         * cfgrtl.c (fixup_new_cold_bb): New routine.
16584         (commit_edge_insertions): Invoke fixup_partitions.
16585         (find_partition_fixes): New routine.
16586         (fixup_partitions): Ditto.
16587         (verify_hot_cold_block_grouping): Update comments.
16588         (rtl_verify_edges): Invoke find_partition_fixes.
16589         (rtl_verify_bb_pointers): Update comments.
16590         (rtl_verify_bb_layout): Ditto.
16591         * basic-block.h (probably_never_executed_edge_p): Declare.
16592         (fixup_partitions): Ditto.
16593         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
16594         * bb-reorder.c (sanitize_hot_paths): New function.
16595         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
16596         sanitize_hot_paths.
16597         * predict.c (probably_never_executed_edge_p): New routine.
16598         * cfg.c (check_bb_profile): Add partition insanity warnings.
16600 2013-08-30  Meador Inge  <meadori@codesourcery.com>
16602         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
16604 2013-08-30  Marek Polacek  <polacek@redhat.com>
16606         * Makefile.in (ubsan.o): Add.
16607         (c-family/c-ubsan.o): Add.
16608         (builtins.o): Add ubsan.h dependency.
16609         * ubsan.h: New file.
16610         * ubsan.c: New file.
16611         * common.opt: Add -fsanitize=undefined option.
16612         (flag_sanitize): Add variable.
16613         (fsanitize=): Add option.  Add Driver.
16614         (fsanitize=thread): Remove option.
16615         (fsanitize=address): Likewise.
16616         (static-libubsan): New option.
16617         * doc/invoke.texi: Document the new flag and -static-libubsan.
16618         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
16619         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
16620         * builtin-attrs.def (ATTR_COLD): Define.
16621         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
16622         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
16623         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
16624         * flag-types.h (sanitize_code): New enum.
16625         * opts.c (common_handle_option): Parse command line arguments
16626         of -fsanitize=.  Add -fsanitize=unreachable option.
16627         * varasm.c (get_variable_section): Adjust.
16628         (assemble_noswitch_variable): Likewise.
16629         (assemble_variable): Likewise.
16630         (output_constant_def_contents): Likewise.
16631         (categorize_decl_for_section): Likewise.
16632         (place_block_symbol): Likewise.
16633         (output_object_block): Likewise.
16634         * builtins.def: Likewise.
16635         * toplev.c (compile_file): Likewise.
16636         (process_options): Likewise.
16637         * cppbuiltin.c: Likewise.
16638         * tsan.c (tsan_pass): Likewise.
16639         (tsan_gate): Likewise.
16640         (tsan_gate_O0): Likewise.
16641         * cfgexpand.c (partition_stack_vars): Likewise.
16642         (expand_stack_vars): Likewise.
16643         (defer_stack_allocation): Likewise.
16644         (expand_used_vars): Likewise.
16645         * cfgcleanup.c (old_insns_match_p): Likewise.
16646         * asan.c (asan_finish_file): Likewise.
16647         (asan_instrument): Likewise.
16648         (gate_asan): Likewise.
16649         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
16650         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
16651         (asan_global_struct): Use pointer_sized_int_node instead
16652         calling build_nonstandard_integer_type.
16653         (initialize_sanitizer_builtins): Likewise.
16654         (asan_finish_file): Likewise.
16655         * gcc.c: Document %{%:function(args):X}.
16656         (static_spec_functions): Add sanitize.
16657         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
16658         store funcval != NULL there.
16659         (do_spec_1): Adjust handle_spec_function caller.
16660         (handle_braces): Allow %:function(args) as condition.
16661         (sanitize_spec_function): New function.
16662         (ADD_STATIC_LIBUBSAN_LIBS): Define.
16663         (LIBUBSAN_SPEC): Likewise.
16664         (LIBUBSAN_EARLY_SPEC): Likewise.
16665         (SANITIZER_SPEC): Handle libubsan.
16666         (SANITIZER_EARLY_SPEC): Likewise.
16667         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
16668         instead of fsanitize=address.
16669         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
16670         instead of fsanitize=address*.
16671         * builtins.c: Include ubsan.h.
16672         (fold_builtin_0): Instrument __builtin_unreachable.
16673         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
16674         instead of flag_asan.
16675         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
16676         (pointer_sized_int_node): Define.
16677         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
16679 2013-08-30  Mike Stump  <mikestump@comcast.net>
16681         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
16682         with RE patterns.
16684 2013-08-29  Jan Hubicka  <jh@suse.cz>
16686         * cgraph.c (cgraph_function_body_availability): Handle weakref
16687         correctly.
16688         * passes.def: Remove pass_fixup_cfg.
16689         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
16690         track when we need to remove functions.
16691         (gate_ipa_inline): Execute inlining always; add comment why.
16692         (pass_data_ipa_inline): Remove TODO_remove_functions.
16693         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
16694         do not produce summaries.
16695         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
16696         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
16697         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
16698         constant pool and vtable.
16700 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
16702         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
16703         New arm_neon.h's internal macros to specify 64-bit constants.
16704         Avoid using stdint.h's macros.
16706 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
16708         * recog.c (verify_changes): Verify that changes[i].old is non-zero
16709         before applying REG_P.
16711 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
16713         PR tree-optimization/58277
16714         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
16715         after seeing too many stmts with vdef in between dombb and current
16716         bb, invalidate everything.
16718 2013-08-30  Richard Biener  <rguenther@suse.de>
16720         * fold-const.c (fold_single_bit_test): Fix overflow test.
16722 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
16724         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
16725         and which can live in a register, always retrieve the value on entry.
16726         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
16727         passed by invisible reference specially.
16728         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
16729         (vt_add_function_parameter): Correctly deal with a parameter passed by
16730         invisible reference.
16732 2013-08-30  Jan Hubicka  <jh@suse.cz>
16734         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
16736 2013-08-30  Richard Biener  <rguenther@suse.de>
16738         PR tree-optimization/58228
16739         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
16740         allow invariant loads in nested loop vectorization.
16742 2013-08-30  Richard Biener  <rguenther@suse.de>
16744         PR tree-optimization/58223
16745         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
16746         (has_anti_or_output_dependence): ... this and adjust to also
16747         look for output dependences.
16748         (mark_nodes_having_upstream_mem_writes): Adjust.
16749         (rdg_flag_uses): Likewise.
16751 2013-08-30  Richard Biener  <rguenther@suse.de>
16753         PR tree-optimization/58010
16754         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
16755         assert that we have a loop-closed PHI.
16757 2013-08-29  Jan Hubicka  <jh@suse.cz>
16759         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
16760         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
16761         * lto-section-in.c (lto_free_function_in_decl_state): New function.
16762         (lto_free_function_in_decl_state_for_node): New function.
16764 2013-08-29  Xinliang David Li  <davidxl@google.com>
16766         * loop-unroll.c (report_unroll_peel): Minor message change.
16767         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
16768         Emit alignment peeling message with default -fopt-info.
16769         (vect_loop_versioning): Emit loop version info message.
16770         * tree-vectorizer.c (vectorize_loops): Minor message change.
16771         (execute_vect_slp): Ditto.
16773 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
16775         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
16776         of the clone from the DECL_NAME of the original function.
16778 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
16780         * passes.c (register_pass): Add overload.
16781         * tree-pass.h (register_pass): Forward declare it.  Add comment.
16783 2013-08-29  Jan Hubicka  <jh@suse.cz>
16785         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
16786         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
16787         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
16788         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
16789         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
16790         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
16791         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
16792         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
16794 2013-08-29  Teresa Johnson  <tejohnson@google.com>
16796         * dumpfile.c (dump_loc): Output column number.
16797         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
16798         * doc/invoke.texi: Document optall -fopt-info flag.
16799         * profile.c (read_profile_edge_counts): Use new dump framework.
16800         (compute_branch_probabilities): Ditto.
16801         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
16802         when pass not in any opt group.
16803         * pass_manager.h (pass_manager::get_pass_profile): New method.
16804         * value-prof.c (check_counter): Use new dump framework.
16805         (check_ic_target): Ditto.
16806         * coverage.c (get_coverage_counts): Ditto.
16807         (coverage_init): Setup new dump framework.
16809 2013-08-29  Richard Biener  <rguenther@suse.de>
16811         PR tree-optimization/58246
16812         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
16813         handle the dominance check inside a basic-block.
16815 2013-08-29  Richard Biener  <rguenther@suse.de>
16817         PR middle-end/57287
16818         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
16819         of default defs that appear in abnormal PHI nodes.
16821 2013-08-29  Richard Biener  <rguenther@suse.de>
16823         PR tree-optimization/57685
16824         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
16825         single-use operands to avoid exponential complexity.
16827 2013-08-28  Dehao Chen  <dehao@google.com>
16829         * ipa-inline.c (edge_badness): Fix integer underflow.
16831 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
16833         * gtm-builtins.def (_ITM_free): Declare leaf.
16835 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
16837         PR target/58067
16838         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
16839         (*tls_local_dynamic_base_64_largepic): Likewise.
16840         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
16841         Remove predicate from call operand.
16842         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
16843         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
16845 2013-08-28  Jeff Law  <law@redhat.com>
16847         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
16848         checks for the number of predecessors and successors allowed.
16849         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
16850         which require copying a joiner block if there is a request which
16851         is a subpath that requires no joiner block copying.
16853 2013-08-28  Jan Hubicka  <jh@suse.cz>
16855         * lto-streamer-out.c (DFS_write_tree_body): Drop
16856         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
16857         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
16858         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
16859         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
16860         Do not read DECL_ERROR_ISSUED.
16861         (unpack_ts_decl_with_vis_value_fields): Do not read
16862         DECL_DEFER_OUTPUT.
16863         (lto_input_ts_binfo_tree_pointers): Do not read
16864         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
16865         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
16866         write DECL_ERROR_ISSUED..
16867         (pack_ts_decl_with_vis_value_fields): Do not write
16868         DECL_DEFER_OUTPUT.
16869         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
16870         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
16871         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
16872         * tree.h (tree_decl_common): Update comment.
16873         (DECL_ERROR_ISSUED): Remove.
16875 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
16877         PR middle-end/58257
16878         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
16880 2013-08-28  Jan Hubicka  <jh@suse.cz>
16882         * builtins.def (free): Declare leaf.
16884 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
16886         * gdbhooks.py: New.
16887         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
16888         * configure: Regenerate.
16890 2013-08-27  Martin Jambor  <mjambor@suse.cz>
16892         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
16893         (ipa_ancestor_jf_data): Likewise.
16894         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
16895         (ipa_get_jf_pass_through_type_preserved): New function.
16896         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
16897         (ipa_get_jf_ancestor_type_preserved): New function.
16898         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
16899         (ipa_get_jf_ancestor_result): Likewise.
16900         (propagate_vals_accross_pass_through): Use
16901         ipa_get_jf_pass_through_result to do all the value mappings.
16902         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
16903         type_preserved flag.
16904         (ipa_set_jf_cst_copy): New function.
16905         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
16906         (ipa_set_jf_arith_pass_through): Likewise.
16907         (ipa_set_ancestor_jf): Likewise.
16908         (compute_complex_assign_jump_func): Set type_preserved instead of
16909         punting.
16910         (ipa_compute_jump_functions_for_edge): Likewise.
16911         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
16912         (update_jump_functions_after_inlining): Update type_preserved.
16913         Explicitely create jump functions when combining one with pass_through.
16914         (ipa_write_jump_function): Stream the type_preserved flags.
16915         (ipa_read_jump_function): Likewise.
16917 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
16918             Aldy Hernandez  <aldyh@redhat.com>
16920         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
16921         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
16922         * function.h (struct function): Add has_force_vect_loops and
16923         has_simduid_loops.
16924         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
16925         * gimple.c (gimple_build_omp_critical): Add KIND argument and
16926         handle it.
16927         * gimple.def: Update CLAUSES comments.
16928         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
16929         (gimple_build_omp_for): Add argument to prototype.
16930         (gimple_omp_for_kind): New.
16931         (gimple_omp_for_set_kind): New.
16932         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
16933         GOVD_DATA_SHARE_CLASS.
16934         (enum omp_region_type): Add ORT_SIMD.
16935         (gimple_add_tmp_var): Handle ORT_SIMD.
16936         (gimplify_var_or_parm_decl): Same.
16937         (is_gimple_stmt): Same.
16938         (omp_firstprivatize_variable): Same.
16939         (omp_add_variable): Only use splay_tree_insert if lookup failed.
16940         (omp_notice_variable): Handle ORT_SIMD.
16941         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
16942         (omp_check_private): Handle ORT_SIMD.
16943         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
16944         OMP_CLAUSE_SAFELEN.
16945         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
16946         Handle OMP_CLAUSE_LASTPRIVATE.
16947         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
16948         OMP_CLAUSE_SAFELEN.
16949         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
16950         (gimplify_expr): Handle OMP_SIMD.
16951         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
16952         (expand_GOMP_SIMD_VF): New.
16953         (expand_GOMP_SIMD_LAST_LANE): New.
16954         * internal-fn.def (GOMP_SIMD_LANE): New.
16955         (GOMP_SIMD_VF): New.
16956         (GOMP_SIMD_LAST_LANE): New.
16957         * omp-low.c: Include target.h.
16958         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
16959         OMP_CLAUSE_SAFELEN.
16960         (check_omp_nesting_restrictions): Same.
16961         (omp_max_vf): New.
16962         (lower_rec_simd_input_clauses): New.
16963         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
16964         OMP_CLAUSE_LINEAR.
16965         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
16966         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
16967         (expand_omp_build_assign): New.
16968         (expand_omp_for_init_counts): New.
16969         (expand_omp_for_init_vars): New.
16970         (extract_omp_for_update_vars): New.
16971         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
16972         and rewrite accordingly.
16973         (expand_omp_simd): New.
16974         (expand_omp_for): Use expand_omp_simd.
16975         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
16976         (lower_omp_for): Do not lower the body.
16977         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
16978         in their own loops.
16979         * tree-flow.h (find_omp_clause): Remove prototype.
16980         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
16981         forcing vectorization of the loop, or if flag_tree_vectorize.
16982         (gate_tree_if_conversion): Similarly.
16983         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
16984         gimple_build_omp_for.
16985         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
16986         * tree-parloops (create_parallel_loop): Pass kind argument to
16987         gimple_build_omp_for.
16988         * tree-pretty-print.c (dump_omp_clause): Add cases for
16989         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
16990         OMP_CLAUSE__SIMDUID_.
16991         (dump_generic_node): Handle OMP_SIMD.
16992         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
16993         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
16994         unroll OMP_SIMD loops here.
16995         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
16996         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
16997         loop->safelen.
16998         (vect_analyze_data_refs): Handle simd loops.
16999         * tree-vect-loop.c (vectorizable_live_operation): Handle
17000         IFN_GOMP_SIMD*.
17001         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
17002         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
17003         (vectorizable_load): Same.
17004         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
17005         (struct simduid_to_vf): New.
17006         (simduid_to_vf::hash): New.
17007         (simduid_to-vf::equal): New.
17008         (struct simd_array_to_simduid): New.
17009         (simd_array_to_simduid::hash): New.
17010         (simd_array_to_simduid::equal): New.
17011         (adjust_simduid_builtins): New.
17012         (struct note_simd_array_uses_struct): New.
17013         (note_simd_array_uses_cb): New.
17014         (note_simd_array_uses): New.
17015         (vectorize_loops): Handle simd hints and adjust simd builtins
17016         accordingly.
17017         * tree-vectorizer.h (struct _stmt_vec_info): Add
17018         simd_lane_access_p field.
17019         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
17020         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
17021         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
17022         (omp_clause_code_name): Same.
17023         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
17024         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
17025         * tree.def (OMP_SIMD): New entry.
17026         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
17027         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
17028         (OMP_CLAUSE_DECL): Adjust range for new clauses.
17029         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
17030         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
17031         (OMP_CLAUSE_LINEAR_STEP): New.
17032         (OMP_CLAUSE_SAFELEN_EXPR): New.
17033         (OMP_CLAUSE__SIMDUID__DECL): New.
17034         (find_omp_clause): New prototype.
17036 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
17038         * config/i386/driver-i386.c (host_detect_local_cpu): Update
17039         Haswell processor detection.
17041 2013-08-27  Christian Widmer  <shadow@umbrox.de>
17043         PR target/57927
17044         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
17045         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
17046         AVX2 capable processors.
17048 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
17050         * config/aarch64/arm_neon.h: Replace all inline asm implementations
17051         of vget_low_* with implementations in terms of other intrinsics.
17053 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
17055         PR middle-end/57219
17056         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
17057         values to -1, 0 and 1.
17059 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
17061         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
17062         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
17063         (<optab><mode>3_insn): Remove.
17064         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
17065         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17066         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17067         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
17068         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
17069         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
17070         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
17071         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
17072         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
17073         (ror<mode>3_insn): Likewise.
17074         * config/aarch64/predicates.md (aarch64_simd_register): New.
17076 2013-08-27  Richard Biener  <rguenther@suse.de>
17078         PR tree-optimization/57521
17079         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
17080         one edge is non-critical.
17081         (find_phi_replacement_condition): Make sure to use a non-critical
17082         edge.  Cleanup and remove old bug workarounds.
17083         (bb_postdominates_preds): Remove.
17084         (if_convertible_loop_p_1): Do not compute post-dominators.
17085         (combine_blocks): Do not free post-dominators.
17086         (main_tree_if_conversion): Likewise.
17087         (pass_data_if_conversion): Add TODO_verify_ssa.
17089 2013-08-27  DJ Delorie  <dj@redhat.com>
17091         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
17093 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
17095         * function.c (assign_parm_find_data_types): Set passed_mode and
17096         nominal_mode to the TYPE_MODE of nominal_type for the built
17097         pointer type in case of the struct-pass-by-reference.
17099 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17101         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
17102         (UINT16_TYPE): Change default to "unsigned int".
17104         * config/avr/avr.opt (mfract-convert-truncate): New option.
17105         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
17106         is set, round negative fractional integers according to n1169
17107         when converting to integer types.
17109 2013-08-26  Jan Hubicka  <jh@suse.cz>
17111         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
17112         methods can not be called indirectly when their address is not taken.
17114 2013-08-26  Jan Hubicka  <jh@suse.cz>
17116         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
17117         ctor_for_folding.
17119 2013-08-26  Jan Hubicka  <jh@suse.cz>
17121         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
17122         can be unshared.
17124 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17126         * reload.c (find_valid_class): Allow classes that do not include
17127         FIRST_PSEUDO_REGISTER - 1.
17129 2013-08-26  Jan Hubicka  <jh@suse.cz>
17131         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
17132         fix edge count/frequency when speculation failed; fix type check
17133         for the direct call.
17135 2013-08-26  Jan Hubicka  <jh@suse.cz>
17137         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
17139 2013-08-26  Jan Hubicka  <jh@suse.cz>
17141         * ipa-inline-transform.c (inline_transform): Be ready for basic block
17142         to be changed by edge redirection.
17144 2013-08-26  Jan Hubicka  <jh@suse.cz>
17146         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
17147         formating; add sanity check.
17148         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
17149         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
17150         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
17151         (resolve_noninline_speculation): Update callee keys, too.
17153 2013-08-26  Jan Hubicka  <jh@suse.cz>
17155         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
17156         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
17158 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17160         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
17161         into proper place.
17163 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
17165         * config/i386/i386.c (ix86_debug_options): Remove prototype.
17166         (x86_64_elf_select_section): Ditto.
17167         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
17168         arguments.
17169         (ix86_pass_by_reference): Ditto.
17170         (output_set_got): Ditto.
17171         (ix86_unary_operator_ok): Ditto.
17172         (ix86_expand_builtin): Ditto.
17174 2013-08-23  Jan Hubicka  <jh@suse.cz>
17176         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
17178 2013-08-23  Jan Hubicka  <jh@suse.cz>
17180         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
17181         (tree_decl_with_vis): Add FINAL field.
17183 2013-08-23  Jeff Law  <law@redhat.com>
17185         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
17186         the debugging dump when the expression is fully redundant.
17188 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17190         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
17191         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
17192         * pretty-print.c (pp_formatted_text_data): Likewise.
17193         (pp_write_text_to_stream): Likewise.
17194         (pp_write_text_as_dot_label_to_stream): Likewise.
17195         (pp_append_r): Likewise.
17196         (pp_format): Likewise.
17197         (pp_flush): Likewise.
17198         (pp_clear_output_area): Likewise.
17199         (pp_append_text): Likewise.
17200         (pp_formatted_text): Likewise.
17201         (pp_remaining_character_count_for_line): Likewise.
17202         (pp_newline): Likewise.
17203         (pp_character): Likewise.
17204         (output_buffer::~output_buffer): Define.
17205         (pretty_printer::~pretty_printer): Destruct output buffer.
17206         * pretty-print.h (output_buffer::~output_buffer): Declare.
17207         (pretty_printer::~pretty_printer): Declare virtual.
17209 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
17211         PR other/57324
17212         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
17213         HOST_WIDE_INT_M1U): New macros.
17214         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
17215         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
17216         unsigned -1 for lshift.
17217         * cse.c (cse_insn): Likewise.
17218         * double-int.c (rshift_double, lshift_double): Likewise.
17219         * builtins.c (fold_builtin_bitop): Likewise.
17220         * combine.c (force_to_mode): Likewise.
17221         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
17222         * simplify-rtx.c (simplify_const_unary_operation,
17223         simplify_const_binary_operation): Likewise.
17224         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
17225         check_va_list_escapes): Likewise.
17226         * rtlanal.c (nonzero_bits1): Likewise.
17227         * expmed.c (expand_smod_pow2): Likewise.
17228         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
17230 2013-08-23  Jan Hubicka  <jh@suse.cz>
17232         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
17233         as having address taken.
17235 2013-08-23  Jan Hubicka  <jh@suse.cz>
17237         * ipa-utils.h (method_class_type): Declare.
17238         * ipa-devirt.c (method_class_type): Export.
17240         * cgraphunit.c (analyze_functions): Do basic devirtualization;
17241         do not walk base classes of anonymous types.
17243 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
17245         PR rtl-optimization/58220
17246         PR regression/58221
17247         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
17248         handle SEQUENCE insns properly.
17250 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17252         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
17253         definition.
17254         (pp_newline_and_indent): Likewise.
17255         (pp_separate_with): Likewise.
17256         * pretty-print.c (pp_newline_and_flush): Define.
17257         (pp_newline_and_indent): Likewise.
17258         (pp_separate_with): Likewise.
17260 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
17262         PR target/58218
17263         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
17264         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
17266 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
17268         * config/i386/predicates.md (ext_sse_reg_operand): New.
17269         * config/i386/i386.md (*movti_internal): Use
17270         predicate to determine if EVEX is needed.
17271         (*movsi_internal): Ditto.
17272         (*movdf_internal): Ditto.
17273         (*movsf_internal): Ditto.
17274         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
17276 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
17278         PR tree-optimization/58209
17279         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
17280         (find_tail_calls): Give up for pointer result types if m is non-NULL.
17281         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
17282         emit POINTER_PLUS_EXPR.
17283         (create_tailcall_accumulator): For pointer result type accumulate in
17284         sizetype type.
17286 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
17288         * configure.ac: Add backslashes missing from the last change.
17289         * configure: Regenerate.
17291 2013-08-22  Jan Hubicka  <jh@susue.cz>
17293         * ipa.c (function_and_variable_visibility): First remember function
17294         was global and then make it local.
17296 2013-08-22  Julian Brown  <julian@codesourcery.com>
17298         * configure.ac: Add aarch64 to list of arches which use "nop" in
17299         debug_line test.
17300         * configure: Regenerate.
17302 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17304         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
17305         gnu_libc_has_function.
17306         * config/s390/tpf.h: Likewise.
17308 2013-08-22  Jan Hubicka  <jh@susue.cz>
17310         * timevar.c (validate_phases): Add cast.
17312 2013-08-22  Jan Hubicka  <jh@susue.cz>
17314         * timevar.c (validate_phases): Use size_t for memory.
17315         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
17317 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17319         * pretty-print.h (output_buffer::output_buffer): Declare.
17320         (pretty_printer::pretty_printer): Likewise.
17321         (pp_construct): Remove.
17322         * pretty-print.c (output_buffer::output_buffer): Define.
17323         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
17324         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
17325         (print_gimple_expr): Likewise.
17326         (print_gimple_seq): Likewise.
17327         (gimple_dump_bb): Likewise.
17328         * sched-vis.c (dump_value_slim): Likewise.
17329         (dump_insn_slim): Likewise.
17330         (dump_rtl_slim): Likewise.
17331         (str_pattern_slim): Likewise.
17332         * tree-mudflap.c (mf_varname_tree): Likewise.
17333         * graph.c (print_graph_cfg): Likewise.
17334         (start_graph_dump): Likewise.
17335         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
17336         placement-new.
17337         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
17338         pretty printer initialization.
17339         * coretypes.h (diagnostic_context): Remove superflous type alias
17340         declaration.
17341         (pretty_printer): Likewise.  Declare directly as a class.
17342         (pretty_print_info): Remove declaration as class.
17343         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
17344         and pp_clear_output_area.
17345         (asan_add_global): Likewise.
17347 2013-08-22  Jan Hubicka  <jh@suse.cz>
17349         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
17350         * ipa-utils.h (update_type_inheritance_graph): Declare.
17351         (possible_polymorphic_call_target_p): Declare.
17352         (possible_polymorphic_call_target_p): New.
17353         * ipa-devirt.c: Update toplevel comments.
17354         (cached_polymorphic_call_targets): Move up.
17355         (odr_type_d): Move ID down.
17356         (polymorphic_type_binfo_p): Update comment.
17357         (odr_hasher::remove): Likewise;
17358         (get_odr_type): Set anonymous_namespace.
17359         (dump_odr_type): Dump it.
17360         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
17361         (maybe_record_node): Record node in cached_polymorphic_call_targets.
17362         (record_binfo): Add comment.
17363         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
17364         built.
17365         (devirt_node_removal_hook): Do not iCE when cache is freed.
17366         (possible_polymorphic_call_target_p): New predicate.
17367         (update_type_inheritance_graph): New function.
17369 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17370             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17371             Sergey Lega  <sergey.s.lega@intel.com>
17372             Anna Tikhonova  <anna.tikhonova@intel.com>
17373             Ilya Tocar  <ilya.tocar@intel.com>
17374             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17375             Ilya Verbin  <ilya.verbin@intel.com>
17376             Kirill Yukhin  <kirill.yukhin@intel.com>
17377             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17379         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
17380         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
17381         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
17382         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
17383         (OPTION_MASK_ISA_AVX2_UNSET): Update.
17384         (OPTION_MASK_ISA_AVX512F_UNSET): New.
17385         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
17386         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
17387         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
17388         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
17389         OPT_mavx512pf, OPT_mavx512er cases.
17390         * config/i386/constraints.md (v): New constraint.
17391         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
17392         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
17393         (bit_AVX512CD): New.
17394         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17395         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
17396         * config/i386/i386-c.c (ix86_target_macros_internal):
17397         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
17398         __AVX512PF__.
17399         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
17400         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
17401         * config/i386/i386.c (regclass_map, dbx_register_map)
17402         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
17403         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
17404         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
17405         -mavx512pf options.
17406         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
17407         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
17408         -mavx512pf options.  Fix formatting.
17409         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
17410         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
17411         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
17412         -mavx512cd, -mavx512pf options.
17413         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
17414         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
17415         (ix86_preferred_output_reload_class): Replace SSE_REGS with
17416         ALL_SSE_REGS.
17417         (ix86_hard_regno_mode_ok): Support 512-bit registers.
17418         (ix86_set_reg_reg_cost): Ditto.
17419         (x86_order_regs_for_local_alloc): Ditto.
17420         (MAX_VECT_LEN): Extend to 64-byte.
17421         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
17422         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
17423         (TARGET_AVX512ER, TARGET_AVX512CD): New.
17424         (BIGGEST_ALIGNMENT): Extend to 512-bits.
17425         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
17426         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
17427         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
17428         (SSE_REG_MODE_P): Support new modes.
17429         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
17430         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
17431         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
17432         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
17433         (REG_CLASS_CONTENTS): Add new registers.
17434         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
17435         (EXT_REX_SSE_REGNO_P): New.
17436         (HI_REGISTER_NAMES): Add new registers.
17437         * config/i386/i386.md: Define constants for new registers.
17438         (mode): Add new 512-bit modes.
17439         (prefix): Support evex prefix.
17440         (isa): Support avx512f, noavx512f, fma_avx512f.
17441         (ssemodesuffix): Add new 512-bit modes.
17442         (movxi): New.
17443         (*movxi_internal_avx512f): Ditto.
17444         (*movdi_internal): Replace constraint "x" with the new constraint "v".
17445         Support MODE_XI.
17446         (*movsi_internal): Likewise.
17447         (*movdf_internal): Likewise.
17448         (*movsf_internal): Likewise.
17449         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
17450         (<code><mode>3): Likewise.
17451         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
17452         New.
17453         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
17454         with the new constraint "v".
17455         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
17456         modes.
17457         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
17458         with the new constraint "v".
17459         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
17460         (<sse2>_storedqu<avxsizesuffix>): Likewise.
17461         (*<plusminus_insn><mode>3): Likewise.
17462         (<sse>_vm<plusminus_insn><mode>3): Likewise.
17463         (*mul<mode>3): Likewise.
17464         (<sse>_vmmul<mode>3): Likewise.
17465         (<sse>_div<mode>3): Likewise.
17466         (<sse>_vmdiv<mode>3): Likewise.
17467         (<sse>_sqrt<mode>2): Likewise.
17468         (<sse>_vmsqrt<mode>2): Likewise.
17469         (*<code><mode>3_finite): Likewise.
17470         (*<code><mode>3) <smaxmin>: Likewise.
17471         (<sse>_vm<code><mode>3): Likewise.
17472         (*<code><mode>3) <any_logic>: Likewise.
17473         (*fma_fmadd_<mode>): Likewise.
17474         (*fma_fmsub_<mode>): Likewise.
17475         (*fma_fnmadd_<mode>): Likewise.
17476         (*fma_fnmsub_<mode>): Likewise.
17477         (*fma_fmaddsub_<mode>): Likewise.
17478         (*fma_fmsubadd_<mode>): Likewise.
17479         (*fmai_fmadd_<mode>): Likewise.
17480         (*fmai_fmsub_<mode>): Likewise.
17481         (*fmai_fnmadd_<mode>): Likewise.
17482         (*fmai_fnmsub_<mode>): Likewise.
17483         (sse_cvtsi2ss): Likewise.
17484         (sse_cvtsi2ssq): Likewise.
17485         (sse_cvtss2si): Likewise.
17486         (sse_cvtss2si_2): Likewise.
17487         (sse_cvtss2siq): Likewise.
17488         (sse_cvtss2siq_2): Likewise.
17489         (sse_cvttss2si): Likewise.
17490         (sse_cvtss2siq_2): Likewise.
17491         (float<sseintvecmodelower><mode>2): Likewise.
17492         (sse2_cvtsd2si_2): Likewise.
17493         (sse2_cvtsd2siq_2): Likewise.
17494         (*<plusminus_insn><mode>3): Likewise.
17495         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
17496         (*<sse4_1_avx2>_mul<mode>3): Likewise.
17497         (ashr<mode>3): Likewise.
17498         (<shift_insn><mode>3): Likewise.
17499         (avx2_<code><mode>3): Likewise.
17500         (*avx2_<code><mode>3): Likewise.
17501         (*andnot<mode>3): Likewise.
17502         (*<code><mode>3) <any_logic>: Likewise.
17503         (abs<mode>2): Likewise.
17504         (avx2_permvar<mode>): Likewise.
17505         (avx2_perm<mode>_1): Likewise.
17506         (*avx_vpermilp<mode>): Likewise.
17507         (avx_vpermilvar<mode>3): Likewise.
17508         (avx2_ashrv<mode>): Likewise.
17509         (avx2_<shift_insn>v<mode>): Likewise.
17510         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
17511         -mavx512cd.
17512         * doc/rtl.texi: Document XImode.
17514 2013-08-21  Jeff Law  <law@redhat.com>
17516         * tree-flow.h (register_jump_thread): Pass vector of edges
17517         instead of each important edge.
17518         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
17519         thread path into a vector and pass that to register_jump_thread.
17520         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
17521         passed in edge vector to the current 3-edge form.
17523         Revert:
17524         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
17526         * dce.c (fini_dce): Call df_analyze again just in case
17527         delete_unmarked_insns removed anything.
17529 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
17531         * reload.h (struct reg_equivs): Rename to ..
17532         (struct reg_equivs_s): .. this.
17534 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
17536         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
17538 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17540         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
17542 2013-08-21  Jeff Law  <law@redhat.com>
17544         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
17545         simplify assignments too.  If the RHS collapses to a singleton
17546         range, then return the value for the range.
17548 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
17550         * config/i386/sse.md (V16): Rename to...
17551         (VMOVE): this.
17552         (mov<mode>): Update iterator name.
17553         (*mov<mode>_internal): Ditto.
17554         (push<mode>1): Ditto.
17555         (movmisalign<mode>): Ditto.
17557 2013-08-20  Jan Hubicka  <jh@suse.cz>
17559         PR bootstrap/58186
17560         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
17561         entry for direct edges.
17562         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
17564 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17566         Revert my last two changes, r201865 and r201864:
17568         Revert r201865:
17569         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17571         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
17572         instances can own GC refs.
17574         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
17575         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
17576         (gcc::context::gt_pch_nx): Likewise.
17577         (gcc::context::gt_pch_nx):  Likewise.
17578         * ggc.h (gt_ggc_mx <T>): New.
17579         (gt_pch_nx_with_op <T>): New.
17580         (gt_pch_nx <T>): New.
17581         * passes.c (opt_pass::gt_ggc_mx): New.
17582         (opt_pass::gt_pch_nx): New.
17583         (opt_pass::gt_pch_nx_with_op): New.
17584         (pass_manager::gt_ggc_mx): New.
17585         (pass_manager::gt_pch_nx): New.
17586         (pass_manager::gt_pch_nx_with_op): New.
17587         (pass_manager::operator new): Use
17588         ggc_internal_cleared_alloc_stat rather than xcalloc.
17589         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
17590         (pass_manager::gt_ggc_mx): New.
17591         (pass_manager::gt_pch_nx): New.
17592         (pass_manager::gt_pch_nx_with_op): New.
17593         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
17594         (opt_pass::operator new): New.
17595         (opt_pass::gt_ggc_mx): New.
17596         (opt_pass::gt_pch_nx): New.
17597         (opt_pass::gt_pch_nx_with_op): New.
17599         Revert r201864:
17600         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17602         * Makefile.in (GTFILES): Add context.h.
17603         * context.c (gcc::context::operator new): New.
17604         (gcc::context::gt_ggc_mx): New.
17605         (gcc::context::gt_pch_nx): New.
17606         (gcc::context::gt_pch_nx): New.
17607         * context.h (gcc::context): Add GTY((user)) marking.
17608         (gcc::context::operator new): New.
17609         (gcc::context::gt_ggc_mx): New.
17610         (gcc::context::gt_pch_nx): New.
17611         (gcc::context::gt_pch_nx): New.
17612         (g): Add GTY marking.
17613         (gt_ggc_mx (gcc::context *)): New.
17614         (gt_pch_nx (gcc::context *)): New.
17615         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
17616         void *cookie)): New.
17617         * gengtype.c (open_base_files) <ifiles>: Add context.h.
17619 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
17621         * dce.c (fini_dce): Call df_analyze again just in case
17622         delete_unmarked_insns removed anything.
17624 2013-08-20  Teresa Johnson  <tejohnson@google.com>
17626         PR rtl-optimizations/57451
17627         * final.c (reemit_insn_block_notes): Prevent lexical blocks
17628         from crossing split section boundaries.
17630 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
17632         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
17633         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
17634         with MULTLIB_DEFAULTS.
17636 2013-08-20  Nick Clifton  <nickc@redhat.com>
17638         * target.def (narrow_volatile_bitfield): Note that the default
17639         value is false, not !TARGET_STRICT_ALIGN.
17640         * doc/tm.texi: Regenerate.
17642 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
17644         Fix LIB_SPEC for systems without libpthread.
17646         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
17647         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
17648         for Android.
17649         * config/i386/linux-common.h: Likewise.
17650         * config/mips/linux-common.h: Likewise.
17652 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
17654         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
17655         checks.
17657 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17659         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
17660         instances can own GC refs.
17662         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
17663         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
17664         (gcc::context::gt_pch_nx): Likewise.
17665         (gcc::context::gt_pch_nx):  Likewise.
17666         * ggc.h (gt_ggc_mx <T>): New.
17667         (gt_pch_nx_with_op <T>): New.
17668         (gt_pch_nx <T>): New.
17669         * passes.c (opt_pass::gt_ggc_mx): New.
17670         (opt_pass::gt_pch_nx): New.
17671         (opt_pass::gt_pch_nx_with_op): New.
17672         (pass_manager::gt_ggc_mx): New.
17673         (pass_manager::gt_pch_nx): New.
17674         (pass_manager::gt_pch_nx_with_op): New.
17675         (pass_manager::operator new): Use
17676         ggc_internal_cleared_alloc_stat rather than xcalloc.
17677         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
17678         (pass_manager::gt_ggc_mx): New.
17679         (pass_manager::gt_pch_nx): New.
17680         (pass_manager::gt_pch_nx_with_op): New.
17681         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
17682         (opt_pass::operator new): New.
17683         (opt_pass::gt_ggc_mx): New.
17684         (opt_pass::gt_pch_nx): New.
17685         (opt_pass::gt_pch_nx_with_op): New.
17687 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17689         * Makefile.in (GTFILES): Add context.h.
17690         * context.c (gcc::context::operator new): New.
17691         (gcc::context::gt_ggc_mx): New.
17692         (gcc::context::gt_pch_nx): New.
17693         (gcc::context::gt_pch_nx): New.
17694         * context.h (gcc::context): Add GTY((user)) marking.
17695         (gcc::context::operator new): New.
17696         (gcc::context::gt_ggc_mx): New.
17697         (gcc::context::gt_pch_nx): New.
17698         (gcc::context::gt_pch_nx): New.
17699         (g): Add GTY marking.
17700         (gt_ggc_mx (gcc::context *)): New.
17701         (gt_pch_nx (gcc::context *)): New.
17702         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
17703         void *cookie)): New.
17704         * gengtype.c (open_base_files) <ifiles>: Add context.h.
17706 2013-08-20  Alan Modra  <amodra@gmail.com>
17708         PR target/57865
17709         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
17710         (rs6000_emit_epilogue): Likewise.
17712 2013-08-19  Dehao Chen  <dehao@google.com>
17714         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
17716 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
17717             Jakub Jelinek  <jakub@redhat.com>
17719         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
17720         (BUILT_IN_FABSD64): Likewise.
17721         (BUILT_IN_FABSD128): Likewise.
17722         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
17723         (fold_builtin_1): Likewise.
17724         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
17725         destination and source operands.
17726         (*abstd2_fpr): Likewise.
17727         (*nabstd2_fpr): Likewise.
17729 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
17731         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
17732         JUMP_P and INSN_P.
17734 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
17736         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
17737         incomplete.
17739 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17741         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
17742         * builtins.c (default_libc_has_function): New.
17743         (gnu_libc_has_function): Ditto.
17744         (no_c99_libc_has_function): Ditto.
17745         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
17746         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
17747         (fold_builtin_sincos): Likewise.
17748         (fold_builtin_cexp): Likewise.
17749         * builtins.def (DEF_C94_BUILTIN): Likewise.
17750         (DEF_C99_BUILTIN): Likewise.
17751         (DEF_C99_C90RES_BUILTIN): Likewise.
17752         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
17753         definitions to using this define.
17754         * config/darwin-protos.h (darwin_libc_has_function): New.
17755         * config/darwin.c (darwin_libc_has_function): Ditto.
17756         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
17757         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
17758         * config/darwin.h: Ditto.
17759         * config/elfos.h: Ditto.
17760         * config/freebsd.h: Ditto.
17761         * config/i386/cygming.h: Ditto.
17762         * config/i386/djgpp.h: Ditto.
17763         * config/i386/i386-interix.h: Ditto.
17764         * config/microblaze/microblaze.h: Ditto.
17765         * config/mmix/mmix.h: Ditto.
17766         * config/gnu-user.h: Ditto.
17767         * config/ia64/hpux.h: Ditto.
17768         * config/pa/pa-hpux.h: Ditto.
17769         * config/pdp11/pdp11.h: Ditto.
17770         * config/picochip/picochip.h: Ditto.
17771         * config/linux.h: Ditto.
17772         * config/netbsd.h: Ditto.
17773         * config/openbsd.h: Ditto.
17774         * config/rs6000/aix43.h: Ditto.
17775         * config/rs6000/aix51.h: Ditto.
17776         * config/rs6000/aix52.h: Ditto.
17777         * config/rs6000/aix53.h: Ditto.
17778         * config/rs6000/aix61.h: Ditto.
17779         * config/rs6000/darwin.h: Ditto.
17780         * config/rs6000/linux.h: Ditto.
17781         * config/rs6000/linux64.h: Ditto.
17782         * config/s390/tpf.h: Ditto.
17783         * config/sol2-10.h: Ditto.
17784         * config/sol2.h: Ditto.
17785         * config/vms/vms.h: Ditto.
17786         * config/vxworks.h: Ditto.
17787         * config/linux-android.c (linux_android_libc_has_function):
17788         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
17789         * config/linux-protos.h (linux_android_libc_has_function):
17790         New declaration.
17791         * config/i386/i386.c (ix86_libc_has_function): New.
17792         * config/i386/i386-protos.h
17793         (ix86_libc_has_function): New declaration.
17794         * config/i386/i386.md
17795         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
17796         ("isinf<mode>2): Likewise.
17797         * convert.c (convert_to_integer): Using new target hook
17798         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
17799         TARGET_C99_FUNCTIONS.
17800         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
17801         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
17802         * coretypes.h (function_class): New enum for different
17803         classes of functions.
17804         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
17805         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
17806         (TARGET_HAS_SINCOS): Likewise.
17807         (TARGET_LIBC_HAS_FUNCTION): New.
17808         * doc/tm.texi: Regenerated.
17809         * targhooks.h (default_libc_has_function): New declaration.
17810         (no_c99_libc_has_function): Ditto.
17811         (gnu_libc_has_function): Ditto.
17812         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
17813         and TARGET_HAS_SINCOS.
17815 2013-08-18  Jan Hubicka  <jh@suse.cz>
17817         * Makeifle-in (ipa-devirt.o): New.
17818         (GTFILES): Add ipa-utils.h and ipa-devirt.c
17819         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
17820         (analyze_functions): Look into possible targets of polymorphic call.
17821         * dumpfile.c (dump_files): Add type-inheritance dump.
17822         * dumpfile.h (TDI_inheritance): New.
17823         * ipa-devirt.c: New file.
17824         * ipa-utils.h (odr_type_d): Forward declare.
17825         (odr_type): New type.
17826         (build_type_inheritance_graph): Declare.
17827         (possible_polymorphic_call_targets): Declare and introduce inline
17828         variant when only edge is pased.
17829         (dump_possible_polymorphic_call_targets): Likewise.
17830         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
17831         * tree.c (type_in_anonymous_namespace_p): Break out from ...
17832         (types_same_for_odr): ... here.
17833         * tree.h (type_in_anonymous_namespace_p): Declare.
17835 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
17837         PR tree-optimization/58006
17838         * tree-parloops.c (take_address_of): Don't ICE if get_name
17839         returns NULL.
17840         (eliminate_local_variables_stmt): Remove clobber stmts.
17842 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
17844         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
17845         error message is issued for an alias to undefined symbol.
17847 2013-08-18  Jan Hubicka  <jh@suse.cz>
17849         * cgraph.c (cgraph_create_indirect_edge): Discover
17850         polymorphic calls and record basic info into indirect_info.
17851         * gimple-fold.c (gimple_fold_call): When doing BINFO based
17852         devirtualization, ignore objc function calls.
17853         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
17854         call with no parm index info.
17855         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
17856         * tree.c (virtual_method_call_p): New function.
17857         * tree.h (virtual_method_call_p): Declare.
17859 2013-08-16  Jan Hubicka  <jh@suse.cz>
17861         PR middle-end/58179
17862         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
17864 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
17866         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
17867         attribute.
17869 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
17871         * gengtype.c (type_for_name): Add special-case support for
17872         locating types within the "gcc::" namespace.
17873         (open_base_files): Emit a "using namespace gcc" directive.
17875 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
17877         PR target/58160
17878         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
17879         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
17881         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
17882         array instead of each individual operand as a separate argument.
17883         (emit_fusion_gpr_load): Likewise.
17884         (expand_fusion_gpr_load): Add new function declaration.
17886         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
17887         signature to have the operands passed as an array, instead of as
17888         separate arguments.  Allow ZERO_EXTEND to be in the memory
17889         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
17890         depend on the register live/dead flags when peepholes are run.
17891         (expand_fusion_gpr_load): New function to be called from the
17892         peephole2 pass, to change the register that addis sets to be the
17893         target register.
17894         (emit_fusion_gpr_load): Change the calling signature to have the
17895         operands passed as an array, instead of as separate arguments.
17896         Allow ZERO_EXTEND to be in the memory address, and also
17897         SIGN_EXTEND if -mpower8-fusion-sign.
17899         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
17900         unspec enumeration.
17901         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
17902         adjust the register addis loads up in the peephole2 pass.  Do not
17903         depend on the register live/dead state when the peephole pass is done.
17905 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
17907         * gengtype.c (create_user_defined_type): Ensure that the kind
17908         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
17909         declaration is seen before the GTY((user)) marking.
17911 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17913         PR target/58105
17914         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
17916 2013-08-16  Jan Hubicka  <jh@suse.cz>
17918         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
17919         arugment expected_type.
17920         (gimple_fold_call): Use it.
17921         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
17922         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
17923         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
17924         (try_make_edge_direct_virtual_call): Likewise.
17925         * tree.c (obj_type_ref_class): New.
17926         * tree.h (obj_type_ref_class): Use it.
17928 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17930         * sched-vis.c (rtl_slim_pp_initialized): Remove.
17931         (rtl_slim_pp): Likewise.
17932         (init_rtl_slim_pretty_print): Likewise.
17933         (dump_value_slim):  Don't call it.  Use local pretty printer.
17934         (dump_insn_slim): Likewise.
17935         (dump_rtl_slim): Likewise.
17936         (str_pattern_slim): Likewise.
17937         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
17938         Simplify.
17940 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
17942         PR tree-optimization/58164
17943         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
17944         walk gimple_goto_dest of GIMPLE_GOTO.
17946         PR tree-optimization/58165
17947         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
17948         bi_call must be the last stmt in a bb, don't split_block, instead
17949         use fallthru edge from it and give up if there is none.
17950         Release conds vector when returning early.
17952 2013-08-14  Xinliang David Li  <davidxl@google.com>
17954         * config/i386/i386.c (ix86_option_override_internal):
17955         Remove unused variable and field.
17957 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17959         PR target/57949
17960         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
17961         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
17962         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
17963         and Linux, correct BLKmode alignment when 128-bit alignment is
17964         required and compatibility flag is not set.
17965         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
17966         for zero-size arguments when compatibility flag is not set.
17968 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
17970         PR tree-optimization/58145
17971         * tree-sra.c (build_ref_for_offset): If prev_base has
17972         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
17974 2013-08-14  Xinliang David Li  <davidxl@google.com>
17976         * config/i386/i386.c (ix86_option_override_internal):
17977         Fix uninitialized variable error.
17979 2013-08-14  Xinliang David Li  <davidxl@google.com>
17981         * config/i386/i386.opt: Define two new options.
17982         * config/i386/x86-tune.def: Add arch selector field in macros.
17983         * config/i386/i386.h: Adjust macro definition.
17984         * config/i386/i386.c (ix86_option_override_internal):
17985         Refactor the code.
17986         (parse_mtune_ctrl_str): New function.
17987         (set_ix86_tune_features): New function.
17988         (ix86_function_specific_restore): Call the new helper function.
17990 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
17992         PR rtl-optimization/57662
17993         * sel-sched.c (code_motion_process_successors): When the current insn
17994         is removed after the recursive traversal, break from the loop.
17995         Add comments and debug printouts.
17997 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
17998             Alexandre Oliva  <aoliva@redhat.com>
18000         PR target/58067
18001         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
18002         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
18003         there also UNSPEC_PLTOFF.
18005 2013-08-14  Marek Polacek  <polacek@redhat.com>
18007         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
18008         NUM_CONDITIONS bit positions.
18010 2013-08-13  Cary Coutant  <ccoutant@google.com>
18012         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
18013         (attr_checksum): Hash vector contents instead of pointer.
18014         (attr_checksum_ordered): Likewise.
18016 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
18018         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
18019         when Pmode != word_mode.  Add length_address attribute.
18020         (sse3_monitor_<mode>): Merge from sse3_monitor and
18021         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
18022         Pmode != word_mode.  Update insn length attribute.
18023         * config/i386/i386.c (ix86_option_override_internal): Update
18024         ix86_gen_monitor selection for merged sse3_monitor insn.
18026 2013-08-13  Julian Brown  <julian@codesourcery.com>
18028         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18029         perform invalid legitimization on greater-than-word-size modes for
18030         TARGET_E500_DOUBLE.
18032 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
18034         * ira.c (setup_class_translate_array): Use aclass instead of cl
18035         for classes not fully covered by allocno classes.
18037 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
18039         PR tree-optimization/57661
18040         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
18041         * tree-inline.c (tree_function_versioning): Initialize it.
18042         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
18043         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
18044         that is not being copied.
18046         PR sanitizer/56417
18047         * asan.c (instrument_strlen_call): Fix typo in comment.
18048         Use char * type even for the lhs of POINTER_PLUS_EXPR.
18050 2013-08-13  Steve Ellcey  <sellcey@mips.com>
18052         * config/mips/mips.md (prefetch): Use lw instead of ld on
18053         loongson in 32bit mode.
18055 2013-08-13  Nick Clifton  <nickc@redhat.com>
18057         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
18059 2013-08-13  Jan Hubicka  <jh@suse.cz>
18061         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
18062         introduced edge; fix typo in sanity check.
18063         (cgraph_resolve_speculation): Export; improve diagnostic.
18064         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
18065         speculation at type mismatch.
18066         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
18067         (cgraph_resolve_speculation): Declare.
18068         (symtab_can_be_discarded): New function.
18069         * value-prof.c (gimple_ic_transform): Remove actual transform code.
18070         * ipa-inline-transform.c (speculation_removed): New global var.
18071         (clone_inlined_nodes): See if speculation can be removed.
18072         (inline_call): If speculations was removed, we growths may not match.
18073         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
18074         (speculation_useful_p): New function.
18075         (resolve_noninline_speculation): New function.
18076         (inline_small_functions): Resolve useless speculations.
18077         * ipa-inline.h (speculation_useful_p): Declare
18078         * ipa.c (can_replace_by_local_alias): Simplify.
18079         (ipa_profile): Produce speculative calls in non-lto, too;
18080         add simple cost model; produce local aliases.
18082 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
18084         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
18085         PASS_MANAGER_H.
18087 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
18089         * config/i386/i386.c (ix86_function_versions): Use error + inform.
18091 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
18093         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
18094         iterator instead of X87MODEF.
18096 2013-08-12  Perez Read  <netfirewall@gmail.com>
18098         PR target/58132
18099         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
18100         operand 0 for intel asm alternative.
18101         (*movabs<mode>_2): Ditto for operand 1.
18103 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
18105         * config/aarch64/arm_none.h
18106         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
18108 2013-08-12  Nick Clifton  <nickc@redhat.com>
18110         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
18112 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
18114         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
18115         expand for QI/HImode operand to produce more effictive code for
18116         unsigned char(short) --> float(double) conversion.
18118 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
18120         * doc/invoke.texi: Mention that -ftls-model does not force the final
18121         model.
18123 2013-08-12  Marek Polacek  <polacek@redhat.com>
18124             Marc Glisse  <marc.glisse@inria.fr>
18126         PR tree-optimization/57980
18127         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
18128         when creating -1 constant.
18130 2013-08-10  Jan Hubicka  <jh@suse.cz>
18132         Workaround binutils PR14342.
18133         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
18134         (gimple_init_edge_profiler): Likewise.
18135         (gimple_gen_ic_func_profiler): Likewise.
18137 2013-08-09  Jan Hubicka  <jh@suse.cz>
18139         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
18141 2013-08-09  Xinliang David Li  <davidxl@google.com>
18143         * config/i386/stringop.def: New file.
18144         * config/i386/stringop.opt: New file.
18145         * config/i386/i386-opts.h: Include stringopt.def.
18146         * config/i386/i386.opt: Include stringopt.opt.
18147         * config/i386/i386.c (ix86_option_override_internal):
18148         Override default size based stringop inline strategies with options.
18149         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
18150         New function.
18152 2013-08-09  Jan Hubicka  <jh@suse.cz>
18154         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
18156 2013-08-09  Jan Hubicka  <jh@suse.cz>
18158         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
18159         CGRAPH_FREQ_MAX.
18160         (dump_cgraph_node): Dump profile-id.
18161         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
18162         and common_target_probability.
18163         * lto-cgraph.c (lto_output_edge): Stream common targets.
18164         (lto_output_node): Stream profile ids.
18165         (input_node): Stream profile ids.
18166         (input_edge): Stream common targets.
18167         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
18168         * ipa.c: Include value-prof.h
18169         (ipa_profile_generate_summary): Turn indirect call statement histograms
18170         into common targets.
18171         (ipa_profile): Turn common targets into speculative edges.
18173 2013-08-09  Jan Hubicka  <jh@suse.cz>
18175         * cgraph.h (cgraph_node): Add profile_id.
18176         * value-prof.c (cgraph_node_map): Turn into pointer_map.
18177         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
18178         (del_node_map): Update.
18179         (find_func_by_funcdef_no): Replace by ...
18180         (find_func_by_profile_id): ... this one.
18181         (gimple_ic_transform): Do not remove useful histograms when
18182         speculation is not done; dump info when indirect call removal
18183         can happen at LTO.
18184         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
18185         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
18186         (__gcov_indirect_call_profiler_v2): .. this one.
18187         * profile.h (init_node_map): Update.
18188         * coverage.c (coverage_compute_profile_id): New function.
18189         * coverage.h (coverage_compute_profile_id): Declare.
18190         * tree-profile.c (init_ic_make_global_vars): Make
18191         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
18192         (gimple_init_edge_profiler): Update prototype of
18193         __gcov_indirect_call_profiler.
18194         (gimple_gen_ic_func_profiler): Simplify.
18195         (tree_profiling): Use init_node_map
18197 2013-08-09  Jan Hubicka  <jh@suse.cz>
18199         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
18200         non-speculative refs.
18201         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
18202         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
18203         (cgraph_set_call_stmt): Likewise.
18204         (cgraph_create_edge_1): Fix release checking compilatoin;
18205         clear lto_stmt_uid.
18206         (cgraph_free_edge): Free indirect info.
18207         (cgraph_turn_edge_to_speculative): New function.
18208         (cgraph_speculative_call_info): New function.
18209         (cgraph_make_edge_direct): Return direct edge; handle speculation.
18210         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
18211         (dump_cgraph_node): Dump speculation.
18212         (verify_edge_count_and_frequency): Accept speculative edges.
18213         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
18214         (verify_cgraph_node): Handle speculation.
18215         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
18216         (cgraph_set_call_stmt): Update prototype.
18217         (cgraph_make_edge_direct): Update prototype.
18218         (cgraph_speculative_call_info): Declare.
18219         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
18220         to change; update call of ipa_find_references.
18221         * ipa-ref.c (ipa_record_reference): Fix return value; clear
18222         lto_stmt_uid and speculative flags.
18223         (ipa_dump_references): Dump speculation.
18224         (ipa_clone_references): Clone speculative flag.
18225         (ipa_clone_referring): Likewise.
18226         (ipa_clone_ref): New function.
18227         (ipa_find_reference): Look into lto_stmt_uids
18228         (ipa_clear_stmts_in_references): Do not clear speculative calls.
18229         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
18230         (ipa_find_reference): Update declaration.
18231         (ipa_clone_ref): Declare.
18232         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
18233         stream speculative flag.
18234         (lto_output_ref): Stream statements uids and speculation.
18235         (input_ref): Likewise.
18236         (input_edge): Stream speuclation.
18237         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
18238         (cgraph_set_call_stmt_including_clones): Handle speculation.
18239         * ipa-inline.c (heap_edge_removal_hook): New function.
18240         (inline_small_functions): Register it.
18241         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
18242         also initialize refs.
18243         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
18244         edge to change.
18245         (try_make_edge_direct_simple_call): Likewise.
18246         (try_make_edge_direct_simple_call): Likewise.
18247         (update_indirect_edges_after_inlining): Likewise.
18248         (remove_described_reference): Look proper lto_stmt_uid.
18249         (propagate_controlled_uses): Likewise.
18250         (propagate_controlled_uses): Liekwise.
18251         * tree-inline.c (copy_bb): Copy speculative edges.
18252         (redirect_all_calls): New function.
18253         (copy_cfg_body): Do redirection after loop info is updated.
18254         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
18256 2013-08-09  Jan Hubicka  <jh@suse.cz>
18258         * lto-streamer-out.c (output_function): Renumber PHIs.
18259         * lto-streamer-in.c (input_function): Likewise.
18261 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
18263         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
18264         (get_lane_unsigned): Likewise.
18265         (dup_lane_scalar): Likewise.
18266         (get_lane): enable for VALL.
18267         * config/aarch64/aarch64-simd.md
18268         (aarch64_dup_lane_scalar<mode>): Remove.
18269         (aarch64_get_lane_signed<mode>): Likewise.
18270         (aarch64_get_lane_unsigned<mode>): Likewise.
18271         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
18272         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
18273         (aarch64_get_lane<mode>): Enable for all vector modes.
18274         (aarch64_get_lanedi): Remove misleading constraints.
18275         * config/aarch64/arm_neon.h
18276         (__aarch64_vget_lane_any): Define.
18277         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
18278         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
18279         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
18280         * config/aarch64/iterators.md (VDQQH): New.
18281         (VDQQHS): Likewise.
18282         (vwcore): Likewise.
18284 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
18286         * configure.ac: Add GAS check for LEON instructions on SPARC.
18287         * configure: Regenerate.
18288         * config.in: Likewise.
18289         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
18290         sparc*-*-* block.
18291         * config/sparc/sparc.opt (LEON, LEON3): New masks.
18292         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
18293         for LEON or LEON3.
18294         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
18295         (AS_LEON_FLAG): New macro.
18296         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
18297         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
18298         Deal with LEON and LEON3 for the memory model.
18299         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
18300         (atomic_compare_and_swap<mode>_1): Likewise.
18301         (*atomic_compare_and_swap<mode>_1): Likewise.
18303 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18305         * config/arm/neon.md (vcond): Fix floating-point vector
18306         comparisons against 0.
18308 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
18310         * lra-constraints.c (emit_spill_move): Remove assert.
18311         (process_alt_operands): Add more debugging
18312         output.  Increase reject for spilling into memory.  Decrease
18313         reject for reloading scratch.
18314         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
18316 2013-08-08  Steve Ellcey  <sellcey@mips.com>
18318         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
18319         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
18320         micromips incompatible.  Add nan2008.
18321         (MULTILIB_DIRNAMES): Add nan2008.
18322         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18323         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
18324         and micromips incompatible.  Add nan2008.
18325         (MULTILIB_DIRNAMES): Add nan2008.
18326         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18328 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
18330         PR rtl-optimization/58079
18331         * combine.c (combine_simplify_rtx): Avoid using SUBST if
18332         simplify_comparison has widened a comparison with an integer.
18334 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18336         * config/arm/neon.md (movmisalign<mode>): Disable when we
18337         don't allow unaligned accesses.
18338         (*movmisalign<mode>_neon_store): Likewise.
18339         (*movmisalign<mode>_neon_load): Likewise.
18340         (*movmisalign<mode>_neon_store): Likewise.
18341         (*movmisalign<mode>_neon_load): Likewise.
18343 2013-08-08  Jan Hubicka  <jh@suse.cz>
18345         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
18346         (make_pass_rebuild_cgraph_edges): Also clear references.
18347         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
18348         * ipa-inline-transform.c (inline_transform): Remove all references
18349         after inlining.
18350         * cgraphunit.c (expand_function): Remove all references after
18351         expansion.
18352         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
18353         (ipa_find_reference): Rewrite to iterator.
18354         (remove_stmt_references): Likewise.
18355         (ipa_clear_stmts_in_references): New function.
18356         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
18357         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
18358         clear references.
18359         * ipa-split.c (split_function): Remove references in split function.
18361 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
18363         PR target/57431
18364         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
18365         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
18367 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
18369         PR target/56979
18370         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
18371         suggested mode for the assignment isn't compatible with the
18372         registers required.
18374 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18376         PR target/58065
18377         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
18379 2013-08-07  Xinliang David Li  <davidxl@google.com>
18381         * config/i386/i386.opt: New option -mtune-ctrl=.
18382         * config/i386/x86-tune.def: New file.
18383         * config/i386/i386.h: include x86-tune.def.
18384         * config/i386/i386.c (ix86_option_override_internal):
18385         Parsing -mtune-ctrl= option and set tune features.
18387 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
18389         PR other/12081
18390         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
18391         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
18392         to gen_2arg_fn_t.
18394 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
18396         * rtl.h (update_alignments): Declare.
18397         * final.c (grow_label_align): New function extracted from...
18398         (shorten_branches): ...here.  Call it.
18399         (update_alignments): New function.
18400         * reorg.c (sibling_labels): New variable.
18401         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
18402         the new label along with it onto the sibling_labels vector.
18403         (fill_simple_delay_slots): Adjust call to get_label_before.
18404         (fill_slots_from_thread): Likewise.
18405         (relax_delay_slots): Likewise.
18406         (make_return_insns): Likewise.
18407         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
18409 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
18411         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
18412         document its semantics.
18413         (diagnostic_report_diagnostic): Adjust accordingly.
18415 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
18417         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
18418         (sparc_option_override): ...and port to new C++ pass API.
18419         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
18421 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
18423         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
18425 2013-08-06  Caroline Tice  <cmtice@google.com>
18427         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
18428         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
18429         * tree-pass.h: Add pass_vtable_verify.
18430         * varasm.c (assemble_variable): Add code to properly set the comdat
18431         section and name for the .vtable_map_vars section.
18432         (assemble_vtyv_preinit_initializer): New function.
18433         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
18434         LINK_ONCE flag.
18435         * output.h: Add function decl for assemble_vtv_preinit_initializer.
18436         * vtable-verify.c: New file.
18437         * vtable-verify.h: New file.
18438         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
18439         initialiation levels.
18440         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
18441         * passes.def: Insert pass_vtable_verify.
18442         * aclocal.m4: Reorder includes.
18443         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
18444         -fvtv-counts options.
18445         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
18446         as appropriate, if -fvtable-verify=... is used.
18447         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
18448         -fvtable-verify=... is used.
18449         * Makefile.in (OBJS):  Add vtable-verify.o to list.
18450         (vtable-verify.o): Add new build rule.
18451         (GTFILES): Add vtable-verify.c to list.
18452         * common.opt (fvtable-verify=): New flag.
18453         (vtv_priority): Values for fvtable-verify= flag.
18454         (fvtv-counts): New flag.
18455         (fvtv-debug): New flag.
18456         * tree.h (save_vtable_map_decl): New extern function decl.
18458 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
18460         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
18461         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
18462         (pass_data_rl78_devirt): ...new pass_data instance and...
18463         (make_pass_rl78_devirt): ...new function.
18464         (rl78_asm_file_start): Port pass registration to new C++ API.
18466 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
18468         * coretypes.h (rtl_opt_pass): Add.
18469         (gcc::context): Add.
18470         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
18471         (epiphany_init): Port to new C++ pass API.
18472         (epiphany_optimize_mode_switching): Likewise.
18473         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
18474         (pass_manager::get_pass_mode_switching): New.
18475         (pass_manager::get_pass_peephole2): New.
18476         * mode-switching.c (pass_mode_switching): Add clone method.
18477         * recog.c (pass_peephole2): Add clone method.
18478         (pass_split_all_insns): Add clone method.
18480 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
18482         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
18483         (mips_option_override): ...here, porting to new C++ API for passes.
18485 2013-08-06  Jan Hubicka  <jh@suse.cz>
18487         * cgraph.c (cgraph_get_body): New function based on lto.c
18488         implementation.
18489         * cgraph.h (cgraph_get_body): Declare.
18490         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
18491         LTO paths.
18492         * cgraphunit.c (expand_function): Get body prior expanding.
18493         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
18494         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
18495         really need.
18496         * passes.c (do_per_function_toporder): Get body.
18497         * tree-inline.c (expand_call_inline): Get body prior inlining it.
18498         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
18500 2013-08-06  Martin Jambor  <mjambor@suse.cz>
18502         PR fortran/57987
18503         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
18504         is not re-finalized.  Rename second parameter to no_collect.
18506 2013-08-06  Martin Jambor  <mjambor@suse.cz>
18508         PR middle-end/58041
18509         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
18510         MEM_REF has proper alignment information.
18512 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
18514         PR other/12081
18515         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
18516         class insn_gen_fn.
18517         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
18518         rtx (*) (rtx, ...) with insn_gen_fn.
18519         * genoutput.c (output_insn_data): Cast gen_? function pointers to
18520         insn_gen_fn::stored_funcptr.  Add initializer braces.
18522 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
18524         Rewrite how instances of passes are cloned to remove assumptions
18525         about their sizes (thus allowing pass subclasses to have
18526         additional data fields, albeit non-GC-managed ones at this point).
18528         * passes.c (make_pass_instance): Now that passes have clone
18529         methods, rewrite this function to eliminate XNEW and memcpy
18530         calls that used hardcoded sizes.  Since this function no longer
18531         creates pass instances, rename it to...
18532         (add_pass_instance): ...this.  Document the old way that passes were
18533         numbered and flagged, and rework this function to continue using it.
18534         (next_pass_1): Add an initial_pass argument for use by
18535         add_pass_instance.
18536         (position_pass): When adding multiple instances of a pass, use
18537         the pass's clone method, rather than relying on the XNEW/memcpy
18538         within the former make_pass_instance (now add_pass_instance).
18539         (pass_manager::pass_manager): When invoking next_pass_1, also supply
18540         the initial instance of the current pass within the pass manager.
18542 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
18544         This is the automated part of the conversion of passes from C
18545         structs to C++ classes.
18547         Patch autogenerated by refactor_passes.py from
18548         https://github.com/davidmalcolm/gcc-refactoring-scripts
18549         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
18551         * asan.c (pass_asan): Convert from a global struct to a subclass of
18552         gimple_opt_pass along with...
18553         (pass_data_asan): ...new pass_data instance and...
18554         (make_pass_asan): ...new function.
18555         (pass_asan_O0): Convert from a global struct to a subclass of
18556         gimple_opt_pass along with...
18557         (pass_data_asan_O0): ...new pass_data instance and...
18558         (make_pass_asan_O0): ...new function.
18559         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
18560         subclass of rtl_opt_pass along with...
18561         (pass_data_inc_dec): ...new pass_data instance and...
18562         (make_pass_inc_dec): ...new function.
18563         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
18564         a subclass of rtl_opt_pass along with...
18565         (pass_data_reorder_blocks): ...new pass_data instance and...
18566         (make_pass_reorder_blocks): ...new function.
18567         (pass_duplicate_computed_gotos): Convert from a global struct to a
18568         subclass of rtl_opt_pass along with...
18569         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
18570         (make_pass_duplicate_computed_gotos): ...new function.
18571         (pass_partition_blocks): Convert from a global struct to a subclass of
18572         rtl_opt_pass along with...
18573         (pass_data_partition_blocks): ...new pass_data instance and...
18574         (make_pass_partition_blocks): ...new function.
18575         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
18576         struct to a subclass of rtl_opt_pass along with...
18577         (pass_data_branch_target_load_optimize1): ...new pass_data instance
18578         and...
18579         (make_pass_branch_target_load_optimize1): ...new function.
18580         (pass_branch_target_load_optimize2): Convert from a global struct to a
18581         subclass of rtl_opt_pass along with...
18582         (pass_data_branch_target_load_optimize2): ...new pass_data instance
18583         and...
18584         (make_pass_branch_target_load_optimize2): ...new function.
18585         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
18586         of rtl_opt_pass along with...
18587         (pass_data_jump): ...new pass_data instance and...
18588         (make_pass_jump): ...new function.
18589         (pass_jump2): Convert from a global struct to a subclass of
18590         rtl_opt_pass along with...
18591         (pass_data_jump2): ...new pass_data instance and...
18592         (make_pass_jump2): ...new function.
18593         * cfgexpand.c (pass_expand): Convert from a global struct to a
18594         subclass of rtl_opt_pass along with...
18595         (pass_data_expand): ...new pass_data instance and...
18596         (make_pass_expand): ...new function.
18597         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
18598         of rtl_opt_pass along with...
18599         (pass_data_free_cfg): ...new pass_data instance and...
18600         (make_pass_free_cfg): ...new function.
18601         (pass_into_cfg_layout_mode): Convert from a global struct to a
18602         subclass of rtl_opt_pass along with...
18603         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
18604         (make_pass_into_cfg_layout_mode): ...new function.
18605         (pass_outof_cfg_layout_mode): Convert from a global struct to a
18606         subclass of rtl_opt_pass along with...
18607         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
18608         (make_pass_outof_cfg_layout_mode): ...new function.
18609         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
18610         struct to a subclass of gimple_opt_pass along with...
18611         (pass_data_build_cgraph_edges): ...new pass_data instance and...
18612         (make_pass_build_cgraph_edges): ...new function.
18613         (pass_rebuild_cgraph_edges): Convert from a global struct to a
18614         subclass of gimple_opt_pass along with...
18615         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
18616         (make_pass_rebuild_cgraph_edges): ...new function.
18617         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
18618         subclass of gimple_opt_pass along with...
18619         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
18620         and...
18621         (make_pass_remove_cgraph_callee_edges): ...new function.
18622         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
18623         struct to a subclass of rtl_opt_pass along with...
18624         (pass_data_stack_adjustments): ...new pass_data instance and...
18625         (make_pass_stack_adjustments): ...new function.
18626         * combine.c (pass_combine): Convert from a global struct to a subclass
18627         of rtl_opt_pass along with...
18628         (pass_data_combine): ...new pass_data instance and...
18629         (make_pass_combine): ...new function.
18630         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
18631         global struct to a subclass of rtl_opt_pass along with...
18632         (pass_data_compare_elim_after_reload): ...new pass_data instance
18633         and...
18634         (make_pass_compare_elim_after_reload): ...new function.
18635         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
18636         of rtl_opt_pass along with...
18637         (pass_data_rtl_cprop): ...new pass_data instance and...
18638         (make_pass_rtl_cprop): ...new function.
18639         * cse.c (pass_cse): Convert from a global struct to a subclass of
18640         rtl_opt_pass along with...
18641         (pass_data_cse): ...new pass_data instance and...
18642         (make_pass_cse): ...new function.
18643         (pass_cse2): Convert from a global struct to a subclass of
18644         rtl_opt_pass along with...
18645         (pass_data_cse2): ...new pass_data instance and...
18646         (make_pass_cse2): ...new function.
18647         (pass_cse_after_global_opts): Convert from a global struct to a
18648         subclass of rtl_opt_pass along with...
18649         (pass_data_cse_after_global_opts): ...new pass_data instance and...
18650         (make_pass_cse_after_global_opts): ...new function.
18651         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
18652         of rtl_opt_pass along with...
18653         (pass_data_ud_rtl_dce): ...new pass_data instance and...
18654         (make_pass_ud_rtl_dce): ...new function.
18655         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
18656         rtl_opt_pass along with...
18657         (pass_data_fast_rtl_dce): ...new pass_data instance and...
18658         (make_pass_fast_rtl_dce): ...new function.
18659         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
18660         a subclass of rtl_opt_pass along with...
18661         (pass_data_df_initialize_opt): ...new pass_data instance and...
18662         (make_pass_df_initialize_opt): ...new function.
18663         (pass_df_initialize_no_opt): Convert from a global struct to a
18664         subclass of rtl_opt_pass along with...
18665         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
18666         (make_pass_df_initialize_no_opt): ...new function.
18667         (pass_df_finish): Convert from a global struct to a subclass of
18668         rtl_opt_pass along with...
18669         (pass_data_df_finish): ...new pass_data instance and...
18670         (make_pass_df_finish): ...new function.
18671         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
18672         rtl_opt_pass along with...
18673         (pass_data_rtl_dse1): ...new pass_data instance and...
18674         (make_pass_rtl_dse1): ...new function.
18675         (pass_rtl_dse2): Convert from a global struct to a subclass of
18676         rtl_opt_pass along with...
18677         (pass_data_rtl_dse2): ...new pass_data instance and...
18678         (make_pass_rtl_dse2): ...new function.
18679         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
18680         subclass of rtl_opt_pass along with...
18681         (pass_data_dwarf2_frame): ...new pass_data instance and...
18682         (make_pass_dwarf2_frame): ...new function.
18683         * except.c (pass_set_nothrow_function_flags): Convert from a global
18684         struct to a subclass of rtl_opt_pass along with...
18685         (pass_data_set_nothrow_function_flags): ...new pass_data instance
18686         and...
18687         (make_pass_set_nothrow_function_flags): ...new function.
18688         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
18689         subclass of rtl_opt_pass along with...
18690         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
18691         and...
18692         (make_pass_convert_to_eh_region_ranges): ...new function.
18693         * final.c (pass_compute_alignments): Convert from a global struct to a
18694         subclass of rtl_opt_pass along with...
18695         (pass_data_compute_alignments): ...new pass_data instance and...
18696         (make_pass_compute_alignments): ...new function.
18697         (pass_final): Convert from a global struct to a subclass of
18698         rtl_opt_pass along with...
18699         (pass_data_final): ...new pass_data instance and...
18700         (make_pass_final): ...new function.
18701         (pass_shorten_branches): Convert from a global struct to a subclass of
18702         rtl_opt_pass along with...
18703         (pass_data_shorten_branches): ...new pass_data instance and...
18704         (make_pass_shorten_branches): ...new function.
18705         (pass_clean_state): Convert from a global struct to a subclass of
18706         rtl_opt_pass along with...
18707         (pass_data_clean_state): ...new pass_data instance and...
18708         (make_pass_clean_state): ...new function.
18709         * function.c (pass_instantiate_virtual_regs): Convert from a global
18710         struct to a subclass of rtl_opt_pass along with...
18711         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
18712         (make_pass_instantiate_virtual_regs): ...new function.
18713         (pass_leaf_regs): Convert from a global struct to a subclass of
18714         rtl_opt_pass along with...
18715         (pass_data_leaf_regs): ...new pass_data instance and...
18716         (make_pass_leaf_regs): ...new function.
18717         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
18718         subclass of rtl_opt_pass along with...
18719         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
18720         and...
18721         (make_pass_thread_prologue_and_epilogue): ...new function.
18722         (pass_match_asm_constraints): Convert from a global struct to a
18723         subclass of rtl_opt_pass along with...
18724         (pass_data_match_asm_constraints): ...new pass_data instance and...
18725         (make_pass_match_asm_constraints): ...new function.
18726         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
18727         subclass of rtl_opt_pass along with...
18728         (pass_data_rtl_fwprop): ...new pass_data instance and...
18729         (make_pass_rtl_fwprop): ...new function.
18730         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
18731         rtl_opt_pass along with...
18732         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
18733         (make_pass_rtl_fwprop_addr): ...new function.
18734         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
18735         rtl_opt_pass along with...
18736         (pass_data_rtl_pre): ...new pass_data instance and...
18737         (make_pass_rtl_pre): ...new function.
18738         (pass_rtl_hoist): Convert from a global struct to a subclass of
18739         rtl_opt_pass along with...
18740         (pass_data_rtl_hoist): ...new pass_data instance and...
18741         (make_pass_rtl_hoist): ...new function.
18742         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
18743         subclass of gimple_opt_pass along with...
18744         (pass_data_lower_cf): ...new pass_data instance and...
18745         (make_pass_lower_cf): ...new function.
18746         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
18747         from a global struct to a subclass of gimple_opt_pass along with...
18748         (pass_data_strength_reduction): ...new pass_data instance and...
18749         (make_pass_strength_reduction): ...new function.
18750         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
18751         of rtl_opt_pass along with...
18752         (pass_data_rtl_ifcvt): ...new pass_data instance and...
18753         (make_pass_rtl_ifcvt): ...new function.
18754         (pass_if_after_combine): Convert from a global struct to a subclass of
18755         rtl_opt_pass along with...
18756         (pass_data_if_after_combine): ...new pass_data instance and...
18757         (make_pass_if_after_combine): ...new function.
18758         (pass_if_after_reload): Convert from a global struct to a subclass of
18759         rtl_opt_pass along with...
18760         (pass_data_if_after_reload): ...new pass_data instance and...
18761         (make_pass_if_after_reload): ...new function.
18762         * init-regs.c (pass_initialize_regs): Convert from a global struct to
18763         a subclass of rtl_opt_pass along with...
18764         (pass_data_initialize_regs): ...new pass_data instance and...
18765         (make_pass_initialize_regs): ...new function.
18766         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
18767         of ipa_opt_pass_d along with...
18768         (pass_data_ipa_cp): ...new pass_data instance and...
18769         (make_pass_ipa_cp): ...new function.
18770         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
18771         global struct to a subclass of gimple_opt_pass along with...
18772         (pass_data_inline_parameters): ...new pass_data instance and...
18773         (make_pass_inline_parameters): ...new function.
18774         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
18775         subclass of gimple_opt_pass along with...
18776         (pass_data_early_inline): ...new pass_data instance and...
18777         (make_pass_early_inline): ...new function.
18778         (pass_ipa_inline): Convert from a global struct to a subclass of
18779         ipa_opt_pass_d along with...
18780         (pass_data_ipa_inline): ...new pass_data instance and...
18781         (make_pass_ipa_inline): ...new function.
18782         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
18783         struct to a subclass of gimple_opt_pass along with...
18784         (pass_data_local_pure_const): ...new pass_data instance and...
18785         (make_pass_local_pure_const): ...new function.
18786         (pass_ipa_pure_const): Convert from a global struct to a subclass of
18787         ipa_opt_pass_d along with...
18788         (pass_data_ipa_pure_const): ...new pass_data instance and...
18789         (make_pass_ipa_pure_const): ...new function.
18790         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
18791         to a subclass of ipa_opt_pass_d along with...
18792         (pass_data_ipa_reference): ...new pass_data instance and...
18793         (make_pass_ipa_reference): ...new function.
18794         * ipa-split.c (pass_split_functions): Convert from a global struct to
18795         a subclass of gimple_opt_pass along with...
18796         (pass_data_split_functions): ...new pass_data instance and...
18797         (make_pass_split_functions): ...new function.
18798         (pass_feedback_split_functions): Convert from a global struct to a
18799         subclass of gimple_opt_pass along with...
18800         (pass_data_feedback_split_functions): ...new pass_data instance and...
18801         (make_pass_feedback_split_functions): ...new function.
18802         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
18803         global struct to a subclass of simple_ipa_opt_pass along with...
18804         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
18805         instance and...
18806         (make_pass_ipa_function_and_variable_visibility): ...new function.
18807         (pass_ipa_free_inline_summary): Convert from a global struct to a
18808         subclass of simple_ipa_opt_pass along with...
18809         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
18810         (make_pass_ipa_free_inline_summary): ...new function.
18811         (pass_ipa_whole_program_visibility): Convert from a global struct to a
18812         subclass of ipa_opt_pass_d along with...
18813         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
18814         and...
18815         (make_pass_ipa_whole_program_visibility): ...new function.
18816         (pass_ipa_profile): Convert from a global struct to a subclass of
18817         ipa_opt_pass_d along with...
18818         (pass_data_ipa_profile): ...new pass_data instance and...
18819         (make_pass_ipa_profile): ...new function.
18820         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
18821         ipa_opt_pass_d along with...
18822         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
18823         (make_pass_ipa_cdtor_merge): ...new function.
18824         * ira.c (pass_ira): Convert from a global struct to a subclass of
18825         rtl_opt_pass along with...
18826         (pass_data_ira): ...new pass_data instance and...
18827         (make_pass_ira): ...new function.
18828         (pass_reload): Convert from a global struct to a subclass of
18829         rtl_opt_pass along with...
18830         (pass_data_reload): ...new pass_data instance and...
18831         (make_pass_reload): ...new function.
18832         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
18833         subclass of rtl_opt_pass along with...
18834         (pass_data_cleanup_barriers): ...new pass_data instance and...
18835         (make_pass_cleanup_barriers): ...new function.
18836         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
18837         of rtl_opt_pass along with...
18838         (pass_data_loop2): ...new pass_data instance and...
18839         (make_pass_loop2): ...new function.
18840         (pass_rtl_loop_init): Convert from a global struct to a subclass of
18841         rtl_opt_pass along with...
18842         (pass_data_rtl_loop_init): ...new pass_data instance and...
18843         (make_pass_rtl_loop_init): ...new function.
18844         (pass_rtl_loop_done): Convert from a global struct to a subclass of
18845         rtl_opt_pass along with...
18846         (pass_data_rtl_loop_done): ...new pass_data instance and...
18847         (make_pass_rtl_loop_done): ...new function.
18848         (pass_rtl_move_loop_invariants): Convert from a global struct to a
18849         subclass of rtl_opt_pass along with...
18850         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
18851         (make_pass_rtl_move_loop_invariants): ...new function.
18852         (pass_rtl_unswitch): Convert from a global struct to a subclass of
18853         rtl_opt_pass along with...
18854         (pass_data_rtl_unswitch): ...new pass_data instance and...
18855         (make_pass_rtl_unswitch): ...new function.
18856         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
18857         subclass of rtl_opt_pass along with...
18858         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
18859         and...
18860         (make_pass_rtl_unroll_and_peel_loops): ...new function.
18861         (pass_rtl_doloop): Convert from a global struct to a subclass of
18862         rtl_opt_pass along with...
18863         (pass_data_rtl_doloop): ...new pass_data instance and...
18864         (make_pass_rtl_doloop): ...new function.
18865         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
18866         a subclass of rtl_opt_pass along with...
18867         (pass_data_lower_subreg): ...new pass_data instance and...
18868         (make_pass_lower_subreg): ...new function.
18869         (pass_lower_subreg2): Convert from a global struct to a subclass of
18870         rtl_opt_pass along with...
18871         (pass_data_lower_subreg2): ...new pass_data instance and...
18872         (make_pass_lower_subreg2): ...new function.
18873         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
18874         struct to a subclass of ipa_opt_pass_d along with...
18875         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
18876         (make_pass_ipa_lto_gimple_out): ...new function.
18877         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
18878         of ipa_opt_pass_d along with...
18879         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
18880         (make_pass_ipa_lto_finish_out): ...new function.
18881         * mode-switching.c (pass_mode_switching): Convert from a global struct
18882         to a subclass of rtl_opt_pass along with...
18883         (pass_data_mode_switching): ...new pass_data instance and...
18884         (make_pass_mode_switching): ...new function.
18885         * modulo-sched.c (pass_sms): Convert from a global struct to a
18886         subclass of rtl_opt_pass along with...
18887         (pass_data_sms): ...new pass_data instance and...
18888         (make_pass_sms): ...new function.
18889         * omp-low.c (pass_expand_omp): Convert from a global struct to a
18890         subclass of gimple_opt_pass along with...
18891         (pass_data_expand_omp): ...new pass_data instance and...
18892         (make_pass_expand_omp): ...new function.
18893         (pass_lower_omp): Convert from a global struct to a subclass of
18894         gimple_opt_pass along with...
18895         (pass_data_lower_omp): ...new pass_data instance and...
18896         (make_pass_lower_omp): ...new function.
18897         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
18898         of gimple_opt_pass along with...
18899         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
18900         (make_pass_diagnose_omp_blocks): ...new function.
18901         * passes.c (pass_early_local_passes): Convert from a global struct to
18902         a subclass of simple_ipa_opt_pass along with...
18903         (pass_data_early_local_passes): ...new pass_data instance and...
18904         (make_pass_early_local_passes): ...new function.
18905         (pass_all_early_optimizations): Convert from a global struct to a
18906         subclass of gimple_opt_pass along with...
18907         (pass_data_all_early_optimizations): ...new pass_data instance and...
18908         (make_pass_all_early_optimizations): ...new function.
18909         (pass_all_optimizations): Convert from a global struct to a subclass
18910         of gimple_opt_pass along with...
18911         (pass_data_all_optimizations): ...new pass_data instance and...
18912         (make_pass_all_optimizations): ...new function.
18913         (pass_all_optimizations_g): Convert from a global struct to a subclass
18914         of gimple_opt_pass along with...
18915         (pass_data_all_optimizations_g): ...new pass_data instance and...
18916         (make_pass_all_optimizations_g): ...new function.
18917         (pass_rest_of_compilation): Convert from a global struct to a subclass
18918         of rtl_opt_pass along with...
18919         (pass_data_rest_of_compilation): ...new pass_data instance and...
18920         (make_pass_rest_of_compilation): ...new function.
18921         (pass_postreload): Convert from a global struct to a subclass of
18922         rtl_opt_pass along with...
18923         (pass_data_postreload): ...new pass_data instance and...
18924         (make_pass_postreload): ...new function.
18925         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
18926         subclass of rtl_opt_pass along with...
18927         (pass_data_gcse2): ...new pass_data instance and...
18928         (make_pass_gcse2): ...new function.
18929         * postreload.c (pass_postreload_cse): Convert from a global struct to
18930         a subclass of rtl_opt_pass along with...
18931         (pass_data_postreload_cse): ...new pass_data instance and...
18932         (make_pass_postreload_cse): ...new function.
18933         * predict.c (pass_profile): Convert from a global struct to a subclass
18934         of gimple_opt_pass along with...
18935         (pass_data_profile): ...new pass_data instance and...
18936         (make_pass_profile): ...new function.
18937         (pass_strip_predict_hints): Convert from a global struct to a subclass
18938         of gimple_opt_pass along with...
18939         (pass_data_strip_predict_hints): ...new pass_data instance and...
18940         (make_pass_strip_predict_hints): ...new function.
18941         * recog.c (pass_peephole2): Convert from a global struct to a subclass
18942         of rtl_opt_pass along with...
18943         (pass_data_peephole2): ...new pass_data instance and...
18944         (make_pass_peephole2): ...new function.
18945         (pass_split_all_insns): Convert from a global struct to a subclass of
18946         rtl_opt_pass along with...
18947         (pass_data_split_all_insns): ...new pass_data instance and...
18948         (make_pass_split_all_insns): ...new function.
18949         (pass_split_after_reload): Convert from a global struct to a subclass
18950         of rtl_opt_pass along with...
18951         (pass_data_split_after_reload): ...new pass_data instance and...
18952         (make_pass_split_after_reload): ...new function.
18953         (pass_split_before_regstack): Convert from a global struct to a
18954         subclass of rtl_opt_pass along with...
18955         (pass_data_split_before_regstack): ...new pass_data instance and...
18956         (make_pass_split_before_regstack): ...new function.
18957         (pass_split_before_sched2): Convert from a global struct to a subclass
18958         of rtl_opt_pass along with...
18959         (pass_data_split_before_sched2): ...new pass_data instance and...
18960         (make_pass_split_before_sched2): ...new function.
18961         (pass_split_for_shorten_branches): Convert from a global struct to a
18962         subclass of rtl_opt_pass along with...
18963         (pass_data_split_for_shorten_branches): ...new pass_data instance
18964         and...
18965         (make_pass_split_for_shorten_branches): ...new function.
18966         * ree.c (pass_ree): Convert from a global struct to a subclass of
18967         rtl_opt_pass along with...
18968         (pass_data_ree): ...new pass_data instance and...
18969         (make_pass_ree): ...new function.
18970         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
18971         subclass of rtl_opt_pass along with...
18972         (pass_data_stack_regs): ...new pass_data instance and...
18973         (make_pass_stack_regs): ...new function.
18974         (pass_stack_regs_run): Convert from a global struct to a subclass of
18975         rtl_opt_pass along with...
18976         (pass_data_stack_regs_run): ...new pass_data instance and...
18977         (make_pass_stack_regs_run): ...new function.
18978         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
18979         subclass of rtl_opt_pass along with...
18980         (pass_data_cprop_hardreg): ...new pass_data instance and...
18981         (make_pass_cprop_hardreg): ...new function.
18982         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
18983         subclass of rtl_opt_pass along with...
18984         (pass_data_reginfo_init): ...new pass_data instance and...
18985         (make_pass_reginfo_init): ...new function.
18986         * regmove.c (pass_regmove): Convert from a global struct to a subclass
18987         of rtl_opt_pass along with...
18988         (pass_data_regmove): ...new pass_data instance and...
18989         (make_pass_regmove): ...new function.
18990         * regrename.c (pass_regrename): Convert from a global struct to a
18991         subclass of rtl_opt_pass along with...
18992         (pass_data_regrename): ...new pass_data instance and...
18993         (make_pass_regrename): ...new function.
18994         * reorg.c (pass_delay_slots): Convert from a global struct to a
18995         subclass of rtl_opt_pass along with...
18996         (pass_data_delay_slots): ...new pass_data instance and...
18997         (make_pass_delay_slots): ...new function.
18998         (pass_machine_reorg): Convert from a global struct to a subclass of
18999         rtl_opt_pass along with...
19000         (pass_data_machine_reorg): ...new pass_data instance and...
19001         (make_pass_machine_reorg): ...new function.
19002         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
19003         of rtl_opt_pass along with...
19004         (pass_data_sched): ...new pass_data instance and...
19005         (make_pass_sched): ...new function.
19006         (pass_sched2): Convert from a global struct to a subclass of
19007         rtl_opt_pass along with...
19008         (pass_data_sched2): ...new pass_data instance and...
19009         (make_pass_sched2): ...new function.
19010         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
19011         to a subclass of rtl_opt_pass along with...
19012         (pass_data_stack_ptr_mod): ...new pass_data instance and...
19013         (make_pass_stack_ptr_mod): ...new function.
19014         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
19015         to a subclass of rtl_opt_pass along with...
19016         (pass_data_rtl_store_motion): ...new pass_data instance and...
19017         (make_pass_rtl_store_motion): ...new function.
19018         * tracer.c (pass_tracer): Convert from a global struct to a subclass
19019         of gimple_opt_pass along with...
19020         (pass_data_tracer): ...new pass_data instance and...
19021         (make_pass_tracer): ...new function.
19022         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
19023         to a subclass of gimple_opt_pass along with...
19024         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
19025         (make_pass_diagnose_tm_blocks): ...new function.
19026         (pass_lower_tm): Convert from a global struct to a subclass of
19027         gimple_opt_pass along with...
19028         (pass_data_lower_tm): ...new pass_data instance and...
19029         (make_pass_lower_tm): ...new function.
19030         (pass_tm_init): Convert from a global struct to a subclass of
19031         gimple_opt_pass along with...
19032         (pass_data_tm_init): ...new pass_data instance and...
19033         (make_pass_tm_init): ...new function.
19034         (pass_tm_mark): Convert from a global struct to a subclass of
19035         gimple_opt_pass along with...
19036         (pass_data_tm_mark): ...new pass_data instance and...
19037         (make_pass_tm_mark): ...new function.
19038         (pass_tm_edges): Convert from a global struct to a subclass of
19039         gimple_opt_pass along with...
19040         (pass_data_tm_edges): ...new pass_data instance and...
19041         (make_pass_tm_edges): ...new function.
19042         (pass_tm_memopt): Convert from a global struct to a subclass of
19043         gimple_opt_pass along with...
19044         (pass_data_tm_memopt): ...new pass_data instance and...
19045         (make_pass_tm_memopt): ...new function.
19046         (pass_ipa_tm): Convert from a global struct to a subclass of
19047         simple_ipa_opt_pass along with...
19048         (pass_data_ipa_tm): ...new pass_data instance and...
19049         (make_pass_ipa_tm): ...new function.
19050         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
19051         subclass of gimple_opt_pass along with...
19052         (pass_data_call_cdce): ...new pass_data instance and...
19053         (make_pass_call_cdce): ...new function.
19054         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
19055         subclass of gimple_opt_pass along with...
19056         (pass_data_build_cfg): ...new pass_data instance and...
19057         (make_pass_build_cfg): ...new function.
19058         (pass_split_crit_edges): Convert from a global struct to a subclass of
19059         gimple_opt_pass along with...
19060         (pass_data_split_crit_edges): ...new pass_data instance and...
19061         (make_pass_split_crit_edges): ...new function.
19062         (pass_warn_function_return): Convert from a global struct to a
19063         subclass of gimple_opt_pass along with...
19064         (pass_data_warn_function_return): ...new pass_data instance and...
19065         (make_pass_warn_function_return): ...new function.
19066         (pass_warn_function_noreturn): Convert from a global struct to a
19067         subclass of gimple_opt_pass along with...
19068         (pass_data_warn_function_noreturn): ...new pass_data instance and...
19069         (make_pass_warn_function_noreturn): ...new function.
19070         (pass_warn_unused_result): Convert from a global struct to a subclass
19071         of gimple_opt_pass along with...
19072         (pass_data_warn_unused_result): ...new pass_data instance and...
19073         (make_pass_warn_unused_result): ...new function.
19074         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
19075         a subclass of gimple_opt_pass along with...
19076         (pass_data_merge_phi): ...new pass_data instance and...
19077         (make_pass_merge_phi): ...new function.
19078         * tree-complex.c (pass_lower_complex): Convert from a global struct to
19079         a subclass of gimple_opt_pass along with...
19080         (pass_data_lower_complex): ...new pass_data instance and...
19081         (make_pass_lower_complex): ...new function.
19082         (pass_lower_complex_O0): Convert from a global struct to a subclass of
19083         gimple_opt_pass along with...
19084         (pass_data_lower_complex_O0): ...new pass_data instance and...
19085         (make_pass_lower_complex_O0): ...new function.
19086         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
19087         subclass of gimple_opt_pass along with...
19088         (pass_data_lower_eh): ...new pass_data instance and...
19089         (make_pass_lower_eh): ...new function.
19090         (pass_refactor_eh): Convert from a global struct to a subclass of
19091         gimple_opt_pass along with...
19092         (pass_data_refactor_eh): ...new pass_data instance and...
19093         (make_pass_refactor_eh): ...new function.
19094         (pass_lower_resx): Convert from a global struct to a subclass of
19095         gimple_opt_pass along with...
19096         (pass_data_lower_resx): ...new pass_data instance and...
19097         (make_pass_lower_resx): ...new function.
19098         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
19099         of gimple_opt_pass along with...
19100         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
19101         (make_pass_lower_eh_dispatch): ...new function.
19102         (pass_cleanup_eh): Convert from a global struct to a subclass of
19103         gimple_opt_pass along with...
19104         (pass_data_cleanup_eh): ...new pass_data instance and...
19105         (make_pass_cleanup_eh): ...new function.
19106         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
19107         to a subclass of simple_ipa_opt_pass along with...
19108         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
19109         (make_pass_ipa_lower_emutls): ...new function.
19110         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
19111         a subclass of gimple_opt_pass along with...
19112         (pass_data_if_conversion): ...new pass_data instance and...
19113         (make_pass_if_conversion): ...new function.
19114         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
19115         subclass of gimple_opt_pass along with...
19116         (pass_data_build_ssa): ...new pass_data instance and...
19117         (make_pass_build_ssa): ...new function.
19118         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
19119         global struct to a subclass of gimple_opt_pass along with...
19120         (pass_data_loop_distribution): ...new pass_data instance and...
19121         (make_pass_loop_distribution): ...new function.
19122         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
19123         subclass of gimple_opt_pass along with...
19124         (pass_data_mudflap_1): ...new pass_data instance and...
19125         (make_pass_mudflap_1): ...new function.
19126         (pass_mudflap_2): Convert from a global struct to a subclass of
19127         gimple_opt_pass along with...
19128         (pass_data_mudflap_2): ...new pass_data instance and...
19129         (make_pass_mudflap_2): ...new function.
19130         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
19131         subclass of gimple_opt_pass along with...
19132         (pass_data_mudflap_1): ...new pass_data instance and...
19133         (make_pass_mudflap_1): ...new function.
19134         (pass_mudflap_2): Convert from a global struct to a subclass of
19135         gimple_opt_pass along with...
19136         (pass_data_mudflap_2): ...new pass_data instance and...
19137         (make_pass_mudflap_2): ...new function.
19138         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
19139         gimple_opt_pass along with...
19140         (pass_data_nrv): ...new pass_data instance and...
19141         (make_pass_nrv): ...new function.
19142         (pass_return_slot): Convert from a global struct to a subclass of
19143         gimple_opt_pass along with...
19144         (pass_data_return_slot): ...new pass_data instance and...
19145         (make_pass_return_slot): ...new function.
19146         * tree-object-size.c (pass_object_sizes): Convert from a global struct
19147         to a subclass of gimple_opt_pass along with...
19148         (pass_data_object_sizes): ...new pass_data instance and...
19149         (make_pass_object_sizes): ...new function.
19150         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
19151         global struct to a subclass of gimple_opt_pass along with...
19152         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
19153         and...
19154         (make_pass_cleanup_cfg_post_optimizing): ...new function.
19155         (pass_fixup_cfg): Convert from a global struct to a subclass of
19156         gimple_opt_pass along with...
19157         (pass_data_fixup_cfg): ...new pass_data instance and...
19158         (make_pass_fixup_cfg): ...new function.
19159         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
19160         (make_pass_mudflap_1): ...new function.
19161         (pass_mudflap_2): Replace declaration with that of...
19162         (make_pass_mudflap_2): ...new function.
19163         (pass_asan): Replace declaration with that of...
19164         (make_pass_asan): ...new function.
19165         (pass_asan_O0): Replace declaration with that of...
19166         (make_pass_asan_O0): ...new function.
19167         (pass_tsan): Replace declaration with that of...
19168         (make_pass_tsan): ...new function.
19169         (pass_tsan_O0): Replace declaration with that of...
19170         (make_pass_tsan_O0): ...new function.
19171         (pass_lower_cf): Replace declaration with that of...
19172         (make_pass_lower_cf): ...new function.
19173         (pass_refactor_eh): Replace declaration with that of...
19174         (make_pass_refactor_eh): ...new function.
19175         (pass_lower_eh): Replace declaration with that of...
19176         (make_pass_lower_eh): ...new function.
19177         (pass_lower_eh_dispatch): Replace declaration with that of...
19178         (make_pass_lower_eh_dispatch): ...new function.
19179         (pass_lower_resx): Replace declaration with that of...
19180         (make_pass_lower_resx): ...new function.
19181         (pass_build_cfg): Replace declaration with that of...
19182         (make_pass_build_cfg): ...new function.
19183         (pass_early_tree_profile): Replace declaration with that of...
19184         (make_pass_early_tree_profile): ...new function.
19185         (pass_cleanup_eh): Replace declaration with that of...
19186         (make_pass_cleanup_eh): ...new function.
19187         (pass_sra): Replace declaration with that of...
19188         (make_pass_sra): ...new function.
19189         (pass_sra_early): Replace declaration with that of...
19190         (make_pass_sra_early): ...new function.
19191         (pass_early_ipa_sra): Replace declaration with that of...
19192         (make_pass_early_ipa_sra): ...new function.
19193         (pass_tail_recursion): Replace declaration with that of...
19194         (make_pass_tail_recursion): ...new function.
19195         (pass_tail_calls): Replace declaration with that of...
19196         (make_pass_tail_calls): ...new function.
19197         (pass_tree_loop): Replace declaration with that of...
19198         (make_pass_tree_loop): ...new function.
19199         (pass_tree_loop_init): Replace declaration with that of...
19200         (make_pass_tree_loop_init): ...new function.
19201         (pass_lim): Replace declaration with that of...
19202         (make_pass_lim): ...new function.
19203         (pass_tree_unswitch): Replace declaration with that of...
19204         (make_pass_tree_unswitch): ...new function.
19205         (pass_predcom): Replace declaration with that of...
19206         (make_pass_predcom): ...new function.
19207         (pass_iv_canon): Replace declaration with that of...
19208         (make_pass_iv_canon): ...new function.
19209         (pass_scev_cprop): Replace declaration with that of...
19210         (make_pass_scev_cprop): ...new function.
19211         (pass_empty_loop): Replace declaration with that of...
19212         (make_pass_empty_loop): ...new function.
19213         (pass_record_bounds): Replace declaration with that of...
19214         (make_pass_record_bounds): ...new function.
19215         (pass_graphite): Replace declaration with that of...
19216         (make_pass_graphite): ...new function.
19217         (pass_graphite_transforms): Replace declaration with that of...
19218         (make_pass_graphite_transforms): ...new function.
19219         (pass_if_conversion): Replace declaration with that of...
19220         (make_pass_if_conversion): ...new function.
19221         (pass_loop_distribution): Replace declaration with that of...
19222         (make_pass_loop_distribution): ...new function.
19223         (pass_vectorize): Replace declaration with that of...
19224         (make_pass_vectorize): ...new function.
19225         (pass_slp_vectorize): Replace declaration with that of...
19226         (make_pass_slp_vectorize): ...new function.
19227         (pass_complete_unroll): Replace declaration with that of...
19228         (make_pass_complete_unroll): ...new function.
19229         (pass_complete_unrolli): Replace declaration with that of...
19230         (make_pass_complete_unrolli): ...new function.
19231         (pass_parallelize_loops): Replace declaration with that of...
19232         (make_pass_parallelize_loops): ...new function.
19233         (pass_loop_prefetch): Replace declaration with that of...
19234         (make_pass_loop_prefetch): ...new function.
19235         (pass_iv_optimize): Replace declaration with that of...
19236         (make_pass_iv_optimize): ...new function.
19237         (pass_tree_loop_done): Replace declaration with that of...
19238         (make_pass_tree_loop_done): ...new function.
19239         (pass_ch): Replace declaration with that of...
19240         (make_pass_ch): ...new function.
19241         (pass_ccp): Replace declaration with that of...
19242         (make_pass_ccp): ...new function.
19243         (pass_phi_only_cprop): Replace declaration with that of...
19244         (make_pass_phi_only_cprop): ...new function.
19245         (pass_build_ssa): Replace declaration with that of...
19246         (make_pass_build_ssa): ...new function.
19247         (pass_build_alias): Replace declaration with that of...
19248         (make_pass_build_alias): ...new function.
19249         (pass_build_ealias): Replace declaration with that of...
19250         (make_pass_build_ealias): ...new function.
19251         (pass_dominator): Replace declaration with that of...
19252         (make_pass_dominator): ...new function.
19253         (pass_dce): Replace declaration with that of...
19254         (make_pass_dce): ...new function.
19255         (pass_dce_loop): Replace declaration with that of...
19256         (make_pass_dce_loop): ...new function.
19257         (pass_cd_dce): Replace declaration with that of...
19258         (make_pass_cd_dce): ...new function.
19259         (pass_call_cdce): Replace declaration with that of...
19260         (make_pass_call_cdce): ...new function.
19261         (pass_merge_phi): Replace declaration with that of...
19262         (make_pass_merge_phi): ...new function.
19263         (pass_split_crit_edges): Replace declaration with that of...
19264         (make_pass_split_crit_edges): ...new function.
19265         (pass_pre): Replace declaration with that of...
19266         (make_pass_pre): ...new function.
19267         (pass_profile): Replace declaration with that of...
19268         (make_pass_profile): ...new function.
19269         (pass_strip_predict_hints): Replace declaration with that of...
19270         (make_pass_strip_predict_hints): ...new function.
19271         (pass_lower_complex_O0): Replace declaration with that of...
19272         (make_pass_lower_complex_O0): ...new function.
19273         (pass_lower_complex): Replace declaration with that of...
19274         (make_pass_lower_complex): ...new function.
19275         (pass_lower_vector): Replace declaration with that of...
19276         (make_pass_lower_vector): ...new function.
19277         (pass_lower_vector_ssa): Replace declaration with that of...
19278         (make_pass_lower_vector_ssa): ...new function.
19279         (pass_lower_omp): Replace declaration with that of...
19280         (make_pass_lower_omp): ...new function.
19281         (pass_diagnose_omp_blocks): Replace declaration with that of...
19282         (make_pass_diagnose_omp_blocks): ...new function.
19283         (pass_expand_omp): Replace declaration with that of...
19284         (make_pass_expand_omp): ...new function.
19285         (pass_expand_omp_ssa): Replace declaration with that of...
19286         (make_pass_expand_omp_ssa): ...new function.
19287         (pass_object_sizes): Replace declaration with that of...
19288         (make_pass_object_sizes): ...new function.
19289         (pass_strlen): Replace declaration with that of...
19290         (make_pass_strlen): ...new function.
19291         (pass_fold_builtins): Replace declaration with that of...
19292         (make_pass_fold_builtins): ...new function.
19293         (pass_stdarg): Replace declaration with that of...
19294         (make_pass_stdarg): ...new function.
19295         (pass_early_warn_uninitialized): Replace declaration with that of...
19296         (make_pass_early_warn_uninitialized): ...new function.
19297         (pass_late_warn_uninitialized): Replace declaration with that of...
19298         (make_pass_late_warn_uninitialized): ...new function.
19299         (pass_cse_reciprocals): Replace declaration with that of...
19300         (make_pass_cse_reciprocals): ...new function.
19301         (pass_cse_sincos): Replace declaration with that of...
19302         (make_pass_cse_sincos): ...new function.
19303         (pass_optimize_bswap): Replace declaration with that of...
19304         (make_pass_optimize_bswap): ...new function.
19305         (pass_optimize_widening_mul): Replace declaration with that of...
19306         (make_pass_optimize_widening_mul): ...new function.
19307         (pass_warn_function_return): Replace declaration with that of...
19308         (make_pass_warn_function_return): ...new function.
19309         (pass_warn_function_noreturn): Replace declaration with that of...
19310         (make_pass_warn_function_noreturn): ...new function.
19311         (pass_cselim): Replace declaration with that of...
19312         (make_pass_cselim): ...new function.
19313         (pass_phiopt): Replace declaration with that of...
19314         (make_pass_phiopt): ...new function.
19315         (pass_forwprop): Replace declaration with that of...
19316         (make_pass_forwprop): ...new function.
19317         (pass_phiprop): Replace declaration with that of...
19318         (make_pass_phiprop): ...new function.
19319         (pass_tree_ifcombine): Replace declaration with that of...
19320         (make_pass_tree_ifcombine): ...new function.
19321         (pass_dse): Replace declaration with that of...
19322         (make_pass_dse): ...new function.
19323         (pass_nrv): Replace declaration with that of...
19324         (make_pass_nrv): ...new function.
19325         (pass_rename_ssa_copies): Replace declaration with that of...
19326         (make_pass_rename_ssa_copies): ...new function.
19327         (pass_sink_code): Replace declaration with that of...
19328         (make_pass_sink_code): ...new function.
19329         (pass_fre): Replace declaration with that of...
19330         (make_pass_fre): ...new function.
19331         (pass_check_data_deps): Replace declaration with that of...
19332         (make_pass_check_data_deps): ...new function.
19333         (pass_copy_prop): Replace declaration with that of...
19334         (make_pass_copy_prop): ...new function.
19335         (pass_vrp): Replace declaration with that of...
19336         (make_pass_vrp): ...new function.
19337         (pass_uncprop): Replace declaration with that of...
19338         (make_pass_uncprop): ...new function.
19339         (pass_return_slot): Replace declaration with that of...
19340         (make_pass_return_slot): ...new function.
19341         (pass_reassoc): Replace declaration with that of...
19342         (make_pass_reassoc): ...new function.
19343         (pass_rebuild_cgraph_edges): Replace declaration with that of...
19344         (make_pass_rebuild_cgraph_edges): ...new function.
19345         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
19346         (make_pass_remove_cgraph_callee_edges): ...new function.
19347         (pass_build_cgraph_edges): Replace declaration with that of...
19348         (make_pass_build_cgraph_edges): ...new function.
19349         (pass_local_pure_const): Replace declaration with that of...
19350         (make_pass_local_pure_const): ...new function.
19351         (pass_tracer): Replace declaration with that of...
19352         (make_pass_tracer): ...new function.
19353         (pass_warn_unused_result): Replace declaration with that of...
19354         (make_pass_warn_unused_result): ...new function.
19355         (pass_diagnose_tm_blocks): Replace declaration with that of...
19356         (make_pass_diagnose_tm_blocks): ...new function.
19357         (pass_lower_tm): Replace declaration with that of...
19358         (make_pass_lower_tm): ...new function.
19359         (pass_tm_init): Replace declaration with that of...
19360         (make_pass_tm_init): ...new function.
19361         (pass_tm_mark): Replace declaration with that of...
19362         (make_pass_tm_mark): ...new function.
19363         (pass_tm_memopt): Replace declaration with that of...
19364         (make_pass_tm_memopt): ...new function.
19365         (pass_tm_edges): Replace declaration with that of...
19366         (make_pass_tm_edges): ...new function.
19367         (pass_split_functions): Replace declaration with that of...
19368         (make_pass_split_functions): ...new function.
19369         (pass_feedback_split_functions): Replace declaration with that of...
19370         (make_pass_feedback_split_functions): ...new function.
19371         (pass_strength_reduction): Replace declaration with that of...
19372         (make_pass_strength_reduction): ...new function.
19373         (pass_ipa_lower_emutls): Replace declaration with that of...
19374         (make_pass_ipa_lower_emutls): ...new function.
19375         (pass_ipa_function_and_variable_visibility): Replace declaration with
19376         that of...
19377         (make_pass_ipa_function_and_variable_visibility): ...new function.
19378         (pass_ipa_tree_profile): Replace declaration with that of...
19379         (make_pass_ipa_tree_profile): ...new function.
19380         (pass_early_local_passes): Replace declaration with that of...
19381         (make_pass_early_local_passes): ...new function.
19382         (pass_ipa_whole_program_visibility): Replace declaration with that
19383         of...
19384         (make_pass_ipa_whole_program_visibility): ...new function.
19385         (pass_ipa_lto_gimple_out): Replace declaration with that of...
19386         (make_pass_ipa_lto_gimple_out): ...new function.
19387         (pass_ipa_increase_alignment): Replace declaration with that of...
19388         (make_pass_ipa_increase_alignment): ...new function.
19389         (pass_ipa_inline): Replace declaration with that of...
19390         (make_pass_ipa_inline): ...new function.
19391         (pass_ipa_free_lang_data): Replace declaration with that of...
19392         (make_pass_ipa_free_lang_data): ...new function.
19393         (pass_ipa_free_inline_summary): Replace declaration with that of...
19394         (make_pass_ipa_free_inline_summary): ...new function.
19395         (pass_ipa_cp): Replace declaration with that of...
19396         (make_pass_ipa_cp): ...new function.
19397         (pass_ipa_reference): Replace declaration with that of...
19398         (make_pass_ipa_reference): ...new function.
19399         (pass_ipa_pure_const): Replace declaration with that of...
19400         (make_pass_ipa_pure_const): ...new function.
19401         (pass_ipa_pta): Replace declaration with that of...
19402         (make_pass_ipa_pta): ...new function.
19403         (pass_ipa_lto_finish_out): Replace declaration with that of...
19404         (make_pass_ipa_lto_finish_out): ...new function.
19405         (pass_ipa_tm): Replace declaration with that of...
19406         (make_pass_ipa_tm): ...new function.
19407         (pass_ipa_profile): Replace declaration with that of...
19408         (make_pass_ipa_profile): ...new function.
19409         (pass_ipa_cdtor_merge): Replace declaration with that of...
19410         (make_pass_ipa_cdtor_merge): ...new function.
19411         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
19412         of...
19413         (make_pass_cleanup_cfg_post_optimizing): ...new function.
19414         (pass_init_datastructures): Replace declaration with that of...
19415         (make_pass_init_datastructures): ...new function.
19416         (pass_fixup_cfg): Replace declaration with that of...
19417         (make_pass_fixup_cfg): ...new function.
19418         (pass_expand): Replace declaration with that of...
19419         (make_pass_expand): ...new function.
19420         (pass_instantiate_virtual_regs): Replace declaration with that of...
19421         (make_pass_instantiate_virtual_regs): ...new function.
19422         (pass_rtl_fwprop): Replace declaration with that of...
19423         (make_pass_rtl_fwprop): ...new function.
19424         (pass_rtl_fwprop_addr): Replace declaration with that of...
19425         (make_pass_rtl_fwprop_addr): ...new function.
19426         (pass_jump): Replace declaration with that of...
19427         (make_pass_jump): ...new function.
19428         (pass_jump2): Replace declaration with that of...
19429         (make_pass_jump2): ...new function.
19430         (pass_lower_subreg): Replace declaration with that of...
19431         (make_pass_lower_subreg): ...new function.
19432         (pass_cse): Replace declaration with that of...
19433         (make_pass_cse): ...new function.
19434         (pass_fast_rtl_dce): Replace declaration with that of...
19435         (make_pass_fast_rtl_dce): ...new function.
19436         (pass_ud_rtl_dce): Replace declaration with that of...
19437         (make_pass_ud_rtl_dce): ...new function.
19438         (pass_rtl_dce): Replace declaration with that of...
19439         (make_pass_rtl_dce): ...new function.
19440         (pass_rtl_dse1): Replace declaration with that of...
19441         (make_pass_rtl_dse1): ...new function.
19442         (pass_rtl_dse2): Replace declaration with that of...
19443         (make_pass_rtl_dse2): ...new function.
19444         (pass_rtl_dse3): Replace declaration with that of...
19445         (make_pass_rtl_dse3): ...new function.
19446         (pass_rtl_cprop): Replace declaration with that of...
19447         (make_pass_rtl_cprop): ...new function.
19448         (pass_rtl_pre): Replace declaration with that of...
19449         (make_pass_rtl_pre): ...new function.
19450         (pass_rtl_hoist): Replace declaration with that of...
19451         (make_pass_rtl_hoist): ...new function.
19452         (pass_rtl_store_motion): Replace declaration with that of...
19453         (make_pass_rtl_store_motion): ...new function.
19454         (pass_cse_after_global_opts): Replace declaration with that of...
19455         (make_pass_cse_after_global_opts): ...new function.
19456         (pass_rtl_ifcvt): Replace declaration with that of...
19457         (make_pass_rtl_ifcvt): ...new function.
19458         (pass_into_cfg_layout_mode): Replace declaration with that of...
19459         (make_pass_into_cfg_layout_mode): ...new function.
19460         (pass_outof_cfg_layout_mode): Replace declaration with that of...
19461         (make_pass_outof_cfg_layout_mode): ...new function.
19462         (pass_loop2): Replace declaration with that of...
19463         (make_pass_loop2): ...new function.
19464         (pass_rtl_loop_init): Replace declaration with that of...
19465         (make_pass_rtl_loop_init): ...new function.
19466         (pass_rtl_move_loop_invariants): Replace declaration with that of...
19467         (make_pass_rtl_move_loop_invariants): ...new function.
19468         (pass_rtl_unswitch): Replace declaration with that of...
19469         (make_pass_rtl_unswitch): ...new function.
19470         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
19471         (make_pass_rtl_unroll_and_peel_loops): ...new function.
19472         (pass_rtl_doloop): Replace declaration with that of...
19473         (make_pass_rtl_doloop): ...new function.
19474         (pass_rtl_loop_done): Replace declaration with that of...
19475         (make_pass_rtl_loop_done): ...new function.
19476         (pass_web): Replace declaration with that of...
19477         (make_pass_web): ...new function.
19478         (pass_cse2): Replace declaration with that of...
19479         (make_pass_cse2): ...new function.
19480         (pass_df_initialize_opt): Replace declaration with that of...
19481         (make_pass_df_initialize_opt): ...new function.
19482         (pass_df_initialize_no_opt): Replace declaration with that of...
19483         (make_pass_df_initialize_no_opt): ...new function.
19484         (pass_reginfo_init): Replace declaration with that of...
19485         (make_pass_reginfo_init): ...new function.
19486         (pass_inc_dec): Replace declaration with that of...
19487         (make_pass_inc_dec): ...new function.
19488         (pass_stack_ptr_mod): Replace declaration with that of...
19489         (make_pass_stack_ptr_mod): ...new function.
19490         (pass_initialize_regs): Replace declaration with that of...
19491         (make_pass_initialize_regs): ...new function.
19492         (pass_combine): Replace declaration with that of...
19493         (make_pass_combine): ...new function.
19494         (pass_if_after_combine): Replace declaration with that of...
19495         (make_pass_if_after_combine): ...new function.
19496         (pass_ree): Replace declaration with that of...
19497         (make_pass_ree): ...new function.
19498         (pass_partition_blocks): Replace declaration with that of...
19499         (make_pass_partition_blocks): ...new function.
19500         (pass_match_asm_constraints): Replace declaration with that of...
19501         (make_pass_match_asm_constraints): ...new function.
19502         (pass_regmove): Replace declaration with that of...
19503         (make_pass_regmove): ...new function.
19504         (pass_split_all_insns): Replace declaration with that of...
19505         (make_pass_split_all_insns): ...new function.
19506         (pass_fast_rtl_byte_dce): Replace declaration with that of...
19507         (make_pass_fast_rtl_byte_dce): ...new function.
19508         (pass_lower_subreg2): Replace declaration with that of...
19509         (make_pass_lower_subreg2): ...new function.
19510         (pass_mode_switching): Replace declaration with that of...
19511         (make_pass_mode_switching): ...new function.
19512         (pass_sms): Replace declaration with that of...
19513         (make_pass_sms): ...new function.
19514         (pass_sched): Replace declaration with that of...
19515         (make_pass_sched): ...new function.
19516         (pass_ira): Replace declaration with that of...
19517         (make_pass_ira): ...new function.
19518         (pass_reload): Replace declaration with that of...
19519         (make_pass_reload): ...new function.
19520         (pass_clean_state): Replace declaration with that of...
19521         (make_pass_clean_state): ...new function.
19522         (pass_branch_prob): Replace declaration with that of...
19523         (make_pass_branch_prob): ...new function.
19524         (pass_value_profile_transformations): Replace declaration with that
19525         of...
19526         (make_pass_value_profile_transformations): ...new function.
19527         (pass_postreload_cse): Replace declaration with that of...
19528         (make_pass_postreload_cse): ...new function.
19529         (pass_gcse2): Replace declaration with that of...
19530         (make_pass_gcse2): ...new function.
19531         (pass_split_after_reload): Replace declaration with that of...
19532         (make_pass_split_after_reload): ...new function.
19533         (pass_branch_target_load_optimize1): Replace declaration with that
19534         of...
19535         (make_pass_branch_target_load_optimize1): ...new function.
19536         (pass_thread_prologue_and_epilogue): Replace declaration with that
19537         of...
19538         (make_pass_thread_prologue_and_epilogue): ...new function.
19539         (pass_stack_adjustments): Replace declaration with that of...
19540         (make_pass_stack_adjustments): ...new function.
19541         (pass_peephole2): Replace declaration with that of...
19542         (make_pass_peephole2): ...new function.
19543         (pass_if_after_reload): Replace declaration with that of...
19544         (make_pass_if_after_reload): ...new function.
19545         (pass_regrename): Replace declaration with that of...
19546         (make_pass_regrename): ...new function.
19547         (pass_cprop_hardreg): Replace declaration with that of...
19548         (make_pass_cprop_hardreg): ...new function.
19549         (pass_reorder_blocks): Replace declaration with that of...
19550         (make_pass_reorder_blocks): ...new function.
19551         (pass_branch_target_load_optimize2): Replace declaration with that
19552         of...
19553         (make_pass_branch_target_load_optimize2): ...new function.
19554         (pass_leaf_regs): Replace declaration with that of...
19555         (make_pass_leaf_regs): ...new function.
19556         (pass_split_before_sched2): Replace declaration with that of...
19557         (make_pass_split_before_sched2): ...new function.
19558         (pass_compare_elim_after_reload): Replace declaration with that of...
19559         (make_pass_compare_elim_after_reload): ...new function.
19560         (pass_sched2): Replace declaration with that of...
19561         (make_pass_sched2): ...new function.
19562         (pass_stack_regs): Replace declaration with that of...
19563         (make_pass_stack_regs): ...new function.
19564         (pass_stack_regs_run): Replace declaration with that of...
19565         (make_pass_stack_regs_run): ...new function.
19566         (pass_df_finish): Replace declaration with that of...
19567         (make_pass_df_finish): ...new function.
19568         (pass_compute_alignments): Replace declaration with that of...
19569         (make_pass_compute_alignments): ...new function.
19570         (pass_duplicate_computed_gotos): Replace declaration with that of...
19571         (make_pass_duplicate_computed_gotos): ...new function.
19572         (pass_variable_tracking): Replace declaration with that of...
19573         (make_pass_variable_tracking): ...new function.
19574         (pass_free_cfg): Replace declaration with that of...
19575         (make_pass_free_cfg): ...new function.
19576         (pass_machine_reorg): Replace declaration with that of...
19577         (make_pass_machine_reorg): ...new function.
19578         (pass_cleanup_barriers): Replace declaration with that of...
19579         (make_pass_cleanup_barriers): ...new function.
19580         (pass_delay_slots): Replace declaration with that of...
19581         (make_pass_delay_slots): ...new function.
19582         (pass_split_for_shorten_branches): Replace declaration with that of...
19583         (make_pass_split_for_shorten_branches): ...new function.
19584         (pass_split_before_regstack): Replace declaration with that of...
19585         (make_pass_split_before_regstack): ...new function.
19586         (pass_convert_to_eh_region_ranges): Replace declaration with that
19587         of...
19588         (make_pass_convert_to_eh_region_ranges): ...new function.
19589         (pass_shorten_branches): Replace declaration with that of...
19590         (make_pass_shorten_branches): ...new function.
19591         (pass_set_nothrow_function_flags): Replace declaration with that of...
19592         (make_pass_set_nothrow_function_flags): ...new function.
19593         (pass_dwarf2_frame): Replace declaration with that of...
19594         (make_pass_dwarf2_frame): ...new function.
19595         (pass_final): Replace declaration with that of...
19596         (make_pass_final): ...new function.
19597         (pass_rtl_seqabstr): Replace declaration with that of...
19598         (make_pass_rtl_seqabstr): ...new function.
19599         (pass_release_ssa_names): Replace declaration with that of...
19600         (make_pass_release_ssa_names): ...new function.
19601         (pass_early_inline): Replace declaration with that of...
19602         (make_pass_early_inline): ...new function.
19603         (pass_inline_parameters): Replace declaration with that of...
19604         (make_pass_inline_parameters): ...new function.
19605         (pass_update_address_taken): Replace declaration with that of...
19606         (make_pass_update_address_taken): ...new function.
19607         (pass_convert_switch): Replace declaration with that of...
19608         (make_pass_convert_switch): ...new function.
19609         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
19610         to a subclass of simple_ipa_opt_pass along with...
19611         (pass_data_ipa_tree_profile): ...new pass_data instance and...
19612         (make_pass_ipa_tree_profile): ...new function.
19613         * tree-sra.c (pass_sra_early): Convert from a global struct to a
19614         subclass of gimple_opt_pass along with...
19615         (pass_data_sra_early): ...new pass_data instance and...
19616         (make_pass_sra_early): ...new function.
19617         (pass_sra): Convert from a global struct to a subclass of
19618         gimple_opt_pass along with...
19619         (pass_data_sra): ...new pass_data instance and...
19620         (make_pass_sra): ...new function.
19621         (pass_early_ipa_sra): Convert from a global struct to a subclass of
19622         gimple_opt_pass along with...
19623         (pass_data_early_ipa_sra): ...new pass_data instance and...
19624         (make_pass_early_ipa_sra): ...new function.
19625         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
19626         subclass of gimple_opt_pass along with...
19627         (pass_data_ccp): ...new pass_data instance and...
19628         (make_pass_ccp): ...new function.
19629         (pass_fold_builtins): Convert from a global struct to a subclass of
19630         gimple_opt_pass along with...
19631         (pass_data_fold_builtins): ...new pass_data instance and...
19632         (make_pass_fold_builtins): ...new function.
19633         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
19634         subclass of gimple_opt_pass along with...
19635         (pass_data_copy_prop): ...new pass_data instance and...
19636         (make_pass_copy_prop): ...new function.
19637         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
19638         global struct to a subclass of gimple_opt_pass along with...
19639         (pass_data_rename_ssa_copies): ...new pass_data instance and...
19640         (make_pass_rename_ssa_copies): ...new function.
19641         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
19642         subclass of gimple_opt_pass along with...
19643         (pass_data_dce): ...new pass_data instance and...
19644         (make_pass_dce): ...new function.
19645         (pass_dce_loop): Convert from a global struct to a subclass of
19646         gimple_opt_pass along with...
19647         (pass_data_dce_loop): ...new pass_data instance and...
19648         (make_pass_dce_loop): ...new function.
19649         (pass_cd_dce): Convert from a global struct to a subclass of
19650         gimple_opt_pass along with...
19651         (pass_data_cd_dce): ...new pass_data instance and...
19652         (make_pass_cd_dce): ...new function.
19653         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
19654         subclass of gimple_opt_pass along with...
19655         (pass_data_dominator): ...new pass_data instance and...
19656         (make_pass_dominator): ...new function.
19657         (pass_phi_only_cprop): Convert from a global struct to a subclass of
19658         gimple_opt_pass along with...
19659         (pass_data_phi_only_cprop): ...new pass_data instance and...
19660         (make_pass_phi_only_cprop): ...new function.
19661         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
19662         subclass of gimple_opt_pass along with...
19663         (pass_data_dse): ...new pass_data instance and...
19664         (make_pass_dse): ...new function.
19665         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
19666         a subclass of gimple_opt_pass along with...
19667         (pass_data_forwprop): ...new pass_data instance and...
19668         (make_pass_forwprop): ...new function.
19669         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
19670         struct to a subclass of gimple_opt_pass along with...
19671         (pass_data_tree_ifcombine): ...new pass_data instance and...
19672         (make_pass_tree_ifcombine): ...new function.
19673         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
19674         subclass of gimple_opt_pass along with...
19675         (pass_data_ch): ...new pass_data instance and...
19676         (make_pass_ch): ...new function.
19677         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
19678         subclass of gimple_opt_pass along with...
19679         (pass_data_tree_loop): ...new pass_data instance and...
19680         (make_pass_tree_loop): ...new function.
19681         (pass_tree_loop_init): Convert from a global struct to a subclass of
19682         gimple_opt_pass along with...
19683         (pass_data_tree_loop_init): ...new pass_data instance and...
19684         (make_pass_tree_loop_init): ...new function.
19685         (pass_lim): Convert from a global struct to a subclass of
19686         gimple_opt_pass along with...
19687         (pass_data_lim): ...new pass_data instance and...
19688         (make_pass_lim): ...new function.
19689         (pass_tree_unswitch): Convert from a global struct to a subclass of
19690         gimple_opt_pass along with...
19691         (pass_data_tree_unswitch): ...new pass_data instance and...
19692         (make_pass_tree_unswitch): ...new function.
19693         (pass_predcom): Convert from a global struct to a subclass of
19694         gimple_opt_pass along with...
19695         (pass_data_predcom): ...new pass_data instance and...
19696         (make_pass_predcom): ...new function.
19697         (pass_vectorize): Convert from a global struct to a subclass of
19698         gimple_opt_pass along with...
19699         (pass_data_vectorize): ...new pass_data instance and...
19700         (make_pass_vectorize): ...new function.
19701         (pass_graphite): Convert from a global struct to a subclass of
19702         gimple_opt_pass along with...
19703         (pass_data_graphite): ...new pass_data instance and...
19704         (make_pass_graphite): ...new function.
19705         (pass_graphite_transforms): Convert from a global struct to a subclass
19706         of gimple_opt_pass along with...
19707         (pass_data_graphite_transforms): ...new pass_data instance and...
19708         (make_pass_graphite_transforms): ...new function.
19709         (pass_check_data_deps): Convert from a global struct to a subclass of
19710         gimple_opt_pass along with...
19711         (pass_data_check_data_deps): ...new pass_data instance and...
19712         (make_pass_check_data_deps): ...new function.
19713         (pass_iv_canon): Convert from a global struct to a subclass of
19714         gimple_opt_pass along with...
19715         (pass_data_iv_canon): ...new pass_data instance and...
19716         (make_pass_iv_canon): ...new function.
19717         (pass_scev_cprop): Convert from a global struct to a subclass of
19718         gimple_opt_pass along with...
19719         (pass_data_scev_cprop): ...new pass_data instance and...
19720         (make_pass_scev_cprop): ...new function.
19721         (pass_record_bounds): Convert from a global struct to a subclass of
19722         gimple_opt_pass along with...
19723         (pass_data_record_bounds): ...new pass_data instance and...
19724         (make_pass_record_bounds): ...new function.
19725         (pass_complete_unroll): Convert from a global struct to a subclass of
19726         gimple_opt_pass along with...
19727         (pass_data_complete_unroll): ...new pass_data instance and...
19728         (make_pass_complete_unroll): ...new function.
19729         (pass_complete_unrolli): Convert from a global struct to a subclass of
19730         gimple_opt_pass along with...
19731         (pass_data_complete_unrolli): ...new pass_data instance and...
19732         (make_pass_complete_unrolli): ...new function.
19733         (pass_parallelize_loops): Convert from a global struct to a subclass
19734         of gimple_opt_pass along with...
19735         (pass_data_parallelize_loops): ...new pass_data instance and...
19736         (make_pass_parallelize_loops): ...new function.
19737         (pass_loop_prefetch): Convert from a global struct to a subclass of
19738         gimple_opt_pass along with...
19739         (pass_data_loop_prefetch): ...new pass_data instance and...
19740         (make_pass_loop_prefetch): ...new function.
19741         (pass_iv_optimize): Convert from a global struct to a subclass of
19742         gimple_opt_pass along with...
19743         (pass_data_iv_optimize): ...new pass_data instance and...
19744         (make_pass_iv_optimize): ...new function.
19745         (pass_tree_loop_done): Convert from a global struct to a subclass of
19746         gimple_opt_pass along with...
19747         (pass_data_tree_loop_done): ...new pass_data instance and...
19748         (make_pass_tree_loop_done): ...new function.
19749         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
19750         struct to a subclass of gimple_opt_pass along with...
19751         (pass_data_cse_reciprocals): ...new pass_data instance and...
19752         (make_pass_cse_reciprocals): ...new function.
19753         (pass_cse_sincos): Convert from a global struct to a subclass of
19754         gimple_opt_pass along with...
19755         (pass_data_cse_sincos): ...new pass_data instance and...
19756         (make_pass_cse_sincos): ...new function.
19757         (pass_optimize_bswap): Convert from a global struct to a subclass of
19758         gimple_opt_pass along with...
19759         (pass_data_optimize_bswap): ...new pass_data instance and...
19760         (make_pass_optimize_bswap): ...new function.
19761         (pass_optimize_widening_mul): Convert from a global struct to a
19762         subclass of gimple_opt_pass along with...
19763         (pass_data_optimize_widening_mul): ...new pass_data instance and...
19764         (make_pass_optimize_widening_mul): ...new function.
19765         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
19766         subclass of gimple_opt_pass along with...
19767         (pass_data_phiopt): ...new pass_data instance and...
19768         (make_pass_phiopt): ...new function.
19769         (pass_cselim): Convert from a global struct to a subclass of
19770         gimple_opt_pass along with...
19771         (pass_data_cselim): ...new pass_data instance and...
19772         (make_pass_cselim): ...new function.
19773         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
19774         subclass of gimple_opt_pass along with...
19775         (pass_data_phiprop): ...new pass_data instance and...
19776         (make_pass_phiprop): ...new function.
19777         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
19778         subclass of gimple_opt_pass along with...
19779         (pass_data_pre): ...new pass_data instance and...
19780         (make_pass_pre): ...new function.
19781         (pass_fre): Convert from a global struct to a subclass of
19782         gimple_opt_pass along with...
19783         (pass_data_fre): ...new pass_data instance and...
19784         (make_pass_fre): ...new function.
19785         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
19786         subclass of gimple_opt_pass along with...
19787         (pass_data_reassoc): ...new pass_data instance and...
19788         (make_pass_reassoc): ...new function.
19789         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
19790         subclass of gimple_opt_pass along with...
19791         (pass_data_sink_code): ...new pass_data instance and...
19792         (make_pass_sink_code): ...new function.
19793         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
19794         subclass of gimple_opt_pass along with...
19795         (pass_data_strlen): ...new pass_data instance and...
19796         (make_pass_strlen): ...new function.
19797         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
19798         struct to a subclass of gimple_opt_pass along with...
19799         (pass_data_build_alias): ...new pass_data instance and...
19800         (make_pass_build_alias): ...new function.
19801         (pass_build_ealias): Convert from a global struct to a subclass of
19802         gimple_opt_pass along with...
19803         (pass_data_build_ealias): ...new pass_data instance and...
19804         (make_pass_build_ealias): ...new function.
19805         (pass_ipa_pta): Convert from a global struct to a subclass of
19806         simple_ipa_opt_pass along with...
19807         (pass_data_ipa_pta): ...new pass_data instance and...
19808         (make_pass_ipa_pta): ...new function.
19809         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
19810         subclass of gimple_opt_pass along with...
19811         (pass_data_uncprop): ...new pass_data instance and...
19812         (make_pass_uncprop): ...new function.
19813         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
19814         global struct to a subclass of gimple_opt_pass along with...
19815         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
19816         (make_pass_late_warn_uninitialized): ...new function.
19817         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
19818         to a subclass of gimple_opt_pass along with...
19819         (pass_data_init_datastructures): ...new pass_data instance and...
19820         (make_pass_init_datastructures): ...new function.
19821         (pass_early_warn_uninitialized): Convert from a global struct to a
19822         subclass of gimple_opt_pass along with...
19823         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
19824         (make_pass_early_warn_uninitialized): ...new function.
19825         (pass_update_address_taken): Convert from a global struct to a
19826         subclass of gimple_opt_pass along with...
19827         (pass_data_update_address_taken): ...new pass_data instance and...
19828         (make_pass_update_address_taken): ...new function.
19829         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
19830         struct to a subclass of gimple_opt_pass along with...
19831         (pass_data_release_ssa_names): ...new pass_data instance and...
19832         (make_pass_release_ssa_names): ...new function.
19833         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
19834         subclass of gimple_opt_pass along with...
19835         (pass_data_stdarg): ...new pass_data instance and...
19836         (make_pass_stdarg): ...new function.
19837         * tree-switch-conversion.c (pass_convert_switch): Convert from a
19838         global struct to a subclass of gimple_opt_pass along with...
19839         (pass_data_convert_switch): ...new pass_data instance and...
19840         (make_pass_convert_switch): ...new function.
19841         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
19842         to a subclass of gimple_opt_pass along with...
19843         (pass_data_tail_recursion): ...new pass_data instance and...
19844         (make_pass_tail_recursion): ...new function.
19845         (pass_tail_calls): Convert from a global struct to a subclass of
19846         gimple_opt_pass along with...
19847         (pass_data_tail_calls): ...new pass_data instance and...
19848         (make_pass_tail_calls): ...new function.
19849         * tree-vect-generic.c (pass_lower_vector): Convert from a global
19850         struct to a subclass of gimple_opt_pass along with...
19851         (pass_data_lower_vector): ...new pass_data instance and...
19852         (make_pass_lower_vector): ...new function.
19853         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
19854         gimple_opt_pass along with...
19855         (pass_data_lower_vector_ssa): ...new pass_data instance and...
19856         (make_pass_lower_vector_ssa): ...new function.
19857         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
19858         to a subclass of gimple_opt_pass along with...
19859         (pass_data_slp_vectorize): ...new pass_data instance and...
19860         (make_pass_slp_vectorize): ...new function.
19861         (pass_ipa_increase_alignment): Convert from a global struct to a
19862         subclass of simple_ipa_opt_pass along with...
19863         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
19864         (make_pass_ipa_increase_alignment): ...new function.
19865         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
19866         gimple_opt_pass along with...
19867         (pass_data_vrp): ...new pass_data instance and...
19868         (make_pass_vrp): ...new function.
19869         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
19870         subclass of simple_ipa_opt_pass along with...
19871         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
19872         (make_pass_ipa_free_lang_data): ...new function.
19873         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
19874         gimple_opt_pass along with...
19875         (pass_data_tsan): ...new pass_data instance and...
19876         (make_pass_tsan): ...new function.
19877         (pass_tsan_O0): Convert from a global struct to a subclass of
19878         gimple_opt_pass along with...
19879         (pass_data_tsan_O0): ...new pass_data instance and...
19880         (make_pass_tsan_O0): ...new function.
19881         * var-tracking.c (pass_variable_tracking): Convert from a global
19882         struct to a subclass of rtl_opt_pass along with...
19883         (pass_data_variable_tracking): ...new pass_data instance and...
19884         (make_pass_variable_tracking): ...new function.
19885         * web.c (pass_web): Convert from a global struct to a subclass of
19886         rtl_opt_pass along with...
19887         (pass_data_web): ...new pass_data instance and...
19888         (make_pass_web): ...new function.
19889         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
19890         declaration with that of...
19891         (make_pass_mode_switch_use): ...new function.
19892         (pass_resolve_sw_modes): Replace declaration with that of...
19893         (make_pass_resolve_sw_modes): ...new function.
19894         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
19895         from a global struct to a subclass of rtl_opt_pass along with...
19896         (pass_data_mode_switch_use): ...new pass_data instance and...
19897         (make_pass_mode_switch_use): ...new function.
19898         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
19899         from a global struct to a subclass of rtl_opt_pass along with...
19900         (pass_data_resolve_sw_modes): ...new pass_data instance and...
19901         (make_pass_resolve_sw_modes): ...new function.
19902         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
19903         struct to a subclass of rtl_opt_pass along with...
19904         (pass_data_insert_vzeroupper): ...new pass_data instance and...
19905         (make_pass_insert_vzeroupper): ...new function.
19906         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
19907         global struct to a subclass of rtl_opt_pass along with...
19908         (pass_data_work_around_errata): ...new pass_data instance and...
19909         (make_pass_work_around_errata): ...new function.
19910         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
19911         struct to a subclass of rtl_opt_pass along with...
19912         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
19913         (make_pass_mips_machine_reorg2): ...new function.
19915 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19917         * passes.c (pass_manager::operator new): New.
19919 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19921         Handwritten part of conversion of passes to C++ classes.
19923         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
19924         (toplev.o): Add dep on PASS_MANAGER_H.
19925         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
19926         of early local pases to reflect this moving from a global to a
19927         member of gcc::pass_manager.
19928         (cgraph_add_new_function): Likewise.
19929         * lto-cgraph.c (lto_output_node): Update for conversion of
19930         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
19931         * passes.c (opt_pass::clone): New.
19932         (opt_pass::gate): New.
19933         (opt_pass::execute): New.
19934         (opt_pass::opt_pass): New.
19935         (pass_manager::execute_early_local_passes): New.
19936         (pass_manager::execute_pass_mode_switching): new.
19937         (finish_optimization_passes): Convert to...
19938         (pass_manager::finish_optimization_passes): ...this.
19939         (finish_optimization_passes): Update for conversion of passes to
19940         C++ classes.
19941         (register_dump_files_1): Use has_gate since we cannot portably
19942         check a vtable entry against NULL.
19943         (dump_one_pass): Likewise.
19944         (ipa_write_summaries_2): Likewise.
19945         (ipa_write_optimization_summaries_1): Likewise.
19946         (ipa_read_summaries_1): Likewise.
19947         (ipa_read_optimization_summaries_1): Likewise.
19948         (execute_ipa_stmt_fixups): Likewise.
19949         (pass_manager::pass_manager): Rewrite pass-creation, invoking
19950         pass-creation functions rather than wiring up globals, and
19951         storing the results in fields of pass_manager generated using
19952         pass-instances.def.
19953         (pass_manager::dump_profile_report): Update for conversion of
19954         passes to C++ classes.
19955         (pass_manager::execute_ipa_summary_passes): Likewise.
19956         (execute_one_ipa_transform_pass): Likewise.
19957         (execute_one_pass): Use has_gate and has_execute since we cannot
19958         portably check a vtable entry against NULL.
19959         * pass_manager.h (pass_manager::finish_optimization_passes): New.
19960         (pass_manager): Use pass-instances.def to add fields for the
19961         various pass instances.
19962         * toplev.c (finalize): Update for move of
19963         finish_optimization_passes to a method of gcc::pass_manager.
19964         * toplev.h (finish_optimization_passes): Move to method of class
19965         pass_manager.
19966         * tree-pass.h (struct pass_data): New.
19967         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
19968         (opt_pass::gate): Convert to virtual function.
19969         (opt_pass::~opt_pass): New.
19970         (opt_pass::clone): New.
19971         (opt_pass::execute): Convert to virtual function.
19972         (opt_pass::opt_pass): New.
19973         (opt_pass::ctxt_): new.
19974         (gimple_opt_pass): Convert to subclass of opt_pass.
19975         (gimple_opt_pass::gimple_opt_pass): New.
19976         (rtl_opt_pass): Convert to subclass of opt_pass.
19977         (rtl_opt_pass::rtl_opt_pass): New.
19978         (ipa_opt_pass_d): Convert to subclass of opt_pass.
19979         (ipa_opt_pass_d::ipa_opt_pass_d): New.
19980         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
19981         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
19982         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
19983         invocation of pass_mode_switching to reflect this moving from a
19984         global to a member of gcc::pass_manager.
19985         (ix86_option_override): Rework how pass_insert_vzeroupper is
19986         added to the pass_manager to reflect autogenerated changes.
19987         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
19989 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
19991         PR rtl-optimization/57708
19992         * recog.c (peep2_find_free_register): Validate all regs in a
19993         multi-reg mode.
19995 2013-08-05  Jan Hubicka  <jh@suse.cz>
19997         PR lto/57602
19998         * cgraph.c (verify_cgraph_node): Accept local flags from other
19999         partitions.
20000         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
20001         (function_and_variable_visibility): Likewise.
20002         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
20004 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20006         * graph.c (init_graph_slim_pretty_print): Remove.
20007         (print_graph_cfg): Do not call it.  Use local pretty printer.
20008         (start_graph_dump): Likewise.
20010 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20012         * gimple-pretty-print.c (buffer): Remove.
20013         (initialized): Likewise.
20014         (maybe_init_pretty_print): Likewise.
20015         (print_gimple_stmt): Do not call it.  Use non-static local
20016         pretty_printer variable.
20017         (print_gimple_expr): Likewise.
20018         (print_gimple_seq): Likewise.
20019         (gimple_dump_bb): Likewise.
20021 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20023         * asan.c (asan_pp): Remove.
20024         (asan_pp_initialized): Likewise.
20025         (asan_pp_initialize): Likewise.
20026         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
20027         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
20028         (asan_add_global): Likewise.
20030 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20032         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
20033         * diagnostic.h (diagnostic_flush_buffer): Adjust.
20034         * pretty-print.c (pp_formatted_text_data): Likewise.
20035         (pp_indent): Rename from pp_base_indent.
20036         (pp_format): Rename from pp_base_format.
20037         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
20038         (pp_format_verbatim): Rename from pp_base_format_verbatim.
20039         (pp_flush): Rename from pp_base_flush.
20040         (pp_set_line_maximum_length): Rename from
20041         pp_base_set_line_maximum_length.
20042         (pp_clear_output_area): Rename from pp_base_clear_output_area.
20043         (pp_set_prefix): Rename from pp_base_set_prefix.
20044         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
20045         (pp_emit_prefix): Rename from pp_base_emit_prefix.
20046         (pp_append_text): Rename from pp_base_append_text.
20047         (pp_formatted_text): Rename from pp_base_formatted_text.
20048         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
20049         (pp_remaining_character_count_for_line): Rename from
20050         pp_base_remaining_character_count_for_line.
20051         (pp_newline): Rename from pp_base_newline.
20052         (pp_character): Rename from pp_base_character.
20053         (pp_string): Rename from pp_base_string.
20054         (pp_maybe_space): Rename from pp_base_maybe_space.
20055         * asan.c (asan_pp_string): Adjust.
20056         (asan_emit_stack_protection): Likewise.
20057         (asan_add_global): Likewise.
20058         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
20059         * tree-mudflap.c (mf_varname_tree): Likewise.
20060         * tree-pretty-print.c (pp_tree_identifier): Rename from
20061         pp_base_tree_identifier.
20062         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
20063         Declare as function.
20065 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20067         * pretty-print.h (pp_bar_bar): New.
20068         (pp_ampersand_ampersand): Likewise.
20069         (pp_less_equal): Likewise.
20070         (pp_greater_equal): Likewise.
20071         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
20072         printer functions instead of pp_string or operators and punctuators.
20073         (dump_gimple_call): Likewise.
20074         (dump_gimple_omp_for): Likewise.
20075         (dump_gimple_transaction): Likewise.
20076         (dump_gimple_phi): Likewise.
20077         (pp_gimple_stmt_1): Likewise.
20078         * sched-vis.c (print_insn): Likewise.
20079         * tree-mudflap.c (mf_varname_tree): Likewise.
20080         * tree-pretty-print.c (dump_block_node): Likewise.
20081         (dump_generic_node): Likewise.
20083 2013-08-02  Jan Hubicka  <jh@suse.cz>
20085         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
20086         boundaries.
20087         * lto-streamer-out.c (tree_is_indexable): Results decls and
20088         parm decls are not indexable.
20089         (DFS_write_tree_body): Do not follow args and results.
20090         (hash_tree): Likewise.
20091         (output_functions): Rearrange so struct function is needed
20092         only when real body is output; be able to also ouptut abstract
20093         functions; output DECL_ARGUMENTS and DECL_RESULT.
20094         (lto_output): When not in WPA, ale store abstract functions.
20095         (write_symbol): Do not care about RESULT_DECL.
20096         (output_symbol_p): Handle correctly sbtract decls.
20097         * lto-streamer-in.c (input_function): Rearrange so struct
20098         function can be NULL at entry; allow streaming of
20099         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
20100         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
20101         sanity check during LTO.
20102         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
20103         RESULT_DECl and DECL_ARGUMENTS.
20104         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20105         Likewise.
20107 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20109         * pretty-print.h (pp_underscore): New.
20110         (pp_comma): Tidy.
20111         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
20112         printer functions instead of pp_character.
20113         (dump_binary_rhs): Likewise.
20114         (dump_ternary_rhs): Likewise.
20115         (dump_gimple_call_args): Likewise.
20116         (pp_points_to_solution): Likewise.
20117         (dump_gimple_call): Likewise.
20118         (dump_gimple_switch): Likewise.
20119         (dump_gimple_cond): Likewise.
20120         (dump_gimple_bind): Likewise.
20121         (dump_gimple_try): Likewise.
20122         (dump_gimple_omp_for): Likewise.
20123         (dump_gimple_omp_continue): Likewise.
20124         (dump_gimple_omp_single): Likewise.
20125         (dump_gimple_omp_sections): Likewise.
20126         (dump_gimple_omp_block): Likewise.
20127         (dump_gimple_omp_critical): Likewise.
20128         (dump_gimple_transaction): Likewise.
20129         (dump_gimple_asm): Likewise.
20130         (dump_gimple_phi): Likewise.
20131         (dump_gimple_omp_parallel): Likewise.
20132         (dump_gimple_omp_task): Likewise.
20133         (dump_gimple_omp_atomic_load): Likewise.
20134         (dump_gimple_omp_atomic_store): Likewise.
20135         (dump_gimple_mem_ops): Likewise.
20136         (pp_gimple_stmt_1): Likewise.
20137         (pp_cfg_jump): Likewise.
20138         (dump_implicit_edges): Likewise.
20139         (gimple_dump_bb_for_graph): Likewise.
20140         * graph.c (draw_cfg_node): Likewise.
20141         * langhooks.c (lhd_print_error_function): Likewise.
20142         * sched-vis.c (print_exp): Likewise.
20143         (print_value): Likewise.
20144         (print_pattern): Likewise.
20145         (print_insn): Likewise.
20146         (rtl_dump_bb_for_graph): Likewise.
20147         * tree-pretty-print.c (dump_function_declaration): Likewise.
20148         (dump_array_domain): Likewise.
20149         (dump_omp_clause): Likewise.
20150         (dump_location): Likewise.
20151         (dump_generic_node): Likewise.
20152         (print_struct_decl): Likewise.
20153         * diagnostic.c (diagnostic_show_locus): Use pp_space.
20155 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20157         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
20158         candidate table when replacing a candidate statement.
20159         (replace_rhs_if_not_dup): Likewise.
20160         (replace_one_candidate): Likewise.
20162 2013-08-02  Jan Hubicka  <jh@suse.cz>
20163             Martin Liska  <marxin.liska@gmail.com>
20165         * cgraphunit.c (add_new_function): Fix logic when adding from
20166         late IPA pass.
20167         (assemble_thunk): Rename to ...
20168         (expand_thunk); .. this one; export; get it working with
20169         general functions; make produced gimple valid.
20170         * cgraph.h (expand_thunk): Declare.
20172 2013-08-02  Jan Hubicka  <jh@suse.cz>
20174         * ipa-cp.c (gather_context_independent_values): Use
20175         ipa_get_param_move_cost.
20176         (get_replacement_map): Remove PARAM; move parameter folding
20177         into tree-inline.c
20178         (create_specialized_node): Update.
20179         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
20180         assert that we have gimple body; update move_cost.
20181         (count_formal_params): Assert that we have gimple body.
20182         (ipa_dump_param): New function.
20183         (ipa_alloc_node_params): Break out from ...
20184         (ipa_initialize_node_params): ... here.
20185         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
20186         (ipa_write_node_info): Stream move costs.
20187         (ipa_read_node_info): Read move costs.
20188         (ipa_update_after_lto_read): Do not recompute node params.
20189         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
20190         (ipa_get_param): Check we are not in WPA.
20191         (ipa_get_param_move_cost): New.
20192         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
20193         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
20194         parm numbers to be present.
20196 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
20198         PR rtl-optimization/58048
20199         * lra-constraints.c (process_alt_operands): Don't check asm
20200         operand on register.
20202 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
20204         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
20205         the implied StoreLoad barrier for atomic operations if before.
20207 2013-08-02  Jan Hubicka  <jh@suse.cz>
20208             Martin Liska  <marxin.liska@gmail.com>
20210         * cgraph.c (cgraph_function_body_availability): Do not check
20211         cgraph flags.
20212         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
20213         symtab_node_availability): Declare.
20214         * ipa.c (can_replace_by_local_alias): New.
20215         (function_and_variable_visibility): Use it.
20216         * symtab.c (symtab_for_node_and_aliases,
20217         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
20219 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
20221         PR rtl-optimization/57963
20222         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
20223         (lra_constraints): Use them.
20225 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
20227         * config/arm/types.md (define_attr "type"): Add "load_acq"
20228         and "store_rel".
20229         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
20230         changes.
20231         (cortex_a53_store1): Likewise.
20233 2013-08-01  Jan Hubicka  <jh@suse.cz>
20235         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
20236         partitions are not needed.
20238 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
20240         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
20241         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
20242         MAYBE_NON_Q_CLASS_P where appropriate.
20244 2013-08-01  Jan Hubicka  <jh@suse.cz>
20246         * cgraph.h (release_function_body): Declare.
20247         * tree.c (free_lang_data_in_decl): Free, parameters and return values
20248         of unused delcarations.
20250 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20252         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
20253         RTL form when subtracting a constant.
20255 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20257         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
20258         Generate canonical plus rtx with negated immediate instead of minus
20259         where appropriate.
20260         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
20262 2013-08-01  Jan Hubicka  <jh@suse.cz>
20264         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
20265         (cgraph_release_function_body): Likewise.
20266         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
20267         * cgraph.h (cgrpah_node): Rename abstract_and_needed
20268         to used_as_abstract_origin.
20269         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
20270         symbols used as abstract origins.
20271         * cgraphunit.c (analyze_functions): Update.
20272         * ipa.c (symtab_remove_unreachable_nodes): Recompute
20273         used_as_abstract_origin.
20274         * tree-inline.c (tree_function_versioning): Update
20275         used_as_abstract_origin; be ready for DECL_RESULT and
20276         DECL_ARGUMENTS to be NULL.
20278         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
20279         for abstract functions.
20280         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
20281         real symbols.
20283 2013-08-01  Jan Hubicka  <jh@suse.cz>
20285         * profile.c (compute_value_histograms): Fix thinko.
20287 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
20289         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
20290         aarch-common-protos.h to extra_headers.
20291         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20292         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
20293         * config/aarch64/t-aarch64 (aarch-common.o): Define.
20295 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
20297         * config/aarch64/aarch64.md (define_attr "type"): Delete.
20298         Include "../arm/types.md".  Define "type" attribute for all patterns.
20299         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
20300         attribute changes.
20302 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
20304         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
20305         to support power8 load fusion.
20306         (fusion_gpr_mem_load): Likewise.
20308         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
20310         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
20311         declarations for power8 load fusion.
20312         (emit_fusion_gpr_load): Likewise.
20314         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
20315         tuning for power8, turn on fusion mode by default.  Turn on sign
20316         extending fusion mode if normal fusion mode is on, and we are at
20317         -O2 or -O3.
20318         (fusion_gpr_load_p): New function, return true if we can fuse an
20319         addis instruction with a dependent load to a GPR.
20320         (emit_fusion_gpr_load): Emit the instructions for power8 load
20321         fusion to GPRs.
20323         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
20324         (VSX load fusion peepholes): New peepholes to fuse together an
20325         addi instruction with a VSX load instruction.
20327         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
20328         peepholes to fuse an addis instruction with a load to a GPR base
20329         register.  If we are supporting sign extending fusions, convert
20330         sign extending loads to zero extending loads and add an explicit
20331         sign extension.
20333 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
20335         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
20336         aarch-common-protos.h to extra_headers.
20337         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20338         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
20339         (arm_early_store_addr_dep): Likewise.
20340         (arm_no_early_alu_shift_dep): Likewise.
20341         (arm_no_early_alu_shift_value_dep): Likewise.
20342         (arm_no_early_mul_dep): Likewise.
20343         (arm_no_early_store_addr_dep): Likewise.
20344         (arm_mac_accumulator_is_mul_result): Likewise.
20345         (arm_mac_accumulator_is_result): Likewise.
20346         * config/arm/aarch-common.c: ... here.  New file.
20347         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
20348         here to ...
20349         (arm_early_store_addr_dep): Likewise.
20350         (arm_no_early_alu_shift_dep): Likewise.
20351         (arm_no_early_alu_shift_value_dep): Likewise.
20352         (arm_no_early_mul_dep): Likewise.
20353         (arm_no_early_store_addr_dep): Likewise.
20354         (arm_mac_accumulator_is_mul_result): Likewise.
20355         (arm_mac_accumulator_is_result): Likewise.
20356         * config/arm/aarch-common-protos.h: ... here.  New file.
20357         * config/arm/t-arm (aarch-common.o): Define.
20359 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
20361         * config/arm/arm.md: Include new file "types.md".
20362         (define_attr "type"): Move from here to ...
20363         (define_attr "mul32"): Likewise.
20364         (define_attr "mul64"): Likewise.
20365         * config/arm/types.md: ... here.  New file.
20367 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20369         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
20370         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
20372 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20374         * gen-pass-instances.awk: Fix offset of substr().
20376 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
20378         * Makefile.in (pass-instances.def): New.
20379         (passes.o): Replace dependency on passes.def with one on
20380         pass-instances.def
20382         * gen-pass-instances.awk: New.
20384         * passes.c (pass_manager::pass_manager): Use pass-instances.def
20385         rather than passes.def, updating local definition of NEXT_PASS
20386         macro to add an extra NUM parameter (currently unused).
20388 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
20390         * Makefile.in (PASS_MANAGER_H): New.
20391         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
20392         (passes.o): Likewise.
20393         (statistics.o): Likewise.
20394         (cgraphunit.o): Likewise.
20395         (context.o): Depend on PASS_MANAGER_H.
20397         * pass_manager.h: New.
20399         * cgraphunit.c (cgraph_add_new_function): Update for moves
20400         of globals to fields of pass_manager.
20401         (analyze_function): Likewise.
20402         (expand_function): Likewise.
20403         (ipa_passes): Likewise.
20404         (compile): Likewise.
20406         * context.c (context::context): New.
20407         * context.h  (context::context): New.
20408         (context::get_passes): New.
20409         (context::passes_): New.
20411         * lto-cgraph.c (input_node): Update for moves of globals to
20412         fields of pass_manager.
20414         * passes.c (all_passes): Remove, in favor of a field of the
20415         same name within the new class pass_manager.
20416         (all_small_ipa_passes): Likewise.
20417         (all_lowering_passes): Likewise.
20418         (all_regular_ipa_passes): Likewise.
20419         (all_late_ipa_passes): Likewise.
20420         (all_lto_gen_passes): Likewise.
20421         (passes_by_id): Likewise.
20422         (passes_by_id_size): Likewise.
20423         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
20424         the new class pass_manager.
20425         (set_pass_for_id): Convert to...
20426         (pass_manager::set_pass_for_id): ...method.
20427         (get_pass_for_id): Convert to...
20428         (pass_manager::get_pass_for_id): ...method.
20429         (register_one_dump_file): Move body of implementation into...
20430         (pass_manager::register_one_dump_file): ...here.
20431         (register_dump_files_1): Convert to...
20432         (pass_manager::register_dump_files_1): ...method.
20433         (register_dump_files): Convert to...
20434         (pass_manager::register_dump_files): ...method.
20435         (create_pass_tab): Update for moves of globals to fields of
20436         pass_manager.
20437         (dump_passes): Move body of implementation into...
20438         (pass_manager::dump_passes): ...here.
20439         (register_pass): Move body of implementation into...
20440         (pass_manager::register_pass): ...here.
20441         (init_optimization_passes): Convert into...
20442         (pass_manager::pass_manager): ...constructor for new
20443         pass_manager class, and initialize the pass_lists array.
20444         (check_profile_consistency): Update for moves of globals to
20445         fields of pass_manager.
20446         (dump_profile_report): Move body of implementation into...
20447         (pass_manager::dump_profile_report): ...here.
20448         (ipa_write_summaries_1): Update for moves of pass lists from
20449         being globals to fields of pass_manager.
20450         (ipa_write_optimization_summaries): Likewise.
20451         (ipa_read_summaries):  Likewise.
20452         (ipa_read_optimization_summaries): Likewise.
20453         (execute_all_ipa_stmt_fixups): Likewise.
20455         * statistics.c (statistics_fini): Update for moves of globals to
20456         fields of pass_manager.
20458         * toplev.c (general_init): Replace call to
20459         init_optimization_passes with construction of the pass_manager
20460         instance.
20462         * tree-pass.h (all_passes): Remove, in favor of a field of the
20463         same name within the new class pass_manager.
20464         (all_small_ipa_passes): Likewise.
20465         (all_lowering_passes): Likewise.
20466         (all_regular_ipa_passes): Likewise.
20467         (all_lto_gen_passes): Likewise.
20468         (all_late_ipa_passes): Likewise.
20469         (passes_by_id): Likewise.
20470         (passes_by_id_size): Likewise.
20471         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
20472         the new class pass_manager.
20473         (get_pass_for_id): Remove.
20475 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
20477         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
20478         configs.
20480 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
20482         * arm.md (mulhi3): New expand pattern.
20484 2013-07-30  Jan Hubicka  <jh@suse.cz>
20485             Martin Liska  <marxin.liska@gmail.com>
20487         * profile.c (compute_value_histograms): Do not ICE when
20488         there is mismatch only on some counters.
20490 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20492         PR rtl-optimization/57637
20493         * function.c (move_insn_for_shrink_wrap): Also check the
20494         GEN set of the LIVE problem for the liveness analysis
20495         if it exists, otherwise give up.
20497 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20499         PR tree-optimization/57993
20500         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
20501         replaced statement in the candidate table.
20502         (phi_add_costs): Return infinite cost when the hidden basis does
20503         not dominate all phis on which the candidate is dependent.
20504         (replace_one_candidate): Record replaced statement in the
20505         candidate table.
20507 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
20509         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
20510         (ashlv2si3): New expander.
20511         (*ashlv2si3_i): New define_insn_and_split.
20512         * predicates.md (float_operation): Allow patterns with three
20513         basic sub-patterns.
20515         PR rtl-optimization/58021
20516         * mode-switching.c (create_pre_exit): Always split off preceding
20517         insns if we are not at the basic block head.
20519 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
20521         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
20522         (UCLIBC_DYNAMIC_LINKER): New macro.
20523         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
20524         `-mnan=2008'.
20525         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
20526         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
20527         `-mnan=2008'.
20528         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
20529         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
20530         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
20531         for SF and DF modes.  Use ieee_quad_format for TF mode.
20532         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
20533         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
20534         (mips_option_override): Handle `-mnan=legacy'.
20535         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
20536         `-mabs=2008' and `-mnan=2008'.
20537         (OPTION_DEFAULT_SPECS): Add "nan" default.
20538         (ASM_SPEC): Handle `-mnan='.
20539         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
20540         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
20541         comment accordingly.
20542         (neg<mode>2): Likewise.
20543         * config/mips/mips.opt (mabs, mnan): New options.
20544         * doc/install.texi (Configuration): Document `--with-nan=' option.
20545         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
20546         `-mnan=' options.
20547         (MIPS Options): Document them.
20548         * config.gcc <mips*-*-*>: Handle `--with-nan='.
20549         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
20550         * configure: Regenerate.
20551         * config.in: Regenerate.
20553 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
20555         * config/i386/i386.md (float post-reload splitters): Do not check
20556         for subregs of SSE registers.
20558 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
20559             H.J. Lu  <hongjiu.lu@intel.com>
20561         PR target/57954
20562         PR target/57988
20563         * config/i386/i386.md (post-reload splitter
20564         to avoid partial SSE reg dependency stalls): New pattern.
20566 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20568         * config/s390/s390.md ("movcc"): Swap load and store instructions.
20570 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
20572         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
20573         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
20575 2013-07-26  Cary Coutant  <ccoutant@google.com>
20577         * dwarf2out.c (die_checksum_ordered): Don't include template
20578         instantiations in signature.
20579         (is_template_parameter): New function.
20580         (is_template_instantiation): New function.
20581         (generate_skeleton_bottom_up): Don't include template instantiations
20582         in type unit DIE.
20583         (generate_skeleton): Likewise.
20584         (break_out_comdat_types): Move recursive call to break out nested
20585         types earlier.
20586         (prune_unused_types_mark_generic_parms_dies): Call
20587         is_template_parameter.
20589 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
20591         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
20592         uses vector registers.
20593         * config/aarch64/iterators.md: Add attributes rtn and vas.
20595 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20596             Richard Earnshaw  <richard.earnshaw@arm.com>
20598         * combine.c (simplify_comparison): Re-canonicalize operands
20599         where appropriate.
20600         * config/arm/arm.md (movcond_addsi): New splitter.
20602 2013-07-25  Sterling Augustine  <saugustine@google.com>
20604         * dwarf2out.c (size_of_pubnames): Move code to...
20605         (include_pubname_in_output): ...here.  New.
20606         (want_pubnames): Rearrange.
20607         (output_pubnames): Call include_pubname_in_output.  Move assertion.
20609 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
20611         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
20613 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
20615         PR target/38836
20616         * doc/extend.texi: Remove obsolete builtins. Fix
20617         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
20619 2013-07-25  Jan Hubicka  <jh@suse.cz>
20621         * cgraph.c (release_function_body): Break out from ...
20622         (cgraph_release_function_body): ... this one; also release DECL_RESULT
20623         and DECL_ARGUMENTS.
20624         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
20625         old_tree in the map.
20626         (create_specialized_node): Update.
20627         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
20628         into index.
20629         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
20630         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
20631         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
20632         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
20633         DECL_RESULT.
20635 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20637         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
20638         addsi3_carryin_alt2_<optab>): Correct output template.
20640 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20642         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
20643         Adjust for arm_restrict_it.
20644         Remove trailing whitespace.
20646 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
20648         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
20649         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
20651         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
20653 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
20655         PR rtl-optimization/57960
20656         * lra-constraints.c (process_alt_operands): Use the right mode
20657         when checking strict_low.
20659 2013-07-25  Jan Hubicka  <jh@suse.cz>
20661         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
20662         * cgraph.c (cgraph_remove_node): Do not release function body
20663         when in cgraph streaming.
20664         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
20665         in other partitions are not considered reachable; fix handling of
20666         clones.
20668 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20670         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
20672 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20674         PR target/19599
20675         PR target/57731
20676         PR target/57837
20677         * config/arm/arm.md ("*sibcall_insn): Replace use of
20678         Ss with US. Adjust output for v5 and v4t.
20679         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
20681         * config/arm/constraints.md ("Ss"): Rename to US.
20683 2013-07-25  Terry Guo  <terry.guo@arm.com>
20685         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
20686         shift_add/shift_sub0/shift_sub1 RTXs.
20688 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
20689             Anton Blanchard  <anton@au1.ibm.com>
20691         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
20692         (altivec_vpks<VI_char>ss): Likewise.
20693         (altivec_vpks<VI_char>us): Likewise.
20694         (altivec_vpku<VI_char>us): Likewise.
20695         (altivec_vpku<VI_char>um): Likewise.
20697 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
20699         Introduce context class.
20701         * Makefile.in (CONTEXT_H): New.
20702         (OBJS): Add context.o.
20703         (toplev.o): Add CONTEXT_H to dependencies.
20704         (context.o): New.
20706         * toplev.c (general_init): Create the singleton gcc::context instance.
20708         * context.c: New.
20710         * context.h: New.
20712 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
20714         PR rtl-optimization/57968
20715         * mode-switching.c (create_pre_exit): Allow instructions that
20716         don't set a return register to need a non-exit mode.
20718 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20719             Anton Blanchard  <anton@au1.ibm.com>
20721         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
20722         operands to vperm for little endian.
20723         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
20724         of lvsl to create the control mask for a vperm for little endian.
20726 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20727             Anton Blanchard  <anton@au1.ibm.com>
20729         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
20730         two operands for little-endian.
20732 2013-07-23  Steve Ellcey  <sellcey@mips.com>
20734         * config/mips/mips.c (mips_case_values_threshold): New.
20735         (TARGET_CASE_VALUES_THRESHOLD): Define.
20737 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20738             Anton Blanchard  <anton@au1.ibm.com>
20740         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
20741         selection of field for vector splat in little endian mode.
20743 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
20745         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
20746         expanders to rs6000.md.
20747         (ior<mode>3): Likewise.
20748         (and<mode>3): Likewise.
20749         (one_cmpl<mode>2): Likewise.
20750         (nor<mode>3): Likewise.
20751         (andc<mode>3): Likewise.
20752         (eqv<mode>3): Likewise.
20753         (nand<mode>3): Likewise.
20754         (orc<mode>3): Likewise.
20756         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
20757         declaration.
20759         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
20760         to split multi-word logical operations.
20761         (rs6000_split_logical_di): Likewise.
20762         (rs6000_split_logical): Likewise.
20764         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
20765         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
20766         and allow TImode operations in 32-bit.
20767         (vsx_and<mode>3_64bit): Likewise.
20768         (vsx_ior<mode>3_32bit): Likewise.
20769         (vsx_ior<mode>3_64bit): Likewise.
20770         (vsx_xor<mode>3_32bit): Likewise.
20771         (vsx_xor<mode>3_64bit): Likewise.
20772         (vsx_one_cmpl<mode>2_32bit): Likewise.
20773         (vsx_one_cmpl<mode>2_64bit): Likewise.
20774         (vsx_nor<mode>3_32bit): Likewise.
20775         (vsx_nor<mode>3_64bit): Likewise.
20776         (vsx_andc<mode>3_32bit): Likewise.
20777         (vsx_andc<mode>3_64bit): Likewise.
20778         (vsx_eqv<mode>3_32bit): Likewise.
20779         (vsx_eqv<mode>3_64bit): Likewise.
20780         (vsx_nand<mode>3_32bit): Likewise.
20781         (vsx_nand<mode>3_64bit): Likewise.
20782         (vsx_orc<mode>3_32bit): Likewise.
20783         (vsx_orc<mode>3_64bit): Likewise.
20785         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
20786         logical types in GPRs.
20788         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
20789         logical insns to rs6000.md, and allow TImode operations in
20790         32-bit.
20791         (altivec_ior<mode>3): Likewise.
20792         (altivec_xor<mode>3): Likewise.
20793         (altivec_one_cmpl<mode>2): Likewise.
20794         (altivec_nor<mode>3): Likewise.
20795         (altivec_andc<mode>3): Likewise.
20797         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
20798         attributes for moving the 128-bit logical operations into
20799         rs6000.md.
20800         (BOOL_REGS_OUTPUT): Likewise.
20801         (BOOL_REGS_OP1): Likewise.
20802         (BOOL_REGS_OP2): Likewise.
20803         (BOOL_REGS_UNARY): Likewise.
20804         (BOOL_REGS_AND_CR0): Likewise.
20805         (one_cmpl<mode>2): Add support for DI logical operations on
20806         32-bit, splitting the operations to 32-bit.
20807         (anddi3): Likewise.
20808         (iordi3): Likewise.
20809         (xordi3): Likewise.
20810         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
20811         changes to combine the 32/64-bit code, allow logical operations on
20812         TI mode in 32-bit, and to use similar match_operator patterns like
20813         scalar mode uses.  Combine the Altivec and VSX code for logical
20814         operations, and move it here.
20815         (ior<mode>3, 128-bit types): Likewise.
20816         (xor<mode>3, 128-bit types): Likewise.
20817         (one_cmpl<mode>3, 128-bit types): Likewise.
20818         (nor<mode>3, 128-bit types): Likewise.
20819         (andc<mode>3, 128-bit types): Likewise.
20820         (eqv<mode>3, 128-bit types): Likewise.
20821         (nand<mode>3, 128-bit types): Likewise.
20822         (orc<mode>3, 128-bit types): Likewise.
20823         (and<mode>3_internal): Likewise.
20824         (bool<mode>3_internal): Likewise.
20825         (boolc<mode>3_internal1): Likewise.
20826         (boolc<mode>3_internal2): Likewise.
20827         (boolcc<mode>3_internal1): Likewise.
20828         (boolcc<mode>3_internal2): Likewise.
20829         (eqv<mode>3_internal1): Likewise.
20830         (eqv<mode>3_internal2): Likewise.
20831         (one_cmpl1<mode>3_internal): Likewise.
20833 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
20835         * config/microblaze/microblaze.c (microblaze_expand_prologue):
20836         Rename flag_stack_usage to flag_stack_usage_info.
20838 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
20840         * config/microblaze/sync.md: New file.
20841         * config/microblaze/microblaze.md: Include sync.md
20842         * config/microblaze/microblaze.c: Add print_operand 'y'.
20843         * config/microblaze/constraints.md: Add memory_contraint
20844         'Q' which is a single register.
20846 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
20848         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
20850 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
20852         * reload.c (find_reloads): Exit loop once we find this operand
20853         cannot be reloaded somehow for this alternative.
20855         * reload.c (find_reloads): Exit loop once we find a hard register.
20857         * rtlanal.c (computed_jump_p): Exit loop once we find label
20858         reference is used.
20860         * i386.c (ix86_pad_returns): Exit loop after setting replace.
20862         * cfgloopmanip.c (remove_path): Exit loop after setting
20863         irred_invalidated.
20865         * gensupport.c (subst_dup): Avoid loop if code is not
20866         MATCH_DUP nor MATCH_OP_DUP.
20868 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
20870         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
20872 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20874         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
20875         true for SP_REGNUM if mode == ptr_mode.
20876         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
20877         with value R0_REGNUM + 31.
20879 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20881         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
20882         pad pointer-typed argument downward.
20884 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20886         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
20887         and __ILP32__ when the ILP32 model is in use.
20889 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20891         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
20892         (aarch64_load_symref_appropriately): In the case of
20893         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
20894         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
20895         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
20896         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
20897         if 'mode' doesn't equal to 'ptr_mode'.
20898         (aarch64_output_mi_thunk): Add an assertion on the alignment of
20899         'vcall_offset'; change to call aarch64_emit_move differently depending
20900         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
20901         to calculate the upper bound of 'vcall_offset'.
20902         (aarch64_cannot_force_const_mem): Change to also return true if
20903         mode != ptr_mode.
20904         (aarch64_legitimize_reload_address): In the case of large
20905         displacements, add new local variable 'xmode' and an assertion
20906         based on it; change to use 'xmode' to generate the new rtx and
20907         reload.
20908         (aarch64_asm_trampoline_template): Change to generate the template
20909         differently depending on TARGET_ILP32 or not; change to use
20910         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
20911         (aarch64_trampoline_size): Removed.
20912         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
20913         and replace immediate literals with it.  Change to use 'ptr_mode'
20914         instead of 'DImode' and call convert_memory_address if the mode
20915         of 'fnaddr' doesn't equal to 'ptr_mode'.
20916         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
20917         to output symbol.
20918         (aarch64_elf_asm_destructor): Likewise.
20919         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
20920         on TARGET_ILP32 instead of aarch64_trampoline_size.
20921         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
20922         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
20923         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
20924         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
20925         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
20926         (storewb_pair<GPI:mode>_<P:mode>): ... this.
20927         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
20928         depending on the value of 'mode'.
20929         (add_losym_<mode>): New.
20930         (ldr_got_small_<mode>): New, based on ldr_got_small.
20931         (ldr_got_small): Remove.
20932         (ldr_got_small_sidi): New.
20933         * config/aarch64/iterators.md (P): New.
20934         (PTR): Change to 'ptr_mode' in the condition.
20936 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20938         * config.gcc (aarch64*-*-*): Support --with-abi.
20939         (aarch64*-*-elf): Support --with-multilib-list.
20940         (aarch64*-*-linux*): Likewise.
20941         (supported_defaults): Add abi to aarch64*-*-*.
20942         * configure.ac: Mention AArch64 for --with-multilib-list.
20943         * configure: Re-generated.
20944         * config/aarch64/biarchilp32.h: New file.
20945         * config/aarch64/biarchlp64.h: New file.
20946         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
20947         (ABI_SPEC): Ditto.
20948         (MULTILIB_DEFAULTS): Ditto.
20949         (DRIVER_SELF_SPECS): Ditto.
20950         (ASM_SPEC): Update to also substitute -mabi.
20951         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
20952         file whose name depends on -mabi= and -mbig-endian.
20953         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
20954         TARGET_ILP32.
20955         (POINTER_SIZE): New define.
20956         (POINTERS_EXTEND_UNSIGNED): Ditto.
20957         (enum aarch64_abi_type): New enumeration tag.
20958         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
20959         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
20960         (TARGET_ILP32): New define.
20961         * config/aarch64/aarch64.opt (mabi): New.
20962         (aarch64_abi): New.
20963         (ilp32, lp64): New values for -mabi.
20964         * config/aarch64/t-aarch64 (comma): New define.
20965         (MULTILIB_OPTIONS): Ditto.
20966         (MULTILIB_DIRNAMES): Ditto.
20967         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
20968         * doc/invoke.texi: Document -mabi for AArch64.
20970 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
20972         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
20974 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20975             Anton Blanchard  <anton@au1.ibm.com>
20977         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
20978         endianness when selecting field to splat.
20980 2013-07-22  Eric Christopher  <echristo@gmail.com>
20982         * dwarf2out.c (die_odr_checksum): New function to use
20983         CHECKSUM_ macros and ULEB128 for DIE tag.
20984         (generate_type_signature): Use.
20986 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
20988         * config.gcc (sparc*-*-*): Accept leon3 processor.
20989         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
20990         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
20991         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
20992         * config/sparc/sparc.opt (enum processor_type): Add leon3.
20993         (mfix-ut699): Adjust comment.
20994         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
20995         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
20996         (CPP_CPU_SPEC): Likewise.
20997         (ASM_CPU_SPEC): Likewise.
20998         * config/sparc/sparc.c (leon3_cost): New constant.
20999         (sparc_option_override): Add leon3 support.
21000         (mem_ref): New function.
21001         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
21002         (sparc_do_work_around_errata): Look into the instruction in the delay
21003         slot and adjust accordingly.  Add fix for the data cache nullify issues
21004         of the UT699.  Change insertion position for the NOP.
21005         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
21006         (leon3_load): New reservation.
21007         (leon_store): Bump latency to 2.
21008         (grfpu): New automaton.
21009         (grfpu_alu): New unit.
21010         (grfpu_ds): Likewise.
21011         (leon_fp_alu): Adjust.
21012         (leon_fp_mult): Delete.
21013         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
21014         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
21015         * config/sparc/sparc.md (cpu): Add leon3.
21016         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
21017         (swapsi): Likewise.
21018         (atomic_test_and_set): Likewise.
21019         (ldstub): Likewise.
21021 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
21023         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
21024         default for R5900 targets.
21025         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
21026         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
21027         * config/mips/mips.c (mips_option_override): Report an error for
21028         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
21029         for -march=r5900 -mhard-float.
21031 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
21033         * df-problems.c (can_move_insns_across): Exit loop once we
21034         find a non-fixed, non-global register.
21036         * ipa-pure-const.c (propagate_nothrow): Exit loop after
21037         setting can_throw.
21039         * omega.c (omega_eliminate_red): Break after setting red_found.
21040         (omega_problem_has_red_equations): Similarly after setting found.
21041         (omega_query_variable): Similarly after setting coupled.
21043 2013-07-22  Marek Polacek  <polacek@redhat.com>
21045         * gimplify.c: Don't include gimple.h twice.
21047 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21049         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
21050         instead of TARGET_THUMB1.
21051         (Pz): New constraint.
21052         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
21053         encodings.
21054         (compare_negsi_si): Likewise.
21055         (compare_addsi2_op0): Likewise.
21056         (compare_addsi2_op1): Likewise.
21057         (addsi3_carryin_<optab>): Likewise.
21058         (addsi3_carryin_alt2_<optab>): Likewise.
21059         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
21060         for arm_restrict_it.
21061         (subsi3_carryin): Likewise.
21062         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
21063         (minmax_arithsi): Disable for arm_restrict_it.
21064         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
21065         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
21066         (satsi_<SAT:code>_shift): Likewise.
21067         (arm_shiftsi3): Add alternative for 16-bit encoding.
21068         (arm32_movhf): Disable for arm_restrict_it.
21069         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
21070         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
21072 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
21074         * config/arm/arm.md (attribute "insn"): Delete.
21075         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
21076         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
21077         (not_shiftsi): Update for attribute change.
21078         (not_shiftsi_compare0): Likewise.
21079         (not_shiftsi_compare0_scratch): Likewise.
21080         (arm_one_cmplsi2): Likewise.
21081         (thumb1_one_cmplsi2): Likewise.
21082         (notsi_compare0): Likewise.
21083         (notsi_compare0_scratch): Likewise.
21084         (thumb1_movdi_insn): Likewise.
21085         (arm_movsi_insn): Likewise.
21086         (movhi_insn_arch4): Likewise.
21087         (movhi_bytes): Likewise.
21088         (arm_movqi_insn): Likewise.
21089         (thumb1_movqi_insn): Likewise.
21090         (arm32_movhf): Likewise.
21091         (thumb1_movhf): Likewise.
21092         (arm_movsf_soft_insn): Likewise.
21093         (thumb1_movsf_insn): Likewise.
21094         (thumb_movdf_insn): Likewise.
21095         (movsicc_insn): Likewise.
21096         (movsfcc_soft_insn): Likewise.
21097         (and_scc): Likewise.
21098         (cond_move): Likewise.
21099         (if_move_not): Likewise.
21100         (if_not_move): Likewise.
21101         (if_shift_move): Likewise.
21102         (if_move_shift): Likewise.
21103         (if_shift_shift): Likewise.
21104         (if_not_arith): Likewise.
21105         (if_arith_not): Likewise.
21106         (cond_move_not): Likewise.
21107         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
21108         (neon_mov<mode>): Likewise.
21109         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
21110         (thumb2_movsi_vfp): Likewise.
21111         (movsf_vfp): Likewise.
21112         (thumb2_movsf_vfp): Likewise.
21113         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21114         change.
21115         (cortexa7_older_only): Likewise.
21116         (cortexa7_younger): Likewise.
21117         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
21118         (1020alu_shift_op): Likewise.
21119         (1020alu_shift_reg_op): Likewise.
21120         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
21121         (alu_shift_op): Likewise.
21122         (alu_shift_reg_op): Likewise.
21123         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
21124         (11_alu_shift_op): Likewise.
21125         (11_alu_shift_reg_op): Likewise.
21126         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
21127         (9_alu_shift_reg_op): Likewise.
21128         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21129         change.
21130         (cortex_a15_alu_shift): Likewise.
21131         (cortex_a15_alu_shift_reg): Likewise.
21132         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
21133         (cortex_a5_alu_shift): Likewise.
21134         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
21135         change.
21136         (cortex_a53_alu_shift): Likewise.
21137         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21138         change.
21139         (cortex_a7_alu_reg): Likewise.
21140         (cortex_a7_alu_shift): Likewise.
21141         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21142         (cortex_a8_alu_shift): Likewise.
21143         (cortex_a8_alu_shift_reg): Likewise.
21144         (cortex_a8_mov): Likewise.
21145         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
21146         (cortex_a9_dp_shift): Likewise.
21147         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
21148         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
21149         (cortex_r4_mov): Likewise.
21150         (cortex_r4_alu_shift): Likewise.
21151         (cortex_r4_alu_shift_reg): Likewise.
21152         * config/arm/fa526.md (526_alu_op): Update for attribute change.
21153         (526_alu_shift_op): Likewise.
21154         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
21155         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
21156         (626te_alu_shift_op): Likewise.
21157         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
21158         (726te_alu_op): Likewise.
21159         (726te_alu_shift_op): Likewise.
21160         (726te_alu_shift_reg_op): Likewise.
21161         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
21162         (mp626_alu_shift_op): Likewise.
21163         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
21164         (pj4_alu_e1_conds): Likewise.
21165         (pj4_alu): Likewise.
21166         (pj4_alu_conds): Likewise.
21167         (pj4_shift): Likewise.
21168         (pj4_shift_conds): Likewise.
21169         (pj4_alu_shift): Likewise.
21170         (pj4_alu_shift_conds): Likewise.
21172 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21174         * config/arm/predicates.md (shiftable_operator_strict_it):
21175         New predicate.
21176         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
21177         Disable cond_exec version for arm_restrict_it.
21178         (thumb2_smaxsi3): Convert to generate cond_exec.
21179         (thumb2_sminsi3): Likewise.
21180         (thumb32_umaxsi3): Likewise.
21181         (thumb2_uminsi3): Likewise.
21182         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
21183         (thumb2_neg_abssi2): Likewise.
21184         (thumb2_mov_scc): Add alternative for 16-bit encoding.
21185         (thumb2_movsicc_insn): Adjust alternatives.
21186         (thumb2_mov_negscc): Disable for arm_restrict_it.
21187         (thumb2_mov_negscc_strict_it): New pattern.
21188         (thumb2_mov_notscc_strict_it): New pattern.
21189         (thumb2_mov_notscc): Disable for arm_restrict_it.
21190         (thumb2_ior_scc): Likewise.
21191         (thumb2_ior_scc_strict_it): New pattern.
21192         (thumb2_cond_move): Adjust for arm_restrict_it.
21193         (thumb2_cond_arith): Disable for arm_restrict_it.
21194         (thumb2_cond_arith_strict_it): New pattern.
21195         (thumb2_cond_sub): Adjust for arm_restrict_it.
21196         (thumb2_movcond): Likewise.
21197         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
21198         (thumb2_zero_extendhisi2_v6): Likewise.
21199         (thumb2_zero_extendqisi2_v6): Likewise.
21200         (orsi_notsi_si): Likewise.
21201         (orsi_not_shiftsi_si): Likewise.
21203 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
21205         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
21206         instruction sequence is 1 byte shorter.
21208 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
21210         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
21211         it is not needed after split.
21213 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
21215         PR target/51784
21216         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
21217         second label for nonlocal goto receivers. Don't output pic base labels
21218         unless we're producing PIC; mark that action unreachable().
21219         (ix86_save_reg): If the function contains a nonlocal label, save the
21220         PIC base reg.
21221         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
21222         * config/darwin.c (emitted_pic_label_num): New GTY.
21223         (update_pic_label_number_if_needed): New.
21224         (machopic_output_function_base_name): Adjust for nonlocal receiver
21225         case.
21226         (machopic_should_output_picbase_label): New.
21227         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
21228         (nonlocal_goto_receiver): New insn and split.
21230 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
21232         * config/aarch64/aarch64-builtins.c
21233         (aarch64_fold_builtin): Fold abs in all modes.
21234         * config/aarch64/aarch64-simd-builtins.def
21235         (abs): Enable for all modes.
21236         * config/aarch64/arm_neon.h
21237         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
21238         (vabs_f64): Add missing intrinsic.
21240 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
21242         * config/aarch64/arm_neon.h (vabs_s64): New function
21244 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
21246         PR target/57516
21247         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
21248         * config/avr/avr.md (adjust_len): Add `round'.
21249         * config/avr/avr-protos.h (avr_out_round): New prototype.
21250         (avr_out_plus): Add `out_label' argument.
21251         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
21252         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
21253         Handle the case where `insn' is just a pattern.
21254         (avr_out_bitop): Handle the case where `insn' is just a pattern.
21255         (avr_out_round): New function.
21256         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
21258 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
21260         * config/microblaze/microblaze.c (microblaze_expand_prologue):
21261         Add check for flag_stack_usage to handle -fstack-usage support
21263 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
21265         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
21266         interaction for new Power8 flags and VSX.
21268 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
21270         PR middle-end/57698
21271         * tree-inline.c (expand_call_inline): Emit errors during
21272         early_inlining only if optimization is not turned on.
21274 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21276         * passes.def: New.
21278         * passes.c (init_optimization_passes): Move the construction of
21279         the pass hierarchy into a new passes.def file.
21281         * Makefile.in (passes.o): Add dependency on passes.def.
21283 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21285         * passes.c (init_optimization_passes): Introduce macros for
21286         constructing the tree of passes (INSERT_PASSES_AFTER,
21287         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
21288         TERMINATE_PASS_LIST).
21290 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
21291             Wei Mi  <wmi@google.com>
21293         PR rtl-optimization/57878
21294         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
21295         top.
21296         (reload_pseudo_compare_func): Check nregs first for reload
21297         pseudos.
21299 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21301         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
21303 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
21305         * read-rtl.c (validate_const_int): Once an invalid character is
21306         seen, quit the loop.
21308         * gengtype.c (write_roots): Similarly once we find the "deletable"
21309         or "if_marked" option.
21311 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
21313         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
21314         "xtab" and "sat".  Move value "clz" from here to ...
21315         (attriubte "type"): ... here.
21316         (satsi_<SAT:code>): Delete "insn" attribute.
21317         (satsi_<SAT:code>_shift): Likewise.
21318         (arm_zero_extendqisi2addsi): Likewise.
21319         (arm_extendqisi2addsi): Likewise.
21320         (clzsi2): Update for attribute changes.
21321         (rbitsi2): Likewise.
21322         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
21323         attribute.
21324         (arm_usatsihi): Likewise.
21325         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21327 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
21329         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
21330         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
21331         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
21332         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
21333         in alphabetical order.
21334         (attribute "core_cycles"): Update for attribute changes.
21335         (arm_addsi3): Likewise.
21336         (addsi3_compare0): Likewise.
21337         (addsi3_compare0_scratch): Likewise.
21338         (addsi3_compare_op1): Likewise.
21339         (addsi3_compare_op2): Likewise.
21340         (compare_addsi2_op0): Likewise.
21341         (compare_addsi2_op1): Likewise.
21342         (addsi3_carryin_shift_<optab>): Likewise.
21343         (subsi3_carryin_shift): Likewise.
21344         (rsbsi3_carryin_shift): Likewise.
21345         (arm_subsi3_insn): Likewise.
21346         (subsi3_compare0): Likewise.
21347         (subsi3_compare): Likewise.
21348         (arm_andsi3_insn): Likewise.
21349         (thumb1_andsi3_insn): Likewise.
21350         (andsi3_compare0): Likewise.
21351         (andsi3_compare0_scratch): Likewise.
21352         (zeroextractsi_compare0_scratch
21353         (andsi_not_shiftsi_si): Likewise.
21354         (iorsi3_insn): Likewise.
21355         (iorsi3_compare0): Likewise.
21356         (iorsi3_compare0_scratch): Likewise.
21357         (arm_xorsi3): Likewise.
21358         (thumb1_xorsi3_insn): Likewise.
21359         (xorsi3_compare0): Likewise.
21360         (xorsi3_compare0_scratch): Likewise.
21361         (satsi_<SAT:code>_shift): Likewise.
21362         (rrx): Likewise.
21363         (arm_shiftsi3): Likewise.
21364         (shiftsi3_compare0): Likewise.
21365         (not_shiftsi): Likewise.
21366         (not_shiftsi_compare0): Likewise.
21367         (not_shiftsi_compare0_scratch): Likewise.
21368         (arm_one_cmplsi2): Likewise.
21369         (thumb_one_complsi2): Likewise.
21370         (notsi_compare0): Likewise.
21371         (notsi_compare0_scratch): Likewise.
21372         (thumb1_zero_extendhisi2): Likewise.
21373         (arm_zero_extendhisi2): Likewise.
21374         (arm_zero_extendhisi2_v6): Likewise.
21375         (arm_zero_extendhisi2addsi): Likewise.
21376         (thumb1_zero_extendqisi2): Likewise.
21377         (thumb1_zero_extendqisi2_v6): Likewise.
21378         (arm_zero_extendqisi2): Likewise.
21379         (arm_zero_extendqisi2_v6): Likewise.
21380         (arm_zero_extendqisi2addsi): Likewise.
21381         (thumb1_extendhisi2): Likewise.
21382         (arm_extendhisi2): Likewise.
21383         (arm_extendhisi2_v6): Likewise.
21384         (arm_extendqisi): Likewise.
21385         (arm_extendqisi_v6): Likewise.
21386         (arm_extendqisi2addsi): Likewise.
21387         (thumb1_extendqisi2): Likewise.
21388         (thumb1_movdi_insn): Likewise.
21389         (arm_movsi_insn): Likewise.
21390         (movsi_compare0): Likewise.
21391         (movhi_insn_arch4): Likewise.
21392         (movhi_bytes): Likewise.
21393         (arm_movqi_insn): Likewise.
21394         (thumb1_movqi_insn): Likewise.
21395         (arm32_movhf): Likewise.
21396         (thumb1_movhf): Likewise.
21397         (arm_movsf_soft_insn): Likewise.
21398         (thumb1_movsf_insn): Likewise.
21399         (movdf_soft_insn): Likewise.
21400         (thumb_movdf_insn): Likewise.
21401         (arm_cmpsi_insn): Likewise.
21402         (cmpsi_shiftsi): Likewise.
21403         (cmpsi_shiftsi_swp): Likewise.
21404         (arm_cmpsi_negshiftsi_si): Likewise.
21405         (movsicc_insn): Likewise.
21406         (movsfcc_soft_insn): Likewise.
21407         (arith_shiftsi): Likewise.
21408         (arith_shiftsi_compare0
21409         (arith_shiftsi_compare0_scratch
21410         (sub_shiftsi): Likewise.
21411         (sub_shiftsi_compare0
21412         (sub_shiftsi_compare0_scratch
21413         (and_scc): Likewise.
21414         (cond_move): Likewise.
21415         (if_plus_move): Likewise.
21416         (if_move_plus): Likewise.
21417         (if_move_not): Likewise.
21418         (if_not_move): Likewise.
21419         (if_shift_move): Likewise.
21420         (if_move_shift): Likewise.
21421         (if_shift_shift): Likewise.
21422         (if_not_arith): Likewise.
21423         (if_arith_not): Likewise.
21424         (cond_move_not): Likewise.
21425         (thumb1_ashlsi3): Set type attribute.
21426         (thumb1_ashrsi3): Likewise.
21427         (thumb1_lshrsi3): Likewise.
21428         (thumb1_rotrsi3): Likewise.
21429         (shiftsi3_compare0_scratch): Likewise.
21430         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
21431         (neon_mov<mode>): Likewise.
21432         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
21433         attribute changes.
21434         (thumb2_movsi_insn): Likewise.
21435         (thumb2_cmpsi_neg_shiftsi): Likewise.
21436         (thumb2_extendqisi_v6): Likewise.
21437         (thumb2_zero_extendhisi2_v6): Likewise.
21438         (thumb2_zero_extendqisi2_v6): Likewise.
21439         (thumb2_shiftsi3_short): Likewise.
21440         (thumb2_addsi3_compare0_scratch): Likewise.
21441         (orsi_not_shiftsi_si): Likewise.
21442         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
21443         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
21444         changes.
21445         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
21446         (1020alu_shift_op): Likewise.
21447         (1020alu_shift_reg_op): Likewise.
21448         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
21449         (alu_shift_op): Likewise.
21450         (alu_shift_reg_op): Likewise.
21451         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
21452         (11_alu_shift_op): Likewise.
21453         (11_alu_shift_reg_op): Likewise.
21454         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
21455         (9_alu_shift_reg_op): Likewise.
21456         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21457         changes.
21458         (cortex_a15_alu_shift): Likewise.
21459         (cortex_a15_alu_shift_reg): Likewise.
21460         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
21461         changes.
21462         (cortex_a5_alu_shift): Likewise.
21463         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
21464         changes.
21465         (cortex_a53_alu_shift): Likewise.
21466         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21467         changes.
21468         (cortex_a7_alu_reg): Likewise.
21469         (cortex_a7_alu_shift): Likewise.
21470         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
21471         changes.
21472         (cortex_a8_alu_shift): Likewise.
21473         (cortex_a8_alu_shift_reg): Likewise.
21474         (cortex_a8_mov): Likewise.
21475         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
21476         (cortex_a9_dp_shift): Likewise.
21477         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
21478         changes.
21479         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
21480         changes.
21481         (cortex_r4_mov): Likewise.
21482         (cortex_r4_alu_shift): Likewise.
21483         (cortex_r4_alu_shift_reg): Likewise.
21484         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
21485         (526_alu_shift_op): Likewise.
21486         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
21487         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
21488         (626te_alu_shift_op): Likewise.
21489         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
21490         (726te_alu_op): Likewise.
21491         (726te_alu_shift_op): Likewise.
21492         (726te_alu_shift_reg_op): Likewise.
21493         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
21494         (mp626_alu_shift_op): Likewise.
21495         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
21496         (pj4_alu_e1_conds): Likewise.
21497         (pj4_alu): Likewise.
21498         (pj4_alu_conds): Likewise.
21499         (pj4_shift): Likewise.
21500         (pj4_shift_conds): Likewise.
21501         (pj4_alu_shift): Likewise.
21502         (pj4_alu_shift_conds): Likewise.
21503         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21504         changes.
21505         (cortexa7_older_only): Likewise.
21506         (cortexa7_younger): Likewise.
21508 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21510         * ipa-pure-const.c (generate_summary): Rename to...
21511         (pure_const_generate_summary): ... this.
21513 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
21515         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
21517 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
21519         PR target/57909
21520         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
21521         usage in HI mode.
21523 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21525         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
21526         enabled without -march=zEC12.
21527         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
21528         flags to be set.
21530 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
21532         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
21533         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
21534         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
21535         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
21536         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
21537         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
21538         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
21539         ISA_HAS_FP4.
21540         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
21541         and ISA_HAS_NMADD3_NMSUB3.
21542         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
21543         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
21544         (nmsub4<mode>, nmsub3<mode>): Likewise.
21545         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
21547 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
21549         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
21550         TARGET_MIPS5400 checking.
21552 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
21553             Peter Bergner  <bergner@vnet.ibm.com>
21555         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
21556         registers in the comment.
21557         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
21558         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
21559         rather than FIRST_PSEUDO_REGISTERS.
21561 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
21563         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
21564         enable extra ISA flags with TARGET_HTM.
21566 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
21568         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
21569         Fix comment typos.
21571 2013-07-15  Cong Hou  <congh@google.com>
21573         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
21574         in compare function for sorting.
21576 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
21578         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
21579         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
21580         * config/rs6000/rs6000.opt: Add -mhtm option.
21581         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
21582         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
21583         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
21584         __HTM__ if the HTM instructions are available.
21585         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
21586         htm_spr_reg_operand): New define_predicates.
21587         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
21588         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
21589         Include htm.md.
21590         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
21591         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
21592         HTM builtin functions.
21593         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
21594         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
21595         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
21596         (rs6000_builtin_mask_calculate): Likewise.
21597         (rs6000_option_override_internal): Likewise.
21598         (bdesc_htm): Add new HTM builtin support.
21599         (htm_spr_num): New function.
21600         (htm_spr_regno): Likewise.
21601         (rs6000_htm_spr_icode): Likewise.
21602         (htm_expand_builtin): Likewise.
21603         (htm_init_builtins): Likewise.
21604         (rs6000_expand_builtin): Add support for HTM builtin functions.
21605         (rs6000_init_builtins): Likewise.
21606         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
21607         option.
21608         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
21609         (TARGET_HTM, MASK_HTM): Define macros.
21610         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
21611         (FIXED_REGISTERS): Likewise.
21612         (CALL_USED_REGISTERS): Likewise.
21613         (CALL_REALLY_USED_REGISTERS): Likewise.
21614         (REG_ALLOC_ORDER): Likewise.
21615         (enum reg_class): Likewise.
21616         (REG_CLASS_NAMES): Likewise.
21617         (REG_CLASS_CONTENTS): Likewise.
21618         (REGISTER_NAMES): Likewise.
21619         (ADDITIONAL_REGISTER_NAMES): Likewise.
21620         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
21621         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
21622         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
21623         * config/rs6000/htm.md: New file.
21624         * config/rs6000/htmintrin.h: New file.
21625         * config/rs6000/htmxlintrin.h: New file.
21627 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21629         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
21630         Define SYMBOL_TINY_GOT, update comment.
21631         * config/aarch64/aarch64.c
21632         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
21633         (aarch64_expand_mov_immediate): Likewise.
21634         (aarch64_print_operand): Likewise.
21635         (aarch64_classify_symbol): Likewise.
21636         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
21637         (ldr_got_tiny): Define.
21639 2013-07-13  Tobias Grosser  <tobias@grosser.es>
21641         PR tree-optimization/54094
21642         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
21643           scheduling dimension for the parallelism check from the polyhedral
21644           information in the AST.
21645         * graphite-dependences.c (carries_deps): Do not assume the schedule is
21646           in 2D + 1 form.
21648 2013-07-13  Jason Merrill  <jason@redhat.com>
21650         * print-tree.c (debug_vec_tree): Use debug_raw.
21651         (debug_raw (vec<tree, va_gc> &)): New.
21652         (debug_raw (vec<tree, va_gc> *)): New.
21653         * tree.h: Declare them.
21655 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
21657         * ifcvt.c (ifcvt_after_combine): New static variable.
21658         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
21659         for size.
21660         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
21661         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
21662         rest_of_handle_if_after_reload): Pass new argument for if_convert.
21664 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
21666         * config/mips/mips.c (mips_expand_call): Remove empty statement.
21668 2013-07-12  Michael Matz  <matz@suse.de>
21670         PR middle-end/55771
21671         * convert.c (convert_to_real): Reject non-float inner types.
21673 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
21675         * config/aarch64/aarch64-protos.h
21676         (aarch64_simd_immediate_valid_for_move): Remove.
21677         * config/aarch64/aarch64.c (simd_immediate_info): New member.
21678         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
21679         cases.
21680         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
21682 2013-07-11  Steve Ellcey  <sellcey@mips.com>
21684         * config/mips/mips.c (mips_conditional_register_usage): Do not
21685         use t[0-7] registers in MIPS16 mode when optimizing for size.
21687 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
21689         * config/i386/i386.c (dispatch_function_versions): Fix array
21690         indexing of function_version_info to match actual_versions.
21692 2013-07-11  Teresa Johnson  <tejohnson@google.com>
21694         * vec.h (struct va_gc): Move release out-of-line.
21695         (va_gc::release): Call ggc_free on released vec.
21697 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21699         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
21700         Require GOT register as additional operand in UNSPEC.
21701         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
21702         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
21703         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
21704         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
21705         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
21706         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
21707         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
21709 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
21711         PR target/57631
21712         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
21713         name seen by assembler/linker rather if available.
21715 2013-07-11  Andreas Schwab  <schwab@suse.de>
21717         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
21719 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
21721         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21723 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
21725         * doc/tm.texi.in: Move hook documentation to ....
21726         * target.def: ... here.
21728         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
21729         text on @hook line.
21730         * doc/tm.texi: Regenerate.
21732 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
21734         PR c++/57869
21735         * doc/invoke.texi: Document -Wconditionally-supported.
21737 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
21739         PR target/57844
21740         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
21741         of my_fp.
21743 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
21745         PR target/57506
21746         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
21747         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
21748         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
21749         Remove duplicate devices.
21750         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
21751         * config/avr/t-multilib: Regenerate.
21752         * config/avr/avr-tables.opt: Regenerate.
21753         * doc/avr-mmcu.texi: Regenerate.
21755 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
21757         PR target/56987
21758         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
21760 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
21762         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
21763         the cost of MULT when optimizing for size.
21765 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21767         * config/cr16/cr16-protos.h: Don't include target.h.
21769 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
21771         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
21772         adjust register size for TDmode and TFmode for VSX registers.
21774 2013-07-08  Kai Tietz  <ktietz@redhat.com>
21776         PR target/56892
21777         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
21778         hook_bool_const_tree_true.
21780 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21782         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
21783         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
21784         * config/s390/s390.md: Define FPR*_REGNUM constants.
21785         Fix FPR2_REGNUM constant (18 -> 17).
21786         ("*trunc<BFP:mode><DFP_ALL:mode>2")
21787         ("*trunc<DFP_ALL:mode><BFP:mode>2")
21788         ("trunc<BFP:mode><DFP_ALL:mode>2")
21789         ("trunc<DFP_ALL:mode><BFP:mode>2")
21790         ("*extend<BFP:mode><DFP_ALL:mode>2")
21791         ("*extend<DFP_ALL:mode><BFP:mode>2")
21792         ("extend<BFP:mode><DFP_ALL:mode>2")
21793         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
21794         FPR4_REGNUM.
21796 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
21798         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
21800 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21802         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
21803         and cfun_fpr_bit_p to cfun_fpr_save_p.
21804         (s390_frame_area, s390_register_info, s390_frame_info)
21805         (s390_emit_prologue, s390_emit_epilogue)
21806         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
21807         register numbers.
21808         * config/s390/s390.h: Define *_REGNUM macros for floating point
21809         register numbers.
21811 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
21813         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
21815 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
21817         PR rtl-optimization/57786
21818         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
21819         and break out of the loop when it is set to false.
21821 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
21823         PR target/57819
21824         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
21825         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
21826         (const_int 63)) 0)).
21827         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
21828         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
21829         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
21831         PR rtl-optimization/57829
21832         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
21833         mask bits outside of mode are just sign-extension from mode to HWI.
21835 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
21837         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
21838         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
21839         adjust_address instead of change_address to keep info about alignment.
21840         (emit_strmov): Remove.
21841         (emit_memmov): New function.
21842         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
21843         (expand_movmem_epilogue): Likewise and return updated rtx for
21844         destination.
21845         (expand_constant_movmem_prologue): Likewise and return updated rtx for
21846         destination and source.
21847         (decide_alignment): Refactor, handle vector_loop.
21848         (ix86_expand_movmem): Likewise.
21849         (ix86_expand_setmem): Likewise.
21850         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
21852 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
21854         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
21855         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
21857 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
21859         * config/i386/sse.md (sse_movlhps): Change alternative 3
21860         of operand 2 to "m".
21862 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
21864         PR target/57807
21865         * config/i386/sse.md (iptr): New mode attribute.
21866         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
21867         (<sse>_vm<plusminus_insn><mode>3): Ditto.
21868         (<sse>_vmmul<mode>3): Ditto.
21869         (<sse>_vmdiv<mode>3): Ditto.
21870         (sse_vmrcpv4sf2): Ditto.
21871         (<sse>_vmsqrt<mode>2): Ditto.
21872         (sse_vmrsqrtv4sf2): Ditto.
21873         (<sse>_vm<code><mode>3): Ditto.
21874         (avx_vmcmp<mode>3): Ditto.
21875         (<sse>_vmmaskcmp<mode>3): Ditto.
21876         (<sse>_comi): Ditto.
21877         (<sse>_ucomi): Ditto.
21878         (*xop_vmfrcz_<mode>): Ditto.
21879         (*fmai_fmadd_<mode>): Ditto.
21880         (*fmai_fmsub_<mode>): Ditto.
21881         (*fmai_fnmadd_<mode>): Ditto.
21882         (*fmai_fnmsub_<mode>): Ditto.
21883         (*fma4i_vmfmadd_<mode>): Ditto.
21884         (*fma4i_vmfmsub_<mode>): Ditto.
21885         (*fma4i_vmfnmadd_<mode>): Ditto.
21886         (*fma4i_vmfnmsub_<mode>): Ditto.
21887         (*xop_vmfrcz_<mode>): Ditto.
21888         (sse_cvtps2pi): Ditto.
21889         (sse_cvttps2pi): Ditto.
21890         (sse_cvtss2si): Ditto.
21891         (sse_cvtss2si_2): Ditto.
21892         (sse_cvtss2siq_2): Ditto.
21893         (sse_cvttss2si): Ditto.
21894         (sse_cvttss2siq): Ditto.
21895         (sse_cvtsd2si): Ditto.
21896         (sse_cvtsd2si_2): Ditto.
21897         (sse_cvtsd2siq_2): Ditto.
21898         (sse_cvttsd2si): Ditto.
21899         (sse_cvttsd2siq): Ditto.
21900         (sse_cvtsd2ss): Ditto.
21901         (sse_cvtss2sd): Ditto.
21902         (avx2_pbroadcast<mode>): Ditto.
21903         (avx2_pbroadcast<mode>_1): Ditto.
21904         (*avx_vperm_broadcast_v4sf): Ditto.
21906         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
21907         (sse_movlhps): Ditto.
21908         (sse_storehps): Ditto.
21909         (sse_loadhps): Ditto.
21910         (sse_storelps): Ditto.
21911         (sse_loadlps): Ditto.
21912         (*vec_concatv4sf): Ditto.
21913         (*vec_interleave_highv2df): Ditto.
21914         (*vec_interleave_lowv2df): Ditto.
21915         (*vec_extractv2df_1_sse): Ditto.
21916         (*vec_extractv2df_0_sse): Ditto.
21917         (sse2_storelpd): Ditto.
21918         (sse2_loadlpd): Ditto.
21919         (sse2_movsd): Ditto.
21920         (*vec_concatv4si): Ditto.
21921         (vec_concatv2di): Ditto.
21923         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
21924         for Intel asm dialect.
21925         (mmx_punpcklwd): Ditto.
21926         (mmx_punpckldq): Ditto.
21928         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
21929         for intel assembler dialect.
21931 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
21933         PR target/29776
21934         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
21935         for BUILT_IN_C{LZ,LRSB}*.
21936         * tree.h (CASE_INT_FN): Add FN##IMAX case.
21937         * tree-vrp.c (extract_range_basic): Handle
21938         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
21939         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
21940         fall thru to code calling set_value*.
21941         * builtins.c (expand_builtin): Remove *IMAX cases.
21942         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
21943         if width is bigger than 2*HWI.
21945 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
21947         PR rtl-optimization/55342
21948         * lra-int.h (lra_subreg_reload_pseudos): New.
21949         * lra.c: Add undoing optional reloads to the block diagram.
21950         (lra_subreg_reload_pseudos): New.
21951         (lra_optional_reload_pseudos): Change comments.
21952         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
21953         lra_optional_reload_pseudos after undo transformations.
21954         * lra-assigns.c (pseudo_prefix_title): New.
21955         (lra_setup_reg_renumber): Use it.
21956         (spill_for): Ditto.  Check subreg reload pseudos too.
21957         (assign_by_spills): Consider subreg reload pseudos too.
21958         * lra-constraints.c (simplify_operand_subreg): Use
21959         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
21960         (curr_insn_transform): Recognize and do optional reloads.
21961         (undo_optional_reloads): New.
21962         (lra_undo_inheritance): Call undo_optional_reloads.
21964 2013-07-05  Thomas Quinot  <quinot@adacore.com>
21966         * tree-complex.c (expand_complex_operations_1): Fix typo.
21968 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
21970         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
21971         (tune_params): New member 'const vec_costs'.
21972         * config/aarch64/aarch64.c (generic_vector_cost): New.
21973         (generic_tunings): New member 'generic_vector_cost'.
21974         (aarch64_builtin_vectorization_cost): New.
21975         (aarch64_add_stmt_cost): New.
21976         (TARGET_VECTORIZE_ADD_STMT_COST): New.
21977         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
21979 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
21981         PR target/57777
21982         * config/i386/predicates.md (vsib_address_operand): Disallow
21983         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
21985 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
21987         PR middle-end/55030
21988         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
21989         expand_builtin_setjmp_receiver.
21990         (expand_label): Adjust, call expand_builtin_setjmp_receiver
21991         with NULL for the label parameter.
21992         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
21993         the frame-pointer.  Adjust comments.
21994         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
21995         only if LABEL is non-NULL.
21997 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
21999         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
22000         (ARM_ABI_AAPCS64): Ditto.
22001         (arm_abi): Ditto.
22002         (ARM_DEFAULT_ABI): Ditto.
22004 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
22006         * config/aarch64/aarch64-builtins.c
22007         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
22008         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
22009         (st1): Likewise.
22010         * config/aarch64/aarch64-simd.md
22011         (aarch64_ld1<VALL:mode>): New.
22012         (aarch64_st1<VALL:mode>): Likewise.
22013         * config/aarch64/arm_neon.h
22014         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
22016 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
22018         * config/i386/i386.c (gate_insert_vzeroupper): Check if
22019         target ISA is AVX.
22020         (ix86_option_override_internal):Turn on all -mavx target flags by
22021         default as they are dependent on AVX anyway.
22023 2013-07-02  Cary Coutant  <ccoutant@google.com>
22025         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
22026         deterministic hash.
22027         (loc_checksum_ordered): Likewise.
22028         (hash_loc_operands): Remove inline keyword.
22030 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
22032         PR tree-optimization/57741
22033         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
22034         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
22035         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
22036         Allow REAL_CST step_exprs if flag_associative_math.
22037         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
22039 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
22041         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
22043 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
22045         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
22047 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22049         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
22050         encoding.
22051         (iorsi3_insn): Likewise.
22052         (arm_xorsi3): Likewise.
22054 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
22056         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
22057         to ...
22058         (attribute "type"): ... here, and prefix with "wmmx_".
22059         (attribute "core_cycles"): Update for attribute changes.
22060         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
22061         (tbcstv4hi): Likewise.
22062         (tbcstv2si): Likewise.
22063         (iwmmxt_iordi3): Likewise.
22064         (iwmmxt_xordi3): Likewise.
22065         (iwmmxt_anddi3): Likewise.
22066         (iwmmxt_nanddi3): Likewise.
22067         (iwmmxt_arm_movdi): Likewise.
22068         (iwmmxt_movsi_insn): Likewise.
22069         (mov<mode>_internal): Likewise.
22070         (and<mode>3_iwmmxt): Likewise.
22071         (ior<mode>3_iwmmxt): Likewise.
22072         (xor<mode>3_iwmmxt): Likewise.
22073         (add<mode>3_iwmmxt): Likewise.
22074         (ssaddv8qi3): Likewise.
22075         (ssaddv4hi3): Likewise.
22076         (ssaddv2si3): Likewise.
22077         (usaddv8qi3): Likewise.
22078         (usaddv4hi3): Likewise.
22079         (usaddv2si3): Likewise.
22080         (sub<mode>3_iwmmxt): Likewise.
22081         (sssubv8qi3): Likewise.
22082         (sssubv4hi3): Likewise.
22083         (sssubv2si3): Likewise.
22084         (ussubv8qi3): Likewise.
22085         (ussubv4hi3): Likewise.
22086         (ussubv2si3): Likewise.
22087         (mulv4hi3_iwmmxt): Likewise.
22088         (smulv4hi3_highpart): Likewise.
22089         (umulv4hi3_highpart): Likewise.
22090         (iwmmxt_wmacs): Likewise.
22091         (iwmmxt_wmacsz): Likewise.
22092         (iwmmxt_wmacu): Likewise.
22093         (iwmmxt_wmacuz): Likewise.
22094         (iwmmxt_clrdi): Likewise.
22095         (iwmmxt_clrv8qi): Likewise.
22096         (iwmmxt_clr4hi): Likewise.
22097         (iwmmxt_clr2si): Likewise.
22098         (iwmmxt_uavgrndv8qi3): Likewise.
22099         (iwmmxt_uavgrndv4hi3): Likewise.
22100         (iwmmxt_uavgv8qi3): Likewise.
22101         (iwmmxt_uavgv4hi3): Likewise.
22102         (iwmmxt_tinsrb): Likewise.
22103         (iwmmxt_tinsrh): Likewise.
22104         (iwmmxt_tinsrw): Likewise.
22105         (iwmmxt_textrmub): Likewise.
22106         (iwmmxt_textrmsb): Likewise.
22107         (iwmmxt_textrmuh): Likewise.
22108         (iwmmxt_textrmsh): Likewise.
22109         (iwmmxt_textrmw): Likewise.
22110         (iwmxxt_wshufh): Likewise.
22111         (eqv8qi3): Likewise.
22112         (eqv4hi3): Likewise.
22113         (eqv2si3): Likewise.
22114         (gtuv8qi3): Likewise.
22115         (gtuv4hi3): Likewise.
22116         (gtuv2si3): Likewise.
22117         (gtv8qi3): Likewise.
22118         (gtv4hi3): Likewise.
22119         (gtv2si3): Likewise.
22120         (smax<mode>3_iwmmxt): Likewise.
22121         (umax<mode>3_iwmmxt): Likewise.
22122         (smin<mode>3_iwmmxt): Likewise.
22123         (umin<mode>3_iwmmxt): Likewise.
22124         (iwmmxt_wpackhss): Likewise.
22125         (iwmmxt_wpackwss): Likewise.
22126         (iwmmxt_wpackdss): Likewise.
22127         (iwmmxt_wpackhus): Likewise.
22128         (iwmmxt_wpackwus): Likewise.
22129         (iwmmxt_wpackdus): Likewise.
22130         (iwmmxt_wunpckihb): Likewise.
22131         (iwmmxt_wunpckihh): Likewise.
22132         (iwmmxt_wunpckihw): Likewise.
22133         (iwmmxt_wunpckilb): Likewise.
22134         (iwmmxt_wunpckilh): Likewise.
22135         (iwmmxt_wunpckilw): Likewise.
22136         (iwmmxt_wunpckehub): Likewise.
22137         (iwmmxt_wunpckehuh): Likewise.
22138         (iwmmxt_wunpckehuw): Likewise.
22139         (iwmmxt_wunpckehsb): Likewise.
22140         (iwmmxt_wunpckehsh): Likewise.
22141         (iwmmxt_wunpckehsw): Likewise.
22142         (iwmmxt_wunpckelub): Likewise.
22143         (iwmmxt_wunpckeluh): Likewise.
22144         (iwmmxt_wunpckeluw): Likewise.
22145         (iwmmxt_wunpckelsb): Likewise.
22146         (iwmmxt_wunpckelsh): Likewise.
22147         (iwmmxt_wunpckelsw): Likewise.
22148         (ror<mode>3): Likewise.
22149         (ashr<mode>3_iwmmxt): Likewise.
22150         (lshr<mode>3_iwmmxt): Likewise.
22151         (ashl<mode>3_iwmmxt): Likewise.
22152         (ror<mode>3_di): Likewise.
22153         (ashr<mode>3_di): Likewise.
22154         (lshr<mode>3_di): Likewise.
22155         (ashl<mode>3_di): Likewise.
22156         (iwmmxt_wmadds): Likewise.
22157         (iwmmxt_wmaddu): Likewise.
22158         (iwmmxt_tmia): Likewise.
22159         (iwmmxt_tmiaph): Likewise.
22160         (iwmmxt_tmiabb): Likewise.
22161         (iwmmxt_tmiatb): Likewise.
22162         (iwmmxt_tmiabt): Likewise.
22163         (iwmmxt_tmiatt): Likewise.
22164         (iwmmxt_tmovmskb): Likewise.
22165         (iwmmxt_tmovmskh): Likewise.
22166         (iwmmxt_tmovmskw): Likewise.
22167         (iwmmxt_waccb): Likewise.
22168         (iwmmxt_wacch): Likewise.
22169         (iwmmxt_waccw): Likewise.
22170         (iwmmxt_waligni): Likewise.
22171         (iwmmxt_walignr): Likewise.
22172         (iwmmxt_walignr0): Likewise.
22173         (iwmmxt_walignr1): Likewise.
22174         (iwmmxt_walignr2): Likewise.
22175         (iwmmxt_walignr3): Likewise.
22176         (iwmmxt_wsadb): Likewise.
22177         (iwmmxt_wsadh): Likewise.
22178         (iwmmxt_wsadbz): Likewise.
22179         (iwmmxt_wsadhz): Likewise.
22180         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
22181         (iwmmxt_wabsdiffb): Likewise.
22182         (iwmmxt_wabsdiffh): Likewise.
22183         (iwmmxt_wabsdiffw): Likewise.
22184         (iwmmxt_waddsubhx): Likewise
22185         (iwmmxt_wsubaddhx): Likewise.
22186         (addc<mode>3): Likewise.
22187         (iwmmxt_avg4): Likewise.
22188         (iwmmxt_avg4r): Likewise.
22189         (iwmmxt_wmaddsx): Likewise.
22190         (iwmmxt_wmaddux): Likewise.
22191         (iwmmxt_wmaddsn): Likewise.
22192         (iwmmxt_wmaddun): Likewise.
22193         (iwmmxt_wmulwsm): Likewise.
22194         (iwmmxt_wmulwum): Likewise.
22195         (iwmmxt_wmulsmr): Likewise.
22196         (iwmmxt_wmulumr): Likewise.
22197         (iwmmxt_wmulwsmr): Likewise.
22198         (iwmmxt_wmulwumr): Likewise.
22199         (iwmmxt_wmulwl): Likewise.
22200         (iwmmxt_wqmulm): Likewise.
22201         (iwmmxt_wqmulwm): Likewise.
22202         (iwmmxt_wqmulmr): Likewise.
22203         (iwmmxt_wqmulwmr): Likewise.
22204         (iwmmxt_waddbhusm): Likewise.
22205         (iwmmxt_waddbhusl): Likewise.
22206         (iwmmxt_wqmiabb): Likewise.
22207         (iwmmxt_wqmiabt): Likewise.
22208         (iwmmxt_wqmiatb): Likewise.
22209         (iwmmxt_wqmiatt): Likewise.
22210         (iwmmxt_wqmiabbn): Likewise.
22211         (iwmmxt_wqmiabtn): Likewise.
22212         (iwmmxt_wqmiatbn): Likewise.
22213         (iwmmxt_wqmiattn): Likewise.
22214         (iwmmxt_wmiabb): Likewise.
22215         (iwmmxt_wmiabt): Likewise.
22216         (iwmmxt_wmiatb): Likewise.
22217         (iwmmxt_wmiatt): Likewise.
22218         (iwmmxt_wmiabbn): Likewise.
22219         (iwmmxt_wmiabtn): Likewise.
22220         (iwmmxt_wmiatbn): Likewise.
22221         (iwmmxt_wmiattn): Likewise.
22222         (iwmmxt_wmiawbb): Likewise.
22223         (iwmmxt_wmiawbt): Likewise.
22224         (iwmmxt_wmiawtb): Likewise.
22225         (iwmmxt_wmiawtt): Likewise.
22226         (iwmmxt_wmiawbbn): Likewise.
22227         (iwmmxt_wmiawbtn): Likewise.
22228         (iwmmxt_wmiawtbn): Likewise.
22229         (iwmmxt_wmiawttn): Likewise.
22230         (iwmmxt_wmerge): Likewise.
22231         (iwmmxt_tandc<mode>3): Likewise.
22232         (iwmmxt_torc<mode>3): Likewise.
22233         (iwmmxt_torvsc<mode>3): Likewise.
22234         (iwmmxt_textrc<mode>3): Likewise.
22235         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
22236         (wmmxt_pack): Likewise.
22237         (wmmxt_mult_c1): Likewise.
22238         (wmmxt_mult_c2): Likewise.
22239         (wmmxt_alu_c1): Likewise.
22240         (wmmxt_alu_c2): Likewise.
22241         (wmmxt_alu_c3): Likewise.
22242         (wmmxt_transfer_c1): Likewise.
22243         (wmmxt_transfer_c2): Likewise.
22244         (wmmxt_transfer_c3): Likewise.
22245         (marvell_f_iwmmxt_wstr): Likewise.
22246         (marvell_f_iwmmxt_wldr): Likewise.
22248 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
22250         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
22252 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22254         Revert:
22255         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22256         * lra-constraints.c (need_for_split_p): Check call used hard regs
22257         living through calls.
22259         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
22260         call used regs for call insn.
22262 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
22264         PR target/57736
22265         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
22266         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
22268 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
22270         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
22272 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22274         * lra-constraints.c (need_for_split_p): Check call used hard regs
22275         living through calls.
22277 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
22279         PR target/57744
22280         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
22281         to tie with any other modes.  Eliminate Altivec vector mode tests,
22282         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
22283         code, to return 0 if testing MODE2 for a condition, if we've
22284         already tested MODE1 for the same condition.
22286 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22288         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
22289         layout.
22291 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22293         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22294         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
22296 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22298         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
22299         Define.
22300         (aarch64_symbolic_constant_p): Remove.
22301         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
22302         static.  Fix line length and white space.
22303         (aarch64_symbolic_constant_p): Remove.
22304         * config/aarch64/predicates.md (aarch64_valid_symref):
22305         Use aarch64_classify_symbol_expression.
22307 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22309         * config/arm/constraints.md (Ts): New constraint.
22310         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
22311         16-bit encodings.
22312         (compare_scc): Use "Ts" constraint for operand 0.
22313         (ior_scc_scc): Likewise.
22314         (and_scc_scc): Likewise.
22315         (and_scc_scc_nodom): Likewise.
22316         (ior_scc_scc_cmp): Likewise for operand 7.
22317         (and_scc_scc_cmp): Likewise.
22318         * config/arm/thumb2.md (thumb2_movsi_insn):
22319         Add alternatives for 16-bit encodings.
22320         (thumb2_movhi_insn): Likewise.
22321         (thumb2_movsicc_insn): Likewise.
22322         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
22323         (thumb2_negscc): Use "Ts" constraint.
22324         Move mvn instruction outside cond_exec block.
22325         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
22326         for 16-bit encodings.
22328 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22330         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
22331         encoding.
22332         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
22333         (mulsi3subsi): Likewise.
22334         (mulsidi3adddi): Likewise.
22335         (mulsidi3_v6): Likewise.
22336         (umulsidi3_v6): Likewise.
22337         (umulsidi3adddi_v6): Likewise.
22338         (smulsi3_highpart_v6): Likewise.
22339         (umulsi3_highpart_v6): Likewise.
22340         (mulhisi3tb): Likewise.
22341         (mulhisi3bt): Likewise.
22342         (mulhisi3tt): Likewise.
22343         (maddhisi4): Likewise.
22344         (maddhisi4tb): Likewise.
22345         (maddhisi4tt): Likewise.
22346         (maddhidi4): Likewise.
22347         (maddhidi4tb): Likewise.
22348         (maddhidi4tt): Likewise.
22349         (zeroextractsi_compare0_scratch): Likewise.
22350         (insv_zero): Likewise.
22351         (insv_t2): Likewise.
22352         (anddi_notzesidi_di): Likewise.
22353         (anddi_notsesidi_di): Likewise.
22354         (andsi_notsi_si): Likewise.
22355         (iordi_zesidi_di): Likewise.
22356         (xordi_zesidi_di): Likewise.
22357         (andsi_iorsi3_notsi): Likewise.
22358         (smax_0): Likewise.
22359         (smax_m1): Likewise.
22360         (smin_0): Likewise.
22361         (not_shiftsi): Likewise.
22362         (unaligned_loadsi): Likewise.
22363         (unaligned_loadhis): Likewise.
22364         (unaligned_loadhiu): Likewise.
22365         (unaligned_storesi): Likewise.
22366         (unaligned_storehi): Likewise.
22367         (extv_reg): Likewise.
22368         (extzv_t2): Likewise.
22369         (divsi3): Likewise.
22370         (udivsi3): Likewise.
22371         (arm_zero_extendhisi2addsi): Likewise.
22372         (arm_zero_extendqisi2addsi): Likewise.
22373         (compareqi_eq0): Likewise.
22374         (arm_extendhisi2_v6): Likewise.
22375         (arm_extendqisi2addsi): Likewise.
22376         (arm_movt): Likewise.
22377         (thumb2_ldrd): Likewise.
22378         (thumb2_ldrd_base): Likewise.
22379         (thumb2_ldrd_base_neg): Likewise.
22380         (thumb2_strd): Likewise.
22381         (thumb2_strd_base): Likewise.
22382         (thumb2_strd_base_neg): Likewise.
22383         (arm_negsi2): Add alternative for 16-bit encoding.
22384         (arm_one_cmplsi2): Likewise.
22386 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22388         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
22389         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
22390         (movdfcc): Likewise.
22391         * config/arm/vfp.md (*thumb2_movsf_vfp):
22392         Disable predication for arm_restrict_it.
22393         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
22394         (*thumb2_movdfcc_vfp): Likewise.
22395         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
22396         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
22397         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
22398         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
22399         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
22400         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
22401         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
22402         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
22403         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
22404         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
22405         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
22406         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
22407         Disable predication for arm_restrict_it.
22409 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
22411         * config/i386/bmiintrin.h (_bextr_u32): New.
22412         (_bextr_u64): Ditto.
22414 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
22416         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
22417         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
22418         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
22419         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
22420         * config/mips/n32-elf.h: ...this new file.
22422 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
22424         PR target/57224
22425         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
22426         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
22428 2013-06-27  Catherine Moore  <clm@codesourcery.com>
22430         * config/mips/mips-tables.opt: Regenerate.
22431         * config/mips/mips-cpus.def: Add m14ke and m14kec.
22432         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
22433         * doc/invoke.texi: Add -m14kc.
22435 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
22437         PR target/57623
22438         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
22439         constraints of operand 1 and 2.
22441         PR target/57623
22442         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
22443         to match RTL canonicalization.  Swap predicates and
22444         constraints of operand 1 and 2.
22446 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
22448         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
22449         Process OP_INOUT regs for splitting too.
22451 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
22453         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
22454         decl before the loop, initialize to NULL.
22455         (vectorizable_load): Initialize ptr_incr to NULL.
22457 2013-06-27  Martin Jambor  <mjambor@suse.cz>
22459         PR lto/57208
22460         * ipa-ref.h (ipa_maybe_record_reference): Declare.
22461         * ipa-ref.c (ipa_maybe_record_reference): New function.
22462         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
22463         * ipa-cp.c (create_specialized_node): Record potential references from
22464         aggvals.
22465         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
22467 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
22469         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
22470         parameter 'mode' of type 'enum machine_mode mode'; change to pass
22471         'mode' to force_reg.
22472         (aarch64_add_offset): Update calls to aarch64_force_temporary.
22473         (aarch64_expand_mov_immediate): Likewise.
22475 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
22477         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
22478         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
22480 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22482         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
22483         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
22484         (struct machine_function): Add tbegin_p.
22485         (s390_canonicalize_comparison): Fold CC mode compares to
22486         conditional jump if possible.
22487         (s390_emit_jump): Return the emitted jump.
22488         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
22489         Handle CCRAWmode compares.
22490         (s390_option_override): Default to -mhtm if available.
22491         (s390_reg_clobbered_rtx): Handle floating point regs as well.
22492         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
22493         FPRs instead of df_regs_ever_live_p.
22494         (s390_optimize_nonescaping_tx): New function.
22495         (s390_init_frame_layout): Extend clobbered_regs array to cover
22496         FPRs as well.
22497         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
22498         (s390_expand_tbegin): New function.
22499         (enum s390_builtin): New enum definition.
22500         (code_for_builtin): New array definition.
22501         (s390_init_builtins): New function.
22502         (s390_expand_builtin): New function.
22503         (TARGET_INIT_BUILTINS): Define.
22504         (TARGET_EXPAND_BUILTIN): Define.
22505         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
22506         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
22507         (s390_alc_comparison): Likewise.
22508         * config/s390/s390-modes.def: Add CCRAWmode.
22509         * config/s390/s390.h (processor_flags): Add PF_TX.
22510         (TARGET_CPU_HTM): Define macro.
22511         (TARGET_HTM): Define macro.
22512         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
22513         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
22514         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
22515         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
22516         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
22517         (TBEGIN_MASK, TBEGINC_MASK): New constants.
22518         ("*cc_to_int"): Move up.
22519         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
22520         constants other than 0.
22521         ("*ccraw_to_int"): New insn and splitter definition.
22522         ("tbegin", "tbegin_nofloat", "tbegin_retry")
22523         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
22524         ("tx_assist"): New expander.
22525         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
22526         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
22527         * config/s390/s390.opt: Add -mhtm option.
22528         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
22529         * config/s390/htmxlintrin.h: New file.
22530         * config/s390/htmintrin.h: New file.
22531         * config/s390/s390intrin.h: New file.
22532         * doc/extend.texi: Document htm builtins.
22533         * config.gcc: Add the new header files to extra_headers.
22535 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
22537         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
22538         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
22540 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
22541             Pat Haugen  <pthaugen@us.ibm.com>
22542             Peter Bergner  <bergner@vnet.ibm.com>
22544         * config/rs6000/power8.md: New.
22545         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
22546         setting for power8 entry.
22547         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
22548         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
22549         test for Power4/Power5 only.
22550         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
22551         support.
22552         (force_new_group): Adjust comment.
22553         * config/rs6000/rs6000.md: Include power8.md.
22555 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
22557         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
22558         * config/arm/arm-protos.h (arm_max_conditional_execute): New
22559         declaration.
22560         (tune_params): Update comment.
22561         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
22562         (arm_max_conditional_execute): New function.
22563         (thumb2_final_prescan_insn): Use max_insn_skipped and
22564         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
22566 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
22568         PR tree-optimization/57705
22569         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
22570         SSA_NAME step, provided that it is not defined inside the loop.
22571         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
22572         (get_initial_def_for_induction): Handle SSA_NAME IV step.
22574 2013-06-25  Martin Jambor  <mjambor@suse.cz>
22576         PR middle-end/57670
22577         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
22578         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
22579         calls in the dump.
22580         (ipa_note_param_call): Initialize member_ptr flag.
22581         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
22582         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
22583         (ipa_write_indirect_edge_info): Stream member_ptr flag.
22584         (ipa_read_indirect_edge_info): Likewise.
22586 2013-06-25  Richard Biener  <rguenther@suse.de>
22588         PR middle-end/56977
22589         * passes.c (init_optimization_passes): Move pass_fold_builtins
22590         and pass_dce earlier with -Og.
22592 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
22594         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
22595         <BIT_FIELD_REF>: Remove trailing TAB.
22596         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
22597         remove blank line.
22599 2013-06-24  Martin Jambor  <mjambor@suse.cz>
22601         PR tree-optimization/57358
22602         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
22603         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
22604         (ipa_analyze_params_uses): Generate pessimistic info when true.
22606 2013-06-24  Martin Jambor  <mjambor@suse.cz>
22608         PR tree-optimization/57539
22609         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
22610         global.inlined_to of the new node to it.  All callers changed.
22611         * ipa-inline-transform.c (clone_inlined_nodes): New variable
22612         inlining_into, pass it to cgraph_clone_node.
22613         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
22614         ipa_free_edge_args_substructures.
22615         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
22616         rdesc linked list.  Do not assert rdesc edges have inlined caller.
22617         Assert we have found an rdesc in the rdesc list.
22619 2013-06-24  Richard Biener  <rguenther@suse.de>
22621         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
22622         (pointer_set_lookup): Declare.
22623         (class pointer_map): New template class implementing a
22624         generic pointer to T map.
22625         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
22626         pointer_map<T>::contains, pointer_map<T>::insert,
22627         pointer_map<T>::traverse): New functions.
22628         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
22629         (pointer_set_lookup): New function.
22630         (pointer_set_contains): Use pointer_set_lookup.
22631         (pointer_set_insert): Likewise.
22632         (insert_aux): Remove.
22633         (struct pointer_map_t): Embed a pointer_set_t.
22634         (pointer_map_create): Adjust.
22635         (pointer_map_destroy): Likewise.
22636         (pointer_map_contains): Likewise.
22637         (pointer_map_insert): Likewise.
22638         (pointer_map_traverse): Likewise.
22639         * tree-streamer.h (struct streamer_tree_cache_d): Use a
22640         pointer_map<unsigned> instead of a pointer_map_t.
22641         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
22642         (streamer_tree_cache_lookup): Likewise.
22643         (streamer_tree_cache_create): Likewise.
22644         (streamer_tree_cache_delete): Likewise.
22645         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
22646         pointer_map<unsigned> instead of a pointer_map_t.
22647         (lto_init_tree_ref_encoder): Adjust.
22648         (lto_destroy_tree_ref_encoder): Likewise.
22649         * lto-section-out.c (lto_output_decl_index): Likewise.
22650         (lto_record_function_out_decl_state): Likewise.
22651         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
22653 2013-06-24  Richard Biener  <rguenther@suse.de>
22655         PR tree-optimization/57488
22656         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
22658 2013-06-24  Alan Modra  <amodra@gmail.com>
22660         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
22661         (gen_easy_altivec_constant): Likewise.
22662         * config/rs6000/predicates.md (easy_vector_constant_add_self,
22663         easy_vector_constant_msb): Likewise.
22665 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
22667         PR target/57688
22668         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
22669         add missing return true.
22671 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
22673         PR target/52483
22674         * config/sh/predicates.md (general_extend_operand): Invoke
22675         general_movsrc_operand for memory operands.
22676         (general_movsrc_operand): Allow reg+reg addressing, do not use
22677         general_operand for memory operands.
22679 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
22681         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
22682         when current target options does not apply.
22683         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
22684         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
22685         * config/i386/bmiintrin.h: Pass appropriate target
22686         attributes to header.
22687         * config/i386/mmintrin.h: Ditto.
22688         * config/i386/nmmintrin.h: Ditto.
22689         * config/i386/avx2intrin.h: Ditto.
22690         * config/i386/fxsrintrin.h: Ditto.
22691         * config/i386/tbmintrin.h: Ditto.
22692         * config/i386/xsaveintrin.h: Ditto.
22693         * config/i386/f16cintrin.h: Ditto.
22694         * config/i386/xtestintrin.h: Ditto.
22695         * config/i386/xsaveoptintrin.h: Ditto.
22696         * config/i386/bmi2intrin.h: Ditto.
22697         * config/i386/lzcntintrin.h: Ditto.
22698         * config/i386/smmintrin.h: Ditto.
22699         * config/i386/wmmintrin.h: Ditto.
22700         * config/i386/x86intrin.h: Remove all header include guards.
22701         * config/i386/prfchwintrin.h: Ditto.
22702         * config/i386/pmmintrin.h: Ditto.
22703         * config/i386/tmmintrin.h: Ditto.
22704         * config/i386/xmmintrin.h: Ditto.
22705         * config/i386/popcntintrin.h: Ditto.
22706         * config/i386/rdseedintrin.h: Ditto.
22707         * config/i386/ammintrin.h: Ditto.
22708         * config/i386/emmintrin.h: Ditto.
22709         * config/i386/immintrin.h: Remove all header include guards.
22710         * config/i386/fma4intrin.h: Ditto.
22711         * config/i386/lwpintrin.h: Ditto.
22712         * config/i386/xopintrin.h: Ditto.
22713         * config/i386/ia32intrin.h: Ditto.
22714         * config/i386/avxintrin.h: Ditto.
22715         * config/i386/rtmintrin.h: Ditto.
22716         * config/i386/fmaintrin.h: Ditto.
22717         * config/i386/mm3dnow.h: Ditto.
22719 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
22721         * common/config/i386/i386-common.c: Handle LZCNT.
22723 2013-06-22  Andi Kleen  <ak@linux.intel.com>
22725         * doc/extend.texi: Use __atomic_store_n instead of
22726         __atomic_store in HLE example.
22728 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
22730         * config/sh/sh.c: Remove <cstdlib> workaround.
22732 2013-06-21  Andi Kleen  <ak@linux.intel.com>
22734         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
22736 2013-06-21  Andi Kleen  <ak@linux.intel.com>
22738         * doc/extend.texi: Document that __atomic_clear and
22739           __atomic_test_and_set should only be used with bool.
22741 2013-06-20  Jan Hubicka  <jh@suse.cz>
22743         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
22744         types_same_for_odr.
22745         * tree.c (decls_same_for_odr): New function.
22746         (same_for_edr): New function.
22747         (types_same_for_odr): New function.
22748         (get_binfo_at_offset): Use it.
22749         * tree.h (types_same_for_odr): Declare.
22751 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
22752             Jason Merrill  <jason@redhat.com>
22754         * system.h: Include <cstdlib> as well as <stdlib.h>.
22756 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
22758         PR target/57655
22759         * config/i386/i386.c (construct_container): Report error if
22760         long double is used with disabled x87 float returns.
22762 2013-06-20  Jan Hubicka  <jh@suse.cz>
22764         * lto-cgraph.c (input_symtab): Do not set cgraph state.
22766 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
22768         PR rtl-optimization/57425
22769         PR rtl-optimization/57569
22770         * alias.c (write_dependence_p): Remove parameters mem_mode and
22771         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
22772         Changed all callers.
22773         (canon_anti_dependence): Get comments and semantics in sync.
22774         Add parameter mem_canonicalized.  Changed all callers.
22775         * rtl.h (canon_anti_dependence): Update prototype.
22777 2013-06-20  Richard Biener  <rguenther@suse.de>
22779         * data-streamer-in.c (streamer_read_uhwi): Optimize single
22780         byte case, inline streamer_read_uchar and defer section
22781         overrun check.
22783 2013-06-20  Richard Biener  <rguenther@suse.de>
22785         PR tree-optimization/57584
22786         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
22787         SSA names into the expanded expression that take part in
22788         abnormal coalescing.
22790 2013-06-19  Sharad Singhai  <singhai@google.com>
22792         * gcov.c (print_usage): Handle new option.
22793         (process_args): Ditto.
22794         (get_gcov_intermediate_filename): New function.
22795         (output_intermediate_file): New function.
22796         (output_gcov_file): New function
22797         (generate_results): Handle new option.
22798         (release_function): Relase demangled name.
22799         (read_graph_file): Handle demangled name.
22800         (output_lines): Ditto.
22801         * doc/gcov.texi: Document gcov intermediate format.
22803 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
22805         PR bootstrap/57604
22806         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
22807         (lra_emit_add): Use the functions.  Add comment about Y as an
22808         address segment.
22810 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
22812         PR driver/57652
22813         * collect2.c (collect_atexit): New.
22814         (collect_exit): Delete.
22815         (main): Register collect_atexit with atexit.
22816         (collect_wait): Change collect_exit to exit.
22817         (do_wait): Same.
22818         * collect2.h (collect_exit): Delete.
22819         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
22821 2013-06-19  Wei Mi  <wmi@google.com>
22823         PR rtl-optimization/57518
22824         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
22825         if regno is used in paradoxical subreg.
22826         (update_equiv_regs): Check pdx_subregs[regno] before
22827         set a reg to be equivalent with a mem.
22829 2013-06-19  Matthias Klose  <doko@ubuntu.com>
22831         PR driver/57651
22832         * file-find.h (find_a_file): Add a mode parameter.
22833         * file-find.c (find_a_file): Likewise.
22834         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
22835         with X_OK for the executables.
22836         * collect2.c (main): Call find_a_file with X_OK.
22838 2013-06-19  Steve Ellcey  <sellcey@mips.com>
22840         PR target/56942
22841         * config/mips/mips.md (casesi_internal_mips16_<mode>):
22842         Use NEXT_INSN instead of next_real_insn.
22844 2013-06-19  Jan Hubicka  <jh@suse.cz>
22846         * cgraph.h (const_value_known_p): Replace by ...
22847         (ctor_for_folding): .. this one.
22848         * cgraphunit.c (process_function_and_variable_attributes): Use it.
22849         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
22850         * expr.c (expand_expr_real_1): Likewise.
22851         (string_constant): Likewise.
22852         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
22853         * ipa.c (process_references): Likewise.
22854         (symtab_remove_unreachable_nodes): Likewise.
22855         * ipa-inline-analysis.c (param_change_prob): Likewise.
22856         * gimple-fold.c (canonicalize_constructor_val): Likewise.
22857         (get_base_constructor): Likwise.
22858         * varpool.c (varpool_remove_node): Likewise.
22859         (varpool_remove_initializer): LIkewise.
22860         (dump_varpool_node): LIkwise.
22861         (const_value_known_p): Rewrite to ...
22862         (ctor_for_folding): ... this one.
22864 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
22866         PR driver/57651
22867         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
22868         PERSONALITY in $PATH derived prefixes.
22870 2013-06-19  Jeff Law  <law@redhat.com>
22872         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
22873         in comment.
22875         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
22876         (simplify_bitwise_binary): Use it to simpify certain binary ops on
22877         booleans.
22879 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
22881         * config/arm/vfp.md: Move VFP instruction classification documentation
22882         to ...
22883         * config/arm/arm.md: ... here.  Update instruction classification
22884         documentation.
22886 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
22888         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
22889         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
22890         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
22892 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
22894         PR target/57609
22895         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
22896         with NEXT_INSN.  Use tablejump_p to check for jump table data
22897         insns.
22899 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
22901         PR c++/56544
22902         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
22903         that now in C++ the value is correct per the C++ standards.
22905 2013-06-19  Richard Biener  <rguenther@suse.de>
22907         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
22908         for global context.
22910 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22912         Revert:
22913         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22915         PR target/57609
22916         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
22917         with next_active_insn.
22919 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
22921         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
22922         functions are inlined during failures to flag an error.
22923         * tree-inline.c (expand_call_inline): Allow the error to be flagged
22924         in early inline pass.
22926 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
22928         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
22929         in comments.
22931 2013-06-18  Julian Brown  <julian@codesourcery.com>
22933         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
22934         Permit virtual register pre-reload if !strict.
22935         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
22936         change.
22937         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
22938         prototype.
22939         * config/arm/neon.md (movmisalign<mode>): Use
22940         neon_perm_struct_or_reg_operand instead of
22941         neon_struct_or_register_operand.
22942         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
22943         neon_permissive_struct_operand instead of neon_struct_operand.
22944         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
22945         neon_vector_mem_operand.
22946         * config/arm/predicates.md (neon_struct_operand): Adjust call to
22947         neon_vector_mem_operand.
22948         (neon_permissive_struct_operand): New.
22949         (neon_struct_or_register_operand): Rename to...
22950         (neon_perm_struct_or_reg_operand): This. Adjust call to
22951         neon_vector_mem_operand.
22953 2013-06-18  Richard Biener  <rguenther@suse.de>
22955         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
22956         * lto-streamer.h: Include pointer-set.h.
22957         (struct lto_decl_slot): Remove.
22958         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
22959         Remove next_index entry.
22960         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
22961         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
22962         (lto_init_tree_ref_encoder): Adjust.
22963         (lto_destroy_tree_ref_encoder): Likewise.
22964         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
22965         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
22966         (lto_output_decl_index): Adjust.
22967         (lto_new_out_decl_state): Likewise.
22968         (lto_record_function_out_decl_state): Likewise.
22969         * lto-streamer-out.c (copy_function): Likewise.
22971 2013-06-18  Richard Biener  <rguenther@suse.de>
22973         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
22974         * cgraphunit.c: Include cfgloop.h.
22975         (init_lowered_empty_function): Initialize the loop tree.
22976         (assemble_thunk): Insert new BBs into loops.
22978 2013-06-18  Richard Biener  <rguenther@suse.de>
22980         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
22981         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
22982         the map from cache entry to cache index optional.
22983         (streamer_tree_cache_replace_tree): Adjust accordingly.
22984         (streamer_tree_cache_append): Likewise.
22985         (streamer_tree_cache_delete): Likewise.
22986         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
22987         streamer cache map from cache entry to cache index.
22988         * lto-streamer-out.c (create_output_block): Adjust.
22990 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
22992         * config/arm/arm.md (attribute "insn"): Move multiplication and
22993         division attributes to...
22994         (attribute "type"): ... here.  Remove mult.
22995         (attribute "mul32"): New attribute.
22996         (attribute "mul64"): Add umaal.
22997         (*arm_mulsi3): Update attributes.
22998         (*arm_mulsi3_v6): Likewise.
22999         (*thumb_mulsi3): Likewise.
23000         (*thumb_mulsi3_v6): Likewise.
23001         (*mulsi3_compare0): Likewise.
23002         (*mulsi3_compare0_v6): Likewise.
23003         (*mulsi_compare0_scratch): Likewise.
23004         (*mulsi_compare0_scratch_v6): Likewise.
23005         (*mulsi3addsi): Likewise.
23006         (*mulsi3addsi_v6): Likewise.
23007         (*mulsi3addsi_compare0): Likewise.
23008         (*mulsi3addsi_compare0_v6): Likewise.
23009         (*mulsi3addsi_compare0_scratch): Likewise.
23010         (*mulsi3addsi_compare0_scratch_v6): Likewise.
23011         (*mulsi3subsi): Likewise.
23012         (*mulsidi3adddi): Likewise.
23013         (*mulsi3addsi_v6): Likewise.
23014         (*mulsidi3adddi_v6): Likewise.
23015         (*mulsidi3_nov6): Likewise.
23016         (*mulsidi3_v6): Likewise.
23017         (*umulsidi3_nov6): Likewise.
23018         (*umulsidi3_v6): Likewise.
23019         (*umulsidi3adddi): Likewise.
23020         (*umulsidi3adddi_v6): Likewise.
23021         (*smulsi3_highpart_nov6): Likewise.
23022         (*smulsi3_highpart_v6): Likewise.
23023         (*umulsi3_highpart_nov6): Likewise.
23024         (*umulsi3_highpart_v6): Likewise.
23025         (mulhisi3): Likewise.
23026         (*mulhisi3tb): Likewise.
23027         (*mulhisi3bt): Likewise.
23028         (*mulhisi3tt): Likewise.
23029         (maddhisi4): Likewise.
23030         (*maddhisi4tb): Likewise.
23031         (*maddhisi4tt): Likewise.
23032         (maddhidi4): Likewise.
23033         (*maddhidi4tb): Likewise.
23034         (*maddhidi4tt): Likewise.
23035         (divsi3): Likewise.
23036         (udivsi3): Likewise.
23037         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
23038         (thumb2_mulsi_short_compare0): Likewise.
23039         (thumb2_mulsi_short_compare0_scratch): Likewise.
23040         * config/arm/arm1020e.md (1020mult1): Update attribute change.
23041         (1020mult2): Likewise.
23042         (1020mult3): Likewise.
23043         (1020mult4): Likewise.
23044         (1020mult5): Likewise.
23045         (1020mult6): Likewise.
23046         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
23047         change.
23048         (cortex_a15_mult64): Likewise.
23049         (cortex_a15_sdiv): Likewise.
23050         (cortex_a15_udiv): Likewise.
23051         * config/arm/arm1026ejs.md (mult1): Update attribute change.
23052         (mult2): Likewise.
23053         (mult3): Likewise.
23054         (mult4): Likewise.
23055         (mult5): Likewise.
23056         (mult6): Likewise.
23057         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
23058         (pj4_ir_div): Likewise.
23059         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
23060         (11_mult2): Likewise.
23061         (11_mult3): Likewise.
23062         (11_mult4): Likewise.
23063         (11_mult5): Likewise.
23064         (11_mult6): Likewise.
23065         (11_mult7): Likewise.
23066         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
23067         (cortex_a8_mla): Likewise.
23068         (cortex_a8_mull): Likewise.
23069         (cortex_a8_smulwy): Likewise.
23070         (cortex_a8_smlald): Likewise.
23071         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
23072         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
23073         (cortex_r4_mul_3): Likewise.
23074         (cortex_r4_mla_4): Likewise.
23075         (cortex_r4_mla_3): Likewise.
23076         (cortex_r4_smlald): Likewise.
23077         (cortex_r4_mull): Likewise.
23078         (cortex_r4_sdiv): Likewise.
23079         (cortex_r4_udiv): Likewise.
23080         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
23081         (cortex_a7_idiv): Likewise.
23082         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
23083         (9_mult2): Likewise.
23084         (9_mult3): Likewise.
23085         (9_mult4): Likewise.
23086         (9_mult5): Likewise.
23087         (9_mult6): Likewise.
23088         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
23089         (cortex_a53_sdiv): Likewise.
23090         (cortex_a53_udiv): Likewise.
23091         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
23092         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
23093         (mp626_mult2): Likewise.
23094         (mp626_mult3): Likewise.
23095         (mp626_mult4): Likewise.
23096         * config/arm/fa526.md (526_mult1): Update attribute change.
23097         (526_mult2): Likewise.
23098         * config/arm/arm-generic.md (mult): Update attribute change.
23099         (mult_ldsched_strongarm): Likewise.
23100         (mult_ldsched): Likewise.
23101         (multi_cycle): Likewise.
23102         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
23103         * config/arm/fa606te.md (606te_mult1): Update attribute change.
23104         (606te_mult2): Likewise.
23105         (606te_mult3): Likewise.
23106         (606te_mult4): Likewise.
23107         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
23108         (cortex_a9_mac16): Likewise.
23109         (cortex_a9_multiply): Likewise.
23110         (cortex_a9_mac): Likewise.
23111         (cortex_a9_multiply_long): Likewise.
23112         * config/arm/fa626te.md (626te_mult1): Update attribute change.
23113         (626te_mult2): Likewise.
23114         (626te_mult3): Likewise.
23115         (626te_mult4): Likewise.
23117 2013-06-18  Richard Biener  <rguenther@suse.de>
23119         PR lto/57334
23120         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
23122 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23124         PR target/57609
23125         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23126         with next_active_insn.
23128 2013-06-18  Alan Modra  <amodra@gmail.com>
23130         * config/rs6000/rs6000.h (enum data_align): New.
23131         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
23132         (DATA_ABI_ALIGNMENT): Define.
23133         (CONSTANT_ALIGNMENT): Correct comment.
23134         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
23135         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
23137 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
23139         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
23140         ATTRIBUTE_UNUSED marking.
23142 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
23144         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
23145         alternative and update.
23146         (aarch64_dup_lanedi): Delete.
23147         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
23148         * config/aarch64/aarch64-simd-builtins.def: Update.
23150 2013-06-17  Richard Biener  <rguenther@suse.de>
23152         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
23153         (lto_input_scc): Declare.
23154         (lto_input_tree_1): Likewise.
23155         (struct lto_stats_d): Add num_tree_bodies_output and
23156         num_pickle_refs_output.
23157         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
23158         (lto_read_tree_1): Split out from ...
23159         (lto_read_tree): ... this.
23160         (lto_input_scc): New function.
23161         (lto_input_tree_1): Split out from ...
23162         (lto_input_tree): ... this.  Handle LTO_tree_scc.
23163         (lto_data_in_create): Create the streamer cache without hashes.
23164         * lto-streamer-out.c (create_output_block): Create the streamer
23165         cache with hashes when not doing WPA.
23166         (lto_write_tree_1): Split out from ...
23167         (lto_write_tree): ... this.
23168         (get_symbol_initial_value): New function.
23169         (lto_output_tree_1): Split out from ...
23170         (lto_output_tree): ... this.  Write trees as series of SCCs
23171         using a DFS walk via DFS_write_tree.
23172         (struct sccs, struct scc_entry): New types.
23173         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
23174         (DFS_write_tree_body): New function.
23175         (DFS_write_tree): Likewise.
23176         (hash_tree): Likewise.
23177         (scc_entry_compare): Likewise.
23178         (hash_scc): Likewise.
23179         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
23180         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
23181         TREE_CHAIN as regular reference.
23182         (streamer_read_integer_cst): Remove.
23183         (streamer_get_pickled_tree): Adjust.
23184         * tree-streamer-out.c (streamer_write_chain): Disable streaming
23185         of DECL_EXTERNALs in BLOCK_VARS for now.
23186         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
23187         reference.
23188         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
23189         Add hash value argument and record that if hashes are recorded
23190         in the cache.
23191         (streamer_tree_cache_insert_1): Adjust.
23192         (streamer_tree_cache_insert): Likewise.
23193         (streamer_tree_cache_insert_at): Rename to ...
23194         (streamer_tree_cache_replace_tree): ... this and adjust.
23195         (streamer_tree_cache_append): Adjust.
23196         (record_common_node): Likewise.
23197         (streamer_tree_cache_create): Add argument whether to
23198         record hash values together with trees.
23199         (streamer_tree_cache_delete): Adjust.
23200         * tree-streamer.h (struct streamer_tree_cache_d): Add
23201         vector of hashes.
23202         (streamer_read_integer_cst): Remove.
23203         (streamer_tree_cache_insert): Adjust.
23204         (streamer_tree_cache_append): Likewise.
23205         (streamer_tree_cache_insert_at): Rename to ...
23206         (streamer_tree_cache_replace_tree): ... this and adjust.
23207         (streamer_tree_cache_create): Add argument whether to record hashes.
23208         (streamer_tree_cache_get): Rename to ...
23209         (streamer_tree_cache_get_tree): ... this.
23210         (streamer_tree_cache_get_hash): New function.
23211         * tree.c (cache_integer_cst): New function.
23212         * tree.h (cache_integer_cst): Declare.
23213         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
23214         * lto-symtab.c (lto_varpool_replace_node): Only release
23215         DECL_INITIAL of non-prevailing decls.
23216         * varpool.c (varpool_remove_initializer): Do not release
23217         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
23219 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
23221         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
23222         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
23223         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
23224         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
23225         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
23226         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
23227         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
23228         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
23229         instead of TARGET_64BIT.
23230         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
23231         Require ISA_HAS_<D>DIV.
23233 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
23235         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
23236         (mips*-*-linux*): Move default with_llsc setting to where other
23237         defaults are set.
23238         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
23239         with_arch block.
23240         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
23241         Likewise.  Remove default with_tune setting.  Move default float
23242         setting to its own block.  Handle with_llsc in the same block as above.
23244 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
23246         PR rtl-optimization/57425
23247         PR rtl-optimization/57569
23248         * alias.c (write_dependence_p): Add new parameters mem_mode,
23249         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
23250         Changed all callers.
23251         (canon_anti_dependence): New function.
23252         * cse.c (check_dependence): Use canon_anti_dependence.
23253         * cselib.c (cselib_invalidate_mem): Likewise.
23254         * rtl.h (canon_anti_dependence): Declare.
23256 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
23258         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
23259         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
23260         ".set mips3" for 64-bit targets.
23262 2013-06-15  Dehao Chen  <dehao@google.com>
23264         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
23265         * gimple-low.c (gimple_check_call_matching_types): Likewise.
23266         (gimple_check_call_args): Likewise.
23267         * value-prof.c (check_ic_target): Likewise.
23268         * ipa-inline.c (early_inliner): Likewise.
23269         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
23270         * cgraph.c (cgraph_create_edge_1): Likewise.
23271         (cgraph_make_edge_direct): Likewise.
23273 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23275         PR target/57615
23276         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
23277         rs6000_output_move_128bit to handle emitting quad memory
23278         operations.  Set attribute length to 8 bytes.
23280 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
23282         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
23283         New pattern.
23284         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
23285         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
23286         (aarch64_<su>mlsl<mode>): Likewise.
23288 2013-06-14  Mike Stump  <mikestump@comcast.net>
23290         * Makefile.in (TARGET_H): Add insn-codes.h.
23292 2013-06-14  Alan Modra  <amodra@gmail.com>
23294         PR middle-end/57134
23295         PR middle-end/57586
23296         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
23297         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
23298         bitfield expansion when EXPAND_MEMORY.
23299         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
23301 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
23303         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
23304         test for clearing quad memory on 32-bit later.
23306 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
23308         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
23309         (fold_negate_expr): Likewise.
23310         (fold_real_zero_addition_p): Handle vectors.
23311         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
23313 2013-06-14  Alan Modra  <amodra@gmail.com>
23315         * varasm.c (force_const_mem): Revert 2013-06-07 change.
23317 2013-06-13  Jan Hubicka  <jh@suse.cz>
23319         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
23320         Local comdats are not externally visible.
23321         * symtab.c (dump_symtab_base): Dump externally visible.
23322         (verify_symtab_base): Verify back links in the symtab hash.
23324 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
23326         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
23327         CONVERT_EXPR as equal nodes.
23329 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
23331         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
23333 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
23335         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
23336         Generalize to complex and vector.
23337         * tree.c (build_all_ones_cst): New function.
23338         * tree.h (build_all_ones_cst): Declare it.
23340 2013-06-13  Alan Modra  <amodra@gmail.com>
23342         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
23343         * config/rs6000/rs6000.md (signbittf2): New insn.
23344         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
23345         (abstf2_internal, cmptf_internal2): Likewise.
23346         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
23348 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
23349             Pat Haugen  <pthaugen@us.ibm.com>
23350             Peter Bergner  <bergner@vnet.ibm.com>
23352         * config/rs6000/rs6000.c (emit_load_locked): Add support for
23353         power8 byte, half-word, and quad-word atomic instructions.
23354         (emit_store_conditional): Likewise.
23355         (rs6000_expand_atomic_compare_and_swap): Likewise.
23356         (rs6000_expand_atomic_op): Likewise.
23358         * config/rs6000/sync.md (larx): Add new modes for power8.
23359         (stcx): Likewise.
23360         (AINT): New mode iterator to include TImode as well as normal
23361         integer modes on power8.
23362         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
23363         that VSX registers are not considered.  Use AINT mode iterator
23364         instead of INT1 to allow inclusion of quad word atomic operations
23365         on power8.
23366         (load_locked<mode>): Likewise.
23367         (store_conditional<mode>): Likewise.
23368         (atomic_compare_and_swap<mode>): Likewise.
23369         (atomic_exchange<mode>): Likewise.
23370         (atomic_nand<mode>): Likewise.
23371         (atomic_fetch_<fetchop_name><mode>): Likewise.
23372         (atomic_nand_fetch<mode>): Likewise.
23373         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
23374         each type.
23375         (ATOMIC): On power8, add QImode, HImode modes.
23376         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
23377         modes that promote to SImode.
23378         (load_lockedti): Convert TImode arguments to PTImode, so that we
23379         get a guaranteed even/odd register pair.
23380         (load_lockedpti): Likewise.
23381         (store_conditionalti): Likewise.
23382         (store_conditionalpti): Likewise.
23384         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
23385         atomic load/store instructions.
23386         (HSI): Likewise.
23388 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
23390         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
23391         loads.
23392         (insn_count): New attribute, with most cases extracted from...
23393         (length): ...here.  Redefine most cases in terms of insn_count.
23394         (single_insn): Delete.
23395         (can_delay): Use insn_count to check for single instructions.
23396         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
23397         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
23398         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
23399         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
23400         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
23401         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
23402         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
23403         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
23404         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
23405         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
23406         rather than "length".
23407         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
23408         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
23409         Use "insn_count" rather than "length".
23410         * config/mips/mips-dsp.md
23411         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
23412         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
23413         length attributes.
23415 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
23417         PR tree-optimization/57361
23418         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
23420 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
23422         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
23423         to split.
23424         (aarch64_simd_combine<mode>): New instruction expansion.
23425         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
23426         function prototype.
23427         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
23428         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
23430 2013-06-12  Jan Hubicka  <jh@suse.cz>
23432         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
23433         decl has when in streaming stage.
23434         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
23435         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
23437 2013-06-12  Roland Stigge  <stigge@antcom.de>
23439         PR target/57578
23440         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
23442 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
23444         PR tree-optimization/57537
23445         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
23446         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
23448 2013-06-12  Richard Biener  <rguenther@suse.de>
23450         * data-streamer.h (streamer_write_char_stream): CSE
23451         obs->current_pointer.
23452         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
23453         streamer_write_char_stream manually and optimize the resulting loop.
23454         (streamer_write_hwi_stream): Likewise.
23456 2013-06-12  Jan Hubicka  <jh@suse.cz>
23458         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
23459         * cgraph.h (varpool_create_empty_node): Declare.
23460         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
23461         duplicated nodes.
23462         * symtab.c (symtab_unregister_node): Be lax about missin entries
23463         in node hash.
23464         (symtab_get_node): Update comment.
23465         * varpool.c (varpool_create_empty_node): Break out from ...
23466         (varpool_node_for_decl): ... here.
23467         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
23469 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
23471         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
23472         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
23473         part.  Use straight-line flow at the end.
23474         <COMPONENT_REF>: Remove superfluous else.
23475         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
23477 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
23479         PR target/56564
23480         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
23481         target hook even for !TREE_PUBLIC decls.  If no resolution info
23482         is available, return false for common and external decls.
23484 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23486         * config/rl78/constraints.md (U): New constraint.
23487         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
23488         valloc attribute.
23490 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
23492         PR target/57589
23493         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
23494         to allow returning address to AT_PLATFORM name.
23496 2013-06-11  Jan Hubicka  <jh@suse.cz>
23498         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
23499         * cgraph.h (symtab_node_base): Add weakref flag.
23500         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
23501         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
23502         (output_weakrefs): Use weakref flag.
23503         * fold-const.c (simple_operand_p): Handle WEAK.
23504         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
23505         * ipa.c (varpool_externally_visible_p): Drop weakref.
23506         (function_and_variable_visibility): Update comment; fix weakref
23507         sanity checks; do not clear DECL_WEAK on them.
23508         * lto-cgraph.c (lto_output_node): update.
23509         (lto_output_varpool_node): Update.
23510         (input_overwrite_node): Update.
23511         (input_node): Update.
23512         (input_varpool_node): Update.
23513         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
23514         (lto_symtab_merge_symbols): Add sanity check.
23515         (lto_symtab_prevailing_decl): Do not special case weakrefs.
23516         * passes.c (rest_of_decl_compilation): Set static flag, too.
23517         * symtab.c (dump_symtab_base): Dump weakref.
23518         (verify_symtab_base): Sanity check weakrefs.
23519         (symtab_make_decl_local): Remove duplicated code.
23520         (symtab_alias_ultimate_target): Simplify.
23521         * varpool.c (varpool_create_variable_alias): Set weakref flag.
23523 2013-06-11  Tom de Vries  <tom@codesourcery.com>
23525         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
23526         sequence_vect == NULL.
23528 2013-06-11  DJ Delorie  <dj@redhat.com>
23530         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
23531         (rl78_unwind_word_mode): New.
23533 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
23535         * final.c (debug_prefix_maps): Make static.
23537 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
23539         * function.c (initial_trampoline): Remove stray copy.
23541 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
23543         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
23545 2013-06-11  Martin Jambor  <mjambor@suse.cz>
23547         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
23548         within bounds at the beginning of the function.
23550 2013-06-11  Alan Modra  <amodra@gmail.com>
23552         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
23553         reporting.
23554         (get_named_section): Don't NULL !DECL_P decl.
23556 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
23558         * doc/invoke.texi (core-avx2): Document.
23559         (slm): Likewise.
23560         (atom): Updated with MOVBE.
23562 2013-06-11  Richard Biener  <rguenther@suse.de>
23564         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
23566 2013-06-11  Anton Blanchard  <anton@samba.org>
23568         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
23569         correct shift value in little-endian mode.
23571 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
23573         PR target/56564
23574         * varasm.c (get_variable_align): Move #endif to the right place.
23576 2013-06-10  Cary Coutant  <ccoutant@google.com>
23578         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
23579         for hash so that hash table traversal order is deterministic.
23581 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
23582             Pat Haugen  <pthaugen@us.ibm.com>
23583             Peter Bergner  <bergner@vnet.ibm.com>
23585         * config/rs6000/vector.md (GPR move splitter): Do not split moves
23586         of vectors in GPRS if they are direct moves or quad word load or
23587         store moves.
23589         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
23590         declaration.
23591         (direct_move_p): Likewise.
23592         (quad_load_store_p): Likewise.
23594         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
23595         classes into bins based on the physical register type.
23596         (reg_class_to_reg_type): Likewise.
23597         (IS_STD_REG_TYPE): Likewise.
23598         (IS_FP_VECT_REG_TYPE): Likewise.
23599         (reload_fpr_gpr): Arrays to determine what insn to use if we can
23600         use direct move instructions.
23601         (reload_gpr_vsx): Likewise.
23602         (reload_vsx_gpr): Likewise.
23603         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
23604         information that is a simplification of register classes.  Also
23605         precalculate direct move reload helpers.
23606         (direct_move_p): New function to return true if the operation can
23607         be done as a direct move instruciton.
23608         (quad_load_store_p): New function to return true if the operation
23609         is a quad memory operation.
23610         (rs6000_legitimize_address): If quad memory, only allow register
23611         indirect for TImode addresses.
23612         (rs6000_legitimate_address_p): Likewise.
23613         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
23614         (rs6000_reload_register_type): Likewise.
23615         (register_to_reg_type): Return register type.
23616         (rs6000_secondary_reload_simple_move): New helper function for
23617         secondary reload and secondary memory needed to identify anything
23618         that is a simple move, and does not need reloading.
23619         (rs6000_secondary_reload_direct_move): New helper function for
23620         secondary reload to identify cases that can be done with several
23621         instructions via the direct move instructions.
23622         (rs6000_secondary_reload_move): New helper function for secondary
23623         reload to identify moves between register types that can be done.
23624         (rs6000_secondary_reload): Add support for quad memory operations
23625         and for direct move.
23626         (rs6000_secondary_memory_needed): Likewise.
23627         (rs6000_debug_secondary_memory_needed): Change argument names.
23628         (rs6000_output_move_128bit): New function to return the move to
23629         use for 128-bit moves, including knowing about the various
23630         limitations of quad memory operations.
23632         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
23633         memory operations.  call rs6000_output_move_128bit for the actual
23634         instruciton(s) to generate.
23635         (vsx_movti_64bit): Likewise.
23637         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
23638         (UNSPEC_P8V_MTVSRWZ): Likewise.
23639         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
23640         (UNSPEC_P8V_MTVSRD): Likewise.
23641         (UNSPEC_P8V_XXPERMDI): Likewise.
23642         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
23643         (UNSPEC_FUSION_GPR): Likewise.
23644         (FMOVE128_GPR): New iterator for direct move.
23645         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
23646         (f32_sv): Likewise.
23647         (f32_dm): Likewise.
23648         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
23649         loads and direct move instructions.
23650         (zero_extendsidi2_lfiwzx): Likewise.
23651         (extendsidi2_lfiwax): Likewise.
23652         (extendsidi2_nocell): Likewise.
23653         (floatsi<mode>2_lfiwax): Likewise.
23654         (lfiwax): Likewise.
23655         (floatunssi<mode>2_lfiwzx): Likewise.
23656         (lfiwzx): Likewise.
23657         (fix_trunc<mode>_stfiwx): Likewise.
23658         (fixuns_trunc<mode>_stfiwx): Likewise.
23659         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
23660         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
23661         (parity<mode>2_cmpb): Set length/type attr.
23662         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
23663         for 'mr.' to fast_compare.
23664         (bpermd_<mode>): Change type attr to popcnt.
23665         (p8_fmrgow_<mode>): New insns for power8 direct move support.
23666         (p8_mtvsrwz_1): Likewise.
23667         (p8_mtvsrwz_2): Likewise.
23668         (reload_fpr_from_gpr<mode>): Likewise.
23669         (p8_mtvsrd_1): Likewise.
23670         (p8_mtvsrd_2): Likewise.
23671         (p8_xxpermdi_<mode>): Likewise.
23672         (reload_vsx_from_gpr<mode>): Likewise.
23673         (reload_vsx_from_gprsf): Likewise.
23674         (p8_mfvsrd_3_<mode>): LIkewise.
23675         (reload_gpr_from_vsx<mode>): Likewise.
23676         (reload_gpr_from_vsxsf): Likewise.
23677         (p8_mfvsrd_4_disf): Likewise.
23678         (multi-word GPR splits): Do not split direct moves or quad memory
23679         operations.
23681 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
23683         * tree-into-ssa.c (interesting_blocks): Make static.
23685 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
23687         PR target/56564
23688         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
23689         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
23690         Use DATA_ABI_ALIGNMENT for that case instead if defined.
23691         (get_variable_align): New function.
23692         (get_variable_section, emit_bss, emit_common,
23693         assemble_variable_contents, place_block_symbol): Use
23694         get_variable_align instead of DECL_ALIGN.
23695         (assemble_noswitch_variable): Add align argument, use it
23696         instead of DECL_ALIGN.
23697         (assemble_variable): Adjust caller.  Use get_variable_align
23698         instead of DECL_ALIGN.
23699         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
23700         caller.
23701         (DATA_ABI_ALIGNMENT): Define.
23702         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
23703         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
23704         opt is false, only return the psABI mandated alignment increase.
23705         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
23706         (DATA_ABI_ALIGNMENT): ... this.
23707         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
23708         (DATA_ABI_ALIGNMENT): ... this.
23709         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
23710         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
23711         (DATA_ABI_ALIGNMENT): ... this.
23712         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
23713         * doc/tm.texi: Regenerated.
23715 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
23717         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
23718         cmp_code to construct REG_EQUAL note.
23720 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
23722         PR target/57568
23723         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
23724         that operands[2] doesn't overlap with operands[0].
23726 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
23727             Jan Hubicka  <jh@suse.cz>
23729         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
23730         hack to mark symbols as used.
23732 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
23734         PR rtl-optimization/57559
23735         * lra-constraints.c (process_alt_operands): Don't discourage
23736         memory with known offset for offsetable memory constraint.
23737         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
23739 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
23741         * varasm.c (struct oc_local_state): Reorder fields.
23742         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
23743         and adjust accordingly.
23744         (output_constructor): Reorder initialization code and adjust call to
23745         output_constructor_bitfield.
23747 2013-06-07  Jan Hubicka  <jh@suse.cz>
23749         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
23751 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
23753         * tree-object-size.c (unknown): Make const.
23755 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23757         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
23758         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
23759         for last alternative in the cpu_facility attribute.
23761 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23763         PR target/56315
23764         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
23765         (xordi3): Change operand 2 constraint to arm_xordi_operand.
23766         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
23767         * config/arm/constraints.md (Dg): New constraint.
23768         * config/arm/neon.md (xordi3_neon): Remove.
23769         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
23770         * config/arm/predicates.md (arm_xordi_operand): New predicate.
23772 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23774         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
23775         Clean up alternatives.
23777 2013-06-07  Alan Modra  <amodra@gmail.com>
23779         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
23780         va_list_gpr_size.
23782 2013-06-07  Alan Modra  <amodra@gmail.com>
23784         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
23786 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23788         * config/arm/constraints.md (Df): New constraint.
23789         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
23790         Correct length attribute for last two alternatives.
23792 2013-06-07  Alan Modra  <amodra@gmail.com>
23794         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
23795         override user -mfp-in-toc.
23796         (offsettable_ok_by_alignment): Consider just the current access
23797         rather than the whole object, unless BLKmode.  Handle
23798         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
23799         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
23800         for -mcmodel=medium.
23801         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
23802         override user -mfp-in-toc or -msum-in-toc.  Default to
23803         -mno-fp-in-toc for -mcmodel=medium.
23805 2013-06-06  DJ Delorie  <dj@redhat.com>
23807         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
23808         TARGET_VALID_POINTER_MODE.
23810 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
23811             Pat Haugen  <pthaugen@us.ibm.com>
23812             Peter Bergner  <bergner@vnet.ibm.com>
23814         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23815         Document new power8 builtins.
23817         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
23818         condition code register, to allow 128-bit logical operations to be
23819         done in the VSX or GPR registers.
23820         (nor<mode>3): Use the canonical form for nor.
23821         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
23822         vclz*, and vpopcnt* vector instructions.
23823         (nand<mode>3): Likewise.
23824         (orc<mode>3): Likewise.
23825         (clz<mode>2): LIkewise.
23826         (popcount<mode>2): Likewise.
23828         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
23829         that only the GPRs are recognized.
23831         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23832         support for new power8 builtins.
23834         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
23835         builtin functions.
23836         (xscvdpspn): Likewise.
23837         (vclz): Likewise.
23838         (vclzb): Likewise.
23839         (vclzh): Likewise.
23840         (vclzw): Likewise.
23841         (vclzd): Likewise.
23842         (vpopcnt): Likewise.
23843         (vpopcntb): Likewise.
23844         (vpopcnth): Likewise.
23845         (vpopcntw): Likewise.
23846         (vpopcntd): Likewise.
23847         (vgbbd): Likewise.
23848         (vmrgew): Likewise.
23849         (vmrgow): Likewise.
23850         (eqv): Likewise.
23851         (eqv_v16qi3): Likewise.
23852         (eqv_v8hi3): Likewise.
23853         (eqv_v4si3): Likewise.
23854         (eqv_v2di3): Likewise.
23855         (eqv_v4sf3): Likewise.
23856         (eqv_v2df3): Likewise.
23857         (nand): Likewise.
23858         (nand_v16qi3): Likewise.
23859         (nand_v8hi3): Likewise.
23860         (nand_v4si3): Likewise.
23861         (nand_v2di3): Likewise.
23862         (nand_v4sf3): Likewise.
23863         (nand_v2df3): Likewise.
23864         (orc): Likewise.
23865         (orc_v16qi3): Likewise.
23866         (orc_v8hi3): Likewise.
23867         (orc_v4si3): Likewise.
23868         (orc_v2di3): Likewise.
23869         (orc_v4sf3): Likewise.
23870         (orc_v2df3): Likewise.
23872         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
23873         allow power8 quad mode in 64-bit.
23874         (rs6000_builtin_vectorized_function): Add support to vectorize
23875         ISA 2.07 count leading zeros, population count builtins.
23876         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
23877         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
23878         (builtin_function_type): Add vgbbd builtin function which takes an
23879         unsigned argument.
23880         (altivec_expand_vec_perm_const): Add support for new power8 merge
23881         instructions.
23883         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
23884         that does not include TImdoe for use with 32-bit.
23885         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
23886         instructions.
23887         (UNSPEC_VSX_CVDPSPN): Likewise.
23888         (vsx_xscvdpspn): Likewise.
23889         (vsx_xscvspdpn): Likewise.
23890         (vsx_xscvdpspn_scalar): Likewise.
23891         (vsx_xscvspdpn_directmove): Likewise.
23892         (vsx_and<mode>3): Split logical operations into 32-bit and
23893         64-bit. Add support to do logical operations on TImode as well as
23894         VSX vector types.  Allow logical operations to be done in either
23895         VSX registers or in general purpose registers in 64-bit mode.  Add
23896         splitters if GPRs were used. For AND, add clobber of CCmode to
23897         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
23898         encoding.
23899         (vsx_and<mode>3_32bit): Likewise.
23900         (vsx_and<mode>3_64bit): Likewise.
23901         (vsx_ior<mode>3): Likewise.
23902         (vsx_ior<mode>3_32bit): Likewise.
23903         (vsx_ior<mode>3_64bit): Likewise.
23904         (vsx_xor<mode>3): Likewise.
23905         (vsx_xor<mode>3_32bit): Likewise.
23906         (vsx_xor<mode>3_64bit): Likewise.
23907         (vsx_one_cmpl<mode>2): Likewise.
23908         (vsx_one_cmpl<mode>2_32bit): Likewise.
23909         (vsx_one_cmpl<mode>2_64bit): Likewise.
23910         (vsx_nor<mode>3): Likewise.
23911         (vsx_nor<mode>3_32bit): Likewise.
23912         (vsx_nor<mode>3_64bit): Likewise.
23913         (vsx_andc<mode>3): Likewise.
23914         (vsx_andc<mode>3_32bit): Likewise.
23915         (vsx_andc<mode>3_64bit): Likewise.
23916         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
23917         and xxlorc instructions.
23918         (vsx_eqv<mode>3_64bit): Likewise.
23919         (vsx_nand<mode>3_32bit): Likewise.
23920         (vsx_nand<mode>3_64bit): Likewise.
23921         (vsx_orc<mode>3_32bit): Likewise.
23922         (vsx_orc<mode>3_64bit): Likewise.
23924         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
23926         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
23927         instruction.
23928         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
23929         (p8_vmrgow): Likewise.
23930         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
23931         GPRs to be split under VSX.
23932         (p8v_clz<mode>2): Add power8 count leading zero support.
23933         (p8v_popcount<mode>2): Add power8 population count support.
23934         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
23935         support.
23937         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
23938         instruction.
23940         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
23941         builtin functions.
23942         (vec_nand): Likewise.
23943         (vec_vclz): Likewise.
23944         (vec_vclzb): Likewise.
23945         (vec_vclzd): Likewise.
23946         (vec_vclzh): Likewise.
23947         (vec_vclzw): Likewise.
23948         (vec_vgbbd): Likewise.
23949         (vec_vmrgew): Likewise.
23950         (vec_vmrgow): Likewise.
23951         (vec_vpopcnt): Likewise.
23952         (vec_vpopcntb): Likewise.
23953         (vec_vpopcntd): Likewise.
23954         (vec_vpopcnth): Likewise.
23955         (vec_vpopcntw): Likewise.
23957 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
23959         PR rtl-optimization/57468
23960         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
23961         spilled pseudos.
23963 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
23965         PR rtl-optimization/57459
23966         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
23967         type when setting live regs.
23969 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
23971         * config/s390/s390.opt (mlra): New option.
23972         * config/s390/s390.c (s390_decompose_address): Check displacement
23973         for all registers for LRA.
23974         (s390_secondary_reload): Don't used secondary reloads for LRA.
23975         (s390_lra_p): New function.
23976         (TARGET_LRA_P): Define.
23977         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
23978         of attribute cpu_facility to zarch for the last alternative.
23979         (*cmpmem_short): Ditto.
23981 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
23983         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
23984         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
23985         (arm_expand_prologue): Likewise.
23987 2013-06-06  Teresa Johnson  <tejohnson@google.com>
23989         PR c++/53743
23990         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
23991         as this is now done by redirect_edge_and_branch_force.
23992         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
23993         barriers, and fix interaction with splitting.
23994         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
23995         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
23996         reflect changes made in the routine.
23997         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
23998         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
23999         since this is called in cfglayout mode, and replace partition fixup
24000         with assert as that is now done by force_nonfallthru_and_redirect.
24001         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
24002         already be marked with region crossing note.
24003         (insert_section_boundary_note): Make non-static, gate on flag
24004         has_bb_partition, rewrite to also check for multiple partitions.
24005         (rest_of_handle_reorder_blocks): Remove call to
24006         insert_section_boundary_note, now done later during free_cfg.
24007         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
24008         * bb-reorder.h (insert_section_boundary_note): Declare.
24009         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
24010         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
24011         invoke insert_section_boundary_note.
24012         (try_redirect_by_replacing_jump): Remove unnecessary
24013         check for region crossing note.
24014         (fixup_partition_crossing): New function.
24015         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
24016         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
24017         in non-cfglayout mode.
24018         (force_nonfallthru_and_redirect): Fixup partition boundaries,
24019         remove old code that tried to do this. Emit barrier correctly
24020         when we are in cfglayout mode.
24021         (last_bb_in_partition): New function.
24022         (rtl_split_edge): Correctly fixup partition boundaries.
24023         (commit_one_edge_insertion): Remove old code that tried to
24024         fixup region crossing edge since this is now handled in
24025         split_block, and set up insertion point correctly since
24026         block may now end in a jump.
24027         (verify_hot_cold_block_grouping): Guard against checking when not in
24028         linearized RTL mode.
24029         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
24030         notes.
24031         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
24032         rtl_verify_flow_info, so not called in cfglayout mode.
24033         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
24034         (fixup_reorder_chain): Remove old code that attempted to fixup region
24035         crossing note as this is now handled in force_nonfallthru_and_redirect.
24036         (duplicate_insn_chain): Don't duplicate switch section notes.
24037         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
24038         note.
24039         * basic-block.h (emit_barrier_after_bb): Declare.
24041 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24043         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
24044         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
24045         arm_usatsihi): Adjust alternatives for arm_restrict_it.
24047 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24049         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
24050         where appropriate.
24051         * config/arm/ldmstm.md: Regenerate.
24053 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24055         * config/arm/sync.md (atomic_loaddi_1):
24056         Disable predication for arm_restrict_it.
24057         (arm_load_exclusive<mode>): Likewise.
24058         (arm_load_exclusivesi): Likewise.
24059         (arm_load_exclusivedi): Likewise.
24060         (arm_load_acquire_exclusive<mode>): Likewise.
24061         (arm_load_acquire_exclusivesi): Likewise.
24062         (arm_load_acquire_exclusivedi): Likewise.
24063         (arm_store_exclusive<mode>): Likewise.
24064         (arm_store_exclusive<mode>): Likewise.
24065         (arm_store_release_exclusivedi): Likewise.
24066         (arm_store_release_exclusive<mode>): Likewise.
24068 2013-06-06  Richard Biener  <rguenther@suse.de>
24070         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
24071         after LTO_null.
24072         (lto_tag_is_tree_code_p): Adjust.
24073         (lto_tag_is_gimple_code_p): Likewise.
24074         (lto_gimple_code_to_tag): Likewise.
24075         (lto_tag_to_gimple_code): Likewise.
24076         (lto_tree_code_to_tag): Likewise.
24077         (lto_tag_to_tree_code): Likewise.
24078         * data-streamer.h (streamer_write_hwi_in_range): Use
24079         uhwi streaming to stream the normalized range.
24080         (streamer_read_hwi_in_range): Likewise.
24082 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24084         * config/arm/arm.md (enabled_for_depr_it): New attribute.
24085         (predicable_short_it): Likewise.
24086         (predicated): Likewise.
24087         (enabled): Handle above.
24088         (define_cond_exec): Set predicated attribute to yes.
24090 2013-06-05  Mike Stump  <mikestump@comcast.net>
24092         * gdbinit.in (__FUNCTION__): Add.
24094 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
24096         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
24097         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
24099 2013-06-05  Jan Hubicka  <jh@suse.cz>
24101         * varasm.c (mark_decl_referenced): Revert the removal until targets
24102         are fixed.
24104 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
24106         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
24107         instead of mark_decl_referenced.
24109 2013-06-05  Jan Hubicka  <jh@suse.cz>
24111         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
24112         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
24113         and symtab_used_from_object_file_p.
24114         (cgraph_make_node_local_1): Clear forced_by_abi.
24115         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
24116         * cgraph.h (symtab_node_base): Add forced_by_abi.
24117         (decide_is_variable_needed): Remove.
24118         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
24119         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
24120         (decide_is_symbol_needed): ... this one; handle symbols in general;
24121         always analyze virtuals; honnor forced_by_abi.
24122         (cgraph_finalize_function): Update.
24123         (varpool_finalize_decl): Update.
24124         (symbol_defined_and_needed): Remove.
24125         (analyze_functions): Update.
24126         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24127         output_refs, input_overwrite_node): Handle forced_by_abi.
24128         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
24129         (address_taken_from_non_vtable_p): ... this one.
24130         (comdat_can_be_unshared_p_1): New function.
24131         (cgraph_comdat_can_be_unshared_p): Rename to ...
24132         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
24133         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
24134         (function_and_variable_visibility): Clear forced_by_abi as needed.
24135         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
24136         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
24137         * symtab.c (dump_symtab_base): Dump forced_by_abi.
24138         * varpool.c (decide_is_variable_needed): Remove.
24140 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24142         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
24143         (arm_option_override): Override arm_restrict_it where appropriate.
24144         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
24145         * config/arm/arm.opt (mrestrict-it): New command-line option.
24146         * doc/invoke.texi: Document -mrestrict-it.
24148 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
24150         * tsan.c (tsan_atomic_table): Make const.
24152 2013-06-05  Richard Biener  <rguenther@suse.de>
24154         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
24155         index associated with the tree we are supposed to replace.
24156         * tree-streamer-out.c (pack_ts_base_value_fields): Output
24157         TREE_ASM_WRITTEN as zero for everything but SSA names.
24159 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
24161         * tree-ssa-structalias.c (call_stmt_vars): Make static.
24163 2013-06-04  Jan Hubicka  <jh@suse.cz>
24165         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
24166         (input_node, input_varpool_node): Handle correctly external same
24167         body aliases.
24168         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
24169         nodes at ltrans stage.
24171 2013-06-04  Jan Hubicka  <jh@suse.cz>
24173         * ipa-inline.c (update_caller_keys): Fix availability test.
24174         (update_callee_keys): Likewise.
24175         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
24176         to follow ELF standard.
24178 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
24180         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
24181         (mips64r5900el-*-elf*): New configurations.
24182         * config/mips/mips-cpus.def (r5900): New processor.
24183         * config/mips/mips-tables.opt: Regenerate.
24184         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
24185         (mips_issue_rate): Handle PROCESSOR_R5900.
24186         (mips_reorg_process_insns): Force reorder mode for the R5900.
24187         * config/mips/mips.h (TARGET_MIPS5900): Define.
24188         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
24189         TARGET_MIPS5900.
24190         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
24191         TARGET_MIPS5900.
24192         * config/mips/mips.md (processor): Add r5900.
24193         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
24195 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24197         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
24198         into function to generate MOVI instruction.
24199         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
24200         (aarch64_preferred_simd_mode): Turn into wrapper.
24201         (aarch64_output_scalar_simd_mov_immediate): New function.
24202         * config/aarch64/aarch64-protos.h: Add prototype for above.
24204 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24206         * config/aarch64/aarch64.c (simd_immediate_info): Remove
24207         element_char member.
24208         (sizetochar): Return signed char.
24209         (aarch64_simd_valid_immediate): Remove elchar and other
24210         unnecessary variables.
24211         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
24212         Calculate element_char as required.
24213         * config/aarch64/aarch64-protos.h: Update and move prototype
24214         for aarch64_output_simd_mov_immediate.
24215         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
24216         Update arguments.
24218 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24220         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
24221         information completed by aarch64_simd_valid_immediate.
24222         (aarch64_legitimate_constant_p): Update arguments.
24223         (aarch64_simd_valid_immediate): Work with struct rather than many
24224         pointers.
24225         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
24226         (aarch64_simd_make_constant): Update arguments.
24227         (aarch64_output_simd_mov_immediate): Work with struct rather than
24228         many pointers.  Output immediate directly rather than as operand.
24229         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24230         Update prototype.
24231         * config/aarch64/constraints.md (Dn): Update arguments.
24233 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24235         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
24236         longer static.
24237         (aarch64_simd_immediate_valid_for_move): Remove.
24238         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
24239         (aarch64_simd_make_constant): Update call.
24240         (aarch64_output_simd_mov_immediate): Update call.
24241         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24242         Add prototype.
24243         * config/aarch64/constraints.md (Dn): Update call.
24245 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24247         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
24248         return type to bool for prototype.
24249         (aarch64_legitimate_constant_p): Check for true instead of not -1.
24250         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
24251         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
24253 2013-06-04  Catherine Moore  <clm@codesourcery.com>
24255         * config/mips/mips.opt (meva): New.
24256         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
24257         (ASM_SPEC): Handle -meva.
24258         * doc/invoke.texi (meva):  Document.
24260 2013-06-04  Alan Modra  <amodra@gmail.com>
24262         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
24263         constant output.
24265 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24267         * rtl.def: Add extra fourth optional field to define_cond_exec.
24268         * gensupport.c (process_one_cond_exec): Process attributes from
24269         define_cond_exec.
24270         * doc/md.texi: Document fourth field in define_cond_exec.
24272 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
24274         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
24275         out the processing order as in store_bit_field_1.
24277 2013-06-04  Jan Hubicka  <jh@suse.cz>
24279         PR middle-end/57500
24280         * cgraphunit.c (cgraph_process_same_body_aliases): Create
24281         non-VAR_DECL node if it does not exist yet.
24283 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
24285         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
24286         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
24287         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
24288         target_cpu_default setting.
24290 2013-06-03  Teresa Johnson  <tejohnson@google.com>
24292         * dumpfile.c (opt_info_switch_p): Change -fopt-info
24293         default to -fopt-info=optimized instead of all.
24294         * doc/invoke.texi: Ditto.
24295         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
24296         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
24297         (execute_vect_slp): Emit BB vectorization success under
24298         MSG_OPTIMIZED_LOCATIONS.
24299         * tree-vect-slp.c (vect_slp_transform_bb): Change
24300         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
24301         * tree-vect-loop.c (vect_transform_loop): Ditto.
24303 2013-06-03  Jason Merrill  <jason@redhat.com>
24305         PR c++/57415
24306         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24307         Use TARGET_EXPR for C++.
24309 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
24311         PR rtl-optimization/57268
24312         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
24313         if DEBUG_INSN_P (insn).
24315         Reapply
24316         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
24318         PR rtl-optimization/57268
24319         * sched-deps.c (sched_analyze_2): Flush dependence lists if
24320         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24322 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
24324         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
24325         (ix86_avoid_lea_for_addr): Likewise.
24326         (exact_dependency_1): Likewise.
24327         (ix86_adjust_cost): Likewise.
24328         (swap_top_of_ready_list): Fix formatting and !reload_completed check
24329         removed.
24330         (do_reorder_for_imul): Fix typo, formatting and
24331         !reload_completed check removed.
24332         (ix86_sched_reorder): Fix typo and formatting.
24333         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
24334         list.
24336 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
24338         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
24340 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
24342         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
24343         <STRING_CST>: Likewise.
24344         <VECTOR_CST>: Likewise.
24346 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
24347             Mikael Morin  <mikael@gcc.gnu.org>
24349         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
24350         * config.in: Regenerated.
24351         * configure: Regenerated.
24353 2013-06-01  Jan Hubicka  <jh@suse.cz>
24355         PR middle-end/57366
24356         * cgraphunit.c (compile): When weakref is not supported,
24357         set up transparent aliases before final output pass.
24358         * varasm.c (assemble_alias): Do not try to do it here.
24360 2013-06-01  Jan Hubicka  <jh@suse.cz>
24362         PR middle-end/57467
24363         * passes.c (for_per_function): Skip unanalyzed functions.
24365 2013-06-01  Jan Hubicka  <jh@suse.cz>
24367         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
24368         (lto_symtab_merge_symbols_1): ... this one.
24369         (lto_symtab_merge_cgraph_nodes): Rename to ...
24370         (lto_symtab_merge_symbols): ... this one; simplify.
24371         * cgraph.c (same_body_aliases_done): Rename to ...
24372         (cpp_implicit_aliases_done): ... this one.
24373         (cgraph_create_function_alias): Update.
24374         (cgraph_same_body_alias): Update.
24375         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
24376         (verify_edge_corresponds_to_fndecl): Simplify.
24377         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
24378         (cgraph_node): Remove same_body_alias.
24379         (varpool_node): Remove alias_of and extra_name_alias.
24380         (same_body_aliases_done): Rename to ..
24381         (cpp_implicit_aliases_done): ... this one.
24382         (symtab_alias_ultimate_target): Add default parameter.
24383         (symtab_resolve_alias): New function.
24384         (fixup_same_cpp_alias_visibility): Declare.
24385         (cgraph_function_node): Add default parameter.
24386         (cgraph_node_asm_name): Likewise.
24387         (cgraph_function_or_thunk_node): Add default parameter; do
24388         not ICE when it is NULL.
24389         (varpool_variable_node): Likewise.
24390         * tree-emutls.c (create_emultls_var): Update.
24391         (ipa_lower_emutls): Update.
24392         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
24393         (cgraph_reset_node): Reset alias info.
24394         (cgraph_finalize_function): Update.
24395         (fixup_same_cpp_alias_visibility): Move to symtab.c.
24396         (analyze_function): Simplify.
24397         (cgraph_process_same_body_aliases): Simplify.
24398         (analyze_functions): Fixup same body aliases.
24399         (handle_alias_pairs): Simplify.
24400         (assemble_thunk): Update.
24401         (assemble_thunks_and_aliases): Update.
24402         (output_weakrefs): Rewrite.
24403         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
24404         (lto_output_varpool_node): Likewise.
24405         (compute_ltrans_boundary): Remve assert.
24406         (get_alias_symbol): New functoin.
24407         (input_node): Rewrite alias handling.
24408         (input_varpool_node): Likewise.
24409         * ipa-pure-const.c (propagate_pure_const): Fix formating.
24410         * ipa.c (process_references): Handle weakrefs correctly.
24411         (symtab_remove_unreachable_nodes): Likewise.
24412         * trans-mem.c (get_cg_data): Update.
24413         (ipa_tm_create_version_alias): Update.
24414         (ipa_tm_execute): Update.
24415         * symtab.c (dump_symtab_base): Dump aliases.
24416         (verify_symtab_base): Verify aliases.
24417         (symtab_node_availability): New function.
24418         (symtab_alias_ultimate_target): Simplify.
24419         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
24420         handle all the fixup cases.
24421         (symtab_resolve_alias): New function.
24422         * passes.c (ipa_write_summaries): Handle weakrefs.
24423         * varpool.c (varpool_analyze_node): Simplify.
24424         (assemble_aliases): Update.
24425         (varpool_create_variable_alias): Simplify.
24426         (varpool_extra_name_alias): Simplify.
24427         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
24428         (lto_symtab_merge_symbols): ... this one.
24430 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
24432         Revert
24433         PR rtl-optimization/57268
24434         * sched-deps.c (sched_analyze_2): Flush dependence lists if
24435         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24437 2013-06-01  Tobias Burnus  <burnus@net-b.de>
24439         Partially reverted:
24440         2013-05-31  Tobias Burnus  <burnus@net-b.de>
24442         PR middle-end/57073
24443         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
24444         further up.
24446 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
24448         PR rtl-optimization/57268
24449         * sched-deps.c (sched_analyze_2): Flush dependence lists if
24450         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24452 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
24454         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
24455         unordered comparison operators when -fno-trapping-math is in effect
24456         on the e500.
24457         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
24458         and implement unordered comparison operators properly on the e500.
24460 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
24462         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
24463         for constant scalar integers.
24464         (simplify_relational_operation_1): Likewise.
24466 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
24468         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
24469         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
24470         Fix comment.
24472 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
24473             Igor Zamyatin  <igor.zamyatin@intel.com>
24475         Silvermont (SLM) architecture performance tuning.
24476         * config/i386/i386.h (enum ix86_tune_indices): Add
24477         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
24478         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
24480         * config/i386/i386.c (initial_ix86_tune_features)
24481         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
24482         (ix86_lea_outperforms): Handle Silvermont tuning.
24483         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
24484         call.
24485         (ix86_use_lea_for_mov): Likewise.
24486         (ix86_avoid_lea_for_addr): Likewise.
24487         (ix86_lea_for_add_ok): Likewise.
24488         (exact_dependency_1): New function.
24489         (exact_store_load_dependency): Likewise.
24490         (ix86_adjust_cost): Handle Silvermont tuning.
24491         (do_reoder_for_imul): Likewise.
24492         (swap_top_of_ready_list): New function.
24493         (ix86_sched_reorder): Changed to handle Silvermont tuning.
24495         * config/i386/i386.md (peepholes that split memory operand in fp
24496         converts): New.
24498 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24500         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24501         Remove un-necessary braces.
24503 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24505         * config/aarch64/aarch64.c (aarch64_classify_symbol):
24506         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
24508 2013-05-31  Tobias Burnus  <burnus@net-b.de>
24510         PR middle-end/57073
24511         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
24513 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24515         PR target/56315
24516         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
24517         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
24518         * config/arm/neon.md (iordi3_neon): Remove.
24519         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
24520         * config/arm/predicates.md (imm_for_neon_logic_operand):
24521         Move to earlier in the file.
24522         (neon_logic_op2): Likewise.
24523         (arm_iordi_operand_neon): New predicate.
24525 2013-05-31  Richard Biener  <rguenther@suse.de>
24527         PR tree-optimization/57478
24528         PR tree-optimization/57453
24529         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
24530         are life as well.
24532 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24534         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
24535         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
24537 2013-05-30  Tobias Burnus  <burnus@net-b.de>
24538             Thomas Koenig  <tkoenig@gcc.gnu.org>
24540         PR middle-end/57073
24541         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
24542         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
24544 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
24546         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
24548 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
24550         * target.def (register_usage_leveling_p): New hook.
24551         * targhooks.c (default_register_usage_leveling_p): New.
24552         * targhooks.h (default_register_usage_leveling_p): New prototype.
24553         * lra-assigns.c (register_usage_leveling_p): Use the hook.
24554         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
24555         * doc/tm.texi: Update.
24556         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
24558 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
24560         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
24561         (*insv_reg<mode>): New define_insn.
24563 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
24565         PR rtl-optimization/57439
24566         * postreload.c (move2add_valid_value_p): Check that we have
24567         a zero subreg_regno_offset when accessing the register in
24568         the requested mode.
24570 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
24571             Igor Zamyatin  <igor.zamyatin@intel.com>
24573         Silvermont (SLM) architecture pipeline model, tuning and
24574         insn selection.
24575         * config.gcc: Add slm config options and target.
24577         * config/i386/slm.md: New.
24579         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
24581         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
24582         PROCESSOR_SLM.
24583         (ix86_target_macros_internal): Likewise.
24585         * config/i386/i386.c (slm_cost): New cost.
24586         (m_SLM): New macro flag.
24587         (initial_ix86_tune_features): Set m_SLM.
24588         (x86_accumulate_outgoing_args): Likewise.
24589         (x86_arch_always_fancy_math_387): Likewise.
24590         (processor_target_table): Add slm cost.
24591         (cpu_names): Add slm cpu name.
24592         (x86_option_override_internal): Set SLM ISA.
24593         (ix86_issue_rate): New case PROCESSOR_SLM.
24594         (ia32_multipass_dfa_lookahead): Likewise.
24595         (fold_builtin_cpu): Add slm.
24597         * config/i386/i386.h (TARGET_SLM): New target macro.
24598         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
24599         (processor_type): Add PROCESSOR_SLM.
24601         * config/i386/i386.md (cpu): Add new value "slm".
24602         (slm.md): Include slm.md.
24604 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
24605             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24607         * config/arm/arm-protos.h: Add and update function protos.
24608         * config/arm/arm.c (use_simple_return_p): New added.
24609         (thumb2_expand_return): Check simple_return flag.
24610         * config/arm/arm.md: Add simple_return and conditional simple_return.
24611         * config/arm/iterators.md: Add iterator for return and simple_return.
24613 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24615         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
24616         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
24617         (arm_emit_vfp_multi_reg_pop): Likewise.
24618         (thumb2_emit_ldrd_pop): Likewise.
24619         (arm_expand_epilogue): Add misc REG_CFA notes.
24620         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
24622 2013-05-29  Lawrence Crowl  <crowl@google.com>
24624         * config/arm/t-arm: Update for below.
24626         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
24627         Change type to hash_table.  Update dependent calls and types.
24629         * config/i386/t-cygming: Update for below.
24631         * config/i386/t-interix: Update for below.
24633         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
24634         Change type to hash_table.  Update dependent calls and types.
24635         (i386_find_on_wrapper_list::wrappers): Likewise.
24637         * config/ia64/t-ia64: Update for below.
24639         * config/ia64/ia64.c (bundle_state_table):
24640         Change type to hash_table.  Update dependent calls and types.
24642         * config/mips/mips.c (mips_reorg_process_insns::htab):
24643         Change type to hash_table.  Update dependent calls and types.
24645         * config/sol2.c (solaris_comdat_htab):
24646         Change type to hash_table.  Update dependent calls and types.
24648         * config/t-sol2: Update for above.
24650 2013-05-29  Teresa Johnson  <tejohnson@google.com>
24652         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
24653         functions are not yet marked as defined.
24655 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
24656             Pat Haugen  <pthaugen@us.ibm.com>
24657             Peter Bergner  <bergner@vnet.ibm.com>
24659         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
24660         instructions.
24661         (VEC_A): Likewise.
24662         (VEC_C): Likewise.
24663         (vrotl<mode>3): Likewise.
24664         (vashl<mode>3): Likewise.
24665         (vlshr<mode>3): Likewise.
24666         (vashr<mode>3): Likewise.
24668         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24669         support for power8 V2DI builtins.
24671         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
24672         power8 V2DI builtins.
24673         (vupkhsw): Likewise.
24674         (vupklsw): Likewise.
24675         (vaddudm): Likewise.
24676         (vminsd): Likewise.
24677         (vmaxsd): Likewise.
24678         (vminud): Likewise.
24679         (vmaxud): Likewise.
24680         (vpkudum): Likewise.
24681         (vpksdss): Likewise.
24682         (vpkudus): Likewise.
24683         (vpksdus): Likewise.
24684         (vrld): Likewise.
24685         (vsld): Likewise.
24686         (vsrd): Likewise.
24687         (vsrad): Likewise.
24688         (vsubudm): Likewise.
24689         (vcmpequd): Likewise.
24690         (vcmpgtsd): Likewise.
24691         (vcmpgtud): Likewise.
24692         (vcmpequd_p): Likewise.
24693         (vcmpgtsd_p): Likewise.
24694         (vcmpgtud_p): Likewise.
24695         (vupkhsw): Likewise.
24696         (vupklsw): Likewise.
24697         (vaddudm): Likewise.
24698         (vmaxsd): Likewise.
24699         (vmaxud): Likewise.
24700         (vminsd): Likewise.
24701         (vminud): Likewise.
24702         (vpksdss): Likewise.
24703         (vpksdus): Likewise.
24704         (vpkudum): Likewise.
24705         (vpkudus): Likewise.
24706         (vrld): Likewise.
24707         (vsld): Likewise.
24708         (vsrad): Likewise.
24709         (vsrd): Likewise.
24710         (vsubudm): Likewise.
24712         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
24713         support for power8 V2DI instructions.
24715         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
24716         power8 V2DI instructions.  Combine pack and unpack insns to use an
24717         iterator for each mode.  Check whether a particular mode supports
24718         Altivec instructions instead of just checking TARGET_ALTIVEC.
24719         (UNSPEC_VPKUWUM): Likewise.
24720         (UNSPEC_VPKSHSS): Likewise.
24721         (UNSPEC_VPKSWSS): Likewise.
24722         (UNSPEC_VPKUHUS): Likewise.
24723         (UNSPEC_VPKSHUS): Likewise.
24724         (UNSPEC_VPKUWUS): Likewise.
24725         (UNSPEC_VPKSWUS): Likewise.
24726         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
24727         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
24728         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
24729         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
24730         (UNSPEC_VUPKHSB): Likewise.
24731         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
24732         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
24733         (UNSPEC_VUPKHSH): Likewise.
24734         (UNSPEC_VUPKLSB): Likewise.
24735         (UNSPEC_VUPKLSH): Likewise.
24736         (VI2): Likewise.
24737         (VI_char): Likewise.
24738         (VI_scalar): Likewise.
24739         (VI_unit): Likewise.
24740         (VP): Likewise.
24741         (VP_small): Likewise.
24742         (VP_small_lc): Likewise.
24743         (VU_char): Likewise.
24744         (add<mode>3): Likewise.
24745         (altivec_vaddcuw): Likewise.
24746         (altivec_vaddu<VI_char>s): Likewise.
24747         (altivec_vadds<VI_char>s): Likewise.
24748         (sub<mode>3): Likewise.
24749         (altivec_vsubcuw): Likewise.
24750         (altivec_vsubu<VI_char>s): Likewise.
24751         (altivec_vsubs<VI_char>s): Likewise.
24752         (altivec_vavgs<VI_char>): Likewise.
24753         (altivec_vcmpbfp): Likewise.
24754         (altivec_eq<mode>): Likewise.
24755         (altivec_gt<mode>): Likewise.
24756         (altivec_gtu<mode>): Likewise.
24757         (umax<mode>3): Likewise.
24758         (smax<mode>3): Likewise.
24759         (umin<mode>3): Likewise.
24760         (smin<mode>3): Likewise.
24761         (altivec_vpkuhum): Likewise.
24762         (altivec_vpkuwum): Likewise.
24763         (altivec_vpkshss): Likewise.
24764         (altivec_vpkswss): Likewise.
24765         (altivec_vpkuhus): Likewise.
24766         (altivec_vpkshus): Likewise.
24767         (altivec_vpkuwus): Likewise.
24768         (altivec_vpkswus): Likewise.
24769         (altivec_vpks<VI_char>ss): Likewise.
24770         (altivec_vpks<VI_char>us): Likewise.
24771         (altivec_vpku<VI_char>us): Likewise.
24772         (altivec_vpku<VI_char>um): Likewise.
24773         (altivec_vrl<VI_char>): Likewise.
24774         (altivec_vsl<VI_char>): Likewise.
24775         (altivec_vsr<VI_char>): Likewise.
24776         (altivec_vsra<VI_char>): Likewise.
24777         (altivec_vsldoi_<mode>): Likewise.
24778         (altivec_vupkhsb): Likewise.
24779         (altivec_vupkhs<VU_char>): Likewise.
24780         (altivec_vupkls<VU_char>): Likewise.
24781         (altivec_vupkhsh): Likewise.
24782         (altivec_vupklsb): Likewise.
24783         (altivec_vupklsh): Likewise.
24784         (altivec_vcmpequ<VI_char>_p): Likewise.
24785         (altivec_vcmpgts<VI_char>_p): Likewise.
24786         (altivec_vcmpgtu<VI_char>_p): Likewise.
24787         (abs<mode>2): Likewise.
24788         (vec_unpacks_hi_v16qi): Likewise.
24789         (vec_unpacks_hi_v8hi): Likewise.
24790         (vec_unpacks_lo_v16qi): Likewise.
24791         (vec_unpacks_hi_<VP_small_lc>): Likewise.
24792         (vec_unpacks_lo_v8hi): Likewise.
24793         (vec_unpacks_lo_<VP_small_lc>): Likewise.
24794         (vec_pack_trunc_v8h): Likewise.
24795         (vec_pack_trunc_v4si): Likewise.
24796         (vec_pack_trunc_<mode>): Likewise.
24798         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
24799         V2DI builtins.
24800         (vec_vmaxsd): Likewise.
24801         (vec_vmaxud): Likewise.
24802         (vec_vminsd): Likewise.
24803         (vec_vminud): Likewise.
24804         (vec_vpksdss): Likewise.
24805         (vec_vpksdus): Likewise.
24806         (vec_vpkudum): Likewise.
24807         (vec_vpkudus): Likewise.
24808         (vec_vrld): Likewise.
24809         (vec_vsld): Likewise.
24810         (vec_vsrad): Likewise.
24811         (vec_vsrd): Likewise.
24812         (vec_vsubudm): Likewise.
24813         (vec_vupkhsw): Likewise.
24814         (vec_vupklsw): Likewise.
24816 2013-05-29  Jan Hubicka  <jh@suse.cz>
24818         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
24819         flags; reorder rest of fields in more consistent way.
24820         (varpool_node): Remove analyzed, finalized and alias.
24821         (cgraph_ndoe): Likewise.
24822         (symtab_alias_ultimate_target): New function.
24823         (cgraph_function_node): Move offline.
24824         (cgraph_reset_node): Declare.
24825         (cgraph_comdat_can_be_unshared_p): Remove.
24826         (varpool_remove_initializer): Declare.
24827         (varpool_first_defined_variable, varpool_next_defined_variable
24828         cgraph_first_defined_function, cgraph_next_defined_function): Update.
24829         (cgraph_function_with_gimple_body_p): Update.
24830         (varpool_all_refs_explicit_p): Update.
24831         (symtab_alias_target): New function.
24832         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
24833         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
24834         (cgraph_function_or_thunk_node): Simplify using
24835         symtab_alias_ultimate_target.
24836         (varpool_variable_node): Likewise.
24837         * cgraph.c (cgraph_create_function_alias): Update.
24838         (cgraph_add_thunk): Update.
24839         (cgraph_remove_node): Update.
24840         (dump_cgraph_node): Do not dump removed flags.
24841         (cgraph_function_body_availability): Update.
24842         (cgraph_propagate_frequency): Update.
24843         (verify_cgraph_node): Check sanity of local flag.
24844         (cgraph_function_node): Move here from cgraph.h; revamp for
24845         cgraph_function_or_thunk_node.
24846         * lto-symtab.c (lto_varpool_replace_node): Update.
24847         (lto_symtab_resolve_can_prevail_p): Update.
24848         (lto_symtab_merge_cgraph_nodes): Update.
24849         * ipa-cp.c (determine_versionability, initialize_node_lattices,
24850         propagate_constants_accross_call, devirtualization_time_bonus,
24851         ipcp_propagate_stage): Update.
24852         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
24853         * ipa-inline-transform.c (clone_inlined_nodes,
24854         preserve_function_body_p): Update.
24855         * ipa-reference.c (propagate): Update.
24856         (write_node_summary_p): Update.
24857         * toplev.c (wrapup_global_declaration_2): Update.
24858         * cgraphunit.c (cgraph_analyze_function): Rename to ...
24859         (analyze_function) ... this one.
24860         (cgraph_process_new_functions): Update.
24861         (cgraph_reset_node): Export.
24862         (cgraph_finalize_function): Update.
24863         (cgraph_add_new_function): Update.
24864         (process_function_and_variable_attributes): Update.
24865         (varpool_finalize_decl): Update.
24866         (symbol_finalized): Remove.
24867         (symbol_finalized_and_needed): Rename to ...
24868         (symbol_defined_and_needed): ... update.
24869         (cgraph_analyze_functions): Update.
24870         (handle_alias_pairs): Update.
24871         (mark_functions_to_output): Update.
24872         (assemble_thunk): Update.
24873         (output_in_order): Update.
24874         (output_weakrefs): Update.
24875         (finalize_compilation_unit): Update.
24876         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
24877         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
24878         input_node, input_varpool_node): Update.
24879         * dbxout.c (dbxout_expand_expr): Update.
24880         * cgraphclones.c (cgraph_clone_node): Update.
24881         (cgraph_copy_node_for_versioning): Update.
24882         (cgraph_materialize_clone): Update.
24883         (cgraph_materialize_all_clones): Update.
24884         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
24885         propagate_pure_const, propagate_nothrow): Update.
24886         * lto-streamer-out.c (lto_output, write_symbol): Update.
24887         * ipa-utils.c (ipa_reverse_postorder): Update.
24888         * ipa-inline.c (can_inline_edge_p): Update.
24889         (update_caller_keys, ipa_inline): Update.
24890         * dwarf2out.c (reference_to_unused,
24891         premark_types_used_by_global_vars_helper): Update.
24892         * tree-eh.c (tree_could_trap_p): Update.
24893         * ipa-split.c (consider_split, execute_split_functions): Update.
24894         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
24895         has_addr_references_p): Update; move ahead in file for better
24896         readability.
24897         (process_references): Simplify.
24898         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
24899         bodies are removed.
24900         (cgraph_comdat_can_be_unshared_p): Make static.
24901         (cgraph_externally_visible_p): Update.
24902         (varpool_externally_visible_p): Update.
24903         (function_and_variable_visibility): Update.
24904         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
24905         ipa_tm_mark_force_output_node): Update.
24906         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
24907         estimate_edge_devirt_benefit, inline_generate_summary,
24908         inline_write_summary): Update.
24909         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
24910         * ipa-prop.c (ipa_compute_jump_functions): Update.
24911         (ipa_print_node_params, ipa_prop_read_section,
24912         ipa_update_after_lto_read, read_replacements_section): Update.
24913         * varasm.c (mark_decl_referenced): Update.
24914         (assemble_alias, dump_tm_clone_pairs): Update.
24915         * tree-inline.c (copy_bb): Update.
24916         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
24917         Update.
24918         * symtab.c (dump_symtab_base): Print new flags.
24919         (verify_symtab_base): Verify new flags.
24920         (symtab_alias_ultimate_target): New function.
24921         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
24922         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
24923         Update.
24924         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
24925         Update.
24926         * i386.c (ix86_get_function_versions_dispatcher,
24927         ix86_generate_version_dispatcher_body): Update.
24928         (fold_builtin_cpu): Use varpool_add_new_variable.
24929         * varpool.c (varpool_remove_initializer): Break out from ...
24930         (varpool_remove_node): ... this one.
24931         (dump_varpool_node, varpool_node_for_asm,
24932         cgraph_variable_initializer_availability, varpool_analyze_node,
24933         varpool_assemble_decl, varpool_remove_unreferenced_decls,
24934         varpool_finalize_named_section_flags, varpool_create_variable_alias):
24935         Update.
24937 2013-05-29  Jan Hubicka  <jh@suse.cz>
24939         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
24941 2013-05-29  Easwaran Raman  <eraman@google.com>
24943         PR tree-optimization/57442
24944         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
24945         when control exits the main loop.
24947 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
24949         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
24950         and RX600.
24951         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
24952         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
24953         * rx/t-rx: Add rx100 under multi library matches option for nofpu
24954         option.
24956 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24958         PR tree-optimization/57441
24959         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
24960         Don't limit size of incr_vec to number of candidates.
24962 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
24964         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
24965         and mips16 directories.
24966         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
24967         (MULTILIB_DIRNAMES): Ditto.
24968         (MULTILIB_EXCEPTIONS): Add new exceptions.
24969         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
24970         (MULTILIB_DIRNAMES): Ditto.
24971         (MULTILIB_EXCEPTIONS): Add new exceptions.
24973 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
24974             Marcus Shawcroft  <marcus.shawcroft@arm.com>
24976         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
24977         SYMBOL_TINY_ABSOLUTE.
24978         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
24979         SYMBOL_TINY_ABSOLUTE.
24980         (aarch64_expand_mov_immediate): Likewise.
24981         (aarch64_classify_symbol): Likewise.
24982         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
24983         Permit SYMBOL_TINY_ABSOLUTE.
24984         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
24986 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
24987             Marcus Shawcroft  <marcus.shawcroft@arm.com>
24989         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
24990         Refactor if/switch.  Replace gcc_assert with if.
24992 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
24994         * config/i386/i386.c (initial_ix86_tune_features): Enable
24995         FP Reassociation for AMD bdver1 and bdver2.
24997 2013-05-29  Martin Jambor  <mjambor@suse.cz>
24999         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
25000         and IMAGPART_EXPR do not occur within other handled_components.
25002 2013-05-29  Richard Biener  <rguenther@suse.de>
25004         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
25005         access on whether the use is in the BB we currently try to
25006         vectorize.
25007         (vect_bb_vectorization_profitable_p): Pass the BB we currently
25008         vectorize to vect_bb_slp_scalar_cost.
25010 2013-05-29  Richard Biener  <rguenther@suse.de>
25012         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
25013         computing scalar cost offsetted by stmts that are kept live
25014         by scalar uses.
25015         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
25016         for computation of scalar cost.
25018 2013-05-28  Steve Ellcey  <sellcey@mips.com>
25020         * config/mips/mips-cpus.def (mips32r2): Change processor type.
25022 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
25024         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
25025         array notation built-in reduction functions.
25026         * doc/passes.texi (Passes): Added documentation about changes done
25027         for Cilk Plus.
25028         * doc/invoke.texi (C Dialect Options): Added documentation about
25029         the -fcilkplus flag.
25030         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
25031         (BUILTINS_DEF): Depend on cilkplus.def.
25032         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
25033         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
25034         * cilkplus.def: New file.
25036 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
25038         PR rtl-optimization/57439
25039         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
25041 2013-05-28  Easwaran Raman  <eraman@google.com>
25043         PR tree-optimization/57337
25044         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
25045         (find_insert_point): Correctly identify the insertion point
25046         when two statements with the same UID is compared.
25048 2013-05-28  Richard Biener  <rguenther@suse.de>
25050         PR tree-optimization/56787
25051         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
25052         from the list of data references.
25053         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
25054         clobbers.
25055         (vect_analyze_loop_operations): Likewise.
25056         (vect_transform_loop): Remove clobbers.
25058 2013-05-28  Martin Jambor  <mjambor@suse.cz>
25060         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
25061         and REALPART_EXPRs have scalar type.
25063 2013-05-28  Richard Biener  <rguenther@suse.de>
25065         PR tree-optimization/57411
25066         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
25067         virtual operands.
25068         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
25069         virtual operand propagation.
25071 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
25073         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
25074         destination register for bmasksi_vis.
25075         (vector_init_bshuffle): Likewise.
25076         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
25078 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
25080         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
25081         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
25082         mode if the instruction isn't available in the original mode.
25083         * config/sparc/sparc.opt (mfix-ut699): New option.
25084         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
25085         (divdf3): Turn into expander.
25086         (divdf3_nofix): New insn.
25087         (divdf3_fix): Likewise.
25088         (divsf3): Disable if -mfix-ut699.
25089         (sqrtdf2): Turn into expander.
25090         (sqrtdf2_nofix): New insn.
25091         (sqrtdf2_fix): Likewise.
25092         (sqrtsf2): Disable if -mfix-ut699.
25094 2013-05-27  Richard Biener  <rguenther@suse.de>
25096         PR middle-end/57412
25097         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
25098         block for the new loop.
25100 2013-05-27  Richard Biener  <rguenther@suse.de>
25102         PR tree-optimization/57343
25103         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
25104         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
25105         (number_of_iterations_cond): Do not build the folded tree.
25107 2013-05-27  Richard Biener  <rguenther@suse.de>
25109         Revert
25110         PR middle-end/57381
25111         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25112         OEP_CONSTANT_ADDRESS_OF retained.
25114         PR tree-optimization/57417
25115         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
25116         for unchanged base.
25117         (set_ssa_val_to): Compare addresses using
25118         get_addr_base_and_unit_offset.
25120 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
25122         PR rtl-optimization/56833
25123         * postreload.c (move2add_record_mode): New function.
25124         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
25125         (move2add_use_add2_insn): Use move2add_record_sym_value.
25126         (move2add_use_add3_insn): Likewise.
25127         (reload_cse_move2add): Use move2add_valid_value_p and
25128         move2add_record_mode.  Invalidate call-clobbered and REG_INC
25129         affected regs by setting reg_mode to VOIDmode.
25130         (move2add_note_store): Don't pretend the inside of a SUBREG is
25131         the actual destination.  Invalidate single/leading registers by
25132         setting reg_mode to VOIDmode.
25133         Use move2add_record_sym_value, move2add_valid_value_p and
25134         move2add_record_mode.
25136 2013-05-27  Richard Biener  <rguenther@suse.de>
25138         PR tree-optimization/57396
25139         * tree-affine.c (double_int_constant_multiple_p): Properly
25140         return false for val == 0 and div != 0.
25142 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25144         * config/mips/mips.h: Use #elif in preprocessor conditions.
25146 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25148         PR target/53916
25149         * config/mips/constraints.md (kl): New constraint.
25150         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
25151         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
25152         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
25153         from LO for MIPS16.
25154         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
25156 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25158         PR target/55777
25159         * config/mips/mips.c (mips_can_inline_p): New function.
25160         (TARGET_CAN_INLINE_P): Define.
25162 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
25164         * sched-int.h (ds_t, dw_t): Make unsigned int.
25165         Fix documentation that describes how all the ds_t bits are used.
25166         Reserve the last bit for delayed-branch scheduling.
25167         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
25168         (BITS_PER_DEP_WEAK): Fix definition and documentation.
25169         (gen_dep_weak_1): Remove prototype.
25170         * sched-deps.c (get_dep_weak_1): Make static.
25171         * target.def (speculate_insn, needs_block_p, gen_spec_check,
25172         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
25173         * doc/tm.texi: Regenerate.
25174         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
25176 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
25178         PR debug/56950
25179         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
25181 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
25182             Sandra Loosemore  <sandra@codesourcery.com>
25184         * config.gcc (powerpc-*): Allow native for with-cpu.
25186 2013-05-24  Jeff Law  <law@redhat.com>
25188         PR tree-optimization/57124
25189         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
25190         conversion feeding a condition if the range has an overflow
25191         if -fstrict-overflow.  Add warnings for when we do make the
25192         transformation.
25194 2013-05-24  Dehao Chen  <dehao@google.com>
25196         * tree-cfg.c (locus_discrim_map): Fix the typo.
25197         (locus_discrim_hasher): Likewise.
25198         (locus_discrim_hasher::hash): Likewise.
25199         (locus_discrim_hasher::equal): Likewise.
25201 2013-05-24  Martin Jambor  <mjambor@suse.cz>
25203         PR tree-optimization/57294
25204         * cgraph.h (ipa_record_stmt_references): Declare.
25205         * cgraphbuild.c (ipa_record_stmt_references): New function.
25206         (build_cgraph_edges): Use ipa_record_stmt_references.
25207         (rebuild_cgraph_edges): Likewise.
25208         (cgraph_rebuild_references): Likewise.
25209         * ipa-prop.c (ipa_modify_call_arguments): Discard references
25210         associated with the old statement and build references from the
25211         newly built statements.
25212         * ipa-ref.c (ipa_remove_stmt_references): New function.
25213         * ipa-ref.h (ipa_remove_stmt_references): Declare.
25215 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
25217         * lra-constraints.c (emit_spill_move): Use smaller mode for
25218         mem-mem moves.
25219         (check_and_process_move): Consider mem-reg moves for secondary
25220         too.
25221         (curr_insn_transform): Don't lose insns emitted before for
25222         secondary memory moves.
25223         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
25224         reg set up in the current insn.
25226 2013-05-24  Dehao Chen  <dehao@google.com>
25228         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25229         hash function.
25230         (locus_descrim_hasher::equal): Likewise.
25231         (build_gimple_cfg): New discriminator assignment algorithm.
25232         (make_edges): Likewise.
25233         (next_discriminator_for_locus): Likewise.
25234         (same_line_p): Likewise.
25235         (assign_discriminators): Likewise.
25236         (make_cond_expr_edges): Likewise.
25237         (make_gimple_switch_edges): Likewise.
25238         (make_goto_expr_edges): Likewise.
25239         (make_gimple_asm_edges): Likewise.
25241 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
25243         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
25244         X format specifier to only display bottom 16 bits.
25245         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
25246         immediate to match for operand 2, since it will be masked.
25248 2013-05-24  Richard Biener  <rguenther@suse.de>
25250         PR tree-optimization/57287
25251         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
25252         all SSA names that occur in abnormal PHIs.
25254 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25256         PR tree-ssa/57385
25257         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
25258         that index is not negative.
25260 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
25262         PR rtl-optimization/55177
25263         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
25264         (simplify_byte_swapping_operation): New.
25265         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
25266         (simplify_relational_operation_1): Deal with BSWAP.
25268 2013-05-23  Richard Henderson  <rth@redhat.com>
25270         PR target/56742
25271         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
25272         (ix86_reorg): Call it.
25274 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
25276         PR target/57379
25277         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
25278         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
25279         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
25281 2013-05-23  Christian Bruel  <christian.bruel@st.com>
25283         PR debug/57351
25284         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
25286 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25287             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25289         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
25290         * config/aarch64/constraints.md (Usa): Remove.
25291         * doc/md.texi (AArch64 Usa): Remove.
25293 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25294             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25296         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
25297         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
25298         * config/aarch64/predicates.md (aarch64_const_address): Remove.
25299         (aarch64_mov_operand): Use aarch64_mov_operand_p.
25301 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
25303         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
25304         instruction (AdvSIMD).
25305         * config/aarch64/aarch64-builtins.c
25306         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
25307         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
25309 2013-05-23  Martin Jambor  <mjambor@suse.cz>
25311         PR middle-end/57347
25312         * tree.h (contains_bitfld_component_ref_p): Declare.
25313         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
25314         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
25315         caller.
25316         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
25317         not access a bit-field.  Assert all final offsets are byte-aligned.
25319 2013-05-23  Richard Biener  <rguenther@suse.de>
25321         PR tree-optimization/57380
25322         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
25323         least one invariant or re-used load.
25324         * passes.c (init_optimization_passes): Move pass_phiprop before
25325         pass_forwprop.
25327 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
25329         * config/aarch64/aarch64-simd.md
25330         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
25332 2013-05-23  Richard Biener  <rguenther@suse.de>
25334         PR middle-end/57381
25335         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25336         OEP_CONSTANT_ADDRESS_OF retained.
25338 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
25340         PR middle-end/57344
25341         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
25342         don't lower unit.  Handle unit not being always BITS_PER_WORD.
25344 2013-05-23  Richard Biener  <rguenther@suse.de>
25346         PR rtl-optimization/57341
25347         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
25348         instead of true_dependence.
25350 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
25352         * bb-reorder.c (branch_threshold): Make const.
25353         (exec_threshold): Ditto.
25355 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
25356             Pat Haugen  <pthaugen@us.ibm.com>
25357             Peter Bergner  <bergner@vnet.ibm.com>
25359         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
25360         documentation for the power8 crypto builtins.
25362         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
25364         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
25365         macros for defining power8 builtin functions.
25366         (BU_P8V_AV_2): Likewise.
25367         (BU_P8V_AV_P): Likewise.
25368         (BU_P8V_VSX_1): Likewise.
25369         (BU_P8V_OVERLOAD_1): Likewise.
25370         (BU_P8V_OVERLOAD_2): Likewise.
25371         (BU_CRYPTO_1): Likewise.
25372         (BU_CRYPTO_2): Likewise.
25373         (BU_CRYPTO_3): Likewise.
25374         (BU_CRYPTO_OVERLOAD_1): Likewise.
25375         (BU_CRYPTO_OVERLOAD_2): Likewise.
25376         (XSCVSPDP): Fix typo, point to the correct instruction.
25377         (VCIPHER): Add power8 crypto builtins.
25378         (VCIPHERLAST): Likewise.
25379         (VNCIPHER): Likewise.
25380         (VNCIPHERLAST): Likewise.
25381         (VPMSUMB): Likewise.
25382         (VPMSUMH): Likewise.
25383         (VPMSUMW): Likewise.
25384         (VPERMXOR_V2DI): Likewise.
25385         (VPERMXOR_V4SI: Likewise.
25386         (VPERMXOR_V8HI: Likewise.
25387         (VPERMXOR_V16QI: Likewise.
25388         (VSHASIGMAW): Likewise.
25389         (VSHASIGMAD): Likewise.
25390         (VPMSUM): Likewise.
25391         (VPERMXOR): Likewise.
25392         (VSHASIGMA): Likewise.
25394         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25395         __CRYPTO__ if the crypto instructions are available.
25396         (altivec_overloaded_builtins): Add support for overloaded power8
25397         builtins.
25399         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
25400         support for power8 crypto builtins.
25401         (builtin_function_type): Likewise.
25402         (altivec_init_builtins): Add support for builtins that take vector
25403         long long (V2DI) arguments.
25405         * config/rs6000/crypto.md: New file, define power8 crypto
25406         instructions.
25408 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
25409             Pat Haugen  <pthaugen@us.ibm.com>
25410             Peter Bergner  <bergner@vnet.ibm.com>
25412         * doc/invoke.texi (Option Summary): Add power8 options.
25413         (RS/6000 and PowerPC Options): Likewise.
25415         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
25416         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
25417         wm, wn, wr documentation.
25419         * config/rs6000/constraints.md (wm): New constraint for VSX
25420         registers if direct move instructions are enabled.
25421         (wn): New constraint for no registers.
25422         (wq): New constraint for quad word even GPR registers.
25423         (wr): New constraint if 64-bit instructions are enabled.
25424         (wv): New constraint if power8 vector instructions are enabled.
25425         (wQ): New constraint for quad word memory locations.
25427         * config/rs6000/predicates.md (const_0_to_15_operand): New
25428         constraint for 0..15 for crypto instructions.
25429         (gpc_reg_operand): If VSX allow registers in VSX registers as well
25430         as GPR and floating point registers.
25431         (int_reg_operand): New predicate to match only GPR registers.
25432         (base_reg_operand): New predicate to match base registers.
25433         (quad_int_reg_operand): New predicate to match even GPR registers
25434         for quad memory operations.
25435         (vsx_reg_or_cint_operand): New predicate to allow vector logical
25436         operations in both GPR and VSX registers.
25437         (quad_memory_operand): New predicate for quad memory operations.
25438         (reg_or_indexed_operand): New predicate for direct move support.
25440         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
25441         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
25442         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
25443         (POWERPC_MASKS): Add power8 options.
25444         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
25445         various options.
25447         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25448         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
25450         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
25451         (-mpower8-fusion): New power8 options.
25452         (-mpower8-fusion-sign): Likewise.
25453         (-mpower8-vector): Likewise.
25454         (-mcrypto): Likewise.
25455         (-mdirect-move): Likewise.
25456         (-mquad-memory): Likewise.
25458         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
25459         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
25460         registers.
25461         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
25462         (rs6000_debug_vector_unit): Add p8_vector.
25463         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
25464         definitions.  Also print fusion state.
25465         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
25466         (rs6000_builtin_mask_calculate): Add power8 builtin support.
25467         (rs6000_option_override_internal): Add support for power8.
25468         (rs6000_common_init_builtins): Add debugging for skipped builtins
25469         if -mdebug=builtin.
25470         (rs6000_adjust_cost): Add power8 support.
25471         (rs6000_issue_rate): Likewise.
25472         (insn_must_be_first_in_group): Likewise.
25473         (insn_must_be_last_in_group): Likewise.
25474         (force_new_group): Likewise.
25475         (rs6000_register_move_cost): Likewise.
25476         (rs6000_opt_masks): Likewise.
25478         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
25479         power8 capable assembler, default to power7 options.
25480         (TARGET_DIRECT_MOVE): Likewise.
25481         (TARGET_CRYPTO): Likewise.
25482         (TARGET_P8_VECTOR): Likewise.
25483         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
25484         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
25485         (VECTOR_MEM_P8_VECTOR_P): Likewise.
25486         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
25487         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
25488         (TARGET_XSCVDPSPN): Likewise.
25489         (TARGET_XSCVSPDPN): Likewsie.
25490         (TARGET_SYNC_HI_QI): Likewise.
25491         (TARGET_SYNC_TI): Likewise.
25492         (MASK_CRYPTO): Likewise.
25493         (MASK_DIRECT_MOVE): Likewise.
25494         (MASK_P8_FUSION): Likewise.
25495         (MASK_P8_VECTOR): Likewise.
25496         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
25497         temporary used by some of the direct move instructions to get two FP
25498         temporary registers does not force creation of a stack frame.
25499         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
25500         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
25501         that any VSX registers are tieable, even if they are also an
25502         Altivec vector mode.
25503         (r6000_reg_class_enum): Add wm, wr, wv constraints.
25504         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
25505         (RS6000_BTM_CRYPTO): Likewise.
25506         (RS6000_BTM_COMMON): Likewise.
25508         * config/rs6000/rs6000.md (cpu attribute): Add power8.
25509         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
25510         (enum rs6000_vector): Add power8 vector support.
25512 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25514         PR target/19599
25515         PR target/57340
25516         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
25517         (any_sibcall_could_use_r3): this and handle indirect calls.
25518         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
25520 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25522         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
25524 2013-05-22  Richard Biener  <rguenther@suse.de>
25526         PR middle-end/57349
25527         * profile.c (branch_prob): Do not split blocks that are
25528         abnormally receiving from ECF_RETURNS_TWICE functions.
25530 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25532         * recog.c (offsettable_address_addr_space_p): Fix calculation of
25533         address mode.  Move pointer mode initialization to the same place.
25535 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25537         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
25538         while it has any effect.
25540 2013-05-21  Easwaran Raman  <eraman@google.com>
25542         PR tree-optimization/57322
25543         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
25544         UID of the statement added to the BB to be 1.
25546 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
25548         PR tree-optimization/57331
25549         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
25550         of conversion from pointer type to integral type with integer.
25552 2013-05-21  Martin Jambor  <mjambor@suse.cz>
25554         PR lto/57289
25555         * ipa-prop.c (ipa_read_node_info): Process param_used and
25556         controlled_uses in the same order as when writing.
25558 2013-05-21  Magnus Granberg  <baldrick@free.fr>
25560         PR plugins/56754
25561         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
25563 2013-05-21  Richard Biener  <rguenther@suse.de>
25565         PR tree-optimization/57318
25566         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
25567         estimate stmts with side-effects as likely eliminated.
25569 2013-05-21  Richard Biener  <rguenther@suse.de>
25571         PR tree-optimization/57330
25572         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
25573         preserve the call stmts fntype.
25575 2013-05-21  Richard Biener  <rguenther@suse.de>
25577         PR tree-optimization/57303
25578         * tree-ssa-sink.c (statement_sink_location): Improve killing
25579         stmt detection and properly handle self-assignments.
25581 2013-05-21  Christian Bruel  <christian.bruel@st.com>
25583         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
25584         spanning registers. LEAF_REG_REMAP is supported only for contiguous
25585         registers. Set register size out of the PARALLEL loop.
25587 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
25589         PR target/56547
25590         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
25591         (*fmasf4, *fmasf4_media): New insns.
25593 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25595         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
25596         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
25597         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
25598         (mips_idiv_insns): Update the comments to say that the returned
25599         instruction counts are in units of BASE_INSN_LENGTH.
25600         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
25601         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
25602         using 2 rather than 4 as the length of indirect MIPS16 and
25603         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
25604         length of a NOP.  Don't divide MIPS16 lengths by 2.
25605         (mips16_split_long_branches): Assume a branch is long if the
25606         length is greater than 4 rather than 8.
25607         * config/mips/mips.md (length): Give MIPS16 lengths directly,
25608         rather than multiplying them by 2.  Multiply instruction counts
25609         by BASE_INSN_LENGTH rather than 4.
25610         (*jump_mips16, tls_get_tp_mips16_<mode>)
25611         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
25613 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25615         * config/mips/mips.md (extended_mips16): Remove branch case.
25616         (length): Remove duplicated extended_mips16 test.
25618 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25620         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
25622 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
25624         * recog.h (Recog_data): Rename to...
25625         (recog_data_d): ...this.
25626         (recog_data): Update accordingly.
25627         * recog.c (recog_data): Likewise.
25628         * reload.c (save_recog_data): Likewise.
25629         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
25630         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
25632 2013-05-17  Julian Brown  <julian@codesourcery.com>
25634         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
25635         found in a REG_EQUAL note, invalidate it.
25637 2013-05-17  Easwaran Raman  <eraman@google.com>
25639         * tree-ssa-reassoc.c (find_insert_point): New function.
25640         (insert_stmt_after): Likewise.
25641         (get_def_stmt): Likewise.
25642         (ensure_ops_are_available): Likewise.
25643         (not_dominated_by): Likewise.
25644         (rewrite_expr_tree): Do not move statements beyond what is
25645         necessary. Remove call to swap_ops_for_binary_stmt...
25646         (reassociate_bb): ... and move it here.
25647         (build_and_add_sum): Assign UIDs for new statements.
25648         (linearize_expr): Likewise.
25649         (do_reassoc): Renumber gimple statement UIDs.
25651 2013-05-17  Jan Hubicka  <jh@suse.cz>
25653         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
25654         weakrefs.
25655         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
25656         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
25657         weakrefs.
25658         (output_weakrefs): Update.
25660 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
25661             Martin Jambor  <mjambor@suse.cz>
25663         PR middle-end/57276
25664         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
25665         value that corresponds to the given aggval is found in values vector.
25667 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
25669         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
25670         sse, sse2, sse3, ssse3 and sse4a flags to options.
25672 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
25674         * gengtype-state.c: (s_expr_writer): New class, to handle
25675         prettifying of output layout of s-expressions.
25676         (state_writer): New class, to write out gtype.state.
25677         (state_written_type_count): Move this variable into member data of
25678         state_writer.
25679         (s_expr_writer::s_expr_writer): New code: constructor for new class
25680         (state_writer::state_writer(): ditto
25681         (s_expr_writer::write_new_line): New function
25682         (s_expr_writer::write_any_indent): ditto
25683         (s_expr_writer::begin_s_expr): ditto
25684         (s_expr_writer::end_s_expr): ditto
25685         (write_state_fileloc): convert to method of state_writer...
25686         (state_writer:: write_state_fileloc): ...and use methods of
25687         s_expr_writer to write indentation into the gtype.state output file
25688         to visually represent the hierarchical structure of the list
25689         structures
25690         (write_state_fields): ditto, renaming to...
25691         (state_writer::write_state_fields)
25692         (write_state_a_string): ditto, renaming to...
25693         (state_writer::write_state_a_string)
25694         (write_state_string_option): ditto, renaming to...
25695         (state_writer::write_state_string_option)
25696         (write_state_type_option): ditto, renaming to...
25697         (state_writer::write_state_type_option)
25698         (write_state_nested_option): ditto, renaming to...
25699         (state_writer::write_state_nested_option)
25700         (write_state_option): ditto, renaming to...
25701         (state_writer::write_state_option)
25702         (write_state_options): ditto, renaming to...
25703         (state_writer::write_state_options)
25704         (write_state_lang_bitmap): ditto, renaming to...
25705         (state_writer::write_state_lang_bitmap)
25706         (write_state_version): ditto, renaming to...
25707         (state_writer::write_state_version)
25708         (write_state_scalar_type): ditto, renaming to...
25709         (state_writer::write_state_scalar_type)
25710         (write_state_string_type): ditto, renaming to...
25711         (state_writer::write_state_string_type)
25712         (write_state_undefined_type): ditto, renaming to...
25713         (state_writer::write_state_undefined_type)
25714         (write_state_struct_union_type): ditto, renaming to...
25715         (state_writer::write_state_struct_union_type)
25716         (write_state_struct_type): ditto, renaming to...
25717         (state_writer::write_state_struct_type)
25718         (write_state_user_struct_type): ditto, renaming to...
25719         (state_writer::write_state_user_struct_type)
25720         (write_state_lang_struct_type): ditto, renaming to...
25721         (state_writer::write_state_lang_struct_type)
25722         (write_state_param_struct_type): ditto, renaming to...
25723         (state_writer::write_state_param_struct_type)
25724         (write_state_pointer_type): ditto, renaming to...
25725         (state_writer::write_state_pointer_type)
25726         (write_state_array_type): ditto, renaming to...
25727         (state_writer::write_state_array_type)
25728         (write_state_gc_used): ditto, renaming to...
25729         (state_writer::write_state_gc_used)
25730         (write_state_common_type_content): ditto, renaming to...
25731         (state_writer::write_state_common_type_content)
25732         (write_state_type): ditto, renaming to...
25733         (state_writer::write_state_type)
25734         (write_state_pair_list): ditto, renaming to...
25735         (state_writer::write_state_pair_list)
25736         (write_state_pair): ditto, renaming to...
25737         (state_writer::write_state_pair)
25738         (write_state_typedefs): ditto, renaming to...
25739         (state_writer::write_state_typedefs)
25740         (write_state_structures): ditto, renaming to...
25741         (state_writer::write_state_structures)
25742         (write_state_param_structs): ditto, renaming to...
25743         (state_writer::write_state_param_structs)
25744         (write_state_variables): ditto, renaming to...
25745         (state_writer::write_state_variables)
25746         (write_state_srcdir): ditto, renaming to...
25747         (state_writer::write_state_srcdir)
25748         (write_state_files_list): ditto, renaming to...
25749         (state_writer::write_state_files_list)
25750         (write_state_languages): ditto, renaming to...
25751         (state_writer::write_state_languages)
25752         (write_state): create a state_writer instance and use it when
25753         writing out the state file
25755 2013-05-17  Mike Stump  <mikestump@comcast.net>
25757         PR rtl-optimization/57304
25758         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
25759         accessing DF_REF_REAL_LOC.
25761 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
25763         PR rtl-optimization/57281
25764         PR rtl-optimization/57300
25765         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
25766         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
25767         what the other splitter did if the registers are dead.
25769 2013-05-17  Richard Biener  <rguenther@suse.de>
25771         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
25772         MEM_REF offsets.
25774 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
25776         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
25777         linking.
25779 2013-05-17  Marek Polacek  <polacek@redhat.com>
25781         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
25782         length when doing non-zero store of storing '\0' to '\0'.
25784 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
25786         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
25787         vect_external_def oprnd1 with loop_vinfo, try to emit
25788         optional cast, negation and and stmts on the loop preheader
25789         edge instead of into the pattern def seq.
25791         PR tree-optimization/57051
25792         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
25793         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
25795 2013-05-16  Nick Clifton  <nickc@redhat.com>
25797         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
25798         (rl78_is_naked_func): New function.
25799         (rl78_expand_prologue): Skip prologue generation for naked functions.
25800         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
25801         * doc/extend.texi (naked): Add RL78 to the list of processors
25802         that supports this attribute.
25804 2013-05-16  Jeff Law  <law@redhat.com>
25806         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
25808 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
25810         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
25811         cache parameters using detect_caches_amd also for CYRIX,
25812         NSC and TM2 signatures.
25814 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
25815             Dzianis Kahanovich  <mahatma@eu.by>
25817         PR target/45359
25818         PR target/46396
25819         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25820         VIA/Centaur processors and determine their cache parameters
25821         using detect_caches_amd.
25823 2013-05-16  Teresa Johnson  <tejohnson@google.com>
25825         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
25826         (rtl_verify_edges): New function.
25827         (rtl_verify_bb_insns): Ditto.
25828         (rtl_verify_bb_pointers): Ditto.
25829         (rtl_verify_bb_insn_chain): Ditto.
25830         (rtl_verify_fallthru): Ditto.
25831         (rtl_verify_bb_layout): Ditto.
25832         (rtl_verify_flow_info_1): Outline checks into new functions.
25833         (rtl_verify_flow_info): Ditto.
25835 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
25837         * cfghooks.c (copy_bbs): Add update_dominance argument.
25838         * cfghooks.h (copy_bbs): Update prototype.
25839         * tree-cfg.c (gimple_duplicate_sese_region):
25840         Add update_dominance argument.
25841         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
25842         * tree-ssa-loop-ch.c (copy_loop_headers): Update
25843         gimple_duplicate_sese_region call.
25844         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
25845         Update copy_bbs call.
25846         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
25847         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
25849 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
25851         * tree-vectorizer.h (NUM_PATTERNS): Increment.
25852         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
25853         vect_recog_rotate_pattern.
25854         (vect_recog_rotate_pattern): New function.
25856 2013-05-16  Jason Merrill  <jason@redhat.com>
25858         * Makefile.in (LLINKER): New variable.
25859         (mostlyclean): Remove link mutex.
25860         * configure.ac: Handle --enable-link-mutex.
25861         * lock-and-run.sh: New script.
25863 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25865         PR target/19599
25866         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
25867         for NULL decl.
25869 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25871         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
25873 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
25875         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
25876         * config/arm/arm.c (next_consecutive_mem): New function.
25877         (gen_movmem_ldrd_strd): Likewise.
25878         * config/arm/arm.md (movmemqi): Update condition and code.
25879         (unaligned_loaddi, unaligned_storedi): New patterns.
25881 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25883         * config.gcc: Obsolete *-*-solaris2.9*.
25884         * doc/install.texi (Specific, *-*-solaris2*): Document it.
25886 2013-05-16  Richard Biener  <rguenther@suse.de>
25888         * passes.c (init_optimization_passes): Move pass_parallelize_loops
25889         earlier, after GRAPHITE transforms and IV canonicalization.
25891 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
25893         * omp-low.c (extract_omp_for_data): For collapsed loops,
25894         if at least one of the loops is known at compile time to
25895         iterate zero times, set count to 0.
25896         (expand_omp_regimplify_p): New function.
25897         (expand_omp_for_generic): For collapsed loops, if at least
25898         one of the loops isn't known to iterate at least once,
25899         add runtime check with setting count to 0.
25900         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
25901         For unsigned types if it isn't known at compile time that
25902         the loop will iterate at least once, add runtime check to bypass
25903         the whole loop if initial condition isn't true.
25905 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
25907         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
25909 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
25911         PR middle-end/57286
25912         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
25913         transformations to avoid an infinite loop.
25915 2013-05-16  Marek Polacek  <polacek@redhat.com>
25917         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
25919 2013-05-15  Leif Ekblad  <leif@rdos.net>
25921         * config/i386/i386.c (ix86_decompose_address): Use
25922         DEFAULT_TLS_SEG_REG to access TLS segment register.
25923         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
25924         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
25925         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
25927 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
25929         PR target/57260
25930         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
25931         sibling calls to functions that would normally be lazily bound,
25932         unless $gp is call-clobbered.
25934 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
25936         * config/i386/i386.c (ix86_option_override_internal): Update
25937         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
25938         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
25939         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
25940         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
25941         of TARGET_3DNOW.
25942         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
25944 2013-05-15  Andreas Schwab  <schwab@suse.de>
25946         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
25947         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
25948         third operand.
25950 2013-05-15  Teresa Johnson  <tejohnson@google.com>
25952         * loop-unroll.c (report_unroll_peel): Check decision before
25953         emitting unroll/peel message.
25955 2013-05-15  Teresa Johnson  <tejohnson@google.com>
25957         * function.h (has_bb_partition): New rtl_data flag.
25958         (bb_reorder_complete): Ditto.
25959         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
25960         instead of flag_reorder_blocks_and_partition.
25961         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
25962         with some enhancements.
25963         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
25964         * bb-reorder.c (connect_traces): Check for has_bb_partition
25965         instead of flag_reorder_blocks_and_partition.
25966         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
25967         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
25968         verify_hot_cold_block_grouping.
25969         (partition_hot_cold_basic_blocks): Set has_bb_partition.
25971 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25973         PR target/19599
25974         * config/arm/predicates.md (call_insn_operand): New predicate.
25975         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
25976         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
25977         if insn is not a tail call.
25978         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
25979         registers.
25980         * config/arm/arm.h (enum reg_class): New caller save register class.
25981         (REG_CLASS_NAMES): Likewise.
25982         (REG_CLASS_CONTENTS): Likewise.
25983         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
25984         without decls.
25986 2013-05-15  Richard Biener  <rguenther@suse.de>
25988         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
25989         of MSG_OPTIMIZED_LOCATIONS.
25990         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
25991         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
25992         message.
25993         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
25994         of MSG_OPTIMIZED_LOCATIONS.
25995         (execute_vect_slp): Likewise.
25996         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
25997         (vect_create_cond_for_alias_checks): Likewise.
25998         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
25999         (vect_recog_widen_mult_pattern): Likewise.
26000         (vect_recog_widen_sum_pattern): Likewise.
26001         (vect_recog_over_widening_pattern): Likewise.
26002         (vect_recog_widen_shift_pattern): Likewise.
26003         (vect_recog_vector_vector_shift_pattern): Likewise.
26004         (vect_recog_divmod_pattern): Likewise.
26005         (vect_recog_mixed_size_cond_pattern): Likewise.
26006         (vect_recog_bool_pattern): Likewise.
26007         (vect_pattern_recog_1): Likewise.
26009 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26011         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
26012         non-functions to builtin_unreachable.
26013         * ipa-inline-transform.c (inline_call): Do not assert estimates were
26014         correct when new direct edges were discovered.
26016 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26018         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
26019         header, print symbol order instead of node uid, print more information
26020         about indirect edge targets.
26021         (ipa_make_edge_direct_to_target): Print symbol order instead of node
26022         uids.
26023         (ipa_make_edge_direct_to_target): Likewise.
26024         (remove_described_reference): Likewise.
26025         (propagate_controlled_uses): Likewise.
26026         (ipa_print_node_params): Also print symbol order.
26027         (ipcp_transform_function): Print symbol order instead of node uids.
26028         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
26029         (cgraph_get_create_real_symbol_node): Likewise.
26030         * ipa-cp.c (print_lattice): Likewise.
26031         (print_all_lattices): Likewise.
26032         (determine_versionability): Likewise.
26033         (initialize_node_lattices): Likewise.
26034         (estimate_local_effects): Likewise.
26035         (update_profiling_info): Likewise.
26036         (create_specialized_node): Likewise.
26037         (perhaps_add_new_callers): Likewise.
26038         (decide_about_value): Likewise.
26039         (decide_whether_version_node): Likewise.
26040         (identify_dead_nodes): Likewise.
26041         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
26042         (dump_inline_summary): Likewise.
26043         (estimate_node_size_and_time): Likewise.
26044         (inline_analyze_function): Likewise.
26045         * ipa-inline.c (report_inline_failed_reason): Likewise.
26046         (want_early_inline_function_p): Likewise.
26047         (edge_badness): Likewise.
26048         (update_edge_key): Likewise.
26049         (inline_small_functions): Likewise.  Add dumping of order to two other
26050         dumps.
26051         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
26052         instead of node uids.
26053         (propagate_pure_const): Likewise.
26054         (propagate_pure_const): Likewise.
26055         * ipa-utils.c (dump_cgraph_node_set): Likewise.
26056         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
26057         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
26058         of node uids.
26059         * tree-pretty-print.c (dump_function_header): Likewise.
26060         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
26061         Print symbol order instead of node uids.
26063 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26065         * config/s390/s390.c (s390_register_move_cost): Don't impose the
26066         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
26068 2013-05-15  Richard Biener  <rguenther@suse.de>
26070         PR tree-optimization/57275
26071         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
26072         return value for fail to do runtime alias checks for gather loads.
26074 2013-05-15  Jan Hubicka  <jh@suse.cz>
26076         PR lto/57038
26077         PR lto/47375
26078         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
26079         weakrefs are not external.
26080         (lto_symtab_merge_decls): Fix thinko when dealing with
26081         non-lto_symtab decls.
26082         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
26083         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
26084         * varpool.c (dump_varpool_node): Dump more flags.
26086 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26088         * config/i386/i386.c (processor_alias_table): Add instruction
26089         FSGSBASE for AMD bdver3 architecture.
26091 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26093         * tree.c (warn_deprecated_use): Print file:line using locus color.
26094         * diagnostic.c (diagnostic_report_current_module): Print file:line
26095         and file:line:column using locus color.
26097 2013-05-14  Mike Stump  <mikestump@comcast.net>
26099         * gdbinit.in: Add __null.
26101 2013-05-14  Mike Stump  <mikestump@comcast.net>
26103         * recog.h: Rename struct recog_data to Recog_data.
26104         * recog.c: Likewise.
26105         * reload.c (can_reload_into): Likewise.
26106         * config/picochip/picochip.c: Likewise.
26108 2013-05-14  Mike Stump  <mikestump@comcast.net>
26110         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
26112 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
26114         * resource.h (struct resources): Remove unch_memory member.
26115         (CLEAR_RESOURCE): Don't clear unch_memory.
26116         * resource.c (mark_referenced_resources): Don't set it.
26117         (mark_set_resources): Likewise.
26118         (mark_target_live_regs): Don't clear it.
26119         (init_resource_info): Likewise.
26120         * reorg.c (resource_conflicts_p): Don't compare it.
26121         (redundant_insn): Don't set it.
26123         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
26124         Remove prototypes.
26125         * emit-rtl.c (next_label): Remove unused function.
26126         (skip_consecutive_labels, link_cc0_insns): Move to ...
26127         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
26128         only place where these functions are used, and make them static.
26130 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
26132         * fold-const.c (fold_negate_expr): Handle vectors.
26133         (fold_truth_not_expr): Make it static.
26134         (fold_invert_truthvalue): New static function.
26135         (invert_truthvalue_loc): Handle vectors. Do not call
26136         fold_truth_not_expr directly.
26137         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
26138         <TRUTH_NOT_EXPR>: Do not cast to boolean.
26139         (fold_comparison): Handle vector constants.
26140         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
26141         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
26142         * tree.h (fold_truth_not_expr): Remove declaration.
26144 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
26146         * config/aarch64/aarch64-simd.md
26147         (aarch64_vcond_internal<mode>): Rename to...
26148         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
26149         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
26150         float modes. Clarify all iterator modes.
26151         (vcond<mode><mode>): Use new name for vcond expanders.
26152         (vcond<v_cmp_result><mode>): Likewise.
26153         (vcondu<mode><mode>: Likewise.
26154         * config/aarch64/iterators.md (VDQF_COND): New.
26156 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
26158         PR bootstrap/57266
26159         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
26160         variable for the shift amount. Check that we shift by non-negative
26161         amounts.
26163 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
26165         PR target/42017
26166         * config/arm/arm.h (EPILOGUE_USES): Only return true
26167         for LR_REGNUM after epilogue_completed.
26169 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
26171         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
26172         is error_mark_node.
26174 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26176         PR target/57261
26177         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
26178         and Solaris 11+/x86 with gld.
26179         * configure: Regenerate.
26181 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26183         * expmed.c (expand_shift_1): Canonicalize rotates by
26184         constant bitsize / 2 to bitsize - 1.
26185         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
26186         case ROTATERT>: Likewise.
26188         Revert:
26189         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
26191         * config/i386/i386.md (rotateinv): New code attr.
26192         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26193         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26194         roll $31, %eax, etc.
26196 2013-05-14  Richard Biener  <rguenther@suse.de>
26198         PR middle-end/57235
26199         * tree-eh.c (sink_clobbers): Give up for successors with
26200         multiple predecessors and no virtual uses.
26202 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
26204         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
26205         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
26207 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26209         PR middle-end/57251
26210         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
26211         the case when both op0 and op1 have VOIDmode.
26213 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
26215         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
26216         in multiply-accumulate mode.
26218 2013-05-13  Guozhi Wei  <carrot@google.com>
26220         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
26222 2013-05-13  Kai Tietz  <ktietz@redhat.com>
26224         PR target/56975
26225         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
26226         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
26227         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
26228         * config/i386/i386.c (ix86_option_override_internal): Likewise.
26229         (ix86_expand_prologue): Likewise.
26230         (ix86_expand_split_stack_prologue): Likewise.
26231         (legitimate_pic_address_disp_p): Likewise.
26232         (legitimize_pic_address): Likewise.
26233         (legitimize_tls_address): Likewise.
26234         (legitimize_pe_coff_symbol): Likewise.
26235         (output_pic_addr_const): Likewise.
26236         (construct_plt_address): Likewise.
26237         (ix86_expand_call): Likewise.
26238         (x86_output_mi_thunk): Likewise.
26239         (x86_function_profiler): Likewise.
26241 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
26243         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
26244         similar switch cases.
26245         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
26246         (aarch64_simd_mov_to_<mode>low): Delete.
26247         (aarch64_simd_mov_to_<mode>high): Delete.
26248         (move_lo_quad_<mode>): Add w<-r alternative.
26249         (aarch64_simd_move_hi_quad_<mode>): Likewise.
26250         (aarch64_simd_mov_from_*): Update type attribute.
26251         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
26252         statement.
26254 2013-05-13  Jan Hubicka  <jh@suse.cz>
26256         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
26257         * config/i386/i386.c (ix86_compute_frame_layout,
26258         ix86_expand_epilogue, emit_i387_cw_initialization,
26259         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
26260         ix86_local_alignment): Fix use of size/speed predicates.
26262 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
26264         PR tree-optimization/45216
26265         PR tree-optimization/57157
26266         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
26267         the (-Y) & (B - 1) variant if OP is |.
26268         * expmed.c (expand_shift_1): For rotations by const0_rtx just
26269         return shifted.  Use (-op1) & (prec - 1) as other_amount
26270         instead of prec - op1.
26272 2013-05-13  Martin Jambor  <mjambor@suse.cz>
26274         PR middle-end/42371
26275         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
26276         (ipa_constant_data): New type.
26277         (ipa_jump_func): Use ipa_constant_data to hold information about
26278         constant jump functions.
26279         (ipa_get_jf_constant): Adjust to jump function type changes.
26280         (ipa_get_jf_constant_rdesc): New function.
26281         (ipa_param_descriptor): New field controlled_uses.
26282         (ipa_get_controlled_uses): New function.
26283         (ipa_set_controlled_uses): Likewise.
26284         * ipa-ref.h (ipa_find_reference): Declare.
26285         * ipa-prop.c (ipa_cst_ref_desc): New type.
26286         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
26287         changes.
26288         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
26289         New parameter cs.  Adjust all callers.
26290         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
26291         (remove_described_reference): New function.
26292         (jfunc_rdesc_usable): Likewise.
26293         (try_make_edge_direct_simple_call): Decrement controlled use count,
26294         attempt to remove reference if it hits zero.
26295         (combine_controlled_uses_counters): New function.
26296         (propagate_controlled_uses): Likewise.
26297         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
26298         (ipa_edge_duplication_hook): Duplicate reference descriptions.
26299         (ipa_print_node_params): Print described use counter.
26300         (ipa_write_jump_function): Adjust to jump function type changes.
26301         (ipa_read_jump_function): New parameter CS, pass it to
26302         ipa_set_jf_constant.  Adjust caller.
26303         (ipa_write_node_info): Stream controlled use count
26304         (ipa_read_node_info): Likewise.
26305         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
26306         asserting.
26307         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
26308         count.  Remove cloning-added reference if it reaches zero.
26309         * ipa-ref.c (ipa_find_reference): New function.
26311 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26313         * config/i386/i386.c (processor_target_table): Modified default
26314         alignment values for AMD BD and BT architectures.
26316 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
26318         * tree-vect-generic.c (uniform_vector_p): Move ...
26319         * tree.c (uniform_vector_p): ... here.
26320         * tree.h (uniform_vector_p): Declare it.
26321         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
26322         into a scalar.
26324 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
26326         PR tree-optimization/57230
26327         * tree-ssa-strlen.c (handle_char_store): Record length for
26328         array store from STRING_CST.
26330         PR tree-optimization/57230
26331         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
26332         check.
26334 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
26336         * config/epiphany/epiphany.c (epiphany_init): Check size of
26337         NUM_MODES_FOR_MODE_SWITCHING.
26338         (epiphany_expand_prologue):
26339         Remove CONFIG_REGNUM initial value handling code.
26340         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
26341         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
26342         (emit_set_fp_mode, epiphany_mode_after): Likewise.
26343         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
26344         Don't return 1 for FP_MODE_NONE.
26345         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
26346         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
26347         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
26348         * config/epiphany/epiphany.md (save_config): New pattern.
26350 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
26352         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
26354 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
26356         * config/i386/i386.md (memory): Handle sseishft1.
26357         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
26358         (*vec_extractv2di_1): Ditto.
26360 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
26362         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
26363         saved registers.
26365 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26367         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
26368         Add mthumb/march=armv7-a multilib.
26369         Add mthumb/march=armv7-r multilib.
26370         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
26372 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
26374         * config/v850/t-rtems: Add more multilibs.
26376 2013-05-10  Richard Biener  <rguenther@suse.de>
26378         PR tree-optimization/57214
26379         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
26380         not propagate from SSA names that occur in abnormal PHI nodes.
26382 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
26384         * stor-layout.c (element_precision): New function.
26385         * machmode.h (element_precision): Declare it.
26386         * tree.c (build_minus_one_cst): New function.
26387         (element_precision): Likewise.
26388         * tree.h (build_minus_one_cst): Declare new function.
26389         (element_precision): Likewise.
26390         * fold-const.c (operand_equal_p): Use element_precision.
26391         (fold_binary_loc): Handle vector types.
26392         * convert.c (convert_to_integer): Use element_precision.
26393         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
26394         separately.
26396 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
26398         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
26399         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
26400         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
26401         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26402         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
26403         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
26404         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
26405         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26406         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
26407         (Uuw8): New constraints.
26408         (Usb4): Move into alphabetical order.
26409         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
26410         (sd8_operand, ub8_operand, uw8_operand): New predicates.
26411         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
26412         previously unnamed patterns.
26413         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
26414         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
26415         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
26416         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
26417         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
26418         of specific lengths.
26420 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
26422         * config/i386/i386.md (rotateinv): New code attr.
26423         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26424         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26425         roll $31, %eax, etc.
26427         PR tree-optimization/45216
26428         PR tree-optimization/57157
26429         * tree-ssa-forwprop.c (simplify_rotate): New function.
26430         (ssa_forward_propagate_and_combine): Call it.
26432 2013-05-10  Richard Biener  <rguenther@suse.de>
26434         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
26435         disable peeling when we version for aliasing.
26436         (vector_alignment_reachable_p): Honor explicit user alignment.
26437         (vect_supportable_dr_alignment): Likewise.
26438         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
26439         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
26440         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
26441         then peeling to arrange for the cost-model check to come first.
26443 2013-05-10  Alan Modra  <amodra@gmail.com>
26445         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
26446         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
26447         * configure: Regenerate.
26449 2013-05-10  Alan Modra  <amodra@gmail.com>
26451         PR target/55033
26452         * varasm.c (default_elf_select_section): Move !DECL_P check..
26453         (get_named_section): ..to here before calling get_section_name.
26454         Adjust assertion.
26455         (default_section_type_flags): Add DECL_P check.
26456         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
26457         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
26459 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
26461         * config/epiphany/epiphany.c (epiphany_expand_prologue):
26462         When using gen_stack_adjust_str with a register offset, add a
26463         REG_FRAME_RELATED_EXPR note.
26465 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
26467         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
26468         (*vec_extractv4si_zext_mem): Ditto.
26469         (*vec_extractv2di): Add 0->x and x->x alternatives.
26470         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
26471         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
26473 2013-05-09  Jason Merrill  <jason@redhat.com>
26475         N3639 C++1y VLA support
26476         * gimplify.c (gimplify_vla_decl): Don't touch an existing
26477         DECL_VALUE_EXPR.
26479         * tree.c (build_constructor_va): New.
26480         * tree.h: Declare it.
26482 2013-05-09  Martin Jambor  <mjambor@suse.cz>
26484         PR lto/57084
26485         * gimple-fold.c (canonicalize_constructor_val): Call
26486         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
26488 2013-05-09  Jan Hubicka  <jh@suse.cz>
26489             Richard Biener  <rguenther@suse.de>
26491         PR lto/54095
26492         * symtab.c (symtab_make_decl_local): Do not add private names.
26494 2013-05-09  Jan Hubicka  <jh@suse.cz>
26496         PR lto/54095
26497         * symtab.c (insert_to_assembler_name_hash): Handle clones.
26498         (unlink_from_assembler_name_hash): Likewise.
26499         (symtab_prevail_in_asm_name_hash, symtab_register_node,
26500         symtab_unregister_node, symtab_initialize_asm_name_hash,
26501         change_decl_assembler_name): Update.
26503 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
26505         * config/aarch64/aarch64.md: New movtf split.
26506         (*movtf_aarch64): Update.
26507         (aarch64_movdi_tilow): Handle TF modes and rename to
26508         aarch64_movdi_<mode>low.
26509         (aarch64_movdi_tihigh): Handle TF modes and rename to
26510         aarch64_movdi_<mode>high
26511         (aarch64_movtihigh_di): Handle TF modes and rename to
26512         aarch64_mov<mode>high_di
26513         (aarch64_movtilow_di): Handle TF modes and rename to
26514         aarch64_mov<mode>low_di
26515         (aarch64_movtilow_tilow): Remove spurious whitespace.
26516         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
26517         splits.
26518         (aarch64_print_operand): Update.
26520 2013-05-09  Alan Modra  <amodra@gmail.com>
26522         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
26523         powerpc64le.
26524         * configure: Regenerate.
26526 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
26528         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
26529         splitter preparation statements.
26530         * config/i386/sse.md (*vec_extract* splitters): Ditto.
26531         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
26532         adjust_address_nv.
26534 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26536         * gimple-ssa-strength-reduction.c (count_candidates): Change
26537         return value to int.
26538         (analyze_candidates_and_replace): Change type of length to int.
26540 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
26542         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
26543         (*vec_extract<mode>): Use VI12_128 mode iterator.
26544         (*vec_extract<mode>_mem): Ditto.
26545         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
26546         attribute.
26548 2013-05-08  Diego Novillo  <dnovillo@google.com>
26550         PR bootstrap/54659
26552         Revert:
26553         2012-08-17  Diego Novillo  <dnovillo@google.com>
26555         PR bootstrap/54281
26556         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
26557         * config.in: Regenerate.
26558         * configure: Regenerate.
26559         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
26561 2013-05-08  Jan Hubicka  <jh@suse.cz>
26563         PR lto/54095
26564         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
26565         * cgraph.h (symtab_node_base): Add unique_name.
26566         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
26567         input_overwrite_node, input_varpool_node): Stream unique_name.
26568         * cgraphclones.c (cgraph_create_virtual_clone,
26569         cgraph_function_versioning): Set unique_name.
26570         * ipa.c (function_and_variable_visibility): Set unique_name.
26572 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26574         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
26575         (alloc_cand_and_find_basis): Restrict conditional candidate
26576         processing to CAND_MULTs.
26578 2013-05-08  Jan Hubicka  <jh@suse.cz>
26580         PR lto/54095
26581         lto-symtab.c (lto_symtab_symbol_p): New function.
26582         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
26583         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
26584         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
26585         Skip static symbols.
26587 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
26589         PR tree-optimization/57200
26590         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
26591         Only call inform if the preceding warning_at returns true.
26593 2013-05-07  Han Shen  <shenhan@google.com>
26595         * cfgexpand.c (record_or_union_type_has_array_p): New function.
26596         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
26597         * common.opt (fstack-protector-strong): New option.
26598         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
26599         * doc/invoke.texi (Optimization Options): Document
26600         "-fstack-protector-strong".
26601         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
26603 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
26605         * config/mips/mips.c (mips_machine_reorg2): Return 0.
26607 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
26609         * ira.c (update_equiv_regs): Add insn having equiv memory even if
26610         it is not lhs of the insn.
26611         (setup_reg_equiv): Remove insn having equiv memory which it is not
26612         lhs of the insn.
26613         * lra-constraints.c (process_address): Try to improve generation
26614         code for address base + disp.
26615         (lra_constraints): Make correct the code for checking insn setting
26616         up backward equivalence.  Remove insn only if it is in the init
26617         insn list.
26618         * lra-eliminations.c (update_reg_eliminate): Change return value.
26619         (lra_eliminate): Use the result.
26621 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
26623         * config/i386/sse.md (ssescalarnummask): New mode attribute.
26624         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
26625         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
26626         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
26627         register target operands.
26628         (*vec_extractv8hi_sse2): New pattern.
26629         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
26630         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
26631         (*vec_extract<mode>_mem): New insn and split pattern.
26633 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
26635         * config/arm/arm.c (arm_asan_shadow_offset): New function.
26636         (TARGET_ASAN_SHADOW_OFFSET): Define.
26637         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
26638         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
26640 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26642         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
26643         (incr_vec_index): Return -1 if increment not found.
26644         (create_add_on_incoming_edge): Assert if increment not found.
26645         (record_increment): Limit number of increments recorded.
26646         (all_phi_incrs_profitable): Return false if an increment not found.
26647         (replace_profitable_candidates): Don't process increments that were
26648         not recorded.
26649         (analyze_candidates_and_replace): Limit size of incr_vec.
26651 2013-05-07  Richard Biener  <rguenther@suse.de>
26653         * calls.c (special_function_p): setjmp-like functions are leaf.
26654         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
26655         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
26657 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
26659         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
26660         (aarch64_simd_mov<mode>): New expander.
26661         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
26662         (aarch64_simd_mov_to_<mode>high): Likewise.
26663         (aarch64_simd_mov_from_<mode>low): Likewise.
26664         (aarch64_simd_mov_from_<mode>high): Likewise.
26665         (aarch64_dup_lane<mode>): Update.
26666         (aarch64_dup_lanedi): New instruction pattern.
26667         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
26668         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
26670 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26672         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
26673         (replace_mult_candidate): Remove unnecessary argument; remove
26674         unnecessary parameter from call to introduce_cast_before_cand.
26675         (replace_unconditional_candidate): Remove unnecessary parameter
26676         from call to replace_mult_candidate.
26677         (replace_conditional_candidate): Likewise.
26678         (insert_initializers): Use make_temp_ssa_name.
26679         (introduce_cast_before_cand): Remove unnecessary argument; use
26680         make_temp_ssa_name.
26681         (replace_one_candidate): Remove unnecessary argument; remove
26682         unnecessary parameter from calls to introduce_cast_before_cand.
26683         (replace_profitable_candidates): Remove unnecessary parameters
26684         from calls to replace_one_candidate.
26686 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26688         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
26689         phi def as possibly hiding a basis for a CAND_ADD whose operands
26690         have been commuted in the analysis.
26691         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
26693 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
26695         * config/aarch64/aarch64.md
26696         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
26697         shift value between 0-4.
26699 2013-05-07  Richard Biener  <rguenther@suse.de>
26701         * double-int.h (rshift): New overload.
26702         * double-int.c (rshift): New function.
26703         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
26704         (create_reference_ops_from_ref): Remove.
26705         (vn_reference_insert): Use shared ops for constructing the
26706         reference and copy it.
26708 2013-05-07  Richard Biener  <rguenther@suse.de>
26710         PR middle-end/57190
26711         * tree-eh.c (sink_clobbers): Properly propagate
26712         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
26714 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
26716         PR tree-optimization/57149
26717         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
26718         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
26719         collect_phi_def_edges, execute_late_warn_uninitialized): Use
26720         uninit_undefined_value_p instead of ssa_undefined_value_p.
26722         PR debug/57184
26723         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
26724         for modifier == EXPAND_INITIALIZER.
26726 2013-05-07  Anton Blanchard  <anton@samba.org>
26728         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
26729         for powerpc64 little endian.
26730         * configure: Regenerate.
26732 2013-05-06  Graham Stott  <grahams@btinternet.com>
26734         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
26735         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
26736         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
26737         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
26739 2013-05-06  Graham Stott  <grahams@btinternet.com>
26741         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
26742         codes which allow non-lvalues.
26744 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
26746         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
26747         components are all 1s.
26748         (integer_minus_onep): New function.
26749         * tree.h (integer_minus_onep): Declare it.
26750         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
26751         integer_minus_onep instead of integer_all_onesp.
26753 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
26755         PR target/52933
26756         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
26757         variations of these patterns.
26759 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
26761         * config/i386/i386.md (isa): Add x64_sse4 member.
26762         (enabled): Handle x64_sse4.
26763         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
26764         instruction for 64bit SSE4_1 targets.  Update insn attributes.
26765         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
26766         instruction for SSE4_1 targets.  Update insn attributes.
26767         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
26768         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
26769         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
26770         const_1 selector.
26771         (*vec_extractv4si): Rename from *sse4_1_pextrd.
26772         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
26773         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
26775 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
26777         PR target/57108
26778         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
26780 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
26782         * final.c (do_assembler_dialects): Don't handle curly braces and
26783         vertical bar escaped by % as dialect delimiters.
26784         (output_asm_insn): Print curly braces and vertical bar if escaped
26785         by % and ASSEMBLER_DIALECT defined.
26786         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
26787         * doc/tm.texi: Regenerated.
26789 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
26791         * config/mips/mips.c: Include tree-pass.h.
26792         (mips_reorg): Split in pre- and post-dbr_schedule parts.
26793         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
26794         (pass_mips_machine_reorg2): New machine specific pass.
26795         (insert_pass_mips_machine_reorg2): New pass plugin definition.
26796         (mips_option_override): Register the new pass.
26797         * rtl.h (cleanup_barriers): Remove prototype.
26798         (dbr_schedule): Likewise.
26799         * jump.c (cleanup_barriers): Make static.
26800         * reorg.c (dbr_schedule): Likewise.
26802 2013-05-06  Richard Biener  <rguenther@suse.de>
26804         PR tree-optimization/57185
26805         * tree-parloops.c (add_field_for_reduction): Handle anonymous
26806         SSA names properly.
26808 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
26810         PR target/57106
26811         * config/i386/i386.c (add_parameter_dependencies): Add dependence
26812         between "first_arg" and "insn", not "last" and "insn".
26814 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26816         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
26817         (find_candidates_in_block): Re-enable slsr_process_phi.
26818         (create_phi_basis): Fix double counting of candidate adjustment.
26820 2013-05-06  Richard Biener  <rguenther@suse.de>
26822         PR middle-end/57147
26823         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
26824         the edge is also fallthru, preserve it and just clear the
26825         abnormal flag.
26826         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
26827         also complex, preserve that and just clear the fallthru flag.
26828         * tree-inline.c (update_ssa_across_abnormal_edges): Also
26829         update virtual operands.
26831 2013-05-06  Alan Modra  <amodra@gmail.com>
26833         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
26834         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
26835         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
26836         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
26837         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
26838         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
26840 2013-05-06  Alan Modra  <amodra@gmail.com>
26842         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
26843         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
26844         (DEFAULT_ASM_ENDIAN): Define.
26845         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
26846         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
26847         Update -K PIC clause from sysv4.h.
26848         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
26849         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
26851 2013-05-06  Alan Modra  <amodra@gmail.com>
26853         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
26854         twice for little-endian.
26855         (ashrdi3_no_power, ashrdi3): Support little-endian.
26857 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
26859         PR target/55303
26860         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
26861         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
26862         related expanders.
26863         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
26864         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
26865         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
26866         New predicates.
26868 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
26869             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26871         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
26872         * config/pa/pa.opt: Make mbig-switch a no-op.
26873         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
26874         (CASE_VECTOR_MODE): Always return SImode.
26875         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
26876         for the !TARGET_BIG_SWITCH case.
26877         * config/pa/pa-linux.h: Likewise.
26878         * config/pa/pa-openbsd.h: Likewise.
26879         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
26880         * config/pa/pa.md (short_jump): Remove define_insn.
26881         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
26882         (casesi0): Remove define_insn.
26883         (type): Remove btable_branch.
26884         (pa_combine_type): Likewise.
26885         (in_nullified_branch_delay): Likewise.
26886         (in_call_delay): Likewise.
26887         (define_delay): Likewise.
26888         (define_insn_reservation "Z3"): Likewise.
26889         (define_insn_reservation "Z4"): Likewise.
26890         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
26891         (pa_adjust_insn_length): Remove adjustment for btable branches.
26892         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
26893         and mno-big-switch
26895 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
26897         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
26898         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
26899         Add m->r,x alternatives.
26900         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
26901         splitters using SWI48x mode iterator.
26902         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
26903         TARGET_64BIT.  Add m->x alternative.
26904         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
26905         Add o->x alternative.  Enable for TARGET_SSE.
26906         (sse_storeq): Remove expander.
26907         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
26908         with memory input operand.
26909         (*vec_extractv2di_1 splitter): New.
26910         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
26911         * config/i386/i386.md (ssevecmodelower): New mode attribute.
26913 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
26915         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
26916         (INT_LOWPART): Delete.
26917         (extract_MB): Adjust.
26918         (extract_ME): Adjust.
26919         (print_operand): Adjust.
26921 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
26923         * config/rs6000/predicates.md (reg_or_add_cint_operand,
26924         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
26925         (reg_or_logical_cint_operand, easy_fp_constant,
26926         logical_const_operand): Delete "CONST_DOUBLE" case.
26927         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
26928         "HOST_BITS_PER_WIDE_INT == 64" test.
26929         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
26930         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
26931         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
26932         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
26933         test.
26934         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
26935         CONST_DOUBLE DImode/VOIDmode case.
26936         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
26937         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
26938         CONST_DOUBLE VOIDmode case.
26939         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
26940         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
26941         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
26942         Delete CONST_DOUBLE case.
26943         (splitters for mov FMOVE64 const_double): Delete
26944         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
26945         "HOST_BITS_PER_WIDE_INT >= 64" test.
26946         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
26947         case.
26948         (mov DI const_double): Delete.
26950 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
26952         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
26953         on op shows all bits zero in mode of a lowpart subreg, return zero.
26955 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
26957         PR target/57150
26958         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
26959         to save TFmode registers and DImode to save TImode registers for
26960         caller save operations.
26961         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
26962         mark being partially clobbered since they only use the first
26963         double word.
26965         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
26966         and TDmode only use the upper 64-bits of each VSX register.
26968 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26970         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
26971         (find_candidates_in_block): Disable slsr_process_phi.
26973 2013-05-03  Guozhi Wei  <carrot@google.com>
26975         * coverage.c (coverage_obj_init): Move the construction of gcov
26976         constructor to ...
26977         (build_init_ctor): ... here.
26979 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26981         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
26982         (slsr_cand_d): Redefine def_phi.
26983         (stride_status, phi_adjust_status, count_phis_status): New enums.
26984         (find_phi_def): New.
26985         (find_basis_for_base_expr): New.
26986         (find_basis_for_candidate): Handle hidden bases.
26987         (alloc_cand_and_find_basis): Handle phi candidates.
26988         (slsr_process_phi): New.
26989         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
26990         (create_mul_imm_cand): Likewise.
26991         (create_add_ssa_cand): Exclude phi base candidates.
26992         (create_add_imm_cand): Likewise.
26993         (slsr_process_cast): Likewise.
26994         (slsr_process_copy): Likewise.
26995         (find_candidates_in_block): Handle phi candidates.
26996         (dump_candidate): Likewise.
26997         (unconditional_cands): Delete.
26998         (unconditional_cands_with_known_stride_p): Delete.
26999         (phi_dependent_cand_p): New.
27000         (cand_increment): Handle phi-dependent candidates.
27001         (replace_dependent): Delete.
27002         (replace_mult_candidate): New.
27003         (replace_unconditional_candidate): New.
27004         (incr_vec_index): Move to avoid forward reference.
27005         (create_add_on_incoming_edge): New.
27006         (create_phi_basis): New.
27007         (replace_dependents): Delete.
27008         (replace_conditional_candidate): New.
27009         (phi_add_costs): New.
27010         (replace_uncond_cands_and_profitable_phis): New.
27011         (record_increment): Handle phi adjustments.
27012         (record_phi_increments): New.
27013         (record_increments): Handle phi adjustments.
27014         (phi_incr_cost): New.
27015         (lowest_cost_path): Handle phis.
27016         (total_savings): Likewise.
27017         (analyze_increments): Likewise.
27018         (ncd_with_phi): New.
27019         (ncd_of_cand_and_phis): New.
27020         (nearest_common_dominator_for_cands): Handle phi increments.
27021         (all_phi_incrs_profitable): New.
27022         (replace_profitable_candidates): Handle phi-dependent candidates.
27023         (analyze_candidates_and_replace): Likewise.
27025 2013-05-03  Teresa Johnson  <tejohnson@google.com>
27027         PR bootstrap/57154
27028         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
27029         do not exceed REG_BR_PROB_BASE.
27031 2013-05-03  Jeff Law  <law@redhat.com>
27033         PR tree-optimization/57144
27034         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
27035         operand of the condition will bit into the new type when eliminating
27036         a cast feeding a condition.
27038 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
27040         PR rtl-optimization/57130
27041         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
27042         of COMPARE as in_code to the recursive call if needed.
27044 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
27046         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
27047         (enabled): Handle new members.
27048         * config/i386/sse.md (*vec_concatv2si): Merge from
27049         *vec_concatv2si_sse2 and vec_concatv2si_sse.
27050         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
27052 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
27054         PR tree-optimization/57027
27055         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
27056         for fnms opportunity, check we got the prerequisite kind
27057         of tree / gimple before using accessor functions.
27059 2013-05-03  Richard Biener  <rguenther@suse.de>
27061         * double-int.h (lshift): New overload without precision
27062         and arith argument.
27063         (operator *=, operator +=, operator -=): Move ...
27064         * double-int.c (operator *=, operator +=, operator -=): ... here
27065         and implement more efficiently.
27066         (mul_double_with_sign): Remove.
27067         (lshift_double): Adjust to take unsinged shift argument, push
27068         dispatching code to callers.
27069         (mul_double_wide_with_sign): Add early out for callers that
27070         are not interested in high parts or overflow.
27071         (lshift): New function.
27072         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
27073         dispatch code here.
27074         (lrotate, rrotate): Use logical shifts.
27075         * expr.c (get_inner_reference): Use lshift.
27076         * fixed-value.c (do_fixed_divide): Likewise.
27077         * tree-dfa.c (get_ref_base_and_extent): Likewise.
27078         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27079         (indirect_refs_may_alias_p): Likewise.
27080         (stmt_kills_ref_p_1): Likewise.
27082 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
27084         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
27086 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
27088         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
27089         scalar form of FABD instruction.
27091 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
27093         * lra-constraints.c (process_alt_operands): Add checking alt
27094         number to choose the best alternative.
27096 2013-05-02  Richard Biener  <rguenther@suse.de>
27098         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
27099         bitmap and its handling.
27100         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
27102 2013-05-02  Richard Biener  <rguenther@suse.de>
27104         PR middle-end/57140
27105         * tree-inline.c (copy_loops): Properly handle removed loops.
27106         (copy_cfg_body): Mark destination loops for fixup if source
27107         loops needed fixup.
27109 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
27111         PR target/56732
27112         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
27113         generating simple_return for naked functions.
27115 2013-05-02  Martin Jambor  <mjambor@suse.cz>
27117         PR middle-end/56988
27118         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
27119         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
27120         flags match.
27121         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
27122         ipa_agg_replacement_value structures.
27123         (known_aggs_to_agg_replacement_list): Likewise.
27124         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
27125         (read_agg_replacement_chain): Likewise.
27126         (ipcp_transform_function): Also check that by_ref flags match.
27128 2013-05-02  Richard Biener  <rguenther@suse.de>
27130         * graphds.h (struct graph): Add obstack member.
27131         * graphds.c (new_graph): Initialize obstack and allocate
27132         vertices from it.
27133         (add_edge): Allocate edge from the obstack.
27134         (free_graph): Free the obstack instead of all edges and vertices.
27136 2013-05-02  Teresa Johnson  <tejohnson@google.com>
27138         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
27139         divides.
27140         * cfg.c (update_bb_profile_for_threading): Ditto.
27141         * tree-inline.c (copy_bb): Ditto.
27142         (copy_edges_for_bb): Ditto.
27143         (initialize_cfun): Ditto.
27144         (copy_cfg_body): Ditto.
27145         (expand_call_inline): Ditto.
27146         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
27147         (estimate_node_size_and_time): Ditto.
27148         (inline_merge_summary): Ditto.
27149         * cgraphclones.c (cgraph_clone_edge): Ditto.
27150         (cgraph_clone_node): Ditto.
27151         * sched-rgn.c (compute_dom_prob_ps): Ditto.
27152         (compute_trg_info): Ditto.
27154 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
27156         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
27157         S reg when fp attribute set.
27158         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
27160 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
27162         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
27163         New pattern.
27164         (*and_one_cmplsi3_compare0_uxtw): Likewise.
27165         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
27166         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
27168 2013-05-02  Richard Biener  <rguenther@suse.de>
27170         * tree-scalar-evolution.c (scev_info_hasher): Remove.
27171         (struct instantiate_cache_entry): New type.
27172         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
27173         (struct instantiate_cache_type): New type.
27174         (set_instantiated_value, get_instantiated_value): Remove.
27175         (get_instantiated_value_entry): New function.
27176         (instantiate_scev_name): Use the new cache and adjust.
27177         (instantiate_scev_poly): Adjust.
27178         (instantiate_scev_binary): Likewise.
27179         (instantiate_array_ref): Likewise.
27180         (instantiate_scev_convert): Likewise.
27181         (instantiate_scev_not): Likewise.
27182         (instantiate_scev_3): Likewise.
27183         (instantiate_scev_2): Likewise.
27184         (instantiate_scev_r): Likewise.
27185         (instantiate_scev): Likewise.
27186         (resolve_mixers): Likewise.
27188 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
27190         PR target/57091
27191         * lra-constraints.c (best_small_class_operands_num): Remove.
27192         (process_alt_operands): Remove small_class_operands_num.  Take
27193         small classes operands into losers and only if the operand is not
27194         matched.  Modify debugging output.
27195         (curr_insn_transform): Remove best_small_class_operands_num.
27196         Print insn name.
27198 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27200         * config/aarch64/aarch64-builtins.c
27201         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
27202         * config/aarch64/aarch64-simd-builtins.def
27203         (reduc_splus_): Add new modes.
27204         (reduc_uplus_): New.
27205         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
27206         (reduc_uplus_v4sf): Likewise.
27207         (reduc_splus_v4sf): Likewise.
27208         (aarch64_addv<mode>): Likewise.
27209         (reduc_uplus_<mode>): Likewise.
27210         (reduc_splus_<mode>): Likewise.
27211         (aarch64_addvv2di): Likewise.
27212         (reduc_uplus_v2di): Likewise.
27213         (reduc_splus_v2di): Likewise.
27214         (aarch64_addvv2si): Likewise.
27215         (reduc_uplus_v2si): Likewise.
27216         (reduc_splus_v2si): Likewise.
27217         (reduc_<sur>plus_<mode>): New.
27218         (reduc_<sur>plus_v2di): Likewise.
27219         (reduc_<sur>plus_v2si): Likewise.
27220         (reduc_<sur>plus_v4sf): Likewise.
27221         (aarch64_addpv4sf): Likewise.
27222         * config/aarch64/arm_neon.h
27223         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
27224         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
27225         add UNSPEC_SADDV, UNSPEC_UADDV.
27226         (SUADDV): New.
27227         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
27229 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27231         * config/aarch64/arm_neon.h
27232         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
27234 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27236         * config/aarch64/aarch64-builtins
27237         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
27239 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27241         * config/aarch64/aarch64-simd-builtins.def
27242         (reduc_smax_): New.
27243         (reduc_smin_): Likewise.
27244         (reduc_umax_): Likewise.
27245         (reduc_umin_): Likewise.
27246         (reduc_smax_nan_): Likewise.
27247         (reduc_smin_nan_): Likewise.
27248         (fmax): Remove.
27249         (fmin): Likewise.
27250         (smax): Update for V2SF, V4SF and V2DF modes.
27251         (smin): Likewise.
27252         (smax_nan): New.
27253         (smin_nan): Likewise.
27254         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
27255         (<su><maxmin><mode>3): ...This, refactor.
27256         (s<maxmin><mode>3): New.
27257         (<maxmin_uns><mode>3): Likewise.
27258         (reduc_<maxmin_uns>_<mode>): Refactor.
27259         (reduc_<maxmin_uns>_v4sf): Likewise.
27260         (reduc_<maxmin_uns>_v2si): Likewise.
27261         (aarch64_<fmaxmin><mode>: Remove.
27262         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
27263         new builtin names.
27264         (vmin<q>_f<32,64>): Likewise.
27265         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27266         (FMAXMIN): New.
27267         (su): Add mappings for smax, smin, umax, umin.
27268         (maxmin): New.
27269         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27270         (FMAXMIN): Rename as...
27271         (FMAXMIN_UNS): ...This.
27272         (maxminv): Remove.
27273         (fmaxminv): Likewise.
27274         (fmaxmin): Likewise.
27275         (maxmin_uns): New.
27276         (maxmin_uns_op): Likewise.
27278 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27280         * config/aarch64/arm_neon.h
27281         (vac<ge, gt><sd>_f<32, 64>): Rename to...
27282         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
27283         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
27285 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27287         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
27288         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
27290 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27292         * config/aarch64/aarch64-simd.md
27293         (vcond<mode>_internal): Handle special cases for constant masks.
27294         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
27295         (vcondu<mode><mode>): Likewise.
27296         (vcond<v_cmp_result><mode>): New.
27298 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27300         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
27301         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
27302         * config/aarch64/aarch64-simd-builtins.def
27303         (cmeq): Update to BUILTIN_VALLDI.
27304         (cmgt): Likewise.
27305         (cmge): Likewise.
27306         (cmle): Likewise.
27307         (cmlt): Likewise.
27308         * config/aarch64/arm_neon.h
27309         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
27310         to builtins or C as appropriate.
27312 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27314         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
27315         (cmgeu): ...This.
27316         (cmhi): Rename to...
27317         (cmgtu): ...This.
27318         * config/aarch64/aarch64-simd.md
27319         (simd_mode): Add SF.
27320         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
27321         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
27322         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
27323         (cstore<mode>_neg): ...This.
27324         * config/aarch64/iterators.md
27325         (VALLF): new.
27326         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
27327         (COMPARISONS): New.
27328         (UCOMPARISONS): Likewise.
27329         (optab): Add missing comparisons.
27330         (n_optab): New.
27331         (cmp_1): Likewise.
27332         (cmp_2): Likewise.
27333         (CMP): Likewise.
27334         (cmp): Remove.
27335         (VCMP_S): Likewise.
27336         (VCMP_U): Likewise.
27337         (V_cmp_result): Add DF, SF modes.
27338         (v_cmp_result): Likewise.
27339         (v): Likewise.
27340         (vmtype): Likewise.
27341         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
27343 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
27345         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
27346         define_insn to define_insn_and_split.
27347         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
27348         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
27349         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
27350         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
27351         (thumb2_negscc): Likewise.
27353 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
27355         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
27357 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
27359         * config/arm/thumb2.md: Remove trailing whitespaces.
27361 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27363         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
27364         Use gen_int_mode rather than GEN_INT.
27366 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
27368         * value-prof.c (stream_in_histogram_value): Remove the strayed
27369         debug_gimple_stmt.
27371 2013-04-30  Richard Biener  <rguenther@suse.de>
27373         PR middle-end/57122
27374         * cfghooks.c (split_edge): Properly check for the loop latch edge.
27376 2013-04-30  Richard Biener  <rguenther@suse.de>
27378         PR middle-end/57107
27379         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
27381 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
27383         PR rtl-optimization/56957
27384         PR rtl-optimization/57105
27385         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
27386         variable.  Use just INSN_UID for determining whether an insn
27387         should be only disconnected from the insn stream.
27388         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
27390 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
27392         PR tree-optimization/57104
27393         * tsan.c (instrument_expr): Don't instrument accesses to
27394         DECL_HARD_REGISTER VAR_DECLs.
27396 2013-04-30  Richard Biener  <rguenther@suse.de>
27398         * function.h (loops_for_fn): New inline function.
27399         (set_loops_for_fn): Likewise.
27400         * cfgloop.h (place_new_loop): Add struct function parameter.
27401         (get_loop): Likewise.
27402         (get_loops): Likewise.
27403         (number_of_loops): Likewise.
27404         (fel_next): Adjust.
27405         (fel_init): Likewise.
27406         * cfg.c (get_loop_copy): Adjust.
27407         * cfgloop.c (flow_loops_dump): Likewise.
27408         (record_loop_exits): Likewise.
27409         (verify_loop_structure): Likewise.
27410         * cfgloopanal.c (mark_irreducible_loops): Likewise.
27411         (estimate_reg_pressure_cost): Likewise.
27412         (mark_loop_exit_edges): Likewise.
27413         * cfgloopmanip.c (place_new_loop): Likewise.
27414         (add_loop): Likewise.
27415         (duplicate_loop): Likewise.
27416         * graph.c (draw_cfg_nodes): Likewise.
27417         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
27418         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
27419         (extract_affine_chrec): Likewise.
27420         (build_scop_iteration_domain): Likewise.
27421         * graphite.c (graphite_initialize): Likewise.
27422         * ira-build.c (create_loop_tree_nodes): Likewise.
27423         (more_one_region_p): Likewise.
27424         (rebuild_regno_allocno_maps): Likewise.
27425         (mark_loops_for_removal): Likewise.
27426         (mark_all_loops_for_removal): Likewise.
27427         (remove_unnecessary_regions): Likewise.
27428         (ira_build): Likewise.
27429         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
27430         * loop-init.c (fix_loop_structure): Likewise.
27431         (gate_rtl_move_loop_invariants): Likewise.
27432         (gate_rtl_unswitch): Likewise.
27433         (gate_rtl_unroll_and_peel_loops): Likewise.
27434         (rtl_doloop): Likewise.
27435         * lto-streamer-in.c (input_cfg): Likewise.
27436         * lto-streamer-out.c (output_cfg): Likewise.
27437         * modulo-sched.c (sms_schedule): Likewise.
27438         * predict.c (tree_estimate_probability): Likewise.
27439         (tree_estimate_probability_driver): Likewise.
27440         (estimate_loops): Likewise.
27441         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
27442         (move_sese_region_to_fn): Likewise.
27443         (debug_loop_num): Likewise.
27444         * tree-chrec.c (chrec_evaluate): Likewise.
27445         (hide_evolution_in_other_loops_than_loop): Likewise.
27446         (chrec_component_in_loop_num): Likewise.
27447         (reset_evolution_in_loop): Likewise.
27448         (evolution_function_is_invariant_rec_p): Likewise.
27449         * tree-if-conv.c (main_tree_if_conversion): Likewise.
27450         * tree-inline.c (copy_loops): Likewise.
27451         (copy_cfg_body): Likewise.
27452         (tree_function_versioning): Likewise.
27453         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
27454         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
27455         Likewise.
27456         (add_to_evolution_1): Likewise.
27457         (scev_const_prop): Likewise.
27458         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
27459         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
27460         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
27461         (tree_ssa_lim_initialize): Likewise.
27462         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
27463         (verify_loop_closed_ssa): Likewise.
27464         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
27465         (tree_ssa_loop_im): Likewise.
27466         (tree_ssa_loop_unswitch): Likewise.
27467         (tree_vectorize): Likewise.
27468         (check_data_deps): Likewise.
27469         (tree_ssa_loop_ivcanon): Likewise.
27470         (tree_ssa_loop_bounds): Likewise.
27471         (tree_complete_unroll): Likewise.
27472         (tree_complete_unroll_inner): Likewise.
27473         (tree_parallelize_loops): Likewise.
27474         (tree_ssa_loop_prefetch): Likewise.
27475         (tree_ssa_loop_ivopts): Likewise.
27476         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
27477         * tree-vectorizer.c (vectorize_loops): Likewise.
27479 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
27481         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
27482         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
27483         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
27484         with EABI_LINK_SPEC.
27486 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
27488         PR target/44578
27489         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
27490         alternative.
27492 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
27494         PR target/57097
27495         * lra-constraints.c (process_alt_operands): Discourage a bit more
27496         using memory for pseudos.  Print cost dump for alternatives.
27497         Modify cost values for conflicts with early clobbers.
27498         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
27500 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
27502         PR target/57098
27503         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
27505 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
27507         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
27508         from/to S register.
27509         (movdi_aarch64): Support LDR/STR from/to D register.
27511 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
27513         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
27514         or higher by default.
27516 2013-04-29  Richard Biener  <rguenther@suse.de>
27518         PR middle-end/57075
27519         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
27520         even if not adding abnormal edges for calls that can make
27521         abnormal gotos.
27523 2013-04-29  Richard Biener  <rguenther@suse.de>
27525         PR middle-end/57103
27526         * tree-cfg.c (move_stmt_op): Fix condition under which to update
27527         TREE_BLOCK.
27528         (move_stmt_r): Remove redundant checking.
27530 2013-04-29  Teresa Johnson  <tejohnson@google.com>
27532         PR bootstrap/57077
27533         * basic-block.h (apply_scale): New function.
27534         (apply_probability): Use apply_scale.
27535         * gimple-streamer-in.c (input_bb): Ditto.
27536         * lto-streamer-in.c (input_cfg): Ditto.
27537         * lto-cgraph.c (merge_profile_summaries): Ditto.
27538         * tree-optimize.c (execute_fixup_cfg): Ditto.
27539         * tree-inline.c (copy_bb): Update comment to use apply_scale.
27540         (copy_edges_for_bb): Ditto.
27541         (copy_cfg_body): Ditto.
27543 2013-04-29  Tom de Vries  <tom@codesourcery.com>
27545         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
27546         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
27547         (tail_merge_optimize): Handle current_loops == NULL.
27549 2013-04-26  Jeff Law  <law@redhat.com>
27551         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
27552         (simplify_cond_using_ranges): Generalize code to simplify
27553         COND_EXPRs where one argument is a constant and the other
27554         is an SSA_NAME created by an integral type conversion.
27556 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27558         * config/arm/arm.md (store_minmaxsi): Use only when
27559         optimize_insn_for_size_p.
27561 2013-04-29  Christian Bruel  <christian.bruel@st.com>
27563         PR target/57108
27564         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
27566 2013-04-29  Richard Biener  <rguenther@suse.de>
27568         PR middle-end/57089
27569         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
27570         loop tree make sure to schedule a fixup for the child as well.
27571         (expand_omp_for_generic): Properly add loops.
27572         (expand_omp_for_static_nochunk): Likewise.
27573         (expand_omp_for_static_chunk): Likewise.
27574         (expand_omp_for): For the degenerate case fixup loops.
27575         (expand_omp_sections): Fix default bb placement in loops.
27576         (expand_omp_atomic_pipeline): Properly add loops.
27578 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27580         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
27582 2013-04-29  Tom de Vries  <tom@codesourcery.com>
27584         * tree-ssa-tail-merge.c: Update header comment.
27586 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27588         * config/aarch64/arm_neon.h
27589         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
27590         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
27591         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
27592         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
27593         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
27594         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
27595         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
27596         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
27598 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27600         * config/aarch64/aarch64-simd.md
27601         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
27602         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
27603         fix_trunc, fixuns_trunc.
27604         (ftrunc<VDQF:mode>2): New.
27605         * config/aarch64/iterators.md (optab): Add fix, fixuns.
27606         (fix_trunc_optab): New.
27608 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27610         * config/aarch64/aarch64-builtins.c
27611         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
27612         iceilf, lround, iroundf.
27614 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
27616         PR target/54349
27617         * config/i386/i386.h (enum ix86_tune_indices)
27618         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
27619         New, split from X86_TUNE_INTER_UNIT_MOVES.
27620         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
27621         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
27622         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
27623         (TARGET_INTER_UNIT_MOVES): Remove.
27624         * config/i386/i386.c (initial_ix86_tune_features): Update.
27625         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
27626         (ix86_expand_convert_uns_didf_sse): Use
27627         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
27628         (ix86_expand_vector_init_one_nonzero): Ditto.
27629         (ix86_expand_vector_init_interleave): Ditto.
27630         (inline_secondary_memory_needed): Return true for moves from SSE class
27631         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
27632         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
27633         * config/i386/constraints.md (Yi, Ym): Depend on
27634         TARGET_INTER_UNIT_MOVES_TO_VEC.
27635         (Yj, Yn): New constraints.
27636         * config/i386/i386.md (*movdi_internal): Change constraints of
27637         operand 1 from Yi to Yj and from Ym to Yn.
27638         (*movsi_internal): Ditto.
27639         (*movdf_internal): Ditto.
27640         (*movsf_internal): Ditto.
27641         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
27642         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
27643         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
27644         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
27645         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
27646         * config/i386/sse.md (movdi_to_sse): Ditto.
27647         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
27648         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
27649         TARGET_INTER_UNIT_MOVES.
27650         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
27651         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
27652         instead of TARGET_INTER_UNIT_MOVES.
27653         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
27654         operand 1 from Yi to Yj and from Ym to Yn.
27656 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27658         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
27659         (float_truncate_hi_): Likewise.
27660         (float_extend_lo_): Likewise.
27661         (float_truncate_lo_): Likewise.
27662         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
27663         (aarch64_float_extend_lo_v2df): Likewise.
27664         (vec_unpacks_hi_v4sf): Likewise.
27665         (aarch64_float_truncate_lo_v2sf): Likewise.
27666         (aarch64_float_truncate_hi_v4sf): Likewise.
27667         (vec_pack_trunc_v2df): Likewise.
27668         (vec_pack_trunc_df): Likewise.
27670 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27672         * config/aarch64/aarch64-builtins.c
27673         (aarch64_fold_builtin): Fold float conversions.
27674         * config/aarch64/aarch64-simd-builtins.def
27675         (floatv2si, floatv4si, floatv2di): New.
27676         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
27677         * config/aarch64/aarch64-simd.md
27678         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
27679         * config/aarch64/iterators.md (FLOATUORS): New.
27680         (optab): Add float, floatuns.
27681         (su_optab): Likewise.
27683 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27685         * config/aarch64/aarch64-builtins.c
27686         (aarch64_builtin_vectorized_function): Use new names for
27687         fcvt builtins.
27688         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
27689         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
27690         (fcvtzu): Split as...
27691         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
27692         (fcvtas): Split as...
27693         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
27694         (fcvtau): Split as...
27695         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
27696         (fcvtps): Split as...
27697         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
27698         (fcvtpu): Split as...
27699         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
27700         (fcvtms): Split as...
27701         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
27702         (fcvtmu): Split as...
27703         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
27704         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
27705         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
27706         (lfrintnusf, lfrintnudf): Likewise.
27707         * config/aarch64/aarch64-simd.md
27708         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
27709         define_insn.
27710         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
27711         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
27712         (fcvt_pattern): Likewise.
27714 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27716         * config/aarch64/aarch64-simd.md
27717         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
27718         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
27720 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27722         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
27723         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
27724         (vrnd<a,m,n,p>_f32): Implement using builtins.
27725         (vrnd<i,x><q>_f<32, 64>): New.
27727 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27729         * config/aarch64/aarch64-builtins.c
27730         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
27731         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
27732         (frintz): Rename to...
27733         (btrunc): ...this.
27734         (frintp): Rename to...
27735         (ceil): ...this.
27736         (frintm): Rename to...
27737         (floor): ...this.
27738         (frinti): Rename to...
27739         (nearbyint): ...this.
27740         (frintx): Rename to...
27741         (rint): ...this.
27742         (frinta): Rename to...
27743         (round): ...this.
27744         * config/aarch64/aarch64-simd.md
27745         (aarch64_frint<frint_suffix><mode>): Delete.
27746         (<frint_pattern><mode>2): Convert to insn.
27747         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
27748         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
27749         (frint_pattern): Likewise.
27750         (frint_suffix): Likewise.
27752 2013-04-29  Richard Biener  <rguenther@suse.de>
27754         PR tree-optimization/57081
27755         * loop-init.c: Include tree-flow.h.
27756         (loop_optimizer_finalize): Free number of iteration estimates.
27757         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
27759 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
27761         PR tree-optimization/57083
27762         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
27763         non-singleton shift count range, zero extend low_bound for uns case.
27765         * config/i386/predicates.md (general_vector_operand): New predicate.
27766         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
27767         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
27768         if they aren't nonimmediate operands.  If their original values
27769         satisfy const_vector_equal_evenodd_p, don't shift them.
27770         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
27771         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
27772         if not nonimmediate_operand.
27773         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
27774         instead of register_operand.
27775         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
27777 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
27779         * stor-layout.c (finalize_size_functions): Allocate a structure and
27780         reset cfun before dumping the functions.
27782 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
27784         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
27786         PR target/56866
27787         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
27788         use xop_pmacsdqh if uns_p.
27789         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
27790         the immediate rotate count.
27792 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
27794         * rtl.h (struct rtx_def): Add comment for field jump.
27795         (LRA_SUBREG_P): New macro.
27796         * recog.c (register_operand): Check LRA_SUBREG_P.
27797         * lra.c (lra): Add note at the end of RTL code. Align non-empty
27798         stack frame.
27799         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
27800         (lra_final_code_change): Skip subreg change for operators.
27801         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
27802         if there are no operand changes.
27803         * lra-constraints.c (curr_insn_set): New.
27804         (match_reload): Set LRA_SUBREG_P.
27805         (emit_spill_move): Ditto.
27806         (check_and_process_move): Use curr_insn_set. Process only single
27807         set insns.  Don't initialize sec_mem_p and change_p.
27808         (simplify_operand_subreg): Use LRA_SUBREG_P.
27809         (reg_in_class_p): New function.
27810         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
27811         of #ifdef.  Add code to remove cycling.
27812         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
27813         non-null disp.  Reload inner instead of disp when base and index
27814         are null.  Try to put lo_sum into register.
27815         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
27816         (check_and_process_move): Move code for move cost check to
27817         simple_move_p.  Remove equiv_substitution.
27818         (simple_move_p): New function.
27819         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
27820         curr_insn_set.  Call check_and_process_move only for single set
27821         insns.  Use the new function.  Move call of check_and_process_move
27822         after operand equiv substitution and address process.
27824 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
27826         PR go/57045
27827         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
27828         with nonlocal goto receivers or returns twice calls, ignore
27829         unininitialized values from abnormal edges to nl goto receiver
27830         or returns twice call.
27832 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
27834         PR tree-optimization/57051
27835         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
27836         and VEC_RSHIFT_EXPR if shift count is a multiple of element
27837         bitsize.
27839 2013-04-26  Richard Biener  <rguenther@suse.de>
27841         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
27842         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
27843         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
27844         (fixup_loop_arrays_after_move): New function.
27845         (move_sese_region_to_fn): Properly outline the loop tree parts
27846         of the SESE region.
27848 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
27850         * config/i386/i386.md (type, unit): Fix long lines.
27852 2013-04-26  Richard Biener  <rguenther@suse.de>
27854         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
27855         (lto-streamer-out.o): Likewise.
27856         * cfgloop.c (init_loops_structure): Export, add struct function
27857         argument and adjust.
27858         (flow_loops_find): Adjust.
27859         * cfgloop.h (enum loop_estimation): Add EST_LAST.
27860         (init_loops_structure): Declare.
27861         * lto-streamer-in.c: Include cfgloop.h.
27862         (input_cfg): Input the loop tree.
27863         * lto-streamer-out.c: Include cfgloop.h.
27864         (output_cfg): Output the loop tree.
27865         (output_struct_function_base): Do not drop PROP_loops.
27867 2013-03-26  Richard Biener  <rguenther@suse.de>
27869         * tree-cfg.c (execute_build_cfg): Build the loop tree.
27870         (pass_build_cfg): Provide PROP_loops.
27871         (move_sese_region_to_fn): Remove loops that are outlined into fn
27872         for now.
27873         * tree-inline.c: Include cfgloop.h.
27874         (initialize_cfun): Do not drop PROP_loops.
27875         (copy_loops): New function.
27876         (copy_cfg_body): Copy loop structure.
27877         (tree_function_versioning): Initialize destination loop tree.
27878         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
27879         (pass_parallelize_loops): Do IL verification.
27880         * loop-init.c (loop_optimizer_init): Fixup loops if required.
27881         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
27882         the CFG make sure we fixup loops as well.
27883         * tree-ssa-tail-merge.c: Include cfgloop.h.
27884         (replace_block_by): When merging loop latches mark loops for fixup.
27885         * lto-streamer-out.c (output_struct_function_base): Drop
27886         PROP_loops for now.
27887         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
27888         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
27889         * ipa-split.c: Include cfgloop.h.
27890         (split_function): Add the new return block to the loop tree root.
27891         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
27892         whether we have removed the forwarder block.
27893         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
27894         * cfgloop.h (place_new_loop): Declare.
27895         * cfgloopmanip.c (place_new_loop): Export.
27896         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
27897         (tree-switch-conversion.o): Likewise.
27898         (tree-complex.o): Likewise.
27899         (tree-inline.o): Likewise.
27900         (tree-ssa-tailmerge.o): Likewise.
27901         (ipa-split.o): Likewise.
27902         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
27903         (tree-ssa-copy.o): Likewise.
27904         * tree-switch-conversion.c: Include cfgloop.h
27905         (process_switch): If we emit a bit-test cascade, schedule loops
27906         for fixup.
27907         * tree-complex.c: Include cfgloop.h.
27908         (expand_complex_div_wide): Properly add new basic-blocks to loops.
27909         * asan.c: Include cfgloop.h.
27910         (create_cond_insert_point): Properly add new basic-blocks to
27911         loops, schedule loop fixup.
27912         * cfgloop.c (verify_loop_structure): Check that looks are not
27913         marked for fixup.
27914         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
27915         to loops.
27916         (expand_omp_for_generic): Likewise.
27917         (expand_omp_sections): Likewise.
27918         (expand_omp_atomic_pipeline): Schedule loops for fixup.
27919         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
27920         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
27921         is initialized, not when loops are present.
27922         * tree-parloops.c (parallelize_loops): Remove checking here.
27923         * passes.c (init_optimization_passes): Schedule a copy-propagation
27924         pass before complete unrolling of inner loops.
27926 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
27928         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
27929         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
27930         (colorize_init): Add argument to _WIN32 version.
27931         * toplev.c: Include diagnostic-color.h.
27932         (process_options): Default to -fdiagnostics-color=auto if
27933         GCC_COLORS env var is in the environment.
27934         * common.opt (fdiagnostics-color=): Add Var and Init.
27935         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
27936         env var is in the environment, the default is auto rather than never.
27938         * diagnostic.h (file_name_as_prefix): Add context argument.
27939         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
27940         the string as locus.
27941         * langhooks.c (lhd_print_error_function): Adjust caller.
27943 2013-04-25  Lawrence Crowl  <crowl@google.com>
27945         * var-tracking.c (shared_hash_def::htab):
27946         Change type to hash_table.  Update dependent calls and types.
27948 2013-04-25  Lawrence Crowl  <crowl@google.com>
27950         * Makefile.in: Update as needed below.
27952         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
27953         Move declaration to after the type's method definitons.
27955         * attribs.c (htab_t scoped_attributes::attribute_hash):
27956         Change type to hash_table.  Update dependent calls and types.
27958         * bitmap.c (htab_t bitmap_desc_hash):
27959         Change type to hash_table.  Update dependent calls and types.
27961         * cselib.c (htab_t cselib_hash_table):
27962         Change type to hash_table.  Update dependent calls and types.
27964         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
27965         (hash_string_slot_node): Move implementation into lto-streamer.h
27966         struct string_slot_hasher.
27967         (eq_string_slot_node): Likewise.
27969         * data-streamer-out.c: Update output_block::string_hash_table
27970         dependent calls and types.
27972         * dwarf2cfi.c (htab_t trace_index):
27973         Change type to hash_table.  Update dependent calls and types.
27975         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
27976         Change type to hash_table.  Update dependent calls and types.
27977         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
27978         (htab_t optimize_external_refs::map): Likewise.
27979         (htab_t output_comp_unit::extern_map): Likewise.
27980         (htab_t output_comdat_type_unit::extern_map): Likewise.
27981         (htab_t output_macinfo::macinfo_htab): Likewise.
27982         (htab_t optimize_location_lists::htab): Likewise.
27983         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
27985         * except.c (htab_t ehspec_hash_type):
27986         Change type to hash_table.  Update dependent calls and types.
27987         (assign_filter_values::ttypes): Likewise.
27988         (assign_filter_values::ehspec): Likewise.
27989         (sjlj_assign_call_site_values::ar_hash): Likewise.
27990         (convert_to_eh_region_ranges::ar_hash): Likewise.
27992         * gcse.c (htab_t pre_ldst_table):
27993         Change type to hash_table.  Update dependent calls and types.
27995         * ggc-common.c (htab_t saving_htab):
27996         Change type to hash_table.  Update dependent calls and types.
27997         (htab_t loc_hash): Likewise.
27998         (htab_t ptr_hash): Likewise.
27999         (call_count): Rename ggc_call_count.
28000         (call_alloc): Rename ggc_call_alloc.
28001         (loc_descriptor): Rename make_loc_descriptor.
28002         (add_statistics): Rename ggc_add_statistics.
28004         * ggc-common.c (saving_htab):
28005         Change type to hash_table.  Update dependent calls and types.
28007         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
28008         (push_gimplify_context): Likewise.
28009         (pop_gimplify_context): Likewise.
28010         (struct gimple_temp_hash_elt): Added.
28011         (struct gimplify_hasher): Likewise.
28012         (struct gimplify_ctx.temp_htab):
28013         Change type to hash_table.  Update dependent calls and types.
28015         * gimple-fold.c: Include gimplify-ctx.h.
28017         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
28018         Change type to hash_table.  Update dependent calls and types.
28019         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
28020         avoid potential global name collision.
28022         * gimplify.c: Include gimplify-ctx.h.
28023         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
28024         (htab_t gimplify_ctx::temp_htab):
28025         Update dependent calls and types for new type hash_table.
28026         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
28027         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
28029         * gimplify-ctx.h: New.
28030         (struct gimple_temp_hash_elt): Move from gimplify.c.
28031         (class gimplify_hasher): New.
28032         (struct gimplify_ctx): Move from gimple.h.
28033         (htab_t gimplify_ctx::temp_htab):
28034         Change type to hash_table.  Update dependent calls and types.
28036         * graphite-clast-to-gimple.c: Include graphite-htab.h.
28037         (htab_t ivs_params::newivs_index):
28038         Change type to hash_table.  Update dependent calls and types.
28039         (htab_t ivs_params::params_index): Likewise.
28040         (htab_t print_generated_program::params_index): Likewise.
28041         (htab_t gloog::newivs_index): Likewise.
28042         (htab_t gloog::params_index): Likewise.
28044         * graphite.c: Include graphite-htab.h.
28045         4htab_t graphite_transform_loops::bb_pbb_mapping):
28046         Change type to hash_table.  Update dependent calls and types.
28048         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
28049         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
28050         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
28052         * graphite-dependences.c: Include graphite-htab.h.
28053         (loop_is_parallel_p): Change hash table type of parameter.
28055         * graphite-htab.h: New.
28056         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
28057         (extern find_pbb_via_hash): Move from graphite-poly.h.
28058         (extern loop_is_parallel_p): Move from graphite-poly.h.
28059         (extern get_loop_body_pbbs): Move from graphite-poly.h.
28061         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
28062         (extern loop_is_parallel_p): Move to graphite-htab.h.
28063         (extern get_loop_body_pbbs): Move to graphite-htab.h.
28065         * haifa-sched.c (htab_t delay_htab):
28066         Change type to hash_table.  Update dependent calls and types.
28067         (htab_t delay_htab_i2): Likewise.
28069         * ira-color.c (htab_t allocno_hard_regs_htab):
28070         Change type to hash_table.  Update dependent calls and types.
28072         * ira-costs.c (htab_t cost_classes_htab):
28073         Change type to hash_table.  Update dependent calls and types.
28075         * loop-invariant.c (htab_t merge_identical_invariants::eq):
28076         Change type to hash_table.  Update dependent calls and types.
28078         * loop-iv.c (htab_t bivs):
28079         Change type to hash_table.  Update dependent calls and types.
28081         * loop-unroll.c (htab_t opt_info::insns_to_split):
28082         Change type to hash_table.  Update dependent calls and types.
28083         (htab_t opt_info::insns_with_var_to_expand): Likewise.
28085         * lto-streamer.h (struct string_slot): Move from data-streamer.h
28086         (struct string_slot_hasher): New.
28087         (htab_t output_block::string_hash_table):
28088         Change type to hash_table.  Update dependent calls and types.
28090         * lto-streamer-in.c (freeing_string_slot_hasher): New.
28091         (htab_t file_name_hash_table):
28092         Change type to hash_table.  Update dependent calls and types.
28094         * lto-streamer-out.c: Update output_block::string_hash_table dependent
28095         calls and types.
28097         * lto-streamer.c (htab_t tree_htab):
28098         Change type to hash_table.  Update dependent calls and types.
28100         * omp-low.c: Include gimplify-ctx.h.
28102         * passes.c (htab_t name_to_pass_map):
28103         Change type to hash_table.  Update dependent calls and types.
28104         (pass_traverse): Rename to passes_pass_traverse.
28106         * plugin.c (htab_t event_tab):
28107         Change type to hash_table.  Update dependent calls and types.
28109         * postreload-gcse.c (htab_t expr_table):
28110         Change type to hash_table.  Update dependent calls and types.
28111         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
28113         * sese.c (debug_rename_map_1): Make extern.
28114         (htab_t copy_bb_and_scalar_dependences::rename_map):
28115         Change type to hash_table.  Update dependent calls and types.
28117         * sese.h (extern debug_rename_map): Move to .c file.
28119         * store-motion.c (htab_t store_motion_mems_table):
28120         Change type to hash_table.  Update dependent calls and types.
28122         * trans-mem.c (htab_t tm_new_mem_hash):
28123         Change type to hash_table.  Update dependent calls and types.
28125         * tree-browser.c (htab_t TB_up_ht):
28126         Change type to hash_table.  Update dependent calls and types.
28128         * tree-cfg.c (htab_t discriminator_per_locus):
28129         Change type to hash_table.  Update dependent calls and types.
28131         * tree-complex.c: Include tree-hasher.h
28132         (htab_t complex_variable_components):
28133         Change type to hash_table.  Update dependent calls and types.
28135         * tree-eh.c (htab_t finally_tree):
28136         Change type to hash_table.  Update dependent calls and types.
28138         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
28139         struct int_tree_hasher.
28140         (extern int_tree_map_eq): Likewise.
28141         (uid_decl_map_hash): Removed.
28142         (extern decl_tree_map_eq): Likewise.
28144         * tree-hasher.h: New.
28145         (struct int_tree_hasher): New.
28146         (typedef int_tree_htab_type): New.
28148         * tree-inline.c: Include gimplify-ctx.h.
28150         * tree-mudflap.c: Include gimplify-ctx.h.
28152         * tree-parloops.c: Include tree-hasher.h.
28153         (htab_t eliminate_local_variables_stmt::decl_address):
28154         Change type to hash_table.  Update dependent calls and types.
28155         (htab_t separate_decls_in_region::decl_copies): Likewise.
28157         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
28158         Change type to hash_table.  Update dependent calls and types.
28160         * tree-sra.c (candidates):
28161         Change type to hash_table.  Update dependent calls and types.
28163         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
28164         in tree-flow.h.
28165         (int_tree_map_hash): Likewise.
28167         * tree-ssa-dom.c (htab_t avail_exprs):
28168         Change type to hash_table.  Update dependent calls and types.
28170         * tree-ssa-live.c (var_map_base_init::tree_to_index):
28171         Change type to hash_table.  Update dependent calls and types.
28173         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
28174         Change type to hash_table.  Update dependent calls and types.
28176         * tree-ssa-phiopt.c (seen_ssa_names):
28177         Change type to hash_table.  Update dependent calls and types.
28179         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
28180         Change type to hash_table.  Update dependent calls and types.
28182         * tree-ssa-uncprop.c (equiv):
28183         Change type to hash_table.  Update dependent calls and types.
28185 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
28187         PR rtl-optimization/57003
28188         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
28189         call note_stores with kill_clobbered_value callback again after
28190         killing regs_invalidated_by_call.
28192 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28194         * config/aarch64/aarch64-simd.md
28195         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
28196         (aarch64_simd_bsl<mode>): Likewise.
28197         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
28199 2013-04-25  Marek Polacek  <polacek@redhat.com>
28201         PR tree-optimization/57066
28202         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
28204 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28206         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
28208 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28210         * config/aarch64/aarch64-builtins.c
28211         (aarch64_fold_builtin): New.
28212         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
28213         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
28214         * config/aarch64/aarch64-simd-builtins.def (abs): New.
28215         * config/aarch64/arm_neon.h
28216         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
28218 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28219             Tejas Belagod  <tejas.belagod@arm.com>
28221         * config/aarch64/aarch64-builtins.c
28222         (aarch64_gimple_fold_builtin): New.
28223         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
28224         * config/aarch64/aarch64-simd-builtins.def (addv): New.
28225         * config/aarch64/aarch64-simd.md (addpv4sf): New.
28226         (addvv4sf): Update.
28227         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
28229 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28231         * config/aarch64/aarch64.md
28232         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
28234 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28236         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
28237         (*ngcsi_uxtw): New pattern.
28239 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28240             Julian Brown  <julian@codesourcery.com>
28242         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
28243         (TB_DREG): Add T_V4HF.
28244         (v4hf_UP): New macro.
28245         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28246         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28247         Handle initialisation of V4HF. Adjust initialisation of reinterpret
28248         built-ins.
28249         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28250         (arm_vector_mode_supported_p): Handle V4HF.
28251         (arm_mangle_map): Handle V4HFmode.
28252         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
28253         * config/arm/arm_neon_builtins.def: Add entries for
28254         vcvtv4hfv4sf, vcvtv4sfv4hf.
28255         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
28256         (neon_vcvtv4hfv4sf): Likewise.
28257         * config/arm/neon-gen.ml: Handle half-precision floating point
28258         features.
28259         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
28260         * config/arm/arm_neon.h: Regenerate.
28261         * config/arm/neon.ml (type elts): Add F16.
28262         (type vectype): Add T_float16x4, T_floatHF.
28263         (type vecmode): Add V4HF.
28264         (type features): Add Requires_FP_bit feature.
28265         (elt_width): Handle F16.
28266         (elt_class): Likewise.
28267         (elt_of_class_width): Likewise.
28268         (mode_of_elt): Refactor.
28269         (type_for_elt): Handle F16, fix error messages.
28270         (vectype_size): Handle T_float16x4.
28271         (vcvt_sh): New function.
28272         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
28273         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
28274         (string_of_mode): Handle V4HF.
28275         * doc/arm-neon-intrinsics.texi: Regenerate.
28277 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28279         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
28280         format specifier in 'X' case.
28282 2013-04-25  Alan Modra  <amodra@gmail.com>
28284         PR target/57052
28285         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
28286         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
28287         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
28288         Repeat for many other rotate/shift and mask patterns using subregs.
28289         Name lshiftrt insns.
28290         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
28291         on WORDS_BIG_ENDIAN.
28293 2013-04-25  Alan Modra  <amodra@gmail.com>
28295         * config.gcc: Support little-endian powerpc-linux targets.
28296         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
28297         (LINK_OS_LINUX_SPEC): Define.
28298         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
28299         Preserve MASK_LITTLE_ENDIAN.
28300         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
28301         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
28302         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
28303         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
28304         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
28305         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
28306         Correct fp word order for little-endian.  Don't shift toc entries
28307         smaller than a word for little-endian.
28308         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
28309         (bswapdi2 splits): Correct low-part subreg for little-endian.
28310         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
28311         low/high where such is correct only for be.
28312         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
28313         little-endian for -mcall-aixdesc.
28315 2013-04-25  Alan Modra  <amodra@gmail.com>
28317         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
28318         replace_equiv_address_nv.
28320 2013-04-25  Alan Modra  <amodra@gmail.com>
28322         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
28324 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28326         Revert:
28327         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28328         * rtl.h (struct rtx_def): ...
28330 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28332         PR rtl-optimizations/57046
28333         * lra-constraints (split_reg): Set up lra_risky_transformations_p
28334         for multi-reg splits.
28336 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
28338         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
28340 2013-04-24  Sterling Augustine  <saugustine@google.com>
28342         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
28343         (comp_dir_string, debug_str_dwo_section): New.
28344         (DEBUG_STR_DWO_SECTION): Rename to ...
28345         (DEBUG_DWO_STR_SECTION): ... this.
28346         (DEBUG_NORM_STR_SECTION): Delete.
28347         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
28348         (DEBUG_STR_DWO_SECTION_FLAGS): New.
28349         (find_AT_string): Move most logic to ...
28350         (find_AT_string_in_table): ... here.  New.
28351         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
28352         add_skeleton_AT_string.  Delete logic.
28353         (output_skeleton_debug_sections): Remove call to
28354         add_top_level_skeleton_die_attrs.
28355         (add_comp_dir_attribute): Move logic to comp_dir_string.
28356         (dwarf2out_init): Initialize debug_str_dwo_section.
28357         (output_indirect_string): Call find_string_form.
28358         (output_indirect_strings): Rewrite.
28359         (prune_unused_types): Empty skeleton_debug_str_hash.
28360         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
28361         (dwarf2out_finish):  Call output_indirect_strings.
28363 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
28365         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
28367 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28369         * rtl.h (struct rtx_def): Add comment for field jump.
28370         (LRA_SUBREG_P): New macro.
28371         * recog.c (register_operand): Check LRA_SUBREG_P.
28372         * lra.c (lra): Add note at the end of RTL code. Align non-empty
28373         stack frame.
28374         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28375         (lra_final_code_change): Skip subreg change for operators.
28376         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28377         if there are no operand changes.
28378         * lra-constraints.c (curr_insn_set): New.
28379         (match_reload): Set LRA_SUBREG_P.
28380         (emit_spill_move): Ditto.
28381         (check_and_process_move): Use curr_insn_set. Process only single
28382         set insns.  Don't initialize sec_mem_p and change_p.
28383         (simplify_operand_subreg): Use LRA_SUBREG_P.
28384         (reg_in_class_p): New function.
28385         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
28386         of #ifdef.  Add code to remove cycling.
28387         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28388         non-null disp.  Reload inner instead of disp when base and index
28389         are null.  Try to put lo_sum into register.
28390         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28391         (check_and_process_move): Move code for move cost check to
28392         simple_move_p.  Remove equiv_substitution.
28393         (simple_move_p): New function.
28394         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
28395         curr_insn_set.  Call check_and_process_move only for single set
28396         insns.  Use the new function.  Move call of check_and_process_move
28397         after operand equiv substitution and address process.
28399 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
28401         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
28402         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
28403         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
28405 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
28407         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
28409 2013-04-24  Marek Polacek  <polacek@redhat.com>
28411         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
28412         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
28413         (select_loops_exit_conditions): Likewise.
28414         (number_of_iterations_for_all_loops): Likewise.
28415         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
28416         (scev_analysis): Likewise.
28418 2013-04-02  Catherine Moore  <clm@codesourcery.com>
28419             Chao-ying Fu  <fu@mips.com>
28421         * config/mips/micromips.md (jraddiusp): New pattern.
28422         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
28423         instruction if possible.
28425 2013-04-24  Alan Modra  <amodra@gmail.com>
28427         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
28429 2013-04-24  Julian Brown  <julian@codesourcery.com>
28430             Chung-Lin Tang  <cltang@codesourcery.com>
28432         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
28433         dependency behavior in enumeration type DIE generation. Add TODO note
28434         to comments about future DW_FORM_sdata/udata re-work of related code.
28436 2013-04-23  Lawrence Crowl  <crowl@google.com>
28438         * Makefile.in: Update as needed below.
28440         * hash-table.h (class hash_table):
28441         Correct many methods with parameter types compare_type to the correct
28442         value_type.  (Correct code was unlikely to notice the change.)
28443         (hash_table::elements_with_deleted) New.
28444         (class hashtable::iterator): New.
28445         (hashtable::begin()): New.
28446         (hashtable::end()): New.
28447         (FOR_EACH_HASH_TABLE_ELEMENT): New.
28449         * statistics.c (statistics_hashes):
28450         Change type to hash_table.  Update dependent calls and types.
28452         * tree-into-ssa.c (var_infos):
28453         Change type to hash_table.  Update dependent calls and types.
28455         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
28456         Change type to hash_table.  Update dependent calls and types.
28458         * tree-ssa-loop-im.c (struct mem_ref.refs):
28459         Change type to hash_table.  Update dependent calls and types.
28461         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
28462         Change type to hash_table.  Update dependent calls and types.
28464         * tree-ssa-sccvn.c (vn_tables_s::nary):
28465         Change type to hash_table.  Update dependent calls and types.
28466         (vn_tables_s::phis): Likewise.
28467         (vn_tables_s::references): Likewise.
28469         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
28470         (vn_reference_eq): Update parameter and return types.
28472         * tree-ssa-structalias.c (pointer_equiv_class_table):
28473         Change type to hash_table.  Update dependent calls and types.
28474         (location_equiv_class_table): Likewise.
28476         * tree-vect-data-refs.c: Consequential changes for making
28477         peeling a hash_table.
28479         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
28480         (destroy_loop_vec_info): Dependent hash_table update.
28482         * tree-vectorizer.h (peeling_htab):
28483         Change type to hash_table.  Update dependent calls and types.
28485 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
28487         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
28488         to check the register content is equal or not.
28489         * lra-constraints.c (match_reload): Use lra_assign_reg_val
28490         to assign register content record.
28491         * lra-eliminations.c (update_reg_eliminate): Use
28492         lra_update_reg_val_offset to update register content offset.
28493         * lra-int.h (struct lra_reg): Add offset member.
28494         (lra_reg_val_equal_p): New static inline function.
28495         (lra_update_reg_val_offset): New static inline function.
28496         (lra_assign_reg_val): New static inline function.
28497         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
28498         to assign register content record.
28499         (initialize_lra_reg_info_element): Initial offset to zero.
28501 2013-04-23  Catherine Moore  <clm@codesourcery.com>
28503         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
28504         operands.  Record compression.
28506 2013-04-23  Xinliang David Li  <davidxl@google.com>
28508         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
28510 2013-04-23  Richard Biener  <rguenther@suse.de>
28512         PR middle-end/57036
28513         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
28514         parameter, only add abnormal goto edges from the copied body
28515         if the call could perform abnormal gotos.
28516         (copy_cfg_body): Adjust.
28518 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
28520         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
28522 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
28524         * coretypes.h (gimple_stmt_iterator): Add struct to make
28525         compatible with C.
28527 2013-04-23  Richard Biener  <rguenther@suse.de>
28529         PR tree-optimization/57026
28530         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
28531         from SSA names occuring in abnormal PHI nodes.
28533 2013-04-22  Andi Kleen  <ak@linux.intel.com>
28535         * lto/lto.c (print_lto_report_1): Fix LTO report names.
28537 2013-04-22  Andi Kleen  <ak@linux.intel.com>
28539         * lto/lto.c (print_lto_report_1): Declare early.
28540         (read_cgraph_and_symbols): Call print_lto_report_1 early.
28542 2013-04-22  Andi Kleen  <ak@linux.intel.com>
28544         * common.opt (-flto-report-wpa): Add.
28545         * doc/invoke.texi (-flto-report-wpa): Add.
28546         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
28547         (lto_main): dito.
28549 2013-04-22  Xinliang David Li  <davidxl@google.com>
28551         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
28552         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
28553         * Makefile.in: New dependency
28555             David Daney <ddaney.cavm@gmail.com>
28557         * configure.ac (gcc_cv_as_micromips_support):  Use the
28558         --fatal-warnings option.
28559         * configure: Regenerate.
28561 2013-04-22  Marek Polacek  <polacek@redhat.com>
28563         PR sanitizer/56990
28564         * tsan.c (instrument_expr): Don't instrument expression
28565         in case its size is zero.
28567 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
28569         PR target/57032
28570         Revert:
28571         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
28573         * config/alpha/alpha.c (TARGET_LRA_P): New define.
28575 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28577         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
28578         (gimple_stmt_iterator): New typedef.
28579         * gimple.h (gimple_stmt_iterator): Rename to...
28580         (gimple_stmt_iterator_d): ... This.
28581         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
28582         trees be valid for GIMPLE and GENERIC.
28583         (TARGET_GIMPLE_FOLD_BUILTIN): New.
28584         * gimple-fold.c (gimple_fold_call): Call target hook
28585         gimple_fold_builtin.
28586         * hooks.c (hook_bool_gsiptr_false): New.
28587         * hooks.h (hook_bool_gsiptr_false): New.
28588         * target.def (fold_stmt): New.
28589         * doc/tm.texi: Regenerate.
28591 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
28593         PR target/57018
28594         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
28595         a set sp if no stack realignment.
28597 2013-04-22  Nick Clifton  <nickc@redhat.com>
28599         * config.gcc (tilegx-linux): Extend extra_objs rather than
28600         overwriting it.
28601         (tilepro-linux): Likewise.
28603 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28605         * config/aarch64/aarch64-builtins.c
28606         (CF): Remove.
28607         (CF0, CF1, CF2, CF3, CF4, CF10): New.
28608         (VAR<1-12>): Add MAP parameter.
28609         (BUILTIN_*): Likewise.
28610         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
28611         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
28612         (aarch64_ushl_n<mode>): Likewise.
28613         (aarch64_sshr_n<mode>): Likewise.
28614         (aarch64_ushr_n<mode>): Likewise.
28615         (aarch64_<maxmin><mode>): Likewise.
28616         (aarch64_sqrt<mode>): Likewise.
28617         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
28618         (vshr<q>_n_*): Likewise.
28620 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28622         * config/aarch64/aarch64-builtins.c
28623         (aarch64_simd_builtin_type_mode): Handle SF types.
28624         (sf_UP): Define.
28625         (BUILTIN_GPF): Define.
28626         (aarch64_init_simd_builtins): Handle SF types.
28627         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
28628         (frecps): Likewise.
28629         (frecpx): Likewise.
28630         * config/aarch64/aarch64-simd.md
28631         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
28632         (aarch64_frecpe<mode>): New.
28633         (aarch64_frecps<mode>): Likewise.
28634         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
28635         (v8type): Add frecp<esx>.
28636         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
28637         (aarch64_frecps<mode>): Likewise.
28638         * config/aarch64/iterators.md (FRECP): New.
28639         (frecp_suffix): Likewise.
28640         * config/aarch64/arm_neon.h
28641         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
28643 2013-04-22  Christian Bruel  <christian.bruel@st.com>
28645         PR target/56995
28646         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
28647         (REG_CLASS_NAMES): Idem.
28648         (REG_CLASS_CONTENTS): Idem.
28649         (REGCLASS_HAS_FP_REG): Idem.
28650         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
28651         (sh_conditional_register_usage): Idem.
28653 2013-04-21  Jeff Law  <law@redhat.com>
28655         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
28656         (ssa_forward_propagate_and_combine): Use it.
28658 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
28660         * lra.c: Update the flow chart diagram.
28662 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
28664         PR rtl-optimization/56847
28665         * lra-constraints.c (process_alt_operands): Discourage alternative
28666         with non-matche doffsettable memory constraint fro memory with
28667         known offset.
28669 2013-04-19  Richard Biener  <rguenther@suse.de>
28671         PR tree-optimization/56982
28672         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
28673         function.
28674         * gimplify.c (gimplify_call_expr): Notice special calls.
28675         (gimplify_modify_expr): Likewise.
28676         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
28677         abnormal control flow receivers.
28678         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
28679         in the same way as cfun->has_nonlocal_labels.
28680         (gimple_purge_dead_abnormal_call_edges): Likewise.
28681         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
28682         receivers start a basic-block.
28684 2013-04-19  Richard Biener  <rguenther@suse.de>
28686         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
28687         member ...
28688         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
28689         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
28690         (SLP_TREE_LOAD_PERMUTATION): Add.
28691         (vect_transform_slp_perm_load): Adjust prototype.
28692         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
28693         (vect_free_slp_instance): Likewise.
28694         (vect_create_new_slp_node): Likewise.
28695         (vect_supported_slp_permutation_p): Remove.
28696         (vect_slp_rearrange_stmts): Adjust.
28697         (vect_supported_load_permutation_p): Likewise.  Inline
28698         vect_supported_slp_permutation_p here.
28699         (vect_analyze_slp_instance): Compute load permutations per
28700         slp node instead of per instance.
28701         (vect_get_slp_defs): Adjust.
28702         (vect_transform_slp_perm_load): Likewise.
28703         (vect_schedule_slp_instance): Remove redundant code.
28704         (vect_schedule_slp): Remove hack for PR56270, add it ...
28705         * tree-vect-stmts.c (vectorizable_load): ... here, do not
28706         CSE loads for SLP.  Adjust.
28708 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
28710         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
28711         spelling in two comments.
28713 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
28715         PR target/56797
28716         * config/arm/arm.c (load_multiple_sequence): Require SP
28717         as base register for loads if SP is in the register list.
28719 2013-04-19  Martin Jambor  <mjambor@suse.cz>
28721         PR tree-optimization/56718
28722         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
28723         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
28724         and made public.  Adjusted all callers.
28725         (ipa_intraprocedural_devirtualization): New function.
28726         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
28727         (ipa_intraprocedural_devirtualization): Likewise.
28728         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
28730 2013-04-19  Richard Biener  <rguenther@suse.de>
28732         PR tree-optimization/57000
28733         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
28735 2013-04-19  Terry Guo  <terry.guo@arm.com>
28737         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
28738         Replace with ...
28739         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
28740         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
28741         (cortex_m4_fmacs): Use new reservations.
28742         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
28744 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
28746         PR rtl-optimization/56999
28747         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
28748         related code.
28749         (lra_coalesce): Remove split_origin_bitmap and related code.
28750         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
28751         ranges if necessary.
28753 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
28755         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
28756         New array.
28757         (ix86_expand_call): Remove clobbered_registers array and use
28758         x86_64_ms_sysv_extra_clobbered_registers instead.
28759         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
28760         Declare here.
28761         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
28762         predicate.
28763         * config/i386/i386.md (*call_rex64_ms_sysv): Use
28764         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
28765         (*call_value_rex64_ms_sysv): Ditto.
28767 2013-04-18  Cary Coutant  <ccoutant@google.com>
28769         * dwarf2out.c (output_pubnames): Check die_perennial_p of
28770         parent instead of die_mark.
28772 2013-04-18  Diego Novillo  <dnovillo@google.com>
28774         * gimple.c (create_gimple_tmp): New.
28775         (get_expr_type): New.
28776         (build_assign): New.
28777         (build_type_cast): New.
28778         * gimple.h (enum ssa_mode): Define.
28779         (gimple_seq_set_location): New.
28780         * asan.c (build_check_stmt): Change some gimple_build_* calls
28781         to use build_assign and build_type_cast.
28783 2013-04-18  Richard Biener  <rguenther@suse.de>
28785         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28786         handle negative step.  Remove redundant checks.
28787         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
28788         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
28789         for negative step and grouped loads fail to vectorize.
28791 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
28793         * emit-rtl.c (reset_insn_used_flags): New function.
28794         (reset_all_used_flags): Use it.
28795         (verify_insn_sharing): New function.
28796         (verify_rtl_sharing): Fix verification for SEQUENCEs.
28798 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
28800         PR tree-optimization/56984
28801         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
28802         and (x >> M) >= N don't register any assertion if N << M is the
28803         minimum value.
28805 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
28807         * lower-subreg.c (resolve_simple_move): If called self-recursive,
28808         do not delete_insn insns that have not yet been emitted, only
28809         unlink them with remove_insn.
28810         * df-scan.c (df_insn_delete): Revert r197492.
28812 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
28814         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
28815         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
28817 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
28819         * config/arm/arm.md (movsicc_insn): Convert define_insn into
28820         define_insn_and_split.
28821         (and_scc,ior_scc,negscc): Likewise.
28822         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
28824 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
28826         * config/arm/arm.c (use_return_insn): Return 0 for targets that
28827         can benefit from using a sequence of LDRD instructions in epilogue
28828         instead of a single LDM instruction.
28830 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28832         PR 45688
28833         * doc/extend.texi: Fix typo.
28835 2013-04-17  Richard Biener  <rguenther@suse.de>
28837         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
28838         (vect_build_slp_tree): ... here.
28839         (vect_build_slp_tree_1): Compute which stmts of the SLP group
28840         match.  Remove special-casing of mismatched complex loads.
28841         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
28842         re-try the match with swapped commutative operands.
28843         (vect_supported_load_permutation_p): Remove special-casing of
28844         mismatched complex loads.
28845         (vect_analyze_slp_instance): Adjust.
28847 2013-04-17  Richard Biener  <rguenther@suse.de>
28849         PR rtl-optimization/56921
28850         * cfgloop.h (struct loop): Add simple_loop_desc member.
28851         (struct niter_desc): Mark with GTY(()).
28852         (simple_loop_desc): Do not use aux field but simple_loop_desc.
28853         * loop-iv.c (get_simple_loop_desc): Likewise.
28854         (free_simple_loop_desc): Likewise.
28856         Revert
28857         2013-04-16  Richard Biener  <rguenther@suse.de>
28859         PR rtl-optimization/56921
28860         * loop-init.c (pass_rtl_move_loop_invariants): Add
28861         TODO_do_not_ggc_collect to todo_flags_finish.
28862         (pass_rtl_unswitch): Same.
28863         (pass_rtl_unroll_and_peel_loops): Same.
28864         (pass_rtl_doloop): Same.
28866 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
28868         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
28869         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
28870         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
28871         references.
28872         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
28873         * tree-streamer.c (record_common_node): Adjust reference in comment.
28875 2013-04-17  Terry Guo  <terry.guo@arm.com>
28877         * config/arm/cortex-m4.md: Add a new bypass.
28879 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28881         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
28882         New pattern.
28883         (*subs_<optab><mode>_multp2): New pattern.
28884         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
28885         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
28887 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28889         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
28890         (*subs_mul_imm_<mode>): New pattern.
28892 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
28894         PR target/56948
28895         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
28896         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
28897         (vsx_movti_32bit): Change j->wa to O->wa.
28899 2013-04-16  Richard Biener  <rguenther@suse.de>
28901         PR rtl-optimization/56921
28902         * loop-init.c (pass_rtl_move_loop_invariants): Add
28903         TODO_do_not_ggc_collect to todo_flags_finish.
28904         (pass_rtl_unswitch): Same.
28905         (pass_rtl_unroll_and_peel_loops): Same.
28906         (pass_rtl_doloop): Same.
28908 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
28910         * config/arm/arm.c (emit_multi_reg_push): New declaration
28911         for an existing function.
28912         (arm_emit_strd_push): New function.
28913         (arm_expand_prologue): Used here.
28914         (arm_emit_ldrd_pop): New function.
28915         (arm_expand_epilogue): Used here.
28916         (arm_get_frame_offsets): Update condition.
28917         (arm_emit_multi_reg_pop): Add a special case for load of a single
28918         register with writeback.
28920 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
28922         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
28923         description.
28925 2013-04-16  Richard Biener  <rguenther@suse.de>
28927         PR tree-optimization/56756
28928         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
28929         (first_mem_ref_loc): New.
28930         (execute_sm): Place the load temporarily before a previous
28931         access instead of in the latch edge to ensure its SSA dependencies
28932         are defined at points dominating the load.
28934 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
28936         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
28937         correct fix by moving header and footer insn to the footer of
28938         the merged basic block.  Clear BB_END of the merged-away block.
28940         PR middle-end/43631
28941         * emit-rtl.c (make_note_raw): New function.
28942         (link_insn_into_chain): New static inline function.
28943         (add_insn): Use it.
28944         (add_insn_before, add_insn_after): Factor insn chain linking code...
28945         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
28946         using link_insn_into_chain.
28947         (note_outside_basic_block_p): New helper function for emit_note_after
28948         and emit_note_before.
28949         (emit_note_after): Use nobb variant of add_insn_after if the note
28950         should not be contained in a basic block.
28951         (emit_note_before): Use nobb variant of add_insn_before if the note
28952         should not be contained in a basic block.
28953         (emit_note_copy): Use make_note_raw.
28954         (emit_note): Likewise.
28955         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
28956         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
28957         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
28958         the moved barrier the tail of the basic block it follows.
28959         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
28961 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
28963         PR tree-optimization/56962
28964         * gimple-ssa-strength-reduction.c (record_increment): Only set
28965         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
28966         either rhs1 or rhs2 is equal to c->base_expr.
28968 2013-04-15  Richard Biener  <rguenther@suse.de>
28970         PR tree-optimization/56933
28971         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
28972         member.
28973         (GROUP_READ_WRITE_DEPENDENCE): Remove.
28974         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
28975         * tree-vect-data-refs.c (vect_analyze_group_access): Move
28976         dependence check ...
28977         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
28978         ... here.
28979         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
28980         GROUP_READ_WRITE_DEPENDENCE.
28982 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28984         * emit-rtl.c (reset_all_used_flags): New function.
28985         (verify_rtl_sharing): Call reset_all_used_flags before and after
28986         performing the checks.
28988 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28990         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
28991         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
28992         * config/arm/constraints.md (De): New constraint.
28993         * config/arm/neon.md (anddi3_neon): Delete.
28994         (neon_vand<mode>): Expand to standard anddi3 pattern.
28995         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
28996         Move earlier in the file.
28997         (neon_inv_logic_op2): Likewise.
28998         (arm_anddi_operand_neon): New predicate.
29000 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29002         * configure.ac (gcc_cv_ld_as_needed): Set
29003         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
29004         Use -z ignore, -z record on *-*-solaris2*.
29005         (HAVE_LD_AS_NEEDED): Update comment.
29006         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
29007         * configure: Regenerate.
29008         * config.in: Regenerate.
29009         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
29010         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
29011         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
29012         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
29013         equivalents.  Fix markup.
29014         * doc/tm.texi: Regenerate.
29016 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
29018         * config/i386/i386.opt: New option mstack-protector-guard=.
29019         * config/i386/i386-opts.h: Add enum stack_protector_guard.
29020         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
29021         TARGET_SSP_TLS_GUARD.
29022         * config/i386/i386.c (ix86_option_override_internal): Set
29023         ix86_stack_protector_guard.
29024         * config/i386/i386.md (stack_protect_set): Enable for
29025         TARGET_SSP_TLS_GUARD only.
29026         (stack_protect_set_<mode>): Ditto.
29027         (stack_protect_test): Ditto.
29028         (stack_protect_test_<mode>): Ditto.
29029         * doc/invoke.texi (i386 Option): Document.
29031 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
29033         PR target/56890
29034         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
29035         (S_MODES): Set H_MODE bit.
29036         (SF_MODES): Set only S_MODE and SF_MODE bits.
29037         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
29038         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
29039         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
29040         <MODE_FLOAT>: Likewise.
29042 2013-04-15  Joey Ye  <joey.ye@arm.com>
29044         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
29046 2013-04-15  Joey Ye  <joey.ye@arm.com>
29048         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
29049         for real far jump.
29050         (thumb_far_jump_used_p): Count instruction size and set
29051         far_jump_used.
29053 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
29055         * reorg.c (fill_simple_delay_slots): Reindent block of code.
29056         * resource.c (mark_target_live_regs): Reformat conditional block.
29058 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
29060         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
29061         notes, they are emitted only just before final.
29062         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
29064 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
29066         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
29067         * cfgrtl.c (delete_insn): Call it here instead.
29068         * lra-spills.c (lra_final_code_change): Use delete_insn.
29069         * haifa-sched.c (sched_remove_insn): Likewise.
29070         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
29071         returning to the nop pool.
29072         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
29073         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
29075 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
29077         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
29078         * doc/tm.texi: Regenerated.
29080 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
29082         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
29083         QImode checks.
29085 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
29087         * df-core.c (df_find_def): Compare register numbers.
29088         (df_find_use): Likewise.
29090 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
29092         PR target/56903
29093         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
29094         lra_in_progress for return.
29096 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
29098         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
29099         define_insn into define_insn_and_split and emit movsicc patterns.
29101 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
29103         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
29105 2013-04-12  Richard Biener  <rguenther@suse.de>
29107         * tree-pass.h (TODO_do_not_ggc_collect): New.
29108         * passes.c (execute_one_ipa_transform_pass): Honor
29109         TODO_do_not_ggc_collect.
29110         (execute_one_pass): Likewise.
29112         Revert
29113         2013-04-10  Richard Biener  <rguenther@suse.de>
29115         * passes.c (init_optimization_passes): Remove reload pass.
29116         * ira.c (do_reload): Merge into ...
29117         (ira): ... this.
29118         (rest_of_handle_reload): Remove.
29119         (pass_reload): Likewise.
29120         * config/i386/i386.c (ix86_option_override): Refer to ira instead
29121         of reload for vzeroupper pass placement.
29123 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
29125         PR tree-optimization/56918
29126         PR tree-optimization/56920
29127         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
29128         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
29129         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
29130         use wide_mul_with_sign method.
29132 2013-04-12  Richard Biener  <rguenther@suse.de>
29134         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
29135         not be considered a gimple constant.
29137 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
29139         * fold-const.c (const_binop): Handle vector shifts by a scalar.
29140         (fold_binary_loc): Call const_binop also for mixed vector-scalar
29141         operations.
29143 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29144             Jakub Jelinek  <jakub@redhat.com>
29146         * opts.c: Include diagnostic-color.h.
29147         (common_handle_option): Handle OPT_fdiagnostics_color_.
29148         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
29149         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
29150         (diagnostic-color.o): New.
29151         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
29152         (diagnostic_color_rule): New enum.
29153         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
29154         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
29155         the location string.
29156         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
29157         either NULL, or color kind.
29158         * diagnostic-color.c: New file.
29159         * diagnostic-color.h: New file.
29160         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
29161         arguments.
29162         * doc/invoke.texi (-fdiagnostics-color): Document.
29163         * pretty-print.h (pp_show_color): Define.
29164         (struct pretty_print_info): Add show_color field.
29165         * diagnostic.c: Include diagnostic-color.h.
29166         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
29167         macros.  Colorize error:, warning: etc. strings and also the location
29168         string.
29169         (diagnostic_show_locus): Colorize the caret line.
29170         * pretty-print.c: Include diagnostic-color.h.
29171         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
29172         inside of %< %> quotes or quoted through q format modifier.
29174 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29176         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
29178 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29180         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
29181         code in CC_NZ mode.
29182         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
29183         pattern.
29185 2013-04-11  Marek Polacek  <polacek@redhat.com>
29187         PR tree-optimization/48184
29188         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
29190 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
29192         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
29193         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
29194         (skip_simple_arithmetic): Tidy up.
29195         * tree.h (skip_simple_constant_arithmetic): Declare.
29197 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29199         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
29201 2013-04-11  Richard Biener  <rguenther@suse.de>
29203         * tree-vect-loop.c (get_initial_def_for_induction): Properly
29204         generate vector constants.
29206 2013-04-11  Richard Biener  <rguenther@suse.de>
29208         PR tree-optimization/56878
29209         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
29210         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
29211         New function.
29212         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29213         Prefer to align the DR with the most invariant base address.
29215 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29217         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
29218         comment.
29220 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
29222         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
29223         floating-point vector comparisons against 0.
29225 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
29227         PR tree-optimization/56899
29228         * fold-const.c (extract_muldiv_1): Apply distributive law
29229         only if TYPE_OVERFLOW_WRAPS (ctype).
29231 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
29233         PR target/56124
29234         * ira-costs.c (scan_one_insn): Check whether the source rtx of
29235         loading has side effect.
29237 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
29239         * config/sparc/sparc.c: Include tree-pass.h.
29240         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
29241         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
29242         head of file.  Change return type.  Split off gate function.
29243         (sparc_gate_work_around_errata): New function.
29244         (pass_work_around_errata): New pass definition.
29245         (insert_pass_work_around_errata) New pass insert definition to
29246         insert pass_work_around_errata just after delayed-branch scheduling.
29247         (sparc_option_override): Insert the pass.
29248         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
29250 2013-04-10  David S. Miller  <davem@davemloft.net>
29252         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
29253         or -mcpu=hypersparc.
29255         * target.def (cstore_mode): New hook.
29256         * target.h: Include insn-codes.h
29257         * targhooks.c: Likewise.
29258         (default_cstore_mode): New function.
29259         * targhooks.h: Declare it.
29260         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
29261         * doc/tm.texi: Rebuild.
29262         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
29263         target hook, rather than inspecting the insn_data.
29264         * config/sparc/sparc.c (sparc_cstore_mode): New function.
29265         (TARGET_CSTORE_MODE): Redefine.
29266         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
29267         result patterns.
29268         * config/sparc/predicates.md (cstore_result_operand): New special
29269         predicate.
29270         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
29271         Use it for operand 0.
29272         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
29273         (*snesi_special): Likewise.
29274         (*snesi_zero): Likewise.
29275         (*seqsi_zero): Likewise.
29276         (*sltu_insn): Likewise.
29277         (*sgeu_insn): Likewise.
29278         (*seqdi_special): Make operand 0 and comparison operation be of
29279         DImode.
29280         (*snedi_special): Likewise.
29281         (*snedi_special_vis3): Likewise.
29282         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
29283         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
29284         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
29285         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
29286         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
29287         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
29288         (*sltu_extend_sp64): Likewise.
29289         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
29290         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
29291         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
29292         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
29293         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
29295 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
29297         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
29298         (aarch64_start_file): Use the new function.
29300 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29301             Jason Merrill  <jason@redhat.com>
29303         * common.opt: Add -gdwarf.
29304         * opts.c (common_handle_option): Handle it.
29305         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
29307 2013-04-10  Richard Biener  <rguenther@suse.de>
29309         * passes.c (execute_todo): Do not call ggc_collect conditional here.
29310         (execute_one_ipa_transform_pass): But unconditionally here.
29311         (execute_one_pass): And here.
29312         (init_optimization_passes): Remove reload pass.
29313         * tree-pass.h (TODO_ggc_collect): Remove.
29314         (pass_reload): Likewise.
29315         * ira.c (do_reload): Merge into ...
29316         (ira): ... this.
29317         (rest_of_handle_reload): Remove.
29318         (pass_reload): Likewise.
29319         * config/i386/i386.c (ix86_option_override): Refer to ira instead
29320         of reload for vzeroupper pass placement.
29321         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
29322         and todo_flags_finish of all passes.
29324 2013-04-10  Richard Biener  <rguenther@suse.de>
29326         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
29327         first_const_oprnd field, rename first_def_type to first_op_type.
29328         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
29329         (vect_get_and_check_slp_defs): Always use the type of the
29330         operand.  Allow mixed vect_external_def, vect_constant_def types.
29331         (vect_get_constant_vectors): Handle mixed vect_external_def,
29332         vect_constant_def types.
29334 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
29336         PR tree-optimization/55524
29337         * tree-ssa-math-opts.c
29338         (convert_mult_to_fma): Don't use an fms construct
29339         when we don't have an fms operation, but fnma, and it looks
29340         likely that we'll be able to use the latter.
29342 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
29344         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
29345         function.
29346         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
29347         inline fail caused by overwritable functions.
29349 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
29351         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
29352         unnecessary bits in the constant power of two case.
29354 2013-04-10  Richard Biener  <rguenther@suse.de>
29356         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
29357         broken code swapping operands.
29358         (vect_build_slp_tree): Do not compute load permutations here.
29359         (vect_analyze_slp_instance): Compute load permutations here,
29360         after building the SLP tree.
29362 2013-04-09  Christian Bruel  <christian.bruel@st.com>
29364         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
29365         of next/prev_real_insn.
29367 2013-04-09  Jan Hubicka  <jh@suse.cz>
29369         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
29370         Drop aliased parameter.
29371         (function_and_variable_visibility): Do not handle alias pairs.
29372         * cgraph.c (varpool_externally_visible_p): Update prototype.
29373         * varpool.c (varpool_add_new_variable): Update.
29375 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29377         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
29379 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
29381         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
29383         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
29385 2013-04-09  Marek Polacek  <polacek@redhat.com>
29387         PR tree-optimization/48762
29388         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
29390 2013-04-09  Richard Biener  <rguenther@suse.de>
29392         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
29393         dealing with cost.
29394         (vect_build_slp_tree): Likewise.
29395         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
29396         calculating the cost of a SLP instance.
29397         (vect_analyze_slp_instance): Use it from here, after building
29398         the SLP tree.
29400 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
29402         PR middle-end/56883
29403         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
29404         expand_omp_for_static_chunk): Use simple_p = true in
29405         force_gimple_operand_gsi calls when assigning to addressable decls.
29407 2013-04-09  Jeff Law  <law@redhat.com>
29409         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
29410         when the boolean was created by converting a wider object which
29411         had a boolean range.
29413 2013-04-09  Richard Biener  <rguenther@suse.de>
29415         * tree-vectorizer.h (slp_void_p): Remove.
29416         (slp_tree): Typedef before _slp_tree declaration.
29417         (struct _slp_tree): Use a vector of slp_tree as children.
29418         (vect_get_place_in_interleaving_chain): Remove.
29419         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
29420         Move ...
29421         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
29422         and make static.
29423         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
29424         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
29425         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
29426         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
29427         Use slp_node instead of slp_void_p and adjust.
29429 2013-04-09  Richard Biener  <rguenther@suse.de>
29431         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
29432         work that is not necessary.
29434 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
29436         PR tree-optimization/56854
29437         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
29438         forward into clobber stmts if it would change MEM_REF lhs into
29439         non-MEM_REF.
29441 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
29443         * tree.c (type_hash_lookup, type_hash_add): Make static.
29444         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
29446 2013-04-09  Richard Biener  <rguenther@suse.de>
29448         * tree.h (unsave_expr_now): Remove.
29449         * tree-inline.c (mark_local_for_remap_r): Remove.
29450         (unsave_expr_1): Likewise.
29451         (unsave_r): Likewise.
29452         (unsave_expr_now): Likewise.
29453         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
29454         (propagate_tree_value): Likewise.
29456 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
29458         * doc/rtl.texi (sequence): Rewrite documentation to match the
29459         current use of SEQUENCE rtl objects.
29460         * rtl.def (SEQUENCE): Likewise.
29462         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
29463         Update documentation.
29464         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
29465         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
29467         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
29469 2013-04-08  Teresa Johnson  <tejohnson@google.com>
29471         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
29472         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
29473         methods.
29474         (estimate_edge_size_and_time): Add comment to suggest using rounding
29475         methods.
29476         (estimate_node_size_and_time): Ditto.
29477         (remap_edge_change_prob): Use helper rounding divide methods.
29478         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
29479         (gimple_mod_pow2_value_transform): Ditto.
29480         (gimple_mod_subtract_transform): Ditto.
29481         (gimple_ic_transform): Ditto.
29482         (gimple_stringops_transform): Ditto.
29483         * stmt.c (conditional_probability): Ditto.
29484         (emit_case_dispatch_table): Ditto.
29485         * lto-cgraph.c (merge_profile_summaries): Ditto.
29486         * tree-optimize.c (execute_fixup_cfg): Ditto.
29487         * cfgcleanup.c (try_forward_edges): Ditto.
29488         * cfgloopmanip.c (scale_loop_profile): Ditto.
29489         (loopify): Ditto.
29490         (duplicate_loop_to_header_edge): Ditto.
29491         (lv_adjust_loop_entry_edge): Ditto.
29492         * tree-vect-loop.c (vect_transform_loop): Ditto.
29493         * profile.c (compute_branch_probabilities): Ditto.
29494         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
29495         * lto-streamer-in.c (input_cfg): Ditto.
29496         * gimple-streamer-in.c (input_bb): Ditto.
29497         * ipa-cp.c (update_profiling_info): Ditto.
29498         (update_specialized_profile): Ditto.
29499         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
29500         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
29501         rounding methods.
29502         * sched-rgn.c (compute_dom_prob_ps): Ditto.
29503         (compute_trg_info): Ditto.
29504         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
29505         (purge_dead_edges): Ditto.
29506         * loop-unswitch.c (unswitch_loop): Ditto.
29507         * cgraphclones.c (cgraph_clone_edge): Ditto.
29508         (cgraph_clone_node): Ditto.
29509         * tree-inline.c (copy_bb): Ditto.
29510         (copy_edges_for_bb): Ditto.
29511         (initialize_cfun): Ditto.
29512         (copy_cfg_body): Ditto.
29513         (expand_call_inline): Ditto.
29515 2013-04-08  Kai Tietz  <ktietz@redhat.com>
29517         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
29518         TARGET_CYGWIN64 by TARGET_64BIT.
29520 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
29522         * config/epiphany/epiphany.md (GPR_1): New constant.
29523         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
29524         * config/epiphany/epiphany.c (gen_compare_reg):
29525         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
29526         is already in place.
29527         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
29528         Don't require being called during rtl expansion; If y operlaps r0,
29529         return 0.
29530         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
29531         (epiphany_expand_epilogue): Likewise.
29533         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
29534         Don't use CC_FPmode for ORDERED / UNORDERED.
29535         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
29537         * config/epiphany/constraints.md (CnL): New constraint.
29538         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
29539         * config/epiphany/predicates.md (add_operand): Allow 1024.
29541         * config/epiphany/epiphany.md (logical_op): New code iterator.
29542         (op_mnc): New code attribute.
29543         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
29544         (mov_f+1, mov_f+2): New peephole2 patterns.
29546         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
29547         (cstoresi4): Also allow re-use of zero result when doing a NE
29548         comparison to a non-zero operand.
29549         Use (clobber (scratch)) for first insn if the gpr output is not needed.
29551         * config/epiphany/epiphany.md (<insn_opname>v2si3):
29552         Use gen_addsi3_i / gen_subsi3_i.
29554 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
29556         PR c++/34949
29557         PR c++/50243
29558         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
29559         contain anything but clobbers, at most one __builtin_stack_restore,
29560         optionally debug stmts and final resx, and if it has at least one
29561         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
29562         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
29563         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
29564         which isn't defaut definition, remove them.
29565         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
29566         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
29567         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
29568         with MEM_REF LHS with SSA_NAME address.
29570 2013-04-08  Jeff Law  <law@redhat.com>
29572         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
29574 2013-04-08  Richard Biener  <rguenther@suse.de>
29576         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
29577         extra newline.
29578         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
29579         determined vector type.
29580         (vect_analyze_data_refs): Likewise.
29581         (vect_get_new_vect_var): Adjust.
29582         (vect_create_destination_var): Preserve SSA name versions.
29583         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
29584         not dump anything here.
29586 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
29588         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
29589         Add member lr_slot_known.
29590         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
29591         if necessary.
29592         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
29593         Remove code that sets lr_slot_offset according to what a previous
29594         version of epiphany_emit_save_restore used to do.
29595         (epiphany_emit_save_restore): When doing an lr save or restore,
29596         set/verify lr_slot_known and lr_slot_offset.
29598 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
29600         PR target/54338
29601         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
29602         in ALL_REGS.
29604 2013-04-08  Richard Biener  <rguenther@suse.de>
29606         * alias.c (find_base_term): Fix thinko in previous change.
29608 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
29610         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
29611         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
29612         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
29613         if possible to compute val.
29614         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
29615         For QImode integers don't require anything about precision.  Use
29616         const_with_all_bytes_same to find out if the constant doesn't have
29617         repeated bytes in it.
29619 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29621         * config/s390/s390.c (s390_expand_insv): Only accept insertions
29622         within mode size.
29624 2013-04-08  Marek Polacek  <polacek@redhat.com>
29626         PR rtl-optimization/48182
29627         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
29628         value to 1.
29630 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29632         PR target/55487
29633         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
29634         nuses, make sure we have a label.
29636 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29638         PR target/56843
29639         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
29640         (rs6000_emit_swdiv_low_precision): Remove.
29641         (rs6000_emit_swdiv): Rewrite to handle between one and four
29642         iterations of Newton-Raphson generally; modify required number of
29643         iterations for some cases.
29644         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
29646 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
29648         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
29649         set-but-unused variable.
29651         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
29652         basic blocks of released function bodies garbage-collectable.
29654         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
29655         (struct rtl_opt_pass): Add TODO_df_finish.
29657         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
29659 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29661         * config/arm/constraints.md (q): New constraint.
29662         * config/arm/ldrdstrd.md: New file.
29663         * config/arm/arm.md (ldrdstrd.md) New include.
29664         (arm_movdi): Use "q" instead of "r" constraint
29665         for double-word memory access.
29666         (movdf_soft_insn): Likewise.
29667         * config/arm/vfp.md (movdi_vfp): Likewise.
29668         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
29669         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
29670         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
29671         (mem_ok_for_ldrd_strd): Likewise.
29672         (output_move_double): Update assertion.
29674 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29676         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
29678 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29680         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
29681         define_insn_and_split.
29682         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
29684 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29686         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
29687         define_insn_and_split.
29688         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
29689         (shiftsi3_compare): New pattern.
29690         (rrx): New pattern.
29691         * config/arm/unspecs.md (UNSPEC_RRX): New.
29693 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29695         * config/arm/arm.md (negdi_extendsidi): New pattern.
29696         (negdi_zero_extendsidi): Likewise.
29698 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29700         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
29701         define_insn_and_split.
29702         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
29703         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
29705 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29707         * config/arm/arm.md (arm_subdi3): Convert define_insn into
29708         define_insn_and_split.
29709         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
29710         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
29712 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29714         * config/arm/arm.md (subsi3_carryin): New pattern.
29715         (subsi3_carryin_const): Likewise.
29716         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
29717         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
29719 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29721         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
29723 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29725         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
29726         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
29728 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29730         * config/arm/arm.c (arm_expand_builtin): Change fcode
29731         type to unsigned int.
29733 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29735         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
29737 2013-04-04  Ian Lance Taylor  <iant@google.com>
29739         * doc/standards.texi (Standards): The Go frontend supports the Go 1
29740         language standard.
29742 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
29744         PR middle-end/56729
29745         * df-scan.c (df_insn_delete): Disable failing assert.
29747 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29749         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
29750         New function prototype.
29751         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
29752         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
29753         (arm_builtin_vectorized_function): New function.
29755 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29757         * config/arm/arm_neon_builtins.def: New file.
29758         * config/arm/arm.c (neon_builtin_data): Move contents to
29759         arm_neon_builtins.def.
29760         (enum arm_builtins): Include neon builtin definitions.
29761         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
29762         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
29764 2013-04-04  Marek Polacek  <polacek@redhat.com>
29766         PR tree-optimization/48186
29767         * predict.c (maybe_hot_frequency_p): Return false if
29768         HOT_BB_FREQUENCY_FRACTION is 0.
29769         (cgraph_maybe_hot_edge_p): Likewise.
29771 2013-04-04  Richard Biener  <rguenther@suse.de>
29773         PR tree-optimization/56826
29774         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
29775         more accurately.
29777 2013-04-04  Richard Biener  <rguenther@suse.de>
29779         PR tree-optimization/56213
29780         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
29781         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
29783 2013-04-04  Richard Biener  <rguenther@suse.de>
29785         PR tree-optimization/56837
29786         * tree-loop-distribution.c (classify_partition): For non-zero
29787         values require that the value has the same precision as its
29788         mode to be useful as memset value.
29790 2013-04-03  Nick Clifton  <nickc@redhat.com>
29792         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
29793         (fmssf4): Use fmsf.s on E3V5 architectures.
29794         (fnmasf4): Use fnmaf.s on E3V5 architectures.
29795         (fnmssf4): Use fnmsf.s on E3V5 architectures.
29797 2013-04-03  Jeff Law  <law@redhat.com>
29799         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
29800         (lra-eliminations.o): Likewise.
29802 2013-04-03  Teresa Johnson  <tejohnson@google.com>
29804         * gcov-io.c (compute_working_sets): Moved most of body of old
29805         compute_working_sets here from profile.c.
29806         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
29807         (gcov_working_set_t): Moved typedef here from basic-block.h
29808         (compute_working_set): Declare.
29809         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
29810         (get_working_sets): Renamed from compute_working_set,
29811         replace most of body with call to new compute_working_sets.
29812         (get_exec_counts): Replace call to compute_working_sets
29813         to get_working_sets.
29814         * profile.h (get_working_sets): Renamed from compute_working_set.
29815         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
29816         to get_working_sets.
29817         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
29818         * gcov-dump.c (dump_working_sets): New function.
29820 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
29822         * hwint.c (sext_hwi, zext_hwi): New functions.
29823         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
29824         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
29825         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
29826         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
29827         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
29828         (sext_hwi, zext_hwi): New functions.
29830 2013-04-03  Jeff Law  <law@redhat.com>
29832         PR tree-optimization/56799
29833         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
29834         back test for widening conversion erroneously dropped in prior change.
29836 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29838         PR target/56809
29839         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
29840         instead of next_real_insn.
29842 2013-04-03  Marek Polacek  <polacek@redhat.com>
29844         PR sanitizer/55702
29845         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
29847 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29849         PR target/56809
29850         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
29851         next_real_insn.
29852         (thumb1_output_casesi): Likewise.
29853         (thumb2_output_casesi): Likewise.
29855 2013-04-03  Richard Biener  <rguenther@suse.de>
29857         PR tree-optimization/56817
29858         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
29859         Split out ...
29860         (tree_unroll_loops_completely_1): ... new function to manually
29861         walk the loop tree, properly defering outer loops of unrolled
29862         loops to later iterations.
29864 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
29866         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
29867         (vectorizable_load): Likewise.
29868         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
29869         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
29871 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
29873         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
29874         BIT_FIELD_REF.
29876 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29878         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
29880 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
29882         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
29884 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
29886         PR tree-optimization/56790
29887         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
29888         folding.
29890 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
29892         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
29893         Handle VEC_MERGE.
29894         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
29895         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
29896         equal arguments.
29898 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
29900         PR c/19449
29901         * tree.h (force_folding_builtin_constant_p): New decl.
29902         * builtins.c (force_folding_builtin_constant_p): New variable.
29903         (fold_builtin_constant_p): Fold immediately also if
29904         force_folding_builtin_constant_p.
29906 2013-04-03  Richard Biener  <rguenther@suse.de>
29908         PR tree-optimization/56812
29909         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
29910         DRs of the same interleaving chain are independent.
29912 2013-04-02  Jason Merrill  <jason@redhat.com>
29914         * gdbinit.in (pbb): Use debug fn.
29916 2013-04-02  Lawrence Crowl  <crowl@google.com>
29918         * sese.h (struct ivtype_map_elt_s): Remove unused.
29919         (extern debug_ivtype_map): Remove unused.
29920         (extern eq_ivtype_map_elts): Remove unused.
29921         * sese.c (debug_ivtype_map): Removed unused.
29922         (debug_ivtype_map_1): Removed unused.
29923         (debug_ivtype_elt): Remove unused.
29924         (eq_ivtype_map_elts): Remove unused.
29926 2013-04-02  Kai Tietz  <ktietz@redhat.com>
29928         PR target/52790
29929         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
29930         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
29931         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
29932         function.
29933         (legitimize_pe_coff_symbol): Likewise.
29934         (is_imported_p): New helper-function.
29935         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
29936         for Windows x64 targets.
29937         (ix86_expand_prologue): Optimize for pe-coff targets.
29938         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
29939         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
29940         medium/large code-model.
29941         (legitimize_pic_address): Likewise.
29942         (legitimize_tls_address): Likewise.
29943         (ix86_expand_call): Likewise.
29944         (x86_output_mi_thunk): Likewise.
29945         (get_dllimport_decl): Add new beimport argument.
29946         (construct_plt_address): Don't assert for x64 pe-coff targets.
29947         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
29948         targets.
29949         (SYMBOL_FLAG_STUBVAR): New macro.
29950         (SYMBOL_REF_STUBVAR_P): Likewise.
29951         * config/i386/winnt.c (stub_list): New structure.
29952         (stub_head): New local variable.
29953         (i386_pe_record_stub): New function.
29954         (i386_pe_file_end): Emit refptr-stubs.
29956 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
29958         PR rtl-optimization/56745
29959         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
29960         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
29962         PR c++/34949
29963         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
29964         and both of them are MEM_REFs, just compare first argument for
29965         equality and attempt to deal even with differing offsets.
29967         PR c++/34949
29968         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
29969         of gimple_clobber_p to be MEM_REF.
29970         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
29971         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
29972         after gimplification.
29973         * asan.c (get_mem_ref_of_assignment): Don't instrument
29974         gimple_clobber_p stmts.
29975         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
29976         gimple_clobber_p stmt if they have MEM_REF lhs and
29977         are dead because of another gimple_clobber_p stmt.
29978         * tree-ssa-live.c (clear_unused_block_pointer): Treat
29979         gimple_clobber_p stmts like debug stmts.
29980         (remove_unused_locals): Remove clobbers with MEM_REF lhs
29981         that refer to unused VAR_DECLs or uninitialized values.
29982         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
29983         gimple_clobber_p stmts if they refer to removed parameters.
29984         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
29985         formatting.
29987 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
29989         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
29990         using SWI48 mode attribute.
29992 2013-04-02  Wei Mi  <wmi@google.com>
29994         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
29995         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
29996         *<rotate_insn><mode>3_mask in i386.md.
29998 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
30000         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
30002 2013-04-02  Richard Biener  <rguenther@suse.de>
30004         PR tree-optimization/56778
30005         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30006         Runtime alias tests are not supported for gather loads.
30007         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
30008         stmts referenced from SSA operands before updating SSA form.
30010 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
30011             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30013         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
30014         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
30015         * config/arm/cortex-a53.md: New file.
30016         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
30017         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
30018         * config/arm/arm.c (arm_issue_rate): Likewise.
30019         * config/arm/arm-tune.md: Regenerate
30020         * config/arm/arm-tables.opt: Regenerate.
30021         * config/arm/arm-cores.def: Add cortex-a53.
30023 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
30025         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
30026         non-static link.
30028 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30030         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
30031         scalar load/store operations using B/H registers.
30032         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
30034 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30036         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
30037         scalar move.
30038         * config/aarch64/aarch64.c
30039         (aarch64_simd_scalar_immediate_valid_for_move): New.
30040         * config/aarch64/aarch64-protos.h
30041         (aarch64_simd_scalar_immediate_valid_for_move): New.
30042         * config/aarch64/constraints.md (Dh, Dq): New.
30043         * config/aarch64/iterators.md (hq): New.
30045 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
30047         * reorg.c (get_branch_condition): Deal with conditional returns.
30048         (fill_simple_delay_slots): Remove dead code dealing with jumps.
30050 2013-04-01  Wei Mi  <wmi@google.com>
30052         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
30053         Truncate operand 2 using %b asm operand modifier.
30054         (*<shift_insn><mode>3_mask): Ditto.
30055         (*<rotate_insn><mode>3_mask): Ditto.
30057 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
30059         PR middle-end/56798
30060         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
30062 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
30064         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
30065         of next_real_insn.
30066         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
30068 2013-03-30  Lawrence Crowl  <crowl@google.com>
30070         * dse.c (clear_alias_sets): Remove never set.
30071         (disqualified_clear_alias_sets): Remove never set.
30072         (clear_alias_mode_pool): Remove never set.
30073         (dse_step0): Remove condition that is never true.
30074         (canon_address): Remove condition that is never true.
30075         (dse_step7): Remove condition that is never true.
30076         (rest_of_handle_dse): Remove condition that is never true.
30077         (rest_of_handle_dse::did_global): Remove never read from above.
30078         (dse_step2_spill): Remove never called from above.
30079         (dse_step5_spill): Remove never called from above.
30081 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
30083         * doc/md.texi (Standard Names) <casesi>: Update documentation for
30084         JUMP_TABLE_DATA changes.
30085         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
30086         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
30087         (Insns) <jump_table_data>: New entry.
30088         * doc/tm.texi: Regenerate.
30090         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
30092         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
30093         for table jump at the end of a basic block using tablejump_p.
30094         * targhooks.c (default_invalid_within_doloop): Likewise.
30095         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
30096         target hook implementation that is identical to the default hook.
30097         (rs6000_invalid_within_doloop): Remove.
30099         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
30100         unused variable from tablejump_p call.
30102         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
30103         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
30104         (INSN_DELETED_P): Likewise.
30105         (emit_jump_table_data): New prototype.
30106         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
30107         after 4th as unused.
30108         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
30109         * sched-vis.c (print_insn): Likewise.
30110         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
30111         insn for compatibility with back ends that use next_active_insn to
30112         identify jump table data.
30113         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
30114         (remove_insn): Likewise.
30115         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
30116         to be emitted.
30117         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
30118         (emit_jump_table_data): New function.
30120         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
30121         basic block, a JUMP_TABLE_DATA never is.
30122         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
30123         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
30124         off from code handling real insns.
30125         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
30126         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
30127         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
30128         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
30129         is not a NONDEBUG_INSN_P.
30130         * ira-costs.c (scan_one_insn): Likewise.
30131         * jump.c (mark_all_labels): Likewise.
30132         (mark_jump_label_1): Likewise.
30133         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30134         * lra.c (get_insn_freq): Expect all insns reaching here to be in
30135         a basic block.
30136         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
30137         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
30138         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
30139         JUMP_TABLE_DATA_P insns.
30140         (calculate_elim_costs_all_insns): Likewise.
30141         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
30142         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
30143         (delete_output_reload): Code style fixups.
30144         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
30145         insn flags on this non-insn.
30146         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
30147         as scheduling barriers, for pre-change compatibility.
30148         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
30149         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
30151         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
30152         redundant JUMP_TABLE_DATA_P test.
30153         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
30154         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30155         (frv_for_each_packet): Likewise.
30156         * config/i386/i386.c (min_insn_size): Likewise.
30157         (ix86_avoid_jump_mispredicts): Likewise.
30158         * config/m32r/m32r.c (m32r_is_insn): Likewise.
30159         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
30160         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30161         (mips16_insn_length): Robustify.
30162         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
30163         (mips16_split_long_branches): Likewise.
30164         * config/pa/pa.c (pa_combine_instructions): Likewise.
30165         * config/rs6000/rs6000.c (get_next_active_insn): Treat
30166         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
30167         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
30168         as contributing to pool range lengths.
30169         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
30170         Remove redundant JUMP_TABLE_DATA_P test.
30171         (sh_loop_align): Likewise.
30172         (split_branches): Likewise.
30173         (sh_insn_length_adjustment): Likewise.
30174         * config/spu/spu.c (get_branch_target): Likewise.
30176 2013-03-29  Jan Hubicka  <jh@suse.cz>
30178         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
30179         gcov streaming; stream hot bb threshold to ltrans.
30180         * predict.c (get_hot_bb_threshold): Break out from ....
30181         (maybe_hot_count_p): ... here.
30182         (set_hot_bb_threshold): New function.
30183         * lto-section-in.c (lto_section_name): Add profile.
30184         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
30185         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
30186         and data-streamer.h
30187         (histogram_entry): New structure.
30188         (histogram, histogram_pool): New global vars.
30189         (histogram_hash): New structure.
30190         (histogram_hash::hash): New method.
30191         (histogram_hash::equal): Likewise.
30192         (account_time_size): New function.
30193         (cmp_counts): New function.
30194         (dump_histogram): New function.
30195         (ipa_profile_generate_summary): New function.
30196         (ipa_profile_write_summary): New function.
30197         (ipa_profile_read_summary): New function.
30198         (ipa_profile): Decide on threshold.
30199         (pass_ipa_profile): Add ipa_profile_write_summary and
30200         ipa_profile_read_summary.
30201         * Makefile.in (ipa.o): Update dependencies.
30202         * lto-streamer.h (LTO_section_ipa_profile): New section.
30204 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
30206         * tree.h (VAR_P): New.
30208 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
30210         PR lto/56777
30211         * doc/invoke.texi ([-fwhole-program]): Fix typo.
30213 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
30215         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
30216         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30217         (control_flow_insn_p): Likewise.
30218         * cfgrtl.c (duplicate_insn_chain): Likewise.
30219         * final.c (get_attr_length_1): Likewise.
30220         (shorten_branches): Likewise.
30221         (final_scan_insn): Likewise.
30222         * function.c (instantiate_virtual_regs): Likewise.
30223         * gcse.c (insert_insn_end_basic_block): Likewise.
30224         * ira-costs.c (scan_one_insn): Likewise.
30225         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30226         * lra.c (check_rtl): Likewise.
30227         * reload1.c (elimination_costs_in_insn): Likewise.
30228         * reorg.c (follow_jumps): Likewise.
30230         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
30231         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30232         (thumb_far_jump_used_p): Likewise.
30233         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
30234         (workaround_speculation): Likewise.
30235         (add_sched_insns_for_speculation): Likewise.
30236         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
30237         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30238         (frv_for_each_packet): Likewise.
30239         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
30240         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
30241         (final_emit_insn_group_barriers): Likewise.
30242         * config/m32r/m32r.c (m32r_is_insn): Likewise.
30243         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30244         (mips16_insn_length): Likewise.
30245         * config/pa/pa.c (pa_reorg): Likewise.
30246         (pa_combine_instructions): Likewise.
30247         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
30248         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
30249         (sh_reorg): Likewise.
30250         (split_branches): Likewise.
30251         * config/spu/spu.c (get_branch_target): Likewise.
30253         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
30254         JUMP_TABLE_DATA_P.
30256 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
30258         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
30259         Fix declaration name.
30261 2013-03-28  Lawrence Crowl  <crowl@google.com>
30263         * graphds.h (struct graph.indicies): Remove unused.
30264         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
30265         (SCOP_ORIGINAL_PDDRS): Remove unused.
30266         * sese.h (extern insert_loop_close_phis): Removed unused.
30267         (extern insert_guard_phis): Removed unused.
30268         (extern ivtype_map_elt_info): Removed unused.
30269         (new_ivtype_map_elt): Removed unused.
30270         * sese.c (ivtype_map_elt_info): Removed unused.
30272 2013-03-28  Lawrence Crowl  <crowl@google.com>
30274         * Makefile.in: Add several missing include dependences.
30275         (DUMPFILE_H): New.
30276         (test-dump.o): New.  This object is not added to any executable,
30277         but is present for ad-hoc testing.
30278         * bitmap.c
30279         (debug (const bitmap_head_def &)): New.
30280         (debug (const bitmap_head_def *)): New.
30281         * bitmap.h
30282         (extern debug (const bitmap_head_def &)): New.
30283         (extern debug (const bitmap_head_def *)): New.
30284         * cfg.c
30285         (debug (edge_def &)): New.
30286         (debug (edge_def *)): New.
30287         * cfghooks.c
30288         (debug (basic_block_def &)): New.
30289         (debug (basic_block_def *)): New.
30290         * dumpfile.h
30291         (dump_node (const_tree, int, FILE *)): Correct source file.
30292         * dwarf2out.c
30293         (debug (die_struct &)): New.
30294         (debug (die_struct *)): New.
30295         * dwarf2out.h
30296         (extern debug (die_struct &)): New.
30297         (extern debug (die_struct *)): New.
30298         * gimple-pretty-print.c
30299         (debug (gimple_statement_d &)): New.
30300         (debug (gimple_statement_d *)): New.
30301         * gimple-pretty-print.h
30302         (extern debug (gimple_statement_d &)): New.
30303         (extern debug (gimple_statement_d *)): New.
30304         * ira-build.c
30305         (debug (ira_allocno_copy &)): New.
30306         (debug (ira_allocno_copy *)): New.
30307         (debug (ira_allocno &)): New.
30308         (debug (ira_allocno *)): New.
30309         * ira-int.h
30310         (extern debug (ira_allocno_copy &)): New.
30311         (extern debug (ira_allocno_copy *)): New.
30312         (extern debug (ira_allocno &)): New.
30313         (extern debug (ira_allocno *)): New.
30314         * ira-lives.c
30315         (debug (live_range &)): New.
30316         (debug (live_range *)): New.
30317         * lra-int.h
30318         (debug (lra_live_range &)): New.
30319         (debug (lra_live_range *)): New.
30320         * lra-lives.c
30321         (debug (lra_live_range &)): New.
30322         (debug (lra_live_range *)): New.
30323         * omega.c
30324         (debug (omega_pb_d &)): New.
30325         (debug (omega_pb_d *)): New.
30326         * omega.h
30327         (extern debug (omega_pb_d &)): New.
30328         (extern debug (omega_pb_d *)): New.
30329         * print-rtl.c
30330         (debug (const rtx_def &)): New.
30331         (debug (const rtx_def *)): New.
30332         * print-tree.c
30333         (debug_tree (tree): Move within file.
30334         (debug_raw (const tree_node &)): New.
30335         (debug_raw (const tree_node *)): New.
30336         (dump_tree_via_hooks (const tree_node *, int)): New.
30337         (debug (const tree_node &)): New.
30338         (debug (const tree_node *)): New.
30339         (debug_verbose (const tree_node &)): New.
30340         (debug_verbose (const tree_node *)): New.
30341         (debug_head (const tree_node &)): New.
30342         (debug_head (const tree_node *)): New.
30343         (debug_body (const tree_node &)): New.
30344         (debug_body (const tree_node *)): New.
30345         (debug_vec_tree (tree): Move and reimplement in terms of dump.
30346         (debug (vec<tree, va_gc> &)): New.
30347         (debug (vec<tree, va_gc> *)): New.
30348         * rtl.h
30349         (extern debug (const rtx_def &)): New.
30350         (extern debug (const rtx_def *)): New.
30351         * sbitmap.c
30352         (debug_raw (simple_bitmap_def &)): New.
30353         (debug_raw (simple_bitmap_def *)): New.
30354         (debug (simple_bitmap_def &)): New.
30355         (debug (simple_bitmap_def *)): New.
30356         * sbitmap.h
30357         (extern debug (simple_bitmap_def &)): New.
30358         (extern debug (simple_bitmap_def *)): New.
30359         (extern debug_raw (simple_bitmap_def &)): New.
30360         (extern debug_raw (simple_bitmap_def *)): New.
30361         * sel-sched-dump.c
30362         (debug (vinsn_def &)): New.
30363         (debug (vinsn_def *)): New.
30364         (debug_verbose (vinsn_def &)): New.
30365         (debug_verbose (vinsn_def *)): New.
30366         (debug (expr_def &)): New.
30367         (debug (expr_def *)): New.
30368         (debug_verbose (expr_def &)): New.
30369         (debug_verbose (expr_def *)): New.
30370         (debug (vec<rtx> &)): New.
30371         (debug (vec<rtx> *)): New.
30372         * sel-sched-dump.h
30373         (extern debug (vinsn_def &)): New.
30374         (extern debug (vinsn_def *)): New.
30375         (extern debug_verbose (vinsn_def &)): New.
30376         (extern debug_verbose (vinsn_def *)): New.
30377         (extern debug (expr_def &)): New.
30378         (extern debug (expr_def *)): New.
30379         (extern debug_verbose (expr_def &)): New.
30380         (extern debug_verbose (expr_def *)): New.
30381         (extern debug (vec<rtx> &)): New.
30382         (extern debug (vec<rtx> *)): New.
30383         * sel-sched-ir.h
30384         (_list_iter_cond_expr): Make inline instead of static.
30385         * sreal.c
30386         (debug (sreal &)): New.
30387         (debug (sreal *)): New.
30388         * sreal.h
30389         (extern debug (sreal &)): New.
30390         (extern debug (sreal *)): New.
30391         * tree.h
30392         (extern debug_raw (const tree_node &)): New.
30393         (extern debug_raw (const tree_node *)): New.
30394         (extern debug (const tree_node &)): New.
30395         (extern debug (const tree_node *)): New.
30396         (extern debug_verbose (const tree_node &)): New.
30397         (extern debug_verbose (const tree_node *)): New.
30398         (extern debug_head (const tree_node &)): New.
30399         (extern debug_head (const tree_node *)): New.
30400         (extern debug_body (const tree_node &)): New.
30401         (extern debug_body (const tree_node *)): New.
30402         (extern debug (vec<tree, va_gc> &)): New.
30403         (extern debug (vec<tree, va_gc> *)): New.
30404         * tree-cfg.c
30405         (debug (struct loop &)): New.
30406         (debug (struct loop *)): New.
30407         (debug_verbose (struct loop &)): New.
30408         (debug_verbose (struct loop *)): New.
30409         * tree-dump.c: Add header dependence.
30410         * tree-flow.h
30411         (extern debug (struct loop &)): New.
30412         (extern debug (struct loop *)): New.
30413         (extern debug_verbose (struct loop &)): New.
30414         (extern debug_verbose (struct loop *)): New.
30415         * tree-data-ref.c
30416         (debug (data_reference &)): New.
30417         (debug (data_reference *)): New.
30418         (debug (vec<data_reference_p> &)): New.
30419         (debug (vec<data_reference_p> *)): New.
30420         (debug (vec<ddr_p> &)): New.
30421         (debug (vec<ddr_p> *)): New.
30422         * tree-data-ref.h
30423         (extern debug (data_reference &)): New.
30424         (extern debug (data_reference *)): New.
30425         (extern debug (vec<data_reference_p> &)): New.
30426         (extern debug (vec<data_reference_p> *)): New.
30427         (extern debug (vec<ddr_p> &)): New.
30428         (extern debug (vec<ddr_p> *)): New.
30429         * tree-ssa-alias.c
30430         (debug (pt_solution &)): New.
30431         (debug (pt_solution *)): New.
30432         * tree-ssa-alias.h
30433         (extern debug (pt_solution &)): New.
30434         (extern debug (pt_solution *)): New.
30435         * tree-ssa-alias.c
30436         (debug (_var_map &)): New.
30437         (debug (_var_map *)): New.
30438         (debug (tree_live_info_d &)): New.
30439         (debug (tree_live_info_d *)): New.
30440         * tree-ssa-alias.h
30441         (extern debug (_var_map &)): New.
30442         (extern debug (_var_map *)): New.
30443         (extern debug (tree_live_info_d &)): New.
30444         (extern debug (tree_live_info_d *)): New.
30446 2013-03-28  Jan Hubicka  <jh@suse.cz>
30448         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
30450 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
30452         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
30453         record only when desired or required.
30455 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
30457         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
30458         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
30460 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30462         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
30463         (*andsi3_compare0_uxtw): New pattern.
30464         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
30465         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
30467 2013-03-28  Jan Hubicka  <jh@suse.cz>
30469         * data-streamer-in.c (streamer_read_gcov_count): New function.
30470         * gimple-streamer-out.c: Include value-prof.h.
30471         (output_gimple_stmt): Output histogram.
30472         (output_bb): Use streamer_write_gcov_count.
30473         * value-prof.c: Include data-streamer.h
30474         (dump_histogram_value): Add HIST_TYPE_MAX.
30475         (stream_out_histogram_value): New function.
30476         (stream_in_histogram_value): New function.
30477         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
30478         (stream_out_histogram_value, stream_in_histogram_value): Declare.
30479         * data-streamer-out.c (streamer_write_gcov_count): New function.
30480         (streamer_write_gcov_count_stream): New function.
30481         * lto-cgraph.c (lto_output_edge): Update counter streaming.
30482         (lto_output_node): Likewise.
30483         (input_node, input_edge): Likewise.
30484         * lto-streamer-out.c (output_cfg): Update streaming.
30485         * lto-streamer-in.c (input_cfg): Likewise.
30486         * data-streamer.h (streamer_write_gcov_count,
30487         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
30488         * gimple-streamer-in.c: Include value-prof.h
30489         (input_gimple_stmt): Input histograms.
30490         (input_bb): Update profile streaming.
30492 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
30494         * genmodes.c (emit_max_int): New function.
30495         (emit_insn_modes_h): Added call to emit_max_function.
30496         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
30497         Added doc.
30498         * machmode.def: Fixed comment.
30500 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
30502         * combine.c (try_combine): Removed useless assert.
30503         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
30505 2013-03-28  Marek Polacek  <polacek@redhat.com>
30506             Richard Biener  <rguenther@suse.de>
30508         PR tree-optimization/56695
30509         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
30510         build signed result of a vector comparison.
30511         * tree-cfg.c (verify_gimple_comparison): Check that a result
30512         of a vector comparison has signed type.
30514 2013-03-28  Richard Biener  <rguenther@suse.de>
30516         PR tree-optimization/37021
30517         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
30518         do not restrict gaps between groups.
30519         * tree-vect-stmts.c (vectorizable_load): Properly account for
30520         a gap between groups.
30522 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30524         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
30525         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
30526         is not enabled.
30528 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
30530         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
30531         * doc/extend.texi (Named Address Spaces): Ditto.
30532         (Variable Attributes): Ditto.
30534 2013-03-27  Kai Tietz  <ktietz@redhat.com>
30536         * config.build: Add support for cygwin x64 target.
30537         * config.gcc: Likewise.
30538         * config.host: Likewise.
30539         * configure.ac: Likewise
30540         * configure: Regenerated.
30542 2013-03-27  Kai Tietz  <ktietz@redhat.com>
30544         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
30545         * config/i386/t-cygwin-w64: New file.
30546         * config/i386/cygwin-w64.h: New file.
30547         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
30548         and add support for x64-cygwin target.
30549         (CPP_SPEC): Likewise.
30550         (CXX_WRAP_SPEC_LIST): Undefine before define.
30551         (LIBGCJ_SONAME): Use 15 as version.
30553 2013-03-27  Richard Biener  <rguenther@suse.de>
30555         PR tree-optimization/56716
30556         * tree-ssa-structalias.c (perform_var_substitution): Adjust
30557         dumping for ref nodes.
30559 2013-03-27  Martin Jambor  <mjambor@suse.cz>
30561         PR tree-optimization/55334
30562         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
30563         restricted pointers to arrays.
30565 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
30567         * Makefile.in (.SUFFIXES): Add .cc.
30568         (.c.o): Apply same recipe for implicit rule .cc.o.
30570 2013-03-27  Richard Biener  <rguenther@suse.de>
30572         PR tree-optimization/37021
30573         * tree-vect-data-refs.c (vect_check_strided_load): Allow
30574         REALPART/IMAGPART_EXPRs around the supported refs.
30575         * tree-ssa-structalias.c (find_func_aliases): Assume that
30576         floating-point values are not used to transfer pointers.
30578 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
30580         * target.def (TARGET_HAS_IFUNC_P): New target hook.
30581         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
30582         * doc/tm.texi: Regenerate.
30583         * targhooks.h (default_has_ifunc_p): New.
30584         * targhooks.c (default_has_ifunc_p): Ditto.
30585         * config/linux-protos.h: New file.
30586         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
30587         hook for linux which disables support of indirect functions in android.
30588         * config/linux-android.c: New file.
30589         * config/t-linux-android.c: Ditto.
30590         * config.gcc: Added new object file linux-android.o.
30591         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
30592         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
30593         * varasm.c (do_assemble_alias): Likewise.
30594         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
30595         doesn't support indirect functions.
30596         * configure: Regenerate.
30598 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
30600         PR target/56102
30601         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
30602         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
30603         mult-word mode.
30605 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30607         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
30609 2013-03-27  Terry Guo  <terry.guo@arm.com>
30611         * config/arm/arm-cores.def: Added core cortex-r7.
30612         * config/arm/arm-tune.md: Regenerated.
30613         * config/arm/arm-tables.opt: Regenerated.
30614         * doc/invoke.texi: Added entry for core cortex-r7.
30616 2013-03-27  Walter Lee  <walt@tilera.com>
30618         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
30619         double-decrement of next_scratch_regno.
30621 2013-03-27  Walter Lee  <walt@tilera.com>
30623         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
30624         input operands.
30625         (insn_v1mulus): Ditto.
30626         (insn_v2muls): Ditto.
30628 2013-03-27  Walter Lee  <walt@tilera.com>
30630         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
30631         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
30633 2013-03-27  Walter Lee  <walt@tilera.com>
30635         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
30636         (*sibcall_value): Ditto.
30638 2013-03-27  Walter Lee  <walt@tilera.com>
30640         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
30641         (insn_mnz_v8qi): ... this ...
30642         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
30643         vector equivalent.
30644         (insn_v<n>mnz): Replaced by ...
30645         (insn_v1mnz): ... this ...
30646         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
30647         equivalent.
30648         (insn_mz_<mode>): Replaced by ...
30649         (insn_mz_v8qi): ... this ...
30650         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
30651         vector equivalent.
30652         (insn_v<n>mz): Replaced by ...
30653         (insn_v1mz): ... this ...
30654         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
30655         equivalent.
30657 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
30659         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
30661 2013-03-26  Roland McGrath  <mcgrathr@google.com>
30663         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
30664         than fprintf with a non-constant, non-format string.
30666 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
30668         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
30669         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
30670         operand 0 predicate.
30671         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
30672         attribute.  Use general_x64nomem_operand as operand 1 predicate.
30673         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
30674         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
30675         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
30676         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
30677         (mov<mode>_insv_1): Remove expander.  Merge insn with
30678         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
30679         Use general_x64nomem_operand as operand 1 predicate.
30680         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
30681         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
30682         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
30683         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
30684         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
30685         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
30686         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
30687         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
30688         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
30689         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
30690         (general_x64nomem_operand): Ditto.
30692 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30694         * config/rtems.opt: Add -pthread option.
30696 2013-03-26  Richard Biener  <rguenther@suse.de>
30698         * alias.c (find_base_term): Avoid redundant and not used recursion.
30699         (base_alias_check): Get the initial base term from the caller.
30700         (true_dependence_1): Compute and pass base terms to base_alias_check.
30701         (write_dependence_p): Likewise.
30702         (may_alias_p): Likewise.
30704 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
30706         * config/aarch64/aarch64.c (aarch64_classify_address): Support
30707         PC-relative load in SI modes and above only.
30709 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
30711         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
30712         * config/arm/iwmmxt.md (WCGR0): Update.
30713         (WCGR1, WCGR2, WCGR3): Likewise.
30715 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
30717         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
30718         Use x64 and nox64 isa attributes.
30720 2013-03-26  Richard Biener  <rguenther@suse.de>
30722         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
30723         alignment computations and rely on get_object_alignment_1
30724         for the !TYPE_P case.
30725         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
30727 2013-03-26  Walter Lee  <walt@tilera.com>
30729         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
30730         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
30732 2013-03-25  Jeff Law  <law@redhat.com>
30734         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
30735         check for INTEGRAL_TYPE_P that was missing due to checking in
30736         wrong version of prior patch.
30738 2013-03-25  Walter Lee  <walt@tilera.com>
30740         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
30741         TILEGX_INSN_SHUFFLEBYTES1.
30742         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
30743         shufflebytes1.
30744         (tilegx_builtins): Ditto.
30745         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
30747 2013-03-25  Walter Lee  <walt@tilera.com>
30749         * config/tilegx/tilegx.md (floatsisf2): New pattern.
30750         (floatunssisf2): New pattern.
30751         (floatsidf2): New pattern.
30752         (floatunssidf2): New pattern.
30754 2013-03-25  Walter Lee  <walt@tilera.com>
30756         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
30757         tests for constraint J, K, N, P.
30759 2013-03-25  Walter Lee  <walt@tilera.com>
30761         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
30762         Use indirect/pcrel encoding.
30763         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
30764         Ditto.
30766 2013-03-25  Steve Ellcey  <sellcey@mips.com>
30768         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
30769         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
30770         * config/mips/mips.c (mips_option_override): Set IMADD default.
30771         * config/mips/mips.h (PTF_AVOID_IMADD): New.
30772         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
30773         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
30774         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
30775         * doc/invoke.texi (-mimadd/-mno-imadd): New.
30777 2013-03-25  Jeff Law  <law@redhat.com>
30779         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
30780         slightly to avoid creating and folding useless trees.  Simplify
30781         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
30783 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
30785         * config/i386/i386.md (*zero_extendsidi2): Merge with
30786         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
30787         * config/i386/predicates.md (x86_64_zext_operand): Rename from
30788         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
30789         targets.  Clarify comment.
30791 2013-03-25  Martin Jambor  <mjambor@suse.cz>
30793         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
30794         pass-through jump functions differently.
30795         (ipa_read_jump_function): Likewise.  Also use setter functions to set
30796         up jump functions.
30798 2013-03-25  Martin Jambor  <mjambor@suse.cz>
30800         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
30801         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
30802         process it.
30803         (ipa_get_indirect_edge_target): New function.
30804         (devirtualization_time_bonus): New parameter known_aggs, pass it to
30805         ipa_get_indirect_edge_target.  Update all callers.
30806         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
30807         ipa_get_indirect_edge_target_1 instead of calling
30808         ipa_get_indirect_edge_target.
30809         (create_specialized_node): Pass aggvlas to
30810         ipcp_discover_new_direct_edges.
30812 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30814         * config/arm/arm.md (f_sels, f_seld): New types.
30815         (*cmov<mode>): New pattern.
30816         * config/arm/predicates.md (arm_vsel_comparison_operator): New
30817         predicate.
30819 2013-03-25  Kai Tietz  <ktietz@redhat.com>
30821         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
30822         POSIX-printf for mingw-hosted  builds.
30824 2013-03-25  Richard Biener  <rguenther@suse.de>
30826         PR middle-end/56694
30827         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
30828         must-not-throw stmt location.
30830 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30832         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
30833         Emit load-acquire versions when acq is true.
30834         (arm_emit_store_exclusive): Add rel parameter.
30835         Emit store-release versions when rel is true.
30836         (arm_split_compare_and_swap): Use acquire-release instructions
30837         instead.
30838         of barriers when appropriate.
30839         (arm_split_atomic_op): Likewise.
30840         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
30841         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
30842         (VUNSPEC_SLX): Likewise.
30843         (VUNSPEC_LDA): Likewise.
30844         (VUNSPEC_STL): Likewise.
30845         * config/arm/sync.md (atomic_load<mode>): New pattern.
30846         (atomic_store<mode>): Likewise.
30847         (arm_load_acquire_exclusive<mode>): Likewise.
30848         (arm_load_acquire_exclusivesi): Likewise.
30849         (arm_load_acquire_exclusivedi): Likewise.
30850         (arm_store_release_exclusive<mode>): Likewise.
30852 2013-03-25  Catherine Moore  <clm@codesourcery.com>
30854         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
30855         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
30856         * config/mip/predicates.md (lwsp_swsp_operand,
30857         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
30858         sb16_operand, db4_operand, db7_operand, ib3_operand,
30859         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
30860         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
30861         andi16_operand): New predicates.
30862         * config/mips/mips.md (compression): New attribute.
30863         (enabled): New attribute.
30864         (length): Consider compression in computing length.
30865         (shift_compression): New code attribute.
30866         (*add<mode>3): New operands. Record compression.
30867         (sub<mode>3): Likewise.
30868         (one_cmpl<mode>2): Likewise.
30869         (*and<mode>3): Likewise.
30870         (*ior<mode>3): Likewise.
30871         (unnamed pattern for xor): Likewise.
30872         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
30873         (*<optab><mode>3): Likewise.
30874         (*mov<mode>_internal: Likewise.
30875         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
30876         (mips_unsigned_immediate_p): New.
30877         (umips_lwsp_swsp_address_p): New.
30878         (m16_based_address_p): New.
30879         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
30880         (mips_unsigned_immediate_p): New prototype.
30881         (lwsp_swsp_address_p): New prototype.
30882         (m16_based_address_p): New prototype.
30883         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
30884         (mips_signed_immediate_p): New function.
30885         (m16_based_address_p): New function.
30886         (lwsp_swsp_address_p): New function.
30887         (mips_print_operand_punctuation): Recognize short delay slot insns
30888         for microMIPS.add<mode>3"
30890 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30892         PR target/56720
30893         * config/arm/iterators.md (v_cmp_result): New mode attribute.
30894         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
30896 2013-03-25  Richard Biener  <rguenther@suse.de>
30898         PR tree-optimization/56689
30899         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
30900         any edge.
30902 2013-03-25  Richard Biener  <rguenther@suse.de>
30904         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
30905         of bitmap.
30906         (memory_references): Likewise.
30907         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
30908         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
30909         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
30910         (gather_mem_refs_in_loops): Fold into ...
30911         (analyze_memory_references): ... this.  Move initialization
30912         to tree_ssa_lim_initialize.
30913         (fill_always_executed_in): Rename to ...
30914         (fill_always_executed_in_1): ... this.
30915         (fill_always_executed_in): Move contains_call computation to
30916         this new function from ...
30917         (tree_ssa_lim_initialize): ... here.
30918         (tree_ssa_lim): Call fill_always_executed_in.
30920 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
30922         * postreload.c (reload_combine): Fix code detecting returns.
30924 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
30926         * function.c (emit_use_return_register_into_block): On cc0 targets,
30927         do not emit the sequence between cc0 setter and user.
30929 2013-03-25  Kai Tietz  <ktietz@redhat.com>
30931         * config/i386/predicates.md (local_symbolic_operand): Interpret
30932         dll-imported symbols as none-local.
30934 2013-03-25  Richard Biener  <rguenther@suse.de>
30936         * tree-ssa-loop-im.c (struct depend): Remove.
30937         (struct lim_aux_data): Make depends a vec of gimples.
30938         (free_lim_aux_data): Adjust.
30939         (add_dependency): Likewise.
30940         (set_level): Likewise.
30942 2013-03-25  Richard Biener  <rguenther@suse.de>
30944         PR middle-end/56434
30945         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
30946         the pointer returned by calls with ECF_MALLOC set.
30948 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
30950         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
30952 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
30954         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
30955         using MMXMODE mode iterator.
30956         (*move<mode>_internal): Merge with *movv2sf_internal and
30957         *movv2sf_internal_rex64 using MMXMODE mode iterator.
30959 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
30961         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
30962         (record_last_mem_set_info): Likewise.
30964         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
30965         of XNEWVEC followed by memset.
30966         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
30968 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
30970         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
30971         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
30972         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
30973         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
30974         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
30975         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
30976         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
30977         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
30978         BARRIER_P instead of GET_CODE.
30980 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
30982         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
30983         inaccuracy in the probing code.
30985         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
30986         (ctrapdi4): Likewise.
30988 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
30990         * calls.c (expand_call): Add missing guard to code handling return
30991         of non-BLKmode structures in MSB.
30992         * function.c (expand_function_end): Likewise.
30994 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
30996         * combine.c (try_combine): Adjust comment.  Do not add the set of
30997         insn #0 if the destination indirectly is set or dies in insn #2.
30998         Tidy up code to distribute a new note.
31000 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31002         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
31003         also for alternatives 16 and 17.
31005 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31007         * config/i386/sse.md (*mov<mode>_internal): Merge with
31008         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
31009         Emit insn template depending on type attribute.  Use
31010         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31011         movd instead of movq mnemonic for interunit moves.  Rewrite mode
31012         attribute calculation.  Remove unit attribute calculation.
31013         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
31014         Set prefix_data16 attribute for DImode ssemov types.
31015         Use Ym instead of y for SSE-MMX conversion alternatives.
31016         Reorder operand constraints.
31018 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
31020         * df.h (df_insn_delete): Adjust prototype.
31021         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
31022         and let it decide whether mark the basic block dirty.
31023         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
31024         * df-scan.c (df_insn_info_delete): New helper function, split
31025         off from df_insn_delete.
31026         (df_scan_free_bb_info): Use it.
31027         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
31028         Likewise.
31029         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
31030         that the insn is actually an insn and it has a non-NULL basic block.
31031         Do not mark basic block dirty if only deleting a DEBUG_INSN.
31033 2013-03-22  Richard Biener  <rguenther@suse.de>
31035         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
31036         dep_ref members.
31037         (mem_ref_alloc): Do not allocate them.
31038         (refs_independent_p): Do not query or maintain a cache.
31040 2013-03-22  Richard Biener  <rguenther@suse.de>
31042         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
31043         (gather_mem_refs_in_loops): Do not compute it.
31044         (analyze_memory_references): Do not allocate it.
31045         (tree_ssa_lim_finalize): Do not free it.
31046         (for_all_locs_in_loop): Do not query all_refs_in_loop.
31048 2013-03-22  Richard Biener  <rguenther@suse.de>
31050         * is-a.h (as_a): Use gcc_checking_assert.
31052 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
31054         * config/aarch64/aarch64.c (aarch64_print_operand): New
31055         format specifier for printing a constant in hex.
31056         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
31057         format specifier for printing second operand.
31059 2013-03-22  Richard Biener  <rguenther@suse.de>
31061         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
31062         bitmaps.
31063         (gather_mem_refs_in_loops): Perform store accumulation here.
31064         (create_vop_ref_mapping_loop): Remove.
31065         (create_vop_ref_mapping): Likewise.
31066         (analyze_memory_references): Initialize refs_stored_in_loop.
31067         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
31068         (record_indep_loop): Remove.
31069         (record_dep_loop): New function.
31070         (ref_indep_loop_p_1): Adjust to only walk over references
31071         in the loop, not its subloops.
31072         (ref_indep_loop_p): Rename to ...
31073         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
31074         maintaining a more fine-grained cache.
31075         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
31076         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
31078 2013-03-22  Richard Biener  <rguenther@suse.de>
31080         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
31081         (struct mem_ref): Make accesses_in_loop a vec of a vec of
31082         aggregate mem_ref_loc.
31083         (free_mem_ref_locs): Inline into ...
31084         (memref_free): ... this and adjust.
31085         (mem_ref_alloc): Adjust.
31086         (mem_ref_locs_alloc): Remove.
31087         (record_mem_ref_loc): Adjust.
31088         (get_all_locs_in_loop): Rewrite into ...
31089         (for_all_locs_in_loop): ... this iterator.
31090         (rewrite_mem_ref_loc): New functor.
31091         (rewrite_mem_refs): Use for_all_locs_in_loop.
31092         (sm_set_flag_if_changed): New functor.
31093         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
31094         (ref_always_accessed): New functor.
31095         (ref_always_accessed_p): Use for_all_locs_in_loop.
31097 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31099         * tree-pass.h (PROP_gimple_lvec): New.
31100         * passes.c (dump_properties): Handle PROP_gimple_lvec.
31101         (init_optimization_passes): Move pass_lower_vector.
31102         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
31103         PROP_gimple_lvec.
31104         (pass_lower_vector): Provide PROP_gimple_lvec.
31105         (pass_lower_vector_ssa): Likewise.
31106         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
31108 2013-03-21  Mark Wielaard  <mjw@redhat.com>
31110         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
31112 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
31114         * config/i386/i386.md (*movdi_internal): Disparage slightly
31115         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
31116         conversion alternatives.
31118 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
31120         PR middle-end/48087
31121         * diagnostic.def (DK_WERROR): New kind.
31122         * diagnostic.h (werrorcount): Define.
31123         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
31124         promoted to DK_ERROR, increment DK_WERROR counter instead of
31125         DK_ERROR counter.
31126         * toplev.c (toplev_main): Call print_ignored_options even if
31127         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
31128         even if just werrorcount is non-zero.
31130         PR debug/55608
31131         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
31132         on failure.
31133         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
31134         (string_cst_pool_decl): New function.
31135         (optimize_one_addr_into_implicit_ptr): New function.
31136         (resolve_addr_in_expr): Optimize DWARF location expression
31137         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
31138         which doesn't live in memory, but has DW_AT_location or
31139         DW_AT_const_value, or refers to a string literal, into
31140         DW_OP_GNU_implicit_pointer.
31141         (optimize_location_into_implicit_ptr): New function.
31142         (resolve_addr): If removing DW_AT_location of a variable because
31143         it was DW_OP_addr of address of the variable, but the variable doesn't
31144         live in memory, try to emit const value attribute for the initializer.
31146 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31148         * tree.h (VECTOR_TYPE_P): New macro.
31149         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
31150         TYPE_MODE): Use it.
31151         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
31152         VEC_COND_EXPR cannot be lvalues.
31153         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
31155 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31157         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
31158         Restrict the transformation to equal modes.
31160 2013-03-21  Richard Biener  <rguenther@suse.de>
31162         PR tree-optimization/39326
31163         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
31164         (MEM_ANALYZABLE): Adjust.
31165         (record_mem_ref_loc): Move bitmap ops ...
31166         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
31167         unanalyzable refs, do not record locations for it.
31168         (analyze_memory_references): Allocate ref zero as shared
31169         unanalyzable ref.
31170         (refs_independent_p): Do not test for unanalyzed mems here.
31171         (ref_indep_loop_p_1): Special-case disambiguation against
31172         the unanalyzed ref.
31173         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
31175 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
31177         * config/arm/arm-protos.h (tune_params): Add
31178         prefer_neon_for_64bits field.
31179         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
31180         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
31181         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
31182         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
31183         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
31184         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
31185         (arm_option_override): Handle -mneon-for-64bits new option.
31186         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
31187         (prefer_neon_for_64bits): Declare new variable.
31188         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
31189         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
31190         (arch_enabled): Handle new arch types. Remove support for onlya8
31191         and nota8.
31192         (one_cmpldi2): Use new arch names.
31193         (zero_extend<mode>di2, extend<mode>di2): Ditto.
31194         * config/arm/arm.opt (mneon-for-64bits): Add option.
31195         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
31196         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
31197         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
31198         of onlya8.
31199         * doc/invoke.texi (-mneon-for-64bits): Document.
31201 2013-03-21  Richard Biener  <rguenther@suse.de>
31203         PR tree-optimization/39326
31204         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
31205         (sort_bbs_in_loop_postorder_cmp): New function.
31206         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
31208 2013-03-21  Richard Biener  <rguenther@suse.de>
31210         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
31211         (vect_insert_into_interleaving_chain): Likewise.
31212         (vect_drs_dependent_in_basic_block): Inline ...
31213         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
31214         split out from ...
31215         (vect_analyze_data_ref_dependence): ... here.  Simplify.
31216         (vect_check_interleaving): Simplify.
31217         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
31218         (vect_slp_analyze_data_ref_dependences): ... this new function.
31219         (dr_group_sort_cmp): New function.
31220         (vect_analyze_data_ref_accesses): Compute data-reference groups
31221         here instead of in vect_analyze_data_ref_dependence.  Use
31222         a more efficient algorithm.
31223         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
31224         vect_slp_analyze_data_ref_dependences.  Call
31225         vect_analyze_data_ref_accesses earlier.
31226         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
31227         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
31228         (vect_slp_analyze_data_ref_dependences): New prototype.
31230 2013-03-21  Richard Biener  <rguenther@suse.de>
31232         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
31233         ref is stored in the loop.
31234         (find_refs_for_sm): Walk only over all stores.
31235         (store_motion_loop): Allocate from lim_bitmap_obstack.
31236         (store_motion): Likewise.
31238 2013-03-21  Richard Biener  <rguenther@suse.de>
31240         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
31241         Update virtual SSA form.
31243 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31245         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
31246         * configure: Regenerate.
31247         * config.in: Regenerate.
31248         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
31249         if !HAVE_LD_EH_FRAME_CIEV3.
31251 2013-03-21  Richard Biener  <rguenther@suse.de>
31253         * tree-cfg.c (verify_expr_no_block): New function.
31254         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
31255         nor DECL_VALUE_EXPR have locations with associated blocks.
31256         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
31257         (clear_unused_block_pointer): Remove code dealing with
31258         blocks in DECL_DEBUG_EXPR locations.
31260 2013-03-21  Richard Biener  <rguenther@suse.de>
31262         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
31263         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
31264         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
31265         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
31266         instead of DECL_DEBUG_EXPR_IS_FROM.
31267         * gimplify.c (gimplify_modify_expr): Likewise.
31268         * tree-cfg.c (verify_expr_location_1): Likewise.
31269         * tree-complex.c (create_one_component_var): Likewise.
31270         * tree-sra.c (create_access_replacement): Likewise.
31271         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
31272         (clear_unused_block_pointer): Likewise.
31273         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
31274         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
31275         * var-tracking.c (var_debug_decl): Likewise.
31276         (track_expr_p): Likewise.
31277         * tree-inline.c (add_local_variables): Likewise.  Set
31278         DECL_HAS_DEBUG_EXPR_P after copying it.
31279         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
31280         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
31282 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
31284         PR bootstrap/56656
31285         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
31286         * configure: Regenerate.
31287         * config.in: Regenerate.
31288         * config/i386/i386.md (*movdf_internal): Use
31289         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31290         movd instead of movq mnemonic for interunit moves.
31291         (*movdi_internal): Ditto.
31293 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31295         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
31296         (abd<mode>_3): New pattern.
31297         (aba<mode>_3): New pattern.
31298         (fabd<mode>_3): New pattern.
31300 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31302         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
31303         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
31304         occurrence of REGISTER_PREFIX as its empty string.
31306 2013-03-20  Jeff Law  <law@redhat.com>
31308         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
31309         addititional equivalences for equality comparisons between an SSA_NAME
31310         and a constant where the SSA_NAME was set from a widening conversion.
31312 2013-03-20  Walter Lee  <walt@tilera.com>
31314         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
31316 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31318         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
31319         depending on type attribute.
31320         (*movti_internal): Ditto.
31321         (*movtf_internal): Ditto.
31322         (*movxf_internal): Ditto.
31323         (*movdf_internal): Ditto.
31324         (*movsf_internal): Ditto.
31326 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31328         * config/i386/i386.md (*movti_internal): Set prefix attribute to
31329         maybe_vex for sselog1 and ssemov types.
31330         (*movdi_internal): Reorder operand constraints.
31331         (*movsi_internal): Ditto.  Set prefix attribute to
31332         maybe_vex for sselog1 and ssemov types.
31333         (*movtf_internal): Set prefix attribute to maybe_vex
31334         for sselog1 and ssemov types.
31335         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
31336         DImode ssemov types.  Reorder operand constraints.
31337         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
31338         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
31339         attribute for SImode ssemov types.  Reorder operand constraints.
31341 2013-03-20  Martin Jambor  <mjambor@suse.cz>
31343         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
31344         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
31346 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
31348         * config/rs6000/predicates.md (indexed_address, update_address_mem
31349         update_indexed_address_mem): New predicates.
31350         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
31351         attribute for load/store instructions.
31352         * config/rs6000/dfp.md (movsd_store): Likewise.
31353         (movsd_load): Likewise.
31354         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
31355         (unnamed HI->DI extend define_insn): Likewise.
31356         (unnamed SI->DI extend define_insn): Likewise.
31357         (unnamed QI->SI extend define_insn): Likewise.
31358         (unnamed QI->HI extend define_insn): Likewise.
31359         (unnamed HI->SI extend define_insn): Likewise.
31360         (unnamed HI->SI extend define_insn): Likewise.
31361         (extendsfdf2_fpr): Likewise.
31362         (movsi_internal1): Likewise.
31363         (movsi_internal1_single): Likewise.
31364         (movhi_internal): Likewise.
31365         (movqi_internal): Likewise.
31366         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
31367         attribute for load/store instructions.
31368         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
31369         instructions.
31370         (mov<mode>_softfloat): Likewise.
31371         (mov<mode>_hardfloat32): Likewise.
31372         (mov<mode>_hardfloat64): Likewise.
31373         (mov<mode>_softfloat64): Likewise.
31374         (movdi_internal32): Likewise.
31375         (movdi_internal64): Likewise.
31376         (probe_stack_<mode>): Likewise.
31378 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
31380         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
31381         floating point, and decimal floating point to reload iterator.
31383         * config/rs6000/constraints.md (wl constraint): New constraints to
31384         return FLOAT_REGS if certain options are used to reduce the number
31385         of separate patterns that exist in the file.
31386         (wx constraint): Likewise.
31387         (wz constraint): Likewise.
31389         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31390         -mdebug=reg, print wg, wl, wx, and wz constraints.
31391         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
31392         Initialize the reload functions for 64-bit binary/decimal floating
31393         point types.
31394         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
31395         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
31396         create the buffer on the stack to overcome not having a 32-bit
31397         load and store.
31398         (rs6000_emit_move): Likewise.
31399         (rs6000_secondary_memory_needed_rtx): Likewise.
31400         (rs6000_alloc_sdmode_stack_slot): Likewise.
31401         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
31402         via xxlxor, just like DFmode 0.0.
31404         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
31405         define as 1 if we are running on a power7 or newer.
31406         (enum r6000_reg_class_enum): Add new constraints.
31408         * config/rs6000/dfp.md (movsd): Delete, combine with binary
31409         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
31410         with other moves by using conditional constraits (wg).  Use LFIWZX
31411         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
31412         (movsd splitter): Likewise.
31413         (movsd_hardfloat): Likewise.
31414         (movsd_softfloat): Likewise.
31416         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
31417         binary and decimal floating point moves.
31418         (fmove_ok): New attributes to combine binary and decimal floating
31419         point moves, and to combine power6x (mfpgpr) moves along normal
31420         floating moves.
31421         (real_value_to_target): Likewise.
31422         (f32_lr): Likewise.
31423         (f32_lm): Likewise.
31424         (f32_li): Likewise.
31425         (f32_sr): Likewise.
31426         (f32_sm): Likewise.
31427         (f32_si): Likewise.
31428         (movsf): Combine binary and decimal floating point moves.  Combine
31429         power6x (mfpgpr) moves with other moves by using conditional
31430         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
31431         (mov<mode> for SFmode/SDmode); Likewise.
31432         (SFmode/SDmode splitters): Likewise.
31433         (movsf_hardfloat): Likewise.
31434         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
31435         (movsf_softfloat): Likewise.
31436         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
31438         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
31439         wx and wz constraints.
31441         * config/rs6000/constraints.md (wg constraint): New constraint to
31442         return FLOAT_REGS if -mmfpgpr (power6x) was used.
31444         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
31445         constraint.
31447         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31448         -mdebug=reg, print wg, wl, wx, and wz constraints.
31449         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
31450         Initialize the reload functions for 64-bit binary/decimal floating
31451         point types.
31452         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
31453         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
31454         create the buffer on the stack to overcome not having a 32-bit
31455         load and store.
31456         (rs6000_emit_move): Likewise.
31457         (rs6000_secondary_memory_needed_rtx): Likewise.
31458         (rs6000_alloc_sdmode_stack_slot): Likewise.
31459         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
31460         via xxlxor, just like DFmode 0.0.
31462         * config/rs6000/dfp.md (movdd): Delete, combine with binary
31463         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
31464         with other moves by using conditional constraits (wg).  Use LFIWZX
31465         and STFIWX for loading SDmode on power7.
31466         (movdd splitters): Likewise.
31467         (movdd_hardfloat32): Likewise.
31468         (movdd_softfloat32): Likewise.
31469         (movdd_hardfloat64_mfpgpr): Likewise.
31470         (movdd_hardfloat64): Likewise.
31471         (movdd_softfloat64): Likewise.
31473         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
31474         64-bit binary and decimal floating point moves.
31475         (FMOVE64X): Likewise.
31476         (movdf): Combine 64-bit binary and decimal floating point moves.
31477         Combine power6x (mfpgpr) moves with other moves by using
31478         conditional constraits (wg).
31479         (mov<mode> for DFmode/DDmode): Likewise.
31480         (DFmode/DDmode splitters): Likewise.
31481         (movdf_hardfloat32): Likewise.
31482         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
31483         (movdf_softfloat32): Likewise.
31484         (movdf_hardfloat64_mfpgpr): Likewise.
31485         (movdf_hardfloat64): Likewise.
31486         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
31487         (movdf_softfloat64): Likewise.
31488         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
31489         (reload_<mode>_load): Move to later in the file so they aren't in
31490         the middle of the floating point move insns.
31491         (reload_<mode>_store): Likewise.
31493         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
31494         constraint.
31496         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
31497         constraint if -mdebug=reg.
31498         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
31499         Enable using dd reload support if needed.
31501         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
31502         binary and decimal floating point moves in rs6000.md.
31503         (movtd_internal): Likewise.
31505         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
31506         decimal floating point moves.
31507         (movtf): Likewise.
31508         (movtf_internal): Likewise.
31509         (mov<mode>_internal, TDmode/TFmode): Likewise.
31510         (movtf_softfloat): Likewise.
31511         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
31513         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
31514         movdi_internal64, using wg constraint for move direct operations.
31515         (movdi_internal64): Likewise.
31517         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
31518         MODES_TIEABLE_P for selected modes.  Print the numerical value of
31519         the various virtual registers. Use GPR/FPR first/last values,
31520         instead of hard coding the register numbers.  Print which modes
31521         have reload functions registered.
31522         (rs6000_option_override_internal): If -mdebug=reg, trace the options
31523         settings before/after setting cpu, target and subtarget settings.
31524         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
31525         and for secondary reload failures in rs6000_secondary_reload_inner.
31526         (rs6000_secondary_reload_fail): Likewise.
31527         (rs6000_secondary_reload_inner): Likewise.
31529         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
31530         macros for first/last GPR and FPR registers.
31531         (LAST_GPR_REGNO): Likewise.
31532         (FIRST_FPR_REGNO): Likewise.
31533         (LAST_FPR_REGNO): Likewise.
31535         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
31536         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
31537         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
31538         (vcond<mode><mode>): Likewise.
31539         (vcondu<mode><mode>): Likewise.
31540         (vector_gtu<mode>): Likewise.
31541         (vector_gte<mode>): Likewise.
31542         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
31543         to prevent the compiler from converting DImode operations to TImode.
31544         (ior<mode>3): Likewise.
31545         (and<mode>3): Likewise.
31546         (one_cmpl<mode>2): Likewise.
31547         (nor<mode>3): Likewise.
31548         (andc<mode>3): Likewise.
31550         * config/rs6000/constraints.md (wt constraint): New constraint
31551         that returns VSX_REGS if TImode is allowed in VSX registers.
31553         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
31554         constant under VSX.
31556         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
31557         similar to TImode, but it is restricted to being in the GPRs.
31559         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
31560         TImode to occupy a single VSX register.
31562         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
31563         -mvsx-timode for power7/power8.
31564         (power7 cpu): Likewise.
31565         (power8 cpu): Likewise.
31567         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
31568         sure that TFmode/TDmode take up two registers if they are ever
31569         allowed in the upper VSX registers.
31570         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
31571         registers.
31572         (rs6000_init_hard_regno_mode_ok): Likewise.
31573         (rs6000_debug_reg_global): Add debugging for PTImode and wt
31574         constraint.  Print if LRA is turned on.
31575         (rs6000_option_override_internal): Give an error if -mvsx-timode
31576         and VSX is not enabled.
31577         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
31578         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
31579         to reg+offset addressing.  Use PTImode when checking offset
31580         addresses for validity.
31581         (reg_offset_addressing_ok_p): Likewise.
31582         (rs6000_legitimate_offset_address_p): Likewise.
31583         (rs6000_legitimize_address): Likewise.
31584         (rs6000_legitimize_reload_address): Likewise.
31585         (rs6000_legitimate_address_p): Likewise.
31586         (rs6000_eliminate_indexed_memrefs): Likewise.
31587         (rs6000_emit_move): Likewise.
31588         (rs6000_secondary_reload): Likewise.
31589         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
31590         reloads to fpr registers to continue to use reg+offset addressing,
31591         but 64-bit reloads to altivec registers need reg+reg addressing.
31592         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
31593         it.  Treat LO_SUM like a PLUS operation.
31594         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
31595         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
31596         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
31597         registers to share a register with a smaller sized type, since VSX
31598         puts scalars in the upper 64-bits.
31599         (print_operand): Add support for PTImode.
31600         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
31601         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
31602         registers, but don't have arithmetic support.
31603         (rs6000_memory_move_cost): Add test for VSX.
31604         (rs6000_opt_masks): Add -mvsx-timode.
31606         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
31607         for TImode.
31608         (VSs): Likewise.
31609         (VSr): Use wt constraint for TImode.
31610         (VSv): Drop TImode support.
31611         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
31612         (vsx_movti_64bit): Likewise.
31613         (vsx_movti_32bit): Likewise.
31614         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
31615         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
31616         one '?' on the appropriate output constraint.  Do not allow TImode
31617         logical operations on 32-bit systems.
31618         (vsx_ior<mode>3): Likewise.
31619         (vsx_xor<mode>3): Likewise.
31620         (vsx_one_cmpl<mode>2): Likewise.
31621         (vsx_nor<mode>3): Likewise.
31622         (vsx_andc<mode>3): Likewise.
31623         (vsx_concat_<mode>): Likewise.
31624         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
31626         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
31627         OPTION_MASK_VSX_TIMODE.
31628         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
31629         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
31631         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
31632         (TI2 iterator): New iterator for TImode, PTImode.
31633         (wd mode attribute): Add values for vector types.
31634         (movti_string): Replace TI move operations with operations for TImode
31635         and PTImode.  Add support for TImode being allowed in VSX registers.
31636         (mov<mode>_string, TImode/PTImode): Likewise.
31637         (movti_ppc64): Likewise.
31638         (mov<mode>_ppc64, TImode/PTImode): Likewise.
31639         (TI mode splitters): Likewise.
31641         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
31642         constraint.
31644 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
31646         PR tree-optimization/56355
31647         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
31648         Also handle integers with undefined overflow.
31650 2013-03-20  Catherine Moore  <clm@codesourcery.com>
31651             Maciej W. Rozycki  <macro@codesourcery.com>
31652             Tom de Vries  <tom@codesourcery.com>
31653             Nathan Sidwell  <nathan@codesourcery.com>
31654             Iain Sandoe  <iain@codesourcery.com>
31655             Nathan Froyd  <froydnj@codesourcery.com>
31656             Chao-ying Fu  <fu@mips.com>
31658         * doc/extend.texi: (micromips, nomicromips, nocompression):
31659         Document new function attributes.
31660         * doc/invoke.texi (minterlink-compressed, mmicromips,
31661         m14k, m14ke, m14kec): Document new options.
31662         (minterlink-mips16): Update documentation.
31663         * doc/md.texi (ZC, ZD): Document new constraints.
31664         * configure.ac (gcc_cv_as_micromips): Check if linker
31665         supports the .set micromips directive.
31666         * configure: Regenerate.
31667         * config.in: Regenerate.
31668         * config/mips/mips-tables.opt: Regenerate.
31669         * config/mips/micromips.md: New file.
31670         * constraints.md (ZC, ZD): New constraints.
31671         * config/mips/predicates.md (movep_src_register): New predicate.
31672         (movep_src_operand): New predicate.
31673         (non_volatile_mem_operand): New predicate.
31674         * config/mips/mips.md (multimem): New type.
31675         (length): Differentiate between 17-bit and 18-bit branch offsets.
31676         (MOVEP1, MOVEP2): New mode iterator.
31677         (mov_<load>l): Use ZC constraint.
31678         (mov_<load>r): Likewise.
31679         (mov_<store>l): Likewise.
31680         (mov_<store>r): Likewise.
31681         (*branch_equality<mode>_inverted): Add microMIPS support.
31682         (*branch_equality<mode>): Likewise.
31683         (*jump_absolute): Likewise.
31684         (indirect_jump_<mode>): Likewise.
31685         (tablejump_<mode>): Likewise.
31686         (<optab>_internal): Likewise.
31687         (sibcall_internal): Likewise.
31688         (sibcall_value_internal): Likewise.
31689         (prefetch): Use constraint ZD.
31690         * config/mips/mips.opt (minterlink-compressed): New option.
31691         (minterlink-mips16): Now an alias for minterlink-compressed.
31692         (mmicromips): New option.
31693         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31694         (compare_and_swap_12): Likewise.
31695         (sync_add<mode>): Likewise.
31696         (sync_<optab>_12): Likewise.
31697         (sync_old_<optab>_12): Likewise.
31698         (sync_new_<optab>_12): Likewise.
31699         (sync_nand_12): Likewise.
31700         (sync_old_nand_12): Likewise.
31701         (sync_new_nand_12): Likewise.
31702         (sync_sub<mode>): Likewise.
31703         (sync_old_add<mode>): Likewise.
31704         (sync_old_sub<mode>): Likewise.
31705         (sync_new_add<mode>): Likewise.
31706         (sync_new_sub<mode>): Likewise.
31707         (sync_<optab><mode>): Likewise.
31708         (sync_old_<optab><mode>): Likewise.
31709         (sync_new_<optab><mode>): Likewise.
31710         (sync_nand<mode>): Likewise.
31711         (sync_old_nand<mode>): Likewise.
31712         (sync_new_nand<mode>): Likewise.
31713         (sync_lock_test_and_set<mode>): Likewise.
31714         (test_and_set_12): Likewise.
31715         (atomic_compare_and_swap<mode>): Likewise.
31716         (atomic_exchange<mode>_llsc): Likewise.
31717         (atomic_fetch_add<mode>_llsc): Likewise.
31718         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31719         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31720         (umips_save_restore_pattern_p): Likewise.
31721         (umips_load_store_pair_p): Likewise.
31722         (umips_output_load_store_pair): Likewise.
31723         (umips_movep_target_p): Likewise.
31724         (umips_12bit_offset_address_p): Likewise.
31725         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31726         (mips_base_mips16): Rename this...
31727         (mips_base_compression_flags): ...to this. Update all uses.
31728         (mips_attribute_table): Add micromips, nomicromips and nocompression.
31729         (mips_mips16_decl_p): Delete.
31730         (mips_nomips16_decl_p): Delete.
31731         (mips_get_compress_on_flags): New function.
31732         (mips_get_compress_off_flags): New function.
31733         (mips_get_compress_mode): New function.
31734         (mips_get_compress_on_name): New function.
31735         (mips_get_compress_off_name): New function.
31736         (mips_insert_attributes): Support multiple compression types.
31737         (mips_merge_decl_attributes): Likewise.
31738         (umips_12bit_offset_address_p): New function.
31739         (mips_start_function_definition): Emit .set micromips directive.
31740         (mips_call_may_need_jalx_p): New function.
31741         (mips_function_ok_for_sibcall): Add microMIPS support.
31742         (mips_print_operand_punctuation): Support short delay slots and
31743         compact jumps.
31744         (umips_swm_mask, umips_swm_encoding): New.
31745         (umips_build_save_restore): New function.
31746         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31747         (was_mips16_p): Remove.
31748         (old_compression_mode): New.
31749         (mips_set_compression_mode): New function.
31750         (mips_set_current_function): Add microMIPS support.
31751         (mips_option_override): Likewise.
31752         (umips_save_restore_pattern_p): New function.
31753         (umips_output_save_restore): New function.
31754         (umips_load_store_pair_p_1): New function.
31755         (umips_load_store_pair_p): New function.
31756         (umips_output_load_store_pair_1): New function.
31757         (umips_output_load_store_pair): New function.
31758         (umips_movep_target_p) New function.
31759         (mips_prepare_pch_save): Add microMIPS support.
31760         * config/mips/mips.h (TARGET_COMPRESSION): New.
31761         (TARGET_CPU_CPP_BUILTINS): Update macro
31762         to use new compression flags and to support microMIPS.
31763         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31764         (MIPS_ARCH_FLOAT_SPEC): Likewise.
31765         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31766         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31767         (ASM_SPEC): Support mmicromips and mno-micromips.
31768         (M16STORE_REG_P): New macro.
31769         (MIPS_CALL): Support TARGET_MICROMIPS.
31770         (MICROMIPS_J): New macro.
31771         (mips_base_mips16): Rename this...
31772         (mips_base_compression_flags): ...to this.
31773         (UMIPS_12BIT_OFFSET_P): New macro.
31774         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
31775         (MULTILIB_DIRNAMES): Likewise.
31776 2013-03-20  Richard Biener  <rguenther@suse.de>
31778         PR tree-optimization/56661
31779         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
31780         the result does not have to be distinct.
31782 2013-03-20  Richard Biener  <rguenther@suse.de>
31784         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
31785         remap_gimple_op_r.
31787 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31788             Steven Bosscher  <steven@gcc.gnu.org>
31790         PR rtl-optimization/56605
31791         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
31793 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31795         PR bootstrap/56656
31796         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
31797         that require movd instead of movq.
31799 2013-03-20  Richard Biener  <rguenther@suse.de>
31801         * tree-ssa-structalias.c (struct variable_info): Add pointer
31802         to the first field of an aggregate with sub-vars.  Make
31803         this and the pointer to the next subfield its ID.
31804         (vi_next): New function.
31805         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
31806         storedanything_id, integer_id): Increment by one.
31807         (new_var_info, get_call_vi, lookup_call_clobber_vi,
31808         get_call_clobber_vi): Adjust.
31809         (solution_set_expand): Simplify and speedup.
31810         (solution_set_add): Inline into ...
31811         (set_union_with_increment): ... this.  Adjust accordingly.
31812         (do_sd_constraint): Likewise.
31813         (do_ds_constraint): Likewise.
31814         (do_complex_constraint): Simplify.
31815         (build_pred_graph): Adjust.
31816         (solve_graph): Likewise.  Simplify and speedup.
31817         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
31818         get_constraint_for_component_ref, get_constraint_for_1,
31819         first_vi_for_offset, first_or_preceding_vi_for_offset,
31820         create_function_info_for, create_variable_info_for_1,
31821         create_variable_info_for, intra_create_variable_infos): Adjust.
31822         (init_base_vars): Push NULL for ID zero.
31823         (compute_points_to_sets): Adjust.
31825 2013-03-20  Richard Biener  <rguenther@suse.de>
31827         * cfgloop.c (verify_loop_structure): Streamline and avoid
31828         ICEing on corrupt loop tree.
31829         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
31830         loop tree.
31832 2013-03-20  Richard Biener  <rguenther@suse.de>
31834         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
31835         check whether an SSA update is needed.
31837 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
31839         * config/mips/constraints.md (T): Rename to...
31840         (Yf): ...this.
31841         (U): Rename to...
31842         (Yd): ...this.
31843         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
31844         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
31846 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
31848         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
31849         (*subsi3_carryin_uxtw): Likewise.
31851 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
31853         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
31854         (*rorsi3_insn_uxtw): Likewise.
31856 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
31858         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
31859         (*extrsi5_insn_uxtw): Likewise.
31861 2013-03-19  Richard Biener  <rguenther@suse.de>
31863         PR tree-optimization/56273
31864         * passes.c (init_optimization_passes): Move second VRP after DOM.
31866 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
31868         * config/i386/i386.md (*movti_internal): Merge from
31869         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
31870         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
31871         nox64 isa attributes.
31873 2013-03-18  Richard Biener  <rguenther@suse.de>
31875         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
31876         (unite): Likewise.
31877         (merge_node_constraints): Likewise.
31878         (build_succ_graph): Likewise.
31879         (valid_graph_edge): Inline into single caller.
31880         (unify_nodes): Likewise.  Use bitmap_set_bit return value
31881         and cache varinfo.
31882         (scc_visit): Fix formatting and variable use.
31883         (do_sd_constraint): Use gcc_checking_assert.
31884         (do_ds_constraint): Likewise.
31885         (do_complex_constraint): Likewise.
31886         (condense_visit): Likewise.  Cleanup.
31887         (dump_pred_graph): New function.
31888         (perform_var_substitution): Dump the pred-graph before
31889         variable substitution.
31890         (find_equivalent_node): Use gcc_checking_assert.
31891         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
31893 2013-03-18  Richard Biener  <rguenther@suse.de>
31895         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
31896         Remove cond_expr_stmt_list argument and do not gimplify the
31897         built expression.
31898         (vect_loop_versioning): Adjust.
31899         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
31900         Cleanup to use less temporaries.
31901         (vect_create_data_ref_ptr): Cleanup.
31903 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
31905         PR tree-optimization/56635
31906         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
31907         require types_compatible_p types.
31909 2013-03-18  Nick Clifton  <nickc@redhat.com>
31911         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
31912         spurious backslash.
31914         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
31915         Add missing line to comment describing function.
31917 2013-03-18  Richard Biener  <rguenther@suse.de>
31919         PR tree-optimization/56210
31920         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
31921         Handle string / character search functions.
31922         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
31924 2013-03-18  Richard Biener  <rguenther@suse.de>
31926         PR middle-end/56483
31927         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
31928         and implement properly.
31929         * gimple.h (gimple_cond_single_var_p): Remove.
31931 2013-03-18  Richard Biener  <rguenther@suse.de>
31933         * tree-data-ref.h (find_data_references_in_loop): Declare.
31934         * tree-data-ref.c (get_references_in_stmt): Use a stack
31935         vector pre-allocated in the callers.
31936         (find_data_references_in_stmt): Adjust.
31937         (graphite_find_data_references_in_stmt): Likewise.
31938         (create_rdg_vertices): Likewise.
31939         (find_data_references_in_loop): Export.
31940         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
31941         Compute dependences here...
31942         (vect_analyze_data_refs): ...not here.  When we encounter
31943         a non-vectorizable data reference in basic-block vectorization
31944         truncate the data reference vector.  Do not bother to
31945         fixup data-dependence information for gather loads.
31946         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
31947         of data references, as reported.
31949 2013-03-18  Richard Biener  <rguenther@suse.de>
31951         PR tree-optimization/3713
31952         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
31953         has_constants and expr.
31954         (stmt_has_constants): Properly valueize SSA names when deciding
31955         whether the stmt has constants.
31957 2013-03-18  Richard Biener  <rguenther@suse.de>
31959         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
31960         whole function when there is nothing to do.
31961         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
31962         * tree-vectorizer.c (vectorize_loops): Update virtual and
31963         loop-closed SSA once.
31964         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
31966 2013-03-18  Richard Biener  <rguenther@suse.de>
31968         PR middle-end/56113
31969         * domwalk.c (bb_postorder): New global static.
31970         (cmp_bb_postorder): New function.
31971         (walk_dominator_tree): Replace scheme imposing an order for
31972         visiting dominator sons by one sorting them at the time they
31973         are pushed on the stack.
31975 2013-03-18  Richard Biener  <rguenther@suse.de>
31977         PR tree-optimization/39326
31978         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
31979         (struct mem_ref): Replace mem member with ao_ref typed member.
31980         (MEM_ANALYZABLE): Adjust.
31981         (memref_eq): Likewise.
31982         (mem_ref_alloc): Likewise.
31983         (gather_mem_refs_stmt): Likewise.
31984         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
31985         (execute_sm_if_changed_flag_set): Adjust.
31986         (execute_sm): Likewise.
31987         (ref_always_accessed_p): Likewise.
31988         (refs_independent_p): Likewise.
31989         (can_sm_ref_p): Likewise.
31991 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
31993         PR c/56566
31994         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
31995         return 1 even for !unsignedp.
31997 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
31999         * config/i386/i386.md (isa): Add x64 and nox64.
32000         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
32001         (*pushtf): Enable *roF alternative for x64 isa only.
32002         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
32003         mode attribute of integer alternatives to DImode for TARGET_64BIT.
32004         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
32005         (*movtf_internal): Merge from *movtf_internal_rex64 and
32006         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
32007         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
32008         nox64 isa attributes.
32009         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
32010         nox64 isa attributes.
32011         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
32013 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32015         * config/alpha/alpha.c (TARGET_LRA_P): New define.
32017 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
32019         PR target/56640
32020         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
32021         class names.  Remove trailing comma after "ALL_REGS".
32023 2013-03-16  Jan Hubicka  <jh@suse.cz>
32025         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
32026         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
32027         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
32028         of cgraph_get_create_node.
32029         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32031 2013-03-16  Jason Merrill  <jason@redhat.com>
32033         PR debug/49090
32034         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
32035         with DW_AT_default_value.
32037 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
32039         * BASE-VER: Set to 4.9.0.
32041 2013-03-14  Andi Kleen  <ak@linux.intel.com>
32043         PR target/56619
32044         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
32045         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
32046         Document _x* TSX intrinsics.
32048 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
32049             David Holsgrove  <david.holsgrove@xilinx.com>
32051         * configure.ac: Add MicroBlaze TLS support detection.
32052         * configure: Regenerate.
32053         * config/microblaze/microblaze-protos.h
32054         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
32055         symbol_mentioned_p, label_mentioned_p): Add prototypes.
32056         * config/microblaze/microblaze.c (microblaze_address_type): Add
32057         ADDRESS_TLS and tls_reloc address types.
32058         (microblaze_address_info): Add tls_reloc.
32059         (TARGET_HAVE_TLS): Define.
32060         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
32061          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
32062          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
32063         load_tls_operand,  microblaze_call_tls_get_addr,
32064         microblaze_legitimize_tls_address): New functions.
32065         (microblaze_classify_unspec): Handle UNSPEC_TLS.
32066         (get_base_reg): Use microblaze_tls_symbol_p.
32067         (microblaze_classify_address): Handle TLS.
32068         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
32069         label_mentioned_p and microblaze_tls_referenced_p.
32070         (microblaze_legitimize_address): Handle TLS.
32071         (microblaze_address_insns): Handle ADDRESS_TLS.
32072         (pic_address_needs_scratch): Handle TLS.
32073         (print_operand_address): Handle TLS.
32074         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
32075         (microblaze_expand_move): Handle TLS.
32076         (microblaze_legitimate_constant_p): Check
32077         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
32078         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
32079         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
32080         (PIC_OFFSET_TABLE_REGNUM): Set.
32081         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
32082         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
32083         (addsi3, movsi_internal2, movdf_internal): Update constraints
32084         * config/microblaze/predicates.md (arith_plus_operand): Define
32085         (move_operand): Redefine as move_src_operand,
32086         check microblaze_tls_referenced_p.
32088 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
32090         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
32091         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
32093 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
32095         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
32096         CC mode for AND.
32098 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
32100         PR tree-optimization/53265
32101         * common.opt (Waggressive-loop-optimizations): New option.
32102         * tree-ssa-loop-niter.c: Include tree-pass.h.
32103         (do_warn_aggressive_loop_optimizations): New function.
32104         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
32105         if number_of_latch_executions returned constant.
32106         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
32107         early.  If number_of_latch_executions returned constant, set
32108         nb_iterations_upper_bound back to it.
32109         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
32110         field.
32111         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
32112         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
32114         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
32115         (MULTILIB_OSDIRNAMES): Set.
32116         * genmultilib: If defaultosdirname doesn't start with :: , set
32117         defaultosdirname2 instead, clear it and emit two . multilib_raw
32118         entries instead of just one.
32120 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
32122         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32123         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
32124         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32125         (SUBTARGET_OVERRIDE_OPTIONS): New.
32127 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
32129         PR target/49880
32130         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
32131         (musermode): Convert to Var(TARGET_USERMODE).
32132         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
32133         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
32134         * config/sh/sh.c (sh_option_override): Use
32135         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
32136         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
32137         condition.
32138         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
32139         TARGET_SH4.
32140         (udivsi3_i4_single, divsi3_i4_single): Use
32141         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
32143 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
32145         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
32146         default setting.
32148 2013-03-13  Richard Biener  <rguenther@suse.de>
32150         PR tree-optimization/56608
32151         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
32152         calls when vectorizing basic-blocks.
32154 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
32156         PR plugins/45078
32157         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
32158         tm_file.
32160 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
32162         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
32164 2013-03-11  Jan Hubicka  <jh@suse.cz>
32166         PR lto/56557
32167         * lto-streamer-out.c (output_symbol_p): Skip references from
32168         constructors of external variables.
32170 2013-03-11  Jan Hubicka  <jh@suse.cz>
32172         PR middle-end/56571
32173         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
32174         from pseudos.
32175         * emit-rtl.c (verify_rtx_sharing): Likewise.
32176         (copy_insn_1): Likewise.
32177         * rtl.c (copy_rtx): Likewise.
32179 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
32181         PR target/56591
32182         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
32183         output_operand_lossage message.
32185 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
32187         PR target/56470
32188         * arm.c (shift_op): Validate RTL pattern on the fly.
32189         (arm_print_operand, case 'S'): Don't use shift_operator to validate
32190         the RTL.
32192 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32194         PR target/56347
32195         * config/pa/pa.md (call_value): Check for calls to powf and direct to
32196         new call patterns that clobber %fr12.
32197         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
32198         split and postreload patterns.
32199         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
32200         registers %fr12 and %fr12R as call used.
32202 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
32204         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
32205         (canon_address, record_store, replace_read, check_mem_read_rtx,
32206         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
32207         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
32208         rest_of_handle_dse): Likewise.
32210 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
32212         PR middle-end/56524
32213         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
32214         Add base_optabs.
32215         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
32216         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
32217         (save_optabs_if_changed): Replace with...
32218         (init_tree_optimization_optabs): ...this.
32219         * optabs.c (save_optabs_if_changed): Rename to...
32220         (init_tree_optimization_optabs): ...this.  Take the optimization node
32221         as argument.  Do nothing if the base optabs are already correct.
32222         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
32223         to recompute optabs.
32224         * function.h (function): Remove optabs field.
32225         * function.c (invoke_set_current_function_hook): Call
32226         init_tree_optimization_optabs.  Use the result to initialize
32227         this_fn_optabs.
32229 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
32231         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
32232         if GTMA_HAS_NO_INSTRUMENTATION.
32233         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
32234         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
32235         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
32236         * gimple-pretty-print.c (dump_gimple_transaction): Handle
32237         GTMA_HAS_NO_INSTRUMENTATION.
32239 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
32241         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
32242         libasan_preinit.o.
32244 2013-03-08  Marek Polacek  <polacek@redhat.com>
32245             Jakub Jelinek  <jakub@redhat.com>
32247         PR tree-optimization/56478
32248         * predict.c (is_comparison_with_loop_invariant_p): Change the
32249         type of loop_step to tree.
32250         (predict_loops): Adjust.
32251         (predict_iv_comparison): Perform the computations on double_ints.
32253 2013-03-08  Richard Biener  <rguenther@suse.de>
32255         PR tree-optimization/56570
32256         * tree-cfg.c (verify_expr_location_1): Verify locations for
32257         DECL_DEBUG_EXPR.
32258         * tree-sra.c (create_access_replacement): Strip locations
32259         from DECL_DEBUG_EXPRs.
32261 2013-03-08  Richard Biener  <rguenther@suse.de>
32263         * tree-inline.c (expand_call_inline): Do not associate
32264         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
32265         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
32267 2013-03-08  Richard Biener  <rguenther@suse.de>
32269         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
32270         or block changes with -Og.  Fix for location / block encoding
32271         changes and PHI arguments with locations.
32273 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
32275         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
32276         for all counters.
32277         (struct output_info): Likewise.
32278         (register_overhead): Remove bad gcc_assert.
32279         (bitmap_find_bit): If there is only a single bitmap element, do not
32280         count a miss as a search.
32281         (print_statistics): Update for counter type changes.
32282         (dump_bitmap_statistics): Likewise.  Print headers such that they
32283         are properly lined up with the printed counters.
32285 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
32287         PR tree-optimization/56559
32288         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
32289         check that it has only a single use.
32291 2013-03-07  Richard Biener  <rguenther@suse.de>
32293         * doc/invoke.texi (fwhole-program): Discourage use in combination
32294         with -flto.
32296 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
32298         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
32300         PR tree-optimization/56539
32301         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
32302         instead of GSI_CONTINUE_LINKING as last argument to
32303         force_gimple_operand_gsi.  Adjust function comment.
32305         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
32306         aarch64-cores.def.
32308         PR middle-end/56548
32309         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
32310         promoted mode, convert the result back to the original mode.
32312 2013-03-06  Richard Biener  <rguenther@suse.de>
32314         PR middle-end/56294
32315         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
32316         (insert_updated_phi_nodes_compare_uids): New function.
32317         (update_ssa): Sort symbols_to_rename after UID before
32318         traversing it to insert PHI nodes.
32320 2013-03-06  Richard Biener  <rguenther@suse.de>
32322         PR middle-end/50494
32323         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
32324         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
32326         Revert
32327         2013-02-13  Richard Biener  <rguenther@suse.de>
32329         PR lto/50494
32330         * varasm.c (output_constant_def_1): Get the decl representing
32331         the constant as argument.
32332         (output_constant_def): Wrap output_constant_def_1.
32333         (make_decl_rtl): Use output_constant_def_1 with the decl
32334         representing the constant.
32335         (build_constant_desc): Optionally re-use a decl already
32336         representing the constant.
32337         (tree_output_constant_def): Adjust.
32339 2013-03-06  Joey Ye  <joey.ye@arm.com>
32341         PR lto/50293
32342         * gcc.c (convert_white_space): New function.
32343         (main): Handles white space in function name.
32345 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
32347         PR target/56529
32348         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
32349         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
32350         to SH_DIV_CALL_TABLE for TARGET_SH2.
32351         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
32352         list.
32353         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
32354         call-table options.
32356 2013-03-05  Sterling Augustine  <saugustine@google.com>
32357             Cary Coutant  <ccoutant@google.com>
32359         PR debug/55364
32360         * dwarf2out.c (resolve_addr): Don't call
32361         remove_loc_list_addr_table_entries a second time for the same
32362         expression.
32364 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32366         PR debug/56510
32367         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
32368         (avoid_complex_debug_insns): New function.
32369         (expand_debug_locations): Call it.
32371         PR rtl-optimization/56484
32372         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
32373         lifetimes of hard registers on small register class machines.
32375 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
32377         * config/microblaze/microblaze-protos.h: Rename
32378         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
32379         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
32380         fast_interrupt.
32381         (microblaze_fast_interrupt_function_p): New function.
32382         (microblaze_is_interrupt_handler): Rename to
32383         microblaze_is_interrupt_variant and add fast_interrupt check.
32384         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
32385         (save_restore_insns): Likewise.
32386         (compute_frame_size): Likewise.
32387         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
32388         (microblaze_globalize_label): Likewise.
32389         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
32390         * config/microblaze/microblaze.md: Use wrapper
32391         microblaze_is_interrupt_variant.
32393 2013-03-05  Kai Tietz  <ktietz@redhat.com>
32395         * sdbout.c (sdbout_one_type): Switch to current function's section
32396         supporting cold/hot.
32398 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
32400         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
32401         -mxl-reorder.
32403 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32405         PR middle-end/56461
32406         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
32407         if VALGRIND_GET_VBITS is defined, temporarily make object
32408         memory all defined, and restore previous valgrind addressability
32409         and definability afterwards.  Free this_object at the end.
32411         PR middle-end/56461
32412         * lra.c (lra): Call lra_clear_live_ranges if live_p,
32413         right before calling lra_create_live_ranges, also call it
32414         when clearing live_p.  Only call lra_clear_live_ranges
32415         at the end if live_p.
32417         PR middle-end/56461
32418         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
32420 2013-03-05  Richard Biener  <rguenther@suse.de>
32422         PR tree-optimization/56521
32423         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
32424         value-id.
32426 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
32428         PR c++/55135
32429         * except.h (remove_unreachable_eh_regions): New prototype.
32430         * except.c (remove_eh_handler_splicer): New function, split out
32431         of remove_eh_handler.
32432         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
32433         warning about running it on many EH regions one at a time.
32434         (remove_unreachable_eh_regions_worker): New function, walk the
32435         EH tree in depth-first order and remove non-marked regions.
32436         (remove_unreachable_eh_regions): New function.
32437         * tree-eh.c (mark_reachable_handlers): New function, split out
32438         from remove_unreachable_handlers.
32439         (remove_unreachable_handlers): Use mark_reachable_handlers and
32440         remove_unreachable_eh_regions.
32441         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
32442         and remove_unreachable_eh_regions.
32444 2013-03-05  Richard Biener  <rguenther@suse.de>
32446         PR middle-end/56525
32447         * loop-init.c (fix_loop_structure): Remove loops in two stages,
32448         not freeing them until the end.
32450 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32452         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
32454 2013-03-05  Richard Biener  <rguenther@suse.de>
32456         PR tree-optimization/56270
32457         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
32458         of loads after scheduling an SLP instance.
32460 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32462         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
32463         tic6x.exp.
32464         (check_gcc_parallelize): Run guality.exp as a separate job from
32465         vect.exp with unsorted.exp and $(dg_target_exps) separately from
32466         struct-layout-1.exp with stackalign.exp.
32468         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
32470         PR middle-end/56461
32471         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
32472         load_index sbitmap even if some bit in it isn't set.
32474         PR middle-end/56461
32475         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
32476         (discover_iteration_bound_by_body_walk): Change queues to
32477         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
32478         spelling in comment.  Call safe_push on queues[bound_index] directly.
32479         Release queues[queue_index] in every iteration unconditionally.
32480         Release bounds vector.
32482         PR middle-end/56461
32483         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
32484         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
32485         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
32486         inner_phis vector.
32488 2013-03-05  Richard Biener  <rguenther@suse.de>
32490         PR lto/56515
32491         * tree-inline.c (remap_blocks_to_null): New function.
32492         (expand_call_inline): When expanding a call stmt without
32493         an associated block inline remap all callee blocks to NULL.
32495 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32497         PR rtl-optimization/56494
32498         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
32499         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
32500         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
32502         PR middle-end/56461
32503         * sel-sched-ir.c (free_sched_pools): Release
32504         succs_info_pool.stack[succs_info_pool.max_top] vectors too
32505         if succs_info_pool.max_top isn't -1.
32507         PR bootstrap/56509
32508         * opts.c (opts_obstack, opts_concat): Moved to...
32509         * opts-common.c (opts_obstack, opts_concat): ... here.
32511 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
32513         PR middle-end/56461
32514         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
32516 2013-03-04  Martin Jambor  <mjambor@suse.cz>
32518         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
32519         all appropriate places.
32521 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
32523         PR tree-optimization/56424
32524         * ipa-split.c (split_function): Do not set the RSO flag if result is
32525         not by reference and its type is a register type.
32527 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
32529         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
32530         (microblaze_legitimate_pic_operand): Likewise
32531         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
32532         new function microblaze_legitimate_pic_operand
32533         * config/microblaze/microblaze-protos.h
32534         (microblaze_legitimate_pic_operand): Declare.
32536 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32538         * config/microblaze/predicates.md (call_insn_simple_operand):
32539         New predicate for supported rtx code types.
32540         * config/microblaze/microblaze.md (call_internal1): Use
32541         call_insn_simple_operand predicate.
32543 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
32545         PR middle-end/56461
32546         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
32547         partitions.ordered_remove.
32549         PR middle-end/56461
32550         * tree-vect-stmts.c (vectorizable_conversion): Don't call
32551         vec_oprnds0.create (1) for modifier == NONE.
32553         PR middle-end/56461
32554         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
32555         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
32556         vec_oprnds1 right before pushing anything to it for
32557         scalar_shift_arg.
32559         PR middle-end/56461
32560         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
32561         set nbbs to 0 instead of having separate code path.
32562         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
32563         instead of false as last argument if returning NULL.
32565 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
32567         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
32568         the attribute is now called "target" instead of "option".
32569         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
32570         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
32571         attribute/pragma name for TARGET_OPTION_VALID_P and
32572         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
32573         * doc/tm.texi: Regenerated.
32575 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
32577         * config/microblaze/microblaze.c:
32578         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
32579         * config/microblaze/microblaze.h: Add -mxl-reorder to
32580         DRIVER_SELF_SPECS.
32581         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
32582         instructions emitted if TARGET_REORDER.
32583         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
32584         or 0 for -m/-mno case, but initialises as 2 to detect default use case
32585         separately.
32587 2013-03-01  Xinliang David Li  <davidxl@google.com>
32589         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
32590         walk length.
32592 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
32594         PR middle-end/56461
32595         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
32596         vector even when returning true.  Fix up function comment formatting.
32598         PR middle-end/56461
32599         * ira-build.c (ira_loop_nodes_count): New variable.
32600         (create_loop_tree_nodes): Initialize it.
32601         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
32603         PR middle-end/56461
32604         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
32605         method on dr_chain and result_chain.
32606         * tree-vect-stmts.c (vectorizable_store): Only call
32607         result_chain.create if j == 0.
32609         PR middle-end/56461
32610         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
32611         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
32612         before overwriting it.
32614 2013-03-01  Tobias Burnus  <burnus@net-b.de>
32616         * doc/extended.texi (C Extensions): Change order in @menu
32617         to match @node.
32618         (Other MIPS Built-in Functions): Move last MIPS entry before
32619         "picoChip Built-in Functions".
32620         (SH Built-in Functions): Move after RX Built-in Functions.
32621         * doc/gcc.texi (Introduction): Change order in @menu
32622         to match @node.
32623         * doc/md.texi (Constraints): Ditto.
32624         * gty.texi (Type Information): Ditto.
32625         (User-provided marking routines for template types): Make
32626         subsection.
32627         * doc/invoke.texi (AArch64 Options): Move before
32628         "Adapteva Epiphany Options".
32630 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
32631             Jakub Jelinek  <jakub@redhat.com>
32633         PR sanitizer/56454
32634         * asan.c (gate_asan): Lookup no_sanitize_address instead of
32635         no_address_safety_analysis attribute.
32636         * doc/extend.texi (no_address_safety_attribute): Rename to
32637         no_sanitize_address attribute, mention no_address_safety_analysis
32638         attribute as deprecated alias.
32640 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
32642         PR middle-end/56461
32643         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
32644         type to vec<vec<tree> > *.
32645         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
32646         to be vec<tree> instead of vec<tree> *, set vec_defs
32647         to vNULL and call vec_defs.create (number_of_vects), adjust other
32648         uses of vec_defs.
32649         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
32650         vectorizable_condition): Adjust vect_get_slp_defs callers.
32652 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32654         * config/aarch64/aarch64.c
32655         (aarch64_float_const_representable): Remove unused variable.
32657 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32659         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
32661 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32663         * config/aarch64/aarch64-builtins.c
32664         (aarch64_init_simd_builtins): Make static.
32666 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32668         * config/aarch64/aarch64.c
32669         (aarch64_simd_make_constant): Make static.
32671 2013-02-28  Martin Jambor  <mjambor@suse.cz>
32673         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
32674         with no initialization to the RHS of debug statements.
32676 2013-02-28  Martin Jambor  <mjambor@suse.cz>
32678         PR tree-optimization/56294
32679         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
32680         Adjust dumping.
32681         (get_access_replacement): Do not call create_access_replacement.
32682         Assert a replacement exists.
32683         (get_repl_default_def_ssa_name): Create the replacement declaration
32684         itself.
32686 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32688         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
32689         final_end_function.
32691 2013-02-28  Marek Polacek  <polacek@redhat.com>
32693         PR rtl-optimization/56466
32694         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
32695         if we're changing a loop.
32696         (peel_loops_completely): Likewise.
32698 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
32700         PR c++/55813
32701         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
32703 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
32705         PR target/56445
32706         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
32707         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
32708         INTX_FTYPE_FX, FX_FTYPE_INTX.
32709         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
32711 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
32713         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
32714         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
32715         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
32716         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
32717         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
32718         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
32719         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
32720         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
32721         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
32722         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
32723         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
32724         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
32725         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
32726         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
32727         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
32728         (avrxmega6): Increase max flash segments from 5 to 6.
32729         * config/avr/t-multilib: Regenerate.
32730         * config/avr/avr-tables.opt: Regenerate.
32731         * doc/avr-mmcu.texi: Regenerate.
32733 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
32735         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
32736         (avr_device_to_arch): Rename to avr_device_to_ld.
32737         (avr_device_to_as): New prototype.
32738         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
32739         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
32740         * config/avr/driver-avr.c (avr_device_to_as): New.
32741         (avr_device_to_arch): Rename to avr_device_to_ld.
32743 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
32745         PR middle-end/56461
32746         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
32747         method on dr_chain and result_chain.
32749         PR middle-end/56461
32750         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
32751         pointer_set_destroy on not_executed_last_iteration.
32753         PR middle-end/56461
32754         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
32756         PR middle-end/56461
32757         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
32758         FOR_EACH_DEFINED_FUNCTION when freeing state.
32760         PR middle-end/56461
32761         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
32762         pool_free.
32763         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
32764         overwriting it.
32766         PR middle-end/56461
32767         * ipa-cp.c (decide_whether_version_node): Call vec_free on
32768         known_aggs[i].items and release known_aggs vector.
32770         PR middle-end/56461
32771         * ipa-reference.c (propagate): Free node_info even for alias nodes.
32773 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32775         * config/microblaze/microblaze.c (microblaze_emit_compare):
32776         Use xor for EQ/NE comparisions.
32777         * config/microblaze/microblaze.md (cstoresf4): Add constraints
32778         (cbranchsf4): Adjust operator to comparison_operator.
32780 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
32782         PR middle-end/56461
32783         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
32784         vector.
32785         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
32786         vec_safe_push, always update *slot.
32787         (redirect_edge_var_map_clear): Use vec_free.
32788         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
32789         (free_var_map_entry): Use vec_free.
32790         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
32791         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
32793 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
32795         PR middle-end/45472
32796         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
32797         when the may_trap_p bit of the exprs being merged differs.
32798         Reorder tests for speculativeness in the logical and operator.
32800 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
32802         * incpath.c (add_standard_paths): Use reconcat instead of concat
32803         where appropriate and avoid leaking memory.
32805         * opts.h: Include obstack.h.
32806         (opts_concat): New prototype.
32807         (opts_obstack): New declaration.
32808         * opts.c (opts_concat): New function.
32809         (opts_obstack): New variable.
32810         (init_options_struct): Call gcc_init_obstack on opts_obstack.
32811         (finish_options): Use opts_concat instead of concat
32812         and XOBNEWVEC instead of XNEWVEC.
32813         * opts-common.c (generate_canonical_option, decode_cmdline_option,
32814         generate_option): Likewise.
32815         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
32816         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
32818         PR target/56455
32819         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
32820         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
32822 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
32824         PR middle-end/56461
32825         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
32827 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
32829         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
32830         (arm_block_move_unaligned_straight): Likewise.
32831         (arm_adjust_block_mem): Likewise.
32833 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
32835         PR target/48901
32836         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
32837         temp, cond and label.
32838         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
32840         PR target/52500
32841         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
32842         * config/c6x/c6x.h (dbx_register_map): Update declaration.
32844         PR target/52501
32845         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
32846         of prologue/epilogue functions.
32848         PR target/52550
32849         * config/tilegx/tilegx.c (tilegx_expand_prologue):
32850         Remove unused variable cfa_offset.
32851         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
32853         PR target/54639
32854         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
32855         type promotion to unsigned.
32857         PR target/54640
32858         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
32859         for HOST_WIDE_INT of 32 bit / same size as int.
32860         (arm_block_move_unaligned_straight): Likewise.
32861         (arm_adjust_block_mem): Likewise.
32863         PR target/54662
32864         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
32865         ALL_CFLAGS.
32867 2013-02-26  Marek Polacek  <polacek@redhat.com>
32869         PR tree-optimization/56426
32870         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
32872 2013-02-26  Richard Biener  <rguenther@suse.de>
32874         PR target/56444
32875         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
32876         unused variable loops.
32878 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
32880         PR tree-optimization/56448
32881         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
32882         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
32883         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
32884         later operands of the references, or even first operand for
32885         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
32887         PR tree-optimization/56443
32888         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
32889         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
32890         to type_for_mode langhook.
32892 2013-02-25  Matt Turner  <mattst88@gmail.com>
32894         * doc/invoke.texi: Document r4700.
32896 2013-02-25  Richard Biener  <rguenther@suse.de>
32898         PR tree-optimization/56175
32899         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
32900         split out from ...
32901         (simplify_bitwise_binary): ... here.  Also guard the conversion
32902         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
32904 2013-02-25  Catherine Moore  <clm@codesourcery.com>
32906         Revert:
32907         2013-02-24  Catherine Moore  <clm@codesourcery.com>
32908             Maciej W. Rozycki  <macro@codesourcery.com>
32909             Tom de Vries  <tom@codesourcery.com>
32910             Nathan Sidwell  <nathan@codesourcery.com>
32911             Iain Sandoe  <iain@codesourcery.com>
32912             Nathan Froyd  <froydnj@codesourcery.com>
32913             Chao-ying Fu  <fu@mips.com>
32915         * doc/extend.texi: (micromips, nomicromips, nocompression):
32916         Document new function attributes.
32917         * doc/invoke.texi (minterlink-compressed, mmicromips,
32918         m14k, m14ke, m14kec): Document new options.
32919         (minterlink-mips16): Update documentation.
32920         * doc/md.texi (ZC, ZD): Document new constraints.
32921         * configure.ac (gcc_cv_as_micromips): Check if linker
32922         supports the .set micromips directive.
32923         * configure: Regenerate.
32924         * config.in: Regenerate.
32925         * config/mips/mips-tables.opt: Regenerate.
32926         * config/mips/micromips.md: New file.
32927         * constraints.md (ZC, AD): New constraints.
32928         * config/mips/predicates.md (movep_src_register): New predicate.
32929         (movep_src_operand): New predicate.
32930         (non_volatile_mem_operand): New predicate.
32931         * config/mips/mips.md (multimem): New type.
32932         (length): Differentiate between 17-bit and 18-bit branch offsets.
32933         (MOVEP1, MOVEP2): New mode iterator.
32934         (mov_<load>l): Use ZC constraint.
32935         (mov_<load>r): Likewise.
32936         (mov_<store>l): Likewise.
32937         (mov_<store>r): Likewise.
32938         (*branch_equality<mode>_inverted): Add microMIPS support.
32939         (*branch_equality<mode>): Likewise.
32940         (*jump_absolute): Likewise.
32941         (indirect_jump_<mode>): Likewise.
32942         (tablejump_<mode>): Likewise.
32943         (<optab>_internal): Likewise.
32944         (sibcall_internal): Likewise.
32945         (sibcall_value_internal): Likewise.
32946         (prefetch): Use constraint ZD.
32947         * config/mips/mips.opt (minterlink-compressed): New option.
32948         (minterlink-mips16): Now an alias for minterlink-compressed.
32949         (mmicromips): New option.
32950         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32951         (compare_and_swap_12): Likewise.
32952         (sync_add<mode>): Likewise.
32953         (sync_<optab>_12): Likewise.
32954         (sync_old_<optab>_12): Likewise.
32955         (sync_new_<optab>_12): Likewise.
32956         (sync_nand_12): Likewise.
32957         (sync_old_nand_12): Likewise.
32958         (sync_new_nand_12): Likewise.
32959         (sync_sub<mode>): Likewise.
32960         (sync_old_add<mode>): Likewise.
32961         (sync_old_sub<mode>): Likewise.
32962         (sync_new_add<mode>): Likewise.
32963         (sync_new_sub<mode>): Likewise.
32964         (sync_<optab><mode>): Likewise.
32965         (sync_old_<optab><mode>): Likewise.
32966         (sync_new_<optab><mode>): Likewise.
32967         (sync_nand<mode>): Likewise.
32968         (sync_old_nand<mode>): Likewise.
32969         (sync_new_nand<mode>): Likewise.
32970         (sync_lock_test_and_set<mode>): Likewise.
32971         (test_and_set_12): Likewise.
32972         (atomic_compare_and_swap<mode>): Likewise.
32973         (atomic_exchange<mode>_llsc): Likewise.
32974         (atomic_fetch_add<mode>_llsc): Likewise.
32975         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
32976         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
32977         (umips_save_restore_pattern_p): Likewise.
32978         (umips_load_store_pair_p): Likewise.
32979         (umips_output_load_store_pair): Likewise.
32980         (umips_movep_target_p): Likewise.
32981         (umips_12bit_offset_address_p): Likewise.
32982         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
32983         (mips_base_mips16): Rename this...
32984         (mips_base_compression_flags): ...to this. Update all uses.
32985         (mips_attribute_table): Add micromips, nomicromips and nocompression.
32986         (mips_mips16_decl_p): Delete.
32987         (mips_nomips16_decl_p): Delete.
32988         (mips_get_compress_on_flags): New function.
32989         (mips_get_compress_off_flags): New function.
32990         (mips_get_compress_mode): New function.
32991         (mips_get_compress_on_name): New function.
32992         (mips_get_compress_off_name): New function.
32993         (mips_insert_attributes): Support multiple compression types.
32994         (mips_merge_decl_attributes): Likewise.
32995         (umips_12bit_offset_address_p): New function.
32996         (mips_start_function_definition): Emit .set micromips directive.
32997         (mips_call_may_need_jalx_p): New function.
32998         (mips_function_ok_for_sibcall): Add microMIPS support.
32999         (mips_print_operand_punctuation): Support short delay slots and
33000         compact jumps.
33001         (umips_swm_mask, umips_swm_encoding): New.
33002         (umips_build_save_restore): New function.
33003         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33004         (was_mips16_p): Remove.
33005         (old_compression_mode): New.
33006         (mips_set_compression_mode): New function.
33007         (mips_set_current_function): Add microMIPS support.
33008         (mips_option_override): Likewise.
33009         (umips_save_restore_pattern_p): New function.
33010         (umips_output_save_restore): New function.
33011         (umips_load_store_pair_p_1): New function.
33012         (umips_load_store_pair_p): New function.
33013         (umips_output_load_store_pair_1): New function.
33014         (umips_output_load_store_pair): New function.
33015         (umips_movep_target_p) New function.
33016         (mips_prepare_pch_save): Add microMIPS support.
33017         * config/mips/mips.h (TARGET_COMPRESSION): New.
33018         (TARGET_CPU_CPP_BUILTINS): Update macro
33019         to use new compression flags and to support microMIPS.
33020         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33021         (MIPS_ARCH_FLOAT_SPEC): Likewise.
33022         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33023         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33024         (ASM_SPEC): Support mmicromips and mno-micromips.
33025         (M16STORE_REG_P): New macro.
33026         (MIPS_CALL): Support TARGET_MICROMIPS.
33027         (MICROMIPS_J): New macro.
33028         (mips_base_mips16): Rename this...
33029         (mips_base_compression_flags): ...to this.
33030         (UMIPS_12BIT_OFFSET_P): New macro.
33031         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33032         (MULTILIB_DIRNAMES): Likewise.
33034 2013-02-25  Tom de Vries  <tom@codesourcery.com>
33036         PR rtl-optimization/56131
33037         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
33038         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
33039         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
33041 2013-02-25  Tobias Burnus  <burnus@net-b.de>
33043         * doc/invoke.texi (-fsanitize=): Move from optimization
33044         to debugging options.
33046 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
33048         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
33050 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
33051             Alexander Monakov  <amonakov@ispras.ru>
33053         PR middle-end/56077
33054         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
33055         flush pending lists also on non-jumps.  Adjust comment.
33057 2013-02-24  Catherine Moore  <clm@codesourcery.com>
33058             Maciej W. Rozycki  <macro@codesourcery.com>
33059             Tom de Vries  <tom@codesourcery.com>
33060             Nathan Sidwell  <nathan@codesourcery.com>
33061             Iain Sandoe  <iain@codesourcery.com>
33062             Nathan Froyd  <froydnj@codesourcery.com>
33063             Chao-ying Fu  <fu@mips.com>
33065         * doc/extend.texi: (micromips, nomicromips, nocompression):
33066         Document new function attributes.
33067         * doc/invoke.texi (minterlink-compressed, mmicromips,
33068         m14k, m14ke, m14kec): Document new options.
33069         (minterlink-mips16): Update documentation.
33070         * doc/md.texi (ZC, ZD): Document new constraints.
33071         * configure.ac (gcc_cv_as_micromips): Check if linker
33072         supports the .set micromips directive.
33073         * configure: Regenerate.
33074         * config.in: Regenerate.
33075         * config/mips/mips-tables.opt: Regenerate.
33076         * config/mips/micromips.md: New file.
33077         * constraints.md (ZC, AD): New constraints.
33078         * config/mips/predicates.md (movep_src_register): New predicate.
33079         (movep_src_operand): New predicate.
33080         (non_volatile_mem_operand): New predicate.
33081         * config/mips/mips.md (multimem): New type.
33082         (length): Differentiate between 17-bit and 18-bit branch offsets.
33083         (MOVEP1, MOVEP2): New mode iterator.
33084         (mov_<load>l): Use ZC constraint.
33085         (mov_<load>r): Likewise.
33086         (mov_<store>l): Likewise.
33087         (mov_<store>r): Likewise.
33088         (*branch_equality<mode>_inverted): Add microMIPS support.
33089         (*branch_equality<mode>): Likewise.
33090         (*jump_absolute): Likewise.
33091         (indirect_jump_<mode>): Likewise.
33092         (tablejump_<mode>): Likewise.
33093         (<optab>_internal): Likewise.
33094         (sibcall_internal): Likewise.
33095         (sibcall_value_internal): Likewise.
33096         (prefetch): Use constraint ZD.
33097         * config/mips/mips.opt (minterlink-compressed): New option.
33098         (minterlink-mips16): Now an alias for minterlink-compressed.
33099         (mmicromips): New option.
33100         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33101         (compare_and_swap_12): Likewise.
33102         (sync_add<mode>): Likewise.
33103         (sync_<optab>_12): Likewise.
33104         (sync_old_<optab>_12): Likewise.
33105         (sync_new_<optab>_12): Likewise.
33106         (sync_nand_12): Likewise.
33107         (sync_old_nand_12): Likewise.
33108         (sync_new_nand_12): Likewise.
33109         (sync_sub<mode>): Likewise.
33110         (sync_old_add<mode>): Likewise.
33111         (sync_old_sub<mode>): Likewise.
33112         (sync_new_add<mode>): Likewise.
33113         (sync_new_sub<mode>): Likewise.
33114         (sync_<optab><mode>): Likewise.
33115         (sync_old_<optab><mode>): Likewise.
33116         (sync_new_<optab><mode>): Likewise.
33117         (sync_nand<mode>): Likewise.
33118         (sync_old_nand<mode>): Likewise.
33119         (sync_new_nand<mode>): Likewise.
33120         (sync_lock_test_and_set<mode>): Likewise.
33121         (test_and_set_12): Likewise.
33122         (atomic_compare_and_swap<mode>): Likewise.
33123         (atomic_exchange<mode>_llsc): Likewise.
33124         (atomic_fetch_add<mode>_llsc): Likewise.
33125         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33126         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33127         (umips_save_restore_pattern_p): Likewise.
33128         (umips_load_store_pair_p): Likewise.
33129         (umips_output_load_store_pair): Likewise.
33130         (umips_movep_target_p): Likewise.
33131         (umips_12bit_offset_address_p): Likewise.
33132         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33133         (mips_base_mips16): Rename this...
33134         (mips_base_compression_flags): ...to this. Update all uses.
33135         (mips_attribute_table): Add micromips, nomicromips and nocompression.
33136         (mips_mips16_decl_p): Delete.
33137         (mips_nomips16_decl_p): Delete.
33138         (mips_get_compress_on_flags): New function.
33139         (mips_get_compress_off_flags): New function.
33140         (mips_get_compress_mode): New function.
33141         (mips_get_compress_on_name): New function.
33142         (mips_get_compress_off_name): New function.
33143         (mips_insert_attributes): Support multiple compression types.
33144         (mips_merge_decl_attributes): Likewise.
33145         (umips_12bit_offset_address_p): New function.
33146         (mips_start_function_definition): Emit .set micromips directive.
33147         (mips_call_may_need_jalx_p): New function.
33148         (mips_function_ok_for_sibcall): Add microMIPS support.
33149         (mips_print_operand_punctuation): Support short delay slots and
33150         compact jumps.
33151         (umips_swm_mask, umips_swm_encoding): New.
33152         (umips_build_save_restore): New function.
33153         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33154         (was_mips16_p): Remove.
33155         (old_compression_mode): New.
33156         (mips_set_compression_mode): New function.
33157         (mips_set_current_function): Add microMIPS support.
33158         (mips_option_override): Likewise.
33159         (umips_save_restore_pattern_p): New function.
33160         (umips_output_save_restore): New function.
33161         (umips_load_store_pair_p_1): New function.
33162         (umips_load_store_pair_p): New function.
33163         (umips_output_load_store_pair_1): New function.
33164         (umips_output_load_store_pair): New function.
33165         (umips_movep_target_p) New function.
33166         (mips_prepare_pch_save): Add microMIPS support.
33167         * config/mips/mips.h (TARGET_COMPRESSION): New.
33168         (TARGET_CPU_CPP_BUILTINS): Update macro
33169         to use new compression flags and to support microMIPS.
33170         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33171         (MIPS_ARCH_FLOAT_SPEC): Likewise.
33172         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33173         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33174         (ASM_SPEC): Support mmicromips and mno-micromips.
33175         (M16STORE_REG_P): New macro.
33176         (MIPS_CALL): Support TARGET_MICROMIPS.
33177         (MICROMIPS_J): New macro.
33178         (mips_base_mips16): Rename this...
33179         (mips_base_compression_flags): ...to this.
33180         (UMIPS_12BIT_OFFSET_P): New macro.
33181         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33182         (MULTILIB_DIRNAMES): Likewise.
33184 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
33186         PR target/52555
33187         * target-globals.c (save_target_globals): For init_reg_sets and
33188         target_reinit remporarily set this_fn_optabs to this_target_optabs.
33190 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
33192         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
33193         * config/aarch64/t-aarch64
33194         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
33196 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
33198         PR inline-asm/56148
33199         * lra-constraints.c (process_alt_operands): Reload operand
33200         conflicting with earlier clobber only if no more other conflicting
33201         operands.
33203 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
33205         PR sanitizer/56393
33206         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
33207         if not linking a shared library.
33209 2013-02-22  Seth LaForge  <sethml@google.com>
33211         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
33213 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
33215         * config/arm/arm.md (split for extendsidi): Update condition.
33216         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
33217         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
33218         (qhs_zextenddi_cstr): Likewise.
33220 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
33222         PR middle-end/56420
33223         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
33224         avoid signed wrapping.
33225         (expand_mult): Handle properly multiplication by
33226         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
33227         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
33228         in the compiler if coeff is HOST_WIDE_INT_MIN.
33229         (expand_divmod): Don't make ext_op1 static, change it's type to
33230         uhwi.  Avoid undefined behavior in -INTVAL (op1).
33232         PR rtl-optimization/50339
33233         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
33234         field.
33235         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
33236         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
33237         into splitting_ashiftrt field.
33238         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
33239         ASHIFTRT.
33240         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
33241         choices.
33243 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
33245         PR middle-end/56108
33246         * trans-mem.c (execute_tm_mark): Do not expand transactions that
33247         are sure to go irrevocable.
33249 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
33251         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
33252         scalars are valid operands.
33254 2013-02-21  Martin Jambor  <mjambor@suse.cz>
33256         PR tree-optimization/56310
33257         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
33258         only matching indices and non-negative final offsets.
33259         (intersect_aggregates_with_edge): Pass src_idx to
33260         agg_replacements_to_vector.  Pass src_idx insstead of index to
33261         intersect_with_agg_replacements.
33263 2013-02-21  Martin Jambor  <mjambor@suse.cz>
33265         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
33266         instead of hard-wired defaults.
33268 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
33270         * doc/invoke.texi (MIPS Options): Update documentation of the
33271         floating-point multiply-accumulate instruction restrictions.
33273 2013-02-21  Kostya Serebryany  <kcc@google.com>
33275         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
33276         asan_shadow_offset on x86_64 linux.
33278 2013-02-21  Richard Biener  <rguenther@suse.de>
33280         PR tree-optimization/56415
33281         Revert
33282         2013-02-11  Richard Biener  <rguenther@suse.de>
33284         PR tree-optimization/56273
33285         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33286         first VRP run.
33288 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
33290         PR bootstrap/56258
33291         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
33292         instead of @itemx.
33294         PR inline-asm/56405
33295         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
33296         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
33298 2013-02-20  Jan Hubicka  <jh@suse.cz>
33300         PR tree-optimization/56265
33301         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
33302         when target is referenced for first time.
33304 2013-02-20  Richard Biener  <rguenther@suse.de>
33306         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
33307         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
33308         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
33309         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
33310         not return anything.
33311         (rename_ssa_copies): Do not remove unused locals.
33312         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
33313         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
33314         * passes.c (execute_function_todo): Do not schedule unused locals
33315         removal if cleanup_tree_cfg did something.
33316         * tree-ssa-live.c (remove_unused_locals): Dump statistics
33317         about the number of removed locals.
33319 2013-02-20  Richard Biener  <rguenther@suse.de>
33321         PR tree-optimization/56398
33322         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
33324 2013-02-20  Martin Jambor  <mjambor@suse.cz>
33326         PR tree-optimization/55334
33327         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
33328         restricted pointers to arrays.
33330 2013-02-20  Richard Biener  <rguenther@suse.de>
33331             Jakub Jelinek  <jakub@redhat.com>
33333         PR tree-optimization/56396
33334         * tree-ssa-ccp.c (n_const_val): New static variable.
33335         (get_value): Return NULL for SSA names we don't have a lattice
33336         entry for.
33337         (ccp_initialize): Initialize n_const_val.
33338         * tree-ssa-copy.c (n_copy_of): New static variable.
33339         (init_copy_prop): Initialize n_copy_of.
33340         (get_value): Return NULL_TREE for SSA names we don't have a
33341         lattice entry for.
33343 2013-02-20  Martin Jambor  <mjambor@suse.cz>
33345         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
33347 2013-02-20  Richard Biener  <rguenther@suse.de>
33349         * genpreds.c (write_lookup_constraint): Do not compare first
33350         letter of the constraint again.
33352 2013-02-20  Richard Biener  <rguenther@suse.de>
33354         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
33355         and ceil_log2.
33356         (get_use_iv_cost): Terminate hashtable walk when coming across
33357         an empty entry.
33359 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
33361         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
33362         reassociation for avx2 targets.
33364 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33366         * config/microblaze/microblaze.c: microblaze_has_clz = 0
33367         Add version check for v8.10.a to enable microblaze_has_clz
33368         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
33369         version and TARGET_PATTERN_COMPARE check
33370         * config/microblaze/microblaze.md: New clzsi2 instruction
33372 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33374         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
33375         function before branching.
33377 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
33379         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
33380         DUMP_INSN_RTX_UID.
33381         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
33383 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
33385         PR middle-end/55889
33386         * sel-sched.c: Include ira.h.
33387         (implicit_clobber_conflict_p): New function.
33388         (moveup_expr): Use it.
33389         * Makefile.in (sel-sched.o): Depend on ira.h.
33391 2013-02-19  Richard Biener  <rguenther@suse.de>
33393         PR tree-optimization/56384
33394         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
33395         (vn_hash_type): Split out from ...
33396         (vn_hash_constant_with_type): ... here.
33397         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
33398         (vn_phi_eq): Compare types from vn_phi_s structure.
33399         (vn_phi_lookup): Populate vn_phi_s type.
33400         (vn_phi_insert): Likewise.
33402 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
33404         PR tree-optimization/56350
33405         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
33406         if haven't found reduction or nested cycle operand, rather than
33407         asserting we must find it.
33409         PR tree-optimization/56381
33410         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
33411         to fold_build3.
33413 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
33414             Jakub Jelinek  <jakub@redhat.com>
33416         PR target/52555
33417         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
33418         (swap_optab_enable): Same.
33419         (init_all_optabs): Use argument instead of global.
33420         * tree.h (struct tree_optimization_option): New field target_optabs.
33421         * expr.h (init_all_optabs): Add argument to prototype.
33422         (TREE_OPTIMIZATION_OPTABS): New.
33423         (save_optabs_if_changed): Protoize.
33424         * optabs.h: Declare this_fn_optabs.
33425         * optabs.c (save_optabs_if_changed): New.
33426         Declare this_fn_optabs.
33427         (init_optabs): Add argument to init_all_optabs() call.
33428         * function.c (invoke_set_current_function_hook): Handle per
33429         function optabs.
33430         * function.h (struct function): New field optabs.
33431         * config/mips/mips.c (mips_set_mips16_mode): Handle when
33432         optimization_current_node has changed.
33433         * target-globals.h (save_target_globals_default_opts): Protoize.
33434         * target-globals.c (save_target_globals_default_opts): New.
33436 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33438         PR target/56347
33439         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
33440         registers %fr12 and %fr12R as call used.
33442         PR target/56214
33443         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
33444         and HImode, require all displacements to be an integer multiple of
33445         their mode size.
33446         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
33447         only allow QImode and HImode when reload is in progress and strict is
33448         true.  Likewise for symbolic addresses.  Use base14_operand to check
33449         displacements in REG+BASE addresses.
33451 2013-02-18  Richard Biener  <rguenther@suse.de>
33453         PR tree-optimization/56366
33454         * tree-vect-loop.c (get_initial_def_for_induction): Properly
33455         handle sign-conversion of outer-loop initial induction value.
33457 2013-02-18  Richard Biener  <rguenther@suse.de>
33459         PR middle-end/56349
33460         * cfghooks.c (merge_blocks): If we merge a latch into another
33461         block adjust references to it.
33462         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
33463         (verify_loop_structure): Verify that a recorded latch is in fact
33464         a latch.
33466 2013-02-18  Richard Biener  <rguenther@suse.de>
33468         PR tree-optimization/56321
33469         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
33470         order SSA name release and virtual operand unlinking.
33472 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33474         * config/microblaze/microblaze.md (save_stack_block): Define.
33475         (restore_stack_block): Likewise.
33477 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33479         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
33480         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
33481         * config/microblaze/microblaze.c (microblaze_option_override):
33482         Bail out early for PIC modes when target does not support PIC.
33484 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33486         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
33487         Replace with a microblaze version.
33488         (microblaze_trampoline_init): Adapt for microblaze.
33489         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
33490         microblaze.
33492 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
33493             Dodji Seketeli  <dodji@redhat.com>
33495         PR asan/56330
33496         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
33497         (instrument_mem_region_access): Do not forget to always put
33498         instrumentation of the of 'base' and 'base + len' in a "if (len !=
33499         0) statement, even for cases where either 'base' or 'base + len'
33500         are not instrumented -- because they have been previously
33501         instrumented.  Simplify the logic by putting all the statements
33502         instrument 'base + len' inside a sequence, and then insert that
33503         sequence right before the current insertion point.  Then, to
33504         instrument 'base + len', just get an iterator on that statement.
33505         And do not forget to update the pointer to iterator the function
33506         received as argument.
33508 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
33510         PR rtl-optimization/56348
33511         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
33513 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
33515         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
33516         (clean_graph_dump_file): Pass base to start_graph_dump.
33518 2013-02-14  Richard Henderson  <rth@redhat.com>
33520         PR target/55941
33521         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
33523 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
33525         * collect2-aix.h: Define F_LOADONLY.
33527 2013-02-14  Richard Biener  <rguenther@suse.de>
33529         PR lto/50494
33530         * varasm.c (output_constant_def_1): Get the decl representing
33531         the constant as argument.
33532         (output_constant_def): Wrap output_constant_def_1.
33533         (make_decl_rtl): Use output_constant_def_1 with the decl
33534         representing the constant.
33535         (build_constant_desc): Optionally re-use a decl already
33536         representing the constant.
33537         (tree_output_constant_def): Adjust.
33539 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
33541         Fix an asan crash
33542         * asan.c (instrument_builtin_call):  Really put the length of the
33543         second source argument into src1_len.
33545 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
33547         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
33548         argument.  If it is false, don't create edge from then_bb to
33549         fallthru_bb.
33550         (insert_if_then_before_iter): Pass true to it.
33551         (build_check_stmt): Pass false to it.
33552         (transform_statements): Flush hash table only on extended basic
33553         block boundaries, rather than at the beginning of every bb.
33554         Don't flush hash table on nonfreeing_call_p calls.
33555         * tree-flow.h (nonfreeing_call_p): New prototype.
33556         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
33558 2013-02-13  David S. Miller  <davem@davemloft.net>
33560         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
33562 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
33564         PR target/56184
33565         * ira.c (max_regno_before_ira): Move from ...
33566         (ira): ... here.
33567         (fix_reg_equiv_init): Use max_regno_before_ira instead of
33568         vec_safe_length.
33570 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
33572         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
33574 2013-02-13  Richard Biener  <rguenther@suse.de>
33576         PR lto/56295
33577         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
33578         globals in MEM_REFs.
33580 2013-02-13  Richard Biener  <rguenther@suse.de>
33582         * loop-init.c (loop_optimizer_init): Clear loop state when
33583         re-initializing preserved loops.
33584         * loop-unswitch.c (unswitch_single_loop): Return whether
33585         we unswitched the loop.  Do not verify loop state here.
33586         (unswitch_loops): When we unswitched a loop discover new loops.
33588 2013-02-13  Kostya Serebryany  <kcc@google.com>
33590         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
33591         on x86_64 linux.
33592         * sanitizer.def: Rename __asan_init to __asan_init_v1.
33594 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
33596         Avoid instrumenting duplicated memory access in the same basic block
33597         * Makefile.in (asan.o): Add new dependency on hash-table.h
33598         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
33599         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
33600         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
33601         (free_mem_ref_resources, has_mem_ref_been_instrumented)
33602         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
33603         (get_mem_ref_of_assignment): New functions.
33604         (get_mem_refs_of_builtin_call): Extract from
33605         instrument_builtin_call and tweak a little bit to make it fit with
33606         the new signature.
33607         (instrument_builtin_call): Use the new
33608         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
33609         of is_gimple_builtin_call.
33610         (instrument_derefs, instrument_mem_region_access): Insert the
33611         instrumented memory reference into the hash table.
33612         (maybe_instrument_assignment): Renamed instrument_assignment into
33613         this, and change it to advance the iterator when instrumentation
33614         actually happened and return true in that case.  This makes it
33615         homogeneous with maybe_instrument_assignment, and thus give a
33616         chance to callers to be more 'regular'.
33617         (transform_statements): Clear the memory reference hash table
33618         whenever we enter a new BB, when we cross a function call, or when
33619         we are done transforming statements.  Use
33620         maybe_instrument_assignment instead of instrumentation.  No more
33621         need to special case maybe_instrument_assignment and advance the
33622         iterator after calling it; it's now handled just like
33623         maybe_instrument_call.  Update comment.
33625 2013-02-13  Richard Biener  <rguenther@suse.de>
33627         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
33628         Fix loop discovery code.
33630 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
33632         PR inline-asm/56148
33633         * lra-constraints.c (process_alt_operands): Match early clobber
33634         operand with itself.  Check conflicts with earlyclobber only if
33635         the operand is not reloaded.  Prefer to reload conflicting operand
33636         if earlyclobber and matching operands are the same.
33638 2013-02-12  Richard Biener  <rguenther@suse.de>
33640         PR lto/56297
33641         * lto-streamer-out.c (write_symbol): Do not output symbols
33642         for hard register variables.
33644 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
33646         PR target/54222
33647         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
33648         (umulsidi3_insn, mulsidi3_insn): New insns.
33650 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
33652         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
33653         (struct tune_params): Add vec_costs field.
33654         * config/arm/arm.c (arm_builtin_vectorization_cost)
33655         (arm_add_stmt_cost): New functions.
33656         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
33657         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
33658         (arm_default_vec_cost): New struct of type cpu_vec_costs.
33659         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
33660         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
33661         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
33662         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
33664 2013-02-12  Richard Biener  <rguenther@suse.de>
33666         PR lto/56295
33667         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
33668         decls again if possible.
33670 2013-02-12  Richard Biener  <rguenther@suse.de>
33672         PR middle-end/56288
33673         * tree-ssa.c (verify_ssa_name): Fix check, move
33674         SSA_NAME_IN_FREE_LIST check up.
33676 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
33677             Steven Bosscher   <steven@gcc.gnu.org>
33679         PR rtl-optimization/56151
33680         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
33681         equal to op0 or op1, and last_insn pattern is CODE operation
33682         with MEM dest and one of the operands matches that MEM.
33684 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
33686         * doc/extend.texi: Document Function Multiversioning and "default"
33687         parameter string to target attribute.
33688         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
33689         target attribute parameter is "default".
33690         (ix86_compare_version_priority): Remove checks for target attribute.
33691         (ix86_mangle_function_version_assembler_name): Change error to sorry.
33692         Remove check for target attribute equal to NULL. Add assert.
33693         (ix86_generate_version_dispatcher_body): Change error to sorry.
33695 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
33696             Jack Howarth  <howarth@bromo.med.uc.edu>
33697             Patrick Marlier  <patrick.marlier@gmail.com>
33699         PR libitm/55693
33700         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
33701         define ENDFILE_SPEC as TM_DESTRUCTOR.
33702         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
33704 2013-02-11  Alexander Potapenko  <glider@google.com>
33705             Jack Howarth  <howarth@bromo.med.uc.edu>
33706             Jakub Jelinek  <jakub@redhat.com>
33708         PR sanitizer/55617
33709         * config/darwin.c (cdtor_record): Rename ctor_record.
33710         (sort_cdtor_records): Rename sort_ctor_records.
33711         (finalize_dtors): New routine to sort destructors by
33712         priority before use in assemble_integer.
33713         (machopic_asm_out_destructor): Use finalize_dtors if needed.
33715 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
33717         PR rtl-optimization/56275
33718         * simplify-rtx.c (avoid_constant_pool_reference): Check that
33719         offset is non-negative and less than cmode size before
33720         calling simplify_subreg.
33722 2013-02-11  Richard Biener  <rguenther@suse.de>
33724         PR tree-optimization/56264
33725         * cfgloop.h (fix_loop_structure): Adjust prototype.
33726         * loop-init.c (fix_loop_structure): Return the number of
33727         newly discovered loops.
33728         * tree-cfgcleanup.c (repair_loop_structures): When new loops
33729         are discovered, do a full loop-closed SSA rewrite.
33731 2013-02-11  Richard Biener  <rguenther@suse.de>
33733         PR tree-optimization/56273
33734         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33735         first VRP run.
33736         (check_array_ref): Fix missing newline in dumps.
33737         (search_for_addr_array): Likewise.
33739 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
33741         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
33743 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
33745         PR target/56256
33746         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
33748 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
33750         PR rtl-optimization/56246
33751         * lra-constraints.c (simplify_operand_subreg): Try to reuse
33752         reload pseudo.
33753         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
33754         constraints are satisfied.
33756 2013-02-08  Jeff Law  <law@redhat.com>
33758         PR debug/53948
33759         * emit-rtl.c (reg_is_parm_p): New function.
33760         * regs.h (reg_is_parm_p): New prototype.
33761         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
33762         callee-clobbered registers.
33764 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
33766         PR target/56043
33767         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
33768         If there is no implicit builtin declaration, just return NULL.
33770 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
33772         * config/i386/sse.md (FMAMODEM): New mode iterator.
33773         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
33774         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
33776 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
33778         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
33779         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
33780         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
33782 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33784         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
33785         (microblaze*-*-elf): Likewise.
33786         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
33787         LINK_SPEC.
33788         * config/microblaze/microblaze-c.c: Add builtin defines for
33789         _LITTLE_ENDIAN and _BIG_ENDIAN.
33790         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
33791         add to TARGET_DEFAULT flags.
33792         Expand ASM_SPEC and LINK_SPEC.
33793         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
33794         * config/microblaze/microblaze.md: Update extendsidi2 and
33795         movdi_internal instructions to use low-order / high-order reg
33796         print_operands.
33797         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
33798         options and inversemask / mask of LITTLE_ENDIAN.
33799         * config/microblaze/t-microblaze: Expand multilib options to
33800         include mlittle-endian (le) and update exceptions patterns.
33802 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
33804         PR rtl-optimization/56195
33805         * lra-constraints.c (get_reload_reg): Don't reuse regs
33806         if they have smaller mode than requested, if they have
33807         wider mode than requested, try to return a SUBREG.
33809         PR tree-optimization/56250
33810         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
33811         if type is unsigned and code isn't MULT_EXPR.
33813 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
33815         PR tree-optimization/56064
33816         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
33817         bits according to mode.
33818         * fixed-value.h (fixed_from_double_int)
33819         (const_fixed_from_double_int): Adjust comments.
33821 2013-02-08  Richard Biener  <rguenther@suse.de>
33823         PR lto/56231
33824         * lto-streamer.h (struct data_in): Remove current_file, current_line
33825         and current_col members.
33826         * lto-streamer-out.c (lto_output_location): Stream changed bits
33827         en-block for efficiency.
33828         * lto-streamer-in.c (clear_line_info): Remove.
33829         (lto_input_location): Cache current file, line and column
33830         globally via local statics.  Read changed bits en-block.
33831         (input_function): Do not call clear_line_info.
33832         (lto_read_body): Likewise.
33833         (lto_input_toplevel_asms): Likewise.
33835 2013-02-08  Michael Matz  <matz@suse.de>
33837         PR tree-optimization/52448
33838         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
33839         (nt_call_phase): New static.
33840         (add_or_mark_expr): Only mark accesses with newer phase than any
33841         call seen.
33842         (nonfreeing_call_p): New.
33843         (nt_init_block): Update nt_call_phase, mark blocks as visited.
33844         (nt_fini_block): Keep blocks marked as visited.
33845         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
33847 2013-02-08  Richard Biener  <rguenther@suse.de>
33849         * ira.c (ira): Free broken dominator information.
33851 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
33853         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
33855 2013-02-08  Marek Polacek  <polacek@redhat.com>
33857         * cfgloop.c (verify_loop_structure): Add more checking of headers.
33859 2013-02-08  Richard Biener  <rguenther@suse.de>
33861         PR middle-end/56181
33862         * cfgloop.h (flow_loops_find): Adjust.
33863         (bb_loop_header_p): Declare.
33864         * cfgloop.c (bb_loop_header_p): New function split out from ...
33865         (flow_loops_find): ... here.  Adjust function signature,
33866         support incremental loop structure update.
33867         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
33868         * cfgloopmanip.c (fix_loop_structure): Move ...
33869         * loop-init.c (fix_loop_structure): ... here.
33870         (apply_loop_flags): Split out from ...
33871         (loop_optimizer_init): ... here.
33872         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
33873         in incremental mode, only remove dead loops here.
33875 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
33877         PR target/54222
33878         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
33879         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
33880         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
33881         (*round<mode>3.libgcc): New insns for fixed-modes.
33882         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
33883         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
33884         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
33885         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
33886         implementations.  Define to __builtin_avr_absFX,
33887         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
33888         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
33889         __builtin_avr_countlsFX, respectively.
33890         * config/avr/avr-c.c (target.h): Include it.
33891         (enum avr_builtin_id): New enum.
33892         (avr_resolve_overloaded_builtin): New static function.
33893         (avr_register_target_pragmas): Use it to set
33894         targetm.resolve_overloaded_builtin.
33895         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
33896         tree nodes used by DEF_BUILTIN.
33897         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
33898         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
33899         <AVR_BUILTIN_xxBITS>: Same.
33901 2013-02-08  Richard Biener  <rguenther@suse.de>
33903         * cfgloop.c (verify_loop_structure): Properly handle
33904         a loop exiting to another loop header.
33905         * ira-int.h (ira_loops): Remove.
33906         * ira.c (ira_loops): Remove.
33907         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
33908         (do_reload): Use loop_optimizer_finalize.
33909         * ira-build.c (create_loop_tree_nodes): Use get_loops and
33910         number_of_loops to access the loop tree.
33911         (more_one_region_p): Likewise.
33912         (finish_loop_tree_nodes): Likewise.
33913         (rebuild_regno_allocno_maps): Likewise.
33914         (mark_loops_for_removal): Likewise.
33915         (mark_all_loops_for_removal): Likewise.
33916         (remove_unnecessary_regions): Likewise.
33917         (ira_build): Likewise.
33918         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
33920 2013-02-08  Richard Biener  <rguenther@suse.de>
33922         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
33923         * ipa-pure-const.c (analyze_function): Avoid calling
33924         mark_irreducible_loops twice.
33925         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
33927 2013-02-07  David S. Miller  <davem@davemloft.net>
33929         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
33930         on 'reg'.
33931         * var-tracking.c (vt_add_function_parameter): Test the presence of
33932         HAVE_window_save properly and do not remap argument registers when
33933         we have a leaf function.
33935 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
33937         PR bootstrap/56227
33938         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
33939         instead of "ll".
33940         * config/i386/i386.c (ix86_print_operand): Ditto.
33942 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
33944         * lra-constraints.c (process_alt_operands): Fix recently added comment.
33946 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
33948         PR rtl-optimization/56225
33949         * lra-constraints.c (process_alt_operands): Check that reload hard
33950         reg can hold value for strict_low_part.
33952 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
33954         PR debug/56154
33955         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
33956         dwarf2out_end_function.
33957         (in_first_function_p, maybe_at_text_label_p,
33958         first_loclabel_num_not_at_text_label): New variables.
33959         (dwarf2out_var_location): In the first function find out
33960         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
33961         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
33962         functions.
33964 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
33966         PR rtl-optimization/56178
33967         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
33968         SUBREG of a register.  Tidy up related block of code.
33969         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
33970         note if the source is a register or a SUBREG of a register.
33972 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
33974         PR target/56228
33975         * config/rs6000/rs6000.md (ptrm): New mode attr.
33976         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
33977         call_value_indirect_aix<pttrsize>,
33978         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
33979         m in constraints.
33981 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
33983         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
33984         if -bnortl. Convert to strcmp and strncmp.
33986 2013-02-07  Alan Modra  <amodra@gmail.com>
33988         PR target/54009
33989         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
33990         addresses won't wrap when offsetting.
33991         (rs6000_secondary_reload): Provide secondary reloads needed for
33992         wrapping LO_SUM addresses.
33994 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
33996         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
33997         MACH, just __MACH__.
33999 2013-02-06  Richard Biener  <rguenther@suse.de>
34001         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
34002         instead of calling fix_loop_structure.
34004 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
34006         PR middle-end/56217
34007         * omp-low.c (use_pointer_for_field): Return false if
34008         lower_send_shared_vars doesn't generate any copy-out code.
34010 2013-02-06  Tom de Vries  <tom@codesourcery.com>
34012         PR rtl-optimization/56131
34013         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
34014         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
34015         of the label is NULL.  Add comment.
34017 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
34019         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
34021         PR sanitizer/55374
34022         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
34023         (STATIC_LIBTSAN_LIBS): Likewise.
34024         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
34025         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
34026         is defined, don't add anything else beyond that.
34027         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
34028         (LINK_COMMAND_SPEC): Use them.
34030         PR tree-optimization/56205
34031         * tree-stdarg.c (check_all_va_list_escapes): Return true if
34032         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
34033         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
34035 2013-02-05  Richard Biener  <rguenther@suse.de>
34037         PR tree-optimization/53342
34038         PR tree-optimization/53185
34039         * tree-vectorizer.h (vect_check_strided_load): Remove.
34040         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
34041         not disallow peeling for vectorized strided loads.
34042         (vect_check_strided_load): Make static and simplify.
34043         (vect_analyze_data_refs): Adjust.
34044         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
34045         correctly when vectorizing strided loads.
34047 2013-02-05  Richard Biener  <rguenther@suse.de>
34049         * doc/install.texi: Refer to ISL, not PPL.
34051 2013-02-05  Jan Hubicka  <jh@suse.cz>
34053         PR tree-optimization/55789
34054         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
34056 2013-02-05  Jan Hubicka  <jh@suse.cz>
34058         PR tree-optimization/55789
34059         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
34060         the dead call anyway.
34062 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
34064         PR sanitizer/55374
34065         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
34067 2013-02-04  Alexander Potapenko  <glider@google.com>
34068             Jack Howarth  <howarth@bromo.med.uc.edu>
34069             Jakub Jelinek  <jakub@redhat.com>
34071         PR sanitizer/55617
34072         * config/darwin.c (sort_ctor_records): Stabilized qsort
34073         on constructor priority by using original position.
34074         (finalize_ctors): New routine to sort constructors by
34075         priority before use in assemble_integer.
34076         (machopic_asm_out_constructor): Use finalize_ctors if needed.
34078 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
34080         PR libstdc++/54314
34081         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
34082         about visibility on artificial decls.
34083         * config/sol2.c (solaris_assemble_visibility): Likewise.
34085 2013-02-04  Kai Tietz  <ktietz@redhat.com>
34087         PR target/56186
34088         * config/i386/i386.c (function_value_ms_64): Add additional valtype
34089         argument and improve checking of return-argument types for 16-byte
34090         modes.
34091         (ix86_function_value_1): Add additional valtype argument on call
34092         of function_value_64.
34093         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
34094         handling infunction_value_64 function.
34096 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
34098         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
34100 2013-02-04  Richard Biener  <rguenther@suse.de>
34102         PR tree-optimization/56188
34103         * tree-ssa-structalias.c (label_visit): Consider case with
34104         initially non-empty points-to set.
34105         (perform_var_substitution): Dump node mapping and clean up.
34107 2013-02-04  Richard Guenther  <rguenther@suse.de>
34109         PR lto/56168
34110         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
34111         node prevail as last resort.
34112         (lto_symtab_merge_decls): Remove guard on LTRANS here.
34113         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
34115 2013-02-04  Richard Biener  <rguenther@suse.de>
34117         PR tree-optimization/56113
34118         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
34119         Merge into ...
34120         (equiv_class_lookup_or_add): ... this.
34121         (label_visit): Adjust and fix error in previous patch.
34122         (perform_var_substitution): Adjust.
34124 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
34126         * config/sh/divtab.c: Fix formatting and comments throughout the file.
34127         * config/sh/sh4-300.md: Likewise.
34128         * config/sh/sh4a.md: Likewise.
34129         * config/sh/constraints.md: Likewise.
34130         * config/sh/sh.md: Likewise.
34131         * config/sh/netbsd-elf.h: Likewise.
34132         * config/sh/predicates.md: Likewise.
34133         * config/sh/sh-protos.h: Likewise.
34134         * config/sh/ushmedia.h: Likewise.
34135         * config/sh/linux.h: Likewise.
34136         * config/sh/sh.c: Likewise.
34137         * config/sh/superh.h: Likewise.
34138         * config/sh/elf.h: Likewise.
34139         * config/sh/sh4.md: Likewise.
34140         * config/sh/sh.h: Likewise.
34142 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34144         * config/pa/constraints.md: Adjust unused letters.  Change "T"
34145         constraint to match_test floating_point_store_memory_operand().
34146         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
34147         (base14_operand): New.
34148         (floating_point_store_memory_operand): New.
34149         (integer_store_memory_operand): Revise to use base14_operand and
34150         reg_plus_base_memory_operand.
34151         (move_dest_operand): Allow symbolic_memory_operands.
34152         (symbolic_memory_operand): Check for LO_SOM.
34153         (symbolic_operand): Change default case to break.
34154         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
34155         CONST_DOUBLE values to be reloaded by putting them into memory when
34156         the destination is a floating point register.
34157         (movdf): Remove code to handle CONST_DOUBLE.
34158         (movsf): Likewise.
34159         (reload_indf_r1): New.
34160         (reload_insf_r1): New.
34161         Consistently use "Q" and "T" constraints with integer and floating
34162         point move instructions, respectively.
34163         (movdi): Remove FAIL.
34164         Change predicate for source operand unamed DImode move from
34165         general_operand to move_src_operand.
34166         (umulsidi3): Change predicate for destination operand to
34167         register_operand.
34168         Likewise for similar unamed patterns.
34169         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
34170         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
34171         (hppa_legitimize_address): Simplify mask calculation.
34172         (pa_emit_move_sequence): Revised handling of secondary reloads from
34173         REG+D addresses for floating point loads and stores.  Directly handle
34174         loading CONST0_RTX (mode) to a floating point register.
34175         (pa_secondary_reload): Handle reloading DF and SFmode constant values
34176         to floating point registers.  Don't restrict secondary reloads to
34177         floating point registers to integer modes.  Revise some comments and
34178         cleanup some code.
34179         (TARGET_LEGITIMATE_ADDRESS_P): Define.
34180         (pa_legitimate_address_p): New.
34181         (pa_legitimize_reload_address): New.
34182         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
34183         (STRICT_REG_OK_FOR_BASE_P): New.
34184         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
34185         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
34187 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
34188             Andrew Dixie  <andrewd@gentrack.com>
34190         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
34191         flag set.
34193 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
34195         * expmed.c (extract_bit_field_1): Pass the full width of the
34196         structure to get_best_reg_extraction_insn.
34198 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
34200         PR target/54601
34201         * configure.ac (use_cxa_atexit): Add AIX.
34202         * configure: Regenerate.
34204         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
34206 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
34208         PR debug/54793
34209         * final.c (need_profile_function): New variable.
34210         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
34211         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
34212         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
34213         notes, targetm.asm_out.function_prologue doesn't emit anything,
34214         HAVE_prologue and profiler should be emitted before prologue,
34215         set need_profile_function instead of emitting it.
34216         (final_scan_insn): If need_profile_function, emit
34217         profile_function on the first NOTE_INSN_BASIC_BLOCK or
34218         NOTE_INSN_FUNCTION_BEG note.
34220 2013-02-01  Richard Henderson  <rth@redhat.com>
34222         * config/rs6000/rs6000.md (smulditi3): New.
34223         (umulditi3): New.
34225         * config/alpha/alpha.md (umulditi3): New.
34227 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
34229         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
34230         (ASM_OUTPUT_ALIGNED_LOCAL): New.
34232 2013-02-01  Richard Biener  <rguenther@suse.de>
34234         PR tree-optimization/56113
34235         * tree-ssa-structalias.c (label_visit): Reduce work for
34236         single-predecessor nodes.
34238 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
34240         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
34241         range isn't testing for zero.
34243 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
34245         PR middle-end/56113
34246         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
34248 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
34249             Nick Clifton  <nickc@redhat.com>
34251         * config/v850/constraints.md (Q): Define as a memory constraint.
34252         * config/v850/predicates.md (label_ref_operand): New predicate.
34253         (e3v5_shift_operand): New predicate.
34254         (ior_operator): New predicate.
34255         * config/v850/t-v850: Add e3v5 multilib.
34256         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
34257         (v850_gen_movdi): Prototype.
34258         * config/v850/v850.c: Add support for e3v5 architecture.
34259         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
34260         TARGET_V850E_UP.
34261         (construct_save_jarl): Add e3v5 long JARL support.
34262         (v850_adjust_insn_length): New function.  Adjust length of call
34263         insns when using e3v5 instructions.
34264         (v850_gen_movdi): New function: Generate instructions to move a
34265         DImode value.
34266         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
34267         (CPP_SPEC): Define __v850e3v5__ as appropriate.
34268         (TARGET_USE_FPU): Enable for e3v5.
34269         (CONST_OK_FOR_W): New macro.
34270         (ADJUST_INSN_LENGTH): Define.
34271         * config/v850/v850.md (UNSPEC_LOOP): Define.
34272         (attr cpu): Add v850e3v5.
34273         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
34274         (movdi): New pattern.
34275         (movdi_internal): New pattern.
34276         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
34277         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
34278         (cstoresf4): Likewise.
34279         (cstoredf4): Likewise.
34280         (insv): New pattern.
34281         (rotlso3_a): New pattern.
34282         (rotlsi3_b): New pattern
34283         (rotlsi3_v850e3v5): New pattern.
34284         (doloop_begin): New pattern.
34285         (fix_loop_counter): New pattern.
34286         (doloop_end): New pattern.
34287         (branch_normal): Add e3v5 long branch support.
34288         (branch_invert): Likewise.
34289         (branch_z_normal): Likewise.
34290         (branch_z_invert): Likewise.
34291         (branch_nz_normal): Likewise.
34292         (branch_nz_invert): Likewise.
34293         (call_internal_short): Add e3v5 register-indirect JARL support.
34294         (call_internal_long): Likewise.
34295         (call_value_internal_short): Likewise.
34296         (call_value_internal_long): Likewise.
34297         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
34298         (mloop): New option.
34299         * config.gcc: Add support for configuring v840e3v5 target.
34300         * doc/invoke.texi: Document new v850 specific command line options.
34302 2013-01-31  Paul Koning  <ni1d@arrl.net>
34304         PR debug/55059
34305         PR debug/54508
34306         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
34307         children if parent is a class.
34308         (prune_unused_types_prune): Don't add DW_AT_declaration.
34310 2013-01-31  Richard Biener  <rguenther@suse.de>
34312         PR tree-optimization/56157
34313         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
34314         match up operand with SLP child.
34316 2013-01-31  Jason Merrill  <jason@redhat.com>
34318         PR debug/54410
34319         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
34320         parameters the first time.
34321         (gen_scheduled_generic_parms_dies): Check completeness here.
34323 2013-01-31  Richard Biener  <rguenther@suse.de>
34325         PR middle-end/53073
34326         * common.opt (faggressive-loop-optimizations): New flag,
34327         enabled by default.
34328         * doc/invoke.texi (faggressive-loop-optimizations): Document.
34329         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
34330         infer_loop_bounds_from_undefined by it.
34332 2013-01-31  Richard Biener  <rguenther@suse.de>
34334         PR tree-optimization/56150
34335         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
34336         visit virtual operands.
34337         (find_uses_to_rename_bb): Likewise.
34339 2013-01-31  Richard Biener  <rguenther@suse.de>
34341         PR tree-optimization/56150
34342         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
34343         mixed store non-store stmts.
34345 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
34347         PR sanitizer/55374
34348         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
34349         LIBASAN_EARLY_SPEC is defined.
34350         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
34351         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
34352         before %o.
34353         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
34355         PR c++/55742
34356         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
34357         invalid args instead of ICEing on it.
34358         (ix86_valid_target_attribute_tree): Return error_mark_node if
34359         ix86_valid_target_attribute_inner_p failed.
34360         (ix86_valid_target_attribute_p): Return false only if
34361         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
34362         target("default") attribute.
34363         (sorted_attr_string): Change argument from const char * to tree,
34364         merge in all target attribute arguments rather than just one.
34365         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
34366         instead of free.  Avoid using strcat.
34367         (ix86_mangle_function_version_assembler_name): Mangle
34368         target("default") as if no target attribute is present.  Adjust
34369         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
34370         instead of xmalloc and XDELETEVEC instead of free.
34371         (ix86_function_versions): Don't return true if one of the decls
34372         doesn't have target attribute.  If they don't and one of the decls
34373         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
34374         sorted_attr_string caller.  Use XDELETEVEC instead of free.
34375         (ix86_supports_function_versions): Remove.
34376         (make_name): Fix up formatting.
34377         (make_dispatcher_decl): Remove resolver_name and its initialization.
34378         Avoid leaking memory.
34379         (is_function_default_version): Return true if there is
34380         target("default") attribute rather than no target attribute at all.
34381         (make_resolver_func): Avoid leaking memory.
34382         (ix86_generate_version_dispatcher_body): Likewise.
34383         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
34384         * target.def (supports_function_versions): Remove.
34385         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
34386         * doc/tm.texi: Regenerated.
34388 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34390         PR rtl-optimization/56144
34391         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
34392         for values with side effects.
34394 2013-01-30  Richard Biener  <rguenther@suse.de>
34396         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
34397         (sparseset_pop): Likewise.
34398         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
34399         to be able to use quick_push in the worker loop.
34401 2013-01-30  Marek Polacek  <polacek@redhat.com>
34403         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
34405 2013-01-30  Richard Biener  <rguenther@suse.de>
34407         PR lto/56147
34408         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
34410 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
34412         PR tree-optimization/56064
34413         * fixed-value.c (fixed_from_double_int): New function.
34414         * fixed-value.h (fixed_from_double_int): New prototype.
34415         (const_fixed_from_double_int): New static inline function.
34416         * fold-const.c (native_interpret_fixed): New static function.
34417         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
34418         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
34419         (native_encode_fixed): New static function.
34420         (native_encode_expr) <FIXED_CST>: Use it.
34421         (native_interpret_int): Move double_int worker code to...
34422         * double-int.c (double_int::from_buffer): ...this new static method.
34423         * double-int.h (double_int::from_buffer): Prototype it.
34425 2013-01-30  Richard Biener  <rguenther@suse.de>
34427         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
34428         New pointer-map and obstack.
34429         (init_alias_vars): Allocate pointer-map and obstack.
34430         (delete_points_to_sets): Free them.
34431         (find_what_var_points_to): Cache result.
34432         (find_what_p_points_to): Adjust for changed interface of
34433         find_what_var_points_to.
34434         (compute_points_to_sets): Likewise.
34435         (ipa_pta_execute): Likewise.
34437 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34439         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
34440         * configure: Regenerate.
34441         * config.in: Regenerate.
34442         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
34443         #nobits/#progbits if supported.
34445 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
34447         PR target/56121
34448         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
34449         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
34450         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
34452 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34454         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
34455         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
34457 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34459         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
34460         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
34462 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34464         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
34465         declaration.
34466         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
34467         * config/arm/cortex-a7.md: New bypasses using
34468         arm_mac_accumulator_is_result.
34470 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34472         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
34473         (cortex_a7_neon_mla): Likewise.
34474         (cortex_a7_fpfmad): New reservation.
34475         (cortex_a7_fpmacs): Use ffmas and update required units.
34476         (cortex_a7_fpmuld): Update required units and latency.
34477         (cortex_a7_fpmacd): Likewise.
34478         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
34479         (cortex_a7_neon). Likewise.
34480         (bypass) Update participating units.
34482 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34484         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
34485         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
34486         from fmac to ffma.
34487         * config/arm/vfp11.md (vfp_farith): Use ffmas.
34488         (vfp_fmul): Use ffmad.
34489         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
34490         (cortex_r4_fmacd): Use ffmad.
34491         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
34492         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
34493         (cortex_a9_fmacd): Use ffmad.
34494         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
34495         (cortex_a8_vfp_macd): Use ffmad.
34496         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
34497         (cortex_a5_fpmacd): Use ffmad.
34498         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
34499         (cortex_a15_vfp_macd): Use ffmad.
34500         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
34502 2013-01-29  Jason Merrill  <jason@redhat.com>
34504         PR libstdc++/54314
34505         * varasm.c (default_assemble_visibility): Don't warn about
34506         visibility on artificial decls.
34508 2013-01-29  Richard Biener  <rguenther@suse.de>
34510         PR tree-optimization/56113
34511         * tree-ssa-structalias.c (equiv_class_lookup): Also return
34512         the bitmap leader.
34513         (label_visit): Free duplicate bitmaps and record the leader instead.
34514         (perform_var_substitution): Adjust.
34516 2013-01-29  Richard Biener  <rguenther@suse.de>
34518         PR tree-optimization/55270
34519         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
34520         the CFG, schedule loops for fixup.
34522 2013-01-29  Nick Clifton  <nickc@redhat.com>
34524         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
34525         SP_REG.
34527 2013-01-28  Leif Ekblad  <leif@rdos.net>
34529         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
34530         * config/i386/i386.h (TARGET_RDOS): New macro.
34531         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
34532         * config/i386/i386.c (ix86_option_override_internal): For 64bit
34533         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
34534         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
34535         DEFAULT_LARGE_SECTION_THRESHOLD.
34536         * config/i386/i386.md (R14_REG, R15_REG): New constants.
34537         * config/i386/rdos.h: New file.
34538         * config/i386/rdos64.h: New file.
34540 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
34542         PR other/54814
34543         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
34544         TEST_HARD_REG_BIT.
34546 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
34548         PR rtl-optimization/56117
34549         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
34550         call cselib_lookup_from_insn on the MEM before calling
34551         add_insn_mem_dependence.
34553 2013-01-28  Richard Biener  <rguenther@suse.de>
34555         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
34556         to a stmt that didn't have one.
34557         (copy_phis_for_bb): Likewise for PHI arguments.
34558         (copy_debug_stmt): Likewise for debug stmts.
34560 2013-01-28  Richard Biener  <rguenther@suse.de>
34562         PR tree-optimization/56034
34563         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
34564         (partition_builtin_p): Adjust.
34565         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
34566         it is the last partition.
34567         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
34568         up the vertex for the definition.
34569         (classify_partition): Classify whether a partition is a
34570         PKIND_REDUCTION, thus has uses outside of the loop.
34571         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
34572         Merge all PKIND_REDUCTION partitions into the last partition.
34573         (tree_loop_distribution): Seed partitions from reductions as well.
34575 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
34577         PR tree-optimization/56125
34578         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
34579         pow(x,c) into sqrt(x) * powi(x, n/2) or
34580         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
34581         optimizing for size.
34582         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
34583         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
34584         integer.
34586         PR tree-optimization/56094
34587         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
34588         to UNKNOWN_LOCATION while gimplifying expr.
34590 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
34592         PR target/56114
34593         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
34594         operand 0 in movabs insn template for -masm=intel asm alternative.
34595         (*movabs<mode>_2): Ditto for operand 1.
34597 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
34599         PR target/54663
34600         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
34601         of microblaze-c.o
34603 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34605         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
34606         tm_file.
34608 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
34610         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
34611         Undef to avoid warning.
34613 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34615         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
34616         * configure: Regenerate.
34618 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
34620         PR tree-optimization/56098
34621         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
34622         for stmts with volatile ops.
34623         (cond_store_replacement): Don't optimize if assign has volatile ops.
34624         (cond_if_else_store_replacement_1): Don't optimize if either
34625         then_assign or else_assign have volatile ops.
34626         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
34627         volatile ops.
34629 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
34631         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
34633 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
34635         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
34636         missing ':' in asm example.
34638 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
34640         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
34641         entries into lane and laneq entries.
34642         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
34643         Remove AdvSIMD scalar modes.
34644         (aarch64_sq<r>dmulh_laneq<mode>): New.
34645         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
34646         modes.
34647         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
34648         builtin implementations to relfect changes in RTL in aarch64-simd.md.
34649         * config/aarch64/iterators.md (VCOND): New.
34650         (VCONQ): New.
34652 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
34654         PR target/54222
34655         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
34656         Add NULL LIBNAME argument to existing definitions.
34657         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
34658         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
34659         * config/avr/avr.c (DEF_BUILTIN): Same.
34660         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
34661         (avr_expand_builtin): Expand to a vanilla call if a libgcc
34662         implementation is available (DECL_ASSEMBLER_NAME is set).
34663         (avr_fold_absfx): New static function.
34664         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
34665         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
34666         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
34667         AVR_BUILTIN_ABSLLK.
34668         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
34669         (abshk, absk, abslk, absllk): Provide as static inline functions.
34671 2013-01-25  Marek Polacek  <polacek@redhat.com>
34673         PR tree-optimization/56035
34674         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
34676 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
34678         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
34679         (*movtf_internal_rex64): Add (!o,C) alternative
34680         (*movxf_internal_rex64): Ditto.
34681         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
34683 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
34685         * doc/invoke.texi: fix typo.
34686         * doc/objc.texi: fix typo.
34688 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
34690         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
34691         for the first two alternatives.
34693 2013-01-24  Diego Novillo  <dnovillo@google.com>
34695         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
34696         (ggc-zone.o): Remove.
34697         * configure.ac: Remove option --with-gc.
34698         * configure: Re-generate.
34699         * doc/install.texi: Remove documentation for --with-gc.
34700         * gengtype.c (write_enum_defn): Remove.  Update all users.
34701         (write_Types_process_field): Remove generation of gt_e_* argument.
34702         (output_type_enum): Remove.  Update all users.
34703         (write_enum_defn): Remove.  Update all users.
34704         (enum alloc_zone): Remove.  Update all users.
34705         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
34706         * ggc-common.c (ggc_splay_alloc): Remove first argument.
34707         Update all callers.
34708         (struct ptr_data): Remove field TYPE.  Update all users.
34709         (gt_pch_note_object): Remove argument TYPE.  Update all users.
34710         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
34711         Update all users.
34712         * ggc-none.c (ggc_alloc_typed_stat): Remove.
34713         (struct alloc_zone): Remove.
34714         (ggc_internal_alloc_zone_stat): Remove.
34715         (ggc_internal_cleared_alloc_zone_stat): Remove.
34716         * ggc-page.c (ggc_alloc_typed_stat): Remove.
34717         (ggc_pch_count_object): Remove last argument.  Update all users.
34718         (ggc_pch_alloc_object): Remove last argument.  Update all users.
34719         (struct alloc_zone): Remove.
34720         * ggc-zone.c: Remove.
34721         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
34722         (struct alloc_zone): Remove.
34723         (ggc_alloc_typed_stat): Remove.
34724         (ggc_alloc_typed): Remove.
34725         (ggc_splay_alloc): Remove first argument.
34726         (rtl_zone): Remove.  Update all users.
34727         (tree_zone): Remove.  Update all users.
34728         (tree_id_zone): Remove.  Update all users.
34729         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
34730         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
34731         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
34732         * tree-ssanames.c: Remove references to zone allocator in comments.
34734 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
34736         * config/avr/avr.c (avr_out_fract): Make register numbers that
34737         might be outside of source operand signed.
34739 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
34741         * config/i386/constraints.md (Yf): New constraint.
34742         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
34743         of f constraint to conditionaly disable x87 register preferences.
34744         (*movdf_internal): Ditto.
34745         (*movsf_internal): Ditto.
34747 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
34749         PR inline-asm/55934
34750         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
34751         that have operands with impossible constraints.
34752         Add a FIXME for a speed-up opportunity.
34753         * lra-constraints.c (process_alt_operands): Verify that a class
34754         selected from constraints on asms is valid for the operand mode.
34755         (curr_insn_transform): Remove incorrect comment.
34757 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
34759         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
34760         TOC operand is a valid symbol ref in the constant pool.
34762 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34764         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
34766 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
34768         PR target/54222
34769         * config/avr/stdfix.h: New file.
34770         * t-avr (stdfix-gcc.h): New rule to build it.
34771         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
34773 2013-01-23  Kostya Serebryany  <kcc@google.com>
34775         * config/darwin.h: remove dependency on
34776         CoreFoundation (asan on Mac OS).
34778 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
34780         PR target/49069
34781         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
34782         instead of cmpdi_operand for first comparison operand.
34783         Don't assert that comparison operands aren't both constants.
34785 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
34787         * doc/install.texi (Downloading the Source): Update references to
34788         downloading separate components.
34790 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
34792         * doc/extend.texi (__int128): Improve grammar.
34794 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
34796         PR target/56028
34797         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
34798         alternative to (o,r).
34799         (*movdi_internal_rex64): Remove (!o,n) alternative.
34800         (DImode immediate->memory splitter): Remove.
34801         (DImode immediate->memory peephole2): Remove.
34802         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
34803         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
34804         alternative to (!o,*r).
34805         (*movtf_internal_sse): New pattern.
34806         (*movxf_internal_rex64): New pattern.
34807         (*movxf_internal): Disable for TARGET_64BIT.
34808         (*movdf_internal_rex64): Remove (!o,F) alternative.
34810 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
34812         PR middle-end/56074
34813         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
34814         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
34815         * tree-vect-loop-manip.c (find_loop_location): Also ignore
34816         stmt locations where LOCATION_LOCUS of the stmt location is
34817         UNKNOWN_LOCATION or BUILTINS_LOCATION.
34819         PR target/55686
34820         * config/i386/i386.md (UNSPEC_STOS): New.
34821         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
34822         *strsetqi_1): Add UNSPEC_STOS.
34824 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
34826         PR c++/56067
34827         * doc/invoke.texi: Remove left over -Wsynth example.
34829 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
34831         PR tree-optimization/56051
34832         * fold-const.c (fold_binary_loc): Don't fold
34833         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
34834         a narrowing conversion, or widening conversion from signed
34835         to unsigned.
34837 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
34839         PR rtl-optimization/56023
34840         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
34841         dependent on debug instruction.
34843 2013-01-21  Martin Jambor  <mjambor@suse.cz>
34845         PR middle-end/56022
34846         * function.c (allocate_struct_function): Call
34847         invoke_set_current_function_hook earlier.
34849 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
34851         * reload1.c (init_reload): Only initialize reload_obstack
34852         during the first call.
34854 2013-01-21  Marek Polacek  <polacek@redhat.com>
34856         * cfgloop.c (verify_loop_structure): Fix up grammar.
34858 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
34860         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
34861         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
34863 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34865         PR target/56058
34866         * config/arm/marvell-pj4.md: Update copyright year.
34867         Fix up use of alu to alu_reg and simple_alu_imm.
34869 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
34871         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
34873 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
34875         PR target/55433
34876         * lra-constraints.c (curr_insn_transform): Don't reuse original
34877         insn for secondary memory move when memory mode should be different.
34879 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34881         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
34882         atomic_storedi_1): New patterns.
34884 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
34886         btver2 pipeline descriptions.
34887         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
34888         descriptions.
34889         * config/i386/i386.md (btver2_decode): New type attributes.
34890         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
34891         type attributes.
34892         * config/i386/btver2.md: New file describing btver2 pipelines.
34894 2013-01-19  Andrew Pinski  <apinski@cavium.com>
34896         PR tree-optimization/52631
34897         * tree-ssa-sccvn (visit_use): Before looking up the original
34898         statement, try looking up the simplified expression.
34900 2013-01-19  Anthony Green  <green@moxielogic.com>
34902         * config/moxie/moxie.c (moxie_expand_prologue): Set
34903         current_function_static_stack_size.
34905 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
34907         PR tree-optimization/56029
34908         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
34909         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
34911 2013-01-18  Sharad Singhai  <singhai@google.com>
34913         PR tree-optimization/55995
34914         * dumpfile.c (dump_loc): Print location only if available.
34915         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
34917 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
34919         PR target/55433
34920         * lra-constraints.c (curr_insn_transform): Reuse original insn for
34921         secondary memory move.
34922         (inherit_reload_reg): Use rclass instead of cl for
34923         check_secondary_memory_needed_p.
34925 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
34927         PR middle-end/56015
34928         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
34929         the case where writing real complex part of target modifies op1.
34931 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
34933         * config/aarch64/aarch64-simd.md
34934         (aarch64_vcond_internal<mode>): Handle unordered cases.
34935         * config/aarch64/iterators.md (v_cmp_result): New.
34937 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
34938             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34940         * config/arm/marvell-pj4.md: New file.
34941         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
34942         * config/arm/arm.md (generic_sched): Add marvell_pj4.
34943         (generic_vfp): Likewise.
34944         * config/arm/arm-cores.def: Add marvell-pj4.
34945         * config/arm/arm-tune.md: Regenerate.
34946         * config/arm/arm-tables.opt: Regenerate.
34947         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
34948         * doc/invoke.texi: Document marvell-pj4.
34950 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
34952         * config/aarch64/arm_neon.h: Map scalar types to standard types.
34954 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
34956         PR debug/54114
34957         PR debug/54402
34958         PR debug/49888
34959         * var-tracking.c (negative_power_of_two_p): New.
34960         (global_get_addr_cache, local_get_addr_cache): New.
34961         (get_addr_from_global_cache, get_addr_from_local_cache): New.
34962         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
34963         heading comment.
34964         (vt_stack_offset_p): Remove.
34965         (vt_canon_true_dep): Always canonicalize loc's address.
34966         (clobber_overlapping_mems): Make sure we have a MEM.
34967         (local_get_addr_clear_given_value): New.
34968         (val_reset): Clear local cached entries.
34969         (compute_bb_dataflow): Create and release the local cache.
34970         Disable duplicate MEMs clobbering.
34971         (emit_notes_in_bb): Clobber MEMs likewise.
34972         (vt_emit_notes): Create and release the local cache.
34973         (vt_initialize, vt_finalize): Create and release the global
34974         cache, respectively.
34975         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
34977 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
34979         PR libmudflap/53359
34980         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
34981         not found in the symtab.
34983 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
34985         PR debug/56006
34986         PR rtl-optimization/55547
34987         PR rtl-optimization/53827
34988         PR debug/53671
34989         PR debug/49888
34990         * alias.c (offset_overlap_p): New, factored out of...
34991         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
34992         the conservative special case for symbolic constants.  Don't
34993         adjust zero sizes on alignment.
34995 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
34997         PR rtl-optimization/52573
34998         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
34999         REG_UNUSED for the same register.
35001 2013-01-17  Richard Biener  <rguenther@suse.de>
35002             Marek Polacek  <polacek@redhat.com>
35004         PR rtl-optimization/55833
35005         * loop-unswitch.c (unswitch_loops): Move loop verification...
35006         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
35007         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
35008         Set it to true when we're removing a loop from hierarchy tree in
35009         an irreducible region.
35010         (fix_bb_placements): Adjust caller.
35011         (fix_loop_placements): Likewise.
35013 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
35015         * config/avr/builtins.def (DEF_BUILTIN): Factor out
35016         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
35017         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
35018         Remove ID.  Adjust comments.
35019         * config/avr/avr-c.c (avr_builtin_name): Remove.
35020         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
35021         * config/avr/avr.c (avr_tolower): New static function.
35022         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
35023         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
35024         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
35025         default expansion.
35027 2013-01-17  Jan Hubicka  <jh@suse.cz>
35029         PR tree-optimization/55273
35030         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
35032 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
35034         PR target/55981
35035         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
35036         store through atomic_store<mode>_1.
35037         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
35039 2013-01-17  Martin Jambor  <mjambor@suse.cz>
35041         PR tree-optimizations/55264
35042         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
35043         for virtual methods.
35044         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
35045         virtual methods before inlining is over.
35046         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
35047         virtual functions.
35048         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
35049         non-virtual.
35051 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35053         PR rtl-optimization/56005
35054         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
35055         pending reads for prefetch.
35057 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
35059         * config/aarch64/aarch64.md
35060         (*cstoresi_neg_uxtw): New pattern.
35061         (*cmovsi_insn_uxtw): New pattern.
35062         (*<optab>si3_uxtw): New pattern.
35063         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
35064         (*<optab>si3_insn_uxtw): New pattern.
35065         (*bswapsi2_uxtw): New pattern.
35067 2013-01-16  Richard Biener  <rguenther@suse.de>
35069         * tree-inline.c (tree_function_versioning): Remove set but
35070         never used variable.
35072 2013-01-16  Richard Biener  <rguenther@suse.de>
35074         PR tree-optimization/55964
35075         * tree-flow.h (rename_variables_in_loop): Remove.
35076         (rename_variables_in_bb): Likewise.
35077         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
35078         (copy_loop_before): Adjust and delete update-ssa status.
35079         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
35080         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
35081         (rename_variables_in_loop): Remove.
35082         (slpeel_update_phis_for_duplicate_loop): Likewise.
35083         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
35084         use available cfg machinery instead of duplicating it.
35085         Update PHI nodes and perform poor-mans SSA update here.
35086         (slpeel_tree_peel_loop_to_edge): Adjust.
35088 2013-01-16  Richard Biener  <rguenther@suse.de>
35090         PR tree-optimization/54767
35091         PR tree-optimization/53465
35092         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
35093         (vrp_visit_phi_node): For PHI arguments coming via backedges
35094         drop all symbolical range information.
35095         (execute_vrp): Compute backedges.
35097 2013-01-16  Richard Biener  <rguenther@suse.de>
35099         * doc/install.texi: Update CLooG and ISL requirements to
35100         0.18.0 and 0.11.1.
35102 2013-01-16  Christian Bruel  <christian.bruel@st.com>
35104         PR target/55301
35105         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
35106         (broken_move): Handle UNSPECV_SP_SWITCH_B.
35107         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
35109 2013-01-16  DJ Delorie  <dj@redhat.com>
35111         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
35112         (UNSPECV_SP_SWITCH_E): New.
35113         (sp_switch_1): Change to an unspec.
35114         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
35115         replace $r15.
35117 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
35119         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
35120         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
35121         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
35122         (expand_mem_thread_fence): Ditto.
35123         (expand_mem_signal_fence): Ditto.
35124         (expand_atomic_load): Ditto.
35125         (expand_atomic_store): Ditto.
35127 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
35129         PR rtl-optimization/55547
35130         PR rtl-optimization/53827
35131         PR debug/53671
35132         PR debug/49888
35133         * alias.c (memrefs_conflict_p): Set sizes to negative after
35134         AND adjustments.
35136 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35138         PR target/55940
35139         * function.c (thread_prologue_and_epilogue_insns): Always
35140         add crtl->drap_reg to set_up_by_prologue.set, even if
35141         stack_realign_drap is false.
35143 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35145         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
35146         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
35147         *call): Fix indention.
35149 2013-01-15  Tom de Vries  <tom@codesourcery.com>
35151         PR target/55876
35152         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
35153         Update comment.
35155 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
35157         PR rtl-optimization/55153
35158         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
35160 2013-01-15  Martin Jambor  <mjambor@suse.cz>
35162         PR tree-optimization/55920
35163         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
35164         accesses as grp_to_be_debug_replaced.
35166 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35168         PR tree-optimization/55920
35169         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
35170         there is non-useless type conversion needed from debug rhs to lhs,
35171         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
35173 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
35174             Mikael Pettersson  <mikpe@it.uu.se>
35176         PR target/43961
35177         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
35178         Thumb.
35179         (ASM_OUTPUT_CASE_LABEL): Remove.
35180         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
35181         * final.c (shorten_branches): Update alignment of labels before
35182         jump tables if CASE_VECTOR_SHORTEN_MODE.
35184 2013-01-15  Richard Biener  <rguenther@suse.de>
35186         PR bootstrap/55961
35187         * system.h: Do not include gmp.h for building host tools.
35189 2013-01-15  Richard Biener  <rguenther@suse.de>
35191         PR middle-end/55882
35192         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
35193         account for bitpos when computing alignment.
35195 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
35197         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
35198         (ix86_target_macros_internal): Likewise.
35200         * config/i386/i386.c (m_CORE2I7): Removed.
35201         (m_CORE_HASWELL): New macro.
35202         (m_CORE_ALL): Likewise.
35203         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
35204         (initial_ix86_arch_features): Likewise.
35205         (processor_target_table): Initializations for Core avx2.
35206         (cpu_names): New names "core-avx2".
35207         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
35208         PROCESSOR_CORE_HASWELL.
35209         (ix86_issue_rate): New case.
35210         (ia32_multipass_dfa_lookahead): Likewise.
35211         (ix86_sched_init_global): Likewise.
35213         * config/i386/i386.h (TARGET_HASWELL): New macro.
35214         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
35215         (processor_type): New PROCESSOR_HASWELL.
35217 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35219         PR tree-optimization/55955
35220         * tree-vect-loop.c (vectorizable_reduction): Give up early on
35221         *SHIFT_EXPR and *ROTATE_EXPR codes.
35223         PR tree-optimization/48766
35224         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
35225         -ftrapv disable -fwrapv.
35227 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35229         PR target/55974
35230         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
35231         etc. to 1 and not to __flash.
35232         Use LL suffix for __INT24_MAX__ with -mint8.
35233         Use ULL suffix for __UINT24_MAX__ with -mint8.
35235 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35237         * config/avr/avr-arch.h
35238         (struct base_arch_s): Use typedef avr_arch_t instead.
35239         (struct arch_info_s): Use typedef avr_arch_info_t instead.
35240         (struct mcu_type_s): Use typedef avr_mcu_t instead.
35241         * config/avr/avr.c: Same.
35242         * config/avr/avr-devices.c: Same.
35243         * config/avr/driver-avr.c: Same.
35244         * config/avr/gen-avr-mmcu-texi.c: Same.
35245         * config/avr/avr-mcus.def: Adjust comment.
35247 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
35249         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
35250         * config/aarch64/iterators.md (VALLDI): New.
35252 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
35253             Andi Kleen  <ak@linux.intel.com>
35255         PR target/55948
35256         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
35257         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
35258         memmodel flag.
35260 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35262         * config/avr/avr-stdint.h: Remove trailing blanks.
35263         * config/avr/avr-log.h: Same.
35264         * config/avr/avr-arch.h: Same.
35265         * config/avr/avr-devices.c: Same.
35266         * config/avr/avr-dimode.md: Same.
35267         * config/avr/predicates.md: Same.
35268         * config/avr/avr-c.c: Same.  And fix typo.
35270         * config/avr/avr-protos.h: Same.  And:
35271         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
35272         (init_cumulative_args): Rename to avr_init_cumulative_args.
35273         (expand_prologue): Rename to avr_expand_prologue.
35274         (expand_epilogue): Rename to avr_expand_epilogue.
35275         (adjust_insn_length): Rename to avr_adjust_insn_length.
35276         (notice_update_cc): Rename to avr_notice_update_cc.
35277         (final_prescan_insn): Rename to avr_final_prescan_insn.
35278         * config/avr/avr.c: Same.
35279         * config/avr/avr.h: Same.
35280         * config/avr/avr.md: Remove trailing blanks.
35281         (prologue): Use avr_expand_prologue.
35282         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
35284 2013-01-14  Richard Biener  <rguenther@suse.de>
35286         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
35287         verify_location, collect_subblocks): New functions.
35288         (verify_gimple_in_cfg): Verify that locations only reference
35289         BLOCKs in the functions BLOCK tree.
35291 2013-01-14  Richard Biener  <rguenther@suse.de>
35293         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
35294         PHI argument.
35295         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
35296         unshare reference.
35297         (insert_out_of_ssa_copy_on_edge): Likewise.
35298         (rewrite_close_phi_out_of_ssa): Likewise.
35299         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
35300         debug expressions.
35301         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
35302         propagated constants.
35303         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
35304         can not be shared.
35306 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35308         * config/avr/avr-modes.def: Add GPL copyright notice.
35310 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
35312         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
35313         MEMMODEL_MASK to determine memory model.
35314         (atomic_store<mode>): Ditto from operands[2].
35315         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
35317 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
35319         PR fortran/55935
35320         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
35321         (fold_gimple_assign): Don't call unshare_expr here.
35322         (fold_ctor_reference): Call unshare_expr.
35324 2013-01-13  Terry Guo  <terry.guo@arm.com>
35326         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
35327         * doc/fragments.texi: Document MULTILIB_REUSE.
35328         * gcc.c (multilib_reuse): New internal spec.
35329         (set_multilib_dir): Also search multilib from multilib_reuse.
35330         * genmultilib (tmpmultilib3): Refactor code.
35331         (tmpmultilib4): Ditto.
35332         (multilib_reuse): New multilib argument.
35334 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
35336         * Makefile.in: Update copyright.
35338 2013-01-12  Tom de Vries  <tom@codesourcery.com>
35340         PR middle-end/55890
35341         * calls.c (expand_call): Check if arg_nr is valid.
35343 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
35345         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
35346         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
35347         documentation.  Add missing '__' in front of
35348         __builtin_ia32_packssdw256.
35350 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35352         PR target/55719
35353         * config/s390/s390.c (s390_preferred_reload_class): Do not return
35354         NO_REGS for larl operands.
35355         (s390_reload_larl_operand): Use s390_load_address instead of
35356         emit_move_insn.
35358 2013-01-11  Richard Biener  <rguenther@suse.de>
35360         * tree-cfg.c (verify_node_sharing_1): Split out from ...
35361         (verify_node_sharing): ... here.
35362         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
35364 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
35366         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
35367         Substitute TREECHECKING.
35368         * configure: Regenerate.
35369         * Makefile.in (TREECHECKING): New.
35371 2013-01-11  Richard Guenther  <rguenther@suse.de>
35373         PR tree-optimization/44061
35374         * tree-vrp.c (extract_range_basic): Compute zero as
35375         value-range for __builtin_constant_p of function parameters.
35377 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
35379         Update copyright years.
35381 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
35383         PR rtl-optimization/55672
35384         * lra-eliminations.c (mark_not_eliminable): Permit addition with
35385         const to be eliminable.
35387 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
35389         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
35390         * configure: Regenerate.
35392 2013-01-10  Richard Biener  <rguenther@suse.de>
35394         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
35396 2013-01-10  Richard Biener  <rguenther@suse.de>
35398         PR bootstrap/55792
35399         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
35400         locations for virtual PHI arguments.
35401         (rewrite_update_phi_arguments): Likewise.
35403 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
35405         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
35406         on to assembler.
35408 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
35410         PR tree-optimization/55921
35411         * tree-complex.c (expand_complex_asm): New function.
35412         (expand_complex_operations_1): Call it for GIMPLE_ASM.
35414 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35416         PR target/55718
35417         * config/s390/s390.c (s390_symref_operand_p)
35418         (s390_loadrelative_operand_p): Merge the two functions.
35419         (s390_check_qrst_address, print_operand_address): Add parameters
35420         to s390_loadrelative_operand_p invokation.
35421         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
35422         (s390_reload_larl_operand, s390_secondary_reload): Use
35423         s390_loadrelative_operand_p instead of s390_symref_operand_p.
35424         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
35426 2013-01-09  Mike Stump  <mikestump@comcast.net>
35428         * dse.c (record_store): Remove unnecessary assert.
35430 2013-01-09  Jan Hubicka  <jh@suse.cz>
35432         PR tree-optimization/55569
35433         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
35434         * cfgloop.h (scale_loop_profile): Likewise.
35436 2013-01-09  Jan Hubicka  <jh@suse.cz>
35438         PR lto/45375
35439         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
35440         functions.
35441         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
35443 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
35445         PR middle-end/55114
35446         * expr.h (maybe_emit_group_store): Declare.
35447         * expr.c (maybe_emit_group_store): New function.
35448         * builtins.c (expand_builtin_int_roundingfn): Call it.
35449         (expand_builtin_int_roundingfn_2): Likewise.
35451 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
35453         PR rtl-optimization/55829
35454         * lra-constraints.c (match_reload): Add code for absent output.
35455         (curr_insn_transform): Add code for reloads of matched inputs
35456         without output.
35458 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
35460         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
35461         attribute of movddup insn to DF.
35462         (*vec_interleave_lowv2df): Ditto.
35463         (vec_dupv2df): Ditto.
35465 2013-01-09  Jan Hubicka  <jh@suse.cz>
35467         PR tree-optimiation/55875
35468         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
35469         EVERY_ITERATION parameter.
35470         (number_of_iterations_exit): Check if exit is executed every iteration.
35471         (idx_infer_loop_bounds): Similarly here.
35472         (n_of_executions_at_most): Simplify
35473         to only test for cases where statement is dominated by the
35474         particular bound; handle correctly the "postdominance" test.
35475         (scev_probably_wraps_p): Use max loop iterations info
35476         as a global bound first.
35478 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
35479             Nick Clifton  <nickc@redhat.com>
35481         * config/v850/v850.md (cbranchsf4): New pattern.
35482         (cstoresf4): New pattern.
35483         (cbranchdf4): New pattern.
35484         (cstoredf4): New pattern.
35485         (movsicc): Disallow floating point comparisons.
35486         (cmpsf_le_insn): Fix order of operators.
35487         (cmpsf_lt_insn): Likewise.
35488         (cmpsf_eq_insn): Likewise.
35489         (cmpdf_le_insn): Likewise.
35490         (cmpdf_lt_insn): Likewise.
35491         (cmpdf_eq_insn): Likewise.
35492         (cmpsf_ge_insn): Use LE comparison.
35493         (cmpdf_ge_insn): Likewise.
35494         (cmpsf_gt_insn): Use LT comparison.
35495         (cmpdf_gt_insn): Likewise.
35496         (cmpsf_ne_insn): Delete pattern.
35497         (cmpdf_ne_insn): Delete pattern.
35498         * config/v850/v850.c (v850_gen_float_compare): Use
35499         gen_cmpdf_eq_insn for NE comparison.
35500         (v850_float_z_comparison_operator)
35501         (v850_float_nz_comparison_operator): Move from here ...
35502         * config/v850/predicates.md: ... to here.  Move GT and GE
35503         comparisons into v850_float_z_comparison_operator.
35504         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
35505         Delete prototype.
35506         (v850_float_nz_comparison_operator): Likewise.
35508 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35510         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
35511         with calls to gen_insvsi/gen_insvdi.
35513 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
35515         * config/i386/i386.c (initial_ix86_tune_features): Set up
35516         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
35518 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
35519             Jakub Jelinek  <jakub@redhat.com>
35521         PR tree-optimization/48189
35522         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
35523         If nitercst is 0, don't predict the exit edge.
35525 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
35527         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
35528         in asm_fprintf with reg_names.
35529         (aarch64_print_operand_address): Likewise.
35530         (aarch64_return_addr): Likewise.
35531         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
35533 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35535         * config/pa/pa.h (VAL_U6_BITS_P): Define.
35536         (INT_U6_BITS): Likewise.
35537         * config/pa/predicates.md (uint6_operand): New predicate.
35538         (shift5_operand, shift6_operand): Likewise.
35539         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
35540         arith32_operand.
35541         (lshrdi3): Use shift6_operand.
35542         (shrpsi4, shrpdi4): New insn patterns.
35543         (extzv): Delete expander.
35544         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
35545         predicates in unamed zero extract patterns.  Tighten common constraint.
35546         (extv): Delete expander.
35547         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
35548         predicates in unamed sign extract patterns.  Tighten common constraint.
35549         (insv): Delete expander.
35550         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
35551         predicates in unamed insert patterns.  Tighten common constraint.
35552         Change uint32_operand predicate to uint6_operand predicate in unamed
35553         DImode pattern to insert constant values of type 1...1xxxx.
35555 2013-01-04  Jan Hubicka  <jh@suse.cz>
35557         PR tree-optimization/55823
35558         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
35559         issue.
35561 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35562             Uros Bizjak  <ubizjak@gmail.com>
35564         PR rtl-optimization/55845
35565         * df-problems.c (can_move_insns_across): Stop scanning at
35566         volatile_insn_p source instruction or give up if
35567         across_from .. across_to range contains any volatile_insn_p
35568         instructions.
35570 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
35572         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
35573         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
35574         Declare.
35575         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
35576         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
35578 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35580         PR fortran/55341
35581         * asan.c (asan_clear_shadow): New function.
35582         (asan_emit_stack_protection): Use it.
35584 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
35586         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
35587         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
35588         with tab instead of space.
35590 2013-01-08  Nick Clifton  <nickc@redhat.com>
35592         * config/rl78/rl78.c (rl78_expand_prologue): Always select
35593         register bank 0 at the start of an interrupt handler.
35594         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
35595         MDBH registers.
35597 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
35599         * config/aarch64/aarch64-simd.md
35600         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
35601         (aarch64_simd_bsl): Likewise.
35602         (aarch64_vcond_internal<mode>): Likewise.
35603         (vcond<mode><mode>): Likewise.
35604         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
35605         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
35607 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
35609         * config/aarch64/aarch64-builtins.c
35610         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
35612 2013-01-08  Martin Jambor  <mjambor@suse.cz>
35614         PR debug/55579
35615         * tree-sra.c (analyze_access_subtree): Return true also after
35616         potentially creating a debug-only replacement.
35618 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35620         PR middle-end/55890
35621         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
35623         PR tree-optimization/54120
35624         * tree-vrp.c (range_fits_type_p): Don't allow
35625         src_precision < precision from signed vr to unsigned_p
35626         if vr->min or vr->max is negative.
35627         (simplify_float_conversion_using_ranges): Test can_float_p
35628         against CODE_FOR_nothing.
35630 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35631             Richard Biener  <rguenther@suse.de>
35633         PR middle-end/55851
35634         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
35635         types instead of just INTEGER_TYPE types.
35637 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
35639         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
35640         TF_SIZE): Define.
35642 2013-01-07  Steve Ellcey  <sellcey@mips.com>
35644         PR target/42661
35645         * config/mips/mips.opt: Change mad to mmad to match documentation.
35647 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35649         PR target/55897
35650         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
35651         .progmemx.data now.
35653 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35655         PR target/55897
35656         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
35657         (avr_addrspace_t): Add .section_name field.
35658         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
35659         array size.
35660         (avr_addrspace): Same.  Initialize .section_name.  Remove last
35661         NULL entry.  Put __memx into .progmemx.data.
35662         (progmem_section_prefix): Remove.
35663         (avr_asm_init_sections): No need to initialize progmem_section.
35664         (avr_asm_named_section): Use avr_addrspace[].section_name to get
35665         section name prefix.
35666         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
35667         retrieve the progmem section.
35668         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
35669         boundary to run over avr_addrspace[].
35670         (avr_register_target_pragmas): Ditto.
35672 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
35674         * varasm.c (output_constant_def_contents): For asan_protect_global
35675         protected strings, adjust DECL_ALIGN if needed, before testing for
35676         anchored symbols.
35677         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
35678         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
35679         normal decls.
35680         (output_object_block): For asan protected decls, emit asan padding
35681         after their contents.
35682         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
35683         (asan_finish_file): Test it here instead.
35685 2013-01-07  Nick Clifton  <nickc@redhat.com>
35686             Matthias Klose  <doko@debian.org>
35687             Doug Kwan  <dougkwan@google.com>
35688             H.J. Lu  <hongjiu.lu@intel.com>
35690         PR driver/55470
35691         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
35693         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
35695         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
35697         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
35699         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
35701 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35703         PR target/54461
35704         * doc/install.texi (Cross-Compiler-Specific Options): Document
35705         --with-avrlibc.
35707 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
35709         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
35710         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
35711         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
35712         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
35713         vqmovun_high_s64): Fix source operand number and update copyright.
35715 2013-01-07  Richard Biener  <rguenther@suse.de>
35717         PR middle-end/55890
35718         * gimple.h (gimple_call_builtin_p): New overload.
35719         * gimple.c (validate_call): New function.
35720         (gimple_call_builtin_p): Likewise.
35721         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35722         Use gimple_call_builtin_p.
35723         (find_func_clobbers): Likewise.
35724         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
35725         (strlen_optimize_stmt): Likewise.
35727 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
35729         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
35730         (vld1q_dup_*): Likewise.
35731         (vld1_*): Likewise.
35732         (vld1q_*): Likewise.
35733         (vld1_lane_*): Likewise.
35734         (vld1q_lane_*): Likewise.
35736 2013-01-07  Richard Biener  <rguenther@suse.de>
35738         * lto-streamer.h (LTO_minor_version): Bump to 2.
35740 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
35742         * config/aarch64/aarch64-protos.h
35743         (aarch64_const_double_zero_rtx_p): Rename to...
35744         (aarch64_float_const_zero_rtx_p): ...this.
35745         (aarch64_float_const_representable_p): New.
35746         (aarch64_output_simd_mov_immediate): Likewise.
35747         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
35748         move immediate case.
35749         * config/aarch64/aarch64.c
35750         (aarch64_const_double_zero_rtx_p): Rename to...
35751         (aarch64_float_const_zero_rtx_p): ...this.
35752         (aarch64_print_operand): Allow printing of new constants.
35753         (aarch64_valid_floating_const): New.
35754         (aarch64_legitimate_constant_p): Check for valid floating-point
35755         constants.
35756         (aarch64_simd_valid_immediate): Likewise.
35757         (aarch64_vect_float_const_representable_p): New.
35758         (aarch64_float_const_representable_p): Likewise.
35759         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
35760         (aarch64_output_simd_mov_immediate): New.
35761         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
35762         (*movdf_aarch64): Likewise.
35763         * config/aarch64/constraints.md (Ufc): New.
35764         (Y): call aarch64_float_const_zero_rtx.
35765         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
35767 2013-01-07  Richard Biener  <rguenther@suse.de>
35769         PR tree-optimization/55888
35770         PR tree-optimization/55862
35771         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
35772         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
35773         not if it is contained therein.
35775 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35777         * config/avr/t-avr: Typo.
35779 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35781         PR55243
35782         * config/avr/t-avr: Don't automatically rebuild
35783         $(srcdir)/config/avr/t-multilib
35784         $(srcdir)/config/avr/avr-tables.opt
35785         $(srcdir)/doc/avr-mmcu.texi
35786         (avr-mcus): New phony target to build them on request.
35787         (s-avr-mlib, s-avr-mmcu-texi): Remove.
35788         * avr/avr-mcus.def: Adjust comments.
35790 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
35792         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
35794 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
35796         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
35798 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
35800         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
35802 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
35804         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
35805         to generate profiling.
35806         * config/rs6000/aix64.h (LIB_SPEC): Same.
35808 2013-01-04  Andrew Pinski  <apinski@cavium.com>
35810         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
35811         New function.
35812         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
35814 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
35816         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
35817         unconditionally.
35818         (ix86_expand_move): Ditto.
35819         (ix86_zero_extend_to_Pmode): Ditto.
35820         (ix86_expand_call): Ditto.
35821         (ix86_expand_special_args_builtin): Ditto.
35822         (ix86_expand_builtin): Ditto.
35824 2013-01-04  Richard Biener  <rguenther@suse.de>
35826         PR tree-optimization/55862
35827         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
35828         translating them through PHI nodes.
35830 2013-01-04  Martin Jambor  <mjambor@suse.cz>
35832         PR tree-optimization/55755
35833         * tree-sra.c (sra_modify_assign): Do not check that an access has no
35834         children when trying to avoid producing a VIEW_CONVERT_EXPR.
35836 2013-01-04  Marek Polacek  <polacek@redhat.com>
35838         PR middle-end/55859
35839         * opts.c (default_options_optimization): Clarify error message.
35841 2013-01-04  Richard Biener  <rguenther@suse.de>
35843         PR middle-end/55863
35844         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
35845         reassociation.
35847 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35849         PR target/53789
35850         * config/pa/pa.md (movsi): Revert previous change.
35851         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
35852         references.
35854 2013-01-03  Richard Henderson  <rth@redhat.com>
35856         * config/i386/i386.c (ix86_expand_move): Always assign to op1
35857         after eliminating TLS symbols.
35859 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
35861         PR bootstrap/50167
35862         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
35863         * graphite-poly.c (debug_gmp_value): Likewise.
35865 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
35867         PR target/55712
35868         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
35869         selected code model, define __code_mode_small__, __code_model_medium__,
35870         __code_model_large__, __code_model_32__ or __code_model_kernel__.
35871         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
35872         xchg temporary register with %k.  Declare temporary register as
35873         early clobbered.
35874         [__x86_64__]: For medium and large code models, preserve %rbx register.
35876 2013-01-03  Richard Biener  <rguenther@suse.de>
35878         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
35879         (dump_subscript): Adjust.
35880         (finalize_ddr_dependent): Do not dump redundant info.
35881         (analyze_siv_subscript): Adjust.
35882         (subscript_dependence_tester): Likewise.
35883         (compute_affine_dependence): Likewise.
35885 2013-01-03  Richard Biener  <rguenther@suse.de>
35887         Revert
35888         2013-01-03  Richard Biener  <rguenther@suse.de>
35890         PR tree-optimization/55857
35891         * tree-vect-stmts.c (vectorizable_load): Do not setup
35892         re-alignment for invariant loads.
35894         2013-01-02  Richard Biener  <rguenther@suse.de>
35896         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
35897         invariant load do not generate a vector load from the scalar location.
35899 2013-01-03  Richard Biener  <rguenther@suse.de>
35901         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
35902         for not vectorizing.
35903         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
35904         not build INDIRECT_REFs, call get_name once only.
35905         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
35906         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
35908 2013-01-03  Richard Biener  <rguenther@suse.de>
35910         PR tree-optimization/55857
35911         * tree-vect-stmts.c (vectorizable_load): Do not setup
35912         re-alignment for invariant loads.
35914 2013-01-03  Richard Biener  <rguenther@suse.de>
35916         PR lto/55848
35917         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
35918         prefer a built-in decl.
35920 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
35922         * gcc.c (process_command): Update copyright notice dates.
35923         * gcov.c (print_version): Likewise.
35924         * gcov-dump.c (print_version): Likewise.
35926         PR rtl-optimization/55838
35927         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
35928         iv0.step, iv1.step and step.
35930 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
35931             Marc Glisse  <marc.glisse@inria.fr>
35933         PR tree-optimization/55832
35934         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
35935         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
35936         integer_{one,zero}_node.
35938 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
35940         PR debug/54402
35941         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
35942         * var-tracking.c (reverse_op): Don't add reverse ops to
35943         VALUEs that have already
35944         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
35946 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
35948         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
35950 2013-01-02  Teresa Johnson  <tejohnson@google.com>
35952         * dumpfile.c (dump_loc): Print filename with location.
35953         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
35954         new location_t parameter to emit complete unroll message with
35955         new dump framework.
35956         (canonicalize_loop_induction_variables): Compute loops location
35957         and pass to try_unroll_loop_completely.
35958         * loop-unroll.c (report_unroll_peel): New function.
35959         (peel_loops_completely): Use new dump format with location
35960         for main dumpfile message, and invoke report_unroll_peel on success.
35961         (decide_unrolling_and_peeling): Ditto.
35962         (decide_peel_once_rolling): Remove old dumpfile message subsumed
35963         by report_unroll_peel.
35964         (decide_peel_completely): Ditto.
35965         (decide_unroll_constant_iterations): Ditto.
35966         (decide_unroll_runtime_iterations): Ditto.
35967         (decide_peel_simple): Ditto.
35968         (decide_unroll_stupid): Ditto.
35969         * cfgloop.c (get_loop_location): New function.
35970         * cfgloop.h (get_loop_location): Declare.
35972 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
35974         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
35975         NULL.
35977 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35979         PR middle-end/55198
35980         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
35981         BLKmode objects when EXPAND_MEMORY is specified.
35983 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
35985         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
35986         in loop predicate.
35987         (fold_builtin_cpu): Do not share cpu model decls across statements.
35989 2013-01-02  Jason Merrill  <jason@redhat.com>
35991         PR c++/55804
35992         * tree.c (build_array_type_1): Revert earlier change.
35994 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
35996         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
35997         "cortex-a57".
35998         * config/aarch64/aarch64-tune.md: Re-generate.
36000 2013-01-02  Richard Biener  <rguenther@suse.de>
36002         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36003         invariant load do not generate a vector load from the scalar location.
36005 2013-01-02  Richard Biener  <rguenther@suse.de>
36007         PR bootstrap/55784
36008         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
36009         * configure: Regenerate.
36011 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36013         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
36014         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
36015         (expand_builtin_int_roundingfn_2): Keep the original target around
36016         for the fallback case.
36018 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36020         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
36021         to be clear for sign changes.
36023 2013-01-01  Jan Hubicka  <jh@suse.cz>
36025         * ipa-inline-analysis.c: Fix formatting.
36027 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
36029         PR tree-optimization/55831
36030         * tree-vect-loop.c (get_initial_def_for_induction): Use
36031         gsi_after_labels instead of gsi_start_bb.
36033 Copyright (C) 2013 Free Software Foundation, Inc.
36035 Copying and distribution of this file, with or without modification,
36036 are permitted in any medium without royalty provided the copyright
36037 notice and this notice are preserved.