gcc/
[official-gcc.git] / gcc / ChangeLog
blobe280c2484f59274311e1864d3a144ecca6ca5513
1 2013-11-28  Sergey Ostanevich  <sergos.gnu@gmail.com>
3         * common.opt: Introduced a new option -fsimd-cost-model.
4         * doc/invoke.texi: Introduced a new openmp-simd warning and
5         a new -fsimd-cost-model option.
6         * tree-vectorizer.h (unlimited_cost_model): Interface updated
7         to rely on the particular loop info.
8         * tree-vect-data-refs.c (vect_peeling_hash_insert): Ditto.
9         (vect_peeling_hash_choose_best_peeling): Ditto.
10         (vect_enhance_data_refs_alignment): Ditto.
11         * tree-vect-slp.c (vect_slp_analyze_bb_1): Ditto.
12         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Ditto
13         plus added openmp-simd warining.
15 2013-11-27   H.J. Lu  <hongjiu.lu@intel.com>
17         PR rtl-optimization/59311
18         * dwarf2cfi.c (dwf_regno): Assert reg isn't pseudo register.
19         * lra-spills.c (spill_pseudos): Handle REG_XXX notes.
21 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
23         * var-tracking.c (track_expr_p): Do not track declarations for parts
24         of tracked parameters.
25         (add_stores): Do not track values for tracked parameters passed in
26         multiple locations.
27         (vt_get_decl_and_offset): Handle PARALLEL.
28         (vt_add_function_parameter): Handle parameters with incoming PARALLEL.
30 2013-11-27  Jeff Law  <law@redhat.com>
32         * tree-ssa-threadupdate.c (thread_through_all_blocks): Do not
33         clobber the loop structure thread_block was unsuccessful.  If
34         thread_block was unsuccessful, cleanup appropriately.
36 2013-11-27  Chen Liqin <liqin.gcc@gmail.com>
38         * config/score/score.h (REG_CLASS_FROM_LETTER): Delete.
39         (score_char_to_class): Likewise.
41 2013-11-27  Kenneth Zadeck  <zadeck@naturalbridge.com>
43         * fold-const.c (int_const_binop_1): Make INT_MIN % -1 return 0 with the
44         overflow bit set.
46 2013-11-27  Richard Biener  <rguenther@suse.de>
48         PR middle-end/58723
49         * cgraphbuild.c (build_cgraph_edges): Do not build edges
50         for internal calls.
51         (rebuild_cgraph_edges): Likewise.
52         * ipa-inline-analysis.c (estimate_function_body_sizes):
53         Skip internal calls.
54         * tree-inline.c (estimate_num_insns): Estimate size of internal
55         calls as 0.
56         (gimple_expand_calls_inline): Do not try inline-expanding
57         internal calls.
58         * lto-streamer-in.c (input_cfg): Stream loop safelen,
59         force_vect and simduid.
60         (input_struct_function_base): Stream has_force_vect_loops
61         and has_simduid_loops.
62         (input_function): Adjust.
63         * lto-streamer-out.c (output_cfg): Stream loop safelen,
64         force_vect and simduid.
65         (output_struct_function_base): Stream has_force_vect_loops
66         and has_simduid_loops.
68 2013-11-27  Kai Tietz  <ktietz@redhat.com>
70         * config/i386/winnt.c (i386_pe_section_type_flags): Use const
71         pointer cast.
73 2013-11-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
75         * doc/tm.texi.in (TARGET_HAS_NO_HW_DIVIDE): Define.
76         * doc/tm.texi (TARGET_HAS_NO_HW_DIVIDE): Regenerate.
78 2013-11-27  Marek Polacek  <polacek@redhat.com>
80         PR sanitizer/59306
81         * ubsan.c (instrument_null): Use gimple_store_p/gimple_assign_load_p
82         instead of walk_gimple_op.
83         (ubsan_pass): Adjust.  Call instrument_null only if SANITIZE_NULL.
85 2013-11-27  Aldy Hernandez  <aldyh@redhat.com>
86             Jakub Jelinek  <jakub@redhat.com>
88         * cgraph.h (enum cgraph_simd_clone_arg_type): New.
89         (struct cgraph_simd_clone_arg, struct cgraph_simd_clone): New.
90         (struct cgraph_node): Add simdclone and simd_clones fields.
91         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen,
92         ix86_simd_clone_adjust, ix86_simd_clone_usable): New functions.
93         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
94         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Define.
95         * doc/tm.texi.in (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
96         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): Add.
97         * doc/tm.texi: Regenerated.
98         * ggc.h (ggc_alloc_cleared_simd_clone_stat): New function.
99         * ipa-cp.c (determine_versionability): Fail if "omp declare simd"
100         attribute is present.
101         * omp-low.c: Include pretty-print.h, ipa-prop.h and tree-eh.h.
102         (simd_clone_vector_of_formal_parm_types): New function.
103         (simd_clone_struct_alloc, simd_clone_struct_copy,
104         simd_clone_vector_of_formal_parm_types, simd_clone_clauses_extract,
105         simd_clone_compute_base_data_type, simd_clone_mangle,
106         simd_clone_create, simd_clone_adjust_return_type,
107         create_tmp_simd_array, simd_clone_adjust_argument_types,
108         simd_clone_init_simd_arrays): New functions.
109         (struct modify_stmt_info): New type.
110         (ipa_simd_modify_stmt_ops, ipa_simd_modify_function_body,
111         simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone): New
112         functions.
113         (pass_data_omp_simd_clone): New variable.
114         (pass_omp_simd_clone): New class.
115         (make_pass_omp_simd_clone): New function.
116         * passes.def (pass_omp_simd_clone): New.
117         * target.def (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN,
118         TARGET_SIMD_CLONE_ADJUST, TARGET_SIMD_CLONE_USABLE): New target
119         hooks.
120         * target.h (struct cgraph_node, struct cgraph_simd_node): Declare.
121         * tree-core.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Document.
122         * tree.h (OMP_CLAUSE_LINEAR_VARIABLE_STRIDE): Define.
123         * tree-pass.h (make_pass_omp_simd_clone): New prototype.
124         * tree-vect-data-refs.c: Include cgraph.h.
125         (vect_analyze_data_refs): Inline by hand find_data_references_in_loop
126         and find_data_references_in_bb, if find_data_references_in_stmt
127         fails, still allow calls to #pragma omp declare simd functions
128         in #pragma omp simd loops unless they contain data references among
129         the call arguments or in lhs.
130         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
131         calls with no lhs.
132         (vect_transform_loop): Allow NULL STMT_VINFO_VECTYPE for calls without
133         lhs.
134         * tree-vectorizer.h (enum stmt_vec_info_type): Add
135         call_simd_clone_vec_info_type.
136         (struct _stmt_vec_info): Add simd_clone_fndecl field.
137         (STMT_VINFO_SIMD_CLONE_FNDECL): Define.
138         * tree-vect-stmts.c: Include tree-ssa-loop.h,
139         tree-scalar-evolution.h and cgraph.h.
140         (vectorizable_call): Handle calls without lhs.  Assert
141         !stmt_can_throw_internal instead of failing for it.  Don't update
142         EH stuff.
143         (struct simd_call_arg_info): New.
144         (vectorizable_simd_clone_call): New function.
145         (vect_transform_stmt): Call it.
146         (vect_analyze_stmt): Likewise.  Allow NULL STMT_VINFO_VECTYPE for
147         calls without lhs.
148         * ipa-prop.c (ipa_add_new_function): Only call ipa_analyze_node
149         if cgraph_function_with_gimple_body_p is true.
151 2013-11-27  Tom de Vries  <tom@codesourcery.com>
152             Marc Glisse  <marc.glisse@inria.fr>
154         PR middle-end/59037
155         * fold-const.c (fold_indirect_ref_1): Don't create out-of-bounds
156         BIT_FIELD_REF.
157         * gimple-fold.c (gimple_fold_indirect_ref): Same.
158         * tree-cfg.c (verify_expr): Give error if BIT_FIELD_REF is
159         out-of-bounds.
161 2013-11-27  Eric Botcazou  <ebotcazou@adacore.com>
163         PR middle-end/59138
164         * expr.c (emit_group_store): Don't write past the end of the structure.
165         (store_bit_field): Fix formatting.
167 2013-11-27  Richard Biener  <rguenther@suse.de>
169         PR tree-optimization/59288
170         * tree-vect-loop.c (get_initial_def_for_induction): Do not
171         re-analyze the PHI but use STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
173 2013-11-27  Marek Polacek  <polacek@redhat.com>
175         * ubsan.c (ubsan_type_descriptor): If varpool_get_node returns NULL
176         for a decl, recreate that decl.  Save into the hash table VAR_DECLs
177         rather than ADDR_EXPRs.
179 2013-11-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
181         * config/ia64/hpux.h (TARGET_LIBC_HAS_FUNCTION): Fix typo.
183 2013-11-26  David Malcolm  <dmalcolm@redhat.com>
185         * gengtype.c (struct seen_tag): New.
186         (already_seen_tag): New.
187         (mark_tag_as_seen): New.
188         (walk_subclasses): Support having multiple subclasses using the
189         same tag by tracking which tags have already been seen, and using
190         this to avoid adding duplicate cases to the "switch" statement.
191         The call to already_seen_tag introduces an O(N^2) when running
192         gengtype on N, the number of tags, due to the repeated linear
193         search, but currently max(N) is relatively small (the number of
194         GSS codes, which is 26).
195         (walk_type): Pass in a seen_tag for use by the walk_subclasses
196         recursion.
198         * gimple.def (GIMPLE_OMP_ATOMIC_STORE, GIMPLE_OMP_RETURN): Rename
199         underlying GSS values for these codes (from GSS_OMP_ATOMIC_STORE to
200         GSS_OMP_ATOMIC_STORE_LAYOUT) to make clear that although
201         GIMPLE_OMP_RETURN happens to share the data layout of
202         GIMPLE_OMP_ATOMIC_STORE, they are not otherwise related.
203         (GIMPLE_OMP_PARALLEL, GIMPLE_OMP_TARGET): Likewise, rename
204         underlying GSS value from GSS_OMP_PARALLEL to
205         GSS_OMP_PARALLEL_LAYOUT to make clear that these gimple codes are
206         not directly related; they merely share in-memory layout.
207         (GIMPLE_OMP_SINGLE, GIMPLE_OMP_TEAMS): Likewise, rename GSS values
208         for these two codes from GSS_OMP_SINGLE to GSS_OMP_SINGLE_LAYOUT.
210         * gsstruct.def (GSS_OMP_PARALLEL, gimple_statement_omp_parallel):
211         Rename to...
212         (GSS_OMP_PARALLEL_LAYOUT, gimple_statement_omp_parallel_layout):
213         ...these.
214         (GSS_OMP_SINGLE, gimple_statement_omp_single): Rename to...
215         (GSS_OMP_SINGLE_LAYOUT, gimple_statement_omp_single_layout):
216         ...these.
217         (GSS_OMP_ATOMIC_STORE, gimple_statement_omp_atomic_store): Rename
218         to...
219         (GSS_OMP_ATOMIC_STORE_LAYOUT, gimple_statement_omp_atomic_store):
220         ...these.
222         * gimple.h (gimple_statement_resx): New subclass of
223         gimple_statement_eh_ctrl, with the invariant that
224         stmt->code == GIMPLE_RESX.
225         (gimple_statement_eh_dispatch): New subclass of
226         gimple_statement_eh_ctrl, with the invariant that
227         stmt->code == GIMPLE_EH_DISPATH.
229         (gimple_statement_omp_parallel): The existing class expressed
230         a layout (GSS_OMP_PARALLEL), but the codes with that layout
231         are not all related, so it makes more sense for this class to
232         express a *code* (GIMPLE_OMP_PARALLEL).  GSS_OMP_PARALLEL has
233         been renamed to GSS_OMP_PARALLEL_LAYOUT to express this, so
234         rename the existing gimple_statement_omp_parallel class to...
235         (gimple_statement_omp_parallel_layout): ...this, expressing
236         a statement of structure layout GSS_OMP_PARALLEL_LAYOUT.
237         (gimple_statement_omp_taskreg): New subclass of
238         gimple_statement_omp_parallel_layout, expressing the invariant
239         that the code is one of GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK,
240         as used by the various gimple_omp_taskreg_ accessors.
241         (gimple_statement_omp_parallel): Reintroduce this class, this time
242         as a subclass of gimple_statement_omp_taskreg to express the
243         invariant stmt->code == GIMPLE_OMP_PARALLEL.
244         (gimple_statement_omp_target) New class, subclassing
245         gimple_statement_omp_parallel_layout, to express the invariant
246         stmt->code == GIMPLE_OMP_TARGET.
247         (gimple_statement_omp_task): Update to inherit from
248         gimple_statement_omp_taskreg rather than
249         gimple_statement_omp_parallel.
251         (gimple_statement_omp_single): Rename to...
252         (gimple_statement_omp_single_layout): ...this, expressing the
253         invariant that the layout is GSS_OMP_SINGLE_LAYOUT.
254         (gimple_statement_omp_single): ...and reintroduce this name as
255         a subclass of gimple_statement_omp_single_layout, expressing
256         the invariant that code == GIMPLE_OMP_SINGLE.
257         (gimple_statement_omp_teams): New class, subclassing
258         gimple_statement_omp_single_layout, for the code GIMPLE_OMP_TEAMS.
260         (gimple_statement_omp_atomic_store): Rename to...
261         (gimple_statement_omp_atomic_store_layout): ...this, expressing
262         the invariant that the layout is GSS_OMP_ATOMIC_STORE_LAYOUT.
263         (gimple_statement_omp_atomic_store): ...and reintroduce this
264         name as a subclass of gimple_statement_omp_atomic_store_layout
265         with code == GIMPLE_OMP_ATOMIC_STORE.
266         (gimple_statement_omp_return): New class, subclassing
267         gimple_statement_omp_atomic_store_layout for the code
268         GIMPLE_OMP_RETURN.
270         (is_a_helper <gimple_statement_eh_ctrl>::test): Delete.
271         (is_a_helper <gimple_statement_resx>::test): New.
272         (is_a_helper <gimple_statement_eh_dispatch>::test): New.
273         (is_a_helper <gimple_statement_omp_atomic_store>::test): Only
274         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
275         (is_a_helper <gimple_statement_omp_return>::test): New.
276         (is_a_helper <gimple_statement_omp_taskreg>::test): New.
277         (is_a_helper <gimple_statement_omp_parallel>::test): Only check
278         for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
279         GIMPLE_OMP_TARGET.
280         (is_a_helper <gimple_statement_omp_target>::test): New.
281         (is_a_helper <gimple_statement_omp_single>::test): Only check
282         for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
283         (is_a_helper <gimple_statement_omp_teams>::test): New.
285         (is_a_helper <const gimple_statement_eh_ctrl>::test): Delete.
286         (is_a_helper <const gimple_statement_resx>::test): New.
287         (is_a_helper <const gimple_statement_eh_dispatch>::test): New.
288         (is_a_helper <const gimple_statement_omp_atomic_store>::test): Only
289         check for GIMPLE_OMP_ATOMIC_STORE, not for GIMPLE_OMP_RETURN.
290         (is_a_helper <const gimple_statement_omp_return>::test): New.
291         (is_a_helper <const gimple_statement_omp_taskreg>::test): New.
292         (is_a_helper <const gimple_statement_omp_parallel>::test): Only
293         check for GIMPLE_OMP_PARALLEL, not for GIMPLE_OMP_TASK or
294         GIMPLE_OMP_TARGET.
295         (is_a_helper <const gimple_statement_omp_target>::test): New.
296         (is_a_helper <const gimple_statement_omp_single>::test): Only
297         check for GIMPLE_OMP_SINGLE, not for GIMPLE_OMP_TEAMS.
298         (is_a_helper <const gimple_statement_omp_teams>::test): New.
300         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
301         gimple_omp_return_lhs_ptr): Replace bogus downcasts to
302         gimple_statement_omp_atomic_store with downcasts to
303         gimple_statement_omp_return, thus requiring that the code be
304         GIMPLE_OMP_RETURN.
305         (gimple_resx_region, gimple_resx_set_region): Replace bogus
306         downcasts to gimple_statement_eh_ctrl with downcasts to
307         gimple_statement_resx, thus requiring that the code be
308         GIMPLE_RESX.
309         (gimple_eh_dispatch_region, gimple_eh_dispatch_set_region):
310         Replace bogus downcasts to const gimple_statement_eh_ctrl with
311         downcasts to gimple_statement_eh_dispatch, thus requiring that
312         the code be GIMPLE_EH_DISPATCH.
313         (gimple_omp_taskreg_clauses, gimple_omp_taskreg_clauses_ptr)
314         gimple_omp_taskreg_set_clauses, gimple_omp_taskreg_child_fn,
315         gimple_omp_taskreg_child_fn_ptr, gimple_omp_taskreg_set_child_fn,
316         gimple_omp_taskreg_data_arg, gimple_omp_taskreg_data_arg_ptr,
317         gimple_omp_taskreg_set_data_arg): Replace bogus downcasts to
318         gimple_statement_omp_parallel with downcasts to
319         gimple_statement_omp_taskreg, thus requiring that the code be
320         either GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK.
321         (gimple_omp_target_clauses, gimple_omp_target_clauses_ptr
322         gimple_omp_target_set_clauses, gimple_omp_target_child_fn
323         gimple_omp_target_child_fn_ptr, gimple_omp_target_set_child_fn
324         gimple_omp_target_data_arg, gimple_omp_target_data_arg_ptr
325         gimple_omp_target_set_data_arg): Replace bogus downcasts to
326         gimple_statement_omp_parallel with downcasts to
327         gimple_statement_omp_target, thus requiring that the code be
328         GIMPLE_OMP_TARGET.
329         (gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr
330         gimple_omp_teams_set_clauses): Replace bogus downcasts to
331         gimple_statement_omp_single with downcasts to
332         gimple_statement_omp_teams, thus requiring that the code be
333         GIMPLE_OMP_TEAMS.
335         * gimple.c (gimple_build_resx): Fix bogus as_a<> to use
336         gimple_statement_resx.
337         (gimple_build_eh_dispatch): Fix bogus as_a<> to use
338         gimple_statement_eh_dispatch.
340 2013-11-26  Jakub Jelinek  <jakub@redhat.com>
342         PR tree-optimization/59014
343         * tree-vrp.c (register_edge_assert_for_1): Don't look
344         through conversions from non-integral types or through
345         narrowing conversions.
347         PR target/59229
348         * config/i386/i386.c (device_alg): Fix up formatting.
349         (ix86_expand_set_or_movmem): Handle max_size < epilogue_size_needed
350         similarly to count && count < epilogue_size_needed.  Fix up
351         comment typo.
352         * builtins.c (determine_block_size): Fix comment typo.
354         PR sanitizer/59258
355         * ubsan.c (ubsan_source_location): Don't add any location
356         to ADDR_EXPR in the ctor.  Revert 2013-11-22 change.
357         (ubsan_create_data): Strip block info from LOC.
359         PR middle-end/59273
360         * tree-vect-generic.c (optimize_vector_constructor): Don't optimize
361         if there isn't optab handler for the corresponding vector PLUS_EXPR.
363         PR rtl-optimization/59166
364         * ira.c (find_moveable_pseudos): Use DF_REF_REAL_LOC instead of
365         DF_REF_LOC in validate_change call.
366         (split_live_ranges_for_shrink_wrap): Likewise.
368         PR middle-end/59150
369         * omp-low.c (lower_rec_input_clause): For reduction with placeholder
370         of references to constant size types in simd loops, defer emitting
371         initializer for the new_var, emit it later on only if not using
372         SIMD arrays for it.
374         PR middle-end/59152
375         * omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
376         for the inner loop if collapse_bb is non-NULL.
377         (expand_omp_simd): Use cont_bb rather than e->dest as latch.
379 2013-11-26  Yufeng Zhang  <yufeng.zhang@arm.com>
381         * config/arm/arm.c (arm_legitimize_address): Check xop1 is not
382         a constant immediate before force_reg.
384 2013-11-26  Richard Biener  <rguenther@suse.de>
386         PR tree-optimization/59245
387         * tree-vrp.c (set_value_range): Assert that we don't have
388         overflowed constants (but our infinities).
389         (set_value_range_to_value): Drop all overflow flags.
390         (vrp_visit_phi_node): Likewise.
391         (vrp_visit_assignment_or_call): Use set_value_range_to_value
392         to set a constant range.
394 2013-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
396         PR target/59290
397         * config/arm/arm.md (*zextendsidi_negsi): New pattern.
398         * config/arm/arm.c (arm_new_rtx_costs): Initialise cost correctly
399         for zero_extend case.
401 2013-11-26   H.J. Lu  <hongjiu.lu@intel.com>
403         PR bootstrap/55552
404         * configure.ac (install_gold_as_default): New.  Set to yes for
405         --disable-ld or --enable-gold=default.
406         (gcc_cv_ld_gold_srcdir): New.
407         (gcc_cv_ld): Also check in-tree gold if install_gold_as_default
408         is yes.
409         (ORIGINAL_LD_BFD_FOR_TARGET): New AC_SUBST.
410         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
411         * configure: Regenerated.
413         * exec-tool.in (ORIGINAL_LD_BFD_FOR_TARGET): New variable.
414         (ORIGINAL_LD_GOLD_FOR_TARGET): Likewise.
415         (original) [collect-ld && -fuse-ld=bfd]: Set to
416         $ORIGINAL_LD_BFD_FOR_TARGET.
417         (original) [collect-ld && -fuse-ld=gold]: Set to
418         $ORIGINAL_LD_GOLD_FOR_TARGET.
419         (dir) [collect-ld && ../gold/ld-new]: Set to gold.
420         (fast_install) [collect-ld && ../gold/ld-new]: Set to yes.
422 2013-11-26  Terry Guo  <terry.guo@arm.com>
424         * config/arm/arm.c (require_pic_register): Handle high pic base
425         register for thumb-1.
426         (arm_load_pic_register): Also initialize high pic base register.
427         * doc/invoke.texi: Update documentation for option -mpic-register.
429 2013-11-26  Oleg Endo  <olegendo@gcc.gnu.org>
431         PR target/58314
432         PR target/50751
433         * config/sh/sh.c (max_mov_insn_displacement, disp_addr_displacement):
434         Prefix function names with 'sh_'.  Make them non-static.
435         * config/sh/sh-protos.h (sh_disp_addr_displacement,
436         sh_max_mov_insn_displacement): Add declarations.
437         * config/sh/constraints.md (Q): Reject QImode.
438         (Sdd): Use match_code "mem".
439         (Snd): Fix erroneous matching of non-memory operands.
440         * config/sh/predicates.md (short_displacement_mem_operand): New
441         predicate.
442         (general_movsrc_operand): Disallow PC relative QImode loads.
443         * config/sh/sh.md (*mov<mode>_reg_reg): Remove it.
444         (*movqi, *movhi): Merge both insns into...
445         (*mov<mode>): ... this new insn.  Replace generic 'm' constraints with
446         'Snd' and 'Sdd' constraints.  Calculate insn length dynamically based
447         on the operand types.
449 2013-11-26  Joern Rennecke  <joern.rennecke@embecosm.com>
451         * config/epiphany/epiphany.c (epiphany_expand_prologue):
452         Remove unused variable save_config.
453         (epiphany_compute_frame_size): Avoid signed/unsigned comparison in
454         assert.
456 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
458         * config/aarch64/arm_neon.h (vtbx1_<psu>8): Emulate behaviour
459         using other intrinsics.
460         (vtbx3_<psu>8): Likewise.
462 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
464         * config/aarch64/aarch64-builtins.c
465         (aarch64_types_bsl_p_qualifiers): New.
466         (aarch64_types_bsl_s_qualifiers): Likewise.
467         (aarch64_types_bsl_u_qualifiers): Likewise.
468         (TYPES_BSL_P): Likewise.
469         (TYPES_BSL_S): Likewise.
470         (TYPES_BSL_U): Likewise.
471         (BUILTIN_VALLDIF): Likewise.
472         (BUILTIN_VDQQH): Likewise.
473         * config/aarch64/aarch64-simd-builtins.def (simd_bsl): New.
474         * config/aarch64/aarch64-simd.md
475         (aarch64_simd_bsl<mode>_internal): Handle more modes.
476         (aarch64_simd_bsl<mode>): Likewise.
477         * config/aarch64/arm_neon.h
478         (vbsl<q>_<fpsu><8,16,32,64): Implement using builtins.
479         * config/aarch64/iterators.md (VALLDIF): New.
480         (Vbtype): Handle more modes.
482 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
484         * config/aarch64/aarch64-builtins.c
485         (aarch64_type_qualifiers): Add qualifier_poly.
486         (aarch64_build_scalar_type): Also build Poly types.
487         (aarch64_build_vector_type): Likewise.
488         (aarch64_build_type): Likewise.
489         (aarch64_build_signed_type): New.
490         (aarch64_build_unsigned_type): Likewise.
491         (aarch64_build_poly_type): Likewise.
492         (aarch64_init_simd_builtins): Also handle Poly types.
494 2013-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
496         * config/aarch64/aarch64-builtins.c
497         (VAR1): Use new naming scheme for aarch64_builtins.
498         (aarch64_builtin_vectorized_function): Use new
499         aarch64_builtins names.
501 2013-11-26  Richard Biener  <rguenther@suse.de>
503         PR tree-optimization/59287
504         * tree-ssa-structalias.c (get_constraint_for_component_ref):
505         Remove no longer necessary special-casing of union accesses.
507 2013-11-26  Richard Biener  <rguenther@suse.de>
509         * pretty-print.c (output_buffer::~output_buffer): Really
510         free the obstacks.
512 2013-11-25  Jeff Law  <law@redhat.com>
514         * tree-ssa-threadupdate.c (thread_through_all_blocks): Selectively
515         invalidate loop information.
517 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
519         * config/sh/sh.md (doloop_end_split): Add missing SI mode.
521 2013-11-25  Oleg Endo  <olegendo@gcc.gnu.org>
523         PR target/53976
524         PR target/59243
525         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value): Update
526         comments.
527         (sh_optimize_sett_clrt::find_last_ccreg_values): Check stack of
528         previously visited basic blocks before recursing instead of only one
529         basic block.
531 2013-11-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
533         * config/aarch64/aarch64.c (cortexa53_tuning): New struct.
534         * config/aarch64/aarch64-cores.def (cortex-a53):
535         Use cortexa53 tuning struct.
537 2013-11-25  Andrew Macleod  <amacleod@redhat.com>
539         PR bootstrap/59260
540         * fold-const.c: Include hash-table.h.
542 2013-11-25  Marek Polacek  <polacek@redhat.com>
544         PR sanitizer/59258
545         * ubsan.c (ubsan_create_data): Increase the size of the fields array.
547 2013-11-25  Richard Biener  <rguenther@suse.de>
549         * tree-dfa.c: Remove unused convert.h include.
551 2013-11-25  Terry Guo  <terry.guo@arm.com>
553         * doc/invoke.texi (-mslow-flash-data): Document new option.
554         * config/arm/arm.opt (mslow-flash-data): New option.
555         * config/arm/arm-protos.h (arm_max_const_double_inline_cost): Declare
556         it.
557         * config/arm/arm.h (TARGET_USE_MOVT): Always true when literal pools
558         are disabled.
559         (arm_disable_literal_pool): Declare it.
560         * config/arm/arm.c (arm_disable_literal_pool): New variable.
561         (arm_option_override): Handle new option.
562         (thumb2_legitimate_address_p): Don't allow symbol references when
563         literal pools are disabled.
564         (arm_max_const_double_inline_cost): New function.
565         * config/arm/arm.md (types.md): Include it before ...
566         (use_literal_pool): New attribute.
567         (enabled): Use new attribute.
568         (split pattern): Replace symbol+offset with MOVW/MOVT.
570 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
572         PR bootstrap/59279
573         Revert previous commit.
575 2013-11-24  Steven Bosscher  <steven@gcc.gnu.org>
577         * jump.c (reset_insn_reg_label_operand_notes): New function,
578         split out from ...
579         (init_label_info): ... here.  Reset LABEL_NUSES in cfglayout mode.
580         * cfgcleanup.c (delete_dead_jump_tables_between): New function,
581         split out from ...
582         (delete_dead_jumptables): ... here.  Handle cfglayout mode.
583         (cleanup_cfg): Delete dead jump tables in cfglayout mode if an
584         expensive CFG cleanup is called for.
585         * cfgrtl.c (fixup_reorder_chain): Remove BARRIERs from fallthru paths.
586         (cfg_layout_finalize): Delete dead jump tables before re-building
587         the insns chain.
588         * ira.c (ira): Rebuild jump labels *after* deleting unreachable
589         basic blocks, not before.
590         * loop-init.c (rtl_loop_done): Call for an expensive CFG cleanup.
592         * modulo-sched.c (sms_schedule): Do not look for BARRIERs in the
593         insns chain of a scheduling extended basic block, they cannot appear
594         there in cfglayout mode.
596 2013-11-24  Tobias Burnus  <burnus@net-b.de>
598         * doc/invoke.texi (-fsanitize=leak): Add link to the wiki page.
600 2013-11-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
602         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Correct
603         for little endian.
605 2013-11-24  H.J. Lu  <hongjiu.lu@intel.com>
607         * graphite-sese-to-poly.c: Don't include extra "expr.h".
609 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
611         * cilk-common.c (expand_builtin_cilk_detach): Dereference worker.
613 2013-11-23  David Edelson  <dje.gcc@gmail.com>
614             Andrew Dixie  <andrewd@gentrack.com>
616         PR target/33704
617         * config/rs6000/aix.h (COLLECT_SHARED_INIT_FUNC): Define.
618         (COLLECT_SHARED_FINI_FUNC): Define.
620         * collect2.c (aix_shared_initname): Declare.
621         (aix_shared_fininame): Declare.
622         (symkind): Add SYM_AIXI and SYM_AIXD.
623         (scanfilter_masks): Add SCAN_AIXI and SCAN_AIXD.
624         (struct names special): Add GLOBAL__AIXI_ and GLOBAL__AIXD_.
625         (aixlazy_flag): Parse.
626         (extract_init_priority): SYM_AIXI and SYM_AIXD have highest priority.
627         (scan_prog_file, COFF): Handle SYM_AIXI and SYM_AIXD.
629 2013-11-23  David Edelsohn  <dje.gcc@gmail.com>
631         * config/rs6000/rs6000.c (IN_NAMED_SECTION): New macro.
632         (rs6000_xcoff_select_section): Place decls with stricter alignment
633         into named sections.
634         (rs6000_xcoff_unique_section): Allow unique sections for
635         uninitialized data with strict alignment.
637 2013-11-23  Jakub Jelinek  <jakub@redhat.com>
639         PR tree-optimization/59154
640         * tree-ssa-reassoc.c (maybe_optimize_range_tests): When changing
641         rhs1 of a cast and new_op is invariant, fold_convert it.
642         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Only call
643         simplify_conversion_from_bitmask if rhs1 is a SSA_NAME.
645 2013-11-23  Uros Bizjak  <ubizjak@gmail.com>
647         PR target/56788
648         * config/i386/i386.c (bdesc_multi_arg) <IX86_BUILTIN_VFRCZSS>:
649         Declare as MULTI_ARG_1_SF instruction.
650         <IX86_BUILTIN_VFRCZSD>: Decleare as MULTI_ARG_1_DF instruction.
651         * config/i386/sse.md (*xop_vmfrcz<mode>2): Rename
652         from *xop_vmfrcz_<mode>.
653         * config/i386/xopintrin.h (_mm_frcz_ss): Use __builtin_ia32_movss
654         to merge scalar result with __A.
655         (_mm_frcz_sd): Use __builtin_ia32_movsd to merge scalar
656         result with __A.
658 2013-11-23  Eric Botcazou  <ebotcazou@adacore.com>
660         * gimplify.h (recalculate_side_effects): Delete.
661         * gimplify.c (recalculate_side_effects): Make static and add comment.
663 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
665         * config/sh/sh.md: Use nonimmediate_operand rather than general_operand
666         for the destination of a define_peephole2.  Likewise register_operand
667         rather than arith_reg_operand.  Remove constraints from
668         define_peephole2s.
670 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
672         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation):
673         Delete.
674         (mn10300_store_multiple_operation_p): Declare.
675         * config/mn10300/mn10300.c (mn10300_store_multiple_operation):
676         Rename to...
677         (mn10300_store_multiple_operation_p): ...this and remove mode
678         argument.
679         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
680         Define.
682 2013-11-23  Richard Sandiford  <rdsandiford@googlemail.com>
684         * config/bfin/bfin-protos.h (push_multiple_operation): Delete.
685         (pop_multiple_operation): Delete.
686         (analyze_push_multiple_operation): Declare.
687         (analyze_pop_multiple_operation): Declare.
688         * config/bfin/bfin.c (push_multiple_operation): Rename to...
689         (analyze_push_multiple_operation): ...this and remove mode argument.
690         (pop_multiple_operation): Rename to...
691         (analyze_pop_multiple_operation): ...this and remove mode argument.
692         * config/bfin/predicates.md (push_multiple_operation): Define.
693         (pop_multiple_operation): Likewise.
695 2013-11-23  Alan Modra  <amodra@gmail.com>
697         * config/rs6000/vsx.md (fusion peepholes): Disable when !TARGET_VSX.
699 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
701         PR sanitizer/59061
702         * common.opt (static-liblsan): Add.
703         * config/gnu-user.h (STATIC_LIBLSAN_LIBS, STATIC_LIBUBSAN_LIBS):
704         Define.
705         * flag-types.h (enum sanitize_code): Add SANITIZE_LEAK.  Renumber
706         SANITIZE_SHIFT, SANITIZE_DIVIDE, SANITIZE_UNREACHABLE, SANITIZE_VLA,
707         SANITIZE_RETURN.
708         * opts.c (common_handle_option): Handle -fsanitize=leak.
709         * gcc.c (ADD_STATIC_LIBLSAN_LIBS, LIBLSAN_SPEC): Define.
710         (LIBUBSAN_SPEC): Don't test LIBUBSAN_EARLY_SPEC.
711         (LIBUBSAN_EARLY_SPEC): Remove.
712         (SANITIZER_EARLY_SPEC): Don't do anything for libubsan.
713         (SANITIZER_SPEC): Add -fsanitize=leak handling.
714         (sanitize_spec_function): Handle %sanitize(leak).
715         * doc/invoke.texi (-static-liblsan, -fsanitize=leak): Document.
717 2013-11-22  Aldy Hernandez  <aldyh@redhat.com>
718             Jakub Jelinek  <jakub@redhat.com>
720         * ipa.c (symtab_remove_unreachable_nodes): Fix up comment typos.
721         * ipa-prop.c (get_vector_of_formal_parm_types): Renamed to ...
722         (ipa_get_vector_of_formal_parm_types): ... this.  No longer static.
723         (ipa_modify_formal_parameters): Adjust caller.  Remove
724         synth_parm_prefix argument.  Use operator enum instead of bit fields.
725         Add assert for properly handling vector of references.  Handle
726         creating brand new parameters.
727         (ipa_modify_call_arguments): Use operator enum instead of bit
728         fields.
729         (ipa_combine_adjustments): Same.  Assert that IPA_PARM_OP_NEW is not
730         used.
731         (ipa_modify_expr, get_ssa_base_param, ipa_get_adjustment_candidate):
732         New functions.
733         (ipa_dump_param_adjustments): Rename reduction to new_decl.
734         Use operator enum instead of bit fields.
735         * ipa-prop.h (enum ipa_parm_op): New.
736         (struct ipa_parm_adjustment): New field op.  Rename reduction
737         to new_decl, new_arg_prefix to arg_prefix and remove remove_param
738         and copy_param.
739         (ipa_modify_formal_parameters): Remove last argument.
740         (ipa_get_vector_of_formal_parm_types, ipa_modify_expr,
741         ipa_get_adjustment_candidate): New prototypes.
742         * tree-sra.c (turn_representatives_into_adjustments): Use operator
743         enum.  Set arg_prefix.
744         (get_adjustment_for_base): Use operator enum.
745         (sra_ipa_modify_expr): Rename to ipa_modify_expr and move to
746         ipa-prop.c.
747         (sra_ipa_modify_assign): Rename sra_ipa_modify_expr to ipa_modify_expr.
748         (ipa_sra_modify_function_body): Same.  No longer static.
749         (sra_ipa_reset_debug_stmts): Use operator enum.
750         (modify_function): Do not pass prefix argument.
752 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
754         * ubsan.c (ubsan_source_location): Don't crash on unknown locations.
755         (ubsan_pass): Ignore clobber stmts.
757         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_MISSING_RETURN): New built-in.
758         * opts.c (common_handle_option): Add -fsanitize=return.
759         * flag-types.h (enum sanitize_code): Add SANITIZE_RETURN and
760         or it into SANITIZE_UNDEFINED.
762         * sanitizer.def (BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT,
763         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT): New.
764         * asan.c (instrument_derefs): Handle also VAR_DECL loads/stores.
765         Don't instrument accesses to VAR_DECLs which are known to fit
766         into their bounds and the vars are known to have shadow bytes
767         indicating allowed access.
768         (asan_dynamic_init_call): New function.
769         (asan_add_global): If vnode->dynamically_initialized,
770         set __has_dynamic_init to 1 instead of 0.
771         (initialize_sanitizer_builtins): Add BT_FN_VOID_CONST_PTR var.
772         * asan.h (asan_dynamic_init_call): New prototype.
773         * cgraph.h (varpool_node): Add dynamically_initialized bitfield.
775 2013-11-22  Martin Jambor  <mjambor@suse.cz>
777         PR rtl-optimization/10474
778         * ira.c (interesting_dest_for_shprep_1): New function.
779         (interesting_dest_for_shprep): Use interesting_dest_for_shprep_1,
780         also check parallels.
782 2013-11-22  Jeff Law  <law@redhat.com>
784         * tree-ssa-threadedge.c (record_temporary_equivalence): Handle
785         NULL for RHS, which we used to invalidate equivalences.
786         (record_temporary_equivalences_from_phis): New bitmap arguments
787         and a boolean indicating if we have passed a backedge.  If we
788         have passed a backedge, then set the appropriate bit in the
789         bitmaps for the SRC & DEST of PHIs creating equivalences.
790         (invalidate_equivalences, dummy_simplify): New functions.
791         (cond_arg_set_in_b): Remove.
792         (record_temporary_equivalences_from_stmts_at_dest): New bitmap
793         arguments and a boolean indicating if we have passed a backedge.
794         If we have passed a backedge, then perform invalidations as needed.
795         (thread_around_empty_blocks): If we have seen a backedge, then
796         use the dummy simplify routine.
797         (thread_through_normal_block): Likewise.  Pass bitmaps and
798         backedge status to children.  Do not pessimize so much when
799         traversing backedges in the CFG.
800         (thread_across_edge): Manage the SRC_MAP/DST_MAP bitmaps.
801         If we have seen a backedge, then use the dummy simplify routine.
802         Do not pessimize so much when traversing backedges.
804 2013-11-22  Hans-Peter Nilsson  <hp@axis.com>
806         * config/cris/cris.c (cris_atomic_align_for_mode): New function.
807         (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
809 2013-11-22  Yuri Rumyantsev  <ysrumyan@gmail.com>
811         * config/i386/i386.c(processor_alias_table): Enable PTA_AES,
812         PTA_PCLMUL and PTA_RDRND for Silvermont.
813         * config/i386/driver-i386.c (host_detect_local_cpu): Set up cpu
814         for Silvermont.
816         * doc/invoke.texi: Mention AES, PCLMUL and RDRND for Silvermont.
818 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
820         * hooks.h (hook_uint_mode_0): Add Prototype.
821         * hooks.c (hook_uint_mode_0): New default function.
822         * target.def (atomic_align_for_mode): New target hook.
823         * tree.c (build_atomic_base): Add alignment override parameter.
824         (build_common_tree_nodes): Use atomic alignment override.
825         * doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
826         * doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
828 2013-11-22 Andrew MacLeod  <amacleod@redhat.com>
830         * gimple.h: Remove all includes.
831         (recalculate_side_effects): Move prototype to gimplify.h.
832         * Makefile.in (PLUGIN_HEADERS): Add flattened gimple.h includes.
833         * gengtype.c (open_base_files): Add gimple.h include list.
834         * gimplify.h (recalculate_side_effects): Relocate prototype here.
835         * gimple.c: Adjust include list.
836         (recalculate_side_effects): Move to gimplify.c.
837         * gimplify.c: Adjust include list.
838         (recalculate_side_effects): Relocate from gimple.c.
839         * alias.c: Add required include files removed from gimple.h.
840         * asan.c: Likewise.
841         * builtins.c: Likewise.
842         * calls.c: Likewise.
843         * cfgexpand.c: Likewise.
844         * cfgloop.c: Likewise.
845         * cfgloopmanip.c: Likewise.
846         * cgraphbuild.c: Likewise.
847         * cgraph.c: Likewise.
848         * cgraphclones.c: Likewise.
849         * cgraphunit.c: Likewise.
850         * cilk-common.c: Likewise.
851         * data-streamer.c: Likewise.
852         * data-streamer-in.c: Likewise.
853         * data-streamer-out.c: Likewise.
854         * dse.c: Likewise.
855         * dwarf2out.c: Likewise.
856         * emit-rtl.c: Likewise.
857         * except.c: Likewise.
858         * expr.c: Likewise.
859         * fold-const.c: Likewise.
860         * function.c: Likewise.
861         * gimple-builder.c: Likewise.
862         * gimple-expr.c: Likewise.
863         * gimple-fold.c: Likewise.
864         * gimple-iterator.c: Likewise.
865         * gimple-low.c: Likewise.
866         * gimple-pretty-print.c: Likewise.
867         * gimple-ssa-isolate-paths.c: Likewise.
868         * gimple-ssa-strength-reduction.c: Likewise.
869         * gimple-streamer-in.c: Likewise.
870         * gimple-streamer-out.c: Likewise.
871         * gimple-walk.c: Likewise.
872         * gimplify-me.c: Likewise.
873         * graphite-blocking.c: Likewise.
874         * graphite.c: Likewise.
875         * graphite-clast-to-gimple.c: Likewise.
876         * graphite-dependences.c: Likewise.
877         * graphite-interchange.c: Likewise.
878         * graphite-optimize-isl.c: Likewise.
879         * graphite-poly.c: Likewise.
880         * graphite-scop-detection.c: Likewise.
881         * graphite-sese-to-poly.c: Likewise.
882         * internal-fn.c: Likewise.
883         * ipa.c: Likewise.
884         * ipa-cp.c: Likewise.
885         * ipa-devirt.c: Likewise.
886         * ipa-inline-analysis.c: Likewise.
887         * ipa-inline.c: Likewise.
888         * ipa-profile.c: Likewise.
889         * ipa-prop.c: Likewise.
890         * ipa-pure-const.c: Likewise.
891         * ipa-reference.c: Likewise.
892         * ipa-split.c: Likewise.
893         * ipa-utils.c: Likewise.
894         * langhooks.c: Likewise.
895         * lto-cgraph.c: Likewise.
896         * lto-compress.c: Likewise.
897         * lto-opts.c: Likewise.
898         * lto-section-in.c: Likewise.
899         * lto-section-out.c: Likewise.
900         * lto-streamer.c: Likewise.
901         * lto-streamer-in.c: Likewise.
902         * lto-streamer-out.c: Likewise.
903         * omp-low.c: Likewise.
904         * opts-global.c: Likewise.
905         * passes.c: Likewise.
906         * predict.c: Likewise.
907         * profile.c: Likewise.
908         * sese.c: Likewise.
909         * stmt.c: Likewise.
910         * stor-layout.c: Likewise.
911         * symtab.c: Likewise.
912         * targhooks.c: Likewise.
913         * toplev.c: Likewise.
914         * tracer.c: Likewise.
915         * trans-mem.c: Likewise.
916         * tree-affine.c: Likewise.
917         * tree.c: Likewise.
918         * tree-call-cdce.c: Likewise.
919         * tree-cfg.c: Likewise.
920         * tree-cfgcleanup.c: Likewise.
921         * tree-chrec.c: Likewise.
922         * tree-complex.c: Likewise.
923         * tree-data-ref.c: Likewise.
924         * tree-dfa.c: Likewise.
925         * tree-eh.c: Likewise.
926         * tree-emutls.c: Likewise.
927         * tree-if-conv.c: Likewise.
928         * tree-inline.c: Likewise.
929         * tree-into-ssa.c: Likewise.
930         * tree-loop-distribution.c: Likewise.
931         * tree-nested.c: Likewise.
932         * tree-nrv.c: Likewise.
933         * tree-object-size.c: Likewise.
934         * tree-outof-ssa.c: Likewise.
935         * tree-parloops.c: Likewise.
936         * tree-phinodes.c: Likewise.
937         * tree-predcom.c: Likewise.
938         * tree-pretty-print.c: Likewise.
939         * tree-profile.c: Likewise.
940         * tree-scalar-evolution.c: Likewise.
941         * tree-sra.c: Likewise.
942         * tree-ssa-address.c: Likewise.
943         * tree-ssa-alias.c: Likewise.
944         * tree-ssa.c: Likewise.
945         * tree-ssa-ccp.c: Likewise.
946         * tree-ssa-coalesce.c: Likewise.
947         * tree-ssa-copy.c: Likewise.
948         * tree-ssa-copyrename.c: Likewise.
949         * tree-ssa-dce.c: Likewise.
950         * tree-ssa-dom.c: Likewise.
951         * tree-ssa-dse.c: Likewise.
952         * tree-ssa-forwprop.c: Likewise.
953         * tree-ssa-ifcombine.c: Likewise.
954         * tree-ssa-live.c: Likewise.
955         * tree-ssa-loop.c: Likewise.
956         * tree-ssa-loop-ch.c: Likewise.
957         * tree-ssa-loop-im.c: Likewise.
958         * tree-ssa-loop-ivcanon.c: Likewise.
959         * tree-ssa-loop-ivopts.c: Likewise.
960         * tree-ssa-loop-manip.c: Likewise.
961         * tree-ssa-loop-niter.c: Likewise.
962         * tree-ssa-loop-prefetch.c: Likewise.
963         * tree-ssa-loop-unswitch.c: Likewise.
964         * tree-ssa-math-opts.c: Likewise.
965         * tree-ssanames.c: Likewise.
966         * tree-ssa-operands.c: Likewise.
967         * tree-ssa-phiopt.c: Likewise.
968         * tree-ssa-phiprop.c: Likewise.
969         * tree-ssa-pre.c: Likewise.
970         * tree-ssa-propagate.c: Likewise.
971         * tree-ssa-reassoc.c: Likewise.
972         * tree-ssa-sccvn.c: Likewise.
973         * tree-ssa-sink.c: Likewise.
974         * tree-ssa-strlen.c: Likewise.
975         * tree-ssa-structalias.c: Likewise.
976         * tree-ssa-tail-merge.c: Likewise.
977         * tree-ssa-ter.c: Likewise.
978         * tree-ssa-threadedge.c: Likewise.
979         * tree-ssa-threadupdate.c: Likewise.
980         * tree-ssa-uncprop.c: Likewise.
981         * tree-ssa-uninit.c: Likewise.
982         * tree-stdarg.c: Likewise.
983         * tree-streamer.c: Likewise.
984         * tree-streamer-in.c: Likewise.
985         * tree-streamer-out.c: Likewise.
986         * tree-switch-conversion.c: Likewise.
987         * tree-tailcall.c: Likewise.
988         * tree-vect-data-refs.c: Likewise.
989         * tree-vect-generic.c: Likewise.
990         * tree-vect-loop.c: Likewise.
991         * tree-vect-loop-manip.c: Likewise.
992         * tree-vectorizer.c: Likewise.
993         * tree-vect-patterns.c: Likewise.
994         * tree-vect-slp.c: Likewise.
995         * tree-vect-stmts.c: Likewise.
996         * tree-vrp.c: Likewise.
997         * tsan.c: Likewise.
998         * ubsan.c: Likewise.
999         * value-prof.c: Likewise.
1000         * varpool.c: Likewise.
1001         * var-tracking.c: Likewise.
1002         * vtable-verify.c: Likewise.
1003         * config/darwin.c: Likewise.
1004         * config/aarch64/aarch64-builtins.c: Likewise.
1005         * config/aarch64/aarch64.c: Likewise.
1006         * config/alpha/alpha.c: Likewise.
1007         * config/i386/i386.c: Likewise.
1008         * config/i386/winnt.c: Likewise.
1009         * config/ia64/ia64.c: Likewise.
1010         * config/m32c/m32c.c: Likewise.
1011         * config/mep/mep.c: Likewise.
1012         * config/mips/mips.c: Likewise.
1013         * config/rs6000/rs6000.c: Likewise.
1014         * config/s390/s390.c: Likewise.
1015         * config/sh/sh.c: Likewise.
1016         * config/sparc/sparc.c: Likewise.
1017         * config/spu/spu.c: Likewise.
1018         * config/stormy16/stormy16.c: Likewise.
1019         * config/tilegx/tilegx.c: Likewise.
1020         * config/tilepro/tilepro.c: Likewise.
1021         * config/xtensa/xtensa.c: Likewise.
1023 2013-11-22  Richard Earnshaw  <rearnsha@arm.com>
1025         PR target/59216
1026         * arm.md (negdi_extendsidi): Fix invalid split.
1028 2013-11-22  Alex Velenko  <Alex.Velenko@arm.com>
1030         * config/aarch64/arm_neon.h (vmov_n_f32): Implemented in C.
1031         (vmov_n_f64): Likewise.
1032         (vmov_n_p8): Likewise.
1033         (vmov_n_p16): Likewise.
1034         (vmov_n_s8): Likewise.
1035         (vmov_n_s16): Likewise.
1036         (vmov_n_s32): Likewise.
1037         (vmov_n_s64): Likewise.
1038         (vmov_n_u8): Likewise.
1039         (vmov_n_u16): Likewise.
1040         (vmov_n_u32): Likewise.
1041         (vmov_n_u64): Likewise.
1042         (vmovq_n_f32): Likewise.
1043         (vmovq_n_f64): Likewise.
1044         (vmovq_n_p8): Likewise.
1045         (vmovq_n_p16): Likewise.
1046         (vmovq_n_s8): Likewise.
1047         (vmovq_n_s16): Likewise.
1048         (vmovq_n_s32): Likewise.
1049         (vmovq_n_s64): Likewise.
1050         (vmovq_n_u8): Likewise.
1051         (vmovq_n_u16): Likewise.
1052         (vmovq_n_u32): Likewise.
1053         (vmovq_n_u64): Likewise.
1055 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1057         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1058         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap for big-endian.
1059         (reduc_<sur>plus_<mode>): Factorize V2DI into this.
1060         (reduc_<sur>plus_<mode>): Change this to reduc_splus_<mode> for floats
1061         and also change to float UNSPEC.
1062         (reduc_maxmin_uns>_<mode>): Remove V2DI.
1063         * config/aarch64/arm_neon.h (vaddv<q>_<suf><8,16,32,64>,
1064         vmaxv<q>_<suf><8,16,32,64>, vminv<q>_<suf><8,16,32,64>): Fix up scalar
1065         result access for big-endian.
1066         (__LANE0): New macro used to fix up lane access of 'across-lanes'
1067         intrinsics for big-endian.
1068         * config/aarch64/iterators.md (VDQV): Add V2DI.
1069         (VDQV_S): New.
1070         (vp): New mode attribute.
1072 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1074         * config/aarch64/aarch64-simd.md (vec_pack_trunc_<mode>,
1075         vec_pack_trunc_v2df, vec_pack_trunc_df): Swap source ops for
1076         big-endian.
1078 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1080         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Adjust
1081         for big-endian element order.
1082         (aarch64_simd_vec_setv2di): Likewise.
1083         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>,
1084         *aarch64_get_lane_zero_extendsi<mode>, aarch64_get_lane): Likewise.
1085         (vec_extract): Expand using aarch64_get_lane.
1086         * config/aarch64/aarch64.h (ENDIAN_LANE_N): New.
1088 2013-11-22  Tejas Belagod  <tejas.belagod@arm.com>
1090         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Fix loads
1091         and stores to be ABI compliant.
1093 2013-11-22  David Malcolm  <dmalcolm@redhat.com>
1095         * input.h (input_line): Remove.
1096         (input_filename): Likewise.
1097         (in_system_header): Likewise.
1098         * tree.h (EXPR_LOC_OR_HERE): Remove.
1099         * config/bfin/bfin.c (output_file_start): Remove use of
1100         input_filename macro.
1101         * builtins.c (c_strlen): Remove use of EXPR_LOC_OR_HERE macro.
1102         * gimplify.c (internal_get_tmp_var): Likewise.
1103         EXPR_LOC_OR_HERE macro.
1104         (shortcut_cond_expr): Likewise.
1105         * tree-diagnostic.c (diagnostic_report_current_function): Remove
1106         use of input_filename macro.
1107         * tree.c (get_file_function_name): Likewise.
1109 2013-11-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
1111         * store-layout.c (place-field): Fix hwi test and accessor mismatch.
1113 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1115         * expr.c (store_constructor): Allow CONSTRUCTOR with VECTOR_TYPE
1116         (same sized) elements even if the type of the CONSTRUCTOR has
1117         vector mode and target is a REG.
1119 2013-11-22  Richard Biener  <rguenther@suse.de>
1121         Revert
1122         2013-11-21  Richard Biener  <rguenther@suse.de>
1124         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1125         nb_iterations_upper_bound by one.
1127 2013-11-22  H.J. Lu  <hongjiu.lu@intel.com>
1129         * config/i386/i386.c (processor_alias_table): Enable PTA_POPCNT
1130         for Silvermont.
1132         * doc/invoke.texi: Mention POPCNT for corei7, corei7-avx,
1133         core-avx-i, core-avx2 and slm.
1135 2013-11-22  Eric Botcazou  <ebotcazou@adacore.com>
1137         * print-rtl.c (print_rtx) <case MEM>: Output a space if no MEM_EXPR.
1139 2013-11-22  Richard Sandiford  <rdsandiford@googlemail.com>
1141         * config/m32c/cond.md (stzx_16): Use register_operand for operand 0.
1142         (stzx_24_<mode>): Likewise mra_operand.
1144 2013-11-22  Jeff Law  <law@redhat.com>
1146         * tree-ssa-threadupdate.c: Include tree-cfg.h and tree-pass.h
1147         (thread_block_1): Do not cancel jump threads which go from
1148         inside a loop, through the header, then back inside the loop.
1149         (bb_ends_with_multiway_branch): New function.
1150         (thread_through_all_blocks): Handle threading cases which start
1151         in a loop through the loop header to a point in the loop.
1153         * tree-ssa-threadedge.c (thread_across_edge): Mark the start of the
1154         jump thread path properly.
1156 2013-11-22  Trevor Saunders  <tsaunders@mozilla.com>
1158         * vec.h (auto_vec): New class.
1159         * cfganal.c, cfgloop.c, cgraphunit.c, config/i386/i386.c, dwarf2out.c,
1160         function.c, genautomata.c, gimple.c, haifa-sched.c, ipa-inline.c,
1161         ira-build.c, loop-unroll.c, omp-low.c, ree.c, trans-mem.c,
1162         tree-call-cdce.c, tree-eh.c, tree-if-conv.c, tree-into-ssa.c,
1163         tree-loop-distribution.c, tree-predcom.c, tree-sra.c,
1164         tree-sssa-forwprop.c, tree-ssa-loop-manip.c, tree-ssa-pre.c,
1165         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
1166         tree-vect-loop.c, tree-vect-stmts.c: Use auto_vec and stack_vec as
1167         appropriate instead of vec for local variables.
1169 2013-11-21  Teresa Johnson  <tejohnson@google.com>
1171         PR target/59233
1172         * cfgcleanup.c (outgoing_edges_match): Walk up past note instructions
1173         not understood by old_insns_match_p.
1175 2013-11-21  Bill Schmidt  <wschmidt@vnet.ibm.com>
1177         * config/rs6000/vector.md (vec_pack_trunc_v2df): Revert previous
1178         little endian change.
1179         (vec_pack_sfix_trunc_v2df): Likewise.
1180         (vec_pack_ufix_trunc_v2df): Likewise.
1181         * config/rs6000/rs6000.c (rs6000_expand_interleave): Correct
1182         double checking of endianness.
1184 2013-11-22  Jakub Jelinek  <jakub@redhat.com>
1186         * tree-vect-generic.c (optimize_vector_constructor): New function.
1187         (expand_vector_operations_1): Call it.
1189 2013-11-21  Uros Bizjak  <ubizjak@gmail.com>
1191         * config/i386/i386.c (ix86_expand_special_args_builtin): Use
1192         ix86_zero_extend_to_Pmode where appropriate.
1193         (ix86_expand_builtin): Ditto.
1195 2013-11-21  Cary Coutant  <ccoutant@google.com>
1197         * dwarf2out.c (want_pubnames): Don't do pubnames for -g1.
1198         (add_linkage_name): Don't add linkage name for -g1.
1199         (decls_for_scope): Process subblocks for -g1.
1200         (dwarf2out_source_line): Output line tables for -g1.
1201         (dwarf2out_finish): Likewise.
1202         * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
1203         unused scopes for -g1.
1204         * opts.c (common_handle_option): Handle -g same as -g2.
1205         * doc/invoke.texi: Update description for -g1.
1207 2013-11-21  Peter Bergner  <bergner@vnet.ibm.com>
1209         * doc/extend.texi: Document htm builtins.
1211 2013-11-21  Jeff Law  <law@redhat.com>
1213         PR tree-optimization/59221
1214         * tree-ssa-threadedge.c (thread_across_edge): Properly manage
1215         temporary equivalences when threading through joiner blocks.
1217 2013-11-21  Joseph Myers  <joseph@codesourcery.com>
1219         PR rtl-optimization/55950
1220         * real.c (real_sqrt): Remove function.
1221         * real.h (real_sqrt): Remove prototype.
1222         * simplify-rtx.c (simplify_const_unary_operation): Do not fold
1223         SQRT using real_sqrt.
1225 2013-11-21  Richard Biener  <rguenther@suse.de>
1227         PR tree-optimization/59058
1228         * tree-scalar-evolution.h (number_of_exit_cond_executions): Remove.
1229         * tree-scalar-evolution.c (number_of_exit_cond_executions): Likewise.
1230         * tree-vectorizer.h (LOOP_PEELING_FOR_ALIGNMENT): Rename to ...
1231         (LOOP_VINFO_PEELING_FOR_ALIGNMENT): ... this.
1232         (NITERS_KNOWN_P): Fold into ...
1233         (LOOP_VINFO_NITERS_KNOWN_P): ... this.
1234         (LOOP_VINFO_PEELING_FOR_NITER): Add.
1235         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
1236         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1237         (vect_do_peeling_for_alignment): Re-use precomputed niter
1238         instead of re-emitting it.
1239         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1240         Use LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1241         * tree-vect-loop.c (vect_get_loop_niters): Use
1242         number_of_latch_executions.
1243         (new_loop_vec_info): Initialize LOOP_VINFO_PEELING_FOR_NITER.
1244         (vect_analyze_loop_form): Simplify.
1245         (vect_analyze_loop_operations): Move epilogue peeling code ...
1246         (vect_analyze_loop_2): ... here and adjust it to compute
1247         LOOP_VINFO_PEELING_FOR_NITER.
1248         (vect_estimate_min_profitable_iters): Use
1249         LOOP_VINFO_PEELING_FOR_ALIGNMENT.
1250         (vect_build_loop_niters): Emit on the preheader.
1251         (vect_generate_tmps_on_preheader): Likewise.
1252         (vect_transform_loop): Use LOOP_VINFO_PEELING_FOR_NITER instead
1253         of recomputing it.  Adjust.
1255 2013-11-21  Richard Biener  <rguenther@suse.de>
1257         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
1258         LOC_LINE): Remove wrappers and fix all users.
1259         (struct _loop_vec_info): Remove loop_line_number member.
1260         (LOOP_VINFO_LOC): Remove.
1261         * tree-parloops.c, tree-vect-loop-manip.c, tree-vect-slp.c,
1262         tree-vectorizer.c: Fix users of LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE
1263         and LOC_LINE.
1265 2013-11-21  Richard Biener  <rguenther@suse.de>
1267         * tree-ssa-forwprop.c (simplify_vce): New function.
1268         (ssa_forward_propagate_and_combine): Call it.
1270 2013-11-21  Richard Biener  <rguenther@suse.de>
1272         * tree-vect-loop-manip.c (vect_build_loop_niters,
1273         vect_generate_tmps_on_preheader): Move ...
1274         * tree-vect-loop.c (vect_build_loop_niters,
1275         vect_generate_tmps_on_preheader): ... here and simplify.
1276         (vect_transform_loop): Call them here and pass down results
1277         to consumers.
1278         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound):
1279         Get niter variables from caller.
1280         (vect_do_peeling_for_alignment): Likewise.
1281         * tree-vectorizer.h (vect_generate_tmps_on_preheader): Remove.
1282         (vect_do_peeling_for_loop_bound, vect_do_peeling_for_alignment):
1283         Adjust prototypes.
1285 2013-11-21  Richard Biener  <rguenther@suse.de>
1287         * tree-ssa-loop-ch.c (copy_loop_headers): Decrement
1288         nb_iterations_upper_bound by one.
1290 2013-11-21  Richard Biener  <rguenther@suse.de>
1292         PR tree-optimization/59058
1293         * tree-loop-distribution.c (struct partition_s): Add plus_one member.
1294         (build_size_arg_loc): Apply niter adjustment here.
1295         (generate_memset_builtin): Adjust.
1296         (generate_memcpy_builtin): Likewise.
1297         (classify_partition): Do not use number_of_exit_cond_executions
1298         but record whether niter needs to be adjusted.
1300 2013-11-21  Eric Botcazou  <ebotcazou@adacore.com>
1302         * tree-ssa-tail-merge.c (stmt_local_def): Return false if the statement
1303         could throw.
1305 2013-11-21  Oleg Endo  <olegendo@gcc.gnu.org>
1307         PR target/53976
1308         * config/sh/sh_optimize_sett_clrt.cc: New SH specific RTL pass.
1309         * config/sh/sh.c (register_sh_passes): Add sh_optimize_sett_clrt pass.
1310         * config/sh/sh/t-sh (sh_optimize_sett_clrt pass.o): New entry.
1311         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add
1312         sh_optimize_sett_clrt pass.o to extra_objs.
1314 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
1316         * cfg.c (dump_edge_info): Remove redundant comment.
1317         * cfgcleanup.c (outgoing_edges_match): Reword reference to
1318         EXIT_BLOCK_PTR in comment.
1319         (try_optimize_cfg): Likewise.
1320         * cfgrtl.c (last_bb_in_partition): Likewise.
1321         * cgraph.c (cgraph_node_cannot_return): Likewise.
1322         * function.c (thread_prologue_and_epilogue_insns): Likewise.
1323         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
1324         * ipa-split.c (consider_split): Likewise.
1325         * profile.c (find_spanning_tree): Likewise.
1326         * sched-int.h (common_sched_info_def.add_block): Likewise.
1327         * dominance.c (calc_dfs_tree_nonrec): Reword references in
1328         comments to now removed ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR macros.
1329         * tree-cfgcleanup.c (cleanup_control_flow_bb): Reword references
1330         in comments to now removed ENTRY_BLOCK_PTR macro.
1331         (tree_forwarder_block_p): Reword reference in comment to
1332         EXIT_BLOCK_PTR.
1333         * tree-inline.c (copy_cfg_body): Reword references in comments to
1334         now removed ENTRY_BLOCK_PTR macro.
1335         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
1336         * tree-scalar-evolution.h ( block_before_loop): Likewise.  Add
1337         a comma to the comment to clarify the meaning.
1339 2013-11-20  Andrew MacLeod  <amacleod@redhat.com>
1341         * gimplify.h (gimplify_hasher:typed_free_remove, struct gimplify_ctx):
1342         Move to gimplify.c.
1343         (free_gimplify_stack): Add prototype.
1344         * gimplify.c (gimplify_hasher:typed_free_remove): Relocate here.
1345         (struct gimplify_ctx): Relocate here.
1346         (gimplify_ctxp): Make static.
1347         (ctx_pool, ctx_alloc, ctx_free, free_gimplify_stack): New.  Manage a
1348         list of struct gimplify_ctx.
1349         (push_gimplify_context): Add default parameters and allocate a struct
1350         from the pool.
1351         (pop_gimplify_context): Free a struct back to the pool.
1352         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
1353         gimplify_omp_workshare, gimplify_transaction, gimplify_body): Don't
1354         use a local 'struct gimplify_ctx'.
1355         * cgraphunit.c (expand_all_functions): call free_gimplify_stack.
1356         * gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
1357         Likewise.
1358         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
1359         lower_omp_ordered, lower_omp_critical, lower_omp_for,
1360         create_task_copyfn, lower_omp_taskreg, lower_omp_target,
1361         lower_omp_teams, execute_lower_omp): Likewise.
1362         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
1363         * tree-inline.c (optimize_inline_calls): Likewise.
1365 2013-11-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1367         * config/rs6000/vsx.md (vsx_set_<mode>): Adjust for little endian.
1368         (vsx_extract_<mode>): Likewise.
1369         (*vsx_extract_<mode>_one_le): New LE variant on
1370         *vsx_extract_<mode>_zero.
1371         (vsx_extract_v4sf): Adjust for little endian.
1373 2013-11-20  Vladimir Makarov  <vmakarov@redhat.com>
1375         PR rtl-optimization/59133
1376         * lra.c (expand_reg_data): Add new argument.  Set up ALL_REGS for
1377         new pseudos.
1378         (lra_create_new_reg_with_unique_value): Pass new argument value.
1379         (lra_emit_add, lra_emit_move): Ditto.
1380         * lra-constraints.c (in_class_p): Add check for move for a new insn.
1381         (change_class): Rename to lra_change_class.  Move to lra-int.h.
1382         (get_reload_reg, narrow_reload_pseudo_class): Adjust calls of
1383         change_class.
1384         (process_addr_reg, process_addr): Ditto.
1385         (curr_insn_transform): Ditto.  Add check on old pseudo for
1386         optional reload.
1387         * lra-int.h (lra_get_regno_hard_regno): Move below.
1388         (lra_change_class): Renamed change_class from lra.c.
1390 2013-11-20  David Malcolm  <dmalcolm@redhat.com>
1392         * gdbhooks.py (VecPrinter.children): Don't attempt to iterate
1393         the children of a NULL pointer.
1395 2013-11-20  Robert Suchanek  <Robert.Suchanek@imgtec.com>
1397         * lra.c (lra): Set lra_in_progress before check_rtl call.
1398         * recog.c (insn_invalid_p): Add !lra_in_progress to prevent
1399         adding clobber regs when LRA is running.
1401 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
1403         * config/mips/mips.h (ISA_HAS_FP4): Remove TARGET_FLOAT64
1404         restriction for ISA_MIPS32R2.
1405         (ISA_HAS_LXC1_SXC1): New macro.
1406         (ISA_HAS_FP_MADD4_MSUB4): Remove ISA_MIPS32R2 special-casing.
1407         (ISA_HAS_NMADD4_NMSUB4): Likewise.
1408         (ISA_HAS_FP_RECIP_RSQRT): Likewise.
1409         (ISA_HAS_PREFETCHX): Redefine in terms of ISA_HAS_FP4.
1410         * config/mips/mips.md (*<ANYF:loadx>_<P:mode>): Use
1411         ISA_HAS_LXC1_SXC1 rather than ISA_HAS_FP4.
1412         (*<ANYF:storex>_<P:mode>): Likewise.
1414 2013-11-20  Maciej W. Rozycki  <macro@codesourcery.com>
1416         * config/mips/mips.h (ISA_HAS_FP_RECIP_RSQRT): New macro.
1417         * config/mips/mips.c (mips_rtx_costs) <DIV>: Check for
1418         ISA_HAS_FP_RECIP_RSQRT rather than ISA_HAS_FP4.
1419         * config/mips/mips.md (recip_condition): Remove mode attribute.
1420         (div<mode>3): Use ISA_HAS_FP_RECIP_RSQRT rather than
1421         <recip_condition>.
1422         (*recip<mode>3, *rsqrt<mode>a, *rsqrt<mode>b): Likewise.
1424 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1426         PR target/59207
1427         * config/sparc/sparc.c (sparc_fold_builtin) <case CODE_FOR_pdist_vis>:
1428         Make sure neg2_ovf is set before being used.
1430 2013-11-20  Basile Starynkevitch  <basile@starynkevitch.net>
1432         * plugin.def: Add comment about register_callback and
1433         invoke_plugin_callbacks_full.
1435         * plugin.c (register_callback, invoke_plugin_callbacks_full):
1436         Handle PLUGIN_INCLUDE_FILE event.
1438 2013-11-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1440         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Do not
1441         allow subregs of TDmode in FPRs of smaller size in little-endian.
1442         (rs6000_split_multireg_move): When splitting an access to TDmode
1443         in FPRs, do not use simplify_gen_subreg.
1445 2013-11-20  Joseph Myers  <joseph@codesourcery.com>
1447         PR middle-end/21718
1448         * real.c: Remove comment about decimal string conversion and
1449         rounding errors.
1450         (real_from_string): Use MPFR to convert nonzero decimal constant
1451         to REAL_VALUE_TYPE.
1453 2013-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1455         * config/arm/arm.c (arm_dwarf_register_span): Take into account the
1456         endianness of the D registers for the legacy encodings.
1458 2013-11-20  Richard Earnshaw  <rearnsha@arm.com>
1460         PR rtl-optimization/54300
1461         * regcprop.c (copyprop_hardreg_forward_1): Ensure any unused
1462         outputs in a single-set are killed from the value chains.
1464 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
1466         * cgraph.h (varpool_node): Add need_bounds_init field.
1467         * lto-cgraph.c (lto_output_varpool_node): Output
1468         need_bounds_init value.
1469         (input_varpool_node): Read need_bounds_init value.
1470         * varpool.c (dump_varpool_node): Dump need_bounds_init field.
1472 2013-11-20  Jan Hubicka  <jh@suse.cz>
1474         * opts.c (finish_options): Imply -ffat-lto-objects with
1475         -fno-use-linker-plugin.
1476         * common.opt (fuse-linker-plugin): Add var.
1478 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
1480         * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
1481         * dwarf2out.c (gen_subprogram_die): Ignore bound args.
1482         (gen_type_die_with_usage): Skip pointer bounds.
1483         (dwarf2out_global_decl): Likewise.
1485 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
1487         * config/aarch64/aarch64.md: Remove "mode" and "mode2" attributes
1488         from all insns.
1490 2013-11-20  Yuri Rumyantsev  <ysrumyan@gmail.com>
1492         PR target/57756
1493         * config/i386/i386.c (ix86_option_override_internal): Add missed
1494         argument prefix for 'ix86_fpmath'.
1495         * config/i386/ssemath.h: Add missed definition of
1496         TARGET_FPMATH_DEFAULT_P macros.
1498 2013-11-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
1499             Mike Stump  <mikestump@comcast.net>
1500             Richard Sandiford  <rdsandiford@googlemail.com>
1502         * alias.c (ao_ref_from_mem): Use tree_to_shwi and tree_to_uhwi
1503         instead of TREE_INT_CST_LOW, in cases where there is a protecting
1504         tree_fits_shwi_p or tree_fits_uhwi_p.
1505         * builtins.c (fold_builtin_powi): Likewise.
1506         * config/epiphany/epiphany.c (epiphany_special_round_type_align):
1507         Likewise.
1508         * dbxout.c (dbxout_symbol): Likewise.
1509         * expr.c (expand_expr_real_1): Likewise.
1510         * fold-const.c (fold_single_bit_test, fold_plusminus_mult_expr)
1511         (fold_binary_loc): Likewise.
1512         * gimple-fold.c (fold_const_aggregate_ref_1): Likewise.
1513         * gimple-ssa-strength-reduction.c (stmt_cost): Likewise.
1514         * omp-low.c (lower_omp_for_lastprivate): Likewise.
1515         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
1516         * stor-layout.c (compute_record_mode): Likewise.
1517         * tree-cfg.c (verify_expr): Likewise.
1518         * tree-dfa.c (get_ref_base_and_extent): Likewise.
1519         * tree-pretty-print.c (dump_array_domain): Likewise.
1520         * tree-sra.c (build_user_friendly_ref_for_offset): Likewise.
1521         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
1522         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr_id): Likewise.
1523         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
1524         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
1525         * tree-ssa-reassoc.c (acceptable_pow_call): Likewise.
1526         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1527         (ao_ref_init_from_vn_reference, vn_reference_fold_indirect): Likewise.
1528         (vn_reference_lookup_3, simplify_binary_expression): Likewise.
1529         * tree-ssa-structalias.c (bitpos_of_field): Likewise.
1530         (get_constraint_for_1, push_fields_onto_fieldstack): Likewise.
1531         (create_variable_info_for_1): Likewise.
1532         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1533         (vect_verify_datarefs_alignment): Likewise.
1534         (vect_analyze_data_ref_accesses): Likewise.
1535         (vect_prune_runtime_alias_test_list): Likewise.
1536         * tree-vectorizer.h (NITERS_KNOWN_P): Likewise.
1538 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
1540         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Avoid signed
1541         overflow.  Use tree_to_shwi.
1543 2013-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
1545         * fold-const.c (fold_binary_loc): Use unsigned rather than signed
1546         HOST_WIDE_INTs when folding (x >> c) << c.
1548 2013-11-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1549             Dominik Vogt  <vogt@linux.vnet.ibm.com>
1551         * config/s390/s390.c (s390_canonicalize_comparison): Don't fold
1552         int comparisons with an out of range condition code.
1553         (s390_optimize_nonescaping_tx): Skip empty BBs.
1554         Generate the new tbegin RTX when removing the FPR clobbers (with
1555         two SETs).
1556         (s390_expand_tbegin): Fix the retry loop counter.  Copy CC to the
1557         result before doing the retry calculations.
1558         (s390_init_builtins): Make tbegin "returns_twice" and tabort
1559         "noreturn".
1560         * config/s390/s390.md (UNSPECV_TBEGIN_TDB): New constant used for
1561         the TDB setting part of an tbegin.
1562         ("tbegin_1", "tbegin_nofloat_1"): Add a set for the TDB.
1563         ("tx_assist"): Set unused argument to an immediate zero instead of
1564         loading zero into a GPR and pass it as argument.
1565         * config/s390/htmxlintrin.h (__TM_simple_begin, __TM_begin):
1566         Remove inline and related attributes.
1567         (__TM_nesting_depth, __TM_is_user_abort, __TM_is_named_user_abort)
1568         (__TM_is_illegal, __TM_is_footprint_exceeded)
1569         (__TM_is_nested_too_deep, __TM_is_conflict): Fix format value check.
1571 2013-11-20  Richard Biener  <rguenther@suse.de>
1573         PR lto/59035
1574         * lto-opts.c (lto_write_options): Write defaults only if
1575         they were not explicitely specified.  Also write
1576         -ffp-contract default.
1577         * lto-wrapper.c (merge_and_complain): Merge -ffp-contract
1578         conservatively.
1579         (run_gcc): Pass through -ffp-contract.
1581 2013-11-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1583         * config/mips/mips.c (r10k_simplify_address): Eliminate macro usage.
1585 2013-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
1587         * gcc/config/aarch64/aarch64-builtins.c
1588         (aarch64_simd_itype): Remove.
1589         (aarch64_simd_builtin_datum): Remove itype, add qualifiers pointer.
1590         (VAR1): Use qualifiers.
1591         (aarch64_build_scalar_type): New.
1592         (aarch64_build_vector_type): Likewise.
1593         (aarch64_build_type): Likewise.
1594         (aarch64_init_simd_builtins): Refactor, remove special cases,
1595         consolidate main loop.
1596         (aarch64_simd_expand_args): Likewise.
1598 2013-11-19  Joshua J Cogliati  <jrincayc@yahoo.com>
1600         PR c/53001
1601         * doc/invoke.texi: Adding documentation about -Wfloat-conversion.
1603 2013-11-19  Miro Kropacek  <miro.kropacek@gmail.com>
1605         * config/m68k/m68k.c (m68k_option_overrides): Fix typo.
1607 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1609         * gdbhooks.py (VecPrinter): New class, for prettyprinting pointers
1610         to "vec<>" instances.
1611         (build_pretty_printer): Register the vec<>* prettyprinter.
1613 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1615         * gdbhooks.py (GdbSubprinter.__init__): Drop str_type_ field.
1616         (GdbSubprinter.handles_type): New.
1617         (GdbSubprinterTypeList): New subclass of GdbSubprinter.
1618         (GdbSubprinterRegex): New subclass of GdbSubprinter.
1619         (GdbPrettyPrinters.add_printer): Remove in favor of...
1620         (GdbPrettyPrinters.add_printer_for_types): ...this new method and...
1621         (GdbPrettyPrinters.add_printer_for_regex): ...this other new method.
1622         (GdbPrettyPrinters.__call__): Update search for subprinter
1623         to use handles_type method.
1624         (build_pretty_printer): Update registration of subprinters to
1625         use the new API above, supporting multiple spelling of each type,
1626         and allowing for future regex-based subprinters.
1628 2013-11-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1630         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Adjust
1631         V16QI vector splat case for little endian.
1633 2013-11-19  Jeff Law  <law@redhat.com>
1635         * tree-ssa-threadedge.c (thread_across_edge): After threading
1636         through a joiner, allow threading a normal block requiring duplication.
1638         * tree-ssa-threadupdate.c (thread_block_1): Improve code to detect
1639         jump threading requests that would muck up the loop structures.
1641         * tree-ssa-threadupdate.c: Fix trailing whitespace.
1642         * tree-ssa-threadupdate.h: Likewise.
1644 2013-11-19  Mike Stump  <mikestump@comcast.net>
1646         * gdbinit.in: Add pmz to print out mpz values.
1648 2013-11-20  Jan Hubicka  <jh@suse.cz>
1650         * common.opt (ffat-lto-objects): Disable by default.
1651         * doc/invoke.texi (fat-lto-objects): Update documentation.
1652         * opts.c: Enable fat-lto-objects on lto plugin disable setups.
1654 2013-11-19  Martin Jambor  <mjambor@suse.cz>
1656         PR rtl-optimization/59099
1657         * ira.c (find_moveable_pseudos): Put back various analyses from ira()
1658         here.
1659         (ira): Move init_reg_equiv and call to
1660         split_live_ranges_for_shrink_wrap up, remove analyses around call
1661         to find_moveable_pseudos.
1663 2013-11-20  Alan Modra  <amodra@gmail.com>
1665         * config/rs6000/sysv4.h (CC1_ENDIAN_LITTLE_SPEC): Define as empty.
1666         * config/rs6000/rs6000.c (rs6000_option_override_internal): Default
1667         to strict alignment on older processors when little-endian.
1668         * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Default to power8
1669         for ELFv2.
1671 2013-11-19  Teresa Johnson  <tejohnson@google.com>
1673         * common/config/i386/i386-common.c: Enable
1674         -freorder-blocks-and-partition at -O2 and up for x86.
1675         * doc/invoke.texi: Update -freorder-blocks-and-partition default.
1676         * opts.c (finish_options): Only warn if
1677         -freorder-blocks-and-partition was set on command line.
1679 2013-11-19  Sriraman Tallam  <tmsriram@google.com>
1681         * final.c (final_scan_insn): Emit a label for the split
1682         cold function part.  Label name is formed by suffixing
1683         the original function name with "cold".
1685 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
1687         * basic-block.h (ENTRY_BLOCK_PTR_FOR_FUNCTION): Rename macro to...
1688         (EXIT_BLOCK_PTR_FOR_FUNCTION): ...this.
1689         (ENTRY_BLOCK_PTR_FOR_FN): Renamed macro to...
1690         (EXIT_BLOCK_PTR_FOR_FN): ...this.
1691         (ENTRY_BLOCK_PTR): Eliminate macro as work towards making uses of
1692         cfun be explicit.
1693         (EXIT_BLOCK_PTR): Likewise.
1694         (FOR_ALL_BB): Rework for now to eliminate use of "ENTRY_BLOCK_PTR".
1695         (FOR_ALL_BB_FN): Update for renaming of
1696         "ENTRY_BLOCK_PTR_FOR_FUNCTION" to "ENTRY_BLOCK_PTR_FOR_FN".
1698         * cfg.c (init_flow): Likewise.
1699         (check_bb_profile): Likewise.
1700         * cfganal.c (pre_and_rev_post_order_compute_fn): Likewise.
1701         * cfgcleanup.c (walk_to_nondebug_insn): Likewise.
1702         * cfghooks.c (account_profile_record): Likewise.
1703         * cfgloop.c (init_loops_structure): Likewise.
1704         * cgraphbuild.c (record_eh_tables): Likewise.
1705         (compute_call_stmt_bb_frequency): Likewise.
1706         * ipa-inline-analysis.c (compute_bb_predicates): Likewise.
1707         * lto-streamer-in.c (input_cfg): Likewise.
1708         * predict.c (maybe_hot_frequency_p): Likewise.
1709         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
1710         * tree-inline.c (initialize_cfun): Likewise.
1711         (copy_cfg_body): Likewise.
1712         (copy_body): Likewise.
1713         (tree_function_versioning): Likewise.
1715         * bb-reorder.c (add_labels_and_missing_jumps): Remove uses of macros:
1716         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1717         (duplicate_computed_gotos): Remove usage of EXIT_BLOCK_PTR macro.
1718         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove uses of
1719         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1720         (connect_traces): Likewise.
1721         (rest_of_handle_reorder_blocks): Remove usage of EXIT_BLOCK_PTR macro.
1722         (bb_to_key): Remove usage of ENTRY_BLOCK_PTR macro.
1723         (fix_crossing_conditional_branches): Remove usage of EXIT_BLOCK_PTR
1724         macro.
1725         (find_traces_1_round): Remove uses of macros: ENTRY_BLOCK_PTR,
1726         EXIT_BLOCK_PTR.
1727         (fix_up_fall_thru_edges): Remove usage of EXIT_BLOCK_PTR macro.
1728         (find_traces): Remove usage of ENTRY_BLOCK_PTR macro.
1729         (fix_up_crossing_landing_pad): Remove usage of EXIT_BLOCK_PTR macro.
1730         (rotate_loop): Likewise.
1731         * bt-load.c (migrate_btr_def): Remove usage of ENTRY_BLOCK_PTR macro.
1732         * cfg.c (clear_aux_for_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1733         EXIT_BLOCK_PTR.
1734         (alloc_aux_for_edges): Likewise.
1735         (clear_bb_flags): Remove usage of ENTRY_BLOCK_PTR macro.
1736         (cached_make_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
1737         EXIT_BLOCK_PTR.
1738         (compact_blocks): Likewise.
1739         (clear_edges): Likewise.
1740         * cfganal.c (single_pred_before_succ_order): Remove usage of
1741         ENTRY_BLOCK_PTR macro.
1742         (bitmap_union_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
1743         (bitmap_union_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
1744         (bitmap_intersection_of_succs): Remove usage of EXIT_BLOCK_PTR macro.
1745         (bitmap_intersection_of_preds): Remove usage of ENTRY_BLOCK_PTR macro.
1746         (inverted_post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
1747         EXIT_BLOCK_PTR.
1748         (compute_dominance_frontiers_1): Remove usage of ENTRY_BLOCK_PTR macro.
1749         (post_order_compute): Remove uses of macros: ENTRY_BLOCK_PTR,
1750         EXIT_BLOCK_PTR.
1751         (connect_infinite_loops_to_exit): Remove usage of EXIT_BLOCK_PTR macro.
1752         (remove_fake_edges): Remove usage of ENTRY_BLOCK_PTR macro.
1753         (add_noreturn_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1754         (find_pdom): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1755         (remove_fake_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1756         (verify_edge_list): Remove uses of macros: ENTRY_BLOCK_PTR,
1757         EXIT_BLOCK_PTR.
1758         (print_edge_list): Likewise.
1759         (create_edge_list): Likewise.
1760         (find_unreachable_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
1761         (mark_dfs_back_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
1762         EXIT_BLOCK_PTR.
1763         * cfgbuild.c (find_bb_boundaries): Remove usage of ENTRY_BLOCK_PTR
1764         macro.
1765         (find_many_sub_basic_blocks): Remove usage of EXIT_BLOCK_PTR macro.
1766         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1767         * cfgcleanup.c (delete_unreachable_blocks): Likewise.
1768         (try_optimize_cfg): Likewise.
1769         (try_head_merge_bb): Remove usage of EXIT_BLOCK_PTR macro.
1770         (try_crossjump_to_edge): Remove usage of ENTRY_BLOCK_PTR macro.
1771         (try_crossjump_bb): Remove usage of EXIT_BLOCK_PTR macro.
1772         (merge_blocks_move): Remove usage of ENTRY_BLOCK_PTR macro.
1773         (outgoing_edges_match): Remove usage of EXIT_BLOCK_PTR macro.
1774         (try_forward_edges): Likewise.
1775         (try_simplify_condjump): Likewise.
1776         * cfgexpand.c (gimple_expand_cfg): Remove uses of macros:
1777         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1778         (construct_exit_block): Remove usage of EXIT_BLOCK_PTR macro.
1779         (construct_init_block): Remove uses of macros: ENTRY_BLOCK_PTR,
1780         EXIT_BLOCK_PTR.
1781         (expand_gimple_basic_block): Remove usage of EXIT_BLOCK_PTR macro.
1782         (expand_gimple_tailcall): Likewise.
1783         * cfghooks.c (can_duplicate_block_p): Remove uses of macros:
1784         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1785         (tidy_fallthru_edges): Likewise.
1786         (verify_flow_info): Likewise.
1787         * cfgloop.c (flow_bb_inside_loop_p): Likewise.
1788         (num_loop_branches): Remove usage of EXIT_BLOCK_PTR macro.
1789         (disambiguate_multiple_latches): Remove usage of ENTRY_BLOCK_PTR macro.
1790         (get_loop_exit_edges): Remove usage of EXIT_BLOCK_PTR macro.
1791         (bb_loop_header_p): Remove usage of ENTRY_BLOCK_PTR macro.
1792         (get_loop_body_in_bfs_order): Remove usage of EXIT_BLOCK_PTR macro.
1793         (get_loop_body_in_dom_order): Likewise.
1794         (get_loop_body): Likewise.
1795         * cfgloopanal.c (mark_irreducible_loops): Remove uses of macros:
1796         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1797         * cfgloopmanip.c (create_preheader): Remove usage of ENTRY_BLOCK_PTR
1798         macro.
1799         (remove_path): Remove usage of EXIT_BLOCK_PTR macro.
1800         (fix_bb_placement): Likewise.
1801         * cfgrtl.c (rtl_block_empty_p): Remove uses of macros:
1802         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1803         (rtl_can_remove_branch_p): Remove usage of EXIT_BLOCK_PTR macro.
1804         (cfg_layout_split_edge): Remove uses of macros: ENTRY_BLOCK_PTR,
1805         EXIT_BLOCK_PTR.
1806         (rtl_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
1807         (cfg_layout_can_merge_blocks_p): Remove uses of macros:
1808         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1809         (cfg_layout_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
1810         macro.
1811         (fixup_fallthru_exit_predecessor): Remove uses of macros:
1812         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1813         (fixup_reorder_chain): Likewise.
1814         (relink_block_chain): Likewise.
1815         (cfg_layout_delete_block): Remove usage of EXIT_BLOCK_PTR macro.
1816         (rtl_verify_bb_layout): Remove usage of ENTRY_BLOCK_PTR macro.
1817         (cfg_layout_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
1818         (force_one_exit_fallthru): Likewise.
1819         (rtl_verify_fallthru): Remove uses of macros: ENTRY_BLOCK_PTR,
1820         EXIT_BLOCK_PTR.
1821         (rtl_verify_edges): Likewise.
1822         (commit_edge_insertions): Likewise.
1823         (commit_one_edge_insertion): Likewise.
1824         (rtl_split_edge): Likewise.
1825         (force_nonfallthru_and_redirect): Likewise.
1826         (outof_cfg_layout_mode): Remove usage of EXIT_BLOCK_PTR macro.
1827         (skip_insns_after_block): Likewise.
1828         (fixup_partition_crossing): Remove uses of macros: ENTRY_BLOCK_PTR,
1829         EXIT_BLOCK_PTR.
1830         (purge_dead_edges): Remove usage of EXIT_BLOCK_PTR macro.
1831         (rtl_can_merge_blocks): Remove uses of macros: ENTRY_BLOCK_PTR,
1832         EXIT_BLOCK_PTR.
1833         (contains_no_active_insn_p): Likewise.
1834         (emit_insn_at_entry): Remove usage of ENTRY_BLOCK_PTR macro.
1835         (entry_of_function): Likewise.
1836         (last_bb_in_partition): Remove usage of EXIT_BLOCK_PTR macro.
1837         (fixup_new_cold_bb): Likewise.
1838         (patch_jump_insn): Likewise.
1839         (try_redirect_by_replacing_jump): Likewise.
1840         (block_label): Likewise.
1841         (could_fall_through): Likewise.
1842         (can_fallthru): Likewise.
1843         * cgraphbuild.c (cgraph_rebuild_references): Remove usage of
1844         ENTRY_BLOCK_PTR macro.
1845         (rebuild_cgraph_edges): Likewise.
1846         * cgraphunit.c (init_lowered_empty_function): Remove uses of macros:
1847         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1848         (expand_thunk): Remove usage of EXIT_BLOCK_PTR macro.
1849         * combine.c (get_last_value): Remove usage of ENTRY_BLOCK_PTR macro.
1850         (distribute_links): Remove usage of EXIT_BLOCK_PTR macro.
1851         (get_last_value_validate): Remove usage of ENTRY_BLOCK_PTR macro.
1852         (try_combine): Remove usage of EXIT_BLOCK_PTR macro.
1853         (reg_num_sign_bit_copies_for_combine): Remove usage of ENTRY_BLOCK_PTR
1854         macro.
1855         (reg_nonzero_bits_for_combine): Likewise.
1856         (set_nonzero_bits_and_sign_copies): Likewise.
1857         (combine_instructions): Likewise.
1858         * cprop.c (one_cprop_pass): Remove uses of macros: ENTRY_BLOCK_PTR,
1859         EXIT_BLOCK_PTR.
1860         (bypass_conditional_jumps): Likewise.
1861         (bypass_block): Remove usage of EXIT_BLOCK_PTR macro.
1862         (find_implicit_sets): Likewise.
1863         (cprop_jump): Likewise.
1864         * cse.c (cse_cc_succs): Likewise.
1865         (cse_find_path): Likewise.
1866         * df-problems.c (df_lr_confluence_0): Likewise.
1867         * df-scan.c (df_entry_block_defs_collect): Remove usage of
1868         ENTRY_BLOCK_PTR macro.
1869         (df_exit_block_uses_collect): Remove usage of EXIT_BLOCK_PTR macro.
1870         * dominance.c (iterate_fix_dominators): Remove usage of
1871         ENTRY_BLOCK_PTR macro.
1872         (calc_idoms): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1873         (determine_dominators_for_sons): Remove usage of ENTRY_BLOCK_PTR macro.
1874         (calc_dfs_tree): Remove uses of macros: ENTRY_BLOCK_PTR,
1875         EXIT_BLOCK_PTR.
1876         (prune_bbs_to_update_dominators): Remove usage of ENTRY_BLOCK_PTR
1877         macro.
1878         (calc_dfs_tree_nonrec): Remove uses of macros: ENTRY_BLOCK_PTR,
1879         EXIT_BLOCK_PTR.
1880         * domwalk.c (cmp_bb_postorder): Likewise.
1881         * dse.c (dse_step1): Remove usage of EXIT_BLOCK_PTR macro.
1882         * except.c (finish_eh_generation): Remove usage of ENTRY_BLOCK_PTR
1883         macro.
1884         (sjlj_emit_function_enter): Likewise.
1885         * final.c (compute_alignments): Likewise.
1886         * function.c (thread_prologue_and_epilogue_insns): Remove uses of
1887         macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1888         (reposition_prologue_and_epilogue_notes): Remove usage of
1889         EXIT_BLOCK_PTR macro.
1890         (convert_jumps_to_returns): Remove uses of macros: ENTRY_BLOCK_PTR,
1891         EXIT_BLOCK_PTR.
1892         (regno_clobbered_at_setjmp): Remove usage of ENTRY_BLOCK_PTR macro.
1893         (next_block_for_reg): Remove usage of EXIT_BLOCK_PTR macro.
1894         * gcse.c (hoist_code): Remove usage of ENTRY_BLOCK_PTR macro.
1895         (update_bb_reg_pressure): Remove usage of EXIT_BLOCK_PTR macro.
1896         (compute_code_hoist_vbeinout): Likewise.
1897         (should_hoist_expr_to_dom): Remove usage of ENTRY_BLOCK_PTR macro.
1898         (pre_expr_reaches_here_p_work): Likewise.
1899         * gimple-iterator.c (gsi_commit_edge_inserts): Likewise.
1900         (gimple_find_edge_insert_loc): Remove uses of macros: ENTRY_BLOCK_PTR,
1901         EXIT_BLOCK_PTR.
1902         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove usage of
1903         ENTRY_BLOCK_PTR macro.
1904         * graph.c (draw_cfg_nodes_for_loop): Remove usage of EXIT_BLOCK_PTR
1905         macro.
1906         * graphite-clast-to-gimple.c (translate_clast_user): Remove usage of
1907         ENTRY_BLOCK_PTR macro.
1908         * graphite-scop-detection.c (build_scops): Likewise.
1909         (create_sese_edges): Remove usage of EXIT_BLOCK_PTR macro.
1910         (scopdet_basic_block_info): Remove usage of ENTRY_BLOCK_PTR macro.
1911         * haifa-sched.c (restore_bb_notes): Remove usage of EXIT_BLOCK_PTR
1912         macro.
1913         (unlink_bb_notes): Likewise.
1914         (create_check_block_twin): Likewise.
1915         (init_before_recovery): Likewise.
1916         (sched_extend_bb): Likewise.
1917         (priority): Likewise.
1918         * hw-doloop.c (reorder_loops): Likewise.
1919         (discover_loop): Likewise.
1920         * ifcvt.c (dead_or_predicable): Remove uses of macros:
1921         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1922         (find_if_case_1): Remove usage of EXIT_BLOCK_PTR macro.
1923         (block_has_only_trap): Likewise.
1924         (cond_exec_find_if_block): Likewise.
1925         (merge_if_block): Likewise.
1926         * ipa-inline-analysis.c (param_change_prob): Remove usage of
1927         ENTRY_BLOCK_PTR macro.
1928         (record_modified): Likewise.
1929         * ipa-pure-const.c (execute_warn_function_noreturn): Remove usage of
1930         EXIT_BLOCK_PTR macro.
1931         (local_pure_const): Likewise.
1932         * ipa-split.c (split_function): Remove uses of macros:
1933         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1934         (find_split_points): Likewise.
1935         (consider_split): Likewise.
1936         (find_return_bb): Remove usage of EXIT_BLOCK_PTR macro.
1937         (verify_non_ssa_vars): Remove usage of ENTRY_BLOCK_PTR macro.
1938         * ira-build.c (ira_loop_tree_body_rev_postorder): Likewise.
1939         * ira-color.c (print_loop_title): Remove usage of EXIT_BLOCK_PTR macro.
1940         * ira-emit.c (entered_from_non_parent_p): Remove usage of
1941         ENTRY_BLOCK_PTR macro.
1942         (ira_emit): Remove usage of EXIT_BLOCK_PTR macro.
1943         * ira-int.h (ira_assert): Remove usage of ENTRY_BLOCK_PTR macro.
1944         * ira.c (split_live_ranges_for_shrink_wrap): Remove uses of macros:
1945         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1946         * lcm.c (compute_rev_insert_delete): Remove usage of ENTRY_BLOCK_PTR
1947         macro.
1948         (compute_nearerout): Remove uses of macros: ENTRY_BLOCK_PTR,
1949         EXIT_BLOCK_PTR.
1950         (compute_farthest): Likewise.
1951         (compute_available): Likewise.
1952         (compute_insert_delete): Remove usage of EXIT_BLOCK_PTR macro.
1953         (compute_laterin): Remove uses of macros: ENTRY_BLOCK_PTR,
1954         EXIT_BLOCK_PTR.
1955         (compute_earliest): Likewise.
1956         (compute_antinout_edge): Likewise.
1957         * loop-iv.c (simplify_using_initial_values): Remove usage of
1958         ENTRY_BLOCK_PTR macro.
1959         * loop-unswitch.c (unswitch_loop): Remove usage of EXIT_BLOCK_PTR
1960         macro.
1961         * lra-assigns.c (find_hard_regno_for): Remove usage of ENTRY_BLOCK_PTR
1962         macro.
1963         * lra-constraints.c (lra_inheritance): Remove usage of EXIT_BLOCK_PTR
1964         macro.
1965         * lra-lives.c (lra_create_live_ranges): Remove uses of macros:
1966         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1967         * lra.c (has_nonexceptional_receiver): Remove usage of EXIT_BLOCK_PTR
1968         macro.
1969         * lto-streamer-in.c (input_function): Remove usage of ENTRY_BLOCK_PTR
1970         macro.
1971         * lto-streamer-out.c (output_cfg): Likewise.
1972         * mcf.c (adjust_cfg_counts): Remove uses of macros: ENTRY_BLOCK_PTR,
1973         EXIT_BLOCK_PTR.
1974         (create_fixup_graph): Remove usage of ENTRY_BLOCK_PTR macro.
1975         * mode-switching.c (optimize_mode_switching): Likewise.
1976         (create_pre_exit): Remove usage of EXIT_BLOCK_PTR macro.
1977         * modulo-sched.c (rest_of_handle_sms): Likewise.
1978         (canon_loop): Likewise.
1979         * omp-low.c (build_omp_regions): Remove usage of ENTRY_BLOCK_PTR macro.
1980         * postreload-gcse.c (eliminate_partially_redundant_loads): Remove uses
1981         of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1982         * predict.c (rebuild_frequencies): Remove usage of ENTRY_BLOCK_PTR
1983         macro.
1984         (propagate_freq): Remove usage of EXIT_BLOCK_PTR macro.
1985         (estimate_bb_frequencies): Remove usage of ENTRY_BLOCK_PTR macro.
1986         (tree_estimate_probability_bb): Remove usage of EXIT_BLOCK_PTR macro.
1987         (expensive_function_p): Remove usage of ENTRY_BLOCK_PTR macro.
1988         (tree_bb_level_predictions): Remove usage of EXIT_BLOCK_PTR macro.
1989         (counts_to_freqs): Remove usage of ENTRY_BLOCK_PTR macro.
1990         (apply_return_prediction): Remove usage of EXIT_BLOCK_PTR macro.
1991         (estimate_loops): Remove usage of ENTRY_BLOCK_PTR macro.
1992         (gimple_predict_edge): Likewise.
1993         (probably_never_executed): Likewise.
1994         * profile.c (find_spanning_tree): Remove uses of macros:
1995         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
1996         (branch_prob): Likewise.
1997         (compute_branch_probabilities): Likewise.
1998         (compute_frequency_overlap): Remove usage of ENTRY_BLOCK_PTR macro.
1999         (is_inconsistent): Remove usage of EXIT_BLOCK_PTR macro.
2000         (read_profile_edge_counts): Remove usage of ENTRY_BLOCK_PTR macro.
2001         (set_bb_counts): Likewise.
2002         (correct_negative_edge_counts): Likewise.
2003         (get_exec_counts): Likewise.
2004         (instrument_values): Likewise.
2005         (instrument_edges): Likewise.
2006         * reg-stack.c (convert_regs): Remove uses of macros: ENTRY_BLOCK_PTR,
2007         EXIT_BLOCK_PTR.
2008         (compensate_edges): Remove usage of ENTRY_BLOCK_PTR macro.
2009         (convert_regs_exit): Remove usage of EXIT_BLOCK_PTR macro.
2010         (convert_regs_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2011         (reg_to_stack): Likewise.
2012         * regs.h (REG_N_SETS): Likewise.
2013         * reload.c (find_dummy_reload): Likewise.
2014         (combine_reloads): Likewise.
2015         (push_reload): Likewise.
2016         * reload1.c (has_nonexceptional_receiver): Remove usage of
2017         EXIT_BLOCK_PTR macro.
2018         * resource.c (mark_target_live_regs): Remove usage of ENTRY_BLOCK_PTR
2019         macro.
2020         (find_basic_block): Likewise.
2021         * sched-ebb.c (ebb_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2022         (schedule_ebbs): Likewise.
2023         * sched-int.h (sel_sched_p): Likewise.
2024         * sched-rgn.c (compute_dom_prob_ps): Remove usage of ENTRY_BLOCK_PTR
2025         macro.
2026         (rgn_add_block): Remove usage of EXIT_BLOCK_PTR macro.
2027         (haifa_find_rgns): Remove uses of macros: ENTRY_BLOCK_PTR,
2028         EXIT_BLOCK_PTR.
2029         (propagate_deps): Remove usage of EXIT_BLOCK_PTR macro.
2030         (extend_rgns): Likewise.
2031         (find_single_block_region): Likewise.
2032         * sel-sched-ir.c (sel_remove_loop_preheader): Remove usage of
2033         ENTRY_BLOCK_PTR macro.
2034         (setup_nop_and_exit_insns): Remove usage of EXIT_BLOCK_PTR macro.
2035         (sel_create_recovery_block): Likewise.
2036         (bb_ends_ebb_p): Likewise.
2037         (sel_bb_end): Likewise.
2038         (sel_bb_head): Likewise.
2039         (free_lv_sets): Likewise.
2040         (init_lv_sets): Likewise.
2041         (tidy_control_flow): Likewise.
2042         (maybe_tidy_empty_bb): Likewise.
2043         * sel-sched-ir.h (_succ_iter_cond): Likewise.
2044         (_succ_iter_start): Likewise.
2045         (sel_bb_empty_or_nop_p): Likewise.
2046         (get_loop_exit_edges_unique_dests): Likewise.
2047         (inner_loop_header_p): Likewise.
2048         * sel-sched.c (create_block_for_bookkeeping): Likewise.
2049         (find_block_for_bookkeeping): Likewise.
2050         * store-motion.c (remove_reachable_equiv_notes): Likewise.
2051         (insert_store): Likewise.
2052         * trans-mem.c (ipa_tm_transform_clone): Remove usage of
2053         ENTRY_BLOCK_PTR macro.
2054         (tm_memopt_compute_available): Remove usage of EXIT_BLOCK_PTR macro.
2055         (ipa_tm_scan_irr_function): Remove usage of ENTRY_BLOCK_PTR macro.
2056         (gate_tm_init): Likewise.
2057         (tm_region_init): Likewise.
2058         * tree-cfg.c (execute_fixup_cfg): Remove uses of macros:
2059         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2060         (execute_warn_function_return): Remove usage of EXIT_BLOCK_PTR macro.
2061         (split_critical_edges): Remove uses of macros: ENTRY_BLOCK_PTR,
2062         EXIT_BLOCK_PTR.
2063         (print_loops): Remove usage of ENTRY_BLOCK_PTR macro.
2064         (move_sese_region_to_fn): Remove uses of macros: ENTRY_BLOCK_PTR,
2065         EXIT_BLOCK_PTR.
2066         (gimple_redirect_edge_and_branch): Remove usage of ENTRY_BLOCK_PTR
2067         macro.
2068         (gimple_verify_flow_info): Remove uses of macros: ENTRY_BLOCK_PTR,
2069         EXIT_BLOCK_PTR.
2070         (remove_edge_and_dominated_blocks): Remove usage of EXIT_BLOCK_PTR
2071         macro.
2072         (make_edges): Remove uses of macros: ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2073         (gimple_flow_call_edges_add): Remove usage of EXIT_BLOCK_PTR macro.
2074         (make_blocks): Remove usage of ENTRY_BLOCK_PTR macro.
2075         (build_gimple_cfg): Likewise.
2076         (gimple_duplicate_bb): Remove usage of EXIT_BLOCK_PTR macro.
2077         (gimple_can_merge_blocks_p): Likewise.
2078         * tree-cfgcleanup.c (tree_forwarder_block_p): Remove uses of macros:
2079         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2080         * tree-complex.c (update_parameter_components): Remove usage of
2081         ENTRY_BLOCK_PTR macro.
2082         * tree-if-conv.c (get_loop_body_in_if_conv_order): Remove usage of
2083         EXIT_BLOCK_PTR macro.
2084         * tree-inline.c (tree_function_versioning): Remove uses of macros:
2085         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2086         (delete_unreachable_blocks_update_callgraph): Likewise.
2087         (initialize_cfun): Likewise.
2088         (copy_cfg_body): Remove usage of ENTRY_BLOCK_PTR macro.
2089         (copy_edges_for_bb): Remove usage of EXIT_BLOCK_PTR macro.
2090         (remap_ssa_name): Remove usage of ENTRY_BLOCK_PTR macro.
2091         * tree-into-ssa.c (update_ssa): Likewise.
2092         (maybe_register_def): Remove usage of EXIT_BLOCK_PTR macro.
2093         (insert_updated_phi_nodes_for): Remove usage of ENTRY_BLOCK_PTR macro.
2094         (rewrite_into_ssa): Likewise.
2095         (rewrite_debug_stmt_uses): Likewise.
2096         * tree-outof-ssa.c (expand_phi_nodes): Remove uses of macros:
2097         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2098         * tree-profile.c (gimple_gen_ic_func_profiler): Remove usage of
2099         ENTRY_BLOCK_PTR macro.
2100         * tree-scalar-evolution.h (block_before_loop): Likewise.
2101         * tree-sra.c (sra_ipa_reset_debug_stmts): Likewise.
2102         (dump_dereferences_table): Remove uses of macros: ENTRY_BLOCK_PTR,
2103         EXIT_BLOCK_PTR.
2104         (analyze_caller_dereference_legality): Remove usage of ENTRY_BLOCK_PTR
2105         macro.
2106         (propagate_dereference_distances): Remove uses of macros:
2107         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2108         (initialize_parameter_reductions): Remove usage of ENTRY_BLOCK_PTR
2109         macro.
2110         * tree-ssa-ccp.c (gsi_prev_dom_bb_nondebug): Likewise.
2111         (optimize_stack_restore): Remove usage of EXIT_BLOCK_PTR macro.
2112         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2113         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove uses of macros:
2114         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2115         (remove_dead_stmt): Remove usage of EXIT_BLOCK_PTR macro.
2116         (propagate_necessity): Remove usage of ENTRY_BLOCK_PTR macro.
2117         (mark_control_dependent_edges_necessary): Remove uses of macros:
2118         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2119         * tree-ssa-dom.c (eliminate_degenerate_phis): Remove usage of
2120         ENTRY_BLOCK_PTR macro.
2121         (tree_ssa_dominator_optimize): Remove usage of EXIT_BLOCK_PTR macro.
2122         * tree-ssa-live.c (verify_live_on_entry): Remove uses of macros:
2123         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2124         (calculate_live_on_exit): Likewise.
2125         (set_var_live_on_entry): Remove usage of ENTRY_BLOCK_PTR macro.
2126         (loe_visit_block): Likewise.
2127         * tree-ssa-live.h (live_on_exit): Remove uses of macros:
2128         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2129         (live_on_entry): Likewise.
2130         * tree-ssa-loop-ivopts.c (find_interesting_uses): Remove usage of
2131         EXIT_BLOCK_PTR macro.
2132         * tree-ssa-loop-manip.c (compute_live_loop_exits): Remove usage of
2133         ENTRY_BLOCK_PTR macro.
2134         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Likewise.
2135         (bound_difference): Likewise.
2136         * tree-ssa-loop-prefetch.c (may_use_storent_in_loop_p): Remove usage
2137         of EXIT_BLOCK_PTR macro.
2138         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Remove usage
2139         of ENTRY_BLOCK_PTR macro.
2140         * tree-ssa-math-opts.c (register_division_in): Likewise.
2141         * tree-ssa-phiprop.c (tree_ssa_phiprop): Likewise.
2142         * tree-ssa-pre.c (compute_avail): Likewise.
2143         (compute_antic): Remove usage of EXIT_BLOCK_PTR macro.
2144         (insert): Remove usage of ENTRY_BLOCK_PTR macro.
2145         * tree-ssa-propagate.c (ssa_prop_init): Likewise.
2146         (simulate_block): Remove usage of EXIT_BLOCK_PTR macro.
2147         (cfg_blocks_add): Remove uses of macros: ENTRY_BLOCK_PTR,
2148         EXIT_BLOCK_PTR.
2149         (add_control_edge): Remove usage of EXIT_BLOCK_PTR macro.
2150         * tree-ssa-reassoc.c (do_reassoc): Remove uses of macros:
2151         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2152         (build_and_add_sum): Remove usage of ENTRY_BLOCK_PTR macro.
2153         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
2154         (execute_sink_code): Remove usage of EXIT_BLOCK_PTR macro.
2155         * tree-ssa-uninit.c (find_dom): Remove usage of ENTRY_BLOCK_PTR macro.
2156         (compute_control_dep_chain): Remove usage of EXIT_BLOCK_PTR macro.
2157         (find_pdom): Likewise.
2158         (warn_uninitialized_vars): Remove usage of ENTRY_BLOCK_PTR macro.
2159         * tree-stdarg.c (reachable_at_most_once): Likewise.
2160         * tree-tailcall.c (tree_optimize_tail_calls_1): Remove uses of macros:
2161         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2162         (eliminate_tail_call): Likewise.
2163         * tsan.c (instrument_func_entry): Remove usage of ENTRY_BLOCK_PTR
2164         macro.
2165         (instrument_func_exit): Remove usage of EXIT_BLOCK_PTR macro.
2166         * var-tracking.c (vt_initialize): Remove uses of macros:
2167         ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR.
2168         (vt_add_function_parameter): Remove usage of ENTRY_BLOCK_PTR macro.
2169         (vt_find_locations): Remove usage of EXIT_BLOCK_PTR macro.
2170         (vt_stack_adjustments): Remove uses of macros: ENTRY_BLOCK_PTR,
2171         EXIT_BLOCK_PTR.
2172         * varasm.c (assemble_start_function): Remove usage of ENTRY_BLOCK_PTR
2173         macro.
2174         * config/bfin/bfin.c (hwloop_optimize): Likewise.
2175         * config/nds32/nds32.c (nds32_fp_as_gp_check_available): Remove usage
2176         of EXIT_BLOCK_PTR macro.
2177         * config/arm/arm.c (require_pic_register): Remove usage of
2178         ENTRY_BLOCK_PTR macro.
2179         (arm_r3_live_at_start_p): Likewise.
2180         (any_sibcall_could_use_r3): Remove usage of EXIT_BLOCK_PTR macro.
2181         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2182         * config/frv/frv.c (frv_optimize_membar_global): Likewise.
2183         * config/alpha/alpha.c (alpha_gp_save_rtx): Remove usage of
2184         ENTRY_BLOCK_PTR macro.
2185         * config/i386/i386.c (ix86_count_insn): Likewise.
2186         (ix86_seh_fixup_eh_fallthru): Remove usage of EXIT_BLOCK_PTR macro.
2187         (ix86_pad_short_function): Likewise.
2188         (ix86_compute_frame_layout): Remove usage of ENTRY_BLOCK_PTR macro.
2189         (ix86_pad_returns): Remove usage of EXIT_BLOCK_PTR macro.
2190         (ix86_eax_live_at_start_p): Remove usage of ENTRY_BLOCK_PTR macro.
2191         (add_condition_to_bb): Remove usage of EXIT_BLOCK_PTR macro.
2192         (ix86_expand_epilogue): Likewise.
2193         * config/ia64/ia64.c (ia64_asm_unwind_emit): Likewise.
2194         (ia64_expand_prologue): Likewise.
2196 2013-11-19  Catherine Moore  <clm@codesourcery.com>
2198         * doc/invoke.texi (mfix-rm7000, mno-fix-rm7000): Document.
2199         * config/mips/mips.opt (mfix-rm7000): New option.
2200         * config/mips/mips.h (ASM_SPEC): Handle mfix-rm7000.
2201         * config/mips/mips.c (mips_reorg_process_insns): Disable
2202         noreorder for TARGET_FIX_RM7000.
2204 2013-11-19  Oleg Endo  <olegendo@gcc.gnu.org>
2206         * config/sh/sh-c.c: Fix typo in include of file attribs.h.
2208 2013-11-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2210         * config/arm/arm.c (arm_new_rtx_costs):
2211         Handle narrow mode add-shifts properly.
2212         * config/arm/arm-common.c (arm_rtx_shift_left_p): Remove static.
2213         * config/arm/arm-common-protos.h (arm_rtx_shift_left_p):
2214         Declare extern.
2216 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
2218         * config/arm/arm.md (zero_extend<mode>di2): Add type attribute.
2220 2013-11-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2222         * config/rs6000/vector.md ("mov<mode>"): Do not call
2223         rs6000_emit_le_vsx_move to move into or out of GPRs.
2224         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Assert
2225         source and destination are not GPR hard regs.
2227 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2229         * basic-block.h (n_edges_for_function): Rename macro to...
2230         (n_edges_for_fn): ...this.
2231         (n_edges): Eliminate macro as work towards making uses of
2232         cfun be explicit.
2234         * cfg.c (init_flow): Update for renaming of "n_edges_for_function"
2235         to "n_edges_for_fn".
2237         * cfg.c (unchecked_make_edge): Remove usage of n_edges macro.
2238         (clear_edges): Likewise.
2239         (free_edge): Likewise.
2240         * cfghooks.c (dump_flow_info): Likewise.
2241         * cprop.c (is_too_expensive): Likewise.
2242         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
2243         * gcse.c (is_too_expensive): Likewise.
2244         (prune_insertions_deletions): Likewise.
2245         * mcf.c (create_fixup_graph): Likewise.
2246         * sched-rgn.c (haifa_find_rgns): Likewise.
2247         * tree-cfg.c (gimple_dump_cfg): Likewise.
2248         * var-tracking.c (variable_tracking_main_1): Likewise.
2250 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2252         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix over
2253         length lines.
2255 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2257         * config/aarch64/aarch64.md
2258         (aarch64_movdi_<mode>low, *add_<shift>_si_uxtw): Adjust whitespace.
2260 2013-11-19  Marcus Shawcroft  <marcus.shawcroft@arm.com>
2262         * config/aarch64/aarch64.h (PROFILE_HOOK): Fix whitespace.
2264 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
2266         * varasm.c (align_variable): Give error instead of warning for
2267         unsupported alignment.
2268         (assemble_noswitch_variable): Likewise.
2270 2013-11-19  Basile Starynkevitch  <basile@starynkevitch.net>
2272         * plugin.def (PLUGIN_INCLUDE_FILE): New event, invoked in
2273         cb_file_change.
2275 2013-11-19  Peter Bergner  <bergner@vnet.ibm.com>
2277         * loop-doloop.c (doloop_optimize_loops): Remove unused
2278         loop iterator argument from FOR_EACH_LOOP.
2280 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2282         Convert gimple types from a union to C++ inheritance.
2283         * Makefile.in (GIMPLE_H): Add dep on is-a.h.
2284         * coretypes.h (union gimple_statement_d): Remove declaration.
2285         (gimple): Convert from being a "union gimple_statement_d *"
2286         to a "struct gimple_statement_base *".
2287         (const_gimple): Likewise (with "const").
2288         * ggc.h (ggc_alloc_cleared_gimple_statement_d_stat): Replace with...
2289         (ggc_alloc_cleared_gimple_statement_stat): ...this.
2290         * gimple-pretty-print.c (debug): Change parameter from a
2291         "gimple_statement_d &" to a "gimple_statement_base &".
2292         (debug): Change parameter from a "gimple_statement_d *" to
2293         a "gimple_statement_base *".
2294         * gimple-pretty-print.h (debug): Update declarations as above.
2295         * gimple.c (gimple_alloc_stat): Update for renaming of
2296         ggc_alloc_cleared_gimple_statement_d_stat to
2297         ggc_alloc_cleared_gimple_statement_stat.
2298         * gimple.h: Include "is-a.h" for use by is_a_helper
2299         specializations in followup autogenerated patch.
2300         (struct gimple statement_base): Make this type usable as a base
2301         class by adding "desc", "tag" and "variable_size" to GTY, thus
2302         using opting-in to gengtype's support for simple inheritance.
2303         (gimple_statement_with_ops_base): Convert to a subclass of
2304         gimple_statement_base, dropping initial "gsbase" field.  Note that
2305         this type is abstract, with no GSS_ value, and thus no GTY tag value.
2306         (gimple_statement_with_ops): Convert to a subclass of
2307         gimple_statement_with_ops_base, dropping initial "opbase" field.
2308         Add tag value to GTY marking.  Update marking of op field to
2309         reflect how num_ops field is accessed via inheritance.
2310         (gimple_statement_with_memory_ops_base): Convert to a subclass of
2311         gimple_statement_with_ops_base, dropping initial "opbase" field.
2312         Add tag value to GTY marking.
2313         (gimple_statement_with_memory_ops): Convert to a subclass of
2314         public gimple_statement_with_memory_ops_base, dropping initial
2315         "membase" field.  Add tag value to GTY marking.  Update marking
2316         of op field to reflect how num_ops field is accessed via inheritance.
2317         (gimple_statement_call): Analogous changes that also update the
2318         marking of the "u" union.
2319         (gimple_statement_omp): Convert to a subclass of
2320         gimple_statement_base, dropping initial "gsbase" field, adding
2321         tag value to GTY marking.
2322         (gimple_statement_bind): Likewise.
2323         (gimple_statement_catch): Likewise.
2324         (gimple_statement_eh_filter): Likewise.
2325         (gimple_statement_eh_else): Likewise.
2326         (gimple_statement_eh_mnt): Likewise.
2327         (gimple_statement_phi): Likewise.
2328         (gimple_statement_eh_ctrl): Likewise.
2329         (gimple_statement_try): Likewise.
2330         (gimple_statement_wce): Likewise.
2331         (gimple_statement_asm): Convert to a subclass of
2332         gimple_statement_with_memory_ops_base, dropping initial
2333         "membase" field, adding tag value to GTY marking, and updating
2334         marking of op field.
2335         (gimple_statement_omp_critical): Convert to a subclass of
2336         gimple_statement_omp, dropping initial "omp" field, adding tag
2337         value to GTY marking.
2338         (gimple_statement_omp_for): Likewise.
2339         (gimple_statement_omp_parallel): Likewise.
2340         (gimple_statement_omp_task): Convert to a subclass of
2341         gimple_statement_omp_parallel, dropping initial "par" field,
2342         adding tag value to GTY marking.
2343         (gimple_statement_omp_sections): Convert to a subclass of
2344         gimple_statement_omp, dropping initial "omp" field, adding
2345         tag value to GTY marking.
2346         (gimple_statement_omp_continue): Convert to a subclass of
2347         gimple_statement_base, dropping initial "gsbase" field, adding
2348         tag value to GTY marking.
2349         (gimple_statement_omp_single): Convert to a subclass of
2350         gimple_statement_omp, dropping initial "omp" field, adding
2351         tag value to GTY marking.
2352         (gimple_statement_omp_atomic_load): Convert to a subclass of
2353         gimple_statement_base, dropping initial "gsbase" field, adding
2354         tag value to GTY marking.
2355         (gimple_statement_omp_atomic_store): Convert to a subclass of
2356         gimple_statement_base, dropping initial "gsbase" field, adding
2357         tag value to GTY marking.
2358         (gimple_statement_transaction): Convert to a subclass of
2359         gimple_statement_with_memory_ops_base, dropping initial "gsbase"
2360         field, adding tag value to GTY marking.
2361         (union gimple_statement_d): Remove.
2362         * system.h (CONST_CAST_GIMPLE): Update to use
2363         "struct gimple_statement_base *" rather than
2364         "union gimple_statement_d *".
2365         * tree-ssa-ccp.c (gimple_htab): Convert underlying type from
2366         gimple_statement_d to gimple_statement_base.
2368         * gimple.h (gimple_use_ops): Port from union to usage of dyn_cast.
2369         (gimple_set_use_ops): Port from union to usage of as_a.
2370         (gimple_set_vuse): Likewise.
2371         (gimple_set_vdef): Likewise.
2372         (gimple_call_internal_fn): Port from union to a static_cast,
2373         given that the type has already been asserted.
2374         (gimple_omp_body_ptr): Port from unchecked union usage to
2375         a static_cast.
2376         (gimple_omp_set_body): Likewise.
2378         * gimple-iterator.c (update_bb_for_stmts): Update for conversion of
2379         gimple types to a true class hierarchy.
2380         (update_call_edge_frequencies): Likewise.
2381         (gsi_insert_seq_nodes_before): Likewise.
2382         (gsi_insert_seq_nodes_after): Likewise.
2383         (gsi_split_seq_after): Likewise.
2384         (gsi_set_stmt): Likewise.
2385         (gsi_split_seq_before): Likewise.
2386         (gsi_remove): Likewise.
2387         * gimple-iterator.h (gsi_one_before_end_p): Likewise.
2388         (gsi_next): Likewise.
2389         (gsi_prev): Likewise.
2390         * gimple-pretty-print.c (dump_gimple_debug): Likewise.
2391         * gimple-ssa.h (gimple_vuse_op): Likewise.
2392         (gimple_vdef_op): Likewise.
2393         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
2394         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
2395         * gimple.c (gimple_set_code): Likewise.
2396         (gimple_alloc_stat): Likewise.
2397         (gimple_set_subcode): Likewise.
2398         (gimple_build_call_internal_1): Likewise.
2399         (gimple_check_failed): Likewise.
2400         (gimple_call_flags): Likewise.
2401         (gimple_set_bb): Likewise.
2402         * gimple.h (is_a_helper <gimple_statement_asm> (gimple)): New.
2403         (is_a_helper <gimple_statement_bind> (gimple)): Likewise.
2404         (is_a_helper <gimple_statement_call> (gimple)): Likewise.
2405         (is_a_helper <gimple_statement_catch> (gimple)): Likewise.
2406         (is_a_helper <gimple_statement_eh_ctrl> (gimple)): Likewise.
2407         (is_a_helper <gimple_statement_eh_else> (gimple)): Likewise.
2408         (is_a_helper <gimple_statement_eh_filter> (gimple)): Likewise.
2409         (is_a_helper <gimple_statement_eh_mnt> (gimple)): Likewise.
2410         (is_a_helper <gimple_statement_omp_atomic_load> (gimple)): Likewise.
2411         (is_a_helper <gimple_statement_omp_atomic_store> (gimple)): Likewise.
2412         (is_a_helper <gimple_statement_omp_continue> (gimple)): Likewise.
2413         (is_a_helper <gimple_statement_omp_critical> (gimple)): Likewise.
2414         (is_a_helper <gimple_statement_omp_for> (gimple)): Likewise.
2415         (is_a_helper <gimple_statement_omp_parallel> (gimple)): Likewise.
2416         (is_a_helper <gimple_statement_omp_sections> (gimple)): Likewise.
2417         (is_a_helper <gimple_statement_omp_single> (gimple)): Likewise.
2418         (is_a_helper <gimple_statement_omp_task> (gimple)): Likewise.
2419         (is_a_helper <gimple_statement_phi> (gimple)): Likewise.
2420         (is_a_helper <gimple_statement_transaction> (gimple)): Likewise.
2421         (is_a_helper <gimple_statement_try> (gimple)): Likewise.
2422         (is_a_helper <gimple_statement_wce> (gimple)): Likewise.
2423         (is_a_helper <const gimple_statement_asm> (const_gimple)): Likewise.
2424         (is_a_helper <const gimple_statement_bind> (const_gimple)): Likewise.
2425         (is_a_helper <const gimple_statement_call> (const_gimple)): Likewise.
2426         (is_a_helper <const gimple_statement_catch> (const_gimple)): Likewise.
2427         (is_a_helper <const gimple_statement_eh_ctrl> (const_gimple)):
2428         Likewise.
2429         (is_a_helper <const gimple_statement_eh_filter> (const_gimple)):
2430         Likewise.
2431         (is_a_helper <const gimple_statement_omp_atomic_load> (const_gimple)):
2432         Likewise.
2433         (is_a_helper <const gimple_statement_omp_atomic_store>
2434         (const_gimple)): Likewise.
2435         (is_a_helper <const gimple_statement_omp_continue> (const_gimple)):
2436         Likewise.
2437         (is_a_helper <const gimple_statement_omp_critical> (const_gimple)):
2438         Likewise.
2439         (is_a_helper <const gimple_statement_omp_for> (const_gimple)):
2440         Likewise.
2441         (is_a_helper <const gimple_statement_omp_parallel> (const_gimple)):
2442         Likewise.
2443         (is_a_helper <const gimple_statement_omp_sections> (const_gimple)):
2444         Likewise.
2445         (is_a_helper <const gimple_statement_omp_single> (const_gimple)):
2446         Likewise.
2447         (is_a_helper <const gimple_statement_omp_task> (const_gimple)):
2448         Likewise.
2449         (is_a_helper <const gimple_statement_phi> (const_gimple)): Likewise.
2450         (is_a_helper <const gimple_statement_transaction> (const_gimple)):
2451         Likewise.
2452         (gimple_seq_last): Update for conversion of gimple types to a true
2453         class hierarchy.
2454         (gimple_seq_set_last): Likewise.
2455         (gimple_code): Likewise.
2456         (gimple_bb): Likewise.
2457         (gimple_block): Likewise.
2458         (gimple_set_block): Likewise.
2459         (gimple_location): Likewise.
2460         (gimple_location_ptr): Likewise.
2461         (gimple_set_location): Likewise.
2462         (gimple_no_warning_p): Likewise.
2463         (gimple_set_no_warning): Likewise.
2464         (gimple_set_visited): Likewise.
2465         (gimple_visited_p): Likewise.
2466         (gimple_set_plf): Likewise.
2467         (gimple_plf): Likewise.
2468         (gimple_set_uid): Likewise.
2469         (gimple_uid): Likewise.
2470         (gimple_init_singleton): Likewise.
2471         (gimple_modified_p): Likewise.
2472         (gimple_set_modified): Likewise.
2473         (gimple_expr_code): Likewise.
2474         (gimple_has_volatile_ops): Likewise.
2475         (gimple_set_has_volatile_ops): Likewise.
2476         (gimple_omp_subcode): Likewise.
2477         (gimple_omp_set_subcode): Likewise.
2478         (gimple_omp_return_set_nowait): Likewise.
2479         (gimple_omp_section_set_last): Likewise.
2480         (gimple_omp_parallel_set_combined_p): Likewise.
2481         (gimple_omp_atomic_set_need_value): Likewise.
2482         (gimple_omp_atomic_set_seq_cst): Likewise.
2483         (gimple_num_ops): Likewise.
2484         (gimple_set_num_ops): Likewise.
2485         (gimple_assign_nontemporal_move_p): Likewise.
2486         (gimple_assign_set_nontemporal_move): Likewise.
2487         (gimple_assign_rhs_code): Likewise.
2488         (gimple_assign_set_rhs_code): Likewise.
2489         (gimple_call_internal_p): Likewise.
2490         (gimple_call_with_bounds_p): Likewise.
2491         (gimple_call_set_with_bounds): Likewise.
2492         (gimple_call_set_tail): Likewise.
2493         (gimple_call_tail_p): Likewise.
2494         (gimple_call_set_return_slot_opt): Likewise.
2495         (gimple_call_return_slot_opt_p): Likewise.
2496         (gimple_call_set_from_thunk): Likewise.
2497         (gimple_call_from_thunk_p): Likewise.
2498         (gimple_call_set_va_arg_pack): Likewise.
2499         (gimple_call_va_arg_pack_p): Likewise.
2500         (gimple_call_set_nothrow): Likewise.
2501         (gimple_call_set_alloca_for_var): Likewise.
2502         (gimple_call_alloca_for_var_p): Likewise.
2503         (gimple_call_copy_flags): Likewise.
2504         (gimple_cond_code): Likewise.
2505         (gimple_cond_set_code): Likewise.
2506         (gimple_cond_make_false): Likewise.
2507         (gimple_cond_make_true): Likewise.
2508         (gimple_asm_volatile_p): Likewise.
2509         (gimple_asm_set_volatile): Likewise.
2510         (gimple_asm_set_input): Likewise.
2511         (gimple_asm_input_p): Likewise.
2512         (gimple_try_kind): Likewise.
2513         (gimple_try_set_kind): Likewise.
2514         (gimple_try_catch_is_cleanup): Likewise.
2515         (gimple_try_set_catch_is_cleanup): Likewise.
2516         (gimple_wce_cleanup_eh_only): Likewise.
2517         (gimple_wce_set_cleanup_eh_only): Likewise.
2518         (gimple_debug_bind_p): Likewise.
2519         (gimple_debug_source_bind_p): Likewise.
2520         (gimple_omp_for_set_kind): Likewise.
2521         (gimple_omp_for_set_combined_p): Likewise.
2522         (gimple_omp_for_set_combined_into_p): Likewise.
2523         (gimple_omp_target_set_kind): Likewise.
2524         (gimple_transaction_subcode): Likewise.
2525         (gimple_transaction_set_subcode): Likewise.
2526         (gimple_predict_predictor): Likewise.
2527         (gimple_predict_set_predictor): Likewise.
2528         (gimple_predict_outcome): Likewise.
2529         (gimple_predict_set_outcome): Likewise.
2530         (gimple_transaction_set_label): Likewise.
2531         (gimple_transaction_set_body): Likewise.
2532         (gimple_transaction_label_ptr): Likewise.
2533         (gimple_transaction_label): Likewise.
2534         (gimple_transaction_body_ptr): Likewise.
2535         (gimple_omp_continue_set_control_use): Likewise.
2536         (gimple_omp_continue_control_use_ptr): Likewise.
2537         (gimple_omp_continue_control_use): Likewise.
2538         (gimple_omp_continue_set_control_def): Likewise.
2539         (gimple_omp_continue_control_def_ptr): Likewise.
2540         (gimple_omp_continue_control_def): Likewise.
2541         (gimple_omp_atomic_load_rhs_ptr): Likewise.
2542         (gimple_omp_atomic_load_rhs): Likewise.
2543         (gimple_omp_atomic_load_set_rhs): Likewise.
2544         (gimple_omp_atomic_load_lhs_ptr): Likewise.
2545         (gimple_omp_atomic_load_lhs): Likewise.
2546         (gimple_omp_atomic_load_set_lhs): Likewise.
2547         (gimple_omp_atomic_store_val_ptr): Likewise.
2548         (gimple_omp_atomic_store_val): Likewise.
2549         (gimple_omp_atomic_store_set_val): Likewise.
2550         (gimple_omp_for_cond): Likewise.
2551         (gimple_omp_for_set_cond): Likewise.
2552         (gimple_omp_sections_set_control): Likewise.
2553         (gimple_omp_sections_control_ptr): Likewise.
2554         (gimple_omp_sections_control): Likewise.
2555         (gimple_omp_sections_set_clauses): Likewise.
2556         (gimple_omp_sections_clauses_ptr): Likewise.
2557         (gimple_omp_sections_clauses): Likewise.
2558         (gimple_omp_teams_set_clauses): Likewise.
2559         (gimple_omp_teams_clauses_ptr): Likewise.
2560         (gimple_omp_teams_clauses): Likewise.
2561         (gimple_omp_target_set_data_arg): Likewise.
2562         (gimple_omp_target_data_arg_ptr): Likewise.
2563         (gimple_omp_target_data_arg): Likewise.
2564         (gimple_omp_target_set_child_fn): Likewise.
2565         (gimple_omp_target_child_fn_ptr): Likewise.
2566         (gimple_omp_target_child_fn): Likewise.
2567         (gimple_omp_target_set_clauses): Likewise.
2568         (gimple_omp_target_clauses_ptr): Likewise.
2569         (gimple_omp_target_clauses): Likewise.
2570         (gimple_omp_single_set_clauses): Likewise.
2571         (gimple_omp_single_clauses_ptr): Likewise.
2572         (gimple_omp_single_clauses): Likewise.
2573         (gimple_omp_task_set_arg_align): Likewise.
2574         (gimple_omp_task_arg_align_ptr): Likewise.
2575         (gimple_omp_task_arg_align): Likewise.
2576         (gimple_omp_task_set_arg_size): Likewise.
2577         (gimple_omp_task_arg_size_ptr): Likewise.
2578         (gimple_omp_task_arg_size): Likewise.
2579         (gimple_omp_task_set_copy_fn): Likewise.
2580         (gimple_omp_task_copy_fn_ptr): Likewise.
2581         (gimple_omp_task_copy_fn): Likewise.
2582         (gimple_omp_task_set_data_arg): Likewise.
2583         (gimple_omp_task_data_arg_ptr): Likewise.
2584         (gimple_omp_task_data_arg): Likewise.
2585         (gimple_omp_task_set_child_fn): Likewise.
2586         (gimple_omp_task_child_fn_ptr): Likewise.
2587         (gimple_omp_task_child_fn): Likewise.
2588         (gimple_omp_task_set_clauses): Likewise.
2589         (gimple_omp_task_clauses_ptr): Likewise.
2590         (gimple_omp_task_clauses): Likewise.
2591         (gimple_omp_parallel_set_data_arg): Likewise.
2592         (gimple_omp_parallel_data_arg_ptr): Likewise.
2593         (gimple_omp_parallel_data_arg): Likewise.
2594         (gimple_omp_parallel_set_child_fn): Likewise.
2595         (gimple_omp_parallel_child_fn_ptr): Likewise.
2596         (gimple_omp_parallel_child_fn): Likewise.
2597         (gimple_omp_parallel_set_clauses): Likewise.
2598         (gimple_omp_parallel_clauses_ptr): Likewise.
2599         (gimple_omp_parallel_clauses): Likewise.
2600         (gimple_omp_for_set_pre_body): Likewise.
2601         (gimple_omp_for_pre_body_ptr): Likewise.
2602         (gimple_omp_for_set_incr): Likewise.
2603         (gimple_omp_for_incr_ptr): Likewise.
2604         (gimple_omp_for_incr): Likewise.
2605         (gimple_omp_for_set_final): Likewise.
2606         (gimple_omp_for_final_ptr): Likewise.
2607         (gimple_omp_for_final): Likewise.
2608         (gimple_omp_for_set_initial): Likewise.
2609         (gimple_omp_for_initial_ptr): Likewise.
2610         (gimple_omp_for_initial): Likewise.
2611         (gimple_omp_for_set_index): Likewise.
2612         (gimple_omp_for_index_ptr): Likewise.
2613         (gimple_omp_for_index): Likewise.
2614         (gimple_omp_for_collapse): Likewise.
2615         (gimple_omp_for_set_clauses): Likewise.
2616         (gimple_omp_for_clauses_ptr): Likewise.
2617         (gimple_omp_for_clauses): Likewise.
2618         (gimple_omp_critical_set_name): Likewise.
2619         (gimple_omp_critical_name_ptr): Likewise.
2620         (gimple_omp_critical_name): Likewise.
2621         (gimple_eh_dispatch_set_region): Likewise.
2622         (gimple_eh_dispatch_region): Likewise.
2623         (gimple_resx_set_region): Likewise.
2624         (gimple_resx_region): Likewise.
2625         (gimple_phi_set_arg): Likewise.
2626         (gimple_phi_arg): Likewise.
2627         (gimple_phi_set_result): Likewise.
2628         (gimple_phi_result_ptr): Likewise.
2629         (gimple_phi_result): Likewise.
2630         (gimple_phi_num_args): Likewise.
2631         (gimple_phi_capacity): Likewise.
2632         (gimple_wce_set_cleanup): Likewise.
2633         (gimple_wce_cleanup_ptr): Likewise.
2634         (gimple_try_set_cleanup): Likewise.
2635         (gimple_try_set_eval): Likewise.
2636         (gimple_try_cleanup_ptr): Likewise.
2637         (gimple_try_eval_ptr): Likewise.
2638         (gimple_eh_else_set_e_body): Likewise.
2639         (gimple_eh_else_set_n_body): Likewise.
2640         (gimple_eh_else_e_body_ptr): Likewise.
2641         (gimple_eh_else_n_body_ptr): Likewise.
2642         (gimple_eh_must_not_throw_set_fndecl): Likewise.
2643         (gimple_eh_must_not_throw_fndecl): Likewise.
2644         (gimple_eh_filter_set_failure): Likewise.
2645         (gimple_eh_filter_set_types): Likewise.
2646         (gimple_eh_filter_failure_ptr): Likewise.
2647         (gimple_eh_filter_types_ptr): Likewise.
2648         (gimple_eh_filter_types): Likewise.
2649         (gimple_catch_set_handler): Likewise.
2650         (gimple_catch_set_types): Likewise.
2651         (gimple_catch_handler_ptr): Likewise.
2652         (gimple_catch_types_ptr): Likewise.
2653         (gimple_catch_types): Likewise.
2654         (gimple_asm_string): Likewise.
2655         (gimple_asm_set_label_op): Likewise.
2656         (gimple_asm_label_op): Likewise.
2657         (gimple_asm_set_clobber_op): Likewise.
2658         (gimple_asm_clobber_op): Likewise.
2659         (gimple_asm_set_output_op): Likewise.
2660         (gimple_asm_output_op_ptr): Likewise.
2661         (gimple_asm_output_op): Likewise.
2662         (gimple_asm_set_input_op): Likewise.
2663         (gimple_asm_input_op_ptr): Likewise.
2664         (gimple_asm_input_op): Likewise.
2665         (gimple_asm_nlabels): Likewise.
2666         (gimple_asm_nclobbers): Likewise.
2667         (gimple_asm_noutputs): Likewise.
2668         (gimple_asm_ninputs): Likewise.
2669         (gimple_bind_set_block): Likewise.
2670         (gimple_bind_block): Likewise.
2671         (gimple_bind_add_seq): Likewise.
2672         (gimple_bind_add_stmt): Likewise.
2673         (gimple_bind_set_body): Likewise.
2674         (gimple_bind_body_ptr): Likewise.
2675         (gimple_bind_append_vars): Likewise.
2676         (gimple_bind_set_vars): Likewise.
2677         (gimple_bind_vars): Likewise.
2678         (gimple_call_clobber_set): Likewise.
2679         (gimple_call_use_set): Likewise.
2680         (gimple_call_set_internal_fn): Likewise.
2681         (gimple_call_set_fntype): Likewise.
2682         (gimple_call_fntype): Likewise.
2683         (gimple_omp_return_lhs_ptr): Likewise.
2684         (gimple_omp_return_lhs): Likewise.
2685         (gimple_omp_return_set_lhs): Likewise.
2686         (gimple_omp_taskreg_set_data_arg): Likewise.
2687         (gimple_omp_taskreg_data_arg_ptr): Likewise.
2688         (gimple_omp_taskreg_data_arg): Likewise.
2689         (gimple_omp_taskreg_set_child_fn): Likewise.
2690         (gimple_omp_taskreg_child_fn_ptr): Likewise.
2691         (gimple_omp_taskreg_child_fn): Likewise.
2692         (gimple_omp_taskreg_set_clauses): Likewise.
2693         (gimple_omp_taskreg_clauses_ptr): Likewise.
2694         (gimple_omp_taskreg_clauses): Likewise.
2695         (gimple_vuse): Likewise.
2696         (gimple_vdef): Likewise.
2697         (gimple_vuse_ptr): Likewise.
2698         (gimple_vdef_ptr): Likewise.
2699         * tree-inline.c (copy_debug_stmt): Likewise.
2700         * tree-phinodes.c (make_phi_node): Likewise.
2702         * gimple.h (is_a_helper <const gimple_statement_with_ops>::test): New.
2703         (is_a_helper <gimple_statement_with_ops>::test): New.
2704         (is_a_helper <const gimple_statement_with_memory_ops>::test): New.
2705         (is_a_helper <gimple_statement_with_memory_ops>::test): New.
2707         * gimple-streamer-in.c (input_gimple_stmt): Port from union
2708         access to use of as_a.
2709         * gimple.c (gimple_build_asm_1): Likewise.
2710         (gimple_build_try): Likewise.  Also, return a specific subclass
2711         rather than just gimple.
2712         (gimple_build_resx): Port from union access to use of as_a.
2713         (gimple_build_eh_dispatch): Likewise.
2714         (gimple_build_omp_for): Likewise.  Also, convert allocation of iter
2715         now that gengtype no longer provides a typed allocator function.
2716         (gimple_copy): Likewise.
2717         * gimple.h (gimple_build_try): Return a specific subclass rather
2718         than just gimple.
2719         * gimplify.c (gimplify_cleanup_point_expr): Replace union access
2720         with subclass access by making use of new return type of
2721         gimple_build_try.
2722         * tree-phinodes.c: (allocate_phi_node): Return a
2723         "gimple_statement_phi *" rather than just a gimple.
2724         (resize_phi_node): Likewise.
2725         (make_phi_node): Replace union access with subclass access by
2726         making use of new return type of allocate_phi_node.
2727         (reserve_phi_args_for_new_edge): Replace union access with as_a.
2728         (remove_phi_arg_num): Accept a "gimple_statement_phi *" rather
2729         than just a gimple.
2730         (remove_phi_args): Update for change to remove_phi_arg_num.
2732         * gdbhooks.py (GimplePrinter.to_string): Update lookup of
2733         code field to reflect inheritance, rather than embedding of
2734         the base gimple type.
2736 2013-11-19  Richard Biener  <rguenther@suse.de>
2738         * cfgloop.h (struct loop_iterator): C++-ify, add constructor
2739         and destructor and make fel_next a member function.
2740         (fel_next): Transform into ...
2741         (loop_iterator::next): ... this.
2742         (fel_init): Transform into ...
2743         (loop_iterator::loop_iterator): ... this.
2744         (loop_iterator::~loop_iterator): New.
2745         (FOR_EACH_LOOP): Remove loop-iterator argument.
2746         (FOR_EACH_LOOP_BREAK): Remove no longer necessary macro.
2747         * cfgloop.c, cfgloopmanip.c, config/mn10300/mn10300.c,
2748         graphite-clast-to-gimple.c, graphite-scop-detection.c,
2749         graphite-sese-to-poly.c, ipa-inline-analysis.c, ipa-pure-const.c,
2750         loop-init.c, loop-invariant.c, loop-unroll.c, loop-unswitch.c,
2751         modulo-sched.c, predict.c, sel-sched-ir.c, tree-cfg.c, tree-data-ref.c,
2752         tree-if-conv.c, tree-loop-distribution.c, tree-parloops.c,
2753         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-dce.c,
2754         tree-ssa-loop-ch.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
2755         tree-ssa-loop-ivopts.c, tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
2756         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
2757         tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vrp.c: Adjust
2758         uses of FOR_EACH_LOOP and remove loop_iterator variables.  Replace
2759         FOR_EACH_LOOP_BREAK with break.
2761 2013-11-19  Richard Biener  <rguenther@suse.de>
2763         PR tree-optimization/59164
2764         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
2765         Uncomment assert.
2766         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust check
2767         whether we can create an epilogue loop to reflect thecases where
2768         we create one.
2770 2013-11-19  Andrew MacLeod  <amacleod@redhat.com>
2772         * graphite-sese-to-poly.c: Include expr.h.
2774 2013-11-19  Richard Biener  <rguenther@suse.de>
2776         PR middle-end/58956
2777         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid forwarding
2778         loads into stmts that may clobber it.
2780 2013-11-19  Bernd Schmidt  <bernds@codesourcery.com>
2782         * cgraphunit.c (symtab_terminator): New variable.
2783         (queued_nodes): Renamed from first.  Use symtab_terminator as
2784         initializer.
2785         (analyze_functions): Adjust accordingly.
2786         (cgraph_process_new_functions): Return void.
2787         * cgraph.h (cgraph_process_new_functions): Adjust declaration.
2789 2013-11-19  Marek Polacek  <polacek@redhat.com>
2791         * opts.c (common_handle_option): Add -fsanitize=null option.
2792         Turn off -fdelete-null-pointer-checks option when doing the
2793         NULL pointer checking.
2794         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH): Add.
2795         * tree-pass.h (make_pass_ubsan): Declare.
2796         (make_pass_sanopt): Declare.
2797         * timevar.def (TV_TREE_UBSAN): New timevar.
2798         * passes.def: Add pass_sanopt and pass_ubsan.
2799         * ubsan.h (ubsan_null_ckind): New enum.
2800         (ubsan_mismatch_data): New struct.
2801         (ubsan_expand_null_ifn): Declare.
2802         (ubsan_create_data): Adjust declaration.
2803         (ubsan_type_descriptor): Likewise.
2804         * asan.c: Include "ubsan.h".
2805         (pass_data_sanopt): New pass.
2806         (execute_sanopt): New function.
2807         (gate_sanopt): Likewise.
2808         (make_pass_sanopt): Likewise.
2809         (class pass_sanopt): New class.
2810         * ubsan.c: Include tree-pass.h, gimple-ssa.h, gimple-walk.h,
2811         gimple-iterator.h and cfgloop.h.
2812         (PROB_VERY_UNLIKELY): Define.
2813         (tree_type_map_hash): New function.
2814         (ubsan_type_descriptor): Add new parameter.
2815         Improve type name generation.
2816         (ubsan_create_data): Add new parameter.  Add pointer data into
2817         ubsan structure.
2818         (ubsan_expand_null_ifn): New function.
2819         (instrument_member_call): Likewise.
2820         (instrument_mem_ref): Likewise.
2821         (instrument_null): Likewise.
2822         (ubsan_pass): Likewise.
2823         (gate_ubsan): Likewise.
2824         (make_pass_ubsan): Likewise.
2825         (ubsan_instrument_unreachable): Adjust ubsan_create_data call.
2826         (class pass_ubsan): New class.
2827         (pass_data_ubsan): New pass.
2828         * flag-types.h (enum sanitize_code): Add SANITIZE_NULL.
2829         * internal-fn.c (expand_UBSAN_NULL): New function.
2830         * cgraphunit.c (varpool_finalize_decl): Call varpool_assemble_decl
2831         even when !flag_toplevel_reorder.
2832         * internal-fn.def (UBSAN_NULL): New.
2834 2013-11-19  Jan Hubicka  <jh@suse.cz>
2836         * cgraph.c (cgraph_create_indirect_edge): Use
2837         get_polymorphic_call_info.
2838         * cgraph.h (cgraph_indirect_call_info): Add outer_type,
2839         maybe_in_construction and maybe_derived_type.
2840         * ipa-utils.h (ipa_polymorphic_call_context): New structure.
2841         (ipa_dummy_polymorphic_call_context): New global var.
2842         (possible_polymorphic_call_targets): Add context paramter.
2843         (dump_possible_polymorphic_call_targets): Likewise; update wrappers.
2844         (possible_polymorphic_call_target_p): Likewise.
2845         (get_polymorphic_call_info): New function.
2846         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): New function.
2847         (add_type_duplicate): Remove forgotten debug output.
2848         (method_class_type): Add sanity check.
2849         (maybe_record_node): Add FINALP parameter.
2850         (record_binfo): Add OUTER_TYPE and OFFSET; walk the inner
2851         by info by get_binfo_at_offset.
2852         (possible_polymorphic_call_targets_1): Add OUTER_TYPE/OFFSET
2853         parameters; pass them to record-binfo.
2854         (polymorphic_call_target_d): Add context and FINAL.
2855         (polymorphic_call_target_hasher::hash): Hash context.
2856         (polymorphic_call_target_hasher::equal): Compare context.
2857         (free_polymorphic_call_targets_hash):
2858         (get_class_context): New function.
2859         (contains_type_p): New function.
2860         (get_polymorphic_call_info): New function.
2861         (walk_bases): New function.
2862         (possible_polymorphic_call_targets): Add context parameter; honnor it.
2863         (dump_possible_polymorphic_call_targets): Dump context.
2864         (possible_polymorphic_call_target_p): Add context.
2865         (update_type_inheritance_graph): Update comment.s
2866         (ipa_set_jf_known_type): Assert that compoentn type is known.
2867         (ipa_note_param_call): Do not tamper with offsets.
2868         (ipa_analyze_indirect_call_uses): When offset is being changed; clear
2869         outer type.
2870         (update_indirect_edges_after_inlining): Likewise.
2871         (ipa_write_indirect_edge_info): Stream new fields.
2872         (ipa_read_indirect_edge_info): Stream in new fields.
2874 2013-11-19  Jan Hubicka  <jh@suse.cz>
2876         * tree-pretty-print.c (dump_generic_node): Print class type of
2877         OBJ_TYPE_REF.
2879 2013-11-19  Joey Ye  <joey.ye@arm.com>
2881         * config/arm/arm.opt (-marm-pic-data-is-text-relative): New option.
2882         * doc/invoke.texi (-marm-pic-data-is-text-relative): Documentation
2883         for new option.
2884         * config/arm/arm.c (arm_option_override): By default disable
2885         -marm-pic-data-is-text-relative.
2886         (legitimize_pic_address): Use arm_pic_data_is_text_relative.
2887         (arm_assemble_integer): Likewise.
2888         * config/arm/arm.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
2889         New macro to initialize -marm-pic-data-is-text-relative.
2891 2013-11-19  Bin Cheng  <bin.cheng@arm.com>
2893         * tree-ssa-loop-ivopts.c (enum ainc_type): New.
2894         (address_cost_data): New field.
2895         (get_address_cost): Compute auto-increment rtx cost in ainc_costs.
2896         Use ainc_costs for auto-increment rtx patterns.  Cleanup TWS.
2898 2013-11-19  James Greenhalgh  <james.greenhalgh@arm.com>
2900         * config/aarch64/aarch64.md: Remove v8type from all insns.
2902 2013-11-19  Richard Biener  <rguenther@suse.de>
2904         PR tree-optimization/57517
2905         * tree-predcom.c (combinable_refs_p): Verify the combination
2906         is always executed when the refs are.
2908 2013-11-19  Jeff Law  <law@redhat.com>
2910         * tree-ssa-threadupdate.c: Include ssa-iterators.h
2911         (copy_phi_arg_into_existing_phi): New function.
2912         (any_remaining_duplicated_blocks): Likewise.
2913         (ssa_fix_duplicate_block_edges): Handle multiple duplicated
2914         blocks on a jump threading path.
2916         * tree-ssa-threadupdate.c (thread_through_loop_header):  Do not
2917         thread through a joiner which has the latch edge.
2919 2013-11-19  Jan Hubicka  <jh@suse.cz>
2921         * md.texi (setmem): Document new parameter.
2922         * optabs.c (maybe_gen_insn): Support 9 operands.
2923         * builtins.c (determine_block_size): Add probable_max_size;
2924         support anti-ranges.
2925         (expand_builtin_memcpy. expand_builtin_memset_args): Pass around
2926         probable_max_size.
2927         * expr.c (emit_block_move_via_movmem, emit_block_move_hints,
2928         emit_block_move, clear_storage_hints, set_storage_via_setmem):
2929         Likewise.
2930         * expr.h (emit_block_move_hints, clear_storage_hints,
2931         set_storage_via_setmem): Update prototype.
2932         * i386.md (setmem, movmem patterns): Add 9th operand.
2933         * i386-protos.h (ix86_expand_set_or_movmem): Update prototype.
2934         * i386.c (ix86_expand_set_or_movmem): Take probable_max_size_exp
2935         argument; pass it to decide_alg.
2937 2013-11-19  David Malcolm  <dmalcolm@redhat.com>
2939         * basic-block.h (n_basic_blocks_for_function): Rename macro to...
2940         (n_basic_blocks_for_fn): ...this.
2942         (n_basic_blocks): Eliminate macro as work towards making uses of
2943         cfun be explicit.
2945         * cfgloop.c (init_loops_structure): Update for renaming of
2946         "n_basic_blocks_for_function" to "n_basic_blocks_for_fn".
2947         * graph.c (draw_cfg_nodes_no_loops): Likewise.
2948         * ipa-utils.c (ipa_merge_profiles): Likewise.
2949         * lto-streamer-in.c (make_new_block): Likewise.
2950         * tree-cfg.c (init_empty_tree_cfg_for_function): Likewise.
2951         (dump_function_to_file): Likewise.
2953         * alias.c (init_alias_analysis): Replace usage of "n_basic_blocks"
2954         macro with "n_basic_blocks_for_fn (cfun)".
2955         * bb-reorder.c (partition_hot_cold_basic_blocks): Likewise.
2956         (duplicate_computed_gotos): Likewise.
2957         (reorder_basic_blocks): Likewise.
2958         * bt-load.c (augment_live_range): Likewise.
2959         * cfg.c (expunge_block): Likewise.
2960         (compact_blocks): Likewise.
2961         * cfganal.c (single_pred_before_succ_order): Likewise.
2962         (compute_idf): Likewise.
2963         (flow_dfs_compute_reverse_init): Likewise.
2964         (pre_and_rev_post_order_compute): Likewise.
2965         (pre_and_rev_post_order_compute_fn): Likewise.
2966         (inverted_post_order_compute): Likewise.
2967         (post_order_compute): Likewise.
2968         (print_edge_list): Likewise.
2969         (find_unreachable_blocks): Likewise.
2970         (mark_dfs_back_edges): Likewise.
2971         * cfgcleanup.c (try_optimize_cfg): Likewise.
2972         (try_forward_edges): Likewise.
2973         * cfghooks.c (dump_flow_info): Likewise.
2974         * cfgloop.c (verify_loop_structure): Likewise.
2975         (get_loop_body): Likewise.
2976         (flow_loops_find): Likewise.
2977         * cfgloopmanip.c (add_loop): Likewise.
2978         (remove_path): Likewise.
2979         (find_path): Likewise.
2980         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
2981         (rtl_verify_bb_layout): Likewise.
2982         (entry_of_function): Likewise.
2983         (rtl_create_basic_block): Likewise.
2984         * coverage.c (coverage_compute_cfg_checksum): Likewise.
2985         * cprop.c (one_cprop_pass): Likewise.
2986         (is_too_expensive): Likewise.
2987         * df-core.c (df_compute_cfg_image): Likewise.
2988         (df_compact_blocks): Likewise.
2989         (df_worklist_dataflow_doublequeue): Likewise.
2990         * dominance.c (calculate_dominance_info): Likewise.
2991         (calc_dfs_tree): Likewise.
2992         (calc_dfs_tree_nonrec): Likewise.
2993         (init_dom_info): Likewise.
2994         * domwalk.c (cmp_bb_postorder): Likewise.
2995         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2996         (generate_setjmp_warnings): Likewise.
2997         * fwprop.c (build_single_def_use_links): Likewise.
2998         * gcse.c (is_too_expensive): Likewise.
2999         (one_code_hoisting_pass): Likewise.
3000         (one_pre_gcse_pass): Likewise.
3001         * graphite.c (graphite_initialize): Likewise.
3002         * haifa-sched.c (haifa_sched_init): Likewise.
3003         * ipa-inline-analysis.c (estimate_function_body_sizes): Likewise.
3004         * ira.c (split_live_ranges_for_shrink_wrap): Likewise.
3005         * ira-build.c (ira_build): Likewise.
3006         * lcm.c (compute_nearerout): Likewise.
3007         (compute_available): Likewise.
3008         (compute_laterin): Likewise.
3009         (compute_antinout_edge): Likewise.
3010         * lra-lives.c (lra_create_live_ranges): Likewise.
3011         * lra.c (has_nonexceptional_receiver): Likewise.
3012         * mcf.c (create_fixup_graph): Likewise.
3013         * profile.c (branch_prob): Likewise.
3014         * reg-stack.c (convert_regs_2): Likewise.
3015         * regrename.c (regrename_analyze): Likewise.
3016         * reload1.c (has_nonexceptional_receiver): Likewise.
3017         * reorg.c (dbr_schedule): Likewise.
3018         * sched-deps.c (sched_deps_init): Likewise.
3019         * sched-ebb.c (schedule_ebbs): Likewise.
3020         * sched-rgn.c (extend_regions): Likewise.
3021         (schedule_insns): Likewise.
3022         (sched_rgn_init): Likewise.
3023         (extend_rgns): Likewise.
3024         (haifa_find_rgns): Likewise.
3025         * sel-sched-ir.c (recompute_rev_top_order): Likewise.
3026         (sel_recompute_toporder): Likewise.
3027         * sel-sched.c (run_selective_scheduling): Likewise.
3028         * store-motion.c (one_store_motion_pass): Likewise.
3029         (remove_reachable_equiv_notes): Likewise.
3030         * tracer.c (tracer): Likewise.
3031         (tail_duplicate): Likewise.
3032         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
3033         (dump_cfg_stats): Likewise.
3034         (gimple_dump_cfg): Likewise.
3035         (create_bb): Likewise.
3036         (build_gimple_cfg): Likewise.
3037         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
3038         * tree-inline.c (optimize_inline_calls): Likewise.
3039         (fold_marked_statements): Likewise.
3040         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Likewise.
3041         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3042         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3043         * tree-ssa-loop-manip.c (compute_live_loop_exits): Likewise.
3044         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
3045         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
3046         * tree-ssa-pre.c (do_pre): Likewise.
3047         (init_pre): Likewise.
3048         (compute_avail): Likewise.
3049         * tree-ssa-reassoc.c (init_reassoc): Likewise.
3050         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3051         * tree-ssa-tail-merge.c (alloc_cluster_vectors): Likewise.
3052         (init_worklist): Likewise.
3053         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3054         * var-tracking.c (variable_tracking_main_1): Likewise.
3055         (vt_find_locations): Likewise.
3056         (vt_stack_adjustments): Likewise.
3057         * config/s390/s390.c (s390_optimize_nonescaping_tx): Likewise.
3058         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise.
3060 2013-11-18  Jan Hubicka  <jh@suse.cz>
3062         * profile.c (compute_branch_probabilities): Do not sanity check
3063         run_max.
3065 2013-11-18 Kenneth Zadeck <zadeck@naturalbridge.com>
3067         * tree.c (int_fits_type_p): Change GET_MODE_BITSIZE to
3068         GET_MODE_PRECISION.
3069         * fold-const.c (fold_single_bit_test_into_sign_test)
3070         (fold_binary_loc): Change GET_MODE_BITSIZE to GET_MODE_PRECISION.
3072 2013-11-18  Teresa Johnson  <tejohnson@google.com>
3074         * cfgrtl.c (cfg_layout_initialize): Assert if we try to go into
3075         cfglayout after bb reordering.
3076         * passes.def: Move compgotos before bb reordering since it goes into
3077         cfglayout.
3079 2013-11-18  Bernd Schmidt  <bernds@codesourcery.com>
3081         * cgraphunit.c (ipa_passes): Don't execute all_lto_gen_passes.
3082         * lto-streamer-out.c (lto_output, produce_asm_for_decls): No longer
3083         static.
3084         (pass_data_ipa_lto_gimple_out, pass_ipa_lto_gimple_out,
3085         make_pass_ipa_lto_gimple_out, pass_data_ipa_lto_finish_out,
3086         pass_ipa_lto_finish_out, make_pass_ipa_lto_finish_out): Remove.
3087         * lto-streamer.h (lto_output, produce_asm_for_decls): Declare.
3088         * pass-manager.h (GCC_PASS_LISTS, class pass_manager):
3089         Remove all_lto_gen_passes.
3090         * passes.c (pass_manager::dump_passes): Remove its use.
3091         (pass_manager::register_pass): Likewise.
3092         (ipa_read_summaries, ipa_read_optimization_summaries): Likewise.
3093         (pass_manager::pass_manager): Don't initialize or use it.
3094         (write_lto): New static function.
3095         (ipa_write_summaries_1, ipa_write_optimization_summaries): Use it
3096         instead of using all_lto_gen_passes.
3097         * passes.def (all_lto_gen_passes, pass_ipa_lto_gimple_out,
3098         pass_ipa_lto_finish_out): Delete.
3099         * tree-pass.h (make_pass_ipa_lto_gimple_out,
3100         make_pass_ipa_lto_finish_out): Don't declare.
3102 2013-11-18  Jeff Law  <law@redhat.com>
3104         * tree-ssa-threadupdate.c (redirection_data): Record two
3105         duplicated blocks instead of just one.
3106         (local_info): Explain why we don't create a template for the
3107         second duplicated block in a thread path.
3108         (create_block_for_threading): Accept argument indicating array
3109         index into redirection_data to store its result.
3110         (lookup_redirection_data): Initialize both duplicate blocks.
3111         (ssa_create_duplicates): If a jump threading path needs multiple
3112         blocks duplicated, then duplicate them.
3113         (ssa_fix_duplicate_block_edges): Corresponding changes.
3114         (ssa_fixup_template_block, thread_single_edge):  Likewise.
3116 2013-11-18  Marek Polacek  <polacek@redhat.com>
3118         * doc/invoke.texi: Extend -fsanitize=undefined documentation.
3120 2013-11-18  Andrew Pinski <apinski@cavium.com>
3121             Steve Ellcey  <sellcey@mips.com>
3123         PR target/56552
3124         * config/mips/mips.md (*mov<GPR:mode>_on_<MOVECC:mode>): Remove
3125         type restriction from equality_operator on conditonal move.
3126         (*mov<SCALARF:mode>_on_<MOVECC:mode>): Ditto.
3127         (*mov<GPR:mode>_on_<GPR2:mode>_ne): New.
3129 2013-11-18  Jeff Law  <law@redhat.com>
3131         * tree-ssa-threadupdate.c: Fix file block comment.
3132         Fix minor indention issue.
3134 2013-11-18  Uros Bizjak  <ubizjak@gmail.com>
3136         * config/i386/i386.c (ix86_decompose_address): Use REG_P instead of
3137         ix86_address_subreg_operand.  Move subreg checks to
3138         ix86_validate_address_register.  Move address override check to
3139         ix86_legitimate_address_p.
3140         (ix86_validate_address_register): New function.
3141         (ix86_legitimate_address_p): Call ix86_validate_address_register
3142         to validate base and index registers.  Add address override check
3143         from ix86_decompose_address.
3144         (ix86_decompose_address): Remove.
3146 2013-11-18  Richard Biener  <rguenther@suse.de>
3148         PR tree-optimization/59125
3149         PR tree-optimization/54570
3150         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): When inlining
3151         is not complete do not treat component-references with offset zero
3152         but different fields as equal.
3153         * tree-object-size.c: Include tree-phinodes.h and ssa-iterators.h.
3154         (compute_object_sizes): Apply TLC.  Propagate the constant
3155         results into all uses and fold their stmts.
3156         * passes.def (pass_all_optimizations): Move pass_object_sizes
3157         after the first pass_forwprop and before pass_fre.
3159 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3161         * tree.h (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3162         * tree.c (tree_to_uhwi): Return an unsigned HOST_WIDE_INT.
3163         (tree_ctz): Remove cast to unsigned type.
3164         * builtins.c (fold_builtin_memory_op): Likewise.
3165         * dwarf2out.c (descr_info_loc): Likewise.
3166         * godump.c (go_output_typedef): Likewise.
3167         * omp-low.c (expand_omp_simd): Likewise.
3168         * stor-layout.c (excess_unit_span): Likewise.
3169         * tree-object-size.c (addr_object_size): Likewise.
3170         * tree-sra.c (analyze_all_variable_accesses): Likewise.
3171         * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
3172         (simplify_rotate): Likewise.
3173         * tree-ssa-strlen.c (adjust_last_stmt, handle_builtin_memcpy)
3174         (handle_pointer_plus): Likewise.
3175         * tree-switch-conversion.c (check_range): Likewise.
3176         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
3177         * tsan.c (instrument_builtin_call): Likewise.
3178         * cfgexpand.c (defer_stack_allocation): Add cast to HOST_WIDE_INT.
3179         * trans-mem.c (tm_log_add): Likewise.
3180         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
3181         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
3182         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
3183         * config/mips/mips.c (r10k_safe_mem_expr_p): Make offset unsigned.
3185 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3187         * tree.h (host_integerp, tree_low_cst): Delete.
3188         * tree.c (host_integerp, tree_low_cst): Delete.
3190 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3192         * expr.h: Update comments to refer to tree_to_[su]hwi rather
3193         than tree_low_cst.
3194         * fold-const.c (fold_binary_loc): Likewise.
3195         * expr.c (store_constructor): Use tree_to_uhwi rather than
3196         tree_low_cst.
3197         * ipa-utils.h (possible_polymorphic_call_target_p): Likewise.
3198         * stmt.c (emit_case_dispatch_table): Likewise.
3199         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
3201 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3203         * alias.c, asan.c, builtins.c, cfgexpand.c, cgraph.c,
3204         config/aarch64/aarch64.c, config/alpha/predicates.md,
3205         config/arm/arm.c, config/darwin.c, config/epiphany/epiphany.c,
3206         config/i386/i386.c, config/iq2000/iq2000.c, config/m32c/m32c-pragma.c,
3207         config/mep/mep-pragma.c, config/mips/mips.c,
3208         config/picochip/picochip.c, config/rs6000/rs6000.c, cppbuiltin.c,
3209         dbxout.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, fold-const.c,
3210         function.c, gimple-fold.c, godump.c, ipa-cp.c, ipa-prop.c, omp-low.c,
3211         predict.c, sdbout.c, stor-layout.c, trans-mem.c, tree-object-size.c,
3212         tree-sra.c, tree-ssa-ccp.c, tree-ssa-forwprop.c,
3213         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-niter.c,
3214         tree-ssa-loop-prefetch.c, tree-ssa-strlen.c, tree-stdarg.c,
3215         tree-switch-conversion.c, tree-vect-generic.c, tree-vect-loop.c,
3216         tree-vect-patterns.c, tree-vrp.c, tree.c, tsan.c, ubsan.c, varasm.c:
3217         Replace tree_low_cst (..., 1) with tree_to_uhwi throughout.
3219 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3221         * builtins.c, cilk-common.c, config/aarch64/aarch64.c,
3222         config/alpha/alpha.c, config/arm/arm.c, config/c6x/predicates.md,
3223         config/i386/i386.c, config/ia64/predicates.md, config/s390/s390.c,
3224         coverage.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c, expr.h,
3225         fold-const.c, gimple-fold.c, godump.c, ipa-prop.c, omp-low.c,
3226         predict.c, rtlanal.c, sdbout.c, stmt.c, stor-layout.c, targhooks.c,
3227         tree-cfg.c, tree-data-ref.c, tree-inline.c, tree-ssa-forwprop.c,
3228         tree-ssa-loop-prefetch.c, tree-ssa-phiopt.c, tree-ssa-sccvn.c,
3229         tree-ssa-strlen.c, tree-stdarg.c, tree-vect-data-refs.c,
3230         tree-vect-patterns.c, tree.c, tree.h, var-tracking.c, varasm.c:
3231         Replace tree_low_cst (..., 0) with tree_to_shwi throughout.
3233 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3235         * tree.h (tree_to_shwi, tree_to_uhwi): Declare, with inline expansions.
3236         * tree.c (tree_to_shwi, tree_to_uhwi): New functions.
3238 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3240         * expr.h: Update comments to refer to tree_fits_[su]hwi_p rather
3241         than host_integerp.
3243 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3245         * builtins.c, config/alpha/alpha.c, config/iq2000/iq2000.c,
3246         config/mips/mips.c, dbxout.c, dwarf2out.c, expr.c, fold-const.c,
3247         gimple-fold.c, godump.c, omp-low.c, predict.c, sdbout.c, stor-layout.c,
3248         tree-dfa.c, tree-sra.c, tree-ssa-forwprop.c, tree-ssa-loop-prefetch.c,
3249         tree-ssa-phiopt.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
3250         tree-ssa-structalias.c, tree-vect-data-refs.c, tree-vect-patterns.c,
3251         tree.c, varasm.c, alias.c, cfgexpand.c, config/aarch64/aarch64.c,
3252         config/arm/arm.c, config/epiphany/epiphany.c, config/i386/i386.c,
3253         config/m32c/m32c-pragma.c, config/mep/mep-pragma.c,
3254         config/rs6000/rs6000.c, config/sparc/sparc.c, emit-rtl.c, function.c,
3255         gimplify.c, ipa-prop.c, stmt.c, trans-mem.c, tree-cfg.c,
3256         tree-object-size.c, tree-ssa-ccp.c, tree-ssa-loop-ivcanon.c,
3257         tree-stdarg.c, tree-switch-conversion.c, tree-vect-generic.c,
3258         tree-vrp.c, tsan.c, ubsan.c: Replace host_integerp (..., 1) with
3259         tree_fits_uhwi_p throughout.
3261 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3263         * builtins.c, config/alpha/alpha.c, config/c6x/predicates.md,
3264         config/ia64/predicates.md, config/iq2000/iq2000.c, config/mips/mips.c,
3265         config/s390/s390.c, dbxout.c, dwarf2out.c, except.c, explow.c, expr.c,
3266         expr.h, fold-const.c, gimple-fold.c, gimple-ssa-strength-reduction.c,
3267         gimple.c, godump.c, graphite-scop-detection.c, graphite-sese-to-poly.c,
3268         omp-low.c, predict.c, rtlanal.c, sdbout.c, simplify-rtx.c,
3269         stor-layout.c, tree-data-ref.c, tree-dfa.c, tree-pretty-print.c,
3270         tree-sra.c, tree-ssa-alias.c, tree-ssa-forwprop.c,
3271         tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c, tree-ssa-math-opts.c,
3272         tree-ssa-phiopt.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
3273         tree-ssa-strlen.c, tree-ssa-structalias.c, tree-vect-data-refs.c,
3274         tree-vect-patterns.c, tree-vectorizer.h, tree.c, var-tracking.c,
3275         varasm.c: Replace host_integerp (..., 0) with tree_fits_shwi_p
3276         throughout.
3278 2013-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
3280         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Declare.
3281         * tree.c (tree_fits_shwi_p, tree_fits_uhwi_p): Define.
3283 2013-11-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3285         * config/ia64/ia64.c (ia64_split_tmode_move): Mark load with `dead'
3286         flag if it kills its address, not its post-increment.
3288 2013-11-18  Ilya Enkovich  <ilya.enkovich@intel.com>
3290         * builtin-types.def (BT_FN_PTR_CONST_PTR_VAR): New.
3291         * chkp-builtins.def (BUILT_IN_CHKP_BIND_BOUNDS): New.
3292         * cfgexpand.c (expand_call_stmt): Expand BUILT_IN_CHKP_BIND_BOUNDS.
3293         * gimple.c (gimple_call_get_nobnd_arg_index): Remove.
3294         * gimple.h (gf_mask): Add GF_CALL_WITH_BOUNDS.
3295         (gimple_call_with_bounds_p): New.
3296         (gimple_call_set_with_bounds): New.
3297         (gimple_call_num_nobnd_args): Remove.
3298         (gimple_call_nobnd_arg): Remove.
3299         * tree.h (CALL_WITH_BOUNDS_P): New.
3300         * rtl.h (CALL_EXPR_WITH_BOUNDS_P): New.
3302 2013-11-18  Trevor Saunders  <tsaunders@mozilla.com>
3304         * cgraph.h (symtab_node_asm_name): Rename to symtab_node::asm_name.
3305         (symtab_node_name): Rename to symtab_node::name.
3306         (cgraph_node_asm_name): Remove.
3307         (varpool_node_asm_name): Remove.
3308         * cgraph.c cgraphclones.c cgraphunit.c ipa-cp.c ipa-devirt.c
3309         ipa-inline-analysis.c ipa-inline-transform.c ipa-inline.c
3310         ipa-profile.c ipa-prop.c ipa-pure-const.c ipa-ref.c ipa-reference.c
3311         ipa-utils.c ipa.c symtab.c tree-inline.c tree-sra.c
3312         tree-ssa-structalias.c value-prof.c varpool.c Adjust.
3314 2013-11-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3316         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): New table.
3317         * config/arm/arm.c (arm_cortex_a53_tune): New.
3318         * config/arm/arm-cores.def (cortex-a53): Use cortex_a53 tuning struct.
3320 2013-11-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
3322         * config.gcc (i[34567]86-*-linux* | ...): Add bdver4.
3323         (case ${target}): Add bdver4.
3324         * config/i386/bdver3.md: Add bdver4.
3325         * config/i386/driver-i386.c: (host_detect_local_cpu): Let
3326         -march=native recognize bdver4 processors.
3327         * config/i386/i386-c.c (ix86_target_macros_internal): Add
3328         bdver4 def_and_undef
3329         * config/i386/i386.c (struct processor_costs bdver4_cost): New.
3330         (m_BDVER4): New definition.
3331         (m_AMD_MULTIPLE): Includes m_BDVER4.
3332         (processor_target_table): Add bdver4 entry.
3333         (static const char *const cpu_names): Add bdver4 entry.
3334         (software_prefetching_beneficial_p): Add bdver3.
3335         (ix86_option_override_internal): Add bdver4 instruction sets.
3336         (ix86_issue_rate): Add bdver4.
3337         (ix86_adjust_cost): Add bdver4.
3338         (ia32_multipass_dfa_lookahead): Add bdver4.
3339         (enum processor_model): Add M_AMDFAM15H_BDVER4.
3340         (struct _arch_names_table): Add M_AMDFAM15H_BDVER4.
3341         (has_dispatch): Add bdver4.
3342         * config/i386/i386.h (TARGET_BDVER4): New definition.
3343         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver4.
3344         (enum processor_type): Add PROCESSOR_BDVER4.
3345         * config/i386/i386.md (define_attr "cpu"): Add bdver4.
3346         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver4.
3347         * doc/extend.texi: Add details about bdver4.
3348         * doc/invoke.texi: Add details about bdver4. Add
3349         fma4 and fsgsbase for bdver3. Add fma4 for bdver2.
3351 2013-11-17  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3353         * config/rs6000/rs6000.c (rs6000_emit_move): Use low word of
3354         sdmode_stack_slot also in little-endian mode.
3356 2013-11-17  Jan Hubicka  <jh@suse.cz>
3358         * doc/md.texi (setmem, movstr): Update documentation.
3359         * builtins.c (determine_block_size): New function.
3360         (expand_builtin_memcpy): Use it and pass it to emit_block_move_hints.
3361         (expand_builtin_memset_args): Use it and pass it to
3362         set_storage_via_setmem.
3363         * expr.c (emit_block_move_via_movmem): Add min_size/max_size
3364         parameters; update call to expander.
3365         (emit_block_move_hints): Add min_size/max_size parameters.
3366         (clear_storage_hints): Likewise.
3367         (set_storage_via_setmem): Likewise.
3368         (clear_storage): Update.
3369         * expr.h (emit_block_move_hints, clear_storage_hints,
3370         set_storage_via_setmem): Update prototypes.
3371         * i386.c (ix86_expand_set_or_movmem): Add bounds; export.
3372         (ix86_expand_movmem, ix86_expand_setmem): Remove.
3373         (ix86_expand_movmem, ix86_expand_setmem): Remove.
3374         * i386.md (movmem, setmem): Pass parameters.
3376 2013-11-17  Uros Bizjak  <ubizjak@gmail.com>
3378         PR target/59153
3379         * config/i386/i386.c (ix86_address_subreg_operand): Do not
3380         reject non-integer subregs.
3381         (ix86_decompose_address): Do not reject invalid CONST_INT RTXes.
3382         Move check for invalid x32 constant addresses ...
3383         (ix86_legitimate_address_p): ... here.
3385 2011-11-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3387         * config/rs6000/rs6000.c (rs6000_frame_related): Add split_reg
3388         parameter and use it in REG_FRAME_RELATED_EXPR note.
3389         (emit_frame_save): Call rs6000_frame_related with extra NULL_RTX
3390         parameter.
3391         (rs6000_emit_prologue): Likewise, but for little endian VSX
3392         stores, pass the source register of the store instead.
3394 2013-11-17  Andrew MacLeod  <amacleod@redhat.com>
3396         * gimple.h: Reorder prototypes to match .c declaration order, and
3397         remove protyotypes for functions not in gimple.c.
3398         (LABEL): Move to tree-into-ssa.c.
3399         * gimple.c: Remove unused prototypes.
3400         (get_base_address): Move to tree.c.
3401         * tree.c (get_base_address): Relocate from gimple.c.
3402         * builtins.h (validate_gimple_arglist): Add prototype.
3403         * trans-mem.h (compute_transaction_bits, is_tm_ending): Add prototype.
3404         * cfgexpand.h: New File.
3405         (gimple_assign_rhs_to_tree, estimated_stack_frame_size): Add protoype.
3406         * tree.h (build_addr): Move to tree-nested.h.
3407         * tree-nested.h: New File.
3408         (build_addr, lower_nested_functions, insert_field_into_struct): Add
3409         prototypes.
3410         * tree-inline.h (estimated_stack_frame_size): Remove prototype.
3411         * ipa-inline-analysis.c: Include cfgexpand.h.
3412         * cgraphunit.c: Include tree-nested.h.
3413         * omp-low.c: Likewise.
3414         * tree-parloops.c: Likewise.
3415         * gimple-low.h: Likewise.
3416         * tree-profile.h: Likewise.
3417         * expr.c: Include cfgexpand.h.
3418         * tree-affine.c: Likewise.
3419         * tree-ssa.c: Likewise.
3420         * tree-ssa-loop-im.c: Include trans-mem.h.
3421         * tree-ssa-tail-merge.c: Likewise.
3422         * value-prof.c: Include builtins.h and tree-nested.h.
3423         * tree-into-ssa.c (LABEL): Define here.
3425 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
3427         * config/arc/arc.c (arc_predicate_delay_insns): New function.
3428         (pass_data_arc_predicate_delay_insns): New pass_data instance.
3429         (pass_arc_predicate_delay_insns): New subclass of rtl_opt_class.
3430         (make_pass_arc_predicate_delay_insns): New function.
3431         (arc_init): Register pass_arc_predicate_delay_insns if
3432         flag_delayed_branch is active.
3434 2013-11-16  Joern Rennecke  <joern.rennecke@embecosm.com>
3436         * config/arc/constraints.md (Rcq): Simplify register number test.
3438 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
3440         * gimple.h (enum gf_mask): Change the ordering of GF_OMP_* bits.
3442 2013-11-15  Kaz Kojima  <kkojima@gcc.gnu.org>
3444         * config/sh/sh.c (barrier_align): Return 0 when barrier_or_label
3445         is null.
3447 2013-11-15  Aldy Hernandez  <aldyh@redhat.com>
3449         * Makefile.in (C_COMMON_OBJS): Depend on c-cilkplus.o.
3450         * gimple-pretty-print.c (dump_omp_for): Add case for
3451         GF_OMP_FOR_KIND_CILKSIMD.
3452         * gimple.h (enum gf_mask): Restructure entries to add
3453         GF_OMP_FOR_KIND_CILKSIMD.
3454         * gimplify.c (is_gimple_stmt): Add case for CILK_SIMD.
3455         (gimplify_omp_for): Handle CILK_SIMD.
3456         (gimplify_expr): Add ccase for CILK_SIMD.
3457         * omp-low.c (extract_omp_for_data): Handle CILK_SIMD.
3458         (build_outer_var_ref): Same.
3459         (check_omp_nesting_restrictions): Same.
3460         (lower_rec_input_clauses): Same.
3461         (lower_lastprivate_clauses): Same.
3462         (expand_omp_for): Same.
3463         (execute_expand_omp): Check flag_enable_cilkplus.
3464         (execute_lower_omp): Same.
3465         (diagnose_sb_0): Handle CILK_SIMD.
3466         (diagnose_omp_structured_block_errors): Check flag_enable_cilkplus.
3467         (setjmp_or_longjmp_p): New.
3468         (scan_omp_1_stmt): Error on setjmp/longjmp in a simd construct.
3469         * tree-pretty-print.c (dump_generic_node): Add case for CILK_SIMD.
3470         * tree.def: Add tree code for CILK_SIMD.
3472 2013-11-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3474         * config/rs6000/altivec.md (UNSPEC_VPERM_X, UNSPEC_VPERM_UNS_X):
3475         Remove.
3476         (altivec_vperm_<mode>): Revert earlier little endian change.
3477         (*altivec_vperm_<mode>_internal): Remove.
3478         (altivec_vperm_<mode>_uns): Revert earlier little endian change.
3479         (*altivec_vperm_<mode>_uns_internal): Remove.
3480         * config/rs6000/vector.md (vec_realign_load_<mode>): Revise commentary.
3482 2013-11-15  Jeff Law  <law@redhat.com>
3484         * basic-block.h (has_abnormal_or_eh_outgoing_edge): Renamed from
3485         has_abnormal_or_outgoing_edge.  Check for EH edges as well.
3486         * gimple-ssa-isolate-paths.c
3487         (find_implicit_erroneous_behaviour): Corresponding changes.
3488         Do not check stmt_ends_bb_p or GIMPLE_RETURN anymore.
3489         (find_explicit_erroneous_behaviour): Likewise.
3491 2013-11-15  Jeff Law  <law@redhat.com>
3493         * ifcvt.c (find_cond_trap): Properly handle case where
3494         trap_bb == else_bb.
3496 2013-11-15  Andreas Schwab  <schwab@linux-m68k.org>
3498         * configure: Regenerate.
3500 2013-11-15  James Greenhalgh  <james.greenhalgh@arm.com>
3502         * config/aarch64/aarch64-simd.md: Remove simd_type from all patterns.
3503         * config/aarch64/aarch64.md: Likewise, correct "type" attribute
3504         where it is incorrect or missing.
3506 2013-11-15  Richard Sandiford  <rdsandiford@googlemail.com>
3508         * dwarf2out.c (gen_enumeration_type_die): Remove unnecessary
3509         host_integerp test.
3510         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
3511         Use TREE_INT_CST_LOW rather than tree_low_cst when reading the
3512         constant.
3513         * fold-const.c (fold_binary_loc): Replace a host_integerp/tree_low_cst
3514         pair with a TREE_CODE test and TREE_INT_CST_LOW.
3515         * tree-vect-generic.c (expand_vector_divmod): Likewise.
3517 2013-11-15  Richard Biener  <rguenther@suse.de>
3519         PR tree-optimization/50262
3520         * tree-ssa-alias.h (struct pt_solution): Split
3521         vars_contains_global into vars_contains_nonlocal,
3522         vars_contains_escaped and vars_contains_escaped_heap.
3523         * tree-ssa-structalias.c (label_visit): Expand comment.
3524         (handle_lhs_call): Adjust comment.
3525         (set_uids_in_ptset): Set the new flags appropriately.
3526         (pt_solution_set): Adjust.
3527         (pt_solution_set_var): Likewise.
3528         (pt_solution_ior_into): Likewise.
3529         (pt_solution_includes_global): Likewise.
3530         (pt_solutions_intersect_1): Optimize escaped handling.
3531         (compute_points_to_sets): Remove heap variable globalization.
3532         (ipa_escaped_pt): Adjust initializer.
3533         (pass_data_ipa_pta): Do not run TODO_update_ssa.
3534         * gimple-pretty-print.c (pp_points_to_solution): Print split flags.
3535         * tree-ssa-alias.c (dump_points_to_solution): Likewise.
3537 2013-11-15  Richard Biener  <rguenther@suse.de>
3539         * tree-loop-distribution.c (tree_loop_distribution): Make sure
3540         to distribute all stores.
3542 2013-11-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3544         * doc/invoke.texi (-mabi=elfv1, -mabi=elfv2): Document.
3546 2013-11-15  Joseph Myers  <joseph@codesourcery.com>
3548         * acinclude.m4 (GCC_GLIBC_VERSION_GTE_IFELSE): New configure macro.
3549         * configure.ac: Determine target_header_dir earlier.
3550         (--with-glibc-version): New configure option.
3551         Use GCC_GLIBC_VERSION_GTE_IFELSE in enable_gnu_unique_object,
3552         gcc_cv_libc_provides_ssp and gcc_cv_target_ldbl128 tests.
3553         * configure: Regenerate.
3554         * doc/install.texi (--enable-gnu-unique-object): Don't refer to
3555         native toolchains for default.
3556         (--with-glibc-version): Document.
3558 2013-11-15  Eric Botcazou  <ebotcazou@adacore.com>
3560         * fold-const.c (fold_binary_loc) <comparisons>: Reuse local variable.
3562 2013-11-15  Uros Bizjak  <ubizjak@gmail.com>
3564         * lto-streamer-in.c (input function): Call cgraph_create_node if
3565         cgraph_get_node failed.
3567 2013-11-14   Olivier Hainque  <hainque@adacore.com>
3569         * cfgexpand.c (defer_stack_allocation): When optimization is enabled,
3570         defer allocation of DECL_IGNORED_P variables at toplevel unless really
3571         small.  Factorize size threshold computation from the existing one.
3572         (expand_used_vars): Refine comment.
3574 2013-11-14  Cong Hou  <congh@google.com>
3576         * tree-vectorizer.h (struct dr_with_seg_len): Remove the base
3577         address field as it can be obtained from dr.  Rename the struct.
3578         * tree-vect-data-refs.c (comp_dr_with_seg_len_pair): Consider
3579         steps of data references during sort.
3580         (vect_prune_runtime_alias_test_list): Adjust with the change to
3581         struct dr_with_seg_len.
3582         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3583         Adjust with the change to struct dr_with_seg_len.
3585 2013-11-14  Jeff Law  <law@redhat.com>
3587         PR middle-end/59127
3588         * basic-block.h (has_abnormal_outgoing_edge_p): Moved here from...
3589         * tree-inline.c (has_abnormal_outgoing_edge_p): Remove.
3590         * gimple-ssa-isolate-paths.c: Include tree-cfg.h.
3591         (find_implicit_erroneous_behaviour): If a block has abnormal outgoing
3592         edges, then ignore it.  If the statement exhibiting erroneous
3593         behaviour ends basic blocks, with the exception of GIMPLE_RETURNs,
3594         then we can not optimize.
3595         (find_explicit_erroneous_behaviour): Likewise.
3597 2013-11-14  Andrew MacLeod  <amacleod@redhat.com>
3599         * gimplify-me.h:  New file.  Add prototypes.
3600         * gimplify.h: Don't include gimple.h.
3601         (struct gimplify_hasher, struct gimplify_ctx, is_gimple_sizepos):
3602         Relocate from gimple.h.
3603         * gimple.h (struct gimplify_hasher, struct gimplify_ctx,
3604         is_gimple_sizepos): Move to gimplify.h.
3605         (gimplify_hasher::hash, gimplify_hasher::equal): Move to gimplify.c.
3606         (enum gsi_iterator_update): Move to gimple-iterator.h.
3607         * gimple-iterator.h (enum gsi_iterator_update): Relocate from gimple.h.
3608         * gimplify-me.c: New File.
3609         (force_gimple_operand_1, force_gimple_operand,
3610         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
3611         gimple_regimplify_operands): Relocate from gimplify.c.
3612         * gimplify.c (force_gimple_operand_1, force_gimple_operand,
3613         force_gimple_operand_gsi_1, force_gimple_operand_gsi,
3614         gimple_regimplify_operands): Move to gimplify-me.c.
3615         (gimplify_hasher::hash, gimplify_hasher::equal): Relocate
3616         from gimple.h.
3617         * Makefile.in (OBJS): Add gimplify-me.o
3618         * asan.c: Include only gimplify.h, gimplify-me.h, and/or gimple.h as
3619         required.
3620         * cfgloopmanip.c: Likewise.
3621         * cgraphunit.c: Likewise.
3622         * cilk-common.c: Likewise.
3623         * fold-const.c: Likewise.
3624         * function.c: Likewise.
3625         * gimple-expr.c: Likewise.
3626         * gimple-fold.c: Likewise.
3627         * gimple-ssa-strength-reduction.c: Likewise.
3628         * gimple.c: Likewise.
3629         * graphite-clast-to-gimple.c: Likewise.
3630         * graphite-sese-to-poly.c: Likewise.
3631         * ipa-prop.c: Likewise.
3632         * ipa-split.c: Likewise.
3633         * ipa.c: Likewise.
3634         * langhooks.c: Likewise.
3635         * omp-low.c: Likewise.
3636         * sese.c: Likewise.
3637         * stor-layout.c: Likewise.
3638         * targhooks.c: Likewise.
3639         * trans-mem.c: Likewise.
3640         * tree-affine.c: Likewise.
3641         * tree-cfg.c: Likewise.
3642         * tree-cfgcleanup.c: Likewise.
3643         * tree-complex.c: Likewise.
3644         * tree-if-conv.c: Likewise.
3645         * tree-inline.c: Likewise.
3646         * tree-loop-distribution.c: Likewise.
3647         * tree-nested.c: Likewise.
3648         * tree-parloops.c: Likewise.
3649         * tree-predcom.c: Likewise.
3650         * tree-profile.c: Likewise.
3651         * tree-scalar-evolution.c: Likewise.
3652         * tree-sra.c: Likewise.
3653         * tree-ssa-address.c: Likewise.
3654         * tree-ssa-ccp.c: Likewise.
3655         * tree-ssa-dce.c: Likewise.
3656         * tree-ssa-forwprop.c: Likewise.
3657         * tree-ssa-ifcombine.c: Likewise.
3658         * tree-ssa-loop-im.c: Likewise.
3659         * tree-ssa-loop-ivopts.c: Likewise.
3660         * tree-ssa-loop-manip.c: Likewise.
3661         * tree-ssa-loop-niter.c: Likewise.
3662         * tree-ssa-loop-prefetch.c: Likewise.
3663         * tree-ssa-loop-unswitch.c: Likewise.
3664         * tree-ssa-math-opts.c: Likewise.
3665         * tree-ssa-phiopt.c: Likewise.
3666         * tree-ssa-phiprop.c: Likewise.
3667         * tree-ssa-pre.c: Likewise.
3668         * tree-ssa-propagate.c: Likewise.
3669         * tree-ssa-reassoc.c: Likewise.
3670         * tree-ssa-sccvn.c: Likewise.
3671         * tree-ssa-strlen.c: Likewise.
3672         * tree-ssa.c: Likewise.
3673         * tree-switch-conversion.c: Likewise.
3674         * tree-tailcall.c: Likewise.
3675         * tree-vect-data-refs.c: Likewise.
3676         * tree-vect-generic.c: Likewise.
3677         * tree-vect-loop-manip.c: Likewise.
3678         * tree-vect-loop.c: Likewise.
3679         * tree-vect-patterns.c: Likewise.
3680         * tree-vect-stmts.c: Likewise.
3681         * tree.c: Likewise.
3682         * tsan.c: Likewise.
3683         * value-prof.c: Likewise.
3684         * config/aarch64/aarch64.c: Likewise.
3685         * config/alpha/alpha.c: Likewise.
3686         * config/darwin.c: Likewise.
3687         * config/i386/i386.c: Likewise.
3688         * config/ia64/ia64.c: Likewise.
3689         * config/mep/mep.c: Likewise.
3690         * config/mips/mips.c: Likewise.
3691         * config/rs6000/rs6000.c: Likewise.
3692         * config/s390/s390.c: Likewise.
3693         * config/sh/sh.c: Likewise.
3694         * config/sparc/sparc.c: Likewise.
3695         * config/spu/spu.c: Likewise.
3696         * config/stormy16/stormy16.c: Likewise.
3697         * config/tilegx/tilegx.c: Likewise.
3698         * config/tilepro/tilepro.c: Likewise.
3699         * config/xtensa/xtensa.c: Likewise.
3701 2013-11-14  Diego Novillo  <dnovillo@google.com>
3703         * Makefile.in (PLUGIN_HEADERS): Add stringpool.h.
3705 2013-11-14  Diego Novillo  <dnovillo@google.com>
3707         * tree.h: Include fold-const.h.
3708         (aggregate_value_p): Moved to function.h.
3709         (alloca_call_p): Moved to calls.h.
3710         (allocate_struct_function): Moved to function.h.
3711         (apply_tm_attr): Moved to attribs.h.
3712         (array_at_struct_end_p): Moved to expr.h.
3713         (array_ref_element_size): Moved to tree-dfa.h.
3714         (array_ref_low_bound): Moved to tree-dfa.h.
3715         (array_ref_up_bound): Moved to tree.h.
3716         (assemble_alias): Moved to cgraph.h.
3717         (bit_from_pos): Moved to stor-layout.h.
3718         (build_addr): Moved to tree-nested.h.
3719         (build_duplicate_type): Moved to tree-inline.h.
3720         (build_fold_addr_expr): Moved to fold-const.h.
3721         (build_fold_addr_expr_with_type): Moved to fold-const.h.
3722         (build_fold_addr_expr_with_type_loc): Moved to fold-const.h.
3723         (build_fold_indirect_ref): Moved to fold-const.h.
3724         (build_fold_indirect_ref_loc): Moved to fold-const.h.
3725         (build_personality_function): Moved to tree.h.
3726         (build_range_check): Moved to fold-const.h.
3727         (build_simple_mem_ref): Moved to fold-const.h.
3728         (build_simple_mem_ref_loc): Moved to fold-const.h.
3729         (build_tm_abort_call): Moved to trans-mem.h.
3730         (byte_from_pos): Moved to stor-layout.h.
3731         (call_expr_flags): Moved to calls.h.
3732         (can_move_by_pieces): Moved to expr.h.
3733         (categorize_ctor_elements): Moved to expr.h.
3734         (change_decl_assembler_name): Moved to gcc-symtab.h.
3735         (combine_comparisons): Moved to fold-const.h.
3736         (complete_ctor_at_level_p): Moved to tree.h.
3737         (component_ref_field_offset): Moved to tree-dfa.h.
3738         (compute_builtin_object_size): Moved to tree-object-size.h.
3739         (compute_record_mode): Moved to stor-layout.h.
3740         (constant_boolean_node): Moved to fold-const.h.
3741         (constructor_static_from_elts_p): Moved to varasm.h.
3742         (cxx11_attribute_p): Moved to attribs.h.
3743         (debug_body): Moved to print-tree.h.
3744         (debug_find_tree): Moved to tree-inline.h.
3745         (debug_fold_checksum): Moved to fold-const.h.
3746         (debug_head): Moved to print-tree.h.
3747         (debug_head): Moved to print-tree.h.
3748         (debug_raw): Moved to print-tree.h.
3749         (debug_tree): Moved to print-tree.h.
3750         (debug_vec_tree): Moved to print-tree.h.
3751         (debug_verbose): Moved to print-tree.h.
3752         (debug_verbose): Moved to print-tree.h.
3753         (decl_attributes): Moved to attribs.h.
3754         (decl_binds_to_current_def_p): Moved to varasm.h.
3755         (decl_default_tls_model): Moved to varasm.h.
3756         (decl_replaceable_p): Moved to varasm.h.
3757         (div_if_zero_remainder): Moved to fold-const.h.
3758         (double_int mem_ref_offset): Moved to fold-const.h.
3759         (dump_addr): Moved to print-tree.h.
3760         (element_precision): Moved to machmode.h.
3761         (expand_dummy_function_end): Moved to function.h.
3762         (expand_function_end): Moved to function.h.
3763         (expand_function_start): Moved to function.h.
3764         (expand_label): Moved to stmt.h.
3765         (expr_first): Moved to tree-iterator.h.
3766         (expr_last): Moved to tree-iterator.h.
3767         (finalize_size_functions): Moved to stor-layout.h.
3768         (finish_builtin_struct): Moved to stor-layout.h.
3769         (finish_record_layout): Moved to stor-layout.h.
3770         (fixup_signed_type): Moved to stor-layout.h.
3771         (fixup_unsigned_type): Moved to stor-layout.h.
3772         (flags_from_decl_or_type): Moved to calls.h.
3773         (fold): Moved to fold-const.h.
3774         (fold_abs_const): Moved to fold-const.h.
3775         (fold_binary): Moved to fold-const.h.
3776         (fold_binary_loc): Moved to fold-const.h.
3777         (fold_binary_to_constant): Moved to fold-const.h.
3778         (fold_build1): Moved to fold-const.h.
3779         (fold_build1_initializer_loc): Moved to fold-const.h.
3780         (fold_build1_loc): Moved to fold-const.h.
3781         (fold_build1_stat_loc): Moved to fold-const.h.
3782         (fold_build2): Moved to fold-const.h.
3783         (fold_build2_initializer_loc): Moved to fold-const.h.
3784         (fold_build2_loc): Moved to fold-const.h.
3785         (fold_build2_stat_loc): Moved to fold-const.h.
3786         (fold_build3): Moved to fold-const.h.
3787         (fold_build3_loc): Moved to fold-const.h.
3788         (fold_build3_stat_loc): Moved to fold-const.h.
3789         (fold_build_call_array): Moved to fold-const.h.
3790         (fold_build_call_array_initializer): Moved to fold-const.h.
3791         (fold_build_call_array_initializer_loc): Moved to fold-const.h.
3792         (fold_build_call_array_loc): Moved to fold-const.h.
3793         (fold_build_cleanup_point_expr): Moved to fold-const.h.
3794         (fold_convert): Moved to fold-const.h.
3795         (fold_convert_loc): Moved to fold-const.h.
3796         (fold_convertible_p): Moved to fold-const.h.
3797         (fold_defer_overflow_warnings): Moved to fold-const.h.
3798         (fold_deferring_overflow_warnings_p): Moved to fold-const.h.
3799         (fold_fma): Moved to fold-const.h.
3800         (fold_ignored_result): Moved to fold-const.h.
3801         (fold_indirect_ref): Moved to fold-const.h.
3802         (fold_indirect_ref_1): Moved to fold-const.h.
3803         (fold_indirect_ref_loc): Moved to fold-const.h.
3804         (fold_read_from_constant_string): Moved to fold-const.h.
3805         (fold_real_zero_addition_p): Moved to fold-const.h.
3806         (fold_single_bit_test): Moved to fold-const.h.
3807         (fold_strip_sign_ops): Moved to fold-const.h.
3808         (fold_ternary): Moved to fold-const.h.
3809         (fold_ternary_loc): Moved to fold-const.h.
3810         (fold_unary): Moved to tree-data-ref.h.
3811         (fold_unary_ignore_overflow): Moved to fold-const.h.
3812         (fold_unary_ignore_overflow_loc): Moved to fold-const.h.
3813         (fold_unary_loc): Moved to fold-const.h.
3814         (fold_unary_to_constant): Moved to fold-const.h.
3815         (fold_undefer_and_ignore_overflow_warnings): Moved to fold-const.h.
3816         (fold_undefer_overflow_warnings): Moved to fold-const.h.
3817         (folding_initializer): Moved to fold-const.h.
3818         (free_temp_slots): Moved to function.h.
3819         (generate_setjmp_warnings): Moved to function.h.
3820         (get_attribute_name): Moved to attribs.h.
3821         (get_identifier): Moved to stringpool.h.
3822         (get_identifier_with_length): Moved to stringpool.h.
3823         (get_inner_reference): Moved to tree.h.
3824         (gimple_alloca_call_p): Moved to calls.h.
3825         (gimplify_parameters): Moved to function.h.
3826         (highest_pow2_factor): Moved to expr.h.
3827         (indent_to): Moved to print-tree.h.
3828         (init_attributes): Moved to attribs.h.
3829         (init_dummy_function_start): Moved to function.h.
3830         (init_function_start): Moved to function.h.
3831         (init_inline_once): Moved to tree-inline.h.
3832         (init_object_sizes): Moved to tree-object-size.h.
3833         (init_temp_slots): Moved to function.h.
3834         (init_tree_optimization_optabs): Moved to optabs.h.
3835         (initialize_sizetypes): Moved to stor-layout.h.
3836         (initializer_constant_valid_for_bitfield_p): Moved to varasm.h.
3837         (initializer_constant_valid_p): Moved to varasm.h.
3838         (int_const_binop): Moved to fold-const.h.
3839         (internal_reference_types): Moved to stor-layout.h.
3840         (invert_tree_comparison): Moved to fold-const.h.
3841         (invert_truthvalue): Moved to fold-const.h.
3842         (invert_truthvalue_loc): Moved to fold-const.h.
3843         (is_tm_ending_fndecl): Moved to trans-mem.h.
3844         (is_tm_may_cancel_outer): Moved to trans-mem.h.
3845         (is_tm_pure): Moved to trans-mem.h.
3846         (is_tm_safe): Moved to trans-mem.h.
3847         (layout_decl): Moved to stor-layout.h.
3848         (layout_type): Moved to stor-layout.h.
3849         (lookup_attribute_spec): Moved to attribs.h.
3850         (make_accum_type): Moved to stor-layout.h.
3851         (make_decl_one_only): Moved to varasm.h.
3852         (make_decl_rtl): Moved to tree.h.
3853         (make_decl_rtl_for_debug): Moved to varasm.h.
3854         (make_fract_type): Moved to stor-layout.h.
3855         (make_or_reuse_sat_signed_accum_type): Moved to stor-layout.h.
3856         (make_or_reuse_sat_signed_fract_type): Moved to stor-layout.h.
3857         (make_or_reuse_sat_unsigned_accum_type): Moved to stor-layout.h.
3858         (make_or_reuse_sat_unsigned_fract_type): Moved to stor-layout.h.
3859         (make_or_reuse_signed_accum_type): Moved to stor-layout.h.
3860         (make_or_reuse_signed_fract_type): Moved to stor-layout.h.
3861         (make_or_reuse_unsigned_accum_type): Moved to stor-layout.h.
3862         (make_or_reuse_unsigned_fract_type): Moved to stor-layout.h.
3863         (make_range): Moved to fold-const.h.
3864         (make_range_step): Moved to fold-const.h.
3865         (make_sat_signed_accum_type): Moved to stor-layout.h.
3866         (make_sat_signed_fract_type): Moved to stor-layout.h.
3867         (make_sat_unsigned_accum_type): Moved to stor-layout.h.
3868         (make_sat_unsigned_fract_type): Moved to stor-layout.h.
3869         (make_signed_accum_type): Moved to stor-layout.h.
3870         (make_signed_fract_type): Moved to stor-layout.h.
3871         (make_signed_type): Moved to stor-layout.h.
3872         (make_unsigned_accum_type): Moved to stor-layout.h.
3873         (make_unsigned_fract_type): Moved to stor-layout.h.
3874         (make_unsigned_type): Moved to stor-layout.h.
3875         (mark_decl_referenced): Moved to varasm.h.
3876         (mark_referenced): Moved to varasm.h.
3877         (may_negate_without_overflow_p): Moved to fold-const.h.
3878         (maybe_get_identifier): Moved to stringpool.h.
3879         (merge_ranges): Moved to fold-const.h.
3880         (merge_weak): Moved to varasm.h.
3881         (mode_for_size_tree): Moved to stor-layout.h.
3882         (multiple_of_p): Moved to fold-const.h.
3883         (must_pass_in_stack_var_size): Moved to calls.h.
3884         (must_pass_in_stack_var_size_or_pad): Moved to calls.h.
3885         (native_encode_expr): Moved to fold-const.h.
3886         (native_interpret_expr): Moved to fold-const.h.
3887         (non_lvalue): Moved to fold-const.h.
3888         (non_lvalue_loc): Moved to fold-const.h.
3889         (normalize_offset): Moved to stor-layout.h.
3890         (normalize_rli): Moved to stor-layout.h.
3891         (notice_global_symbol): Moved to varasm.h.
3892         (omit_one_operand): Moved to fold-const.h.
3893         (omit_one_operand_loc): Moved to fold-const.h.
3894         (omit_two_operands): Moved to fold-const.h.
3895         (omit_two_operands_loc): Moved to fold-const.h.
3896         (operand_equal_p): Moved to tree-data-ref.h.
3897         (parse_input_constraint): Moved to stmt.h.
3898         (parse_output_constraint): Moved to stmt.h.
3899         (place_field): Moved to stor-layout.h.
3900         (pop_function_context): Moved to function.h.
3901         (pop_temp_slots): Moved to function.h.
3902         (pos_from_bit): Moved to stor-layout.h.
3903         (preserve_temp_slots): Moved to function.h.
3904         (print_node): Moved to print-tree.h.
3905         (print_node_brief): Moved to print-tree.h.
3906         (print_rtl): Moved to rtl.h.
3907         (process_pending_assemble_externals): Moved to varasm.h.
3908         (ptr_difference_const): Moved to fold-const.h.
3909         (push_function_context): Moved to function.h.
3910         (push_struct_function): Moved to function.h.
3911         (push_temp_slots): Moved to function.h.
3912         (record_tm_replacement): Moved to trans-mem.h.
3913         (relayout_decl): Moved to stor-layout.h.
3914         (resolve_asm_operand_names): Moved to stmt.h.
3915         (resolve_unique_section): Moved to varasm.h.
3916         (rli_size_so_far): Moved to stor-layout.h.
3917         (rli_size_unit_so_far): Moved to stor-layout.h.
3918         (round_down): Moved to fold-const.h.
3919         (round_down_loc): Moved to fold-const.h.
3920         (round_up): Moved to fold-const.h.
3921         (round_up_loc): Moved to fold-const.h.
3922         (set_decl_incoming_rtl): Moved to emit-rtl.h.
3923         (set_decl_rtl): Moved to tree.h.
3924         (set_min_and_max_values_for_integral_type): Moved to stor-layout.h.
3925         (set_user_assembler_name): Moved to varasm.h.
3926         (setjmp_call_p): Moved to calls.h.
3927         (size_binop): Moved to fold-const.h.
3928         (size_binop_loc): Moved to fold-const.h.
3929         (size_diffop): Moved to fold-const.h.
3930         (size_diffop_loc): Moved to fold-const.h.
3931         (size_int_kind): Moved to fold-const.h.
3932         (stack_protect_epilogue): Moved to function.h.
3933         (start_record_layout): Moved to stor-layout.h.
3934         (supports_one_only): Moved to varasm.h.
3935         (swap_tree_comparison): Moved to fold-const.h.
3936         (tm_malloc_replacement): Moved to trans-mem.h.
3937         (tree build_fold_addr_expr_loc): Moved to fold-const.h.
3938         (tree build_invariant_address): Moved to fold-const.h.
3939         (tree_binary_nonnegative_warnv_p): Moved to fold-const.h.
3940         (tree_binary_nonzero_warnv_p): Moved to fold-const.h.
3941         (tree_call_nonnegative_warnv_p): Moved to fold-const.h.
3942         (tree_expr_nonnegative_p): Moved to fold-const.h.
3943         (tree_expr_nonnegative_warnv_p): Moved to fold-const.h.
3944         (tree_output_constant_def): Moved to varasm.h.
3945         (tree_overlaps_hard_reg_set): Moved to stmt.h.
3946         (tree_single_nonnegative_warnv_p): Moved to fold-const.h.
3947         (tree_single_nonzero_warnv_p): Moved to fold-const.h.
3948         (tree_swap_operands_p): Moved to fold-const.h.
3949         (tree_unary_nonnegative_warnv_p): Moved to fold-const.h.
3950         (tree_unary_nonzero_warnv_p): Moved to fold-const.h.
3951         (update_alignment_for_field): Moved to stor-layout.h.
3952         (use_register_for_decl): Moved to function.h.
3953         (variable_size): Moved to rtl.h.
3954         (vector_type_mode): Moved to stor-layout.h.
3955         * cgraph.h: Corresponding changes.
3956         * emit-rtl.h: Corresponding changes.
3957         * expr.h: Corresponding changes.
3958         * function.h: Corresponding changes.
3959         * optabs.h: Corresponding changes.
3960         * trans-mem.h: Corresponding changes.
3961         Protect against multiple inclusion.
3962         * tree-inline.h: Corresponding changes.
3963         * tree-iterator.h: Corresponding changes.
3964         * tree-dfa.h: Include expr.h.
3965         * tree-ssanames.h: Include stringpool.h.
3966         * attribs.h: New file.
3967         * calls.h: New file.
3968         * fold-const.h: New file.
3969         * gcc-symtab.h: New file.
3970         * print-rtl.h: New file.
3971         * print-tree.h: New file.
3972         * stmt.h: New file.
3973         * stor-layout.h: New file.
3974         * strinpool.h: New file.
3975         * tree-nested.h: New file
3976         * tree-object-size.h: New file.
3977         * varasm.h: New file.
3979 2013-11-14  Diego Novillo  <dnovillo@google.com>
3981         * alias.c: Include varasm.h.
3982         Include expr.h.
3983         * asan.c: Include calls.h.
3984         Include stor-layout.h.
3985         Include varasm.h.
3986         * attribs.c: Include stringpool.h.
3987         Include attribs.h.
3988         Include stor-layout.h.
3989         * builtins.c: Include stringpool.h.
3990         Include stor-layout.h.
3991         Include calls.h.
3992         Include varasm.h.
3993         Include tree-object-size.h.
3994         * calls.c: Include stor-layout.h.
3995         Include varasm.h.
3996         Include stringpool.h.
3997         Include attribs.h.
3998         * cfgexpand.c: Include stringpool.h.
3999         Include varasm.h.
4000         Include stor-layout.h.
4001         Include stmt.h.
4002         Include print-tree.h.
4003         * cgraph.c: Include varasm.h.
4004         Include calls.h.
4005         Include print-tree.h.
4006         * cgraphclones.c: Include stringpool.h.
4007         Include function.h.
4008         Include emit-rtl.h.
4009         Move inclusion of rtl.h earlier in the file.
4010         * cgraphunit.c: Include varasm.h.
4011         Include stor-layout.h.
4012         Include stringpool.h.
4013         * cilk-common.c: Include stringpool.h.
4014         Include stor-layout.h.
4015         * combine.c: Include stor-layout.h.
4016         * config/aarch64/aarch64-builtins.c: Include stor-layout.h.
4017         Include stringpool.h.
4018         Include calls.h.
4019         * config/aarch64/aarch64.c: Include stringpool.h.
4020         Include stor-layout.h.
4021         Include calls.h.
4022         Include varasm.h.
4023         * config/alpha/alpha.c: Include stor-layout.h.
4024         Include calls.h.
4025         Include varasm.h.
4026         * config/arc/arc.c: Include varasm.h.
4027         Include stor-layout.h.
4028         Include stringpool.h.
4029         Include calls.h.
4030         * config/arm/arm.c: Include stringpool.h.
4031         Include stor-layout.h.
4032         Include calls.h.
4033         Include varasm.h.
4034         * config/avr/avr-c.c: Include stor-layout.h.
4035         * config/avr/avr-log.c: Include print-tree.h.
4036         * config/avr/avr.c: Include print-tree.h.
4037         Include calls.h.
4038         Include stor-layout.h.
4039         Include stringpool.h.
4040         * config/bfin/bfin.c: Include varasm.h.
4041         Include calls.h.
4042         * config/c6x/c6x.c: Include stor-layout.h.
4043         Include varasm.h.
4044         Include calls.h.
4045         Include stringpool.h.
4046         * config/cr16/cr16.c: Include stor-layout.h.
4047         Include calls.h.
4048         * config/cris/cris.c: Include varasm.h.
4049         Include stor-layout.h.
4050         Include calls.h.
4051         Include stmt.h.
4052         * config/darwin.c: Include stringpool.h.
4053         Include varasm.h.
4054         Include stor-layout.h.
4055         * config/epiphany/epiphany.c: Include stor-layout.h.
4056         Include varasm.h.
4057         Include calls.h.
4058         Include stringpool.h.
4059         * config/fr30/fr30.c: Include stor-layout.h.
4060         Include varasm.h.
4061         * config/frv/frv.c: Include varasm.h.
4062         Include stor-layout.h.
4063         Include stringpool.h.
4064         * config/h8300/h8300.c: Include stor-layout.h.
4065         Include varasm.h.
4066         Include calls.h.
4067         Include stringpool.h.
4068         * config/i386/i386.c: Include stringpool.h.
4069         Include attribs.h.
4070         Include calls.h.
4071         Include stor-layout.h.
4072         Include varasm.h.
4073         * config/i386/winnt-cxx.c: Include stringpool.h.
4074         Include attribs.h.
4075         * config/i386/winnt.c: Include stringpool.h.
4076         Include varasm.h.
4077         * config/ia64/ia64-c.c: Include stringpool.h.
4078         * config/ia64/ia64.c: Include stringpool.h.
4079         Include stor-layout.h.
4080         Include calls.h.
4081         Include varasm.h.
4082         * config/iq2000/iq2000.c: Include stor-layout.h.
4083         Include calls.h.
4084         Include varasm.h.
4085         * config/lm32/lm32.c: Include calls.h.
4086         * config/m32c/m32c.c: Include stor-layout.h.
4087         Include varasm.h.
4088         Include calls.h.
4089         * config/m32r/m32r.c: Include stor-layout.h.
4090         Include varasm.h.
4091         Include stringpool.h.
4092         Include calls.h.
4093         * config/m68k/m68k.c: Include calls.h.
4094         Include stor-layout.h.
4095         Include varasm.h.
4096         * config/mcore/mcore.c: Include stor-layout.h.
4097         Include varasm.h.
4098         Include stringpool.h.
4099         Include calls.h.
4100         * config/mep/mep.c: Include varasm.h.
4101         Include calls.h.
4102         Include stringpool.h.
4103         Include stor-layout.h.
4104         * config/microblaze/microblaze.c: Include varasm.h.
4105         Include stor-layout.h.
4106         Include calls.h.
4107         * config/mips/mips.c: Include varasm.h.
4108         Include stringpool.h.
4109         Include stor-layout.h.
4110         Include calls.h.
4111         * config/mmix/mmix.c: Include varasm.h.
4112         Include stor-layout.h.
4113         Include calls.h.
4114         * config/mn10300/mn10300.c: Include stor-layout.h.
4115         Include varasm.h.
4116         Include calls.h.
4117         * config/moxie/moxie.c: Include stor-layout.h.
4118         Include varasm.h.
4119         Include calls.h.
4120         * config/msp430/msp430.c: Include stor-layout.h.
4121         Include calls.h.
4122         * config/nds32/nds32.c: Include stor-layout.h.
4123         Include varasm.h.
4124         Include calls.h.
4125         * config/pa/pa.c: Include stor-layout.h.
4126         Include stringpool.h.
4127         Include varasm.h.
4128         Include calls.h.
4129         * config/pdp11/pdp11.c: Include stor-layout.h.
4130         Include varasm.h.
4131         Include calls.h.
4132         * config/picochip/picochip.c: Include calls.h.
4133         Include stor-layout.h.
4134         Include stringpool.h.
4135         Include varasm.h.
4136         * config/rl78/rl78.c: Include varasm.h.
4137         Include stor-layout.h.
4138         Include calls.h.
4139         * config/rs6000/rs6000-c.c: Include stor-layout.h.
4140         Include stringpool.h.
4141         * config/rs6000/rs6000.c: Include stringpool.h.
4142         Include stor-layout.h.
4143         Include calls.h.
4144         Include print-tree.h.
4145         Include varasm.h.
4146         * config/rx/rx.c: Include varasm.h.
4147         Include stor-layout.h.
4148         Include calls.h.
4149         * config/s390/s390.c: Include print-tree.h.
4150         Include stringpool.h.
4151         Include stor-layout.h.
4152         Include varasm.h.
4153         Include calls.h.
4154         * config/score/score.c: Include stringpool.h.
4155         Include calls.h.
4156         Include varasm.h.
4157         Include stor-layout.h.
4158         * config/sh/sh-c.c: Include stringpool.h.
4159         Include attribs.h.h.
4160         * config/sh/sh.c: Include stringpool.h.
4161         Include stor-layout.h.
4162         Include calls.h.
4163         Include varasm.h.
4164         * config/sol2-c.c: Include stringpool.h.
4165         Include attribs.h.
4166         * config/sol2-cxx.c: Include stringpool.h.
4167         * config/sol2.c: Include stringpool.h.
4168         Include varasm.h.
4169         * config/sparc/sparc.c: Include stringpool.h.
4170         Include stor-layout.h.
4171         Include calls.h.
4172         Include varasm.h.
4173         * config/spu/spu-c.c: Include stringpool.h.
4174         * config/spu/spu.c: Include stringpool.h.
4175         Include stor-layout.h.
4176         Include calls.h.
4177         Include varasm.h.
4178         * config/stormy16/stormy16.c: Include stringpool.h.
4179         Include stor-layout.h.
4180         Include varasm.h.
4181         Include calls.h.
4182         * config/tilegx/tilegx.c: Include stringpool.h.
4183         Include stor-layout.h.
4184         Include varasm.h.
4185         Include calls.h.
4186         * config/tilepro/tilepro.c: Include stringpool.h.
4187         Include stor-layout.h.
4188         Include varasm.h.
4189         Include calls.h.
4190         * config/v850/v850-c.c: Include stringpool.h.
4191         Include attribs.h.
4192         * config/v850/v850.c: Include stringpool.h.
4193         Include stor-layout.h.
4194         Include varasm.h.
4195         Include calls.h.
4196         * config/vax/vax.c: Include calls.h.
4197         Include varasm.h.
4198         * config/vms/vms.c: Include stringpool.h.
4199         * config/vxworks.c: Include stringpool.h.
4200         * config/xtensa/xtensa.c: Include stringpool.h.
4201         Include stor-layout.h.
4202         Include calls.h.
4203         Include varasm.h.
4204         * convert.c: Include stor-layout.h.
4205         * coverage.c: Include stringpool.h.
4206         Include stor-layout.h.
4207         * dbxout.c: Include varasm.h.
4208         Include stor-layout.h.
4209         * dojump.c: Include stor-layout.h.
4210         * dse.c: Include stor-layout.h.
4211         * dwarf2asm.c: Include stringpool.h.
4212         Include varasm.h.
4213         * dwarf2cfi.c: Include stor-layout.h.
4214         * dwarf2out.c: Include rtl.h.
4215         Include stringpool.h.
4216         Include stor-layout.h.
4217         Include varasm.h.
4218         Include function.h.
4219         Include emit-rtl.h.
4220         Move inclusion of rtl.h earlier in the file.
4221         * emit-rtl.c: Include varasm.h.
4222         * except.c: Include stringpool.h.
4223         Include stor-layout.h.
4224         * explow.c: Include stor-layout.h.
4225         * expmed.c: Include stor-layout.h.
4226         * expr.c: Include stringpool.h.
4227         Include stor-layout.h.
4228         Include attribs.h.
4229         Include varasm.h.
4230         * final.c: Include varasm.h.
4231         * fold-const.c: Include stor-layout.h.
4232         Include calls.h.
4233         Include tree-iterator.h.
4234         * function.c: Include stor-layout.h.
4235         Include varasm.h.
4236         Include stringpool.h.
4237         * genattrtab.c (write_header): Emit includes for varasm.h,
4238         stor-layout.h and calls.h.
4239         * genautomata.c (main): Likewise.
4240         * genemit.c: Likewise.
4241         * genopinit.c: Likewise.
4242         * genoutput.c (output_prologue): Likewise.
4243         * genpeep.c: Likewise.
4244         * genpreds.c (write_insn_preds_c): Likewise.
4245         * gengtype.c (open_base_files): Add stringpool.h.
4246         * gimple-expr.c: Include stringpool.h.
4247         Include stor-layout.h.
4248         * gimple-fold.c: Include stringpool.h.
4249         Include expr.h.
4250         Include stmt.h.
4251         Include stor-layout.h.
4252         * gimple-low.c: Include tree-nested.h.
4253         Include calls.h.
4254         * gimple-pretty-print.c: Include stringpool.h.
4255         * gimple-ssa-strength-reduction.c: Include stor-layout.h.
4256         Include expr.h.
4257         * gimple-walk.c: Include stmt.h.
4258         * gimple.c: Include calls.h.
4259         Include stmt.h.
4260         Include stor-layout.h.
4261         * gimplify.c: Include stringpool.h.
4262         Include calls.h.
4263         Include varasm.h.
4264         Include stor-layout.h.
4265         Include stmt.h.
4266         Include print-tree.h.
4267         Include expr.h.
4268         * gimplify-me.c: Include stmt.h
4269         Include stor-layout.h
4270         * internal-fn.c: Include stor-layout.h.
4271         * ipa-devirt.c: Include print-tree.h.
4272         Include calls.h.
4273         * ipa-inline-analysis.c: Include stor-layout.h.
4274         Include stringpool.h.
4275         Include print-tree.h.
4276         * ipa-inline.c: Include trans-mem.h.
4277         Include calls.h.
4278         * ipa-prop.c: Include expr.h.
4279         Include stor-layout.h.
4280         Include print-tree.h.
4281         * ipa-pure-const.c: Include print-tree.h.
4282         Include calls.h.
4283         * ipa-reference.c: Include calls.h.
4284         * ipa-split.c: Include stringpool.h.
4285         Include expr.h.
4286         Include calls.h.
4287         * ipa.c: Include calls.h.
4288         Include stringpool.h.
4289         * langhooks.c: Include stringpool.h.
4290         Include attribs.h.
4291         * lto-cgraph.c: Include stringpool.h.
4292         * lto-streamer-in.c: Include stringpool.h.
4293         * lto-streamer-out.c: Include stor-layout.h.
4294         Include stringpool.h.
4295         * omp-low.c: Include stringpool.h.
4296         Include stor-layout.h.
4297         Include expr.h.
4298         * optabs.c: Include stor-layout.h.
4299         Include stringpool.h.
4300         Include varasm.h.
4301         * passes.c: Include varasm.h.
4302         * predict.c: Include calls.h.
4303         * print-rtl.c: Include print-tree.h.
4304         * print-tree.c: Include varasm.h.
4305         Include print-rtl.h.
4306         Include stor-layout.h.
4307         * realmpfr.c: Include stor-layout.h.
4308         * reg-stack.c: Include varasm.h.
4309         * sdbout.c: Include varasm.h.
4310         Include stor-layout.h.
4311         * simplify-rtx.c: Include varasm.h.
4312         * stmt.c: Include varasm.h.
4313         Include stor-layout.h.
4314         * stor-layout.c: Include stor-layout.h.
4315         Include stringpool.h.
4316         Include varasm.h.
4317         Include print-tree.h.
4318         * symtab.c: Include rtl.h.
4319         Include print-tree.h.
4320         Include varasm.h.
4321         Include function.h.
4322         Include emit-rtl.h.
4323         * targhooks.c: Include stor-layout.h.
4324         Include varasm.h.
4325         * toplev.c: Include varasm.h.
4326         Include tree-inline.h.
4327         * trans-mem.c: Include calls.h.
4328         Include function.h.
4329         Include rtl.h.
4330         Include emit-rtl.h.
4331         * tree-affine.c: Include expr.h.
4332         * tree-browser.c: Include print-tree.h.
4333         * tree-call-cdce.c: Include stor-layout.h.
4334         * tree-cfg.c: Include trans-mem.h.
4335         Include stor-layout.h.
4336         Include print-tree.h.
4337         * tree-complex.c: Include stor-layout.h.
4338         * tree-data-ref.c: Include expr.h.
4339         * tree-dfa.c: Include stor-layout.h.
4340         * tree-eh.c: Include expr.h.
4341         Include calls.h.
4342         * tree-emutls.c: Include stor-layout.h.
4343         Include varasm.h.
4344         * tree-if-conv.c: Include stor-layout.h.
4345         * tree-inline.c: Include stor-layout.h.
4346         Include calls.h.
4347         * tree-loop-distribution.c: Include stor-layout.h.
4348         * tree-nested.c: Include stringpool.h.
4349         Include stor-layout.h.
4350         * tree-object-size.c: Include tree-object-size.h.
4351         * tree-outof-ssa.c: Include stor-layout.h.
4352         * tree-parloops.c: Include stor-layout.h.
4353         Include tree-nested.h.
4354         * tree-pretty-print.c: Include stor-layout.h.
4355         Include expr.h.
4356         * tree-profile.c: Include varasm.h.
4357         Include tree-nested.h.
4358         * tree-scalar-evolution.c: Include expr.h.
4359         * tree-sra.c: Include stor-layout.h.
4360         * tree-ssa-address.c: Include stor-layout.h.
4361         * tree-ssa-ccp.c: Include stor-layout.h.
4362         * tree-ssa-dce.c: Include calls.h.
4363         * tree-ssa-dom.c: Include stor-layout.h.
4364         * tree-ssa-forwprop.c: Include stor-layout.h.
4365         * tree-ssa-ifcombine.c: Include stor-layout.h.
4366         * tree-ssa-loop-ivopts.c: Include stor-layout.h.
4367         * tree-ssa-loop-niter.c: Include calls.h.
4368         Include expr.h.
4369         * tree-ssa-loop-prefetch.c: Include stor-layout.h.
4370         * tree-ssa-math-opts.c: Include stor-layout.h.
4371         * tree-ssa-operands.c: Include stmt.h.
4372         Include print-tree.h.
4373         * tree-ssa-phiopt.c: Include stor-layout.h.
4374         * tree-ssa-reassoc.c: Include stor-layout.h.
4375         * tree-ssa-sccvn.c: Include stor-layout.h.
4376         * tree-ssa-sink.c: Include stor-layout.h.
4377         * tree-ssa-strlen.c: Include stor-layout.h.
4378         * tree-ssa-structalias.c: Include stor-layout.h.
4379         Include stmt.h.
4380         * tree-ssa-tail-merge.c: Include stor-layout.h.
4381         Include trans-mem.h.
4382         * tree-ssa-uncprop.c: Include stor-layout.h.
4383         * tree-ssa.c: Include stor-layout.h.
4384         * tree-ssanames.c: Include stor-layout.h.
4385         * tree-streamer-in.c: Include stringpool.h.
4386         * tree-streamer-out.c: Include stor-layout.h.
4387         * tree-switch-conversion.c: Include varasm.h.
4388         Include stor-layout.h.
4389         * tree-tailcall.c: Include stor-layout.h.
4390         * tree-vect-data-refs.c: Include stor-layout.h.
4391         * tree-vect-generic.c: Include stor-layout.h.
4392         * tree-vect-loop.c: Include stor-layout.h.
4393         * tree-vect-patterns.c: Include stor-layout.h.
4394         * tree-vect-slp.c: Include stor-layout.h.
4395         * tree-vect-stmts.c: Include stor-layout.h.
4396         * tree-vectorizer.c: Include stor-layout.h.
4397         * tree-vrp.c: Include stor-layout.h.
4398         Include calls.h.
4399         * tree.c: Include stor-layout.h.
4400         Include calls.h.
4401         Include attribs.h.
4402         Include varasm.h.
4403         * tsan.c: Include expr.h.
4404         * ubsan.c: Include stor-layout.h.
4405         Include stringpool.h.
4406         * value-prof.c: Include tree-nested.h.
4407         Include calls.h.
4408         * var-tracking.c: Include varasm.h.
4409         Include stor-layout.h.
4410         * varasm.c: Include stor-layout.h.
4411         Include stringpool.h.
4412         Include gcc-symtab.h.
4413         Include varasm.h.
4414         * varpool.c: Include varasm.h.
4415         * vmsdbgout.c: Include varasm.h.
4416         * xcoffout.c: Include varasm.h.
4418 2013-11-14  Joern Rennecke  <joern.rennecke@embecosm.com>
4420         * config/arc/arc.md (doloop_begin_i): Remove extra alignment;
4421         use (.&-4) idiom.
4423 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4425         * config/rs6000/sysv4le.h (LINUX64_DEFAULT_ABI_ELFv2): Define.
4427 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4428             Alan Modra  <amodra@gmail.com>
4430         * config/rs6000/rs6000.h (RS6000_SAVE_AREA): Handle ABI_ELFv2.
4431         (RS6000_SAVE_TOC): Remove.
4432         (RS6000_TOC_SAVE_SLOT): New macro.
4433         * config/rs6000/rs6000.c (rs6000_parm_offset): New function.
4434         (rs6000_parm_start): Use it.
4435         (rs6000_function_arg_advance_1): Likewise.
4436         (rs6000_emit_prologue): Use RS6000_TOC_SAVE_SLOT.
4437         (rs6000_emit_epilogue): Likewise.
4438         (rs6000_call_aix): Likewise.
4439         (rs6000_output_function_prologue): Do not save/restore r11
4440         around calling _mcount for ABI_ELFv2.
4442 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4443             Alan Modra  <amodra@gmail.com>
4445         * config/rs6000/rs6000-protos.h (rs6000_reg_parm_stack_space):
4446         Add prototype.
4447         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Remove.
4448         (REG_PARM_STACK_SPACE): Call rs6000_reg_parm_stack_space.
4449         * config/rs6000/rs6000.c (rs6000_parm_needs_stack): New function.
4450         (rs6000_function_parms_need_stack): Likewise.
4451         (rs6000_reg_parm_stack_space): Likewise.
4452         (rs6000_function_arg): Do not replace BLKmode by Pmode when
4453         returning a register argument.
4455 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4456             Michael Gschwind  <mkg@us.ibm.com>
4458         * config/rs6000/rs6000.h (FP_ARG_MAX_RETURN): New macro.
4459         (ALTIVEC_ARG_MAX_RETURN): Likewise.
4460         (FUNCTION_VALUE_REGNO_P): Use them.
4461         * config/rs6000/rs6000.c (TARGET_RETURN_IN_MSB): Define.
4462         (rs6000_return_in_msb): New function.
4463         (rs6000_return_in_memory): Handle ELFv2 homogeneous aggregates.
4464         Handle aggregates of up to 16 bytes for ELFv2.
4465         (rs6000_function_value): Handle ELFv2 homogeneous aggregates.
4467 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4468             Michael Gschwind  <mkg@us.ibm.com>
4470         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
4471         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
4472         (rs6000_discover_homogeneous_aggregate): Likewise.
4473         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
4474         (rs6000_function_arg_advance_1): Likewise.
4475         (rs6000_function_arg): Likewise.
4476         (rs6000_arg_partial_bytes): Likewise.
4477         (rs6000_psave_function_arg): Handle BLKmode arguments.
4479 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4480             Michael Gschwind  <mkg@us.ibm.com>
4482         * config/rs6000/rs6000.h (AGGR_ARG_NUM_REG): Define.
4483         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): New function.
4484         (rs6000_discover_homogeneous_aggregate): Likewise.
4485         (rs6000_function_arg_boundary): Handle homogeneous aggregates.
4486         (rs6000_function_arg_advance_1): Likewise.
4487         (rs6000_function_arg): Likewise.
4488         (rs6000_arg_partial_bytes): Likewise.
4489         (rs6000_psave_function_arg): Handle BLKmode arguments.
4491 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4493         * config/rs6000/rs6000.c (machine_function): New member
4494         r2_setup_needed.
4495         (rs6000_emit_prologue): Set r2_setup_needed if necessary.
4496         (rs6000_output_mi_thunk): Set r2_setup_needed.
4497         (rs6000_output_function_prologue): Output global entry point
4498         prologue and local entry point marker if needed for ABI_ELFv2.
4499         Output -mprofile-kernel code here.
4500         (output_function_profiler): Do not output -mprofile-kernel
4501         code here; moved to rs6000_output_function_prologue.
4502         (rs6000_file_start): Output ".abiversion 2" for ABI_ELFv2.
4504         (rs6000_emit_move): Do not handle dot symbols for ABI_ELFv2.
4505         (rs6000_output_function_entry): Likewise.
4506         (rs6000_assemble_integer): Likewise.
4507         (rs6000_elf_encode_section_info): Likewise.
4508         (rs6000_elf_declare_function_name): Do not create dot symbols
4509         or .opd section for ABI_ELFv2.
4511         (rs6000_trampoline_size): Update for ABI_ELFv2 trampolines.
4512         (rs6000_trampoline_init): Likewise.
4513         (rs6000_elf_file_end): Call file_end_indicate_exec_stack for ABI_ELFv2.
4515         (rs6000_call_aix): Handle ELFv2 indirect calls.  Do not check
4516         for function descriptors in ABI_ELFv2.
4518         * config/rs6000/rs6000.md ("*call_indirect_aix<mode>"): Support
4519         on ABI_AIX only, not ABI_ELFv2.
4520         ("*call_value_indirect_aix<mode>"): Likewise.
4521         ("*call_indirect_elfv2<mode>"): New pattern.
4522         ("*call_value_indirect_elfv2<mode>"): Likewise.
4524         * config/rs6000/predicates.md ("symbol_ref_operand"): Do not
4525         check for function descriptors in ABI_ELFv2.
4526         ("current_file_function_operand"): Likewise.
4528         * config/rs6000/ppc-asm.h [__powerpc64__ && _CALL_ELF == 2]:
4529         (toc): Undefine.
4530         (FUNC_NAME): Define ELFv2 variant.
4531         (JUMP_TARGET): Likewise.
4532         (FUNC_START): Likewise.
4533         (HIDDEN_FUNC): Likewise.
4534         (FUNC_END): Likeiwse.
4536 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4538         * config.gcc [powerpc*-*-* | rs6000-*-*]: Support --with-abi=elfv1
4539         and --with-abi=elfv2.
4540         * config/rs6000/option-defaults.h (OPTION_DEFAULT_SPECS): Add "abi".
4541         * config/rs6000/rs6000.opt (mabi=elfv1): New option.
4542         (mabi=elfv2): Likewise.
4543         * config/rs6000/rs6000-opts.h (enum rs6000_abi): Add ABI_ELFv2.
4544         * config/rs6000/linux64.h (DEFAULT_ABI): Do not hard-code to AIX_ABI
4545         if !RS6000_BI_ARCH.
4546         (ELFv2_ABI_CHECK): New macro.
4547         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
4548         rs6000_current_abi to ABI_AIX or ABI_ELFv2.
4549         (GLIBC_DYNAMIC_LINKER64): Support ELFv2 ld.so version.
4550         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Predefine
4551         _CALL_ELF and __STRUCT_PARM_ALIGN__ if appropriate.
4553         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Handle ABI_ELFv2.
4554         (debug_stack_info): Likewise.
4555         (rs6000_file_start): Treat ABI_ELFv2 the same as ABI_AIX.
4556         (rs6000_legitimize_tls_address): Likewise.
4557         (rs6000_conditional_register_usage): Likewise.
4558         (rs6000_emit_move): Likewise.
4559         (init_cumulative_args): Likewise.
4560         (rs6000_function_arg_advance_1): Likewise.
4561         (rs6000_function_arg): Likewise.
4562         (rs6000_arg_partial_bytes): Likewise.
4563         (rs6000_output_function_entry): Likewise.
4564         (rs6000_assemble_integer): Likewise.
4565         (rs6000_savres_strategy): Likewise.
4566         (rs6000_stack_info): Likewise.
4567         (rs6000_function_ok_for_sibcall): Likewise.
4568         (rs6000_emit_load_toc_table): Likewise.
4569         (rs6000_savres_routine_name): Likewise.
4570         (ptr_regno_for_savres): Likewise.
4571         (rs6000_emit_prologue): Likewise.
4572         (rs6000_emit_epilogue): Likewise.
4573         (rs6000_output_function_epilogue): Likewise.
4574         (output_profile_hook): Likewise.
4575         (output_function_profiler): Likewise.
4576         (rs6000_trampoline_size): Likewise.
4577         (rs6000_trampoline_init): Likewise.
4578         (rs6000_elf_output_toc_section_asm_op): Likewise.
4579         (rs6000_elf_encode_section_info): Likewise.
4580         (rs6000_elf_reloc_rw_mask): Likewise.
4581         (rs6000_elf_declare_function_name): Likewise.
4582         (rs6000_function_arg_boundary): Treat ABI_ELFv2 the same as ABI_AIX,
4583         except that rs6000_compat_align_parm is always assumed false.
4584         (rs6000_gimplify_va_arg): Likewise.
4585         (rs6000_call_aix): Update comment.
4586         (rs6000_sibcall_aix): Likewise.
4587         * config/rs6000/rs6000.md ("tls_gd_aix<TLSmode:tls_abi_suffix>"):
4588         Treat ABI_ELFv2 the same as ABI_AIX.
4589         ("*tls_gd_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
4590         ("tls_ld_aix<TLSmode:tls_abi_suffix>"): Likewise.
4591         ("*tls_ld_call_aix<TLSmode:tls_abi_suffix>"): Likewise.
4592         ("load_toc_aix_si"): Likewise.
4593         ("load_toc_aix_di"): Likewise.
4594         ("call"): Likewise.
4595         ("call_value"): Likewise.
4596         ("*call_local_aix<mode>"): Likewise.
4597         ("*call_value_local_aix<mode>"): Likewise.
4598         ("*call_nonlocal_aix<mode>"): Likewise.
4599         ("*call_value_nonlocal_aix<mode>"): Likewise.
4600         ("*call_indirect_aix<mode>"): Likewise.
4601         ("*call_value_indirect_aix<mode>"): Likewise.
4602         ("sibcall"): Likewise.
4603         ("sibcall_value"): Likewise.
4604         ("*sibcall_aix<mode>"): Likewise.
4605         ("*sibcall_value_aix<mode>"): Likewise.
4606         * config/rs6000/predicates.md ("symbol_ref_operand"): Likewise.
4607         ("current_file_function_operand"): Likewise.
4609 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4611         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Simplify logic
4612         by making use of the fact that for vector / floating point arguments
4613         passed both in VRs/FPRs and in the fixed parameter area, the partial
4614         bytes mechanism is in fact not used.
4616 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4618         * config/rs6000/rs6000.c (rs6000_psave_function_arg): New function.
4619         (rs6000_finish_function_arg): Likewise.
4620         (rs6000_function_arg): Use rs6000_psave_function_arg and
4621         rs6000_finish_function_arg to handle both vector and floating
4622         point arguments that are also passed in GPRs / the stack.
4624 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4626         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Remove TYPE argument.
4627         (USE_ALTIVEC_FOR_ARG_P): Likewise.
4628         (rs6000_darwin64_record_arg_advance_recurse): Update uses.
4629         (rs6000_function_arg_advance_1):Likewise.
4630         (rs6000_darwin64_record_arg_recurse): Likewise.
4631         (rs6000_function_arg): Likewise.
4632         (rs6000_arg_partial_bytes): Likewise.
4634 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4636         * config/rs6000/rs6000.c (rs6000_option_override_internal): Replace
4637         "DEFAULT_ABI != ABI_AIX" test by testing for ABI_V4 or ABI_DARWIN.
4638         (rs6000_savres_strategy): Likewise.
4639         (rs6000_return_addr): Likewise.
4640         (rs6000_emit_load_toc_table): Replace "DEFAULT_ABI != ABI_AIX" by
4641         testing for ABI_V4 (since ABI_DARWIN is impossible here).
4642         (rs6000_emit_prologue): Likewise.
4643         (legitimate_lo_sum_address_p): Simplify DEFAULT_ABI test.
4644         (rs6000_elf_declare_function_name): Remove duplicated test.
4645         * config/rs6000/rs6000.md ("load_toc_v4_PIC_1"): Explicitly test
4646         for ABI_V4 (instead of "DEFAULT_ABI != ABI_AIX" test).
4647         ("load_toc_v4_PIC_1_normal"): Likewise.
4648         ("load_toc_v4_PIC_1_476"): Likewise.
4649         ("load_toc_v4_PIC_1b"): Likewise.
4650         ("load_toc_v4_PIC_1b_normal"): Likewise.
4651         ("load_toc_v4_PIC_1b_476"): Likewise.
4652         ("load_toc_v4_PIC_2"): Likewise.
4653         ("load_toc_v4_PIC_3b"): Likewise.
4654         ("load_toc_v4_PIC_3c"): Likewise.
4655         * config/rs6000/rs6000.h (RS6000_REG_SAVE): Simplify DEFAULT_ABI test.
4656         (RS6000_SAVE_AREA): Likewise.
4657         (FP_ARG_MAX_REG): Likewise.
4658         (RETURN_ADDRESS_OFFSET): Likewise.
4659         * config/rs6000/sysv.h (TARGET_TOC): Test for ABI_V4 instead
4660         of ABI_AIX.
4661         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
4662         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
4664 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4666         * config/rs6000/rs6000.c (rs6000_call_indirect_aix): Rename to ...
4667         (rs6000_call_aix): ... this.  Handle both direct and indirect calls.
4668         Create call insn directly instead of via various gen_... routines.
4669         Mention special registers used by the call in CALL_INSN_FUNCTION_USAGE.
4670         (rs6000_sibcall_aix): New function.
4671         * config/rs6000/rs6000.md (TOC_SAVE_OFFSET_32BIT): Remove.
4672         (TOC_SAVE_OFFSET_64BIT): Likewise.
4673         (AIX_FUNC_DESC_TOC_32BIT): Likewise.
4674         (AIX_FUNC_DESC_TOC_64BIT): Likewise.
4675         (AIX_FUNC_DESC_SC_32BIT): Likewise.
4676         (AIX_FUNC_DESC_SC_64BIT): Likewise.
4677         ("call" expander): Call rs6000_call_aix.
4678         ("call_value" expander): Likewise.
4679         ("call_indirect_aix<ptrsize>"): Replace this pattern ...
4680         ("call_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
4681         ("*call_indirect_aix<mode>"): ... by this insn pattern.
4682         ("call_value_indirect_aix<ptrsize>"): Replace this pattern ...
4683         ("call_value_indirect_aix<ptrsize>_nor11"): ... and this pattern ...
4684         ("*call_value_indirect_aix<mode>"): ... by this insn pattern.
4685         ("*call_nonlocal_aix32", "*call_nonlocal_aix64"): Replace by ...
4686         ("*call_nonlocal_aix<mode>"): ... this pattern.
4687         ("*call_value_nonlocal_aix32", "*call_value_nonlocal_aix64"): Replace
4688         ("*call_value_nonlocal_aix<mode>"): ... by this pattern.
4689         ("*call_local_aix<mode>"): New insn pattern.
4690         ("*call_value_local_aix<mode>"): Likewise.
4691         ("sibcall" expander): Call rs6000_sibcall_aix.
4692         ("sibcall_value" expander): Likewise.  Move earlier in file.
4693         ("*sibcall_nonlocal_aix<mode>"): Replace by ...
4694         ("*sibcall_aix<mode>"): ... this pattern.
4695         ("*sibcall_value_nonlocal_aix<mode>"): Replace by ...
4696         ("*sibcall_value_aix<mode>"): ... this pattern.
4697         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): Remove.
4698         (rs6000_call_aix): Add prototype.
4699         (rs6000_sibcall_aix): Likewise.
4701 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
4703         PR sanitizer/59122
4704         * asan.c (asan_emit_stack_protection): Ensure -fsection-anchors
4705         isn't confused by the artificial decl.
4707 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4709         * config/rs6000/rs6000.c (rs6000_emit_prologue): Do not place a
4710         RTX_FRAME_RELATED_P marker on the UNSPEC_MOVESI_FROM_CR insn.
4711         Instead, add USEs of all modified call-saved CR fields to the
4712         insn storing the result to the stack slot, and provide an
4713         appropriate REG_FRAME_RELATED_EXPR for that insn.
4714         * config/rs6000/rs6000.md ("*crsave"): New insn pattern.
4715         * config/rs6000/predicates.md ("crsave_operation"): New predicate.
4717 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4718             Alan Modra  <amodra@gmail.com>
4720         * function.c (assign_parms): Use all.reg_parm_stack_space instead
4721         of re-evaluating REG_PARM_STACK_SPACE target macro.
4722         (locate_and_pad_parm): New parameter REG_PARM_STACK_SPACE.  Use it
4723         instead of evaluating target macro REG_PARM_STACK_SPACE every time.
4724         (assign_parm_find_entry_rtl): Update call.
4725         * calls.c (initialize_argument_information): Update call.
4726         (emit_library_call_value_1): Likewise.
4727         * expr.h (locate_and_pad_parm): Update prototype.
4729 2013-11-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4731         * calls.c (store_unaligned_arguments_into_pseudos): Skip PARALLEL
4732         arguments.
4734 2013-11-14  DJ Delorie  <dj@redhat.com>
4736         * config/rx/rx.c (rx_mode_dependent_address_p): Allow offsets up
4737         to 16 bits.
4739 2013-11-14  Jeff Law  <law@redhat.com>
4741         * tree-ssa-threadedge.c (thread_through_normal_block): Only push the
4742         EDGE_START_JUMP_THREAD marker if the jump threading path is empty.
4744 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4746         * doc/invoke.texi: Update documentation for AArch64's -mcpu
4747         and -mtune options.
4749 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4751         * config/aarch64/aarch64-cores.def (example-1): Remove.
4752         (example-2): Likewise.
4753         * config/aarch64/aarch64-tune.md: Regenerate.
4754         * config/aarch64/aarch64.md: Do not include "large.md" or "small.md".
4755         (generic_sched): Remove "large", "small".
4756         * config/aarch64/large.md: Delete.
4757         * config/aarch64/small.md: Delete.
4759 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4761         * config/aarch64/aarch64-cores.def (cortex-a57): Tune for cortexa15.
4762         * config/aarch64/aarch64-tune.md: Regenerate.
4763         * config/aarch64/aarch64.md: Include cortex-a15 pipeline model.
4764         (generic_sched): "no" if we are tuning for cortexa15.
4765         * config/arm/cortex-a15.md: Include cortex-a15-neon.md by
4766         relative path.
4768 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4770         * config/aarch64/aarch64-arches.def (armv8-a): Tune for cortex-a53.
4771         * config/aarch64/aarch64.md: Do not include aarch64-generic.md.
4772         * config/aarch64/aarch64.c (aarch64_tune): Initialize to cortexa53.
4773         (all_cores): Use cortexa53 when tuning for "generic".
4774         (aarch64_override_options): Fix comment.
4775         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Set to cortexa53.
4776         * config/aarch64/aarch64-generic.md: Delete.
4778 2013-11-14  James Greenhalgh  <james.greenhalgh@arm.com>
4780         * config/aarch64/aarch64.c (all_architectures): Remove "generic".
4782 2013-11-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4784         * config/aarch64/aarch64.c: Include aarch-cost-tables.h.
4785         (generic_rtx_cost_table): Remove.
4786         (aarch64_rtx_costs): Use fields from cpu_cost_table.
4787         * config/aarch64/aarch64-protos.h (tune_params): Use cpu_cost_table for
4788         insn_extra_cost.
4789         (cpu_rtx_cost_table): Remove.
4791 2013-11-14  Julian Brown  <julian@codesourcery.com>
4792             Joey Ye  <joey.ye@arm.com>
4794         * config/arm/arm.c (arm_cortex_m_branch_cost): New.
4795         (arm_v7m_tune): New.
4796         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune, arm_9e_tune,
4797         arm_v6t2_tune, arm_cortex_tune, arm_cortex_a15_tune,
4798         arm_cortex_a5_tune, arm_v6m_tune): Add comments for Sched adj cost.
4799         * config/arm/arm-cores.def (cortex-m4, cortex-m3): Use arm_v7m_tune.
4801 2013-11-14  Kirill Yukhin  <kirill.yukhin@intel.com>
4803         PR target/57491
4804         * config/ia64/ia64.c (ia64_split_tmode_move): Relax `dead'
4805         flag setting.
4807 2013-11-14  Jakub Jelinek  <jakub@redhat.com>
4808             Uros Bizjak  <ubizjak@gmail.com>
4810         PR target/59101
4811         * config/i386/i386.md (*anddi_2): Only allow CCZmode if
4812         operands[2] satisfies_constraint_Z that might have bit 31 set.
4814 2013-11-13  Jeff Law  <law@redhat.com>
4816         PR tree-optimization/59102
4817         * gimple-ssa-isolate-paths.c
4818         (insert_trap_and_remove_trailing_statments): Ensure STMT is a
4819         gimple assignment before looking at gimple_assign_lhs.
4821 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
4823         * ira.c: Add comment about threads at the top of file.
4825 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
4827         * ira-color.c (coalesce_allocnos): Don't allocate and free
4828         sorted_copies.
4830 2013-11-14  Tom de Vries  <tom@codesourcery.com>
4832         * tree-ssa-tail-merge.c (gimple_equal_p): Add test for structural
4833         equality for GIMPLE_ASSIGN.
4835 2013-11-14  Tom de Vries  <tom@codesourcery.com>
4837         * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Factor new
4838         function out of ...
4839         (gimple_equal_p): ... here.
4841 2013-11-14  Tom de Vries  <tom@codesourcery.com>
4843         * trans-mem.c (is_tm_ending): New function.
4844         * gimple.h (is_tm_ending): Declare.
4845         * tree-ssa-tail-merge.c (gimple_equal_p): Remove test on
4846         BUILT_IN_TM_COMMIT.
4847         (find_duplicate): Use is_tm_ending instead of is_tm_ending_fndecl.
4849 2013-11-14  Tom de Vries  <tom@codesourcery.com>
4851         * tree-ssa-tail-merge.c (gimple_equal_p): Remove equal variable.
4853 2013-11-13  Andrew MacLeod  <amacleod@redhat.com>
4855         * gimple-walk.h: New File.  Relocate prototypes from gimple.h.
4856         (struct walk_stmt_info):  Relocate here from gimple.h.
4857         * gimple-iterator.h: New File.  Relocate prototypes from gimple.h.
4858         (struct gimple_stmt_iterator_d): Relocate here from gimple.h.
4859         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
4860         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
4861         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
4862         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
4863         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Relocate here from gimple.h.
4864         * gimple.h (struct gimple_stmt_iterator_d): Move to gimple-iterator.h.
4865         (gsi_start_1, gsi_none, gsi_start_bb, gsi_last_1, gsi_last_bb,
4866         gsi_end_p, gsi_one_before_end_p, gsi_next, gsi_prev, gsi_stmt,
4867         gsi_after_labels, gsi_next_nondebug, gsi_prev_nondebug,
4868         gsi_start_nondebug_bb, gsi_start_nondebug_after_labels_bb,
4869         gsi_last_nondebug_bb, gsi_bb, gsi_seq): Move to gimple-iterator.h.
4870         (struct walk_stmt_info): Move to gimple-walk.h.
4871         (gimple_seq_set_location): Move to gimple.c
4872         * gimple-walk.c: New File.
4873         (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm, walk_gimple_op,
4874         walk_gimple_stmt, get_base_loadstore, walk_stmt_load_store_addr_ops,
4875         walk_stmt_load_store_ops): Relocate here from gimple.c.
4876         * gimple-iterator.c: Include gimple-iterator.h.
4877         * gimple.c (walk_gimple_seq_mod, walk_gimple_seq, walk_gimple_asm,
4878         walk_gimple_op, walk_gimple_stmt, get_base_loadstore,
4879         walk_stmt_load_store_addr_ops, walk_stmt_load_store_ops): Move to
4880         gimple-walk.c.
4881         (gimple_seq_set_location): Relocate from gimple.h.
4882         * tree-phinodes.h (set_phi_nodes): Move to tree-phinodes.c.
4883         * tree-phinodes.c (set_phi_nodes): Relocate from tree-phinodes.h.
4884         * gengtype.c (open_base_files): Add gimple-iterator.h to include list.
4885         * Makefile.in (OBJS): Add gimple-walk.o
4886         * asan.c: Update Include list as required for gimple-iterator.h and
4887         gimple-walk.h.
4888         * cfgexpand.c: Likewise.
4889         * cfgloop.c: Likewise.
4890         * cfgloopmanip.c: Likewise.
4891         * cgraph.c: Likewise.
4892         * cgraphbuild.c: Likewise.
4893         * cgraphunit.c: Likewise.
4894         * gimple-fold.c: Likewise.
4895         * gimple-low.c: Likewise.
4896         * gimple-pretty-print.c: Likewise.
4897         * gimple-ssa-isolate-paths.c: Likewise.
4898         * gimple-ssa-strength-reduction.c: Likewise.
4899         * gimple-streamer-in.c: Likewise.
4900         * gimple-streamer-out.c: Likewise.
4901         * gimplify.c: Likewise.
4902         * graphite-blocking.c: Likewise.
4903         * graphite-clast-to-gimple.c: Likewise.
4904         * graphite-dependences.c: Likewise.
4905         * graphite-interchange.c: Likewise.
4906         * graphite-optimize-isl.c: Likewise.
4907         * graphite-poly.c: Likewise.
4908         * graphite-scop-detection.c: Likewise.
4909         * graphite-sese-to-poly.c: Likewise.
4910         * graphite.c: Likewise.
4911         * ipa-inline-analysis.c: Likewise.
4912         * ipa-profile.c: Likewise.
4913         * ipa-prop.c: Likewise.
4914         * ipa-pure-const.c: Likewise.
4915         * ipa-split.c: Likewise.
4916         * lto-streamer-in.c: Likewise.
4917         * lto-streamer-out.c: Likewise.
4918         * omp-low.c: Likewise.
4919         * predict.c: Likewise.
4920         * profile.c: Likewise.
4921         * sese.c: Likewise.
4922         * tracer.c: Likewise.
4923         * trans-mem.c: Likewise.
4924         * tree-call-cdce.c: Likewise.
4925         * tree-cfg.c: Likewise.
4926         * tree-cfgcleanup.c: Likewise.
4927         * tree-complex.c: Likewise.
4928         * tree-data-ref.c: Likewise.
4929         * tree-dfa.c: Likewise.
4930         * tree-eh.c: Likewise.
4931         * tree-emutls.c: Likewise.
4932         * tree-if-conv.c: Likewise.
4933         * tree-inline.c: Likewise.
4934         * tree-into-ssa.c: Likewise.
4935         * tree-loop-distribution.c: Likewise.
4936         * tree-nested.c: Likewise.
4937         * tree-nrv.c: Likewise.
4938         * tree-object-size.c: Likewise.
4939         * tree-outof-ssa.c: Likewise.
4940         * tree-parloops.c: Likewise.
4941         * tree-predcom.c: Likewise.
4942         * tree-profile.c: Likewise.
4943         * tree-scalar-evolution.c: Likewise.
4944         * tree-sra.c: Likewise.
4945         * tree-ssa-ccp.c: Likewise.
4946         * tree-ssa-coalesce.c: Likewise.
4947         * tree-ssa-copy.c: Likewise.
4948         * tree-ssa-copyrename.c: Likewise.
4949         * tree-ssa-dce.c: Likewise.
4950         * tree-ssa-dom.c: Likewise.
4951         * tree-ssa-dse.c: Likewise.
4952         * tree-ssa-forwprop.c: Likewise.
4953         * tree-ssa-ifcombine.c: Likewise.
4954         * tree-ssa-live.c: Likewise.
4955         * tree-ssa-loop-ch.c: Likewise.
4956         * tree-ssa-loop-im.c: Likewise.
4957         * tree-ssa-loop-ivcanon.c: Likewise.
4958         * tree-ssa-loop-ivopts.c: Likewise.
4959         * tree-ssa-loop-manip.c: Likewise.
4960         * tree-ssa-loop-niter.c: Likewise.
4961         * tree-ssa-loop-prefetch.c: Likewise.
4962         * tree-ssa-loop.c: Likewise.
4963         * tree-ssa-math-opts.c: Likewise.
4964         * tree-ssa-phiopt.c: Likewise.
4965         * tree-ssa-phiprop.c: Likewise.
4966         * tree-ssa-pre.c: Likewise.
4967         * tree-ssa-propagate.c: Likewise.
4968         * tree-ssa-reassoc.c: Likewise.
4969         * tree-ssa-sink.c: Likewise.
4970         * tree-ssa-strlen.c: Likewise.
4971         * tree-ssa-structalias.c: Likewise.
4972         * tree-ssa-tail-merge.c: Likewise.
4973         * tree-ssa-ter.c: Likewise.
4974         * tree-ssa-threadedge.c: Likewise.
4975         * tree-ssa-threadupdate.c: Likewise.
4976         * tree-ssa-uncprop.c: Likewise.
4977         * tree-ssa-uninit.c: Likewise.
4978         * tree-ssa.c: Likewise.
4979         * tree-stdarg.c: Likewise.
4980         * tree-switch-conversion.c: Likewise.
4981         * tree-tailcall.c: Likewise.
4982         * tree-vect-data-refs.c: Likewise.
4983         * tree-vect-generic.c: Likewise.
4984         * tree-vect-loop-manip.c: Likewise.
4985         * tree-vect-loop.c: Likewise.
4986         * tree-vect-patterns.c: Likewise.
4987         * tree-vect-slp.c: Likewise.
4988         * tree-vect-stmts.c: Likewise.
4989         * tree-vectorizer.c: Likewise.
4990         * tree-vrp.c: Likewise.
4991         * tree.c: Likewise.
4992         * tsan.c: Likewise.
4993         * value-prof.c: Likewise.
4994         * vtable-verify.c: Likewise.
4996 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
4998         * gimple-ssa-isolate-paths.c (pass_isolate_erroneous_paths): Comment
4999         fix.
5001 2013-11-13  Jeff Law  <law@redhat.com>
5003         * PR middle-end/59119
5004         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour): New
5005         function, extracted from gimple_ssa_isolate_erroneous_paths.
5006         (find_explicit_erroneous_behaviour): Similarly.
5007         (insert_trap_and_remove_trailing_statements): Remove statements
5008         in reverse order.
5010 2013-11-13  Steven Bosscher  <steven@gcc.gnu.org>
5012         * cfgrtl.c (can_fallthru): Reorder code to move tablejump check up.
5013         Make that check explicit.  BB_HEAD cannot be NULL, remove check for it.
5014         * haifa-sched.c (ready_remove_first_dispatch): Check INSN_P before
5015         looking at INSN_CODE.
5016         * reload1.c (delete_dead_insn) Do not expect JUMP_TABLE_DATA to be an
5017         active_insn_p object, respect basic block boundaries.
5018         * reorg.c (follow_jumps): Use invariant that JUMP_TABLE_DATA always
5019         follows immediately after the jump table data label.
5020         * config/nds32/nds32.c (nds32_output_casesi_pc_relative): Likewise.
5021         * config/sh/sh.c (barrier_align): Likewise.  Rearrange code such
5022         that JUMP_TABLE_DATA is not expected to be an active_insn_p object.
5024 2013-11-13  Teresa Johnson  <tejohnson@google.com>
5026         PR ipa/58862
5027         * predict.c (drop_profile): Error is currently too strict.
5028         (handle_missing_profiles): Pass call_count to drop_profile.
5030 2013-11-13  Teresa Johnson  <tejohnson@google.com>
5032         PR ipa/58862
5033         * ipa-inline.c (edge_badness): Fix overflow.
5035 2013-11-13  Vladimir Makarov  <vmakarov@redhat.com>
5037         PR rtl-optimization/59036
5038         * ira-color.c (struct allocno_color_data): Add new members
5039         first_thread_allocno, next_thread_allocno, thread_freq.
5040         (sorted_copies): New static var.
5041         (allocnos_conflict_by_live_ranges_p, copy_freq_compare_func): Move up.
5042         (allocno_thread_conflict_p, merge_threads)
5043         (form_threads_from_copies, form_threads_from_bucket)
5044         (form_threads_from_colorable_allocno, init_allocno_threads): New
5045         functions.
5046         (bucket_allocno_compare_func): Add comparison by thread frequency
5047         and threads.
5048         (add_allocno_to_ordered_bucket): Rename to
5049         add_allocno_to_ordered_colorable_bucket.  Remove parameter.
5050         (push_only_colorable): Call form_threads_from_bucket.
5051         (color_pass): Call init_allocno_threads.  Use
5052         consideration_allocno_bitmap instead of coloring_allocno_bitmap
5053         for nuillify allocno color data.
5054         (ira_initiate_assign, ira_finish_assign): Allocate/free sorted_copies.
5055         (coalesce_allocnos): Use static sorted copies.
5057 2013-11-13  Jakub Jelinek  <jakub@redhat.com>
5059         * passes.c (execute_todo): Don't call do_per_function if
5060         flags are zero.
5061         (execute_one_ipa_transform_pass, execute_one_pass): Don't call
5062         execute_function_dump if dump_file is NULL.
5064 2013-11-13  Martin Jambor  <mjambor@suse.cz>
5066         * cgraph.c (cgraph_get_create_node): Do what
5067         cgraph_get_create_real_symbol_node used to do.
5068         (cgraph_get_create_real_symbol_node): Removed.  Changed all users to
5069         call cgraph_get_create_node.
5070         * cgraph.h (cgraph_get_create_real_symbol_node): Removed.
5071         * lto-streamer-in.c (input_function): Call cgraph_get_node instead of
5072         cgraph_get_create_node.  Assert we get a node.
5074 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5076         * config/aarch64/aarch64-simd.md (vec_extract): New.
5078 2013-11-13  Tejas Belagod  <tejas.belagod@arm.com>
5080         * config/aarch64/aarch64-simd.md (vec_set<mode>): Add w -> w option to
5081         the constraint.
5083 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5085         * cfgexpand.c (expand_used_vars): Allocate space for partitions based
5086         on PARM_DECLs or RESULT_DECLs only if they are ignored for debug info
5087         or if optimization is enabled.
5088         * tree-ssa-coalesce.c (coalesce_ssa_name): If optimization is disabled,
5089         require that all the names based on a PARM_DECL or a RESULT_DECL that
5090         isn't ignored for debug info be coalesced.
5092 2013-11-13  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5094         * config/c6x/c6x.c: Include "gimple-expr.h".
5096 2013-11-13  Richard Biener  <rguenther@suse.de>
5098         * gimple-streamer-out.c (output_gimple_stmt): Also wrap
5099         decls in ADDR_EXPR operands inside a MEM_REF and optimize that.
5100         * gimple-streamer-in.c (input_gimple_stmt): Remove now dead code
5101         dealing with type mismatches inside component reference chains.
5103 2013-11-13  Marc Glisse  <marc.glisse@inria.fr>
5105         PR tree-optimization/59077
5106         * ipa-pure-const.c (better_state): Update *state.
5108 2013-11-13  Christophe Lyon  <christophe.lyon@linaro.org>
5110         * config/aarch64/aarch64.h (FRAME_GROWS_DOWNWARD): Define to 1.
5111         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
5112         Update offset calculations.
5114 2013-11-13  Eric Botcazou  <ebotcazou@adacore.com>
5116         PR ada/35998
5117         * dwarf2out.c (add_byte_size_attribute): Also use int_size_in_bytes
5118         for fields.  Do not add the attribute if the size is negative.
5120 2013-11-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5122         * config/arm/arm.c: Include aarch-cost-tables.h.
5123         (generic_extra_costs): Move from here...
5124         * config/arm/aarch-cost-tables.h: ... To here.  New file.
5126 2013-11-13  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5127             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5128             Sergey Lega  <sergey.s.lega@intel.com>
5129             Anna Tikhonova  <anna.tikhonova@intel.com>
5130             Ilya Tocar  <ilya.tocar@intel.com>
5131             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5132             Ilya Verbin  <ilya.verbin@intel.com>
5133             Kirill Yukhin  <kirill.yukhin@intel.com>
5134             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5136         * config/i386/i386.c (ix86_print_operand): Support z-masking.
5137         * config/i386/predicate.md (const_0_to_4_operand): New.
5138         (const_0_to_5_operand): Ditto.
5139         * config/i386/sse.md (UNSPEC_COMPRESS): New.
5140         (UNSPEC_COMPRESS_STORE): Ditto.
5141         (UNSPEC_EXPAND): Ditto.
5142         (UNSPEC_EMBEDDED_ROUNDING): Ditto.
5143         (define_mode_attr ssescalarsize): Ditto.
5144         (avx512f_load<mode>_mask): Ditto.
5145         (avx512f_store<mode>_mask): Ditto.
5146         (avx512f_storedqu<mode>_mask): Ditto.
5147         (avx512f_vmcmp<mode>3_mask): Ditto.
5148         (avx512f_fmadd_<mode>_mask): Ditto.
5149         (avx512f_fmadd_<mode>_mask3): Ditto.
5150         (avx512f_fmsub_<mode>_mask): Ditto.
5151         (avx512f_fmsub_<mode>_mask3): Ditto.
5152         (avx512f_fnmadd_<mode>_mask): Ditto.
5153         (avx512f_fnmadd_<mode>_mask3): Ditto.
5154         (avx512f_fnmsub_<mode>_mask): Ditto.
5155         (avx512f_fnmsub_<mode>_mask3): Ditto.
5156         (avx512f_fmaddsub_<mode>_mask): Ditto.
5157         (avx512f_fmaddsub_<mode>_mask3): Ditto.
5158         (avx512f_fmsubadd_<mode>_mask): Ditto.
5159         (avx512f_fmsubadd_<mode>_mask3): Ditto.
5160         (vec_unpacku_float_lo_v16si): Ditto.
5161         (avx512f_vextract<shuffletype>32x4_mask): Ditto.
5162         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
5163         (avx512f_vextract<shuffletype>64x4_mask): Ditto.
5164         (vec_extract_lo_<mode>_maskm): Ditto.
5165         (vec_extract_hi_<mode>_maskm): Ditto.
5166         (avx512f_vternlog<mode>_mask): Ditto.
5167         (avx512f_shufps512_mask): Ditto.
5168         (avx512f_fixupimm<mode>_mask): Ditto.
5169         (avx512f_shufpd512_mask): Ditto.
5170         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
5171         (avx512f_<code>v8div16qi2_mask/trunc): Ditto.
5172         (*avx512f_<code>v8div16qi2_store_mask): Ditto.
5173         (ashr<mode>3<mask_name>): Ditto.
5174         (avx512f_vinsert<shuffletype>32x4_mask): Ditto.
5175         (avx512f_vinsert<shuffletype>64x4_mask): Ditto.
5176         (avx512f_shuf_<shuffletype>64x2_mask): Ditto.
5177         (avx512f_shuf_<shuffletype>32x4_mask): Ditto.
5178         (avx512f_pshufdv3_mask): Ditto.
5179         (avx512f_perm<mode>_mask): Ditto.
5180         (avx512f_vpermi2var<mode>3_mask): Ditto.
5181         (avx512f_vpermt2var<mode>3_mask): Ditto.
5182         (avx512f_compress<mode>_mask): Ditto.
5183         (avx512f_compressstore<mode>_mask): Ditto.
5184         (avx512f_expand<mode>_mask): Ditto.
5185         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Extend
5186         to support masking.
5187         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
5188         (<plusminus_insn><mode>3<mask_name>): Ditto.
5189         (*<plusminus_insn><mode>3<mask_name>): Ditto.
5190         (mul<mode>3<mask_name>): Ditto.
5191         (*mul<mode>3<mask_name>): Ditto.
5192         (<sse>_div<mode>3<mask_name>): Ditto.
5193         (<mask_codefor>rcp14<mode><mask_name>): Ditto.
5194         (<sse>_sqrt<mode>2<mask_name>): Ditto.
5195         (<mask_codefor>rsqrt14<mode><mask_name>): Ditto.
5196         (<code><mode>3<mask_name>/smaxmin): Ditto.
5197         (*<code><mode>3_finite<mask_name>/smaxmin): Ditto.
5198         (*<code><mode>3<mask_name>/smaxmin): Ditto.
5199         (float<sseintvecmodelower><mode>2<mask_name>): Ditto.
5200         (ufloatv16siv16sf2<mask_name>): Ditto.
5201         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name>): Ditto.
5202         (<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name>): Ditto.
5203         (<fixsuffix>fix_truncv16sfv16si2<mask_name>): Ditto.
5204         (float<si2dfmodelower><mode>2<mask_name>): Ditto.
5205         (ufloatv8siv8df<mask_name>): Ditto.
5206         (<mask_codefor>avx512f_cvtpd2dq512<mask_name>): Ditto.
5207         (avx512f_ufix_notruncv8dfv8si<mask_name>): Ditto.
5208         (<fixsuffix>fix_truncv8dfv8si2<mask_name>): Ditto.
5209         (<mask_codefor>avx512f_cvtpd2ps512<mask_name>): Ditto.
5210         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix><mask_name>): Ditto.
5211         (<mask_codefor>avx512f_unpckhps512<mask_name>): Ditto.
5212         (<mask_codefor>avx512f_unpcklps512<mask_name>): Ditto.
5213         (<mask_codefor>avx512f_movshdup512<mask_name>): Ditto.
5214         (<mask_codefor>avx512f_movsldup512<mask_name>): Ditto.
5215         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
5216         (vec_extract_lo_<mode><mask_name>): Ditto.
5217         (vec_extract_hi_<mode><mask_name>): Ditto.
5218         (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
5219         (avx512f_movddup512<mask_name>): Ditto.
5220         (avx512f_unpcklpd512<mask_name>): Ditto.
5221         (*avx512f_unpcklpd512<mask_name>): Ditto.
5222         (*avx512f_vmscalef<mode>): Ditto.
5223         (avx512f_scalef<mode><mask_name>): Ditto.
5224         (avx512f_getexp<mode><mask_name>): Ditto.
5225         (<mask_codefor>avx512f_align<mode><mask_name>): Ditto.
5226         (avx512f_rndscale<mode><mask_name>): Ditto.
5227         (avx512f_shufps512_1<mask_name>): Ditto.
5228         (avx512f_shufpd512_1<mask_name>): Ditto.
5229         (<plusminus_insn><mode>3<mask_name>): Ditto.
5230         (*<plusminus_insn><mode>3<mask_name>): Ditto.
5231         (vec_widen_umult_even_v16si<mask_name>): Ditto.
5232         (*vec_widen_umult_even_v16si<mask_name>): Ditto.
5233         (vec_widen_smult_even_v16si<mask_name>): Ditto.
5234         (*vec_widen_smult_even_v16si<mask_name>): Ditto.
5235         (mul<mode>3<mask_name>): Ditto.
5236         (*<sse4_1_avx2>_mul<mode>3<mask_name>): Ditto.
5237         (<shift_insn><mode>3<mask_name>): Ditto.
5238         (avx512f_<rotate>v<mode><mask_name>/rotate): Ditto.
5239         (avx512f_<rotate><mode><mask_name>): Ditto.
5240         (<code><mode>3<mask_name>/maxmin): Ditto.
5241         (*avx2_<code><mode>3<mask_name>/maxmin): Ditto.
5242         (<sse2_avx2>_andnot<mode>3<mask_name>): Ditto.
5243         (*andnot<mode>3<mask_name>): Ditto.
5244         (<mask_codefor><code><mode>3<mask_name>/any_logic): Ditto.
5245         (<mask_codefor>avx512f_interleave_highv16si<mask_name>): Ditto.
5246         (<mask_codefor>avx512f_interleave_lowv16si<mask_name>): Ditto.
5247         (<mask_codefor>avx512f_vinsert<shuffletype>32x4_1<mask_name>): Ditto.
5248         (vec_set_lo_<mode><mask_name>): Ditto.
5249         (vec_set_hi_<mode><mask_name>): Ditto.
5250         (avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ditto.
5251         (avx512f_shuf_<shuffletype>32x4_1<mask_name>): Ditto.
5252         (avx512f_pshufd_1<mask_name>): Ditto.
5253         (<mask_codefor>abs<mode>2<mask_name>): Ditto.
5254         (<mask_codefor>avx512f_<code>v16qiv16si2<mask_name>): Ditto.
5255         (avx512f_<code>v16hiv16si2<mask_name>/any_extend): Ditto.
5256         (avx512f_<code>v8qiv8di2<mask_name>/any_extend): Ditto.
5257         (avx512f_<code>v8hiv8di2<mask_name>/any_extend): Ditto.
5258         (avx512f_<code>v8siv8di2<mask_name>/any_extend): Ditto.
5259         (avx512er_exp2<mode><mask_name>): Ditto.
5260         (<mask_codefor>avx512er_rcp28<mode><mask_name>): Ditto.
5261         (<mask_codefor>avx512er_rsqrt28<mode><mask_name>): Ditto.
5262         (<avx2_avx512f>_permvar<mode><mask_name>): Ditto.
5263         (<avx2_avx512f>_perm<mode>_1<mask_name>): Ditto.
5264         (<mask_codefor>avx512f_vec_dup<mode><mask_name>): Ditto.
5265         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V16FI): Ditto.
5266         (<mask_codefor>avx512f_broadcast<mode><mask_name>/V8FI): Ditto.
5267         (<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>): Ditto.
5268         (<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>): Ditto.
5269         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF2): Ditto.
5270         (<sse2_avx_avx512f>_vpermil<mode><mask_name>/VF1): Ditto.
5271         (*<sse2_avx_avx512f>_vpermilp<mode><mask_name>): Ditto.
5272         (<sse2_avx_avx512f>_vpermilvar<mode>3<mask_name>): Ditto.
5273         (<avx2_avx512f>_ashrv<mode><mask_name>): Ditto.
5274         (<avx2_avx512f>_<shift_insn>v<mode><mask_name>): Ditto.
5275         (<mask_codefor>avx512f_vcvtph2ps512<mask_name>): Ditto.
5276         (<mask_codefor>avx512f_vcvtps2ph512<mask_name>): Ditto.
5277         (avx512f_getmant<mode><mask_name>): Ditto.
5278         (clz<mode>2<mask_name>): Ditto.
5279         (<mask_codefor>conflict<mode><mask_name>): Ditto.
5280         (*srcp14<mode>): Remove visibility.
5281         (*rsqrt14<mode>): Ditto.
5282         (*fma_fmsub_<mode>): Ditto.
5283         (*fma_fnmadd_<mode>): Ditto.
5284         (*avx512f_rndscale<mode>): Ditto.
5285         * config/i386/subst.md: New file.
5287 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
5289         * doc/extend.texi (Statement Exprs, Typeof): Discuss __auto_type.
5290         * ginclude/stdatomic.h (kill_dependency, atomic_store_explicit)
5291         (atomic_load_explicit, atomic_exchange_explicit)
5292         (atomic_compare_exchange_strong_explicit)
5293         (atomic_compare_exchange_weak_explicit): Use __auto_type to
5294         declare variable initialized with PTR argument.
5296 2013-11-12  Jeff Law  <law@redhat.com>
5298         * tree-ssa-threadedge.c (thread_around_empty_blocks): New argument
5299         backedge_seen_p.  Set, use and pass it to children appropriately.
5300         (thread_through_normal_block): Similarly.
5301         (thread_across_edge): Similarly.
5303         * gimple-ssa-isolate-paths.c (check_loadstore): Mark discovered
5304         memory references as volatile.
5305         (insert_trap_and_remove_trailing_statements): Fix comment.
5307 2013-11-12  Vladimir Makarov  <vmakarov@redhat.com>
5309         PR other/58712
5310         * ira-costs.c (record_operand_costs): Check operands number for
5311         the single set.
5313 2013-11-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
5315         PR target/59054
5316         * config/rs6000/rs6000.md (movdi_internal32): Eliminate
5317         constraints that would allow DImode into the traditional Altivec
5318         registers, but cause undesirable code generation when loading 0 as
5319         a constant.
5320         (movdi_internal64): Likewise.
5321         (cmp<mode>_fpr): Do not use %x for CR register output.
5322         (extendsfdf2_fpr): Fix constraints when -mallow-upper-df and
5323         -mallow-upper-sf debug switches are used.
5325 2013-11-12  Andrew MacLeod  <amacleod@redhat.com>
5327         * gimple-expr.h (create_tmp_var_name, create_tmp_var_raw,
5328         create_tmp_var, create_tmp_reg, mark_addressable, is_gimple_reg_rhs):
5329         Relocate prototypes from gimple.h.
5330         * gimplify.h: New File.  Relocate some prototypes from gimple.h here.
5331         (gimple_predicate, enum fallback, enum gimplify_status): Relocate
5332         from gimple.h.
5333         * gimple.h: Move some prototypes to gimplify.h.
5334         (gimple_predicate, enum fallback, enum gimplify_status): Move to
5335         gimplify.h.
5336         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location):
5337         Relocate from gimpify.c.
5338         * gimple-expr.c (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5339         create_tmp_var_raw, create_tmp_var, create_tmp_reg, mark_addressable,
5340         is_gimple_reg_rhs) Relocate from gimplify.c.
5341         * gimplify.c (mark_addressable): Move to gimple-expr.c.
5342         (gimple_seq_add_stmt_without_update): Move to gimple.c.
5343         (remove_suffix, tmp_var_id_num, create_tmp_var_name,
5344         create_tmp_var_raw, create_tmp_var, create_tmp_reg,
5345         is_gimple_reg_rhs): Move to gimple-expr.c.
5346         (should_carry_location_p): Move to gimple.c.
5347         (gimple_do_not_emit_location_p, gimple_set_do_not_emit_location): Move
5348         to gimple.h.
5349         (annotate_one_with_location, annotate_all_with_location_after,
5350         annotate_all_with_location): Move to gimple.c.
5351         (compare_case_labels, sort_case_labels,
5352         preprocess_case_label_vec_for_gimple): Move to gimple.c.
5353         (rhs_predicate_for): Make static.
5354         (gimplify_assign): Relocate from gimple.c.
5355         * gimple.c (gimplify_assign): Move to gimplify.c.
5356         (gimple_seq_add_stmt_without_update, should_carry_location_p,
5357         annotate_one_with_location, annotate_all_with_location_after,
5358         annotate_all_with_location, compare_case_labels, sort_case_labels,
5359         preprocess_case_label_vec_for_gimple): Relocate from gimplify.c.
5360         * tree.h (unshare_expr, unshare_expr_without_location,
5361         mark_addressable): Move prototypes to gimplify.h.
5362         * Makefile.in (GTFILES): gimple-expr.c now has the GTY tag for
5363         tmp_var_id_num
5364         * asan.c: Include gimplify.h rather than gimple.h.
5365         * cfgloopmanip.c: Likewise.
5366         * cgraphunit.c: Likewise.
5367         * cilk-common.c: Likewise.
5368         * dwarf2out.c: Dont include gimple.h.
5369         * fold-const.c: Include gimplify.h rather than gimple.h.
5370         * function.c: Likewise.
5371         * gimple-fold.c: Likewise.
5372         * gimple-ssa-strength-reduction.c: Likewise.
5373         * graphite-clast-to-gimple.c: Likewise.
5374         * graphite-sese-to-poly.c: Likewise.
5375         * ipa-prop.c: Likewise.
5376         * ipa-split.c: Likewise.
5377         * ipa.c: Likewise.
5378         * langhooks.c: Dont include gimple.h.
5379         * loop-init.c: Include gimplify.h rather than gimple.h.
5380         * omp-low.c: Likewise.
5381         * sese.c: Likewise.
5382         * stor-layout.c: Likewise.
5383         * targhooks.c: Likewise.
5384         * trans-mem.c: Likewise.
5385         * tree-affine.c: Likewise.
5386         * tree-cfg.c: Likewise.
5387         * tree-cfgcleanup.c: Likewise.
5388         * tree-complex.c: Likewise.
5389         * tree-if-conv.c: Likewise.
5390         * tree-inline.c: Likewise.
5391         * tree-iterator.c: Likewise.
5392         * tree-loop-distribution.c: Likewise.
5393         * tree-nested.c: Likewise.
5394         * tree-parloops.c: Likewise.
5395         * tree-predcom.c: Likewise.
5396         * tree-profile.c: Likewise.
5397         * tree-scalar-evolution.c: Likewise.
5398         * tree-sra.c: Likewise.
5399         * tree-ssa-address.c: Likewise.
5400         * tree-ssa-ccp.c: Likewise.
5401         * tree-ssa-dce.c: Likewise.
5402         * tree-ssa-forwprop.c: Likewise.
5403         * tree-ssa-ifcombine.c: Likewise.
5404         * tree-ssa-loop-im.c: Likewise.
5405         * tree-ssa-loop-ivopts.c: Likewise.
5406         * tree-ssa-loop-manip.c: Likewise.
5407         * tree-ssa-loop-niter.c: Likewise.
5408         * tree-ssa-loop-prefetch.c: Likewise.
5409         * tree-ssa-loop-unswitch.c: Likewise.
5410         * tree-ssa-math-opts.c: Likewise.
5411         * tree-ssa-phiopt.c: Likewise.
5412         * tree-ssa-phiprop.c: Likewise.
5413         * tree-ssa-pre.c: Likewise.
5414         * tree-ssa-propagate.c: Likewise.
5415         * tree-ssa-reassoc.c: Likewise.
5416         * tree-ssa-sccvn.c: Likewise.
5417         * tree-ssa-strlen.c: Likewise.
5418         * tree-ssa.c: Likewise.
5419         * tree-switch-conversio: Likewise.n.c
5420         * tree-tailcall.c: Likewise.
5421         * tree-vect-data-refs.c: Likewise.
5422         * tree-vect-generic.c: Likewise.
5423         * tree-vect-loop-manip.c: Likewise.
5424         * tree-vect-loop.c: Likewise.
5425         * tree-vect-patterns.c: Likewise.
5426         * tree-vect-stmts.c: Likewise.
5427         * tsan.c: Likewise.
5428         * value-prof.c: Likewise.
5429         * config/aarch64/aarch64.c: Include gimplify.h instead of gimple.h.
5430         * config/alpha/alpha.c: Likewise.
5431         * config/darwin.c: Likewise.
5432         * config/i386/i386.c: Likewise.
5433         * config/ia64/ia64.c: Likewise.
5434         * config/mep/mep.c: Likewise.
5435         * config/mips/mips.c: Likewise.
5436         * config/rs6000/rs6000.c: Likewise.
5437         * config/s390/s390.c: Likewise.
5438         * config/sh/sh.c: Likewise.
5439         * config/sparc/sparc.c: Likewise.
5440         * config/spu/spu.c: Likewise.
5441         * config/stormy16/stormy16.c: Likewise.
5442         * config/tilegx/tilegx.c: Likewise.
5443         * config/tilepro/tilepro.c: Likewise.
5444         * config/xtensa/xtensa.c: Likewise.
5446 2013-11-12  Adam Butcher  <adam@jessamine.co.uk>
5448         * tree.c (grow_tree_vec_stat): New function ...
5449         * tree.h (grow_tree_vec_stat) (grow_tree_vec): ... and its declaration
5450         and macro front-end.
5452 2013-11-12  Marek Polacek  <polacek@redhat.com>
5454         * final.c (update_alignments): Initialize label to NULL_RTX.
5456 2013-11-12  Jeff Law  <law@redhat.com>
5458         * gimple-ssa-isolate-paths.c (check_loadstore): New function.
5459         (insert_trap_and_remove_trailing_statements): New argument OP which
5460         is the NULL pointer.  Emit the trap after the load/store through
5461         the NULL pointer.  Simplify the RHS of a store through a NULL pointer
5462         when trivial to do so.
5463         (isolate_path): Corresponding changes.
5464         (gimple_ssa_isolate_erroneous_path): Likewise.
5466 2013-11-12  Teresa Johnson  <tejohnson@google.com>
5467             Jan Hubicka  <jh@suse.cz>
5469         * predict.c (drop_profile): New function.
5470         (handle_missing_profiles): Ditto.
5471         (counts_to_freqs): Don't overwrite estimated frequencies
5472         when function has no profile counts.
5473         * predict.h (handle_missing_profiles): Declare.
5474         * tree-inline.c (freqs_to_counts): New function.
5475         (copy_cfg_body): Invoke freqs_to_counts as needed.
5476         * tree-profile.c (tree_profiling): Invoke handle_missing_profiles.
5478 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
5480         PR target/59088
5481         * config/i386/x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL):
5482         Set for m_HASWELL.
5483         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Set for m_HASWELL.
5485 2013-11-12  H.J. Lu  <hongjiu.lu@intel.com>
5487         PR target/59084
5488         * config/i386/i386.c (ix86_option_override_internal): Check
5489         X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL and
5490         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL for
5491         MASK_AVX256_SPLIT_UNALIGNED_LOAD and
5492         MASK_AVX256_SPLIT_UNALIGNED_STORE.
5494         * config/i386/x86-tune.def (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL):
5495         Clear m_COREI7_AVX and update comments.
5496         (X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): Likewise.
5498 2013-11-12  Martin Jambor  <mjambor@suse.cz>
5500         PR rtl-optimization/10474
5501         * ira.c (interesting_dest_for_shprep): New function.
5502         (split_live_ranges_for_shrink_wrap): Likewise.
5503         (find_moveable_pseudos): Move calculation of dominance info,
5504         df_analysios and the final anlyses to...
5505         (ira): ...here, call split_live_ranges_for_shrink_wrap.
5507 2013-11-12  Bin Cheng  <bin.cheng@arm.com>
5509         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Refactor the code.
5510         Handle type conversion.
5512 2013-11-11  Martin Liska  <marxin.liska@gmail.com>
5513             Jan Hubicka  <jh@suse.cz>
5515         * cgraph.c (dump_cgraph_node): Profile dump added.
5516         * cgraph.h (struct cgraph_node): New time profile variable added.
5517         * cgraphclones.c (cgraph_clone_node): Time profile is cloned.
5518         * gcov-io.h (gcov_type): New profiler type introduced.
5519         * ipa-profile.c (lto_output_node): Streaming for time profile added.
5520         (input_node): Time profiler is read from LTO stream.
5521         * predict.c (maybe_hot_count_p): Hot prediction changed.
5522         * profile.c (instrument_values): New case for time profiler added.
5523         (compute_value_histograms): Read of time profile.
5524         * tree-pretty-print.c (dump_function_header): Time profiler is dumped.
5525         * tree-profile.c (init_ic_make_global_vars): Time profiler
5526         function added.
5527         (gimple_init_edge_profiler): TP function instrumentation.
5528         (gimple_gen_time_profiler): New.
5529         * value-prof.c (gimple_add_histogram_value): Support for time profiler
5530         added.
5531         (dump_histogram_value): TP type added to dumps.
5532         (visit_hist): More sensitive check that takes TP into account.
5533         (gimple_find_values_to_profile): TP instrumentation.
5534         * value-prof.h (hist_type): New histogram type added.
5535         (struct histogram_value_t): Pointer to struct function added.
5536         * libgcc/Makefile.in: New GCOV merge function for TP added.
5537         * libgcov.c: function_counter variable introduced.
5538         (_gcov_merge_time_profile): New.
5539         (_gcov_time_profiler): New.
5541 2013-11-11  Marc Glisse  <marc.glisse@inria.fr>
5542             Jeff Law  <law@redhat.com>
5544         * tree-ssa-alias.c (stmt_kills_ref_p_1): Use
5545         ao_ref_init_from_ptr_and_size for builtins.
5547 2013-11-11  Uros Bizjak  <ubizjak@gmail.com>
5548             H.J. Lu  <hongjiu.lu@intel.com>
5550         PR target/58853
5551         * config/i386/x86-tune.def
5552         (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
5553         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES.
5554         * config/i386/i386.h
5555         (TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Rename from
5556         TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES.  Update for renamed
5557         X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES.
5558         * config/i386/i386.c (ix86_expand_set_or_movmem): Use
5559         TARGET_MISALIGNED_MOVE_STRING_PRO_EPILOGUES to calculate
5560         misaligned_prologue_used.  Check that
5561         desired_aling <= epilogue_size_needed.
5563 2013-11-11  Cong Hou  <congh@google.com>
5565         PR tree-optimization/59050
5566         * tree-vect-data-refs.c (comp_dr_addr_with_seg_len_pair): Bug fix.
5568 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
5570         PR middle-end/59049
5571         * expmed.c (emit_store_flag): Fail for const-const comparison.
5573 2013-11-11  Tristan Gingold  <gingold@adacore.com>
5574             Eric Botcazou  <ebotcazou@adacore.com>
5576         * tree.h (CONSTRUCTOR_NO_CLEARING): Define.
5577         * tree-core.h (CONSTRUCTOR_NO_CLEARING): Document it.
5578         * tree.def (CONSTRUCTOR): Likewise.
5579         * doc/generic.texi (CONSTRUCTOR): Likewise.  Update description.
5580         * gimplify.c (gimplify_init_constructor): Do not clear the object when
5581         the constructor is incomplete and CONSTRUCTOR_NO_CLEARING is set.
5583 2013-11-11  Basile Starynkevitch  <basile@starynkevitch.net>
5585         * toplev.c (toplev_main): Move PLUGIN_FINISH invocation before
5586         diagnostic_finish.
5588 2013-11-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5590         * config/arm/arm.c (arm_new_rtx_costs): Return after handling
5591         comparisons.
5593 2013-11-11  Joern Rennecke  <joern.rennecke@embecosm.com>
5595         * config/arc/arc.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
5597 2013-11-08  Jeff Law  <law@redhat.com>
5599         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
5600         threading paths first, then perform PHI node checks if applicable.
5602 2013-11-10  Karlson2k  <k2k@narod.ru>
5603             Kai Tietz  <ktietz@redhat.com>
5605         PR plugin/52872
5606         * configure.ac: Adding for exported symbols check
5607         and for rdynamic-check executable-extension.
5608         * configure: Regenerated.
5610 2013-11-10  Uros Bizjak  <ubizjak@gmail.com>
5612         * mode-switching.c (optimize_mode_switching): Mark block as
5613         nontransparent, if last_mode at block exit is different from no_mode.
5615 2013-11-09  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
5617         * function.c (NAME__MAIN): Move to...
5618         * cfgexpand.c (NAME__MAIN): ...here.
5620 2013-11-09  Richard Sandiford  <rdsandiford@googlemail.com>
5622         * target.def (can_use_doloop_p): New hook.
5623         * doc/tm.texi.in (TARGET_CAN_USE_DOLOOP_P): Add.
5624         * doc/tm.texi: Regenerate.
5625         * doc/md.texi (doloop_begin, doloop_end): Update documentation.
5626         * hooks.h (hook_bool_dint_dint_uint_true): Declare.
5627         * hooks.c (hook_bool_dint_dint_uint_true): New function.
5628         * targhooks.h (can_use_doloop_if_innermost): Declare.
5629         * targhooks.c (can_use_doloop_if_innermost): New function.
5630         * target.h: Include double-int.h.
5631         * loop-doloop.c (doloop_optimize): Call targetm.can_use_doloop_p.
5632         Remove iteration count, maximum iteration count, loop depth and
5633         enter-at-top inputs from doloop_begin and doloop_end.
5634         * config/arc/arc.md (doloop_begin, doloop_end): Update for new
5635         interface.
5636         * config/arc/arc.c (arc_can_use_doloop_p): New function.
5637         (TARGET_CAN_USE_DOLOOP_P): Define.
5638         * config/arm/thumb2.md (doloop_end): Update for new interface.
5639         * config/arm/arm.c (TARGET_CAN_USE_DOLOOP_P): Define.
5640         * config/bfin/bfin.md (doloop_end): Update for new interface.
5641         * config/bfin/bfin.c (bfin_can_use_doloop_p): New function.
5642         (TARGET_CAN_USE_DOLOOP_P): Define.
5643         * config/c6x/c6x.md (doloop_end): Update for new interface.
5644         * config/ia64/ia64.md (doloop_end): Update for new interface.
5645         * config/ia64/ia64.c (TARGET_CAN_USE_DOLOOP_P): Define.
5646         * config/mep/mep.md (doloop_begin, doloop_end): Update for new
5647         interface.
5648         * config/mep/mep.c (mep_emit_doloop): Likewise.
5649         (TARGET_CAN_USE_DOLOOP_P): Define.
5650         * config/rs6000/rs6000.md (doloop_end): Update for new interface.
5651         * config/rs6000/rs6000.c (TARGET_CAN_USE_DOLOOP_P): Define.
5652         * config/s390/s390.md (doloop_end): Update for new interface.
5653         * config/sh/sh.md (doloop_end): Likewise.
5654         * config/spu/spu.md (doloop_end): Likewise.
5655         * config/spu/spu.c (TARGET_CAN_USE_DOLOOP_P): Define.
5656         * config/tilegx/tilegx.md (doloop_end): Update for new interface.
5657         * config/tilegx/tilegx.c (TARGET_CAN_USE_DOLOOP_P): Define.
5658         * config/tilepro/tilepro.md (doloop_end): Update for new interface.
5659         * config/tilepro/tilepro.c (TARGET_CAN_USE_DOLOOP_P): Define.
5660         * config/v850/v850.md (doloop_begin, doloop_end): Update for new
5661         interface.
5662         * config/v850/v850.c (TARGET_CAN_USE_DOLOOP_P): Define.
5664 2013-11-08  H.J. Lu  <hongjiu.lu@intel.com>
5666         PR other/59055
5667         * doc/extend.texi: Move Cilk Plus Builtins node before Other
5668         Builtins node.
5670 2013-11-08  Andrew MacLeod  <amacleod@redhat.com>
5671             Joseph Myers  <joseph@codesourcery.com>
5673         * ginclude/stdatomic.h: New file.
5674         * Makefile.in (USER_H): Add stdatomic.h.
5676 2013-11-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5678         * config/arm/arm.c (arm_new_rtx_costs): Break after handling
5679         comparisons.
5681 2013-11-08  Jeff Law  <law@redhat.com>
5683         * tree-ssa-threadupdate.h (delete_thread_path): Declare.
5684         * tree-ssa-threadupdate.c (delete_thread_path): New function.
5685         (ssa_redirect_edges, thread_block_1): Use it.
5686         (thread_through_loop_header, mark_threaded_blocks): Likewise.
5687         (thread_through_all_blocks, register_jump_thread): Likewise.
5688         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
5690 2013-11-08  James Greenhalgh  <james.greenhalgh@arm.com>
5692         * config/arm/aarch-common.c
5693         (search_term): New typedef.
5694         (shift_rtx_costs): New array.
5695         (arm_rtx_shift_left_p): New.
5696         (arm_find_sub_rtx_with_search_term): Likewise.
5697         (arm_find_sub_rtx_with_code): Likewise.
5698         (arm_early_load_addr_dep): Add sanity checking.
5699         (arm_no_early_alu_shift_dep): Likewise.
5700         (arm_no_early_alu_shift_value_dep): Likewise.
5701         (arm_no_early_mul_dep): Likewise.
5702         (arm_no_early_store_addr_dep): Likewise.
5704 2013-11-08  Richard Biener  <rguenther@suse.de>
5706         PR tree-optimization/59047
5707         * tree-predcom.c (ref_at_iteration): Handle bitfield accesses properly.
5709 2013-11-08  Ilya Enkovich  <ilya.enkovich@intel.com>
5711         * common.opt (fcheck-pointer-bounds): Move to ...
5712         * c-family/c.opt: ... here.
5713         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): Remove.
5714         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CHKP_SUPPORTED.
5715         * langhooks.h (lang_hooks): Remove chkp_supported field.
5716         * toplev.c (process_options): Remove chkp_supported check.
5718 2013-11-08  Richard Biener  <rguenther@suse.de>
5720         PR tree-optimization/59038
5721         PR tree-optimization/58955
5722         * tree-loop-distribution.c (pg_add_dependence_edges): Revert
5723         previous change.  Handle known dependences correctly.
5725 2013-11-08  Tom de Vries  <tom@codesourcery.com>
5727         * config/rs6000/t-xilinx: Remove duplicate contents.
5729 2013-11-07  Andrew MacLeod  <amacleod@redhat.com>
5730             Joseph Myers  <joseph@codesourcery.com>
5732         * tree-core.h (enum cv_qualifier): Add TYPE_QUAL_ATOMIC.
5733         (enum tree_index): Add TI_ATOMICQI_TYPE, TI_ATOMICHI_TYPE,
5734         TI_ATOMICSI_TYPE, TI_ATOMICDI_TYPE and TI_ATOMICTI_TYPE.
5735         (struct tree_base): Add atomic_flag field.
5736         * tree.h (TYPE_ATOMIC): New accessor macro.
5737         (TYPE_QUALS, TYPE_QUALS_NO_ADDR_SPACE): Add TYPE_QUAL_ATOMIC.
5738         (TYPE_QUALS_NO_ADDR_SPACE_NO_ATOMIC): New macro.
5739         (atomicQI_type_node, atomicHI_type_node, atomicSI_type_node)
5740         (atomicDI_type_node, atomicTI_type_node): New macros for type nodes.
5741         * tree.c (set_type_quals): Set TYPE_ATOMIC.
5742         (find_atomic_core_type): New function.
5743         (build_qualified_type): Adjust alignment for qualified types.
5744         (build_atomic_base): New function
5745         (build_common_tree_nodes): Build atomicQI_type_node,
5746         atomicHI_type_node, atomicSI_type_node, atomicDI_type_node and
5747         atomicTI_type_node.
5748         * print-tree.c (print_node): Print atomic qualifier.
5749         * tree-pretty-print.c (dump_generic_node): Print atomic type attribute.
5750         * target.def (atomic_assign_expand_fenv): New hook.
5751         * doc/tm.texi.in (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New @hook.
5752         * doc/tm.texi: Regenerate.
5753         * targhooks.c (default_atomic_assign_expand_fenv): New function.
5754         * targhooks.h (default_atomic_assign_expand_fenv): Declare.
5755         * sync-builtins.def (__atomic_feraiseexcept): New built-in function.
5756         * config/i386/i386-builtin-types.def (VOID_FTYPE_PUSHORT): New
5757         function type.
5758         * config/i386/i386.c (enum ix86_builtins): Add
5759         IX86_BUILTIN_FNSTENV, IX86_BUILTIN_FLDENV, IX86_BUILTIN_FNSTSW and
5760         IX86_BUILTIN_FNCLEX.
5761         (bdesc_special_args): Add __builtin_ia32_fnstenv,
5762         __builtin_ia32_fldenv, __builtin_ia32_fnstsw and __builtin_ia32_fnclex.
5763         (ix86_expand_builtin): Handle the new built-in functions.
5764         (ix86_atomic_assign_expand_fenv): New function.
5765         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New macro.
5766         * config/i386/i386.md (UNSPECV_FNSTENV, UNSPECV_FLDENV)
5767         (UNSPECV_FNSTSW, UNSPECV_FNCLEX): New unspecs.
5768         (fnstenv, fldenv, fnstsw, fnclex): New insns.
5770 2013-11-07  Steve Ellcey  <sellcey@mips.com>
5772         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add fp64 directory.
5773         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add -mfp64 flag.
5774         (MULTILIB_DIRNAMES): Add fp64 directory.
5775         (MULTILIB_EXCEPTIONS): Add new exclusions.
5777 2013-11-07  Aldy Hernandez  <aldyh@redhat.com>
5779         * gimplify.c (gimple_regimplify_operands): Do not set
5780         SSA_NAME_DEF_STMT.
5781         * graphite-sese-to-poly.c (remove_simple_copy_phi): Same.
5782         (rewrite_close_phi_out_of_ssa): Same.
5783         (rewrite_phi_out_of_ssa): Same.
5784         (rewrite_degenerate_phi): Same.
5785         (handle_scalar_deps_crossing_scop_limits): Same.
5786         * tree-if-conv.c (predicate_scalar_phi): Same.
5787         * tree-parloops.c (create_loads_for_reductions): Same.
5788         (create_final_loads_for_reduction): Same.
5789         (create_loads_and_stores_for_name): Same.
5790         (transform_to_exit_first_loop): Same.
5791         (create_parallel_loop): Same.
5792         * tree-ssa-loop-im.c
5793         (move_computations_dom_walker::before_dom_children): Same.
5794         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Same.
5795         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Same.
5796         * tree-ssa-propagate.c (substitute_and_fold): Same.
5797         * tree-vect-loop.c (vect_finalize_reduction): Same.
5798         * tree-vect-stmts.c (vectorizable_call): Same.
5800 2013-11-07  Mike Stump  <mikestump@comcast.net>
5802         * config/pdp11/pdp11.c: Include dbxout.h.
5803         * config/picochip/picochip.c: Likewise.
5805 2013-11-07  Cong Hou  <congh@google.com>
5807         PR tree-optimization/56764
5808         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
5809         Combine alias checks if it is possible to amortize the runtime
5810         overhead.  Return the number of alias checks after merging.
5811         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5812         Use the function vect_create_cond_for_alias_checks () to check
5813         the number of alias checks.
5815 2013-11-07  Jeff Law  <law@redhat.com>
5817         * varpool.c (ctor_for_folding): Fix typo in comment.
5819 2013-11-07  Joern Rennecke  <joern.rennecke@embecosm.com>
5821         * config/arc/arc.c (arc_ifcvt): Use commutativity, e.g.:
5822         reg_a := reg_b + reg_a  ==>  reg_a := reg_a + reg_b
5824 2013-11-07  Jeff Law  <law@redhat.com>
5826         * doc/invoke.texi (-fisolate-erroneous-paths): Document.
5828         * gimple-ssa-isolate-paths.c (gate_isolate_erroneous_paths):
5829         No longer check if we have __builtin_trap, assume it's available.
5831 2013-11-07  Diego Novillo  <dnovillo@google.com>
5833         * attribs.c (lookup_scoped_attribute_spec): Make static.
5834         (get_attribute_namespace): Likewise.
5835         * builtins.c (more_const_call_expr_args_p): Move from tree.h.
5836         (validate_arglist): Move earlier in the file. Make static.
5837         (expand_stack_restore): Move from stmt.c
5838         (expand_stack_save): Move from stmt.c
5839         (rewrite_call_expr_array): Move earlier in the file.
5840         (rewrite_call_expr_valist): Likewise.
5841         * cfgexpand.c: Include hard-reg-set.h before tree.h
5842         Include recog.h.
5843         Include output.h.
5844         (expand_asm_loc): Move from stmt.c.
5845         (n_occurrences): Move from stmt.c.
5846         (check_operand_nalternatives): Move from stmt.c.
5847         (tree_conflicts_with_clobbers_p): Move from stmt.c.
5848         (expand_asm_operands): Move from stmt.c
5849         (expand_asm_stmt): Move from stmt.c
5850         (expand_computed_goto): Move from stmt.c
5851         (expand_goto): Move from stmt.c
5852         (expand_null_return_1): Move from stmt.c
5853         (expand_null_return): Move from stmt.c
5854         (expand_value_return): Move from stmt.c
5855         (expand_return): Move from stmt.c
5856         (expand_main_function): Move from function.c
5857         (stack_protect_prologue): Move from function.c
5858         * cgraphclones.c (build_function_type_skip_args): Move from tree.c.
5859         (build_function_decl_skip_args): Move from tree.c.
5860         * explow.c (tree_expr_size): Move from tree.c.
5861         * expr.c (addr_expr_of_non_mem_decl_p): Remove.
5862         (fields_length): Move from tree.c.
5863         * fold-const.c (size_low_cst): Move from tree.c.
5864         (tree_expr_nonzero_warnv_p): Make static. Move earlier in the file.
5865         (tree_expr_nonzero_p): Make static. Move earlier in the file.
5866         (fold_build3_initializer_loc): Remove.
5867         (tree_invalid_nonnegative_warnv_p): Make static.
5868         * function.c (expand_main_function): Move to cfgexpand.c.
5869         (stack_protect_prologue): Move to cfgexpand.c.
5870         (set_insn_locations): Move earlier in the file.
5871         * gimple-fold.c: Include langhooks.h.
5872         (truth_type_for): Move from tree.c.
5873         * print-tree.c (print_vec_tree): Remove.
5874         * stmt.c (expand_computed_goto): Move to cfgexpand.c.
5875         (expand_goto): Move to cfgexpand.c.
5876         (n_occurrences): Move to cfgexpand.c.
5877         (expand_asm_loc): Move to cfgexpand.c
5878         (tree_conflicts_with_clobbers_p): Move to cfgexpand.c.
5879         (expand_asm_operands): Move to cfgexpand.c.
5880         (expand_asm_stmt): Move to cfgexpand.c.
5881         (check_operand_nalternatives): Move to cfgexpand.c
5882         (expand_null_return): Move to cfgexpand.c.
5883         (expand_value_return): Move to cfgexpand.c.
5884         (expand_null_return_1): Move to cfgexpand.c.
5885         (expand_return): Move to cfgexpand.c.
5886         (expand_stack_save): Move to builtins.c.
5887         (expand_stack_restore): Move to builtins.c
5888         * symtab.c: Include output.h.
5889         (decl_assembler_name_hash): Move from tree.c.
5890         (decl_assembler_name_equal): Move from tree.c.
5891         * trans-mem.c (is_tm_safe_or_pure): Move from tree.h.
5892         * tree-eh.c (in_array_bounds_p): Move from tree.c.
5893         (range_in_array_bounds_p): Move from tree.c.
5894         * tree-object-size.c (fini_object_sizes): Make static.
5895         * tree-ssa-dom.c (iterative_hash_exprs_commutative): Move from tree.h.
5896         * tree-vrp.c (ssa_name_nonnegative_p): Remove.
5897         * tree.c (decl_assembler_name_equal): Move to symtab.c.
5898         (tree_expr_size): Move to explow.c.
5899         (decl_assembler_name_hash): Move to symtab.c.
5900         (real_twop): Remove.
5901         (tree_expr_size): Move to explow.c.
5902         (stabilize_reference_1): Move earlier in the file. Make static.
5903         (omp_remove_redundant_declare_simd_attrs): Remove.
5904         (simple_cst_list_equal): Move earlier in the file. Make static.
5905         (size_low_cst): Move to fold-const.c.
5906         (build_type_no_quals): Remove.
5907         (build_function_type_skip_args): Move to cgraphclones.c.
5908         (build_function_decl_skip_args): Move to cgraphclones.c.
5909         (in_array_bounds_p): Move to tree-eh.c.
5910         (range_in_array_bounds_p): Move to tree-eh.c.
5911         (truth_type_for): Move to gimple-fold.c.
5912         (list_equal_p): Remove.
5913         * tree.h (decl_assembler_name_equal): Remove.
5914         (decl_assembler_name_hash): Remove.
5915         (truth_type_for): Remove.
5916         (build_type_no_quals): Remove.
5917         (build_function_decl_skip_args): Remove.
5918         (in_array_bounds_p): Remove.
5919         (range_in_array_bounds_p): Remove.
5920         (size_low_cst): Remove.
5921         (omp_remove_redundant_declare_simd_attrs): Remove.
5922         (tree_expr_size): Remove.
5923         (fields_length): Remove.
5924         (stabilize_reference_1): Remove.
5925         (expand_goto): Remove.
5926         (expand_stack_save): Remove.
5927         (expand_stack_restore): Remove.
5928         (expand_return): Remove.
5929         (fold_build3_initializer_loc): Remove.
5930         (tree_expr_nonzero_p): Remove.
5931         (tree_invalid_nonnegative_warnv_p): Remove.
5932         (tree_expr_nonzero_warnv_p): Remove.
5933         (fold_builtin_snprintf_chk): Remove.
5934         (validate_arglist): Remove.
5935         (iterative_hash_exprs_commutative): Move to tree-ssa-dom.c.
5936         (simple_cst_list_equal): Remove.
5937         (real_twop): Remove.
5938         (expand_main_function): Remove.
5939         (stack_protect_prologue): Remove.
5940         (print_vec_tree): Remove.
5941         (lookup_scoped_attribute_spec): Remove.
5942         (get_attribute_namespace): Remove.
5943         (expand_computed_goto): Remove.
5944         (expand_asm_stmt): Remove.
5945         (list_equal_p): Remove.
5946         (ssa_name_nonnegative_p): Remove.
5947         (fini_object_sizes): Remove.
5948         (addr_expr_of_non_mem_decl_p): Remove.
5949         (is_tm_safe_or_pure): Move to trans-mem.c.
5950         (more_const_call_expr_args_p): Remove.
5951         (save_vtable_map_decl): Remove.
5953 2013-11-07  Thomas Schwinge  <thomas@codesourcery.com>
5955         * doc/sourcebuild.texi (Top Level) <lto-plugin>: GNU ld can use
5956         linker plugins, too.
5958         * config/arc/arc.h (LINK_COMMAND_SPEC): For -ftree-parallelize-loops=*,
5959         link to libgomp and its dependencies.
5960         * config/ia64/hpux.h (LIB_SPEC): Likewise.
5961         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
5962         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
5963         * gcc.c (GOMP_SELF_SPECS): Update comment about libgomp's dependencies.
5965 2013-11-07  Jakub Jelinek  <jakub@redhat.com>
5967         * tree-ssa-loop-niter.c: Include tree-ssanames.h.
5968         (determine_value_range): Add loop argument.  Use get_range_info to
5969         improve range.
5970         (bound_difference): Adjust caller.
5972 2013-11-07  Richard Biener  <rguenther@suse.de>
5973             Jakub Jelinek  <jakub@redhat.com>
5975         * tree-vrp.c (find_assert_locations): Pre-seed live bitmaps for loop
5976         latches from header PHI arguments from the latch edge.
5978 2013-11-07  Paolo Carlini  <paolo.carlini@oracle.com>
5980         PR c++/58176
5981         * varasm.c (output_constant): Handle NULLPTR_TYPE.
5983 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
5985         * config/i386/i386.c (ix86_expand_set_or_movmem): Don't set
5986         misaligned_prologue_used when it has been set.
5988 2013-11-07  Yury Gribov  <y.gribov@samsung.com>
5989             Jakub Jelinek  <jakub@redhat.com>
5991         PR sanitizer/59029
5992         * asan.c (get_mem_refs_of_builtin_call): Allow
5993         integer literals as addresses in instrumented builtins.
5995 2013-11-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5997         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
5998         Explain why plus_constant is not used.
6000 2013-11-07  Richard Biener  <rguenther@suse.de>
6002         * tree-ssa-ccp.c (canonicalize_float_value): Rename to ...
6003         (canonicalize_value): ... this.  Also handle stripping of
6004         TREE_OVERFLOW.
6005         (get_value, set_lattice_value, get_value_for_expr): Adjust.
6006         * gimple-fold.c (canonicalize_constructor_val): Strip TREE_OVERFLOW.
6007         * tree-ssa-threadedge.c (set_ssa_name_value): Likewise.
6009 2013-11-07  Richard Biener  <rguenther@suse.de>
6011         * tree-dfa.c (get_ref_base_and_extent): Fix casting.
6013 2013-11-07  H.J. Lu  <hongjiu.lu@intel.com>
6015         PR target/59034
6016         * config/i386/i386.md (push peepholer/splitter): Use Pmode
6017         with stack_pointer_rtx.
6019 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
6021         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Check equality
6022         using operand_equal_p.
6024 2013-11-07  Bin Cheng  <bin.cheng@arm.com>
6026         * tree-ssa-loop-ivopts.c (alloc_iv): Lower address expressions.
6027         * tree-affine.c (get_inner_reference_aff): Return base.
6028         * tree-affine.h (get_inner_reference_aff): Change prototype.
6030 2013-11-06  Tobias Burnus  <burnus@net-b.de>
6032         * doc/invoke.texi (Wdate-time): Fix typo.
6034 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
6036         * config/sh/sh.md (addsf3, divsf3, divsf3_i, rsqrtsf2, cmpgtdf_t,
6037         cmpeqdf_t, *ieee_ccmpeqdf_t, negdf2, sqrtdf2, absdf2): Use
6038         fp_arith_reg_operand instead of arith_reg_operand.
6040 2013-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
6042         * config/sh/sh.md (adddi3): Remove empty constraints.
6043         Remove can_create_pseudo_p and arith_reg_operand check.
6044         (adddi3_compact, subdi3_compact, *negdi2): Remove constraints.
6045         Split before reload.
6047 2013-11-06  Jeff Law  <law@redhat.com>
6048             Tom Tromey  <tromey@redhat.com>
6050         * gdbinit.in: Disable strict type checking.
6052 2013-11-06  Vladimir Makarov  <vmakarov@redhat.com>
6054         * tree-pass.h (make_pass_live_range_shrinkage): New external.
6055         * timevar.def (TV_LIVE_RANGE_SHRINKAGE): New.
6056         * sched-rgn.c (gate_handle_live_range_shrinkage): New.
6057         (rest_of_handle_live_range_shrinkage): Ditto
6058         (class pass_live_range_shrinkage): Ditto.
6059         (pass_data_live_range_shrinkage): Ditto.
6060         (make_pass_live_range_shrinkage): Ditto.
6061         * sched-int.h (initialize_live_range_shrinkage): New prototype.
6062         (finish_live_range_shrinkage): Ditto.
6063         * sched-deps.c (create_insn_reg_set): Make void return value.
6064         * passes.def: Add pass_live_range_shrinkage.
6065         * ira.c (update_equiv_regs): Don't move if flag_live_range_shrinkage.
6066         * haifa-sched.c (live_range_shrinkage_p): New.
6067         (initialize_live_range_shrinkage, finish_live_range_shrinkage):
6068         New functions.
6069         (rank_for_schedule): Add code for pressure relief through live
6070         range shrinkage.
6071         (schedule_insn): Print more debug info.
6072         (sched_init): Setup SCHED_PRESSURE_WEIGHTED for pressure relief
6073         through live range shrinkage.
6074         * doc/invoke.texi (-flive-range-shrinkage): New.
6075         * common.opt (flive-range-shrinkage): New.
6077 2013-11-06  Uros Bizjak  <ubizjak@gmail.com>
6079         PR target/59021
6080         * config/i386/i386.c (ix86_avx_u128_mode_needed): Require
6081         AVX_U128_DIRTY mode for call_insn RTXes that use AVX256 registers.
6082         (ix86_avx_u128_mode_needed): Return AVX_U128_DIRTY mode for call_insn
6083         RTXes that return in AVX256 register.
6085 2013-11-06  Richard Biener  <rguenther@suse.de>
6087         PR tree-optimization/58653
6088         * tree-predcom.c (ref_at_iteration): Rewrite to generate a MEM_REF.
6089         (prepare_initializers_chain): Adjust.
6091 2013-11-06  Andrew MacLeod  <amacleod@redhat.com>
6093         * gimple.h (block_in_transaction): Move to basic-block.h and rename.
6094         (gimple_in_transaction): Use bb_in_transaction.
6095         * basic-block.h (bb_in_transaction): Relocate here and rename.
6096         * tree-ssa-loop-im.c (execute_sm): Use bb_in_transaction.
6098 2013-11-06  Richard Biener  <rguenther@suse.de>
6100         * tree.c (drop_tree_overflow): New function.
6101         * tree.h (drop_tree_overflow): Declare.
6102         * gimplify.c (gimplify_expr): Drop TREE_OVERFLOW.
6103         * tree-vrp.c (range_int_cst_singleton_p): Use
6104         is_overflow_infinity instead of testing TREE_OVERFLOW.
6105         (extract_range_from_assert): Likewise.
6106         (zero_nonzero_bits_from_vr): Likewise.
6107         (extract_range_basic): Likewise.
6108         (register_new_assert_for): Use drop_tree_overflow.
6109         (vrp_visit_phi_node): Likewise.
6111 2013-11-06  Eric Botcazou  <ebotcazou@adacore.com>
6113         * config/i386/i386.c (ix86_expand_prologue): Optimize stack
6114         checking for leaf functions without dynamic stack allocation.
6115         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
6116         (ia64_expand_prologue): Likewise.
6117         * config/mips/mips.c (mips_expand_prologue): Likewise.
6118         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
6119         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
6120         (sparc_flat_expand_prologue): Likewise.
6122 2013-11-06  James Greenhalgh  <james.greenhalgh@arm.com>
6124         * config/aarch64/arm_neon.h (__ST2_LANE_FUNC): Better model data size.
6125         (__ST3_LANE_FUNC): Likewise.
6126         (__ST4_LANE_FUNC): Likewise.
6128 2013-11-06  Nick Clifton  <nickc@redhat.com>
6130         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define the
6131         name returned by msp430_mcu_name.
6132         (LIB_SPEC): If a -T option has not been specified then set a
6133         default, mcu-specific, linker script.
6134         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more mcu names.
6135         * config/msp430/msp430.c (msp430x_names): Likewise.
6136         Alpha sort the names for ease of comparison.
6137         (msp430_mcu_name): New function:  Returns a string suitable for
6138         use as a C preprocessor symbol based upon the name of the MCU
6139         being targeted.
6140         (msp430_option_override): Accept msp430x and msp430xv2 as generic
6141         mcu names.
6142         * config/msp430/msp430-protos.h (msp430_mcu_name): Prototype.
6144         * gcc.c (do_spec_1): Do not insert a space after a %* substitution
6145         unless it is the last part of a spec substring.
6146         * doc/invoke.texi (Spec Files): Document space insertion
6147         behaviour of %*.
6149 2013-11-06  Christian Bruel  <christian.bruel@st.com>
6151         * config/sh/sh-mem.cc (sh_expand_cmpnstr, sh_expand_cmpstr):
6152         Factorize probabilities, Use adjust_address instead of
6153         adjust_automodify_address when possible. Enable for optimize.
6154         (sh_expand_strlen): New function.
6155         * config/sh/sh-protos.h (sh_expand_strlen): Declare.
6156         * config/sh/sh.md (strlensi): New pattern.
6157         (UNSPEC_BUILTIN_STRLEN): Define.
6159 2013-11-06  Jakub Jelinek  <jakub@redhat.com>
6161         PR middle-end/58970
6162         * expr.c (get_bit_range): Handle *offset == NULL_TREE.
6163         (expand_assignment): If *bitpos is negative, set *offset
6164         and adjust *bitpos, so that it is not negative.
6166 2013-11-06  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
6168         * config/i386/bdver3.md : Added two additional decoder units
6169         to support issue rate of 4 and remodeled vector unit.
6170         * config/i386/i386.c (ix86_issue_rate): Issue rate for BD
6171         architectures is set to 4.
6172         * config/i386/i386.c (ia32_multipass_dfa_lookahead): DFA
6173         lookahead is set to 4 for BD architectures.
6175 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6177         * config/rs6000/rs6000.c (rs6000_option_override_internal):
6178         Remove restriction against use of VSX instructions when generating
6179         code for little endian mode.
6181 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6183         * config/rs6000/altivec.md (mulv4si3): Ensure we generate vmulouh
6184         for both big and little endian.
6185         (mulv8hi3): Swap input operands for merge high and merge low
6186         instructions for little endian.
6188 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6190         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Change
6191         define_insn to define_expand that uses even patterns for big
6192         endian and odd patterns for little endian.
6193         (vec_widen_smult_even_v16qi): Likewise.
6194         (vec_widen_umult_even_v8hi): Likewise.
6195         (vec_widen_smult_even_v8hi): Likewise.
6196         (vec_widen_umult_odd_v16qi): Likewise.
6197         (vec_widen_smult_odd_v16qi): Likewise.
6198         (vec_widen_umult_odd_v8hi): Likewise.
6199         (vec_widen_smult_odd_v8hi): Likewise.
6200         (altivec_vmuleub): New define_insn.
6201         (altivec_vmuloub): Likewise.
6202         (altivec_vmulesb): Likewise.
6203         (altivec_vmulosb): Likewise.
6204         (altivec_vmuleuh): Likewise.
6205         (altivec_vmulouh): Likewise.
6206         (altivec_vmulesh): Likewise.
6207         (altivec_vmulosh): Likewise.
6209 2013-11-05  Mike Stump  <mikestump@comcast.net>
6211         * Makefile.in (mostlyclean): Remove c-family objects.
6213 2013-11-05  Ian Lance Taylor  <iant@google.com>
6215         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
6216         If possible, add .cfi directives to record change to bx.
6217         * config/i386/i386.c (ix86_emit_cfi): New function.
6218         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
6220 2013-11-05  Steven Bosscher  <steven@gcc.gnu.org>
6222         * rtlanal.c (tablejump_p): Expect a JUMP_TABLE_DATA to always follow
6223         immediately after a label for a tablejump pattern.
6225         * config/arm/arm.c (is_jump_table): Remove.
6226         (create_fix_barrier): Use tablejump_p instead.
6227         (arm_reorg): Likewise.
6228         (thumb1_output_casesi): Expect JUMP_TABLE_DATA to always be NEXT_INSN.
6229         (thumb2_output_casesi): Likewise.
6230         * config/aarch64/aarch64.c (aarch64_output_casesi): Likewise.
6231         * config/sh/sh.md (casesi_worker_1, casesi_worker_2,
6232         casesi_shift_media, casesi_load_media): Likewise.
6233         * config/iq2000/iq2000.md: Likewise (in anonymous define_insn).
6234         * config/microblaze/microblaze.md: Likewise.
6236 2013-11-05  Tobias Burnus  <burnus@net-b.de>
6238         * doc/invoke.texi (-Wdate-time): Document.
6240 2013-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
6242         * double-int.c (lshift_double, rshift_double): Remove
6243         SHIFT_COUNT_TRUNCATED handling.
6245 2013-11-05  Jeff Law  <law@redhat.com>
6247         * Makefile.in (OBJS): Add gimple-ssa-isolate-paths.o
6248         * common.opt (-fisolate-erroneous-paths): Add option and documentation.
6249         * gimple-ssa-isolate-paths.c: New file.
6250         * gimple.c (check_loadstore): New function.
6251         (infer_nonnull_range): Moved into gimple.c from tree-vrp.c
6252         Verify OP is in the argument list and the argument corresponding
6253         to OP is a pointer type.  Use operand_equal_p rather than
6254         pointer equality when testing if OP is on the nonnull list.
6255         Use check_loadstore rather than count_ptr_derefs.  Handle
6256         GIMPLE_RETURN statements.
6257         * tree-vrp.c (infer_nonnull_range): Remove.
6258         * gimple.h (infer_nonnull_range): Declare.
6259         * opts.c (default_options_table): Add OPT_fisolate_erroneous_paths.
6260         * passes.def: Add pass_isolate_erroneous_paths.
6261         * timevar.def (TV_ISOLATE_ERRONEOUS_PATHS): New timevar.
6262         * tree-pass.h (make_pass_isolate_erroneous_paths): Declare.
6263         * tree-ssa.c (struct count_ptr_d): Remove.
6264         (count_ptr_derefs, count_uses_and_derefs): Remove.
6265         * tree-ssa.h (count_uses_and_derefs): Remove.
6267 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
6269         PR rtl-optimization/58997
6270         * loop-iv.c (iv_subreg): For IV_UNKNOWN_EXTEND, expect
6271         get_iv_value to be in iv->mode rather than iv->extend_mode.
6272         (iv_extend): Likewise.  Otherwise, if iv->extend != extend,
6273         use lowpart_subreg on get_iv_value before calling simplify_gen_unary.
6274         * loop-unswitch.c (may_unswitch_on): Make sure op[i] is in the right
6275         mode.
6277 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
6279         * gimple.h: Move some prototypes to gimple-expr.h and add to include
6280         list.
6281         (extract_ops_from_tree, gimple_call_addr_fndecl, is_gimple_reg_type):
6282         Move to gimple-expr.h.
6283         * gimple-expr.h: New file.  Relocate some prototypes from gimple.h.
6284         (types_compatible_p, is_gimple_reg_type, is_gimple_variable,
6285         is_gimple_id, virtual_operand_p, is_gimple_addressable,
6286         is_gimple_constant, extract_ops_from_tree, gimple_call_addr_fndecl):
6287         Relocate here.
6288         * gimple.c (extract_ops_from_tree_1, gimple_cond_get_ops_from_tree,
6289         gimple_set_body, gimple_body, gimple_has_body_p, is_gimple_lvalue,
6290         is_gimple_condexpr, is_gimple_addressable, is_gimple_constant,
6291         is_gimple_address, is_gimple_invariant_address,
6292         is_gimple_ip_invariant_address, is_gimple_min_invariant,
6293         is_gimple_ip_invariant, is_gimple_variable, is_gimple_id,
6294         virtual_operand_p, is_gimple_reg, is_gimple_val, is_gimple_asm_val,
6295         is_gimple_min_lval, is_gimple_call_addr, is_gimple_mem_ref_addr,
6296         gimple_decl_printable_name, useless_type_conversion_p,
6297         types_compatible_p, gimple_can_coalesce_p, copy_var_decl): Move to
6298         gimple-expr.[ch].
6299         * gimple-expr.c: New File.
6300         (useless_type_conversion_p, gimple_set_body, gimple_body,
6301         gimple_has_body_p, gimple_decl_printable_name, copy_var_decl,
6302         gimple_can_coalesce_p, extract_ops_from_tree_1,
6303         gimple_cond_get_ops_from_tree, is_gimple_lvalue, is_gimple_condexpr,
6304         is_gimple_address, is_gimple_invariant_address,
6305         is_gimple_ip_invariant_address, is_gimple_min_invariant,
6306         is_gimple_ip_invariant, is_gimple_reg, is_gimple_val,
6307         is_gimple_asm_val, is_gimple_min_lval, is_gimple_call_addr,
6308         is_gimple_mem_ref_addr): Relocate here.
6309         * Makefile.in (OBJS): Add gimple-expr.o.
6311 2013-11-05  David Malcolm  <dmalcolm@redhat.com>
6313         * gengtype-parse.c (struct_field_seq): Support empty structs.
6315 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
6317         * config/i386/t-rtems (MULTILIB_MATCHES): Fix option typos.
6319 2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
6321         * config/i386/i386-c.c (ix86_target_macros): Define _SOFT_FLOAT
6322         for !TARGET_80387.
6323         * config/i386/rtemself.h (TARGET_OS_CPP_BUILTINS): Do not define
6324         _SOFT_FLOAT here.
6325         (LONG_DOUBLE_TYPE_SIZE): New define.
6326         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Ditto.
6328 2013-11-05  Paolo Carlini  <paolo.carlini@oracle.com>
6330         PR c++/58724
6331         * doc/extend.texi [visibility ("visibility_type")]: Add example
6332         about visibility attribute on namespace declaration.
6334 2013-11-05  Richard Biener  <rguenther@suse.de>
6336         PR ipa/58492
6337         * passes.def (all_passes): Start with pass_fixup_cfg again.
6339 2013-11-05  Richard Biener  <rguenther@suse.de>
6341         PR tree-optimization/58955
6342         * tree-loop-distribution.c (pg_add_dependence_edges): Fix
6343         edge direction.
6345 2013-11-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6347         * config/rs6000/vector.md (vec_pack_sfix_trunc_v2df): Adjust for
6348         little endian.
6349         (vec_pack_ufix_trunc_v2df): Likewise.
6351 2013-11-05  H.J. Lu  <hongjiu.lu@intel.com>
6353         PR middle-end/58981
6354         * doc/md.texi (@code{movmem@var{m}}): Specify Pmode as mode of
6355         pattern, instead of word_mode.
6357         * expr.c (emit_block_move_via_movmem): Don't use mode wider than
6358         Pmode for size.
6359         (set_storage_via_setmem): Likewise.
6361 2013-11-05  Andrew MacLeod  <amacleod@redhat.com>
6363         * tree-outof-ssa.c (queue_phi_copy_p): Combine phi_ssa_name_p from
6364         gimple.h and the rest of the condition in eliminate_build.
6365         (eliminate_build): Call new routine.
6366         * gimple.h (phi_ssa_name_p): Delete.
6368 2013-11-05  Trevor Saunders  <tsaunders@mozilla.com>
6370         * vec.c (vec_prefix::calculate_allocation): Don't try to handle the
6371         case of no prefix and reserving zero slots, because when that's the
6372         case we'll never get here.
6373         * vec.h (va_heap::reserve): Don't try and handle
6374         vec_prefix::calculate_allocation returning zero because that should
6375         never happen.
6377 2013-11-05  Richard Biener  <rguenther@suse.de>
6379         PR middle-end/58941
6380         * tree-dfa.c (get_ref_base_and_extent): Merge common code
6381         in MEM_REF and TARGET_MEM_REF handling.  Make sure to
6382         process trailing array detection before diving into the
6383         view-converted object (and possibly apply some extra offset).
6385 2013-11-05  Joseph Myers  <joseph@codesourcery.com>
6387         * config/i386/i386.c (ix86_float_exceptions_rounding_supported_p):
6388         New function.
6389         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Define.
6391 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
6393         PR tree-optimization/58958
6394         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Use
6395         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
6397 2013-11-05  Marc Glisse  <marc.glisse@inria.fr>
6399         * tree-ssa-alias.h (ranges_overlap_p): Handle negative offsets.
6400         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Likewise.
6402 2013-11-05  Jakub Jelinek  <jakub@redhat.com>
6404         PR tree-optimization/58984
6405         * ipa-prop.c (ipa_load_from_parm_agg_1): Add SIZE_P argument,
6406         set *SIZE_P if non-NULL on success.
6407         (ipa_load_from_parm_agg, ipa_analyze_indirect_call_uses): Adjust
6408         callers.
6409         (ipcp_transform_function): Likewise.  Punt if size of access
6410         is different from TYPE_SIZE on v->value's type.
6412 2013-11-05  Tobias Burnus  <burnus@net-b.de>
6414         * doc/invoke.texi (-fopenmp-simd): Document new option.
6415         * gimplify.c (gimplify_body): Accept -fopenmp-simd.
6416         * omp-low.c (execute_expand_omp, execute_lower_omp): Ditto.
6417         * tree.c (attribute_value_equal): Ditto.
6419 2013-11-04  Wei Mi  <wmi@google.com>
6421         * sched-rgn.c (add_branch_dependences): Keep insns in
6422         a SCHED_GROUP at the end of BB to remain their location.
6424 2013-11-04  Wei Mi  <wmi@google.com>
6426         * config/i386/i386.c (memory_address_length): Extract a part
6427         of code to rip_relative_addr_p.
6428         (rip_relative_addr_p): New Function.
6429         (ix86_macro_fusion_p): Ditto.
6430         (ix86_macro_fusion_pair_p): Ditto.
6431         * config/i386/i386.h: Add new tune features about macro-fusion.
6432         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6433         * doc/tm.texi: Generated.
6434         * doc/tm.texi.in: Ditto.
6435         * haifa-sched.c (try_group_insn): New Function.
6436         (group_insns_for_macro_fusion): Ditto.
6437         (sched_init): Call group_insns_for_macro_fusion.
6438         * target.def: Add two hooks: macro_fusion_p and
6439         macro_fusion_pair_p.
6441 2013-11-04  Kostya Serebryany  <kcc@google.com>
6443         Update to match the changed asan API.
6444         * asan.c (asan_function_start): New function.
6445         (asan_emit_stack_protection): Update the string stored in the
6446         stack red zone to match new API.  Store the PC of the current
6447         function in the red zone.
6448         (asan_global_struct): Update the __asan_global definition to match
6449         the new API.
6450         (asan_add_global): Ditto.
6451         * asan.h (asan_function_start): New prototype.
6452         * final.c (final_start_function): Call asan_function_start.
6453         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v1
6454         to __asan_init_v3.
6456 2013-11-04  Wei Mi  <wmi@google.com>
6458         * config/i386/i386-c.c (ix86_target_macros_internal): Separate
6459         PROCESSOR_COREI7_AVX out from PROCESSOR_COREI7.
6460         * config/i386/i386.c (ix86_option_override_internal): Ditto.
6461         (ix86_issue_rate): Ditto.
6462         (ix86_adjust_cost): Ditto.
6463         (ia32_multipass_dfa_lookahead): Ditto.
6464         (ix86_sched_init_global): Ditto.
6465         (get_builtin_code_for_version): Ditto.
6466         * config/i386/i386.h (enum target_cpu_default): Ditto.
6467         (enum processor_type): Ditto.
6468         * config/i386/x86-tune.def (DEF_TUNE): Ditto.
6470 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
6472         PR rtl-optimization/58967
6473         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
6474         !lra_in_progress for mode sizes bigger word.
6476 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6478         * config/rs6000/altivec.md (vec_widen_umult_hi_v16qi): Swap
6479         arguments to merge instruction for little endian.
6480         (vec_widen_umult_lo_v16qi): Likewise.
6481         (vec_widen_smult_hi_v16qi): Likewise.
6482         (vec_widen_smult_lo_v16qi): Likewise.
6483         (vec_widen_umult_hi_v8hi): Likewise.
6484         (vec_widen_umult_lo_v8hi): Likewise.
6485         (vec_widen_smult_hi_v8hi): Likewise.
6486         (vec_widen_smult_lo_v8hi): Likewise.
6488 2013-11-04  Ian Lance Taylor  <iant@google.com>
6490         * builtins.def (ATTR_NOTHROWCALL_LEAF_LIST): Define.
6491         * sync-builtins.def: Use ATTR_NOTHROWCALL_LEAF_LIST for all sync
6492         builtins that take pointers.
6493         * lto-opts.c (lto_write_options): Write -fnon-call-exceptions if set.
6494         * lto-wrapper.c (merge_and_complain): Collect OPT_fnon_call_exceptions.
6495         (run_gcc): Pass -fnon-call-exceptions.
6497 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
6499         * optabs.c (expand_vec_perm): Revert one incorrect line from
6500         2013-10-31 change.
6502         PR tree-optimization/58978
6503         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): Don't modify
6504         use_stmt by single_imm_use directly.  Only call single_imm_use
6505         on SSA_NAMEs.
6507 2013-11-04  Vladimir Makarov  <vmakarov@redhat.com>
6509         PR rtl-optimization/58968
6510         * lra-spills.c (return_regno_p): New function.
6511         (lra_final_code_change): Use it.
6513 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
6515         * doc/cpp.texi (__GCC_IEC_559, __GCC_IEC_559_COMPLEX): Document macros.
6516         * target.def (float_exceptions_rounding_supported_p): New hook.
6517         * targhooks.c (default_float_exceptions_rounding_supported_p): New
6518         function.
6519         * targhooks.h (default_float_exceptions_rounding_supported_p): Declare.
6520         * doc/tm.texi.in (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P):
6521         New @hook.
6522         * doc/tm.texi: Regenerate.
6523         * config.gcc (powerpc*-*-linux*): Set extra_objs.
6524         * config/rs6000/rs6000-linux.c: New file.
6525         * config/rs6000/rs6000-protos.h
6526         (rs6000_linux_float_exceptions_rounding_supported_p): Declare.
6527         * config/rs6000/linux.h
6528         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): New macro.
6529         * config/rs6000/linux64.h
6530         (TARGET_FLOAT_EXCEPTIONS_ROUNDING_SUPPORTED_P): Likewise.
6531         * config/rs6000/t-linux (rs6000-linux.o): New rule.
6532         * config/rs6000/t-linux64 (rs6000-linux.o): Likewise.
6534 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6536         * config/rs6000/vsx.md (*vsx_le_perm_store_<mode> for VSX_D):
6537         Replace the define_insn_and_split with a define_insn and two
6538         define_splits, with the split after reload re-permuting the source
6539         register to its original value.
6540         (*vsx_le_perm_store_<mode> for VSX_W): Likewise.
6541         (*vsx_le_perm_store_v8hi): Likewise.
6542         (*vsx_le_perm_store_v16qi): Likewise.
6544 2013-11-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6546         * config/rs6000/vector.md (vec_pack_trunc_v2df):  Adjust for
6547         little endian.
6549 2013-11-04  Jakub Jelinek  <jakub@redhat.com>
6551         PR tree-optimization/58946
6552         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Update all
6553         bbs with bbinfo[idx].op != NULL before all blocks with
6554         bbinfo[idx].op == NULL.
6556 2013-11-04  Richard Sandiford  <rdsandiford@googlemail.com>
6558         * config/avr/avr-log.c (avr_double_int_pop_digit): Delete.
6559         (avr_dump_double_int_hex): Likewise.
6560         (avr_log_vadump): Remove %D and %X handling.
6561         * config/avr/avr.c (avr_double_int_push_digit): Delete.
6562         (avr_map_op_t): Change map from double_int to unsigned int.
6563         (avr_map_op): Update accordingly.
6564         (avr_map, avr_map_metric, avr_has_nibble_0xf, avr_map_decompose)
6565         (avr_move_bits, avr_out_insert_bits, avr_fold_builtin): Operate on
6566         unsigned ints rather than double_ints.
6568 2013-11-03  Marek Polacek  <polacek@redhat.com>
6570         Implement -fsanitize=vla-bound.
6571         * opts.c (common_handle_option): Handle vla-bound.
6572         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE): Define.
6573         * flag-types.h (enum sanitize_code): Add SANITIZE_VLA.
6574         * asan.c (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR.
6576 2013-11-02  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
6578         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Adjust for
6579         little endian.
6581 2013-11-02  Uros Bizjak  <ubizjak@gmail.com>
6583         * config/i386/constraints.md (Ts, Tv): New address constrains.
6584         * config/i386/i386.md (*lea<mode>, *<mode>_<bndcheck>): Use Ts
6585         constraint for address_no_seg_operand.
6586         * config/i386/sse.md (*avx512pf_gatherpf<mode>_mask)
6587         (*avx512pf_gatherpf<mode>, *avx512pf_scatterpf<mode>_mask)
6588         (*avx512pf_scatterpf<mode>, *avx2_gathersi<mode>)
6589         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>, *avx2_gatherdi<mode>_2)
6590         (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4)
6591         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2)
6592         (*avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2)
6593         (*avx512f_scattersi<mode> *avx512f_scatterdi<mode>): Use Tv
6594         constraint for vsib_address_operand.
6596 2013-11-02  Steven Bosscher  <steven@gcc.gnu.org>
6598         * gcse.c (pre_delete): Remove references to regmove from comments.
6599         * recog.c: (validate_replace_rtx_1): Likewise.
6600         * config/rl78/rl78.c: Likewise.
6601         * config/v850/v850.h: Likewise, and remove unused ENABLE_REGMOVE_PASS.
6602         * common/config/m32r/m32r-common.c: Don't manipulate OPT_fregmove.
6603         * common/config/mmix/mmix-common.c: Likewise.
6605 2013-11-01  Trevor Saunders  <tsaunders@mozilla.com>
6607         * function.c (reorder_blocks): Convert block_stack to a stack_vec.
6608         * gimplify.c (gimplify_compound_lval): Likewise.
6609         * graphite-clast-to-gimple.c (gloog): Likewise.
6610         * graphite-dependences.c (loop_is_parallel_p): Likewise.
6611         * graphite-scop-detection.c (scopdet_basic_block_info): Likewise.
6612         (limit_scop); Likewise.
6613         (build_scops): Likewise.
6614         (dot_scop): Likewise.
6615         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
6616         (build_scop_drs): Likewise.
6617         (insert_stmts): Likewise.
6618         (insert_out_of_ssa_copy): Likewise.
6619         (remove_phi): Likewise.
6620         (rewrite_commutative_reductions_out_of_ssa_close_phi): Likewise.
6621         * hw-doloop.c (discover_loop): Likewise.
6622         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Likewise.
6623         * tree-dfa.c (dump_enumerated_decls): Likewise.
6624         * tree-if-conv.c (if_convertable_loop_p): Likewise.
6625         * tree-inline.c (tree_function_versioning): Likewise.
6626         * tree-loop-distribution.c (build_rdg): Likewise.
6627         (rdg_flag_vertex_and_dependent): Likewise.
6628         (distribute_loop): Likewise.
6629         * tree-parloops.c (loop_parallel_p): Likewise.
6630         (eliminate_local_variables): Likewise.
6631         (separate_decls_in_region): Likewise.
6632         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
6633         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
6634         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
6635         * tree-vect-loop.c (vect_analyze_scaler_cycles_1): Likewise.
6636         * tree-vect-patterns.c (vect_pattern_recog): Likewise.
6637         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
6638         (vectorizable_condition): Likewise.
6640 2013-11-01  Uros Bizjak  <ubizjak@gmail.com>
6642         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): Always define as 0/1.
6643         * configure: Regenerate.
6644         * config/i386/i386.md (*movdi_internal): Change
6645         HAVE_AS_IX86_INTERUNIT_MOVQ to runtime check.
6646         (*movdf_internal): Ditto.
6647         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
6648         * config/i386/sse.md (vec_concatv2di): Output interunit movq
6649         for HAVE_AS_IX86_INTERUNIT_MOVQ targets.
6651 2013-10-31  Robert Suchanek  <Robert.Suchanek@imgtec.com>
6653         * lra-spills.c (assign_spill_hard_regs): Remove statement terminator
6654         after comment.
6656 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
6658         Automated part of renaming of symtab_node_base to symtab_node.
6660         Patch autogenerated by rename_symtab.py from
6661         https://github.com/davidmalcolm/gcc-refactoring-scripts
6662         revision 58bb219cc090b2f4516a9297d868c245495ee622
6663         with ChangeLog entry fixed up by hand.
6665         * cgraph.c (x_cgraph_nodes_queue): Rename symtab_node_base to
6666         symtab_node.
6667         (cgraph_node_for_asm): Likewise.
6668         * cgraph.h (symtab_node_base): Likewise.
6669         (cgraph_node): Likewise.
6670         (varpool_node): Likewise.
6671         (is_a_helper <cgraph_node>::test): Likewise.
6672         (is_a_helper <varpool_node>::test): Likewise.
6673         (symtab_nodes): Likewise.
6674         (symtab_register_node): Likewise.
6675         (symtab_unregister_node): Likewise.
6676         (symtab_remove_node): Likewise.
6677         (symtab_get_node): Likewise.
6678         (symtab_node_for_asm): Likewise.
6679         (symtab_node_asm_name): Likewise.
6680         (symtab_node_name): Likewise.
6681         (symtab_insert_node_to_hashtable): Likewise.
6682         (symtab_add_to_same_comdat_group): Likewise.
6683         (symtab_dissolve_same_comdat_group_list): Likewise.
6684         (dump_symtab_node): Likewise.
6685         (debug_symtab_node): Likewise.
6686         (dump_symtab_base): Likewise.
6687         (verify_symtab_node): Likewise.
6688         (verify_symtab_base): Likewise.
6689         (symtab_used_from_object_file_p): Likewise.
6690         (symtab_alias_ultimate_target): Likewise.
6691         (symtab_resolve_alias): Likewise.
6692         (fixup_same_cpp_alias_visibility): Likewise.
6693         (symtab_for_node_and_aliases): Likewise.
6694         (symtab_nonoverwritable_alias): Likewise.
6695         (availability symtab_node_availability): Likewise.
6696         (symtab_semantically_equivalent_p): Likewise.
6697         (fixup_same_cpp_alias_visibility): Likewise.
6698         (symtab_prevail_in_asm_name_hash): Likewise.
6699         (cgraph): Likewise.
6700         (varpool): Likewise.
6701         (varpool_first_variable): Likewise.
6702         (varpool_next_variable): Likewise.
6703         (varpool_first_static_initializer): Likewise.
6704         (varpool_next_static_initializer): Likewise.
6705         (varpool_first_defined_variable): Likewise.
6706         (varpool_next_defined_variable): Likewise.
6707         (cgraph_first_defined_function): Likewise.
6708         (cgraph_next_defined_function): Likewise.
6709         (cgraph_first_function): Likewise.
6710         (cgraph_next_function): Likewise.
6711         (cgraph_first_function_with_gimple_body): Likewise.
6712         (cgraph_next_function_with_gimple_body): Likewise.
6713         (symtab_alias_target): Likewise.
6714         (symtab_real_symbol_p): Likewise.
6715         (symtab_can_be_discarded): Likewise.
6716         * cgraphbuild.c (mark_address): Likewise.
6717         (mark_load): Likewise.
6718         (mark_store): Likewise.
6719         * cgraphunit.c (decide_is_symbol_needed): Likewise.
6720         (first): Likewise.
6721         (enqueue_node): Likewise.
6722         (referred_to_p): Likewise.
6723         (cgraph_process_same_body_aliases): Likewise.
6724         (analyze_functions): Likewise.
6725         (handle_alias_pairs): Likewise.
6726         (output_weakrefs): Likewise.
6727         (compile): Likewise.
6728         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
6729         * ipa-inline-analysis.c (inline_write_summary): Likewise.
6730         * ipa-prop.c (remove_described_reference): Likewise.
6731         (try_decrement_rdesc_refcount): Likewise.
6732         (ipa_edge_duplication_hook): Likewise.
6733         * ipa-ref.c (ipa_record_reference): Likewise.
6734         (ipa_maybe_record_reference): Likewise.
6735         (ipa_clone_ref): Likewise.
6736         (ipa_clone_references): Likewise.
6737         (ipa_clone_referring): Likewise.
6738         (ipa_find_reference): Likewise.
6739         (ipa_remove_stmt_references): Likewise.
6740         (ipa_clear_stmts_in_references): Likewise.
6741         * ipa-ref.h (symtab_node_base): Likewise.
6742         (ipa_ref): Likewise.
6743         (ipa_record_reference): Likewise.
6744         (ipa_maybe_record_reference): Likewise.
6745         (ipa_clone_references): Likewise.
6746         (ipa_clone_referring): Likewise.
6747         (ipa_clone_ref): Likewise.
6748         (ipa_find_reference): Likewise.
6749         (ipa_remove_stmt_references): Likewise.
6750         (ipa_clear_stmts_in_references): Likewise.
6751         * ipa-reference.c (ipa_reference_write_optimization_summary):
6752         Likewise.
6753         * ipa.c (enqueue_node): Likewise.
6754         (process_references): Likewise.
6755         (walk_polymorphic_call_targets): Likewise.
6756         (symtab_remove_unreachable_nodes): Likewise.
6757         (address_taken_from_non_vtable_p): Likewise.
6758         (comdat_can_be_unshared_p_1): Likewise.
6759         (comdat_can_be_unshared_p): Likewise.
6760         (can_replace_by_local_alias): Likewise.
6761         (function_and_variable_visibility): Likewise.
6762         * is-a.h: Likewise (within example in comment).
6763         * lto-cgraph.c (input_cgraph_opt_summary): Likewise.
6764         (lto_symtab_encoder_encode): Likewise.
6765         (lto_symtab_encoder_delete_node): Likewise.
6766         (lto_symtab_encoder_in_partition_p): Likewise.
6767         (lto_set_symtab_encoder_in_partition): Likewise.
6768         (output_refs): Likewise.
6769         (compute_ltrans_boundary): Likewise.
6770         (output_symtab): Likewise.
6771         (input_node): Likewise.
6772         (input_ref): Likewise.
6773         (input_edge): Likewise.
6774         (input_cgraph_1): Likewise.
6775         (input_refs): Likewise.
6776         (output_cgraph_opt_summary): Likewise.
6777         (input_node_opt_summary): Likewise.
6778         (input_cgraph_opt_section): Likewise.
6779         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
6780         Likewise.
6781         * lto-streamer-out.c (lto_output): Likewise.
6782         (output_symbol_p): Likewise.
6783         (produce_symtab): Likewise.
6784         * lto-streamer.h (lto_encoder_entry): Likewise.
6785         (lto_free_function_in_decl_state_for_node): Likewise.
6786         (lto_symtab_encoder_encode): Likewise.
6787         (lto_symtab_encoder_delete_node): Likewise.
6788         (lto_symtab_encoder_in_partition_p): Likewise.
6789         (lto_set_symtab_encoder_in_partition): Likewise.
6790         (lto_symtab_encoder_lookup): Likewise.
6791         (lsei_node): Likewise.
6792         (lto_symtab_encoder_deref): Likewise.
6793         * symtab.c (symtab_hash): Likewise.
6794         (assembler_name_hash): Likewise.
6795         (symtab_nodes): Likewise.
6796         (hash_node): Likewise.
6797         (eq_node): Likewise.
6798         (hash_node_by_assembler_name): Likewise.
6799         (eq_assembler_name): Likewise.
6800         (insert_to_assembler_name_hash): Likewise.
6801         (unlink_from_assembler_name_hash): Likewise.
6802         (symtab_prevail_in_asm_name_hash): Likewise.
6803         (symtab_register_node): Likewise.
6804         (symtab_insert_node_to_hashtable): Likewise.
6805         (symtab_unregister_node): Likewise.
6806         (symtab_get_node): Likewise.
6807         (symtab_remove_node): Likewise.
6808         (symtab_initialize_asm_name_hash): Likewise.
6809         (symtab_node_for_asm): Likewise.
6810         (symtab_add_to_same_comdat_group): Likewise.
6811         (symtab_dissolve_same_comdat_group_list): Likewise.
6812         (symtab_node_asm_name): Likewise.
6813         (symtab_node_name): Likewise.
6814         (dump_symtab_base): Likewise.
6815         (dump_symtab_node): Likewise.
6816         (dump_symtab): Likewise.
6817         (debug_symtab_node): Likewise.
6818         (verify_symtab_base): Likewise.
6819         (verify_symtab_node): Likewise.
6820         (verify_symtab): Likewise.
6821         (symtab_used_from_object_file_p): Likewise.
6822         (symtab_node_availability): Likewise.
6823         (symtab_alias_ultimate_target): Likewise.
6824         (fixup_same_cpp_alias_visibility): Likewise.
6825         (symtab_resolve_alias): Likewise.
6826         (symtab_for_node_and_aliases): Likewise.
6827         (symtab_for_node_and_aliases): Likewise.
6828         (symtab_nonoverwritable_alias_1): Likewise.
6829         (symtab_nonoverwritable_alias): Likewise.
6830         (symtab_semantically_equivalent_p): Likewise.
6831         * value-prof.c (init_node_map): Likewise.
6832         * varasm.c (find_decl): Likewise.
6833         * varpool.c (varpool_node_for_asm): Likewise.
6834         (varpool_remove_unreferenced_decls): Likewise.
6836 2013-10-31  David Malcolm  <dmalcolm@redhat.com>
6838         Manual part of renaming of symtab_node_base to symtab_node.
6840         * ipa-ref.h (symtab_node): Remove typedef to pointer type, as it
6841         clashes with the preferred name for the base class.
6842         (const_symtab_node): Remove redundant typedef.
6844 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
6846         * optabs.c (expand_vec_perm): Avoid vector mode punning
6847         SUBREGs in SET_DEST.
6848         * expmed.c (store_bit_field_1): Likewise.
6849         * config/i386/sse.md (movdi_to_sse, vec_pack_sfix_trunc_v2df,
6850         vec_pack_sfix_v2df, vec_shl_<mode>, vec_shr_<mode>,
6851         vec_interleave_high<mode>, vec_interleave_low<mode>): Likewise.
6852         * config/i386/i386.c (ix86_expand_vector_move_misalign,
6853         ix86_expand_sse_movcc, ix86_expand_int_vcond, ix86_expand_vec_perm,
6854         ix86_expand_sse_unpack, ix86_expand_args_builtin,
6855         ix86_expand_vector_init_duplicate, ix86_expand_vector_set,
6856         emit_reduc_half, expand_vec_perm_blend, expand_vec_perm_pshufb,
6857         expand_vec_perm_interleave2, expand_vec_perm_pshufb2,
6858         expand_vec_perm_vpshufb2_vpermq,
6859         expand_vec_perm_vpshufb2_vpermq_even_odd, expand_vec_perm_even_odd_1,
6860         expand_vec_perm_broadcast_1, expand_vec_perm_vpshufb4_vpermq2,
6861         ix86_expand_sse2_mulv4si3, ix86_expand_pinsr): Likewise.
6862         (expand_vec_perm_palignr): Likewise.  Modify a copy of *d rather
6863         than *d itself.
6865 2013-10-31  Uros Bizjak  <ubizjak@gmail.com>
6867         * config/i386/i386.c (ix86_expand_sse2_abs): Rename function arguments.
6868         Use gcc_unreachable for unhandled modes.  Do not check results of
6869         expand_simple_binop.  If not expanded to target, move the result.
6871 2013-10-31  Chung-Ju Wu  <jasonwucj@gmail.com>
6872             Shiva Chen  <shiva0217@gmail.com>
6874         * config.gcc (nds32*-*-*): Add nds32 target.
6875         * config/nds32/nds32.c: New file.
6876         * config/nds32/nds32.h: New file.
6877         * config/nds32/nds32.md: New file.
6878         * config/nds32/constants.md: New file.
6879         * config/nds32/constraints.md: New file.
6880         * config/nds32/iterators.md: New file.
6881         * config/nds32/nds32-doubleword.md: New file.
6882         * config/nds32/nds32-intrinsic.md: New file.
6883         * config/nds32/nds32_intrinsic.h: New file.
6884         * config/nds32/nds32-modes.def: New file.
6885         * config/nds32/nds32-multiple.md: New file.
6886         * config/nds32/nds32.opt: New file.
6887         * config/nds32/nds32-opts.h: New file.
6888         * config/nds32/nds32-protos.h: New file.
6889         * config/nds32/nds32-peephole2.md: New file.
6890         * config/nds32/pipelines.md: New file.
6891         * config/nds32/predicates.md: New file.
6892         * config/nds32/t-mlibs: New file.
6893         * common/config/nds32: New directory and files.
6895         * doc/invoke.texi (NDS32 options): Document nds32 specific options.
6896         * doc/md.texi (NDS32 family): Document nds32 specific constraints.
6897         * doc/install.texi (Cross-Compiler-Specific Options): Document
6898         --with-nds32-lib for nds32 target.
6899         * doc/extend.texi (Function Attributes, Target Builtins): Document
6900         nds32 specific attributes.
6902 2013-10-31  Vladimir Makarov  <vmakarov@redhat.com>
6904         * lra-constraints (process_alt_operands): Use the result
6905         elimination register for operand when matching constraints.
6907 2013-10-31  Jakub Jelinek  <jakub@redhat.com>
6909         * tree-vrp.c (maybe_set_nonzero_bits): New function.
6910         (remove_range_assertions): Call it.
6912         * tree.c (tree_ctz): New function.
6913         * tree.h (tree_ctz): New prototype.
6914         * tree-ssanames.h (get_range_info, get_nonzero_bits): Change
6915         first argument from tree to const_tree.
6916         * tree-ssanames.c (get_range_info, get_nonzero_bits): Likewise.
6917         * tree-vectorizer.h (vect_generate_tmps_on_preheader): New prototype.
6918         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader): No longer
6919         static.
6920         * expr.c (highest_pow2_factor): Reimplemented using tree_ctz.
6921         * tree-vect-loop.c (vect_analyze_loop_operations,
6922         vect_transform_loop): Don't force scalar loop for bound just because
6923         number of iterations is unknown, only do it if it is not known to be
6924         a multiple of vectorization_factor.
6925         * builtins.c (get_object_alignment_2): Use tree_ctz on offset.
6927         * gimple-pretty-print.c (dump_ssaname_info): Print newline also
6928         in case of VR_VARYING.  Print get_nonzero_bits if not all ones.
6929         * tree-ssanames.h (struct range_info_def): Add nonzero_bits field.
6930         (set_nonzero_bits, get_nonzero_bits): New prototypes.
6931         * tree-ssa-ccp.c (get_default_value): Use get_range_info to see if
6932         a default def isn't partially constant.
6933         (ccp_finalize): If after IPA, set_range_info if integral SSA_NAME
6934         is known to be partially zero.
6935         (evaluate_stmt): If we'd return otherwise VARYING, use get_range_info
6936         to see if a default def isn't partially constant.
6937         * tree-ssanames.c (set_range_info): Initialize nonzero_bits upon
6938         creation of a range, if VR_RANGE, try to improve nonzero_bits from
6939         the range.
6940         (set_nonzero_bits, get_nonzero_bits): New functions.
6942         * tree-cfg.c (assert_unreachable_fallthru_edge_p): New function.
6943         * tree-cfg.h (assert_unreachable_fallthru_edge_p): New prototype.
6944         * tree-vrp.c (all_imm_uses_in_stmt_or_feed_cond): New function.
6945         (remove_range_assertions): If ASSERT_EXPR_VAR has no other immediate
6946         uses but in the condition and ASSERT_EXPR and the other successor of
6947         the predecessor bb is __builtin_unreachable (), set_range_info of the
6948         ASSERT_EXPR_VAR to the range info of the ASSERT_EXPR's lhs.
6950 2013-10-31  Martin Jambor  <mjambor@suse.cz>
6952         PR rtl-optimization/58934
6953         Revert:
6954         2013-10-30  Martin Jambor  <mjambor@suse.cz>
6955         PR rtl-optimization/10474
6956         * ira.c (find_moveable_pseudos): Do not calculate dominance info
6957         nor df analysis.
6958         (interesting_dest_for_shprep): New function.
6959         (split_live_ranges_for_shrink_wrap): Likewise.
6960         (ira): Calculate dominance info and df analysis. Call
6961         split_live_ranges_for_shrink_wrap.
6963 2013-10-31  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
6964             Yury Gribov  <y.gribov@samsung.com>
6966         PR sanitizer/58543
6967         * asan.c (asan_clear_shadow): Allocate a new vreg for temporary
6968         shadow pointer to avoid clobbering the main one.
6970 2013-10-31  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
6972         * lower-subreg.c (resolve_simple_move): Copy REG_INC note.
6974 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
6976         PR bootstrap/58933
6977         * ira-color.c (update_costs_from_copies): Add new parameter.  Use
6978         it for calling update_costs_from_allocno.
6979         (assign_hard_reg): Call restore_costs_from_copies only for
6980         !retry_p.  Pass new argument to update_costs_from_copies.
6981         (color_pass): Pass new argument to update_costs_from_copies.
6982         (ira_mark_allocation_change): Ditto.
6984 2013-10-30  Sharad Singhai  <singhai@google.com>
6986         PR middle-end/58134
6987         * opts.c (common_handle_option): Remove deprecated option
6988         -ftree-vectorizer-verbose.
6989         * doc/invoke.texi (Debugging Options): Ditto.
6990         * opts-global.c (handle_common_deferred_options): Ditto.
6991         (dump_remap_tree_vectorizer_verbose): Delete.
6992         * common.opt: Set -ftree-vectorizer-verbose as an ignored option.
6994 2013-10-30  DJ Delorie  <dj@redhat.com>
6996         * config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins
6997         that take no arguments.
6999 2013-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
7001         PR other/58545
7002         * reload1.c (update_eliminables_and_spill): New function, broken
7003         out of reload.
7004         (reload): Use it.  Check for frame size change after frame size
7005         alignment, and call update_eliminables_and_spill first if continue-ing.
7007 2013-10-30  Cong Hou  <congh@google.com>
7009         PR target/58762
7010         * config/i386/i386-protos.h (ix86_expand_sse2_abs): New function.
7011         * config/i386/i386.c (ix86_expand_sse2_abs): New function.
7012         * config/i386/sse.md: Add SSE2 support to abs (8/16/32-bit-int).
7014 2013-10-18  Mikael Pettersson  <mikpelinux@gmail.com>
7016         PR rtl-optimization/58369
7017         * reload1.c (compute_reload_subreg_offset): New function.
7018         (choose_reload_regs): Use it to pass endian-correct
7019         offset to subreg_regno_offset.
7021 2013-10-30  Tobias Burnus  <burnus@net-b.de>
7023         PR other/33426
7024         * tree-cfg.c (replace_loop_annotate): Replace warning by
7025         warning_at.
7027 2013-10-30  Jason Merrill  <jason@redhat.com>
7029         * configure.ac (loose_warn): Add -Wno-format if
7030         --disable-build-format-warnings.
7032 2013-10-30  David Malcolm  <dmalcolm@redhat.com>
7034         * cgraphunit.c (analyze_functions): Split symtab_node declarations
7035         onto multiple lines to make things easier for rename_symtab.py.
7037         * symtab.c (symtab_dissolve_same_comdat_group_list): Likewise.
7038         (symtab_semantically_equivalent_p): Likewise.
7040 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7042         PR target/58784
7043         * lra.c (check_rtl): Remove address check before LRA work.
7045 2013-10-30  Marc Glisse  <marc.glisse@inria.fr>
7047         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for a
7048         POINTER_PLUS_EXPR in the defining statement.
7050 2013-10-30  Vladimir Makarov  <vmakarov@redhat.com>
7052         * regmove.c: Remove.
7053         * tree-pass.h (make_pass_regmove): Remove.
7054         * timevar.def (TV_REGMOVE): Remove.
7055         * passes.def (pass_regmove): Remove.
7056         * opts.c (default_options_table): Remove entry for regmove.
7057         * doc/passes.texi: Remove regmove pass description.
7058         * doc/invoke.texi (-foptimize-register-move, -fregmove): Remove
7059         options.
7060         (-fdump-rtl-regmove): Ditto.
7061         * common.opt (foptimize-register-move, fregmove): Ignore.
7062         * Makefile.in (OBJS): Remove regmove.o.
7063         * regmove.c: Remove.
7064         * ira-int.h (struct ira_allocno_pref, ira_pref_t): New structure
7065         and type.
7066         (struct ira_allocno) New member allocno_prefs.
7067         (ALLOCNO_PREFS): New macro.
7068         (ira_prefs, ira_prefs_num): New external vars.
7069         (ira_setup_alts, ira_get_dup_out_num, ira_debug_pref): New prototypes.
7070         (ira_debug_prefs, ira_debug_allocno_prefs, ira_create_pref): Ditto.
7071         (ira_add_allocno_pref, ira_remove_pref, ira_remove_allocno_prefs):
7072         Ditto.
7073         (ira_add_allocno_copy_to_list): Remove prototype.
7074         (ira_swap_allocno_copy_ends_if_necessary): Ditto.
7075         (ira_pref_iterator): New type.
7076         (ira_pref_iter_init, ira_pref_iter_cond): New functions.
7077         (FOR_EACH_PREF): New macro.
7078         * ira.c (commutative_constraint_p): Move from ira-conflicts.c.
7079         (ira_get_dup_out_num): Ditto. Rename from get_dup_num.  Modify the
7080         code.
7081         (ira_setup_alts): New function.
7082         (decrease_live_ranges_number): New function.
7083         (ira): Call the above function.
7084         * ira-build.c (ira_prefs, ira_prefs_num): New global vars.
7085         (ira_create_allocno): Initialize allocno prefs.
7086         (pref_pool, pref_vec): New static vars.
7087         (initiate_prefs, find_allocno_pref, ira_create_pref): New
7088         functions.
7089         (add_allocno_pref_to_list, ira_add_allocno_pref, print_pref): Ditto.
7090         (ira_debug_pref, print_prefs, ira_debug_prefs): Ditto.
7091         (print_allocno_prefs, ira_debug_allocno_prefs, finish_pref): Ditto.
7092         (ira_remove_pref, ira_remove_allocno_prefs, finish_prefs): Ditto.
7093         (ira_add_allocno_copy_to_list): Make static.  Rename to
7094         add_allocno_copy_to_list.
7095         (ira_swap_allocno_copy_ends_if_necessary): Make static.  Rename to
7096         swap_allocno_copy_ends_if_necessary.
7097         (remove_unnecessary_allocnos, remove_low_level_allocnos): Call
7098         ira_remove_allocno_prefs.
7099         (ira_flattening): Ditto.
7100         (ira_build): Call initiate_prefs, print_prefs.
7101         (ira_destroy): Call finish_prefs.
7102         * ira-color.c (struct update_cost_record): New.
7103         (struct allocno_color_data): Add new member update_cost_records.
7104         (update_cost_record_pool): New static var.
7105         (init_update_cost_records, get_update_cost_record): New functions.
7106         (free_update_cost_record_list, finish_update_cost_records): Ditto.
7107         (struct update_cost_queue_elem): Add member from.
7108         (initiate_cost_update): Call init_update_cost_records.
7109         (finish_cost_update): Call finish_update_cost_records.
7110         (queue_update_cost, get_next_update_cost): Add new param from.
7111         (Update_allocno_cost, update_costs_from_allocno): New functions.
7112         (update_costs_from_prefs): Ditto.
7113         (update_copy_costs): Rename to update_costs_from_copies.
7114         (restore_costs_from_copies): New function.
7115         (update_conflict_hard_regno_costs): Don't go back.
7116         (assign_hard_reg): Call restore_costs_from_copies.  Add printing
7117         more debug info.
7118         (pop_allocnos): Add priniting more debug info.
7119         (color_allocnos): Remove prefs for conflicting hard regs.
7120         Call update_costs_from_prefs.
7121         * ira-conflicts.c (commutative_constraint_p): Move to ira.c
7122         (get_dup_num): Rename, modify, and move to ira.c
7123         (process_regs_for_copy): Add prefs.
7124         (add_insn_allocno_copies): Put src as first arg of
7125         process_regs_for_copy.  Remove dead code.  Call ira_setup_alts.
7126         * ira-costs.c (record_reg_classes): Modify and move code into
7127         record_operands_costs.
7128         (find_costs_and_classes): Create prefs for the hard reg of small
7129         reg class.
7130         (process_bb_node_for_hard_reg_moves): Add prefs.
7132 2013-10-30  Richard Biener  <rguenther@suse.de>
7134         PR middle-end/57100
7135         * basic-block.h (pre_and_rev_post_order_compute_fn): New function.
7136         * cfganal.c (pre_and_rev_post_order_compute_fn): New function
7137         as worker for ...
7138         (pre_and_rev_post_order_compute): ... which now wraps it.
7139         * graph.c (draw_cfg_nodes_no_loops): Use
7140         pre_and_rev_post_order_compute_fn to avoid ICEing and dependence
7141         on cfun.
7143 2013-10-30  Christian Bruel  <christian.bruel@st.com>
7145         * config/sh/sh-mem.cc (sh_expand_cmpnstr): New function.
7146         (sh_expand_cmpstr): Handle known align and schedule improvements.
7147         * config/sh/sh-protos.h (sh_expand_cmpstrn): Declare.
7148         * config/sh/sh.md (cmpstrnsi): New pattern.
7150 2013-10-30  Martin Jambor  <mjambor@suse.cz>
7152         PR rtl-optimization/10474
7153         * ira.c (find_moveable_pseudos): Do not calculate dominance info
7154         nor df analysis.
7155         (interesting_dest_for_shprep): New function.
7156         (split_live_ranges_for_shrink_wrap): Likewise.
7157         (ira): Calculate dominance info and df analysis. Call
7158         split_live_ranges_for_shrink_wrap.
7160 2013-10-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7162         PR target/58854
7163         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): Emit blockage.
7165 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7167         * tree-core.h (tree_index): Add TI_POINTER_BOUNDS_TYPE.
7168         * tree.h (POINTER_BOUNDS_P): New.
7169         (BOUNDED_TYPE_P): New.
7170         (BOUNDED_P): New.
7171         (pointer_bounds_type_node): New.
7172         * tree.c (build_common_tree_nodes): Initialize
7173         pointer_bounds_type_node.
7174         * gimple.h (gimple_call_get_nobnd_arg_index): New.
7175         (gimple_call_num_nobnd_args): New.
7176         (gimple_call_nobnd_arg): New.
7177         (gimple_return_retbnd): New.
7178         (gimple_return_set_retbnd): New
7179         * gimple.c (gimple_build_return): Increase number of ops
7180         for return statement.
7181         (gimple_call_get_nobnd_arg_index): New.
7182         * gimple-pretty-print.c (dump_gimple_return): Print second op.
7184 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7186         * ipa.c (cgraph_build_static_cdtor_1): Support contructors
7187         with "chkp ctor" and "bnd_legacy" attributes.
7188         * gimplify.c (gimplify_init_constructor): Avoid infinite
7189         loop during gimplification of bounds initializer.
7191 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7193         * c-family/c-common.c (handle_bnd_variable_size_attribute): New.
7194         (handle_bnd_legacy): New.
7195         (c_common_attribute_table): Add bnd_variable_size and bnd_legacy.
7196         * doc/extend.texi: Document bnd_variable_size and bnd_legacy
7197         attributes.
7199 2013-10-29  Ilya Enkovich  <ilya.enkovich@intel.com>
7201         * builtin-types.def (BT_FN_VOID_CONST_PTR): New.
7202         (BT_FN_PTR_CONST_PTR): New.
7203         (BT_FN_CONST_PTR_CONST_PTR): New.
7204         (BT_FN_PTR_CONST_PTR_SIZE): New.
7205         (BT_FN_PTR_CONST_PTR_CONST_PTR): New.
7206         (BT_FN_VOID_PTRPTR_CONST_PTR): New.
7207         (BT_FN_VOID_CONST_PTR_SIZE): New.
7208         (BT_FN_PTR_CONST_PTR_CONST_PTR_SIZE): New.
7209         * chkp-builtins.def: New.
7210         * builtins.def: include chkp-builtins.def.
7211         (DEF_CHKP_BUILTIN): New.
7212         * builtins.c (expand_builtin): Support BUILT_IN_CHKP_INIT_PTR_BOUNDS,
7213         BUILT_IN_CHKP_NULL_PTR_BOUNDS, BUILT_IN_CHKP_COPY_PTR_BOUNDS,
7214         BUILT_IN_CHKP_CHECK_PTR_LBOUNDS, BUILT_IN_CHKP_CHECK_PTR_UBOUNDS,
7215         BUILT_IN_CHKP_CHECK_PTR_BOUNDS, BUILT_IN_CHKP_SET_PTR_BOUNDS,
7216         BUILT_IN_CHKP_NARROW_PTR_BOUNDS, BUILT_IN_CHKP_STORE_PTR_BOUNDS,
7217         BUILT_IN_CHKP_GET_PTR_LBOUND, BUILT_IN_CHKP_GET_PTR_UBOUND,
7218         BUILT_IN_CHKP_BNDMK, BUILT_IN_CHKP_BNDSTX, BUILT_IN_CHKP_BNDCL,
7219         BUILT_IN_CHKP_BNDCU, BUILT_IN_CHKP_BNDLDX, BUILT_IN_CHKP_BNDRET,
7220         BUILT_IN_CHKP_INTERSECT, BUILT_IN_CHKP_ARG_BND, BUILT_IN_CHKP_NARROW,
7221         BUILT_IN_CHKP_EXTRACT_LOWER, BUILT_IN_CHKP_EXTRACT_UPPER.
7222         * common.opt (fcheck-pointer-bounds): New.
7223         * toplev.c (process_options): Check Pointer Bounds Checker is
7224         supported.
7225         * doc/extend.texi: Document Pointer Bounds Checker built-in functions.
7227 2013-10-30  Ilya Enkovich  <ilya.enkovich@intel.com>
7229         * target.def (builtin_chkp_function): New.
7230         (chkp_bound_type): New.
7231         (chkp_bound_mode): New.
7232         (fn_abi_va_list_bounds_size): New.
7233         (load_bounds_for_arg): New.
7234         (store_bounds_for_arg): New.
7235         * targhooks.h (default_load_bounds_for_arg): New.
7236         (default_store_bounds_for_arg): New.
7237         (default_fn_abi_va_list_bounds_size): New.
7238         (default_chkp_bound_type): New.
7239         (default_chkp_bound_mode): New.
7240         (default_builtin_chkp_function): New.
7241         * targhooks.c (default_load_bounds_for_arg): New.
7242         (default_store_bounds_for_arg): New.
7243         (default_fn_abi_va_list_bounds_size): New.
7244         (default_chkp_bound_type): New.
7245         (default_chkp_bound_mode); New.
7246         (default_builtin_chkp_function): New.
7247         * doc/tm.texi.in (TARGET_FN_ABI_VA_LIST_BOUNDS_SIZE): New.
7248         (TARGET_LOAD_BOUNDS_FOR_ARG): New.
7249         (TARGET_STORE_BOUNDS_FOR_ARG): New.
7250         (TARGET_BUILTIN_CHKP_FUNCTION): New.
7251         (TARGET_CHKP_BOUND_TYPE): New.
7252         (TARGET_CHKP_BOUND_MODE): New.
7253         * doc/tm.texi: Regenerated.
7254         * langhooks.h (lang_hooks): Add chkp_supported field.
7255         * langhooks-def.h (LANG_HOOKS_CHKP_SUPPORTED): New.
7256         (LANG_HOOKS_INITIALIZER); Add LANG_HOOKS_CHKP_SUPPORTED.
7258 2013-10-29  Andrew Pinski <apinski@cavium.com>
7260         * tree-ssa-ifcombine.c: Include rtl.h and tm_p.h.
7261         (ifcombine_ifandif): Handle cases where maybe_fold_and_comparisons
7262         fails, combining the branches anyways.
7263         (tree_ssa_ifcombine): Inverse the order of the basic block walk,
7264         increases the number of combinings.
7265         * gimple.h (gsi_start_nondebug_after_labels_bb): New function.
7267 2013-10-29  Mike Stump  <mikestump@comcast.net>
7269         * machmode.def (PARTIAL_INT_MODE): Add precision and name.
7270         * genmodes.c (PARTIAL_INT_MODE): Add precision and name.
7271         (make_vector_mode): Increase namebuf to 16.
7272         (emit_insn_modes_h): When processing BImode, don't
7273         also match partial int modes.
7274         (emit_class_narrowest_mode): Likewise.
7276         * config/bfin/bfin-modes.def: Add precision to PDI.
7277         * config/m32c/m32c-modes.def: Add precision to PSI.
7278         * config/msp430/msp430-modes.def: Add precision to PSI.
7279         * config/rs6000/rs6000-modes.def: Add precision to PTI.
7280         * config/sh/sh-modes.def: Add precision to PSI and PDI.
7282 2013-10-29  Oleg Endo  <olegendo@gcc.gnu.org>
7284         PR target/54236
7285         * config/sh/sh.md (*addc): Rename existing variations to ...
7286         (*addc_r_r_1, *addc_2r_1, *addc_r_1): ... these.
7287         (*addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_2r_lsb, *addc_r_msb,
7288         *addc_r_r_msb, *addc_2r_msb): New insn_and_split patterns.
7289         * config/sh/sh.c (addsubcosts): Handle some addc special cases.
7291 2013-10-29  Teresa Johnson  <tejohnson@google.com>
7293         PR ipa/58862
7294         * tree-ssa-tail-merge.c (replace_block_by): Tolerate profile
7295         insanities when updating probabilities.
7297 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7299         * gdbhooks.py (CGraphNodePrinter.to_string): Update gdb
7300         prettyprinter for cgraph_node to reflect the conversion of the
7301         symtable types to a C++ class hierarchy: it now *is* a
7302         symtab_node_base, rather than having one (named "symbol").
7304 2013-10-29  Balaji V. Iyer  <balaji.v.iyer@intel.com>
7306         * builtins.c (is_builtin_name): Added a check for __cilkrts_detach and
7307         __cilkrts_pop_frame.  If matched, then return true for built-in
7308         function name.
7309         (expand_builtin): Added BUILT_IN_CILK_DETACH and
7310         BUILT_IN_CILK_POP_FRAME case.
7311         * langhooks-def.h (lhd_install_body_with_frame_cleanup): New prototype.
7312         (lhs_cilk_detect_spawn): Likewise.
7313         (LANG_HOOKS_DECLS): Added LANG_HOOKS_CILKPLUS.
7314         (LANG_HOOKS_CILKPLUS_DETECT_SPAWN_AND_UNWRAP): New #define.
7315         (LANG_HOOKS_CILKPLUS_FRAME_CLEANUP): Likewise.
7316         (LANG_HOOKS_CILKPLUS_GIMPLIFY_SPAWN): Likewise.
7317         (LANG_HOOKS_CILKPLUS): Likewise.
7318         * tree.h (CILK_SPAWN_FN): Likewise.
7319         * builtin.def (DEF_CILK_BUILTIN_STUB): Likewise.
7320         * Makefile.in (C_COMMON_OBJS): Added c-family/cilk.o.
7321         (OBJS): Added cilk-common.o.
7322         (BUILTINS_DEF): Added cilk-builtins.def.
7323         * langhooks.c (lhd_install_body_with_frame_cleanup): New function.
7324         (lhd_cilk_detect_spawn): Likewise.
7325         * langhooks.h (lang_hooks_for_cilkplus): New struct.
7326         (struct lang_hooks): Added new field called "cilkplus."
7327         * cilk-common.c: New file.
7328         * cilk.h: Likewise.
7329         * cilk-builtins.def: Likewise.
7330         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Added
7331         "__cilk" macro and set it to 200.
7332         * function.h (struct function::cilk_frame_decl): New field.
7333         (struct function::is_cilk_function): Likewise.
7334         (struct function::calls_cilk_spawn): Likewise.
7335         * gimplify.c (gimplify_call_expr): Added a check if the function call
7336         being gimplified is a spawn detach point.  If so, then add pop_frame
7337         and detach function calls.
7338         (gimplify_expr): Added a CILK_SPAWN_STMT and CILK_SYNC_STMT case
7339         for gimplifying _Cilk_spawn and _Cilk_sync statements.
7340         (gimplify_return_expr): Added a check for _Cilk_spawn usage in
7341         function.  If so, added a _Cilk_sync and gimplified it.
7342         (gimplify_modify_expr): Added a check for _Cilk_spawn in MODIFY and
7343         INIT_EXPRs.  If so, then call gimplify_cilk_spawn.
7344         * ipa-inline-analysis (initialize_inline_failed): Prevent inlining of
7345         spawner function.
7346         (can_inline_edge_p): Prevent inling of spawnee function.
7347         * ira.c (ira_setup_eliminable_regset): Force usage of frame pointer
7348         for functions that use Cilk keywords.
7349         * tree-inline.h (struct copy_body_data::remap_var_for_cilk): New field.
7350         * tree-pretty-print.c (dump_generic_node): Added CILK_SPAWN_STMT and
7351         CILK_SYNC_STMT cases.
7352         * tree.def (DEFTREECODE): Added CILK_SPAWN_STMT and CILK_SYNC_STMT
7353         trees.
7354         * generic.texi (CILK_SPAWN_STMT): Added documentation for _Cilk_spawn.
7355         (CILK_SYNC_STMT): Added documentation for _Cilk_sync.
7356         * passes.texi (Cilk Keywords): New section that describes the compiler
7357         code changes for handling Cilk Keywords.
7359 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7361         Patch autogenerated by refactor_symtab.py from
7362         https://github.com/davidmalcolm/gcc-refactoring-scripts
7363         revision 58bb219cc090b2f4516a9297d868c245495ee622
7365         * asan.c (asan_finish_file): Update for conversion of symtab types to
7366         a true class hierarchy.
7367         * cfgexpand.c (estimated_stack_frame_size): Likewise.
7368         * cgraph.c (cgraph_get_body): Likewise.
7369         (cgraph_get_create_real_symbol_node): Likewise.
7370         (verify_cgraph_node): Likewise.
7371         (verify_edge_corresponds_to_fndecl): Likewise.
7372         (verify_edge_count_and_frequency): Likewise.
7373         (cgraph_will_be_removed_from_program_if_no_direct_calls): Likewise.
7374         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
7375         (cgraph_can_remove_if_no_direct_calls_and_refs_p): Likewise.
7376         (cgraph_node_cannot_return): Likewise.
7377         (cgraph_set_pure_flag_1): Likewise.
7378         (cgraph_set_const_flag_1): Likewise.
7379         (cgraph_set_nothrow_flag_1): Likewise.
7380         (cgraph_make_node_local_1): Likewise.
7381         (cgraph_for_node_and_aliases): Likewise.
7382         (cgraph_for_node_thunks_and_aliases): Likewise.
7383         (cgraph_node_can_be_local_p): Likewise.
7384         (cgraph_node_cannot_be_local_p_1): Likewise.
7385         (cgraph_function_body_availability): Likewise.
7386         (dump_cgraph_node): Likewise.
7387         (cgraph_rtl_info): Likewise.
7388         (cgraph_mark_address_taken_node): Likewise.
7389         (cgraph_remove_node): Likewise.
7390         (cgraph_release_function_body): Likewise.
7391         (cgraph_update_edges_for_call_stmt_node): Likewise.
7392         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
7393         (cgraph_make_edge_direct): Likewise.
7394         (cgraph_resolve_speculation): Likewise.
7395         (cgraph_speculative_call_info): Likewise.
7396         (cgraph_turn_edge_to_speculative): Likewise.
7397         (cgraph_create_edge_1): Likewise.
7398         (cgraph_set_call_stmt): Likewise.
7399         (cgraph_node_for_asm): Likewise.
7400         (cgraph_add_thunk): Likewise.
7401         (cgraph_same_body_alias): Likewise.
7402         (cgraph_create_function_alias): Likewise.
7403         (cgraph_create_node): Likewise.
7404         (cgraph_create_empty_node): Likewise.
7405         (record_function_versions): Likewise.
7406         (used_from_object_file_p): Likewise.
7407         * cgraph.h (symtab_can_be_discarded): Likewise.
7408         (symtab_real_symbol_p): Likewise.
7409         (cgraph_mark_force_output_node): Likewise.
7410         (cgraph_edge_recursive_p): Likewise.
7411         (symtab_alias_target): Likewise.
7412         (varpool_all_refs_explicit_p): Likewise.
7413         (varpool_can_remove_if_no_refs): Likewise.
7414         (cgraph_only_called_directly_or_aliased_p): Likewise.
7415         (cgraph_next_function_with_gimple_body): Likewise.
7416         (cgraph_first_function_with_gimple_body): Likewise.
7417         (cgraph_function_with_gimple_body_p): Likewise.
7418         (cgraph_next_function): Likewise.
7419         (cgraph_first_function): Likewise.
7420         (cgraph_next_defined_function): Likewise.
7421         (cgraph_first_defined_function): Likewise.
7422         (varpool_next_defined_variable): Likewise.
7423         (varpool_first_defined_variable): Likewise.
7424         (varpool_next_static_initializer): Likewise.
7425         (varpool_first_static_initializer): Likewise.
7426         (varpool_next_variable): Likewise.
7427         (varpool_first_variable): Likewise.
7428         (varpool_node_name): Likewise.
7429         (varpool): Likewise.
7430         (cgraph): Likewise.
7431         (is_a_helper <varpool_node>::test): Likewise.
7432         (is_a_helper <cgraph_node>::test): Likewise.
7433         (varpool_variable_node): Likewise.
7434         (cgraph_function_or_thunk_node): Likewise.
7435         (varpool_alias_target): Likewise.
7436         (cgraph_alias_target): Likewise.
7437         (cgraph_node_name): Likewise.
7438         (varpool_node_asm_name): Likewise.
7439         (cgraph_node_asm_name): Likewise.
7440         * cgraphbuild.c (remove_cgraph_callee_edges): Likewise.
7441         (cgraph_rebuild_references): Likewise.
7442         (rebuild_cgraph_edges): Likewise.
7443         (record_eh_tables): Likewise.
7444         (build_cgraph_edges): Likewise.
7445         (mark_store): Likewise.
7446         (mark_load): Likewise.
7447         (mark_address): Likewise.
7448         (record_type_list): Likewise.
7449         (record_reference): Likewise.
7450         * cgraphclones.c (cgraph_materialize_all_clones): Likewise.
7451         (cgraph_materialize_clone): Likewise.
7452         (cgraph_function_versioning): Likewise.
7453         (cgraph_copy_node_for_versioning): Likewise.
7454         (update_call_expr): Likewise.
7455         (cgraph_find_replacement_node): Likewise.
7456         (cgraph_create_virtual_clone): Likewise.
7457         (cgraph_clone_node): Likewise.
7458         * cgraphunit.c (compile): Likewise.
7459         (output_weakrefs): Likewise.
7460         (output_in_order): Likewise.
7461         (expand_function): Likewise.
7462         (assemble_thunks_and_aliases): Likewise.
7463         (expand_thunk): Likewise.
7464         (mark_functions_to_output): Likewise.
7465         (handle_alias_pairs): Likewise.
7466         (analyze_functions): Likewise.
7467         (walk_polymorphic_call_targets): Likewise.
7468         (varpool_finalize_decl): Likewise.
7469         (process_function_and_variable_attributes): Likewise.
7470         (cgraph_process_same_body_aliases): Likewise.
7471         (analyze_function): Likewise.
7472         (cgraph_add_new_function): Likewise.
7473         (cgraph_finalize_function): Likewise.
7474         (referred_to_p): Likewise.
7475         (cgraph_reset_node): Likewise.
7476         (cgraph_process_new_functions): Likewise.
7477         (enqueue_node): Likewise.
7478         (decide_is_symbol_needed): Likewise.
7479         * coverage.c (coverage_compute_profile_id): Likewise.
7480         * dbxout.c (dbxout_expand_expr): Likewise.
7481         * dwarf2out.c (premark_types_used_by_global_vars_helper): Likewise.
7482         (reference_to_unused): Likewise.
7483         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
7484         * gimplify.c (unvisit_body): Likewise.
7485         (unshare_body): Likewise.
7486         * ipa-cp.c (ipcp_generate_summary): Likewise.
7487         (ipcp_decision_stage): Likewise.
7488         (identify_dead_nodes): Likewise.
7489         (decide_whether_version_node): Likewise.
7490         (decide_about_value): Likewise.
7491         (perhaps_add_new_callers): Likewise.
7492         (create_specialized_node): Likewise.
7493         (update_profiling_info): Likewise.
7494         (ipcp_propagate_stage): Likewise.
7495         (estimate_local_effects): Likewise.
7496         (good_cloning_opportunity_p): Likewise.
7497         (devirtualization_time_bonus): Likewise.
7498         (propagate_constants_accross_call): Likewise.
7499         (initialize_node_lattices): Likewise.
7500         (ipcp_cloning_candidate_p): Likewise.
7501         (determine_versionability): Likewise.
7502         (print_all_lattices): Likewise.
7503         (print_lattice): Likewise.
7504         (ipcp_discover_new_direct_edges): Likewise.
7505         * ipa-devirt.c (ipa_devirt): Likewise.
7506         (likely_target_p): Likewise.
7507         (update_type_inheritance_graph): Likewise.
7508         (possible_polymorphic_call_target_p): Likewise.
7509         (dump_possible_polymorphic_call_targets): Likewise.
7510         (devirt_variable_node_removal_hook): Likewise.
7511         (record_binfo): Likewise.
7512         (maybe_record_node): Likewise.
7513         (build_type_inheritance_graph): Likewise.
7514         * ipa-inline-analysis.c (inline_write_summary): Likewise.
7515         (inline_generate_summary): Likewise.
7516         (inline_analyze_function): Likewise.
7517         (do_estimate_growth): Likewise.
7518         (simple_edge_hints): Likewise.
7519         (estimate_node_size_and_time): Likewise.
7520         (estimate_edge_devirt_benefit): Likewise.
7521         (compute_inline_parameters): Likewise.
7522         (estimate_function_body_sizes): Likewise.
7523         (compute_bb_predicates): Likewise.
7524         (initialize_inline_failed): Likewise.
7525         (dump_inline_summary): Likewise.
7526         (dump_inline_edge_summary): Likewise.
7527         * ipa-inline-transform.c (inline_transform): Likewise.
7528         (preserve_function_body_p): Likewise.
7529         (save_inline_function_body): Likewise.
7530         (inline_call): Likewise.
7531         (clone_inlined_nodes): Likewise.
7532         (can_remove_node_now_p): Likewise.
7533         (can_remove_node_now_p_1): Likewise.
7534         * ipa-inline.c (early_inliner): Likewise.
7535         (early_inline_small_functions): Likewise.
7536         (inline_always_inline_functions): Likewise.
7537         (ipa_inline): Likewise.
7538         (flatten_function): Likewise.
7539         (inline_small_functions): Likewise.
7540         (speculation_useful_p): Likewise.
7541         (recursive_inlining): Likewise.
7542         (update_caller_keys): Likewise.
7543         (reset_edge_caches): Likewise.
7544         (update_edge_key): Likewise.
7545         (edge_badness): Likewise.
7546         (relative_time_benefit): Likewise.
7547         (want_inline_self_recursive_call_p): Likewise.
7548         (want_inline_small_function_p): Likewise.
7549         (want_early_inline_function_p): Likewise.
7550         (num_calls): Likewise.
7551         (can_early_inline_edge_p): Likewise.
7552         (can_inline_edge_p): Likewise.
7553         (report_inline_failed_reason): Likewise.
7554         * ipa-profile.c (ipa_profile): Likewise.
7555         (ipa_propagate_frequency): Likewise.
7556         (ipa_propagate_frequency_1): Likewise.
7557         (ipa_profile_generate_summary): Likewise.
7558         * ipa-prop.c (ipcp_transform_function): Likewise.
7559         (read_replacements_section): Likewise.
7560         (ipa_prop_read_section): Likewise.
7561         (ipa_modify_call_arguments): Likewise.
7562         (ipa_print_node_params): Likewise.
7563         (propagate_controlled_uses): Likewise.
7564         (update_indirect_edges_after_inlining): Likewise.
7565         (remove_described_reference): Likewise.
7566         (ipa_make_edge_direct_to_target): Likewise.
7567         (ipa_analyze_node): Likewise.
7568         (ipa_analyze_params_uses): Likewise.
7569         (ipa_compute_jump_functions): Likewise.
7570         (ipa_get_callee_param_type): Likewise.
7571         (ipa_print_node_jump_functions): Likewise.
7572         (ipa_initialize_node_params): Likewise.
7573         (ipa_populate_param_decls): Likewise.
7574         (ipa_func_spec_opts_forbid_analysis_p): Likewise.
7575         (write_agg_replacement_chain): Likewise.
7576         (ipa_write_node_info): Likewise.
7577         (ipa_edge_duplication_hook): Likewise.
7578         (try_decrement_rdesc_refcount): Likewise.
7579         * ipa-pure-const.c (propagate_nothrow): Likewise.
7580         (propagate_pure_const): Likewise.
7581         (pure_const_read_summary): Likewise.
7582         (pure_const_write_summary): Likewise.
7583         (analyze_function): Likewise.
7584         * ipa-ref-inline.h (ipa_ref_referred_ref_list): Likewise.
7585         (ipa_ref_referring_ref_list): Likewise.
7586         * ipa-ref.c (ipa_clear_stmts_in_references): Likewise.
7587         (ipa_remove_stmt_references): Likewise.
7588         (ipa_find_reference): Likewise.
7589         (ipa_dump_referring): Likewise.
7590         (ipa_dump_references): Likewise.
7591         (ipa_record_reference): Likewise.
7592         * ipa-reference.c (ipa_reference_read_optimization_summary): Likewise.
7593         (ipa_reference_write_optimization_summary): Likewise.
7594         (write_node_summary_p): Likewise.
7595         (propagate): Likewise.
7596         (read_write_all_from_decl): Likewise.
7597         (generate_summary): Likewise.
7598         (analyze_function): Likewise.
7599         (propagate_bits): Likewise.
7600         (ipa_reference_get_not_written_global): Likewise.
7601         (ipa_reference_get_not_read_global): Likewise.
7602         * ipa-split.c (execute_split_functions): Likewise.
7603         (split_function): Likewise.
7604         * ipa-utils.c (ipa_merge_profiles): Likewise.
7605         (dump_cgraph_node_set): Likewise.
7606         (ipa_reverse_postorder): Likewise.
7607         (ipa_edge_within_scc): Likewise.
7608         (ipa_get_nodes_in_cycle): Likewise.
7609         (ipa_free_postorder_info): Likewise.
7610         (ipa_reduced_postorder): Likewise.
7611         (searchc): Likewise.
7612         (recursive_call_p): Likewise.
7613         * ipa.c (ipa_cdtor_merge): Likewise.
7614         (record_cdtor_fn): Likewise.
7615         (function_and_variable_visibility): Likewise.
7616         (varpool_externally_visible_p): Likewise.
7617         (cgraph_externally_visible_p): Likewise.
7618         (comdat_can_be_unshared_p): Likewise.
7619         (comdat_can_be_unshared_p_1): Likewise.
7620         (address_taken_from_non_vtable_p): Likewise.
7621         (ipa_discover_readonly_nonaddressable_vars): Likewise.
7622         (symtab_remove_unreachable_nodes): Likewise.
7623         (walk_polymorphic_call_targets): Likewise.
7624         (process_references): Likewise.
7625         (enqueue_node): Likewise.
7626         (has_addr_references_p): Likewise.
7627         (cgraph_non_local_node_p_1): Likewise.
7628         * is-a.h (varpool_analyze_node): Likewise.
7629         * lto-cgraph.c (input_symtab): Likewise.
7630         (merge_profile_summaries): Likewise.
7631         (input_cgraph_1): Likewise.
7632         (input_edge): Likewise.
7633         (input_varpool_node): Likewise.
7634         (input_node): Likewise.
7635         (input_overwrite_node): Likewise.
7636         (compute_ltrans_boundary): Likewise.
7637         (output_refs): Likewise.
7638         (lto_output_varpool_node): Likewise.
7639         (lto_output_node): Likewise.
7640         (reachable_from_other_partition_p): Likewise.
7641         (referenced_from_other_partition_p): Likewise.
7642         (lto_output_edge): Likewise.
7643         (output_node_opt_summary): Likewise.
7644         (add_node_to): Likewise.
7645         (reachable_from_this_partition_p): Likewise.
7646         (lto_set_symtab_encoder_in_partition): Likewise.
7647         (lto_symtab_encoder_in_partition_p): Likewise.
7648         (lto_set_symtab_encoder_encode_initializer): Likewise.
7649         (lto_symtab_encoder_encode_initializer_p): Likewise.
7650         (lto_set_symtab_encoder_encode_body): Likewise.
7651         (lto_symtab_encoder_encode_body_p): Likewise.
7652         * lto-section-in.c (lto_free_function_in_decl_state_for_node):
7653         Likewise.
7654         * lto-streamer-in.c (lto_read_body): Likewise.
7655         (fixup_call_stmt_edges): Likewise.
7656         (fixup_call_stmt_edges_1): Likewise.
7657         * lto-streamer-out.c (produce_symtab): Likewise.
7658         (output_symbol_p): Likewise.
7659         (write_symbol): Likewise.
7660         (lto_output): Likewise.
7661         (copy_function): Likewise.
7662         (output_function): Likewise.
7663         * passes.c (function_called_by_processed_nodes_p): Likewise.
7664         (ipa_write_optimization_summaries): Likewise.
7665         (ipa_write_summaries): Likewise.
7666         (do_per_function_toporder): Likewise.
7667         (do_per_function): Likewise.
7668         (dump_passes): Likewise.
7669         * symtab.c (symtab_semantically_equivalent_p): Likewise.
7670         (symtab_nonoverwritable_alias): Likewise.
7671         (symtab_nonoverwritable_alias_1): Likewise.
7672         (symtab_for_node_and_aliases): Likewise.
7673         (symtab_resolve_alias): Likewise.
7674         (fixup_same_cpp_alias_visibility): Likewise.
7675         (symtab_alias_ultimate_target): Likewise.
7676         (symtab_used_from_object_file_p): Likewise.
7677         (verify_symtab_base): Likewise.
7678         (dump_symtab_base): Likewise.
7679         (symtab_node_name): Likewise.
7680         (symtab_node_asm_name): Likewise.
7681         (symtab_dissolve_same_comdat_group_list): Likewise.
7682         (symtab_add_to_same_comdat_group): Likewise.
7683         (symtab_unregister_node): Likewise.
7684         (symtab_insert_node_to_hashtable): Likewise.
7685         (symtab_register_node): Likewise.
7686         (unlink_from_assembler_name_hash): Likewise.
7687         (insert_to_assembler_name_hash): Likewise.
7688         (eq_assembler_name): Likewise.
7689         (hash_node_by_assembler_name): Likewise.
7690         (eq_node): Likewise.
7691         (hash_node): Likewise.
7692         * toplev.c (wrapup_global_declaration_2): Likewise.
7693         * trans-mem.c (ipa_tm_execute): Likewise.
7694         (ipa_tm_transform_clone): Likewise.
7695         (ipa_tm_transform_transaction): Likewise.
7696         (ipa_tm_transform_calls_redirect): Likewise.
7697         (ipa_tm_insert_gettmclone_call): Likewise.
7698         (ipa_tm_insert_irr_call): Likewise.
7699         (ipa_tm_create_version): Likewise.
7700         (ipa_tm_create_version_alias): Likewise.
7701         (ipa_tm_mark_forced_by_abi_node): Likewise.
7702         (ipa_tm_mark_force_output_node): Likewise.
7703         (ipa_tm_diagnose_tm_safe): Likewise.
7704         (ipa_tm_mayenterirr_function): Likewise.
7705         (ipa_tm_scan_irr_function): Likewise.
7706         (ipa_tm_note_irrevocable): Likewise.
7707         (ipa_tm_scan_calls_clone): Likewise.
7708         (get_cg_data): Likewise.
7709         * tree-eh.c (tree_could_trap_p): Likewise.
7710         * tree-emutls.c (ipa_lower_emutls): Likewise.
7711         (create_emultls_var): Likewise.
7712         (lower_emutls_function_body): Likewise.
7713         (gen_emutls_addr): Likewise.
7714         (emutls_decl): Likewise.
7715         (new_emutls_decl): Likewise.
7716         * tree-inline.c (tree_function_versioning): Likewise.
7717         (optimize_inline_calls): Likewise.
7718         (expand_call_inline): Likewise.
7719         (estimate_num_insns): Likewise.
7720         (copy_bb): Likewise.
7721         (delete_unreachable_blocks_update_callgraph): Likewise.
7722         * tree-nested.c (gimplify_all_functions): Likewise.
7723         (create_nesting_tree): Likewise.
7724         (check_for_nested_with_variably_modified): Likewise.
7725         * tree-pretty-print.c (dump_function_header): Likewise.
7726         * tree-profile.c (tree_profiling): Likewise.
7727         * tree-sra.c (ipa_sra_preliminary_function_checks): Likewise.
7728         (modify_function): Likewise.
7729         (convert_callers): Likewise.
7730         (convert_callers_for_node): Likewise.
7731         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
7732         (associate_varinfo_to_alias): Likewise.
7733         (create_variable_info_for): Likewise.
7734         (get_constraint_for_ssa_var): Likewise.
7735         * tree-vectorizer.c (increase_alignment): Likewise.
7736         * tree.c (find_decls_types_in_var): Likewise.
7737         (find_decls_types_in_node): Likewise.
7738         (free_lang_data_in_decl): Likewise.
7739         * value-prof.c (gimple_ic_transform): Likewise.
7740         (gimple_ic): Likewise.
7741         (check_ic_target): Likewise.
7742         (init_node_map): Likewise.
7743         * varasm.c (decl_binds_to_current_def_p): Likewise.
7744         (default_binds_local_p_1): Likewise.
7745         (dump_tm_clone_pairs): Likewise.
7746         (assemble_alias): Likewise.
7747         (find_decl): Likewise.
7748         (mark_decl_referenced): Likewise.
7749         * varpool.c (varpool_for_node_and_aliases): Likewise.
7750         (varpool_extra_name_alias): Likewise.
7751         (varpool_create_variable_alias): Likewise.
7752         (add_new_static_var): Likewise.
7753         (varpool_finalize_named_section_flags): Likewise.
7754         (varpool_remove_unreferenced_decls): Likewise.
7755         (enqueue_node): Likewise.
7756         (varpool_assemble_decl): Likewise.
7757         (assemble_aliases): Likewise.
7758         (varpool_analyze_node): Likewise.
7759         (cgraph_variable_initializer_availability): Likewise.
7760         (varpool_add_new_variable): Likewise.
7761         (ctor_for_folding): Likewise.
7762         (dump_varpool_node): Likewise.
7763         (varpool_remove_initializer): Likewise.
7764         (varpool_remove_node): Likewise.
7765         (varpool_node_for_decl): Likewise.
7766         (varpool_create_empty_node): Likewise.
7767         * config/i386/i386.c (ix86_generate_version_dispatcher_body): Likewise.
7768         (ix86_get_function_versions_dispatcher): Likewise.
7770 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7772         * cgraph.h (symtab_node_base): Convert to a class;
7773         add GTY((desc ("%h.type"), tag ("SYMTAB_SYMBOL"))), and take
7774         chain_next/prev from symtab_node_def.
7775         (cgraph_node): Inherit from symtab_node; add GTY option
7776         tag ("SYMTAB_FUNCTION").
7777         (varpool_node): Inherit from symtab_node; add GTY option
7778         tag ("SYMTAB_VARIABLE").
7779         (symtab_node_def): Remove.
7780         (is_a_helper <cgraph_node>::test (symtab_node_def *)): Convert to...
7781         (is_a_helper <cgraph_node>::test (symtab_node_base *)): ...this.
7782         (is_a_helper <varpool_node>::test (symtab_node_def *)): Convert to...
7783         (is_a_helper <varpool_node>::test (symtab_node_base *)): ...this.
7785         * ipa-ref.h (symtab_node_def): Drop.
7786         (symtab_node): Change underlying type from symtab_node_def to
7787         symtab_node_base.
7788         (const_symtab_node): Likwise.
7790         * is-a.h: Update examples in comment.
7792         * symtab.c (symtab_hash): Change symtab_node_def to symtab_node_base.
7793         (assembler_name_hash): Likewise.
7795 2013-10-29  Martin Liska  <marxin.liska@gmail.com>
7797         * doc/tree-ssa.texi (gimple_phi_result): Document.
7798         (gimple_phi_num_args, gimple_phi_arg): Likewise.
7799         (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
7800         (PHI_RESULT, PHI_NUM_ARGS): Remove.
7801         (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
7803 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
7805         * expr.h: Revert change and include tree-core.h.
7806         * rtl.h: Revert change and don't include tree-core.h.
7808 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
7810         * config/darwin.c: Include gimple.h.
7811         * config/i386/winnt.c: Likewise.
7813 2013-10-29  Marc Glisse  <marc.glisse@inria.fr>
7815         PR tree-optimization/19831
7816         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle BUILT_IN_FREE.
7818 2013-10-29  Andrew MacLeod  <amacleod@redhat.com>
7820         * tree-outof-ssa.h: Remove include files.
7821         * tree-outof-ssa.c: Add required include files from tree-outof-ssa.h.
7822         * expr.c: Likewise.
7823         * tree-ssa-coalesce.c: Likewise.
7824         * cfgexpand.c: Likewise.
7825         * tree-ssa-ter.c: Likewise.
7826         * ipa-prop.h: Remove gimple.h and tree-core.h from include list.
7827         * lto-streamer.h: Likewise.
7828         * cgraphbuild.c: Add gimple.h to include list.
7829         * data-streamer-in.c: Likewise.
7830         * ipa-cp.c: Likewise.
7831         * tree-streamer.c: Likewise.
7832         * lto-compress.c: Likewise.
7833         * ipa-reference.c: Likewise.
7834         * data-streamer-out.c: Likewise.
7835         * lto-cgraph.c: Likewise.
7836         * cgraphclones.c: Likewise.
7837         * ipa-utils.c: Likewise.
7838         * data-streamer.c: Likewise.
7839         * ipa-split.c: Likewise.
7840         * lto-section-in.c: Likewise.
7841         * tree-streamer-out.c: Likewise.
7842         * ipa-prop.c: Likewise.
7843         * tree-streamer-in.c: Likewise.
7844         * symtab.c: Likewise.
7845         * opts-global.c: Likewise.
7846         * lto-opts.c: Likewise.
7847         * lto-section-out.c: Likewise.
7848         * lto-streamer.c: Likewise.
7849         * rtl.h: Add tree-core.h to include list.
7850         * expr.h: Remove tree-core.h from include list.
7851         * gimple.h: Likewise.
7852         * ipa-utils.h: Likewise.
7853         * streamer-hooks.h: Likewise.
7854         * streamer-hooks.c: Include input.h.
7856 2013-10-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7858         * config/arm/arm.c (cortexa7_extra_costs): New table.
7859         (arm_cortex_a7_tune): New.
7860         * config/arm/arm-cores.def: Use cortex_a7 tuning for cortex-a7.
7862 2013-10-29  Eric Botcazou  <ebotcazou@adacore.com>
7864         * expr.c (expand_expr_real_1) <MEM_EXPR>: Eliminate small redundancy.
7866 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7868         * doc/gty.texi ("Inheritance and GTY"): Make it clear that
7869         to use autogenerated markers for a class-hierarchy, every class
7870         must have a GTY marker.
7871         * gengtype.h (struct type): Add linked list of subclasses to
7872         the "s" member of the union.
7873         (add_subclass): New decl.
7874         * gengtype-state.c (read_state_struct_type): Set up subclass
7875         linked list.
7876         * gengtype.c (get_ultimate_base_class): New.
7877         (add_subclass): New.
7878         (new_structure): Set up subclass linked list.
7879         (set_gc_used_type): Propagate usage information to subclasses.
7880         (output_mangled_typename): Use get_ultimate_base_class.
7881         (walk_subclasses): Use the subclass linked list, avoiding an
7882         O(N^2) when writing out all types.
7883         (walk_type): Issue an error if the base class is missing a tag,
7884         rather than generating bogus C code.  Add a gcc_unreachable
7885         default case, in case people omit tags from concrete subclasses,
7886         or get the values wrong.
7887         (write_func_for_structure): Issue an error for subclasses for
7888         which the base doesn't have a "desc", since otherwise the
7889         autogenerated routines for the base would silently fail to visit
7890         any subclass fields.
7891         (write_root): Use get_ultimate_base_class, tweaking constness of
7892         tp to match that function's signature.
7894 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7896         * doc/gty.texi (GTY Options): Add note about inheritance to
7897         description of desc and tag.
7898         (Inheritance and GTY): New.
7900 2013-10-29  David Malcolm  <dmalcolm@redhat.com>
7902         * gengtype-parse.c (opts_have): Drop "static" so that
7903         we can use this from gengtype.c.
7904         * gengtype.c (set_gc_used_type): Mark any base class as used;
7905         update field traversal to visit inherited fields.
7906         (output_mangled_typename):  Convert references to classes within
7907         an inheritance hierarchy to reference the ultimate base class,
7908         since only it will have gt_ functions.
7909         (get_string_option): New.
7910         (walk_subclasses): New.
7911         (walk_type): Treat GTY structs that have a "desc" as being the
7912         root of an inheritance hierarchy.  Generate a switch on it
7913         within the marking function which walks all subclasses, adding
7914         cases for them via walk_subclasses.  For subclasses, visit all
7915         fields of the type (including inherited ones).
7916         (write_func_for_structure): Don't write fns for subclasses, only
7917         for the ultimate base class within an inheritance hierarchy.
7918         Subclasses-marking will be handled by the base class marking functions.
7919         (write_types): Likewise.
7920         (write_local_func_for_structure): Likewise.
7921         (USED_BY_TYPED_GC_P): Emit allocators for subclasses that have
7922         a "tag" option (and are thus concrete subclasses).
7923         (write_root): Use the marker function for the ultimate base class.
7924         * gengtype.h (FOR_ALL_INHERITED_FIELDS): New.
7925         (opts_have): Add declaration.
7927 2013-10-28  Vladimir Makarov  <vmakarov@redhat.com>
7929         * lra-spills.c (lra_final_code_change): Remove useless move insns
7930         originated from moves of pseudos.
7932 2013-10-28  Jeff Law  <law@redhat.com>
7934         * lower-subreg.c (resolve_simple_move): Fix comment typo.
7936 2013-10-28  Trevor Saunders  <tsaunders@mozilla.com>
7938         * df-scan.c (df_collection_rec): Adjust.
7939         (copy_defs): New constant.
7940         (copy_uses): Likewise.
7941         (copy_eq_uses): Likewise.
7942         (copy_mw): Likewise.
7943         (copy_all): Likewise.
7944         (df_insn_rescan): Adjust.
7945         (df_notes_rescan): Likewise.
7946         (df_swap_refs): Likewise.
7947         (df_sort_and_compress_refs): Likewise.
7948         (df_sort_and_compress_mws): Likewise.
7949         (df_install_refs): Likewise.
7950         (df_install_mws): Likewise.
7951         (df_refs_add_to_chains): Add flags parameter controlling which vectors
7952         are coppied.
7953         (df_bb_refs_record): Adjust.
7954         (df_record_entry_block_defs): Likewise.
7955         (df_record_exit_block_defs): Likewise.
7956         (df_refs_verify): Likewise.
7957         (df_mws_verify): Likewise.
7958         (df_insn_refs_verify): Likewise.
7959         (df_bb_verify): Likewise.
7960         * ipa-pure-const.c (finish_state): Remove.
7961         (propagate): Adjust.
7962         * tree-data-ref.c tree-ssa-alias.c tree-ssa-loop-ivcanon.c
7963         tree-ssa-threadedge.c tree-vect-loop-manip.c tree-vect-slp.c
7964         var-tracking.c: Adjust.
7965         * vec.c (stack_vecs): Remove.
7966         (register_stack_vec): Likewise.
7967         (stack_vec_register_index): Likewise.
7968         (unregister_stack_vec): Likewise.
7969         * vec.h (struct va_stack): Remove.
7970         (struct vec<T, A, vl_ptr>): Specialize as
7971         struct vec<T, va_heap, vl_ptr> instead since va_heap is the only
7972         allocation strategy compatable with the vl_ptr layout.
7973         (struct vec<T, va_gc, vl_ptr>): Remove because it now gets an empty
7974         specialization anyway.
7975         (class stack_vec): New class.
7976         (vec_stack_alloc): Remove.
7977         (vec<T, va_heap, vl_ptr>::using_auto_storage): New method.
7979 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7980             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7981             Sergey Lega  <sergey.s.lega@intel.com>
7982             Anna Tikhonova  <anna.tikhonova@intel.com>
7983             Ilya Tocar  <ilya.tocar@intel.com>
7984             Andrey Turetskiy  <andrey.turetskiy@intel.com>
7985             Ilya Verbin  <ilya.verbin@intel.com>
7986             Kirill Yukhin  <kirill.yukhin@intel.com>
7987             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
7989         * config/i386/i386.md (prefetch): Allow TARGET_AVX512PF.
7990         (*prefetch_avx512pf_<mode>): New.
7991         * config/i386/sse.md (avx512f_vmcmp<mode>3): Ditto.
7992         (avx512f_maskcmp<mode>3): Ditto.
7993         (vashrv16si3): Ditto.
7995 2013-10-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
7996             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
7997             Sergey Lega  <sergey.s.lega@intel.com>
7998             Anna Tikhonova  <anna.tikhonova@intel.com>
7999             Ilya Tocar  <ilya.tocar@intel.com>
8000             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8001             Ilya Verbin  <ilya.verbin@intel.com>
8002             Kirill Yukhin  <kirill.yukhin@intel.com>
8003             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8005         * config/i386/i386.md (any_truncate): New.
8006         (trunsuffix): Ditto.
8007         * config/i386/predicates.md (const_8_to_9_operand): New.
8008         (const_10_to_11_operand): Ditto.
8009         (const_12_to_13_operand): Ditto.
8010         (const_14_to_15_operand): Ditto.
8011         (const_16_to_19_operand): Ditto.
8012         (const_20_to_23_operand): Ditto.
8013         (const_24_to_27_operand): Ditto.
8014         (const_28_to_31_operand): Ditto.
8015         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_FIX_NOTRUNC.
8016         (cvtusi2<ssescalarmodesuffix>32): New.
8017         (cvtusi2<ssescalarmodesuffix>64): Ditto.
8018         (ufloatv16siv16sf2): Ditto.
8019         (avx512f_fix_notruncv16sfv16si): Ditto.
8020         (avx512f_ufix_notruncv16sfv16si): Ditto.
8021         (avx512f_vcvtss2usi): Ditto.
8022         (avx512f_vcvtss2usiq): Ditto.
8023         (avx512f_vcvttss2usi): Ditto.
8024         (avx512f_vcvttss2usiq): Ditto.
8025         (avx512f_vcvtsd2usi): Ditto.
8026         (avx512f_vcvtsd2usiq): Ditto.
8027         (avx512f_vcvttsd2usi): Ditto.
8028         (avx512f_vcvttsd2usiq): Ditto.
8029         (ufloatv8siv8df): Ditto.
8030         (avx512f_cvtdq2pd512_2): Ditto.
8031         (avx512f_cvtpd2dq512): Ditto.
8032         (avx512f_ufix_notruncv8dfv8si): Ditto.
8033         (avx512f_cvtpd2ps512): Ditto.
8034         (vec_unpacks_lo_v16sf): Ditto.
8035         (vec_unpacks_hi_v16sf): Ditto.
8036         (vec_unpacks_float_hi_v16si): Ditto.
8037         (vec_unpacks_float_lo_v16si): Ditto.
8038         (avx512f_unpckhps512): Ditto.
8039         (avx512f_unpcklps512): Ditto.
8040         (avx512f_movshdup512): Ditto.
8041         (avx512f_movsldup512): Ditto.
8042         (vec_extract_lo_v32hi): Ditto.
8043         (vec_extract_hi_v32hi): Ditto.
8044         (vec_extract_lo_v64qi): Ditto.
8045         (vec_extract_hi_v64qi): Ditto.
8046         (avx512f_unpckhpd512): Ditto.
8047         (avx512f_movddup512): Ditto.
8048         (avx512f_unpcklpd512): Ditto.
8049         (*avx512f_unpcklpd512): Ditto.
8050         (avx512f_shufps512_1): Ditto.
8051         (avx512f_shufpd512_1): Ditto.
8052         (avx512f_interleave_highv8di): Ditto.
8053         (avx512f_interleave_lowv8di): Ditto.
8054         (PMOV_DST_MODE): Ditto.
8055         (pmov_src_mode): Ditto.
8056         (pmov_src_lower): Ditto.
8057         (pmov_suff): Ditto.
8058         (*avx512f_<code><pmov_src_lower><mode>2): Ditto.
8059         (*avx512f_<code>v8div16qi2): Ditto.
8060         (*avx512f_<code>v8div16qi2_store): Ditto.
8061         (vec_widen_umult_even_v16si): Ditto.
8062         (*vec_widen_umult_even_v16si): Ditto.
8063         (vec_widen_smult_even_v16si): Ditto.
8064         (*vec_widen_smult_even_v16si): Ditto.
8065         (avx512f_interleave_highv16si): Ditto.
8066         (avx512f_interleave_lowv16si): Ditto.
8067         (avx512f_<code>v16qiv16si2): Ditto.
8068         (avx512f_<code>v16hiv16si2): Ditto.
8069         (avx512f_<code>v8qiv8di2): Ditto.
8070         (avx512f_<code>v8hiv8di2): Ditto.
8071         (avx512f_<code>v8siv8di2): Ditto.
8072         (avx512cd_maskb_vec_dupv8di): Ditto.
8073         (avx512cd_maskw_vec_dupv16si): Ditto.
8074         (avx512f_vcvtph2ps512): Ditto.
8075         (avx512f_vcvtps2ph512): Ditto.
8076         (VEC_EXTRACT_MODE): Extened with wider modes.
8077         (VEC_PERM_AVX2): Ditto.
8078         (VEC_PERM_CONST): Ditto.
8080 2013-10-28  Joern Rennecke  <joern.rennecke@embecosm.com>
8082         * config/arc/arc.c (arc_ccfsm_post_advance):
8083         Add comment about TYPE_RETURN.
8085 2013-10-28  Bin Cheng  <bin.cheng@arm.com>
8087         * tree-ssa-loop-ivopts.c (strip_offset_1): Change parameter type.
8088         Count DECL_FIELD_BIT_OFFSET for COMPONENT_REF.
8089         (strip_offset): Convert offset to unsigned number.
8091 2013-10-27  Tom de Vries  <tom@codesourcery.com>
8093         * cfgexpand.c (gimple_expand_cfg): Remove test for parm_birth_insn.
8094         Don't commit insertions after NOTE_INSN_FUNCTION_BEG.
8096 2013-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
8098         * config/sh/sh.c (MSW, LSW): Move and rename macros to...
8099         * config/sh/sh.h (SH_REG_MSW_OFFSET, SH_REG_LSW_OFFSET): ... here.
8100         (TARGET_BIG_ENDIAN): New macro.
8101         * config/sh/sh.md: Use it instead of !TARGET_LITTLE_ENDIAN.
8102         Use SH_REG_MSW_OFFSET and SH_REG_LSW_OFFSET.
8103         * config/sh/sh.c: Likewise.
8104         * config/sh/sh.h: Likewise.
8106 2013-10-27  Hans-Peter Nilsson  <hp@axis.com>
8108         * config/cris/cris.c (cris_emit_trap_for_misalignment): Replace the
8109         removed PRED_MUDFLAP with PRED_NORETURN.  Correct file-path in comment.
8111 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
8113         * config/sh/sh.md (movmemsi): Remove empty constraints and predicates.
8114         Fix formatting.
8115         (cmpstr_t, cmpstrsi): Fix formatting.
8117 2013-10-26  Oleg Endo  <olegendo@gcc.gnu.org>
8119         PR target/52483
8120         * config/sh/predicates.md (general_movdst_operand): Allow reg+reg
8121         addressing, do not use general_operand for memory operands.
8123 2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
8125         Revert:
8126         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8127         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8129 2013-10-26  Jeff Law  <law@redhat.com>
8131         * predict.c (PRED_MUDFLAP): Remove.
8132         * targhooks.c (build_va_arg_indirect_ref): Remove mudflap support.
8134         * Makefile.in (C_COMMON_OBJS): Remove tree-mudflap.
8135         (OBJS): Remove tree-nomudflap.o
8136         (GTFILES): Remove tree-mudflap.c
8137         * builtins.c (expand_builtin_alloc): Remove mudflap support.
8138         * gcc.c (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8139         (mfwrap_spec, mflib_spec): Likewise.
8140         (cpp_unique_options, cc1_options, static_specs): Likewise.
8141         * gimplify (gimplify_vla_decl, build_va_arg_indirect_ref): Likewise.
8142         * passes.def: Likewise.
8143         * toplev.c (compile_file, process_options): Likewise.
8144         * tree-inline.c (copy_tree_r): Likewise.
8145         * tree-pass.,h (make_pass_mudflap_1, make_pass_mudflap_2): Likewise.
8146         * varasm.c (make_decl_rtl, make_decl_rtl_for_debug): Likewise.
8147         (build_constant_desc, output_constant_def_contents): Likewise.
8148         (categorize_decl_for_section): Likewise.
8149         * tree-mudflap.c: Removed.
8150         * tree-mudflap.h: Removed.
8151         * tree-nomudflap.c: Removed.
8152         * bfin/uclinux.h (MFWRAP_SPEC): Remove.
8153         * moxie/uclinux.h (MFWRAP_SPEC): Likewise.
8154         * rs6000/aix.h (MFWRAP_SPEC, MFLIB_SPEC): Likewise.
8155         * config/sol2.h (MFLIB_SPEC): Likewise.
8156         * doc/install.texi: Remove mudflap references.
8157         * doc/passes.texi: Similarly.
8158         * doc/sourcebuild.texi: Similarly.
8159         * doc/invoke.texi: Remove mudlfap related options.
8161 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8163         PR rtl-optimization/58759
8164         * lra-constraints.c (lra_constraints): Remove wrong condition to
8165         remove insn setting up an equivalent pseudo.
8167 2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
8169         * config/rs6000/rs6000-protos.h
8170         (rs6000_secondary_memory_needed_mode): New prototype.
8171         * config/rs6000/rs6000.c: Include ira.h.
8172         (TARGET_LRA_P): Redefine.
8173         (rs6000_legitimate_offset_address_p): Call
8174         legitimate_constant_pool_address_p in strict mode for LRA.
8175         (rs6000_legitimate_address_p): Ditto.
8176         (legitimate_lo_sum_address_p): Add code for LRA.  Use lra_in_progress.
8177         (rs6000_emit_move): Add LRA version of code to generate load/store
8178         of SDmode values.
8179         (rs6000_secondary_memory_needed_mode): New.
8180         (rs6000_alloc_sdmode_stack_slot): Do nothing for LRA.
8181         (rs6000_secondary_reload_class): Return NO_REGS for LRA for
8182         constants, memory, and FP registers.
8183         (rs6000_lra_p): New.
8184         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): New macro.
8185         * config/rs6000/rs6000.opt (mlra): New option.
8186         * lra-spills.c (lra_final_code_change): Remove useless move insns.
8188 2013-10-25  Yufeng Zhang  <yufeng.zhang@arm.com>
8190         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Call
8191         has_single_use () and not do the conversion if has_single_use ()
8192         returns false for the multiplication result.
8194 2013-10-25  David Malcolm  <dmalcolm@redhat.com>
8196         * tree.h (EXCEPTIONAL_CLASS_P): Rename parameter from "CODE"
8197         to "NODE", since this works on a "tree", not an
8198         "enum tree_code".
8199         (CONSTANT_CLASS_P): Likewise.
8200         (TYPE_P): Likewise.
8201         (DECL_P): Likewise.
8202         (INDIRECT_REF_P): Likewise.
8203         (REFERENCE_CLASS_P): Likewise.
8204         (COMPARISON_CLASS_P): Likewise.
8205         (UNARY_CLASS_P): Likewise.
8206         (BINARY_CLASS_P): Likewise.
8207         (STATEMENT_CLASS_P): Likewise.
8208         (VL_EXP_CLASS_P): Likewise.
8209         (EXPRESSION_CLASS_P): Likewise.
8210         (IS_TYPE_OR_DECL_P): Likewise.
8212 2013-10-25  Marc Glisse  <marc.glisse@inria.fr>
8214         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Look for an
8215         ADDR_EXPR in the defining statement.
8217 2013-10-25  Richard Biener  <rguenther@suse.de>
8219         PR tree-optimization/58626
8220         * tree-loop-distribution.c (enum rdg_dep_type): Remove
8221         anti_dd, output_dd and input_dd.
8222         (struct rdg_edge): Remove level and relation members.
8223         (RDGE_LEVEL, RDGE_RELATION): Remove.
8224         (dot_rdg_1): Adjust.
8225         (create_rdg_edge_for_ddr): Remove.
8226         (create_rdg_edges_for_scalar): Adjust.
8227         (create_edge_for_control_dependence): Likewise.
8228         (create_rdg_edges): Split into ...
8229         (create_rdg_flow_edges): ... this
8230         (create_rdg_cd_edges): ... and this.
8231         (free_rdg): Adjust.
8232         (build_rdg): Likewise, do not compute data dependences or
8233         add edges for them.
8234         (pg_add_dependence_edges): New function.
8235         (pgcmp): Likewise.
8236         (distribute_loop): First apply all non-dependence based
8237         partition mergings.  Then compute dependences between partitions
8238         and merge and order partitions according to them.
8240 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
8242         PR rtl-optimization/58831
8243         * alias.c (init_alias_analysis): At the beginning of each iteration,
8244         set the reg_seen[N] bit if static_reg_base_value[N] is non-null.
8246 2013-10-25  Eric Botcazou  <ebotcazou@adacore.com>
8248         * recog.c (search_ofs): New static variable moved from...
8249         (peep2_find_free_register): ...here.
8250         (peephole2_optimize): Initialize it.
8252 2013-10-25  Tobias Burnus  <burnus@net-b.de>
8254         * doc/invoke.texi (fopenmp): Change supported OpenMP version to 4.0.
8256 2013-10-25  Uros Bizjak  <ubizjak@gmail.com>
8258         * config/i386/i386.h (TARGET_MPX): New define.
8259         (TARGET_MPX_P): Ditto.
8261 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
8263         * config/i386/constraints.md (B): New.
8264         (Ti): New.
8265         (Tb): New.
8266         * config/i386/i386-c.c (ix86_target_macros_internal): Add __MPX__.
8267         * config/i386/i386-modes.def (BND32): New.
8268         (BND64): New.
8269         * config/i386/i386-protos.h (ix86_bnd_prefixed_insn_p): New.
8270         * config/i386/i386.c (isa_opts): Add mmpx.
8271         (regclass_map): Add bound registers.
8272         (dbx_register_map): Likewise.
8273         (dbx64_register_map): Likewise.
8274         (svr4_dbx_register_map): Likewise.
8275         (PTA_MPX): New.
8276         (ix86_option_override_internal): Support MPX ISA.
8277         (ix86_conditional_register_usage): Support bound registers.
8278         (print_reg): Likewise.
8279         (ix86_code_end): Add MPX bnd prefix.
8280         (output_set_got): Likewise.
8281         (ix86_output_call_insn): Likewise.
8282         (ix86_print_operand): Add '!' (MPX bnd) print prefix support.
8283         (ix86_print_operand_punct_valid_p): Likewise.
8284         (ix86_print_operand_address): Support UNSPEC_BNDMK_ADDR and
8285         UNSPEC_BNDMK_ADDR.
8286         (ix86_class_likely_spilled_p): Add bound regs support.
8287         (ix86_hard_regno_mode_ok): Likewise.
8288         (x86_order_regs_for_local_alloc): Likewise.
8289         (ix86_bnd_prefixed_insn_p): New.
8290         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Fix to new value.
8291         (FIXED_REGISTERS): Add bound registers.
8292         (CALL_USED_REGISTERS): Likewise.
8293         (REG_ALLOC_ORDER): Likewise.
8294         (HARD_REGNO_NREGS): Likewise.
8295         (TARGET_MPX): New.
8296         (VALID_BND_REG_MODE): New.
8297         (FIRST_BND_REG): New.
8298         (LAST_BND_REG): New.
8299         (reg_class): Add BND_REGS.
8300         (REG_CLASS_NAMES): Likewise.
8301         (REG_CLASS_CONTENTS): Likewise.
8302         (BND_REGNO_P): New.
8303         (ANY_BND_REG_P): New.
8304         (BNDmode): New.
8305         (HI_REGISTER_NAMES): Add bound registers.
8306         * config/i386/i386.md (UNSPEC_BNDMK): New.
8307         (UNSPEC_BNDMK_ADDR): New.
8308         (UNSPEC_BNDSTX): New.
8309         (UNSPEC_BNDLDX): New.
8310         (UNSPEC_BNDLDX_ADDR): New.
8311         (UNSPEC_BNDCL): New.
8312         (UNSPEC_BNDCU): New.
8313         (UNSPEC_BNDCN): New.
8314         (UNSPEC_MPX_FENCE): New.
8315         (BND0_REG): New.
8316         (BND1_REG): New.
8317         (type): Add mpxmov, mpxmk, mpxchk, mpxld, mpxst.
8318         (length_immediate): Likewise.
8319         (prefix_0f): Likewise.
8320         (memory): Likewise.
8321         (prefix_rep): Check for bnd prefix.
8322         (length_nobnd): New.
8323         (length): Use length_nobnd if specified.
8324         (BND): New.
8325         (bnd_ptr): New.
8326         (BNDCHECK): New.
8327         (bndcheck): New.
8328         (*jcc_1): Add bnd prefix and rename length attr to length_nobnd.
8329         (*jcc_2): Likewise.
8330         (jump): Likewise.
8331         (simple_return_internal): Likewise.
8332         (simple_return_pop_internal): Likewise.
8333         (*indirect_jump): Add MPX bnd prefix.
8334         (*tablejump_1): Likewise.
8335         (simple_return_internal_long): Likewise.
8336         (simple_return_indirect_internal): Likewise.
8337         (<mode>_mk): New.
8338         (*<mode>_mk): New.
8339         (mov<mode>): New.
8340         (*mov<mode>_internal_mpx): New.
8341         (<mode>_<bndcheck>): New.
8342         (*<mode>_<bndcheck>): New.
8343         (<mode>_ldx): New.
8344         (*<mode>_ldx): New.
8345         (<mode>_stx): New.
8346         (*<mode>_stx): New.
8347         * config/i386/predicates.md (lea_address_operand): Rename to...
8348         (address_no_seg_operand): ... this.
8349         (address_mpx_no_base_operand): New.
8350         (address_mpx_no_index_operand): New.
8351         (bnd_mem_operator): New.
8352         * config/i386/i386.opt (mmpx): New.
8353         * doc/invoke.texi: Add documentation for the flags -mmpx, -mno-mpx.
8354         * doc/rtl.texi Add documentation for BND32mode and BND64mode.
8356 2013-10-24  Ilya Enkovich  <ilya.enkovich@intel.com>
8358         * mode-classes.def (MODE_POINTER_BOUNDS): New.
8359         * tree.def (POINTER_BOUNDS_TYPE): New.
8360         * genmodes.c (complete_mode): Support MODE_POINTER_BOUNDS.
8361         (POINTER_BOUNDS_MODE): New.
8362         (make_pointer_bounds_mode): New.
8363         * machmode.h (POINTER_BOUNDS_MODE_P): New.
8364         * stor-layout.c (int_mode_for_mode): Support MODE_POINTER_BOUNDS.
8365         (layout_type): Support POINTER_BOUNDS_TYPE.
8366         * tree-pretty-print.c (dump_generic_node): Support POINTER_BOUNDS_TYPE.
8367         * tree.c (build_int_cst_wide): Support POINTER_BOUNDS_TYPE.
8368         (type_contains_placeholder_1): Likewise.
8369         * tree.h (POINTER_BOUNDS_TYPE_P): New.
8370         * varasm.c (output_constant): Support POINTER_BOUNDS_TYPE.
8371         * doc/rtl.texi (MODE_POINTER_BOUNDS): New.
8373 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
8375         * expr.c (expand_expr_real_1): Use mode of memory reference rather than
8376         mode of address computation when calling memory_address_addr_space.
8378 2013-08-24  Richard Henderson  <rth@twiddle.net>
8380         PR rtl/58542
8381         * optabs.c (maybe_emit_atomic_exchange): Use create_input_operand
8382         instead of create_convert_operand_to.
8383         (maybe_emit_sync_lock_test_and_set): Likewise.
8384         (expand_atomic_compare_and_swap): Likewise.
8385         (maybe_emit_compare_and_swap_exchange_loop): Don't convert_modes.
8387 2013-08-24  Sriraman Tallam  <tmsriram@google.com>
8389         * cgraph.c (cgraph_fnver_htab): Move GTY((...)) to be before htab_t.
8390         Change param_is to use the struct and not the pointer to the struct.
8392 2013-10-24  Andrew MacLeod  <amacleod@redhat.com>
8394         * builtins.c (dummy_object, gimplify_va_arg_expr): Move to gimplify.c.
8395         * gimplify.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8396         Move to targhooks.c.
8397         (dummy_object, gimplify_va_arg_expr): Relocate from builtins.c.
8398         * targhooks.c (build_va_arg_indirect_ref, std_gimplify_va_arg_expr):
8399         Relocate from gimplify.c.
8400         * targhooks.h: Add 2 prototypes.
8401         * tree.h: Delete 2 prototypes.
8403 2013-10-24  Igor Shevlyakov  <igor.shevlyakov@gmail.com>
8405         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p ): Check both
8406         [reg+mult*reg] and [mult*reg] to determine if multiplier is allowed.
8408 2013-10-24  Cong Hou  <congh@google.com>
8410         * convert.c (convert_to_real): Guard those unsafe math function
8411         convertions with flag_unsafe_math_optimizations.  Handle sqrt()
8412         specially.
8414 2013-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
8416         PR ipa/58712
8417         * cgraph.c (cgraph_create_edge_1): Add indirect_unknown_callee
8418         as argument.
8419         (cgraph_create_edge): Use the new argument.
8420         (cgraph_create_indirect_edge): Likewise.
8422 2013-10-24  Joern Rennecke  <joern.rennecke@embecosm.com>
8424         * config/arc/arc.c (arc_ccfsm_post_advance): Also handle
8425         TYPE_UNCOND_BRANCH.
8426         (arc_ifcvt) <case 1 and 2>: Check that arc_ccfsm_post_advance
8427         changes statep->state.
8429 2013-10-24  Tobias Burnus  <burnus@net-b.de>
8431         PR other/33426
8432         * tree-cfg.c (replace_loop_annotate): New function.
8433         (execute_build_cfg): Call it.
8434         * gimplify.c (gimple_boolify, gimplify_expr): Handle ANNOTATE_EXPR.
8435         * internal-fn.c (expand_ANNOTATE): New function.
8436         * internal-fn.def (ANNOTATE): Define as new internal function.
8437         * tree-core.h (tree_node_kind): Add annot_expr_ivdep_kind.
8438         * tree-pretty-print.c (dump_generic_node): Handle ANNOTATE_EXPR.
8439         * tree.def (ANNOTATE_EXPR): New DEFTREECODE.
8440         * doc/extend.texi (Pragmas): Document #pragma ivdep.
8441         * doc/generic.texi (Expressions): Document ANNOTATE_EXPR.
8443 2013-10-17  Ian Bolton  <ian.bolton@arm.com>
8444             Marcus Shawcroft  <marcus.shawcroft@arm.com>
8446         * config/aarch64/aarch64.c (aarch64_preferred_reload_class):
8447         Special case reload SP+C into none GENERAL_REGS.
8449 2013-10-24  Michael Matz  <matz@suse.de>
8451         * gengtype.c (is_file_equal): Check that files will be same length.
8453 2013-10-25  Christian Bruel  <christian.bruel@st.com>
8455         * config.gcc (sh-*): Add sh-mem.o to extra_obj.
8456         * config/sh/t-sh (sh-mem.o): New rule.
8457         * config/sh/sh-mem.cc (expand_block_move): Moved here.
8458         (sh_expand_cmpstr): New function.
8459         * config/sh/sh.c (force_into, expand_block_move): Move to sh-mem.c.
8460         * config/sh/sh-protos.h (sh_expand_cmpstr): Declare.
8461         * config/sh/sh.md (cmpstrsi, cmpstr_t): New patterns.
8462         (rotlhi3_8): Rename.
8464 2013-10-24  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8466         * configure.ac (ZW_PROG_COMPILER_DEPENDENCIES): Use CXX instead of CC.
8467         * Makefile.in (CXXDEPMODE): Assign and change users.
8468         (CCDEPMODE): Delete.
8469         * configure: Regenerate.
8471 2013-10-23  David Malcolm  <dmalcolm@redhat.com>
8473         * gengtype-parse.c (require_without_advance): New.
8474         (type): For GTY-marked types that are not GTY((user)), parse any
8475         base classes, requiring them to be single-inheritance, and not
8476         be templates.  For non-GTY-marked types and GTY((user)),
8477         continue to skip over any C++ inheritance specification.
8478         * gengtype-state.c (state_writer::write_state_struct_type):
8479         Write base class of type (if any).
8480         (read_state_struct_type): Read base class of type (if any).
8481         * gengtype.c (new_structure): Add a "base_class" parameter.
8482         (create_optional_field_): Update for new parameter to new_structure.
8483         (adjust_field_rtx_def): Likewise.
8484         (adjust_field_tree_exp): Likewise.
8485         * gengtype.h (struct type): Add "base_class" field to the s
8486         union field.
8487         (new_structure): Add "base" parameter.
8489 2013-10-23  Sriraman Tallam  <tmsriram@google.com>
8491         PR target/57756
8492         * config/i386/i386.c (ix86_option_override_internal):
8493         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...)
8494         (ix86_valid_target_attribute_tree):
8495         Change TARGET_64BIT to TARGET_64BIT_P (opts->...)
8496         Change TARGET_SSE to TARGET_SSE_P (opts->...)
8498 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
8500         * tree-ssa-loop.h: Remove include files.
8501         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
8502         * cfgloopmanip.c: Move required includes from tree-ssa-loop.h.
8503         * graphite-clast-to-gimple.c: Likewise.
8504         * graphite-scop-detection.c: Likewise.
8505         * graphite-sese-to-poly.c: Likewise.
8506         * ipa-inline-analysis.c: Likewise.
8507         * ipa-pure-const.c: Likewise.
8508         * loop-init.c: Likewise.
8509         * passes.c: Likewise.
8510         * predict.c: Likewise.
8511         * tree-cfg.c: Likewise.
8512         * tree-cfgcleanup.c: Likewise.
8513         * tree-chrec.c: Likewise.
8514         * tree-data-ref.c: Likewise.
8515         * tree-loop-distribution.c: Likewise.
8516         * tree-parloops.c: Likewise.
8517         * tree-predcom.c: Likewise.
8518         * tree-scalar-evolution.c: Likewise.
8519         * tree-ssa-address.c: Likewise.
8520         * tree-ssa.c: Likewise.
8521         * tree-ssa-dce.c: Likewise.
8522         * tree-ssa-loop.c: Likewise.
8523         * tree-ssa-loop-im.c: Likewise.
8524         * tree-ssa-loop-ivcanon.c: Likewise.
8525         * tree-ssa-loop-ivopts.c: Likewise.
8526         * tree-ssa-loop-manip.c: Likewise.
8527         * tree-ssa-loop-niter.c: Likewise.
8528         * tree-ssa-loop-prefetch.c: Likewise.
8529         * tree-ssa-loop-unswitch.c: Likewise.
8530         * tree-ssa-reassoc.c: Likewise.
8531         * tree-vect-data-refs.c: Likewise.
8532         * tree-vect-loop.c: Likewise.
8533         * tree-vect-loop-manip.c: Likewise.
8534         * tree-vectorizer.c: Likewise.
8535         * tree-vect-stmts.c: Likewise.
8536         * tree-vrp.c: Likewise.
8538 2013-10-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8540         * config/rs6000/altivec.md (mulv8hi3): Adjust for little endian.
8542 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
8544         PR tree-optimization/58775
8545         PR tree-optimization/58791
8546         * tree-ssa-reassoc.c (reassoc_stmt_dominates_stmt_p): New function.
8547         (insert_stmt_after): Rewritten, don't move the stmt, but really
8548         insert it.
8549         (get_stmt_uid_with_default): Remove.
8550         (build_and_add_sum): Use insert_stmt_after and
8551         reassoc_stmt_dominates_stmt_p.  Fix up uid if bb contains only labels.
8552         (update_range_test): Set uid on stmts added by
8553         force_gimple_operand_gsi.  Don't immediately modify statements
8554         in inter-bb optimization, just update oe->op values.
8555         (optimize_range_tests): Return bool whether any changed have been made.
8556         (update_ops): New function.
8557         (struct inter_bb_range_test_entry): New type.
8558         (maybe_optimize_range_tests): Perform statement changes here.
8559         (not_dominated_by, appears_later_in_bb, get_def_stmt,
8560         ensure_ops_are_available): Remove.
8561         (find_insert_point): Rewritten.
8562         (rewrite_expr_tree): Remove MOVED argument, add CHANGED argument,
8563         return LHS of the (new resp. old) stmt.  Don't call
8564         ensure_ops_are_available, don't reuse SSA_NAMEs, recurse first
8565         instead of last, move new stmt at the right place.
8566         (linearize_expr, repropagate_negates): Don't reuse SSA_NAMEs.
8567         (negate_value): Likewise.  Set uids.
8568         (break_up_subtract_bb): Initialize uids.
8569         (reassociate_bb): Adjust rewrite_expr_tree caller.
8570         (do_reassoc): Don't call renumber_gimple_stmt_uids.
8572 2013-10-23  David Edelsohn  <dje.gcc@gmail.com>
8574         PR target/58838
8575         * config/rs6000/rs6000.md (mulsi3_internal1 and splitter): Add
8576         TARGET_32BIT final condition.
8577         (mulsi3_internal2 and splitter): Same.
8579 2013-10-23  Jeff Law  <law@redhat.com>
8581         * tree-ssa-threadedge.c (thread_across_edge): Do not allow threading
8582         through joiner blocks with abnormal outgoing edges.
8584         * tree-ssa-threadupdate.c (thread_block_1): Renamed from thread_block.
8585         Add parameter JOINERS, to allow/disallow threading through joiner
8586         blocks.
8587         (thread_block): New.  Call thread_block_1.
8588         (mark_threaded_blocks): Remove code to filter out certain cases
8589         of threading through joiner blocks.
8590         (thread_through_all_blocks): Document how we can have a dangling
8591         edge AUX field and clear it.
8593 2013-10-23  Ian Lance Taylor  <iant@google.com>
8595         * doc/invoke.texi (Option Summary): Remove -fno-default-inline.
8596         (C++ Dialect Options): Likewise.
8597         (Optimize Options): Likewise.
8599 2013-10-23  Tom de Vries  <tom@codesourcery.com>
8601         PR tree-optimization/58805
8602         * tree-ssa-tail-merge.c (stmt_local_def): Add gimple_vdef check.
8604 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
8606         * tree-vect-patterns.c (vect_recog_divmod_pattern): Optimize
8607         sequence based on get_range_info returned range.
8609 2013-10-23  Andrew MacLeod  <amacleod@redhat.com>
8611         * tree-ssa.h: Remove all #include's
8612         * gengtype.c (open_base_files): Adjust include list for gtype-desc.c.
8613         * alias.c: Move required includes from tree-ssa.h.
8614         * asan.c: Likewise.
8615         * builtins.c: Likewise.
8616         * calls.c: Likewise.
8617         * cfgexpand.c: Likewise.
8618         * cfghooks.c: Likewise.
8619         * cfgloop.c: Likewise.
8620         * cfgloopmanip.c: Likewise.
8621         * cgraph.c: Likewise.
8622         * cgraphbuild.c: Likewise.
8623         * cgraphclones.c: Likewise.
8624         * cgraphunit.c: Likewise.
8625         * dse.c: Likewise.
8626         * except.c: Likewise.
8627         * expr.c: Likewise.
8628         * final.c: Likewise.
8629         * fold-const.c: Likewise.
8630         * ggc-page.c: Likewise.
8631         * gimple-builder.c: Likewise.
8632         * gimple-fold.c: Likewise.
8633         * gimple-iterator.c: Likewise.
8634         * gimple-low.c: Likewise.
8635         * gimple-pretty-print.c: Likewise.
8636         * gimple-ssa-strength-reduction.c: Likewise.
8637         * gimple-streamer-in.c: Likewise.
8638         * gimple-streamer-out.c: Likewise.
8639         * gimplify.c: Likewise.
8640         * graphite-blocking.c: Likewise.
8641         * graphite-clast-to-gimple.c: Likewise.
8642         * graphite-dependences.c: Likewise.
8643         * graphite-interchange.c: Likewise.
8644         * graphite-optimize-isl.c: Likewise.
8645         * graphite-poly.c: Likewise.
8646         * graphite-scop-detection.c: Likewise.
8647         * graphite-sese-to-poly.c: Likewise.
8648         * graphite.c: Likewise.
8649         * ipa-cp.c: Likewise.
8650         * ipa-inline-analysis.c: Likewise.
8651         * ipa-inline-transform.c: Likewise.
8652         * ipa-inline.c: Likewise.
8653         * ipa-prop.c: Likewise.
8654         * ipa-pure-const.c: Likewise.
8655         * ipa-reference.c: Likewise.
8656         * ipa-split.c: Likewise.
8657         * ipa-utils.c: Likewise.
8658         * loop-init.c: Likewise.
8659         * lto-cgraph.c: Likewise.
8660         * lto-section-in.c: Likewise.
8661         * lto-section-out.c: Likewise.
8662         * lto-streamer-in.c: Likewise.
8663         * lto-streamer-out.c: Likewise.
8664         * lto-streamer.c: Likewise.
8665         * omp-low.c: Likewise.
8666         * passes.c: Likewise.
8667         * predict.c: Likewise.
8668         * print-tree.c: Likewise.
8669         * profile.c: Likewise.
8670         * sese.c: Likewise.
8671         * targhooks.c: Likewise.
8672         * tracer.c: Likewise.
8673         * trans-mem.c: Likewise.
8674         * tree-call-cdce.c: Likewise.
8675         * tree-cfg.c: Likewise.
8676         * tree-cfgcleanup.c: Likewise.
8677         * tree-chrec.c: Likewise.
8678         * tree-complex.c: Likewise.
8679         * tree-data-ref.c: Likewise.
8680         * tree-dfa.c: Likewise.
8681         * tree-eh.c: Likewise.
8682         * tree-emutls.c: Likewise.
8683         * tree-if-conv.c: Likewise.
8684         * tree-inline.c: Likewise.
8685         * tree-into-ssa.c: Likewise.
8686         * tree-loop-distribution.c: Likewise.
8687         * tree-mudflap.c: Likewise.
8688         * tree-nested.c: Likewise.
8689         * tree-nrv.c: Likewise.
8690         * tree-object-size.c: Likewise.
8691         * tree-outof-ssa.c: Likewise.
8692         * tree-parloops.c: Likewise.
8693         * tree-phinodes.c: Likewise.
8694         * tree-predcom.c: Likewise.
8695         * tree-pretty-print.c: Likewise.
8696         * tree-profile.c: Likewise.
8697         * tree-scalar-evolution.c: Likewise.
8698         * tree-sra.c: Likewise.
8699         * tree-ssa-address.c: Likewise.
8700         * tree-ssa-alias.c: Likewise.
8701         * tree-ssa-ccp.c: Likewise.
8702         * tree-ssa-coalesce.c: Likewise.
8703         * tree-ssa-copy.c: Likewise.
8704         * tree-ssa-copyrename.c: Likewise.
8705         * tree-ssa-dce.c: Likewise.
8706         * tree-ssa-dom.c: Likewise.
8707         * tree-ssa-dse.c: Likewise.
8708         * tree-ssa-forwprop.c: Likewise.
8709         * tree-ssa-ifcombine.c: Likewise.
8710         * tree-ssa-live.c: Likewise.
8711         * tree-ssa-loop-ch.c: Likewise.
8712         * tree-ssa-loop-im.c: Likewise.
8713         * tree-ssa-loop-ivcanon.c: Likewise.
8714         * tree-ssa-loop-ivopts.c: Likewise.
8715         * tree-ssa-loop-manip.c: Likewise.
8716         * tree-ssa-loop-niter.c: Likewise.
8717         * tree-ssa-loop-prefetch.c: Likewise.
8718         * tree-ssa-loop-unswitch.c: Likewise.
8719         * tree-ssa-loop.c: Likewise.
8720         * tree-ssa-math-opts.c: Likewise.
8721         * tree-ssa-operands.c: Likewise.
8722         * tree-ssa-phiopt.c: Likewise.
8723         * tree-ssa-phiprop.c: Likewise.
8724         * tree-ssa-pre.c: Likewise.
8725         * tree-ssa-propagate.c: Likewise.
8726         * tree-ssa-reassoc.c: Likewise.
8727         * tree-ssa-sccvn.c: Likewise.
8728         * tree-ssa-sink.c: Likewise.
8729         * tree-ssa-strlen.c: Likewise.
8730         * tree-ssa-structalias.c: Likewise.
8731         * tree-ssa-tail-merge.c: Likewise.
8732         * tree-ssa-ter.c: Likewise.
8733         * tree-ssa-threadedge.c: Likewise.
8734         * tree-ssa-threadupdate.c: Likewise.
8735         * tree-ssa-uncprop.c: Likewise.
8736         * tree-ssa-uninit.c: Likewise.
8737         * tree-ssa.c: Likewise.
8738         * tree-ssanames.c: Likewise.
8739         * tree-stdarg.c: Likewise.
8740         * tree-streamer-in.c: Likewise.
8741         * tree-switch-conversion.c: Likewise.
8742         * tree-tailcall.c: Likewise.
8743         * tree-vect-data-refs.c: Likewise.
8744         * tree-vect-generic.c: Likewise.
8745         * tree-vect-loop-manip.c: Likewise.
8746         * tree-vect-loop.c: Likewise.
8747         * tree-vect-patterns.c: Likewise.
8748         * tree-vect-slp.c: Likewise.
8749         * tree-vect-stmts.c: Likewise.
8750         * tree-vectorizer.c: Likewise.
8751         * tree-vrp.c: Likewise.
8752         * tree.c: Likewise.
8753         * tsan.c: Likewise.
8754         * value-prof.c: Likewise.
8755         * var-tracking.c: Likewise.
8756         * varpool.c: Likewise.
8757         * vtable-verify.c: Likewise.
8759 2013-10-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8761         * config/tilegx/tilegx.c: Include "tree.h".
8763 2013-10-23  Jakub Jelinek  <jakub@redhat.com>
8765         * gimple-pretty-print.c (dump_ssaname_info): Always print "# " before
8766         the info, not after it.
8767         (gump_gimple_phi): Add COMMENT argument, if true, print "# " after
8768         dump_ssaname_info call.
8769         (pp_gimple_stmt_1): Adjust caller.
8770         (dump_phi_nodes): Likewise.  Don't print "# " here.
8772 2013-10-22  Jan Hubicka  <jh@suse.cz>
8774         * i386.h (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES_EPILOGUES): New
8775         tuning flag.
8776         * x86-tune.def (TARGET_MISALIGNED_MOVE_STRING_PROLOGUES): Define it.
8777         * i386.c (expand_small_movmem_or_setmem): New function.
8778         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): New
8779         function.
8780         (alg_usable_p): Add support for value ranges; cleanup.
8781         (ix86_expand_set_or_movmem): Add support for misaligned moves.
8783 2013-10-22  Sterling Augustine  <saugustine@google.com>
8785         * doc/invoke.texi: Document -ggnu-pubnames.
8786         * common.opt: Add new option -ggnu-pubnames and modify -gpubnames
8787         logic.
8788         * dwarf2out.c: Include gdb/gdb-index.h.
8789         (DEBUG_PUBNAMES_SECTION, DEBUG_PUBTYPES_SECTION): Handle
8790         debug_generate_pub_sections.
8791         (is_java, output_pubtables, output_pubname): New functions.
8792         (include_pubname_in_output): Handle debug_generate_pub_sections at
8793         level 2.
8794         (size_of_pubnames): Use new local space_for_flags based on
8795         debug_generate_pub_sections.
8796         (output_pubnames): Unify pubnames and pubtypes output logic.
8797         Genericize comments.  Call output_pubname.
8798         (dwarf2out_finish): Move logic to output_pubnames and call it.
8800 2013-10-22  Uros Bizjak  <ubizjak@gmail.com>
8802         PR target/58779
8803         * config/i386/i386.c (put_condition_code) <case GTU, case LEU>:
8804         Remove CCCmode handling.
8805         <case LTU>: Return 'c' suffix for CCCmode.
8806         <case GEU>: Return 'nc' suffix for CCCmode.
8807         (ix86_cc_mode) <case GTU, case LEU>: Do not generate overflow checks.
8808         * config/i386/i386.md (*sub<mode>3_cconly_overflow): Remove.
8809         (*sub<mode>3_cc_overflow): Ditto.
8810         (*subsi3_zext_cc_overflow): Ditto.
8812 2013-10-22  Steve Ellcey  <sellcey@mips.com>
8814         * config/mips/mips.c (mips_rtx_costs):  Fix cost estimate for nor
8815         (AND (NOT OP1) (NOT OP2)).
8817 2013-10-22  Bill Schmidt  <wschmidt@vnet.ibm.com>
8819         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
8820         meaning of merge-high and merge-low masks for little endian; avoid
8821         use of vector-pack masks for little endian for mismatched modes.
8823 2013-10-22  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8825         * config/tilepro/tilepro.c: Include "tree.h".
8827 2013-10-22  Andreas Schwab  <schwab@suse.de>
8829         * config/m68k/m68k.c (notice_update_cc): Handle register conflict
8830         with PRE_DEC.
8832 2013-10-22  Paolo Carlini  <paolo.carlini@oracle.com>
8834         * doc/contrib.texi ([Fran@,{c}ois Dumont], [Tim Shen],
8835         [Ed Smith-Rowland]): New entries.
8836         ([Stephen M. Webb]): Update.
8838 2013-10-22  Andrew MacLeod  <amacleod@redhat.com>
8840         * tree-ssa-ter.h: Remove duplicate copy of file contents.
8842 2013-10-21  Marek Polacek  <polacek@redhat.com>
8844         PR middle-end/58809
8845         * fold-const.c (fold_range_test): Return 0 if the type is not
8846         an integral type.
8848 2013-10-21  Richard Sandiford  <rdsandiford@googlemail.com>
8850         * system.h: Move hwint.h include further down.
8851         * hwint.h (sext_hwi, zext_hwi): Define unconditionally.  Add
8852         gcc_checking_asserts.
8853         * hwint.c (sext_hwi, zext_hwi): Delete ENABLE_CHECKING versions.
8855 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8857         Fix volatile issues in optimize_bit_field_compare.
8858         * fold-const.c (optimize_bit_field_compare): Bail out if
8859         lvolatilep or rvolatilep.
8861 2013-10-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8863         Fix DECL_BIT_FIELD depencency on flag_strict_volatile_bitfields
8864         and get_inner_reference returning different pmode for non-volatile
8865         bit-field members dependent on flag_strict_volatile_bitfields.
8866         * stor-layout.c (layout_decl): Remove special handling of
8867         flag_strict_volatile_bitfields.
8868         * expr.c (get_inner_reference): Don't use DECL_BIT_FIELD
8869         if flag_strict_volatile_bitfields > 0 and TREE_THIS_VOLATILE.
8871 2013-10-21  Paulo Matos  <pmatos@broadcom.com>
8873         * ipa-inline.c (edge_badness): Cap edge->count at max_count for badness
8874         calculations.
8876 2013-10-21  Jeff Law  <law@redhat.com>
8878         * tree-ssa-threadedge.c (thread_through_normal_block): New
8879         argument VISITED.  Remove VISISTED as a local variable.  When we
8880         have a threadable jump, verify the destination of the jump has not
8881         been visised.
8882         (thread_across_edge): Allocate VISITED bitmap once at function
8883         scope and use it throughout.  Make sure to set appropriate bits in
8884         VISITED for E (start of jump thread path).
8885         * tree-ssa-threadupdate.c (mark_threaded_blocks): Reject threading
8886         through a joiner if any edge on the path has a recorded jump thread.
8888 2013-10-21  Ian Lance Taylor  <iant@google.com>
8890         * doc/invoke.texi (Optimize Options): For -fno-toplevel-reorder,
8891         don't imply that attributes can solve all problems.
8892         (Directory Options): Fix typo.
8894 2013-10-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8896         * config/arm/arm.c (cortexa9_extra_costs): Update mult costs for
8897         extend and extend_add.
8899 2013-10-21  Richard Biener  <rguenther@suse.de>
8901         PR tree-optimization/58794
8902         * fold-const.c (operand_equal_p): Compare FIELD_DECL operand
8903         of COMPONENT_REFs with OEP_CONSTANT_ADDRESS_OF left in place.
8905 2013-10-21  Richard Biener  <rguenther@suse.de>
8907         PR middle-end/58742
8908         * fold-const.c (fold_binary_loc): Fold ((T) (X /[ex] C)) * C
8909         to (T) X for sign-changing conversions (or no conversion).
8911 2013-10-20  Uros Bizjak  <ubizjak@gmail.com>
8913         * config/i386/i386.md (kxnor<mode>): Add FLAGS_REG clobber.
8915 2013-10-20  Jan Hubicka  <jh@suse.cz>
8917         * config/i386/i386-tune.def: Add comment; organize into categories
8919 2013-10-21  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
8921         * config/i386/i386.c (expand_set_or_movmem_via_loop): Add issetmem
8922         argument.  Update function comment.
8923         (expand_set_or_movmem_via_rep): New function combining
8924         expand_movmem_via_rep_mov and expand_setmem_via_rep_stos.
8925         (expand_movmem_via_rep_mov): Remove.
8926         expand_setmem_via_rep_stos): Remove.
8927         (expand_movmem_epilogue): Update calls correspondingly.
8928         (expand_setmem_epilogue_via_loop): Likewise.
8929         (emit_memset): New.
8930         (expand_setmem_epilogue): Add VEC_VALUE argument, refactor.
8931         (expand_set_or_movmem_prologue): New function combining
8932         expand_movmem_prologue and expand_setmem_prologue.
8933         (expand_movmem_prologue): Remove.
8934         (expand_setmem_prologue): Remove.
8935         (expand_set_or_movmem_constant_prologue): New function combining
8936         expand_constant_movmem_prologue and expand_constant_setmem_prologue.
8937         (expand_constant_movmem_prologue): Remove.
8938         (expand_constant_setmem_prologue): Remove.
8939         (promote_duplicated_reg): Allow vector-const0 value.
8940         (ix86_expand_set_or_movmem): New function combining ix86_expand_movmem
8941         and ix86_expand_setmem.
8942         (ix86_expand_movmem): Call ix86_expand_set_or_movmem.
8943         (ix86_expand_setmem): Call ix86_expand_set_or_movmem.
8945 2013-10-21  Diego Novillo  <dnovillo@google.com>
8947         * asan.c: Include tree.h
8948         * bb-reorder.c: Likewise.
8949         * cfgcleanup.c: Likewise.
8950         * cfgloopmanip.c: Likewise.
8951         * data-streamer-in.c: Likewise.
8952         * data-streamer-out.c: Likewise.
8953         * data-streamer.c: Likewise.
8954         * dwarf2cfi.c: Likewise.
8955         * graphite-blocking.c: Likewise.
8956         * graphite-clast-to-gimple.c: Likewise.
8957         * graphite-dependences.c: Likewise.
8958         * graphite-interchange.c: Likewise.
8959         * graphite-optimize-isl.c: Likewise.
8960         * graphite-poly.c: Likewise.
8961         * graphite-scop-detection.c: Likewise.
8962         * graphite-sese-to-poly.c: Likewise.
8963         * graphite.c: Likewise.
8964         * ipa-devirt.c: Likewise.
8965         * ipa-profile.c: Likewise.
8966         * ipa.c: Likewise.
8967         * ira.c: Likewise.
8968         * loop-init.c: Likewise.
8969         * loop-unroll.c: Likewise.
8970         * lower-subreg.c: Likewise.
8971         * lto/lto-object.c: Likewise.
8972         * recog.c: Likewise.
8973         * reginfo.c: Likewise.
8974         * tree-loop-distribution.c: Likewise.
8975         * tree-parloops.c: Likewise.
8976         * tree-ssa-strlen.c: Likewise.
8977         * tree-streamer.c: Likewise.
8978         * value-prof.c: Likewise.
8979         * target-globals.c: Likewise.
8980         * expr.h: Include tree-core.h instead of tree.h.
8981         * gimple.h: Likewise.
8982         * ipa-prop.h: Likewise.
8983         * ipa-utils.h: Likewise.
8984         * lto-streamer.h: Likewise.
8985         * streamer-hooks.h: Likewise.
8986         * ipa-reference.h: Include cgraph.h instead of tree.h.
8987         * cgraph.h: Include basic-block.h instead of tree.h.
8988         * tree-streamer.h: Do not include tree.h.
8989         * genattrtab.c (write_header): Generate inclusion of tree.h.
8990         * genautomata.c (main): Likewise.
8991         * genemit.c: Likewise.
8992         * genopinit.c: Likewise.
8993         * genoutput.c (output_prologue): Likewise.
8994         * genpeep.c: Likewise.
8996 2013-10-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8998         * config/rs6000/altivec.md (vec_unpacku_hi_v16qi): Adjust for
8999         little endian.
9000         (vec_unpacku_hi_v8hi): Likewise.
9001         (vec_unpacku_lo_v16qi): Likewise.
9002         (vec_unpacku_lo_v8hi): Likewise.
9004 2013-10-20  Jan Hubicka  <jh@suse.cz>
9006         * config/i386/x86-tune.def (X86_TUNE_SLOW_IMUL_IMM32_MEM,
9007         X86_TUNE_SLOW_IMUL_IMM8): Keep enabled only for K8 and AMDFAM10.
9008         (X86_TUNE_USE_VECTOR_FP_CONVERTS): Disable for generic.
9010 2013-10-20  Richard Sandiford  <rdsandiford@googlemail.com>
9012         * config/mips/mips.h (ISA_HAS_WSBH): Define.
9013         * config/mips/mips.md (UNSPEC_WSBH, UNSPEC_DSBH, UNSPEC_DSHD): New
9014         constants.
9015         (bswaphi2, bswapsi2, bswapdi2, wsbh, dsbh, dshd): New patterns.
9017 2013-10-19  John David Anglin  <danglin@gcc.gnu.org>
9019         PR target/58603
9020         * system.h: Undef m_slot.
9022 2013-10-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9024         * config/rs6000/rs6000.c (vspltis_constant): Make sure we check
9025         all elements for both endian flavors.
9027 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
9029         PR target/58792
9030         * config/i386/i386.c (ix86_function_value_regno): Add DX_REG,
9031         ST1_REG and XMM1_REG for 32bit and 64bit targets.  Also add DI_REG
9032         and SI_REG for 64bit SYSV ABI targets.
9034 2013-10-19  Uros Bizjak  <ubizjak@gmail.com>
9036         * mode-switching.c (create_pre_exit): Rename maybe_builtin_apply
9037         to multi_reg_return.  Clarify that we are skipping USEs of multiple
9038         return registers.  Use bool type where appropriate.
9040 2013-10-18  Jan Hubicka  <jh@suse.cz>
9042         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Disable accumulation
9043         for cold functions.
9044         * x86-tune.def (X86_TUNE_USE_LEAVE): Update comment.
9045         (X86_TUNE_PUSH_MEMORY): Likewise.
9046         (X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL,
9047         X86_TUNE_AVX256_UNALIGNED_STORE_OPTIMAL): New.
9048         (X86_TUNE_ACCUMULATE_OUTGOING_ARGS, X86_TUNE_ALWAYS_FANCY_MATH_387):
9049         New.
9050         * i386.c (x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
9051         x86_avx256_split_unaligned_load, x86_avx256_split_unaligned_store):
9052         Remove.
9053         (ix86_option_override_internal): Update to use tune features instead
9054         of variables.
9056 2013-10-18  Cong Hou  <congh@google.com>
9058         PR tree-optimization/58508
9059         * tree-vect-loop-manip.c (vect_loop_versioning): Hoist loop invariant
9060         statement that contains data refs with zero-step.
9062 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9064         * tree-ssa.h: Don't include gimple-low.h, tree-ssa-address.h,
9065         sbitmap.h, tree-ssa-threadedge.h, tree-ssa-dom.h and tree-cfgcleanup.h.
9066         * gimple-low.c (gimple_check_call_arg,
9067         gimple_check_call_matching_types): Move to cgraph.c.
9068         * gimple-low.h: Remove prototype.
9069         * cgraph.c: (gimple_check_call_arg, gimple_check_call_matching_types):
9070         Relocate from gimple-low.c.
9071         * cgraph.h: Add prototype.  Don't include basic-block.h.
9072         * gimplify.c: Add gimple-low to include list.
9073         * omp-low.c: Add gimple-low and tree-cfgcleanup.h to include list.
9074         * tree-eh.c: Add gimple-low to include list.
9075         * tree-nested.c: Likewise.
9076         * cfgexpand.c: Add tree-ssa-address.h to include list.
9077         * expr.c: Likewise.
9078         * gimple-fold.c: Likewise.
9079         * gimple-ssa-strength-reduction.c: Likewise.
9080         * trans-mem.c: Likewise.
9081         * tree-mudflap.c: Likewise.
9082         * tree-ssa-loop-ivopts.c: Likewise.
9083         * tree-ssa-dom.c: Include tree-ssa-threadedge.h and tree-ssa-dom.h.
9084         (degenerate_phi_result): Move to tree-phinodes.c.
9085         * tree-ssa-loop-ch.c: Include tree-ssa-threadedge.h.
9086         * tree-ssa-threadedge.c: Likewise.
9087         * tree-vrp.c: Likewise.
9088         * tree-phinodes.c (degenerate_phi_result): Relocate here.
9089         * tree-ssa-dom.h (degenerate_phi_result): Remove Prototype.
9090         * tree-phinodes.h (degenerate_phi_result): Add prototype.
9091         * tree-ssa-copy.c: Include tree-ssa-dom.h.
9092         * tree-ssa-forwprop.c: Likewise.
9093         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing,
9094         pass_data_cleanup_cfg_post_optimizing,
9095         make_pass_cleanup_cfg_post_optimizing): Relocate from tree-optimize.c.
9096         * tree-optimize.c: Delete File.
9097         * graphite.c: Include tree-cfgcleanup.h.
9098         * passes.c: Likewise.
9099         * tree-cfg.c: Likewise.
9100         * tree-profile.c: Likewise.
9101         * tree-ssa-dse.c: Likewise.
9102         * tree-ssa-loop-ivcanon.c: Likewise.
9103         * tree-switch-conversion.c: Don't include tree-ssa-operands.h.
9104         * tree-outof-ssa.c: Include sbitmap.h.
9105         * tree-ssa-live.c: Likewise.
9106         * tree-ssa-propagate.c: Likewise.
9107         * tree-ssa-structalias.c: Likewise.
9108         * tree-stdarg.c: Likewise.
9109         * Makefile.in (OBJS): Delete tree-optimize.o.
9110         * basic-block.h (gcov_type, gcov_type_unsigned): Move to coretypes.h.
9111         * coretypes.h (gcov_type, gcov_type_unsigned): Relocate here.
9112         * varasm.c: Include basic-block.h.
9113         * cfgloop.h: Include function.h instead of basic-block.h
9114         (bb_loop_depth): Move to cfgloop.c.
9115         * cfgloop.c (bb_loop_depth): Relocate from cfgloop.h.
9117 2013-10-18  Teresa Johnson  <tejohnson@google.com>
9119         * predict.c (probably_never_executed): Compare frequency-based
9120         count to number of training runs.
9121         * params.def (UNLIKELY_BB_COUNT_FRACTION): New parameter.
9123 2013-10-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9125         * config/arm/arm.c (cortexa9_extra_costs): New table.
9126         (arm_cortex_a9_tune): Use cortexa9_extra_costs.
9128 2013-10-18  Jeff Law  <law@redhat.com>
9130         * tree-ssa-threadupdate.c: Do not include "tm.h" or "tm_p.h".
9132         * tree-ssa-threadupdate.c: Include "dbgcnt.h".
9133         (register_jump_thread): Add "registered_jump_thread" debug
9134         counter support.
9135         * dbgcnt.def (registered_jump_thread): New debug counter.
9137 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9139         * config/rs6000/rs6000.c: Include cgraph.h.
9141 2013-10-18  Teresa Johnson  <tejohnson@google.com>
9143         * tree-ssa-tail-merge.c (replace_block_by): Update edge
9144         weights during merging.
9146 2013-10-18  Andrew MacLeod  <amacleod@redhat.com>
9148         * tree-cfg.h: Rename from tree-flow.h.  Remove #includes.
9149         * tree-ssa.h: Relocate required #includes from tree-cfg.h.
9150         * tree-ssa-operands.h: Remove prototype.
9151         * tree-ssa-operands.c (virtual_operand_p): Move to gimple.c.
9152         * gimple.c (virtual_operand_p): Relocate from gimple.c.
9153         * gimple.h: Add prototype.
9154         * gimple-ssa.h: Include tree-ssa-operands.h.
9155         * tree-dump.c: Add tree-cfg.h to include list.
9156         * tree-ssa-alias.c: Add ipa-reference.h to include list.
9157         * config/alpha/alpha.c: Include gimple-ssa.h instead of tree-flow.h.
9158         * config/i386/i386.c: Don't include tree-flow.h.
9159         * config/rs6000/rs6000.c: Likewise.
9161 2013-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9163         * config/frv/frv.c (frv_init_cumulative_args): Fix wrong cast.
9165 2013-10-18  Richard Biener  <rguenther@suse.de>
9167         * stor-layout.c (layout_type): Do not change TYPE_PRECISION
9168         or TYPE_UNSIGNED of integral types.
9169         (set_min_and_max_values_for_integral_type): Leave TYPE_MIN/MAX_VALUE
9170         NULL_TREE for zero-precision integral types.
9172 2013-10-18  James Greenhalgh  <james.greenhalgh@arm.com>
9174         * config/aarch64/arm_neon.h
9175         (vcvt<ds>_n_<fsu><32,64>_<fsu><32,64>): Correct argument types.
9177 2013-10-17  Sriraman Tallam  <tmsriram@google.com>
9179         PR target/57756
9180         * opth-gen.awk: Define target_flags_explicit.
9182 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
9184         * config/rs6000/rs6000.c (enum rs6000_reload_reg_type): Add new
9185         fields to the reg_addr array that describes the valid addressing
9186         mode for any register, general purpose registers, floating point
9187         registers, and Altivec registers.
9188         (FIRST_RELOAD_REG_CLASS): Likewise.
9189         (LAST_RELOAD_REG_CLASS): Likewise.
9190         (struct reload_reg_map_type): Likewise.
9191         (reload_reg_map_type): Likewise.
9192         (RELOAD_REG_VALID): Likewise.
9193         (RELOAD_REG_MULTIPLE): Likewise.
9194         (RELOAD_REG_INDEXED): Likewise.
9195         (RELOAD_REG_OFFSET): Likewise.
9196         (RELOAD_REG_PRE_INCDEC): Likewise.
9197         (RELOAD_REG_PRE_MODIFY): Likewise.
9198         (reg_addr): Likewise.
9199         (mode_supports_pre_incdec_p): New helper functions to say whether
9200         a given mode supports PRE_INC, PRE_DEC, and PRE_MODIFY.
9201         (mode_supports_pre_modify_p): Likewise.
9202         (rs6000_debug_vector_unit): Rearrange the -mdebug=reg output to
9203         print the valid address mode bits for each mode.
9204         (rs6000_debug_print_mode): Likewise.
9205         (rs6000_debug_reg_global): Likewise.
9206         (rs6000_setup_reg_addr_masks): New function to set up the address
9207         mask bits for each type.
9208         (rs6000_init_hard_regno_mode_ok): Use memset to clear arrays.
9209         Call rs6000_setup_reg_addr_masks to set up the address mask bits.
9210         (rs6000_legitimate_address_p): Use mode_supports_pre_incdec_p and
9211         mode_supports_pre_modify_p to determine if PRE_INC, PRE_DEC, and
9212         PRE_MODIFY are supported.
9213         (rs6000_output_move_128bit): Change to use {src,dest}_vmx_p for altivec
9214         registers, instead of {src,dest}_av_p.
9215         (rs6000_print_options_internal): Tweak the debug output slightly.
9217 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
9219         * config/i386/sse.md (*vec_widen_smult_even_v8si): Remove
9220         isa attribute.
9222 2013-10-17  Andrew MacLeod  <amacleod@redhat.com>
9224         * tree-flow.h (struct omp_region): Move to omp-low.c.
9225         Remove omp_ prototypes and variables.
9226         * gimple.h (omp_reduction_init): Move prototype to omp-low.h.
9227         (copy_var_decl): Relocate prototype from tree-flow.h.
9228         * gimple.c (copy_var_decl): Relocate from omp-low.c.
9229         * tree.h: Move prototype to omp-low.h.
9230         * omp-low.h: New File.  Relocate prototypes here.
9231         * omp-low.c (struct omp_region): Make local here.
9232         (root_omp_region): Make static.
9233         (copy_var_decl) Move to gimple.c.
9234         (new_omp_region): Make static.
9235         (make_gimple_omp_edges): New.  Refactored from tree-cfg.c make_edges.
9236         * tree-cfg.c: Include omp-low.h.
9237         (make_edges): Factor out OMP specific bits to make_gimple_omp_edges.
9238         * gimplify.c: Include omp-low.h.
9239         * tree-parloops.c: Likewise.
9241 2013-10-17  Uros Bizjak  <ubizjak@gmail.com>
9243         * config/i386/i386.c (ix86_fixup_binary_operands): When both source
9244         operands are in memory, prefer to force non-matched operand 1 to
9245         the register.
9247 2013-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
9249         PR target/58673
9250         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Only
9251         restrict TImode addresses to single indirect registers if both
9252         -mquad-memory and -mvsx-timode are used.
9253         (rs6000_output_move_128bit): Use quad_load_store_p to determine if
9254         we should emit load/store quad.  Remove using %y for quad memory
9255         addresses.
9257         * config/rs6000/rs6000.md (mov<mode>_ppc64, TI/PTImode): Add
9258         constraints to allow load/store quad on machines where TImode is
9259         not allowed in VSX registers.  Use 'n' instead of 'F' constraint
9260         for TImode to load integer constants.
9262 2013-10-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9264         * config/aarch64/aarch64.c (aarch64_print_operand): Handle 'c'.
9266 2013-10-17  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9268         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Adjust
9269         handling of STACK_REG.
9271 2013-10-17  Richard Biener  <rguenther@suse.de>
9273         PR tree-optimization/58143
9274         * tree-ssa-loop-im.c (arith_code_with_undefined_signed_overflow):
9275         New function.
9276         (rewrite_to_defined_overflow): Likewise.
9277         (move_computations_dom_walker::before_dom): Rewrite stmts
9278         with undefined signed overflow that are not always executed
9279         into unsigned arithmetic.
9281 2013-10-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
9283         PR target/57756
9284         * config/rs6000/rs6000.opt (rs6000_isa_flags_explicit): Move the
9285         explicit isa flag to be an options variable, instead of using
9286         global_options_set.  Remove define from rs6000.h.
9287         * config/rs6000/rs6000.h (rs6000_isa_flags_explicit): Likewise.
9289         * config/rs6000/rs6000.c (rs6000_option_override_internal):
9290         Initialize rs6000_isa_flags_explicit.
9291         (rs6000_function_specific_save): Add gcc_options* parameter, so
9292         that the powerpc builds after the 2013-10-15 changes.
9293         (rs6000_function_specific_restore): Likewise.
9295 2013-10-16  DJ Delorie  <dj@redhat.com>
9297         * config/rl78/rl78.c (rl78_alloc_address_registers_macax): Verify
9298         op is a REG before checking REGNO.
9299         (rl78_alloc_physical_registers): Verify pattern is a SET before
9300         checking SET_SRC.
9302 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9304         * config/rs6000/vector.md (vec_unpacks_hi_v4sf): Correct for
9305         endianness.
9306         (vec_unpacks_lo_v4sf): Likewise.
9307         (vec_unpacks_float_hi_v4si): Likewise.
9308         (vec_unpacks_float_lo_v4si): Likewise.
9309         (vec_unpacku_float_hi_v4si): Likewise.
9310         (vec_unpacku_float_lo_v4si): Likewise.
9312 2013-10-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9314         * config/rs6000/vsx.md (vsx_concat_<mode>): Adjust output for LE.
9315         (vsx_concat_v2sf): Likewise.
9317 2013-10-16  James Greenhalgh  <james.greenhalgh@arm.com>
9319         * config/aarch64/aarch64.md
9320         (*mov<mode>_aarch64): Fix output template for DUP (element) Scalar.
9322 2013-10-16  Andrew MacLeod  <amacleod@redhat.com>
9324         PR tree-optimization/58697
9325         * cfgloop.c (get_estimated_loop_iterations_int): Rename from
9326         estimated_loop_iterations_int.
9327         (max_stmt_executions_int): Call get_max_loop_iterations_int.
9328         (get_max_loop_iterations_int): New.  HWINT version of
9329         get_max_loop_iterations.
9330         * cfgloop.h: Add prototypes.
9331         * loop-iv.c (find_simple_exit): call get_estimated_loop_iterations_int.
9332         * loop-unroll.c (decide_peel_once_rolling): Call
9333         get_estimated_loop_iterations_int.
9334         * tree-ssa-loop-niter.c (estimated_loop_iterations_int): Add back.
9335         * tree-ssa-loop-niter.h: Tweak prototypes.
9337 2013-10-16  David Malcolm  <dmalcolm@redhat.com>
9339         * gengtype-parse.c (struct_field_seq): Ignore access-control
9340         keywords ("public:" etc).
9342 2013-10-16  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9344         * config/aarch64/aarch64.c (aarch64_regno_regclass): Classify
9345         FRAME_POINTER_REGNUM and ARG_POINTER_REGNUM as POINTER_REGS.
9347 2013-10-16  Yvan Roux  <yvan.roux@linaro.org>
9349         * config/arm/arm.opt (mlra): New option.
9350         * config/arm/arm.c (arm_lra_p): New function.
9351         (TARGET_LRA_P): Define.
9353 2013-10-16  Paulo Matos  <pmatos@broadcom.com>
9355         * tree-core.h (tree_code_name): Remove.
9356         * tree.h (get_tree_code_name): New prototype.
9357         * tree.c (tree_code_name): Make static.
9358         (get_tree_code_name): New function.
9359         (dump_tree_statistics, tree_check_failed, tree_not_check_failed,
9360         tree_class_check_failed, tree_range_check_failed,
9361         tree_not_class_check_failed, omp_clause_check_failed,
9362         tree_contains_struct_check_failed, tree_operand_check_failed): Use new
9363         wrapper get_tree_code_name instead of calling tree_code_name directly.
9364         * tree-vrp.c (dump_asserts_for): Likewise.
9365         * tree-dump.c (dequeue_and_dump): Likewise.
9366         * tree-pretty-print.c (do_niy, dump_generic_node): Likewise.
9367         * tree-pretty-print.h (pp_unsupported_tree): Likewise.
9368         * lto-streamer-out.c (lto_write_tree, DFS_write_tree): Likewise.
9369         * tree-ssa-dom.c (print_expr_hash_elt): Likewise.
9370         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
9371         dump_ternary_rhs, dump_gimple_assign, dump_gimple_cond,
9372         dump_gimple_omp_for): Likewise.
9373         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Likewise.
9374         * tree-ssa-pre.c (print_pre_expr): Likewise.
9375         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
9376         * print-tree.c (print_node_brief, print_node): Likewise.
9377         * gimple.c (gimple_check_failed): Likewise.
9378         * lto-streamer.c (lto_tag_name, print_lto_report): Likewise.
9379         * config/frv/frv.c (frv_init_cumulative_args): Likewise.
9380         * config/mep/mep.c (mep_validate_vliw): Likewise.
9381         * config/iq2000/iq2000.c (init_cumulative_args): Likewise.
9382         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
9384 2013-10-16 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
9386         * config/i386/i386.c (ix86_option_override_internal): Enable FMA4
9387         for AMD bdver3.
9389 2013-10-16  Hans-Peter Nilsson  <hp@axis.com>
9391         * config/cris/t-elfmulti (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
9392         (MULTILIB_MATCHES): Add multilib for -march=v8.
9394 2013-10-15 Sriraman Tallam  <tmsriram@google.com>
9396         PR target/57756
9397         * optc-save-gen.awk: Add extra parameter to the save and restore
9398         target calls.
9399         * opth-gen.awk: Generate new TARGET_* macros  to accept a parameter.
9400         * tree.c (build_optimization_node): New parameter.  Add extra parameter
9401         to call to cl_optimization_save.
9402         (build_target_option_node): New parameter. Add extra parameter
9403         to call to cl_target_option_save.
9404         * tree.h (build_optimization_node): New parameter.
9405         (build_target_option_node): New parameter.
9406         * c-family/c-common.c (handle_optimize_attribute): Fix calls to
9407         build_optimization_node and build_target_option_node.
9408         * c-family/c-pragma.c (handle_pragma_optimize): Ditto.
9409         (handle_pragma_push_options): Ditto.
9410         * toplev.c (process_options): Ditto.
9411         * opts.c (init_options_struct): Check for opts_set non-null.
9412         * target.def (target_option.save): New parameter.
9413         (target_option.restore): New parameter.
9414         * tm.texi: Generate.
9415         * config/i386/i386-c.c (ix86_target_macros_internal): Ditto.
9416         (ix86_pragma_target_parse): Ditto.
9417         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree): New
9418         parameters.
9419         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix calls
9420         to  build_optimization_node and build_target_option_node.
9421         (rs6000_valid_attribute_p): Ditto.
9422         (rs6000_pragma_target_parse): Ditto.
9423         * config/i386/i386.opt (x_ix86_target_flags_explicit): New TargetSave
9424         data.
9425         * config/i386/i386.h:
9426         TARGET_64BIT_P: New Macro
9427         TARGET_MMX_P: New Macro.
9428         TARGET_3DNOW_P: New Macro.
9429         TARGET_3DNOW_A_P: New Macro.
9430         TARGET_SSE_P: New Macro.
9431         TARGET_SSE2_P: New Macro.
9432         TARGET_SSE3_P: New Macro.
9433         TARGET_SSSE3_P: New Macro.
9434         TARGET_SSE4_1_P: New Macro.
9435         TARGET_SSE4_2_P: New Macro.
9436         TARGET_AVX_P: New Macro.
9437         TARGET_AVX2_P: New Macro.
9438         TARGET_AVX512F_P: New Macro.
9439         TARGET_AVX512PF_P: New Macro.
9440         TARGET_AVX512ER_P: New Macro.
9441         TARGET_AVX512CD_P: New Macro.
9442         TARGET_FMA_P: New Macro.
9443         TARGET_SSE4A_P: New Macro.
9444         TARGET_FMA4_P: New Macro.
9445         TARGET_XOP_P: New Macro.
9446         TARGET_LWP_P: New Macro.
9447         TARGET_ABM_P: New Macro.
9448         TARGET_BMI_P: New Macro.
9449         TARGET_BMI2_P: New Macro.
9450         TARGET_LZCNT_P: New Macro.
9451         TARGET_TBM_P: New Macro.
9452         TARGET_POPCNT_P: New Macro.
9453         TARGET_SAHF_P: New Macro.
9454         TARGET_MOVBE_P: New Macro.
9455         TARGET_CRC32_P: New Macro.
9456         TARGET_AES_P: New Macro.
9457         TARGET_PCLMUL_P: New Macro.
9458         TARGET_CMPXCHG16B_P: New Macro.
9459         TARGET_FSGSBASE_P: New Macro.
9460         TARGET_RDRND_P: New Macro.
9461         TARGET_F16C_P: New Macro.
9462         TARGET_RTM_P: New Macro.
9463         TARGET_HLE_P: New Macro.
9464         TARGET_RDSEED_P: New Macro.
9465         TARGET_PRFCHW_P: New Macro.
9466         TARGET_ADX_P: New Macro.
9467         TARGET_FXSR_P: New Macro.
9468         TARGET_XSAVE_P: New Macro.
9469         TARGET_XSAVEOPT_P: New Macro.
9470         TARGET_LP64_P: New Macro.
9471         TARGET_X32_P: New Macro.
9472         TARGET_FPMATH_DEFAULT_P: New Macro.
9473         TARGET_FLOAT_RETURNS_IN_80387_P: New Macro.
9474         * config/i386/i386.c (ix86_option_override_internal): New parameters.
9475         opts and opts_set.
9476         Change ix86_tune_string to access opts->x_ix86_tune_string.
9477         Change ix86_isa_flags to access opts->x_ix86_isa_flags.
9478         Change ix86_arch_string to access opts->x_ix86_arch_string.
9479         Change ix86_stringop_alg to access opts->x_ix86_stringop_alg.
9480         Change ix86_pmode to access opts->x_ix86_pmode.
9481         Change ix86_abi to access opts->x_ix86_abi.
9482         Change ix86_cmodel to access opts->x_ix86_cmodel.
9483         Change ix86_asm_dialect to access opts->x_ix86_asm_dialect.
9484         Change ix86_isa_flags_explicit to access
9485         opts->x_ix86_isa_flags_explicit.
9486         Change ix86_dump_tunes to access opts->x_ix86_dump_tunes.
9487         Change ix86_regparm to access opts->x_ix86_regparm.
9488         Change ix86_branch_cost to access opts->x_ix86_branch_cost.
9489         Change ix86_preferred_stack_boundary_arg to access
9490         opts->x_ix86_preferred_stack_boundary_arg.
9491         Change ix86_force_align_arg_pointer to access
9492         opts->x_ix86_force_align_arg_pointer.
9493         Change ix86_incoming_stack_boundar_arg to access
9494         opts->x_ix86_incoming_stack_boundar_arg.
9495         Change ix86_fpmath to access opts->x_ix86_fpmath.
9496         Change ix86_veclibabi_type to access opts->x_ix86_veclibabi_type.
9497         Change ix86_recip_name to access opts->x_ix86_recip_name.
9498         Change ix86_stack_protector_guard to access
9499         opts->x_ix86_stack_protector_guard.
9500         Change ix86_tune_memcpy_strategy to access
9501         opts->x_ix86_tune_memcpy_strategy.
9502         Change ix86_tune_memset_strategy to access
9503         opts->x_ix86_tune_memset_strategy.
9504         Change global_options to access opts.
9505         Change global_options_set to access opts_set.
9506         Change TARGET_64BIT to TARGET_64BIT_P (opts->...).
9507         Change TARGET_MMX to TARGET_MMX_P (opts->...).
9508         Change TARGET_3DNOW to TARGET_3DNOW_P (opts->...).
9509         Change TARGET_3DNOW_A to TARGET_3DNOW_A_P (opts->...).
9510         Change TARGET_SSE to TARGET_SSE_P (opts->...).
9511         Change TARGET_SSE2 to TARGET_SSE2_P (opts->...).
9512         Change TARGET_SSE3 to TARGET_SSE3_P (opts->...).
9513         Change TARGET_SSSE3 to TARGET_SSSE3_P (opts->...).
9514         Change TARGET_SSE4_1 to TARGET_SSE4_1_P (opts->...).
9515         Change TARGET_SSE4_2 to TARGET_SSE4_2_P (opts->...).
9516         Change TARGET_AVX to TARGET_AVX_P (opts->...).
9517         Change TARGET_AVX2 to TARGET_AVX2_P (opts->...).
9518         Change TARGET_AVX512F to TARGET_AVX512F_P (opts->...).
9519         Change TARGET_AVX512PF to TARGET_AVX512PF_P (opts->...).
9520         Change TARGET_AVX512ER to TARGET_AVX512ER_P (opts->...).
9521         Change TARGET_AVX512CD to TARGET_AVX512CD_P (opts->...).
9522         Change TARGET_FMA to TARGET_FMA_P (opts->...).
9523         Change TARGET_SSE4A to TARGET_SSE4A_P (opts->...).
9524         Change TARGET_FMA4 to TARGET_FMA4_P (opts->...).
9525         Change TARGET_XOP to TARGET_XOP_P (opts->...).
9526         Change TARGET_LWP to TARGET_LWP_P (opts->...).
9527         Change TARGET_ABM to TARGET_ABM_P (opts->...).
9528         Change TARGET_BMI to TARGET_BMI_P (opts->...).
9529         Change TARGET_BMI2 to TARGET_BMI2_P (opts->...).
9530         Change TARGET_LZCNT to TARGET_LZCNT_P (opts->...).
9531         Change TARGET_TBM to TARGET_TBM_P (opts->...).
9532         Change TARGET_POPCNT to TARGET_POPCNT_P (opts->...).
9533         Change TARGET_SAHF to TARGET_SAHF_P (opts->...).
9534         Change TARGET_MOVBE to TARGET_MOVBE_P (opts->...).
9535         Change TARGET_CRC32 to TARGET_CRC32_P (opts->...).
9536         Change TARGET_AES to TARGET_AES_P (opts->...).
9537         Change TARGET_PCLMUL to TARGET_PCLMUL_P (opts->...).
9538         Change TARGET_CMPXCHG16B to TARGET_CMPXCHG16B_P (opts->...).
9539         Change TARGET_FSGSBASE to TARGET_FSGSBASE_P (opts->...).
9540         Change TARGET_RDRND to TARGET_RDRND_P (opts->...).
9541         Change TARGET_F16C to TARGET_F16C_P (opts->...).
9542         Change TARGET_RTM to TARGET_RTM_P (opts->...).
9543         Change TARGET_HLE to TARGET_HLE_P (opts->...).
9544         Change TARGET_RDSEED to TARGET_RDSEED_P (opts->...).
9545         Change TARGET_PRFCHW to TARGET_PRFCHW_P (opts->...).
9546         Change TARGET_ADX to TARGET_ADX_P (opts->...).
9547         Change TARGET_FXSR to TARGET_FXSR_P (opts->...).
9548         Change TARGET_XSAVE to TARGET_XSAVE_P (opts->...).
9549         Change TARGET_XSAVEOPT to TARGET_XSAVEOPT_P (opts->...).
9550         Change TARGET_LP64 to TARGET_LP64_P (opts->...).
9551         Change TARGET_X32 to TARGET_X32_P (opts->...).
9552         Change TARGET_FPMATH_DEFAULT to TARGET_FPMATH_DEFAULT_P (opts->...).
9553         Change TARGET_FLOAT_RETURNS_IN_80387 to
9554         TARGET_FLOAT_RETURNS_IN_80387_P (opts->...).
9555         (ix86_function_specific_save): New parameter. Use opts-> fields
9556         to replace global fields.
9557         (ix86_function_specific_restore): Ditto.
9558         (ix86_valid_target_attribute_inner_p): New parameters.
9559         Fix recursive call.
9560         Fix call to ix86_handle_option and set_option.
9561         (ix86_valid_target_attribute_tree): New parameters.
9562         Change global_options to access opts.
9563         Change global_options_set to access opts_set.
9564         Fix call to ix86_valid_target_attribute_inner_p.
9565         Change ix86_tune_string to access opts->x_ix86_tune_string.
9566         Change ix86_arch_string to access opts->x_ix86_arch_string.
9567         Change ix86_fpmath to access opts->x_ix86_fpmath
9568         Fix call to ix86_option_override_internal.
9569         Fix call to ix86_add_new_builtins.
9570         Fix calls to build_optimization_node and build_target_option_node.
9571         (ix86_valid_target_attribute_p): Remove access to global_options.
9572         Use new gcc_options structure func_options.
9573         Fix call to ix86_valid_target_attribute_tree.
9574         Fix call to  build_optimization_node.
9575         (get_builtin_code_for_version): Fix call to
9576         ix86_valid_target_attribute_tree.
9578 2013-10-15  David Malcolm  <dmalcolm@redhat.com>
9580         * Makefile.in (PICFLAG): New.
9581         (enable_host_shared): New.
9582         (INTERNAL_CFLAGS): Use PICFLAG.
9583         (LIBIBERTY): Use pic build of libiberty.a if configured with
9584         --enable-host-shared.
9585         * configure.ac: Add --enable-host-shared, setting up new
9586         PICFLAG variable.
9587         * configure: Regenerate.
9588         * doc/install.texi (--enable-shared): Add note contrasting it with ...
9589         (--enable-host-shared): New option.
9591 2013-10-15  Richard Biener  <rguenther@suse.de>
9593         * tree-tailcall.c (find_tail_calls): Don't use tail-call recursion
9594         for built-in functions.
9596 2013-10-15  Zhenqiang Chen  <zhenqiang.chen@arm.com>
9598         * tree-ssa-reassoc.c: Include rtl.h and tm_p.h.
9599         (optimize_range_tests_1): New function,
9600         extracted from optimize_range_tests.
9601         (optimize_range_tests_xor): Similarly.
9602         (optimize_range_tests_diff): New function.
9603         (optimize_range_tests): Use optimize_range_tests_1.
9605 2013-10-15  Cong Hou  <congh@google.com>
9607         * tree-vect-loop.c (vect_is_simple_reduction_1): Relax the
9608         requirement of the reduction pattern so that one operand of the
9609         reduction operation can come from outside of the loop.
9611 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9613         * config/arm/neon-schedgen.ml: Remove.
9614         * config/arm/cortex-a9-neon.md: Remove comment regarding
9615         neon-schedgen.ml.
9617 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9619         * config/arm/types: Remove old neon types.
9621 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9623         * config/arm/cortex-a7.md
9624         (cortex_a7_neon_type): New.
9625         (cortex_a7_neon_mul): Update for new types.
9626         (cortex_a7_neon_mla): Likewise.
9627         (cortex_a7_neon): Likewise.
9629 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9631         * config/arm/cortex-a15-neon.md
9632         (cortex_a15_neon_type): New,
9634         (cortex_a15_neon_int_1): Remove.
9635         (cortex_a15_neon_int_2): Likewise.
9636         (cortex_a15_neon_int_3): Likewise.
9637         (cortex_a15_neon_int_4): Likewise.
9638         (cortex_a15_neon_int_5): Likewise.
9639         (cortex_a15_neon_vqneg_vqabs): Likewise.
9640         (cortex_a15_neon_vmov): Likewise.
9641         (cortex_a15_neon_vaba): Likewise.
9642         (cortex_a15_neon_vaba_qqq): Likewise.
9643         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9644         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9645         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9646         Likewise.
9647         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9648         (cortex_a15_neon_mla_qqq_8_16): Likewise.
9649         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar): Likewise.
9650         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9651         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9652         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
9653         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9654         (cortex_a15_neon_shift_1): Likewise.
9655         (cortex_a15_neon_shift_2): Likewise.
9656         (cortex_a15_neon_shift_3): Likewise.
9657         (cortex_a15_neon_vshl_ddd): Likewise.
9658         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9659         (cortex_a15_neon_vsra_vrsra): Likewise.
9660         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
9661         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
9662         (cortex_a15_neon_bp_3cycle): Likewise.
9663         (cortex_a15_neon_ldm_2): Likewise.
9664         (cortex_a15_neon_stm_2): Likewise.
9665         (cortex_a15_neon_mcr): Likewise.
9666         (cortex_a15_neon_mrc): Likewise.
9667         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
9668         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
9669         (cortex_a15_neon_fp_vmul_ddd): Likewise.
9670         (cortex_a15_neon_fp_vmul_qqd): Likewise.
9671         (cortex_a15_neon_fp_vmla_ddd): Likewise.
9672         (cortex_a15_neon_fp_vmla_qqq): Likewise.
9673         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
9674         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
9675         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9676         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9677         (cortex_a15_neon_bp_simple): Likewise.
9678         (cortex_a15_neon_bp_2cycle): Likewise.
9679         (cortex_a15_neon_bp_3cycle): Likewise.
9680         (cortex_a15_neon_vld1_1_2_regs): Likewise.
9681         (cortex_a15_neon_vld1_3_4_regs): Likewise.
9682         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9683         (cortex_a15_neon_vld2_4_regs): Likewise.
9684         (cortex_a15_neon_vld3_vld4): Likewise.
9685         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9686         (cortex_a15_neon_vst1_3_4_regs): Likewise.
9687         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Rename to...
9688         (cortex_a15_neon_vst2_4_regs_vst3): ...This, update for new attributes.
9689         (cortex_a15_neon_vst3_vst4): Rename to...
9690         (cortex_a15_neon_vst4): This, update for new attributes.
9691         (cortex_a15_neon_vld1_vld2_lane): Update for new attributes.
9692         (cortex_a15_neon_vld3_vld4_lane): Likewise.
9693         (cortex_a15_neon_vst1_vst2_lane): Likewise.
9694         (cortex_a15_neon_vst3_vst4_lane): Likewise.
9695         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
9696         (cortex_a15_neon_ldm_2): Likewise.
9697         (cortex_a15_neon_stm_2): Likewise.
9698         (cortex_a15_neon_mcr): Likewise.
9699         (cortex_a15_neon_mcr_2_mcrr): Likewise.
9700         (cortex_a15_neon_mrc): Likewise.
9701         (cortex_a15_neon_mrrc): Likewise.
9703         (cortex_a15_neon_abd): New.
9704         (cortex_a15_neon_abd_q): Likewise.
9705         (cortex_a15_neon_aba): Likewise.
9706         (cortex_a15_neon_aba_q): Likewise.
9707         (cortex_a15_neon_acc): Likewise.
9708         (cortex_a15_neon_acc_q): Likewise.
9709         (cortex_a15_neon_arith_basic): Likewise.
9710         (cortex_a15_neon_arith_complex): Likewise.
9711         (cortex_a15_neon_multiply): Likewise.
9712         (cortex_a15_neon_multiply_q): Likewise.
9713         (cortex_a15_neon_mla): Likewise.
9714         (cortex_a15_neon_mla_q): Likewise.
9715         (cortex_a15_neon_sat_mla_long): Likewise.
9716         (cortex_a15_neon_shift_acc): Likewise.
9717         (cortex_a15_neon_shift_imm_basic): Likewise.
9718         (cortex_a15_neon_shift_imm_complex): Likewise.
9719         (cortex_a15_neon_shift_reg_basic): Likewise.
9720         (cortex_a15_neon_shift_reg_basic_q): Likewise.
9721         (cortex_a15_neon_shift_reg_complex): Likewise.
9722         (cortex_a15_neon_shift_reg_complex_q): Likewise.
9723         (cortex_a15_neon_fp_negabs): Likewise
9724         (cortex_a15_neon_fp_arith): Likewise
9725         (cortex_a15_neon_fp_arith_q): Likewise
9726         (cortex_a15_neon_fp_cvt_int): Likewise
9727         (cortex_a15_neon_fp_cvt_int_q): Likewise
9728         (cortex_a15_neon_fp_cvt_16): Likewise
9729         (cortex_a15_neon_fp_mul): Likewise
9730         (cortex_a15_neon_fp_mul_q): Likewise
9731         (cortex_a15_neon_fp_mla): Likewise
9732         (cortex_a15_neon_fp_mla_q): Likewise
9733         (cortex_a15_neon_fp_recps_rsqrte): Likewise.
9734         (cortex_a15_neon_fp_recps_rsqrte_q): Likewise.
9735         (cortex_a15_neon_bitops): Likewise.
9736         (cortex_a15_neon_bitops_q): Likewise.
9737         (cortex_a15_neon_from_gp): Likewise.
9738         (cortex_a15_neon_from_gp_q): Likewise.
9739         (cortex_a15_neon_tbl3_tbl4): Likewise.
9740         (cortex_a15_neon_zip_q): Likewise.
9741         (cortex_a15_neon_to_gp): Likewise.
9742         (cortex_a15_neon_load_a): Likewise.
9743         (cortex_a15_neon_load_b): Likewise.
9744         (cortex_a15_neon_load_c): Likewise.
9745         (cortex_a15_neon_load_d): Likewise.
9746         (cortex_a15_neon_load_e): Likewise.
9747         (cortex_a15_neon_load_f): Likewise.
9748         (cortex_a15_neon_store_a): Likewise.
9749         (cortex_a15_neon_store_b): Likewise.
9750         (cortex_a15_neon_store_c): Likewise.
9751         (cortex_a15_neon_store_d): Likewise.
9752         (cortex_a15_neon_store_e): Likewise.
9753         (cortex_a15_neon_store_f): Likewise.
9754         (cortex_a15_neon_store_g): Likewise.
9755         (cortex_a15_neon_store_h): Likewise.
9756         (cortex_a15_vfp_to_from_gp): Likewise.
9758 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9760         * config/arm/cortex-a9-neon.md (cortex_a9_neon_type): New.
9762         (cortex_a9_neon_vshl_ddd): Remove.
9763         (cortex_a9_neon_vst3_vst4): Likewise.
9764         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
9766         (cortex_a9_neon_bit_ops_q): New.
9768         (cortex_a9_neon_int_1): Use cortex_a8_neon_type.
9769         (cortex_a9_neon_int_2): Likewise.
9770         (cortex_a9_neon_int_3): Likewise.
9771         (cortex_a9_neon_int_4): Likewise.
9772         (cortex_a9_neon_int_5): Likewise.
9773         (cortex_a9_neon_vqneg_vqabs): Likewise.
9774         (cortex_a9_neon_vmov): Likewise.
9775         (cortex_a9_neon_vaba): Likewise.
9776         (cortex_a9_neon_vaba_qqq): Likewise.
9777         (cortex_a9_neon_shift_1): Likewise.
9778         (cortex_a9_neon_shift_2): Likewise.
9779         (cortex_a9_neon_shift_3): Likewise.
9780         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9781         (cortex_a9_neon_vsra_vrsra): Likewise.
9782         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9783         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9784         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9785         Likewise.
9786         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9787         (cortex_a9_neon_mla_qqq_8_16): Likewise.
9788         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
9789         Likewise.
9790         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9791         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9792         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
9793         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9794         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
9795         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
9796         (cortex_a9_neon_fp_vsum): Likewise.
9797         (cortex_a9_neon_fp_vmul_ddd): Likewise.
9798         (cortex_a9_neon_fp_vmul_qqd): Likewise.
9799         (cortex_a9_neon_fp_vmla_ddd): Likewise.
9800         (cortex_a9_neon_fp_vmla_qqq): Likewise.
9801         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
9802         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
9803         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9804         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9805         (cortex_a9_neon_bp_simple): Likewise.
9806         (cortex_a9_neon_bp_2cycle): Likewise.
9807         (cortex_a9_neon_bp_3cycle): Likewise.
9808         (cortex_a9_neon_ldr): Likewise.
9809         (cortex_a9_neon_str): Likewise.
9810         (cortex_a9_neon_vld1_1_2_regs): Likewise.
9811         (cortex_a9_neon_vld1_3_4_regs): Likewise.
9812         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9813         (cortex_a9_neon_vld2_4_regs): Likewise.
9814         (cortex_a9_neon_vld3_vld4): Likewise.
9815         (cortex_a9_neon_vld1_vld2_lane): Likewise.
9816         (cortex_a9_neon_vld3_vld4_lane): Likewise.
9817         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
9818         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9819         (cortex_a9_neon_vst1_3_4_regs): Likewise.
9820         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
9821         (cortex_a9_neon_vst1_vst2_lane): Likewise.
9822         (cortex_a9_neon_vst3_vst4_lane): Likewise.
9823         (cortex_a9_neon_mcr): Likewise.
9824         (cortex_a9_neon_mcr_2_mcrr): Likewise.
9825         (cortex_a9_neon_mrc): Likewise.
9826         (cortex_a9_neon_mrrc): Likewise.
9828 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9830         * config/arm/cortex-a8-neon.md (cortex_a8_neon_type): New.
9832         (cortex_a8_neon_vshl_ddd): Remove.
9833         (cortex_a8_neon_vst3_vst4): Likewise.
9834         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
9836         (cortex_a8_neon_bit_ops_q): New.
9838         (cortex_a8_neon_int_1): Use cortex_a8_neon_type.
9839         (cortex_a8_neon_int_2): Likewise..
9840         (cortex_a8_neon_int_3): Likewise.
9841         (cortex_a8_neon_int_5): Likewise.
9842         (cortex_a8_neon_vqneg_vqabs): Likewise.
9843         (cortex_a8_neon_int_4): Likewise.
9844         (cortex_a8_neon_vaba): Likewise.
9845         (cortex_a8_neon_vaba_qqq): Likewise.
9846         (cortex_a8_neon_shift_1): Likewise.
9847         (cortex_a8_neon_shift_2): Likewise.
9848         (cortex_a8_neon_shift_3): Likewise.
9849         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
9850         (cortex_a8_neon_vsra_vrsra): Likewise.
9851         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9852         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
9853         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_long_scalar):
9854         Likewise.
9855         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
9856         (cortex_a8_neon_mla_qqq_8_16): Likewise.
9857         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_long_scalar_qdd_64_32_long):
9858         Likewise.
9859         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
9860         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
9861         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
9862         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
9863         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
9864         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
9865         (cortex_a8_neon_fp_vsum): Likewise.
9866         (cortex_a8_neon_fp_vmul_ddd): Likewise.
9867         (cortex_a8_neon_fp_vmul_qqd): Likewise.
9868         (cortex_a8_neon_fp_vmla_ddd): Likewise.
9869         (cortex_a8_neon_fp_vmla_qqq): Likewise.
9870         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
9871         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
9872         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
9873         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
9874         (cortex_a8_neon_bp_simple): Likewise.
9875         (cortex_a8_neon_bp_2cycle): Likewise.
9876         (cortex_a8_neon_bp_3cycle): Likewise.
9877         (cortex_a8_neon_ldr): Likewise.
9878         (cortex_a8_neon_str): Likewise.
9879         (cortex_a8_neon_vld1_1_2_regs): Likewise.
9880         (cortex_a8_neon_vld1_3_4_regs): Likewise.
9881         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
9882         (cortex_a8_neon_vld2_4_regs): Likewise.
9883         (cortex_a8_neon_vld3_vld4): Likewise.
9884         (cortex_a8_neon_vld1_vld2_lane): Likewise.
9885         (cortex_a8_neon_vld3_vld4_lane): Likewise.
9886         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
9887         (cortex_a8_neon_vst1_3_4_regs): Likewise.
9888         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
9889         (cortex_a8_neon_vst1_vst2_lane): Likewise.
9890         (cortex_a8_neon_vst3_vst4_lane): Likewise.
9891         (cortex_a8_neon_mcr): Likewise.
9892         (cortex_a8_neon_mcr_2_mcrr): Likewise.
9893         (cortex_a8_neon_mrc): Likewise.
9894         (cortex_a8_neon_mrrc): Likewise.
9896 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
9898         * config/aarch64/iterators.md (Vetype): Add SF and DF modes.
9899         (fp): New.
9900         * config/aarch64/aarch64-simd.md (neon_type): Remove.
9901         (aarch64_simd_dup<mode>): Add "type" attribute.
9902         (aarch64_dup_lane<mode>): Likewise.
9903         (aarch64_dup_lane_<vswap_width_name><mode>): Likewise.
9904         (*aarch64_simd_mov<mode>): Likewise.
9905         (aarch64_simd_mov_from_<mode>low): Likewise.
9906         (aarch64_simd_mov_from_<mode>high): Likewise.
9907         (orn<mode>3): Likewise.
9908         (bic<mode>3): Likewise.
9909         (add<mode>3): Likewise.
9910         (sub<mode>3): Likewise.
9911         (mul<mode>3): Likewise.
9912         (*aarch64_mul3_elt<mode>): Likewise.
9913         (*aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
9914         (*aarch64_mul3_elt_to_128df): Likewise.
9915         (*aarch64_mul3_elt_to_64v2df): Likewise.
9916         (neg<mode>2): Likewise.
9917         (abs<mode>2): Likewise.
9918         (abd<mode>_3): Likewise.
9919         (aba<mode>_3): Likewise.
9920         (fabd<mode>_3): Likewise.
9921         (*fabd_scalar<mode>3): Likewise.
9922         (and<mode>3): Likewise.
9923         (ior<mode>3): Likewise.
9924         (xor<mode>3): Likewise.
9925         (one_cmpl<mode>2): Likewise.
9926         (aarch64_simd_vec_set<mode>): Likewise.
9927         (aarch64_simd_lshr<mode>): Likewise.
9928         (aarch64_simd_ashr<mode>): Likewise.
9929         (aarch64_simd_imm_shl<mode>): Likewise.
9930         (aarch64_simd_reg_sshl<mode): Likewise.
9931         (aarch64_simd_reg_shl<mode>_unsigned): Likewise.
9932         (aarch64_simd_reg_shl<mode>_signed): Likewise.
9933         (aarch64_simd_vec_setv2di): Likewise.
9934         (aarch64_simd_vec_set<mode>): Likewise.
9935         (aarch64_mla<mode>): Likewise.
9936         (*aarch64_mla_elt<mode>): Likewise.
9937         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
9938         (aarch64_mls<mode>): Likewise.
9939         (*aarch64_mls_elt<mode>): Likewise.
9940         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
9941         (<su><maxmin><mode>3): Likewise.
9942         (move_lo_quad_<mode>): Likewise.
9943         (aarch64_simd_move_hi_quad_<mode>): Likewise.
9944         (aarch64_simd_vec_pack_trunc_<mode>): Likewise.
9945         (vec_pack_trunc_<mode>): Likewise.
9946         (aarch64_simd_vec_unpack<su>_lo_<mode>): Likewise.
9947         (aarch64_simd_vec_unpack<su>_hi_<mode>): Likewise.
9948         (*aarch64_<su>mlal_lo<mode>): Likewise.
9949         (*aarch64_<su>mlal_hi<mode>): Likewise.
9950         (*aarch64_<su>mlsl_lo<mode>): Likewise.
9951         (*aarch64_<su>mlsl_hi<mode>): Likewise.
9952         (*aarch64_<su>mlal<mode>): Likewise.
9953         (*aarch64_<su>mlsl<mode>): Likewise.
9954         (aarch64_simd_vec_<su>mult_lo_<mode>): Likewise.
9955         (aarch64_simd_vec_<su>mult_hi_<mode>): Likewise.
9956         (add<mode>3): Likewise.
9957         (sub<mode>3): Likewise.
9958         (mul<mode>3): Likewise.
9959         (div<mode>3): Likewise.
9960         (neg<mode>2): Likewise.
9961         (abs<mode>2): Likewise.
9962         (fma<mode>4): Likewise.
9963         (*aarch64_fma4_elt<mode>): Likewise.
9964         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
9965         (*aarch64_fma4_elt_to_128df): Likewise.
9966         (*aarch64_fma4_elt_to_64v2df): Likewise.
9967         (fnma<mode>4): Likewise.
9968         (*aarch64_fnma4_elt<mode>): Likewise.
9969         (*aarch64_fnma4_elt_<vswap_width_name><mode>
9970         (*aarch64_fnma4_elt_to_128df): Likewise.
9971         (*aarch64_fnma4_elt_to_64v2df): Likewise.
9972         (<frint_pattern><mode>2): Likewise.
9973         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
9974         (<optab><fcvt_target><VDQF:VDQF:mode>2): Likewise.
9975         (vec_unpacks_lo_v4sf): Likewise.
9976         (aarch64_float_extend_lo_v2df): Likewise.
9977         (vec_unpacks_hi_v4sf): Likewise.
9978         (aarch64_float_truncate_lo_v2sf): Likewise.
9979         (aarch64_float_truncate_hi_v4sf): Likewise.
9980         (aarch64_vmls<mode>): Likewise.
9981         (<su><maxmin><mode>3): Likewise.
9982         (<maxmin_uns><mode>3): Likewise.
9983         (reduc_<sur>plus_<mode>): Likewise.
9984         (reduc_<sur>plus_v2di): Likewise.
9985         (reduc_<sur>plus_v2si): Likewise.
9986         (reduc_<sur>plus_<mode>): Likewise.
9987         (aarch64_addpv4sf): Likewise.
9988         (clz<mode>2): Likewise.
9989         (reduc_<maxmin_uns>_<mode>): Likewise.
9990         (reduc_<maxmin_uns>_v2di): Likewise.
9991         (reduc_<maxmin_uns>_v2si): Likewise.
9992         (reduc_<maxmin_uns>_<mode>): Likewise.
9993         (reduc_<maxmin_uns>_v4sf): Likewise.
9994         (aarch64_simd_bsl<mode>_internal): Likewise.
9995         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
9996         (*aarch64_get_lane_zero_extendsi<mode>): Likewise.
9997         (aarch64_get_lane<mode>): Likewise.
9998         (*aarch64_combinez<mode>): Likewise.
9999         (aarch64_combine<mode>): Likewise.
10000         (aarch64_simd_combine<mode>): Likewise.
10001         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): Likewise.
10002         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): Likewise.
10003         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>): Likewise.
10004         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>): Likewise.
10005         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w2<mode>_internal): Likewise.
10006         (aarch64_<sur>h<addsub><mode>): Likewise.
10007         (aarch64_<sur><addsub>hn<mode>): Likewise.
10008         (aarch64_<sur><addsub>hn2<mode>): Likewise.
10009         (aarch64_pmul<mode>): Likewise.
10010         (aarch64_<su_optab><optab><mode>): Likewise.
10011         (aarch64_<sur>qadd<mode>): Likewise.
10012         (aarch64_sqmovun<mode>): Likewise.
10013         (aarch64_<sur>qmovn<mode>): Likewise.
10014         (aarch64_s<optab><mode>): Likewise.
10015         (aarch64_sq<r>dmulh<mode>): Likewise.
10016         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10017         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
10018         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
10019         (aarch64_sqdml<SBINQOPS:as>l<mode>): Likewise.
10020         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10021         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
10022         (aarch64_sqdml<SBINQOPS:as>l_n<mode>): Likewise.
10023         (aarch64_sqdml<SBINQOPS:as>l2<mode>_internal): Likewise.
10024         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
10025         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
10026         (aarch64_sqdmull<mode>): Likewise.
10027         (aarch64_sqdmull_lane<mode>_internal): Likewise.
10028         (aarch64_sqdmull_n<mode>): Likewise.
10029         (aarch64_sqdmull2<mode>_internal): Likewise.
10030         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
10031         (aarch64_sqdmull2_n<mode>_internal): Likewise.
10032         (aarch64_<sur>shl<mode>): Likewise.
10033         (aarch64_<sur>q<r>shl<mode>
10034         (aarch64_<sur>shll_n<mode>): Likewise.
10035         (aarch64_<sur>shll2_n<mode>): Likewise.
10036         (aarch64_<sur>shr_n<mode>): Likewise.
10037         (aarch64_<sur>sra_n<mode>): Likewise.
10038         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
10039         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
10040         (aarch64_<sur>q<r>shr<u>n_n<mode>): Likewise.
10041         (aarch64_cm<optab><mode>): Likewise.
10042         (aarch64_cm<optab>di): Likewise.
10043         (aarch64_cm<optab><mode>): Likewise.
10044         (aarch64_cm<optab>di): Likewise.
10045         (aarch64_cmtst<mode>): Likewise.
10046         (aarch64_cmtstdi): Likewise.
10047         (aarch64_cm<optab><mode>): Likewise.
10048         (*aarch64_fac<optab><mode>): Likewise.
10049         (aarch64_addp<mode>): Likewise.
10050         (aarch64_addpdi): Likewise.
10051         (sqrt<mode>2): Likewise.
10052         (vec_load_lanesoi<mode>): Likewise.
10053         (vec_store_lanesoi<mode>): Likewise.
10054         (vec_load_lanesci<mode>): Likewise.
10055         (vec_store_lanesci<mode>): Likewise.
10056         (vec_load_lanesxi<mode>): Likewise.
10057         (vec_store_lanesxi<mode>): Likewise.
10058         (*aarch64_mov<mode>): Likewise.
10059         (aarch64_ld2<mode>_dreg): Likewise.
10060         (aarch64_ld2<mode>_dreg): Likewise.
10061         (aarch64_ld3<mode>_dreg): Likewise.
10062         (aarch64_ld3<mode>_dreg): Likewise.
10063         (aarch64_ld4<mode>_dreg): Likewise.
10064         (aarch64_ld4<mode>_dreg): Likewise.
10065         (aarch64_tbl1<mode>): Likewise.
10066         (aarch64_tbl2v16qi): Likewise.
10067         (aarch64_combinev16qi): Likewise.
10068         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Likewise.
10069         (aarch64_st2<mode>_dreg): Likewise.
10070         (aarch64_st2<mode>_dreg): Likewise.
10071         (aarch64_st3<mode>_dreg): Likewise.
10072         (aarch64_st3<mode>_dreg): Likewise.
10073         (aarch64_st4<mode>_dreg): Likewise.
10074         (aarch64_st4<mode>_dreg): Likewise.
10075         (*aarch64_simd_ld1r<mode>): Likewise.
10076         (aarch64_frecpe<mode>): Likewise.
10077         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
10078         (aarch64_frecps<mode>): Likewise.
10080 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10082         * config/arm/iterators.md (V_elem_ch): New.
10083         (q): Likewise.
10084         (VQH_type): Likewise.
10085         * config/arm/arm.md (is_neon_type): New.
10086         (conds): Use is_neon_type.
10087         (anddi3_insn): Update type attribute.
10088         (xordi3_insn): Likewise.
10089         (one_cmpldi2): Likewise.
10090         * config/arm/vfp.md (movhf_vfp_neon): Update type attribute.
10091         * config/arm/neon.md (neon_mov): Update type attribute.
10092         (*movmisalign<mode>_neon_store): Likewise.
10093         (*movmisalign<mode>_neon_load): Likewise.
10094         (vec_set<mode>_internal): Likewise.
10095         (vec_set<mode>_internal): Likewise.
10096         (vec_setv2di_internal): Likewise.
10097         (vec_extract<mode>): Likewise.
10098         (vec_extract<mode>): Likewise.
10099         (vec_extractv2di): Likewise.
10100         (*add<mode>3_neon): Likewise.
10101         (adddi3_neon): Likewise.
10102         (*sub<mode>3_neon): Likewise.
10103         (subdi3_neon): Likewise.
10104         (fma<VCVTF:mode>4): Likewise.
10105         (fma<VCVTF:mode>4_intrinsic): Likewise.
10106         (*fmsub<VCVTF:mode>4): Likewise.
10107         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
10108         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
10109         (ior<mode>3): Likewise.
10110         (and<mode>3): Likewise.
10111         (orn<mode>3_neon): Likewise.
10112         (orndi3_neon): Likewise.
10113         (bic<mode>3_neon): Likewise.
10114         (bicdi3_neon): Likewise.
10115         (xor<mode>3): Likewise.
10116         (one_cmpl<mode>2): Likewise.
10117         (abs<mode>2): Likewise.
10118         (neg<mode>2): Likewise.
10119         (negdi2_neon): Likewise.
10120         (*umin<mode>3_neon): Likewise.
10121         (*umax<mode>3_neon): Likewise.
10122         (*smin<mode>3_neon): Likewise.
10123         (*smax<mode>3_neon): Likewise.
10124         (vashl<mode>3): Likewise.
10125         (vashr<mode>3_imm): Likewise.
10126         (vlshr<mode>3_imm): Likewise.
10127         (ashl<mode>3_signed): Likewise.
10128         (ashl<mode>3_unsigned): Likewise.
10129         (neon_load_count): Likewise.
10130         (ashldi3_neon_noclobber): Likewise.
10131         (ashldi3_neon): Likewise.
10132         (signed_shift_di3_neon): Likewise.
10133         (unsigned_shift_di3_neon): Likewise.
10134         (ashrdi3_neon_imm_noclobber): Likewise.
10135         (lshrdi3_neon_imm_noclobber): Likewise.
10136         (<shift>di3_neon): Likewise.
10137         (widen_ssum<mode>3): Likewise.
10138         (widen_usum<mode>3): Likewise.
10139         (quad_halves_<code>v4si): Likewise.
10140         (quad_halves_<code>v4sf): Likewise.
10141         (quad_halves_<code>v8hi): Likewise.
10142         (quad_halves_<code>v16qi): Likewise.
10143         (reduc_splus_v2di): Likewise.
10144         (neon_vpadd_internal<mode>): Likewise.
10145         (neon_vpsmin<mode>): Likewise.
10146         (neon_vpsmax<mode>): Likewise.
10147         (neon_vpumin<mode>): Likewise.
10148         (neon_vpumax<mode>): Likewise.
10149         (*ss_add<mode>_neon): Likewise.
10150         (*us_add<mode>_neon): Likewise.
10151         (*ss_sub<mode>_neon): Likewise.
10152         (*us_sub<mode>_neon): Likewise.
10153         (neon_vadd<mode>_unspec): Likewise.
10154         (neon_vaddl<mode>): Likewise.
10155         (neon_vaddw<mode>): Likewise.
10156         (neon_vhadd<mode>): Likewise.
10157         (neon_vqadd<mode>): Likewise.
10158         (neon_vaddhn<mode>): Likewise.
10159         (neon_vmul<mode>): Likewise.
10160         (neon_vfms<VCVTF:mode>): Likewise.
10161         (neon_vmlal<mode>): Likewise.
10162         (neon_vmls<mode>): Likewise.
10163         (neon_vmlsl<mode>): Likewise.
10164         (neon_vqdmulh<mode>): Likewise.
10165         (neon_vqdmlal<mode>): Likewise.
10166         (neon_vqdmlsl<mode>): Likewise.
10167         (neon_vmull<mode>): Likewise.
10168         (neon_vqdmull<mode>): Likewise.
10169         (neon_vsub<mode>_unspec): Likewise.
10170         (neon_vsubl<mode>): Likewise.
10171         (neon_vsubw<mode>): Likewise.
10172         (neon_vqsub<mode>): Likewise.
10173         (neon_vhsub<mode>): Likewise.
10174         (neon_vsubhn<mode>): Likewise.
10175         (neon_vceq<mode>): Likewise.
10176         (neon_vcge<mode>): Likewise.
10177         (neon_vcgeu<mode>): Likewise.
10178         (neon_vcgt<mode>): Likewise.
10179         (neon_vcgtu<mode>): Likewise.
10180         (neon_vcle<mode>): Likewise.
10181         (neon_vclt<mode>): Likewise.
10182         (neon_vcage<mode>): Likewise.
10183         (neon_vcagt<mode>): Likewise.
10184         (neon_vtst<mode>): Likewise.
10185         (neon_vabd<mode>): Likewise.
10186         (neon_vabdl<mode>): Likewise.
10187         (neon_vaba<mode>): Likewise.
10188         (neon_vabal<mode>): Likewise.
10189         (neon_vmax<mode>): Likewise.
10190         (neon_vmin<mode>): Likewise.
10191         (neon_vpaddl<mode>): Likewise.
10192         (neon_vpadal<mode>): Likewise.
10193         (neon_vpmax<mode>): Likewise.
10194         (neon_vpmin<mode>): Likewise.
10195         (neon_vrecps<mode>): Likewise.
10196         (neon_vrsqrts<mode>): Likewise.
10197         (neon_vqabs<mode>): Likewise.
10198         (neon_vqneg<mode>): Likewise.
10199         (neon_vcls<mode>): Likewise.
10200         (clz<mode>2): Likewise.
10201         (popcount<mode>2): Likewise.
10202         (neon_vrecpe<mode>): Likewise.
10203         (neon_vrsqrte<mode>): Likewise.
10204         (neon_vget_lane<mode>_sext_internal): Likewise.
10205         (neon_vget_lane<mode>_zext_internal): Likewise.
10206         (neon_vdup_n<mode>): Likewise.
10207         (neon_vdup_n<mode>): Likewise.
10208         (neon_vdup_nv2di): Likewise.
10209         (neon_vdup_lane<mode>_interal): Likewise.
10210         (*neon_vswp<mode>): Likewise.
10211         (neon_vcombine<mode>): Likewise.
10212         (float<mode><V_cvtto>2): Likewise.
10213         (floatuns<mode><V_cvtto>2): Likewise.
10214         (fix_trunc<mode><V_cvtto>2): Likewise.
10215         (fixuns_trunc<mode><V_cvtto>2
10216         (neon_vcvt<mode>): Likewise.
10217         (neon_vcvt<mode>): Likewise.
10218         (neon_vcvtv4sfv4hf): Likewise.
10219         (neon_vcvtv4hfv4sf): Likewise.
10220         (neon_vcvt_n<mode>): Likewise.
10221         (neon_vcvt_n<mode>): Likewise.
10222         (neon_vmovn<mode>): Likewise.
10223         (neon_vqmovn<mode>): Likewise.
10224         (neon_vqmovun<mode>): Likewise.
10225         (neon_vmovl<mode>): Likewise.
10226         (neon_vmul_lane<mode>): Likewise.
10227         (neon_vmul_lane<mode>): Likewise.
10228         (neon_vmull_lane<mode>): Likewise.
10229         (neon_vqdmull_lane<mode>): Likewise.
10230         (neon_vqdmulh_lane<mode>): Likewise.
10231         (neon_vqdmulh_lane<mode>): Likewise.
10232         (neon_vmla_lane<mode>): Likewise.
10233         (neon_vmla_lane<mode>): Likewise.
10234         (neon_vmlal_lane<mode>): Likewise.
10235         (neon_vqdmlal_lane<mode>): Likewise.
10236         (neon_vmls_lane<mode>): Likewise.
10237         (neon_vmls_lane<mode>): Likewise.
10238         (neon_vmlsl_lane<mode>): Likewise.
10239         (neon_vqdmlsl_lane<mode>): Likewise.
10240         (neon_vext<mode>): Likewise.
10241         (neon_vrev64<mode>): Likewise.
10242         (neon_vrev32<mode>): Likewise.
10243         (neon_vrev16<mode>): Likewise.
10244         (neon_vbsl<mode>_internal): Likewise.
10245         (neon_vshl<mode>): Likewise.
10246         (neon_vqshl<mode>): Likewise.
10247         (neon_vshr_n<mode>): Likewise.
10248         (neon_vshrn_n<mode>): Likewise.
10249         (neon_vqshrn_n<mode>): Likewise.
10250         (neon_vqshrun_n<mode>): Likewise.
10251         (neon_vshl_n<mode>): Likewise.
10252         (neon_vqshl_n<mode>): Likewise.
10253         (neon_vqshlu_n<mode>): Likewise.
10254         (neon_vshll_n<mode>): Likewise.
10255         (neon_vsra_n<mode>): Likewise.
10256         (neon_vsri_n<mode>): Likewise.
10257         (neon_vsli_n<mode>): Likewise.
10258         (neon_vtbl1v8qi): Likewise.
10259         (neon_vtbl2v8qi): Likewise.
10260         (neon_vtbl3v8qi): Likewise.
10261         (neon_vtbl4v8qi): Likewise.
10262         (neon_vtbl1v16qi): Likewise.
10263         (neon_vtbl2v16qi): Likewise.
10264         (neon_vcombinev16qi): Likewise.
10265         (neon_vtbx1v8qi): Likewise.
10266         (neon_vtbx2v8qi): Likewise.
10267         (neon_vtbx3v8qi): Likewise.
10268         (neon_vtbx4v8qi): Likewise.
10269         (*neon_vtrn<mode>_insn): Likewise.
10270         (*neon_vzip<mode>_insn): Likewise.
10271         (*neon_vuzp<mode>_insn): Likewise.
10272         (neon_vld1<mode>): Likewise.
10273         (neon_vld1_lane<mode>): Likewise.
10274         (neon_vld1_lane<mode>): Likewise.
10275         (neon_vld1_dup<mode>): Likewise.
10276         (neon_vld1_dup<mode>): Likewise.
10277         (neon_vld1_dupv2di): Likewise.
10278         (neon_vst1<mode>): Likewise.
10279         (neon_vst1_lane<mode>): Likewise.
10280         (neon_vst1_lane<mode>): Likewise.
10281         (neon_vld2<mode>): Likewise.
10282         (neon_vld2<mode>): Likewise.
10283         (neon_vld2_lane<mode>): Likewise.
10284         (neon_vld2_lane<mode>): Likewise.
10285         (neon_vld2_dup<mode>): Likewise.
10286         (neon_vst2<mode>): Likewise.
10287         (neon_vst2<mode>): Likewise.
10288         (neon_vst2_lane<mode>): Likewise.
10289         (neon_vst2_lane<mode>): Likewise.
10290         (neon_vld3<mode>): Likewise.
10291         (neon_vld3qa<mode>): Likewise.
10292         (neon_vld3qb<mode>): Likewise.
10293         (neon_vld3_lane<mode>): Likewise.
10294         (neon_vld3_lane<mode>): Likewise.
10295         (neon_vld3_dup<mode>): Likewise.
10296         (neon_vst3<mode>): Likewise.
10297         (neon_vst3qa<mode>): Likewise.
10298         (neon_vst3qb<mode>): Likewise.
10299         (neon_vst3_lane<mode>): Likewise.
10300         (neon_vst3_lane<mode>): Likewise.
10301         (neon_vld4<mode>): Likewise.
10302         (neon_vld4qa<mode>): Likewise.
10303         (neon_vld4qb<mode>): Likewise.
10304         (neon_vld4_lane<mode>): Likewise.
10305         (neon_vld4_lane<mode>): Likewise.
10306         (neon_vld4_dup<mode>): Likewise.
10307         (neon_vst4<mode>): Likewise.
10308         (neon_vst4qa<mode>): Likewise.
10309         (neon_vst4qb<mode>): Likewise.
10310         (neon_vst4_lane<mode>): Likewise.
10311         (neon_vst4_lane<mode>): Likewise.
10312         (neon_vec_unpack<US>_lo_<mode>): Likewise.
10313         (neon_vec_unpack<US>_hi_<mode>): Likewise.
10314         (neon_vec_<US>mult_lo_<mode>): Likewise.
10315         (neon_vec_<US>mult_hi_<mode>): Likewise.
10316         (neon_vec_<US>shiftl_<mode>): Likewise.
10317         (neon_unpack<US>_<mode>): Likewise.
10318         (neon_vec_<US>mult_<mode>): Likewise.
10319         (vec_pack_trunc_<mode>): Likewise.
10320         (neon_vec_pack_trunc_<mode>): Likewise.
10321         (neon_vabd<mode>_2): Likewise.
10322         (neon_vabd<mode>_3): Likewise.
10324 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10326         * config/aarch64/aarch64.md (movtf_aarch64): Update type attribute.
10327         (load_pair): Update type attribute.
10328         (store_pair): Update type attribute.
10329         * config/aarch64/iterators.md (q): New.
10331 2013-10-15  James Greenhalgh  <james.greenhalgh@arm.com>
10333         * config/arm/types.md: Add new types for Neon insns.
10335 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10336             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10337             Sergey Lega  <sergey.s.lega@intel.com>
10338             Anna Tikhonova  <anna.tikhonova@intel.com>
10339             Ilya Tocar  <ilya.tocar@intel.com>
10340             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10341             Ilya Verbin  <ilya.verbin@intel.com>
10342             Kirill Yukhin  <kirill.yukhin@intel.com>
10343             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10345         * config/i386/sse.md (unspec): Add UNSPEC_RCP14, UNSPEC_RSQRT14,
10346         UNSPEC_FIXUPIMM, UNSPEC_SCALEF, UNSPEC_GETEXP, UNSPEC_GETMANT,
10347         UNSPEC_EXP2, UNSPEC_RCP28, UNSPEC_RSQRT28.
10348         (rcp14<mode>): New.
10349         (srcp14<mode>): Ditto.
10350         (rsqrt14<mode>): Ditto.
10351         (rsqrt14<mode>): Ditto.
10352         (avx512f_vmscalef<mode>): Ditto.
10353         (avx512f_scalef<mode>): Ditto.
10354         (avx512f_getexp<mode>): Ditto.
10355         (avx512f_sgetexp<mode>): Ditto.
10356         (avx512f_fixupimm<mode>): Ditto.
10357         (avx512f_sfixupimm<mode>): Ditto.
10358         (avx512f_rndscale<mode>): Ditto.
10359         (*avx512er_exp2<mode>): Ditto.
10360         (*avx512er_rcp28<mode>): Ditto.
10361         (avx512er_rsqrt28<mode>): Ditto.
10362         (avx512f_getmant<mode>): Ditto.
10363         (avx512f_getmant<mode>): Ditto.
10364         (avx512f_rndscale<mode>): Fix formatting.
10366 2013-10-15  Martin Jambor  <mjambor@suse.cz>
10368         * ipa-utils.h (ipa_edge_within_scc): Declare.
10369         * ipa-cp.c (edge_within_scc): Moved...
10370         * ipa-utils.c (ipa_edge_within_scc): ...here.  Updated all callers.
10372 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10373             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10374             Sergey Lega  <sergey.s.lega@intel.com>
10375             Anna Tikhonova  <anna.tikhonova@intel.com>
10376             Ilya Tocar  <ilya.tocar@intel.com>
10377             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10378             Ilya Verbin  <ilya.verbin@intel.com>
10379             Kirill Yukhin  <kirill.yukhin@intel.com>
10380             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10382         * config/i386/predicates.md (const_8_to_15_operand): New.
10383         (const_16_to_31_operand): Ditto.
10384         * config/i386/sse.md (V8FI): New.
10385         (V16FI): Ditto.
10386         (reduc_splus_v8df): Ditto.
10387         (reduc_splus_v16sf): Ditto.
10388         (avx512f_vextract<shuffletype>32x4_1): Ditto.
10389         (vec_extract_hi_<mode>): Ditto.
10390         (avx512f_vinsert<shuffletype>32x4_1): Ditto.
10391         (vec_set_lo_<mode>): Ditto.
10392         (vec_set_hi_<mode>): Ditto.
10393         (avx512f_shuf_<shuffletype>64x2_1): Ditto.
10394         (avx512f_shuf_<shuffletype>32x4_1): Ditto.
10395         (avx512f_pshufd_1): Ditto.
10396         (avx512f_broadcast<mode>): Ditto.
10397         (avx512f_broadcast<mode>): Ditto.
10398         (define_split): Split vec_extract_lo into move.
10399         (ssequartermode): Ditto.
10400         (ssedoublemode): Extened with wider modes.
10401         (vec_extract_lo_<mode>): 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/predicates.md (register_or_constm1_operand): New.
10414         * config/i386/sse.md (unspec): Add UNSPEC_UNSIGNED_PCMP, UNSPEC_TESTM,
10415         UNSPEC_TESTNM, UNSPEC_VTERNLOG, UNSPEC_ALIGN, UNSPEC_CONFLICT,
10416         UNSPEC_MASKED_EQ, UNSPEC_MASKED_GT, UNSPEC_GATHER_PREFETCH,
10417         UNSPEC_SCATTER_PREFETCH
10418         (VI48_512): New.
10419         (avx512f_ucmp<mode>3): Ditto.
10420         (avx512f_vternlog<mode>): Ditto.
10421         (avx512f_align<mode>): Ditto.
10422         (<shift_insn><mode>3): Ditto.
10423         (avx512f_<rotate>v<mode>): Ditto.
10424         (avx512f_<rotate><mode>): Ditto.
10425         (avx512f_eq<mode>3): Ditto.
10426         (avx512f_eq<mode>3_1): Ditto.
10427         (avx512f_gt<mode>3): Ditto.
10428         (avx512f_testm<mode>3): Ditto.
10429         (avx512f_testnm<mode>3): Ditto.
10430         (avx512pf_gatherpf<mode>): Ditto.
10431         (*avx512pf_gatherpf<mode>_mask): Ditto.
10432         (*avx512pf_gatherpf<mode>): Ditto.
10433         (avx512pf_scatterpf<mode>): Ditto.
10434         (*avx512pf_scatterpf<mode>_mask): Ditto.
10435         (*avx512pf_scatterpf<mode>): Ditto.
10436         (avx512f_vec_dup_gpr<mode>): Ditto.
10437         (clz<mode>2): Ditto.
10438         (conflict<mode>): Ditto.
10439         (REDUC_SMINMAX_MODE): Extened with wider modes.
10440         (reduc_<code>_<mode>): Ditto.
10441         (vlshr<mode>3): Ditto.
10442         (vashl<mode>3): Ditto.
10444 2013-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10445             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10446             Sergey Lega  <sergey.s.lega@intel.com>
10447             Anna Tikhonova  <anna.tikhonova@intel.com>
10448             Ilya Tocar  <ilya.tocar@intel.com>
10449             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10450             Ilya Verbin  <ilya.verbin@intel.com>
10451             Kirill Yukhin  <kirill.yukhin@intel.com>
10452             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10454         * config/i386/sse.md (unspec): Added UNSPEC_VPERMI2, UNSPEC_VPERMT2,
10455         UNSPEC_SCATTER.
10456         (VI48F_512): New.
10457         (avx512fmaskmode): Ditto.
10458         (bcstscalarsuff): Ditto.
10459         (avx512f_blendm<mode>): Ditto.
10460         (cmp_imm_predicate): Ditto.
10461         (avx512f_cmp<mode>3): Ditto.
10462         (avx512f_vec_dup<mode>): Ditto.
10463         (avx512f_vec_dup_mem<mode>): Ditto.
10464         (avx512f_vpermi2var<mode>3): Ditto.
10465         (avx512f_vpermt2var<mode>3): Ditto.
10466         (vec_init<mode>): Ditto.
10467         (avx512f_gathersi<mode>): Ditto.
10468         (*avx512f_gathersi<mode>): Ditto.
10469         (*avx512f_gathersi<mode>_2): Ditto.
10470         (avx512f_gatherdi<mode>): Ditto.
10471         (*avx512f_gatherdi<mode>): Ditto.
10472         (*avx512f_gatherdi<mode>_2): Ditto.
10473         (avx512f_scattersi<mode>): Ditto.
10474         (*avx512f_scattersi<mode>): Ditto.
10475         (avx512f_scatterdi<mode>): Ditto.
10476         (*avx512f_scatterdi<mode>): Ditto.
10477         (sseintprefix): Extened with wider modes.
10478         (VEC_GATHER_IDXSI): Ditto.
10479         (VEC_GATHER_IDXDI): Ditto.
10480         (VEC_GATHER_SRCDI): Ditto.
10482 2013-10-15  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
10483             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10485         * config/arm/t-aprofile: New file.
10486         * config.gcc: Handle --with-multilib-list option.
10488 2013-10-15  Bernd Schmidt  <bernds@codesourcery.com>
10490         * reload1.c (reloads_unique_chain_p): Ensure that r1 is
10491         the input for r2.
10493 2013-10-15  Richard Biener  <rguenther@suse.de>
10495         * tree-loop-distribution.c (build_empty_rdg): Inline into
10496         single user.
10497         (rdg_flag_vertex): Inline into single user.
10498         (rdg_flag_vertex_and_dependent): Likewise.
10499         (build_rdg_partition_for_vertex): Remove processed bitmap.
10500         (rdg_build_partitions): Simplify.
10502 2013-10-15  Richard Biener  <rguenther@suse.de>
10504         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
10505         Restructure forwarding through conversions and copies to
10506         avoid performing copy-propagation the wrong way.  Adjust
10507         recursion invocations.
10508         (forward_propagate_addr_expr): Add argument stating if we
10509         are recursing from a single-use.
10510         (ssa_forward_propagate_and_combine): Adjust.
10512 2013-10-14  David Malcolm  <dmalcolm@redhat.com>
10514         * dumpfile.h (gcc::dump_manager): New class, to hold state
10515         relating to dumpfile management.
10516         (get_dump_file_name): Remove in favor of method of dump_manager.
10517         (dump_initialized_p): Likewise.
10518         (dump_start): Likewise.
10519         (dump_finish): Likewise.
10520         (dump_switch_p): Likewise.
10521         (dump_register): Likewise.
10522         (get_dump_file_info): Likewise.
10523         * context.c (gcc::context::context): Construct the dump_manager
10524         instance.
10525         * context.h (gcc::context::get_dumps): New.
10526         (gcc::context::m_dumps): New.
10527         * coverage.c (coverage_init): Port to dump_manager API.
10528         * dumpfile.c (extra_dump_files): Convert to field of gcc::dump_manager.
10529         (extra_dump_files_in_use): Likewise.
10530         (extra_dump_files_alloced): Likewise.
10531         (gcc::dump_manager::dump_manager): New.
10532         (dump_register): Convert to...
10533         (gcc::dump_manager::dump_register): ...method, replacing
10534         function-static next_dump with m_next_dump field.
10535         (get_dump_file_info): Convert to...
10536         (gcc::dump_manager::get_dump_file_info): ...method.
10537         (get_dump_file_name): Convert to...
10538         (gcc::dump_manager::get_dump_file_name): ...method.
10539         (dump_start): Convert to...
10540         (gcc::dump_manager::dump_start): ...method.
10541         (dump_finish): Convert to...
10542         (gcc::dump_manager::dump_finish): ...method.
10543         (dump_begin): Replace body with...
10544         (gcc::dump_manager::dump_begin): ...new method.
10545         (dump_phase_enabled_p): Convert to...
10546         (gcc::dump_manager::dump_phase_enabled_p): ...method.
10547         (dump_phase_enabled_p): Convert to...
10548         (gcc::dump_manager::dump_phase_enabled_p): ...method.
10549         (dump_initialized_p):  Convert to...
10550         (gcc::dump_manager::dump_initialized_p): ...method.
10551         (dump_flag_name): Replace body with...
10552         (gcc::dump_manager::dump_flag_name): ...new method.
10553         (dump_enable_all): Convert to...
10554         (gcc::dump_manager::dump_enable_all): ...new method.
10555         (opt_info_enable_passes): Convert to...
10556         (gcc::dump_manager::opt_info_enable_passes): ...new method.
10557         (dump_switch_p_1): Convert to...
10558         (gcc::dump_manager::dump_switch_p_1): ...new method.
10559         (dump_switch_p):  Convert to...
10560         (gcc::dump_manager::dump_switch_p): ...new method.
10561         (opt_info_switch_p): Port to dump_manager API.
10562         (enable_rtl_dump_file): Likewise.
10563         * opts-global.c (handle_common_deferred_options): Port to new
10564         dump_manager API.
10565         * passes.c (pass_manager::finish_optimization_passes): Likewise.
10566         (pass_manager::register_one_dump_file): Likewise.
10567         (pass_manager::register_pass): Likewise.
10568         (pass_init_dump_file): Likewise.
10569         (pass_fini_dump_file): Likewise.
10570         * statistics.c (statistics_early_init): Likewise.
10572 2013-10-14  Richard Biener  <rguenther@suse.de>
10574         * gimple.c (gimple_canonical_types, canonical_type_hash_cache,
10575         iterative_hash_canonical_type, gimple_canonical_type_hash,
10576         gimple_canonical_types_compatible_p, gimple_canonical_type_eq,
10577         gimple_register_canonical_type, print_gimple_types_stats,
10578         free_gimple_type_tables): Move to lto/lto.c
10579         (gt-gimple.h): Do not include.
10580         * gimple.h (gimple_register_canonical_type,
10581         print_gimple_types_stats, free_gimple_type_tables): Remove.
10582         * Makefile.in (GTFILES): Remove gimple.c.
10584 2013-10-14  Travis Snoozy  <quandary@remstate.com>
10586         PR target/58716
10587         * config/msp430/msp430.c (msp430_option_override): Correct thinko
10588         scanning for msp430x targets.
10590 2013-10-14  Eric Botcazou  <ebotcazou@adacore.com>
10592         PR bootstrap/58509
10593         * config/sparc/sparc-protos.h (widen_mem_for_ldd_peep): Declare.
10594         (registers_ok_for_ldd_peep): Move around.
10595         * config/sparc/sparc.c (widen_mem_for_ldd_peep): New.
10596         * config/sparc/sparc.md (widening peepholes): Use it.
10598 2013-10-14  Richard Biener  <rguenther@suse.de>
10600         PR middle-end/58712
10601         PR middle-end/55358
10602         * gimple.c (iterative_hash_canonical_type): Make sure to
10603         record the hash into the correct hashtable slot.
10605 2013-10-13  Eric Botcazou  <ebotcazou@adacore.com>
10607         PR rtl-optimization/58662
10608         * combine.c (try_combine): Take into account death nodes on I2 when
10609         splitting a PARALLEL of two independent SETs.  Fix dump message.
10611 2013-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
10613         PR target/51244
10614         * config/sh/sh_treg_combine.cc: New SH specific RTL pass.
10615         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add sh_treg_combine.o to
10616         extra_objs.
10617         * config/sh/t-sh (sh_treg_combine.o): New entry.
10618         * config/sh/sh.c (sh_fixed_condition_code_regs): New function that
10619         implements the target hook TARGET_FIXED_CONDITION_CODE_REGS.
10620         (register_sh_passes): New function.  Register sh_treg_combine pass.
10621         (sh_option_override): Invoke it.
10622         (sh_canonicalize_comparison): Handle op0_preserve_value.
10623         * sh.md (*cbranch_t"): Do not try to optimize missed test and branch
10624         opportunities.  Canonicalize branch condition.
10625         (nott): Allow only if pseudos can be created for non-SH2A.
10627 2013-10-12  H.J. Lu  <hongjiu.lu@intel.com>
10629         PR target/58690
10630         * config/i386/i386.c (ix86_copy_addr_to_reg): New function.
10631         (ix86_expand_movmem): Replace copy_addr_to_reg with
10632         ix86_copy_addr_to_reg.
10633         (ix86_expand_setmem): Likewise.
10635 2013-10-12  Alexander Monakov  <amonakov@ispras.ru>
10637         * config/i386/i386.c (ix86_expand_sse_compare_and_jump): Use mode
10638         provided by ix86_fp_compare_mode instead of CCFPUmode.
10640 2013-10-12  James Greenhalgh  <james.greenhalgh@arm.com>
10642         * config/aarch64/arm_neon.h
10643         (vtbx<1,3>_<psu>8): Fix register constriants.
10645 2013-10-11  Jeff Law  <law@redhat.com>
10647         PR tree-optimization/58640
10648         * tree-ssa-threadupdate.c (mark_threaded_blocks): Truncate jump
10649         threading paths that cross over two loop entry points.
10651 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10653         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): Generalize to
10654         handle vector float as well.
10655         (*vsx_le_perm_load_v4si): Likewise.
10656         (*vsx_le_perm_store_v2di): Likewise.
10657         (*vsx_le_perm_store_v4si): Likewise.
10659 2013-10-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10661         * config/rs6000/vector.md (vec_realign_load<mode>): Generate vperm
10662         directly to circumvent subtract from splat{31} workaround.
10663         * config/rs6000/rs6000-protos.h (altivec_expand_vec_perm_le): New
10664         prototype.
10665         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): New.
10666         * config/rs6000/altivec.md (define_c_enum "unspec"): Add
10667         UNSPEC_VPERM_X and UNSPEC_VPERM_UNS_X.
10668         (altivec_vperm_<mode>): Convert to define_insn_and_split to
10669         separate big and little endian logic.
10670         (*altivec_vperm_<mode>_internal): New define_insn.
10671         (altivec_vperm_<mode>_uns): Convert to define_insn_and_split to
10672         separate big and little endian logic.
10673         (*altivec_vperm_<mode>_uns_internal): New define_insn.
10674         (vec_permv16qi): Add little endian logic.
10676 2013-10-11  Marc Glisse  <marc.glisse@inria.fr>
10678         * doc/extend.texi (returns_nonnull): Remove arguments.
10680 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10681             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10682             Sergey Lega  <sergey.s.lega@intel.com>
10683             Anna Tikhonova  <anna.tikhonova@intel.com>
10684             Ilya Tocar  <ilya.tocar@intel.com>
10685             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10686             Ilya Verbin  <ilya.verbin@intel.com>
10687             Kirill Yukhin  <kirill.yukhin@intel.com>
10688             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10690         * config/i386/sse.md (VI48F_256_512): New.
10691         (avx2_permvar<mode>): Change to ...
10692         (<avx2_avx512f>_permvar<mode>): This.
10694 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10695             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10696             Sergey Lega  <sergey.s.lega@intel.com>
10697             Anna Tikhonova  <anna.tikhonova@intel.com>
10698             Ilya Tocar  <ilya.tocar@intel.com>
10699             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10700             Ilya Verbin  <ilya.verbin@intel.com>
10701             Kirill Yukhin  <kirill.yukhin@intel.com>
10702             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10704         * config/i386/i386.c (bdesc_args): Change corresponding pattern for
10705         __builtin_ia32_cvtps2dq, __builtin_ia32_cvtps2dq256.
10706         * config/i386/sse.md (VI4_AVX): New.
10707         (sf2simodelower): Ditto.
10708         (sse2_cvtps2dq): Change to ...
10709         (<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode>): This.
10711 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10712             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10713             Sergey Lega  <sergey.s.lega@intel.com>
10714             Anna Tikhonova  <anna.tikhonova@intel.com>
10715             Ilya Tocar  <ilya.tocar@intel.com>
10716             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10717             Ilya Verbin  <ilya.verbin@intel.com>
10718             Kirill Yukhin  <kirill.yukhin@intel.com>
10719             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10721         * config/i386/sse.md (V_512): New.
10722         (VI_512): Ditto.
10723         (vcond<V_512:mode><VF_512:mode>): Ditto.
10724         (vcond<V_512:mode><VI_512:mode>): Ditto.
10725         (vcondu<V_512:mode><VI_512:mode>): Ditto.
10727 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10728             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10729             Sergey Lega  <sergey.s.lega@intel.com>
10730             Anna Tikhonova  <anna.tikhonova@intel.com>
10731             Ilya Tocar  <ilya.tocar@intel.com>
10732             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10733             Ilya Verbin  <ilya.verbin@intel.com>
10734             Kirill Yukhin  <kirill.yukhin@intel.com>
10735             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10737         * config/i386/i386.c (ix86_rtx_costs): Enable fma for TARGET_AVX512F.
10738         * config/i386/sse.md (FMAMODEM): Changed modes and conditions.
10739         (FMAMODE): Ditto.
10740         (fma<mode>4): Removed condition.
10741         (fms<mode>4): Ditto.
10742         (fnma<mode>4): Ditto.
10743         (fnms<mode>4): Ditto.
10744         (fma4i_fmadd_<mode>): Ditto.
10745         (*fma_fmadd_<mode>): Ditto.
10746         (*fma_fmsub_<mode>): Ditto.
10747         (*fma_fnmadd_<mode>): Ditto.
10748         (*fma_fnmsub_<mode>): Ditto.
10749         (fmaddsub_<mode>): Allow for TARGET_AVX512F.
10750         (*fma_fmaddsub_<mode>): Ditto.
10751         (*fma_fmsubadd_<mode>): Ditto.
10752         (*fmai_fmadd_<mode>): Ditto.
10753         (*fmai_fmsub_<mode>): Ditto.
10754         (*fmai_fnmadd_<mode>): Ditto.
10755         (*fmai_fnmsub_<mode>): Ditto.
10757 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10758             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10759             Sergey Lega  <sergey.s.lega@intel.com>
10760             Anna Tikhonova  <anna.tikhonova@intel.com>
10761             Ilya Tocar  <ilya.tocar@intel.com>
10762             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10763             Ilya Verbin  <ilya.verbin@intel.com>
10764             Kirill Yukhin  <kirill.yukhin@intel.com>
10765             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10767         * config/i386/sse.md (VI248_AVX2_8_AVX512F): New.
10768         (VI124_256): Changed to ...
10769         (VI124_256_48_512): This.
10770         (ssepackmode): Extended with wider modes.
10771         (<code><mode>3): Changed iterator.
10772         (*avx2_<code><mode>3): Ditto.
10773         (vec_pack_trunc_<mode>): Ditto.
10775 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10776             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10777             Sergey Lega  <sergey.s.lega@intel.com>
10778             Anna Tikhonova  <anna.tikhonova@intel.com>
10779             Ilya Tocar  <ilya.tocar@intel.com>
10780             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10781             Ilya Verbin  <ilya.verbin@intel.com>
10782             Kirill Yukhin  <kirill.yukhin@intel.com>
10783             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10785         * config/i386/sse.md (VI124_AVX2_48_AVX512F): New.
10786         (VI8F_256_512): Ditto.
10787         (abs<mode>2): Changed iterator.
10788         (avx2_perm<mode>): Changed to ...
10789         (<avx2_avx512f>_perm<mode>): This.
10790         (avx2_perm<mode>_1): Changed to ...
10791         (<avx2_avx512f>_perm<mode>_1): This.
10793 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10794             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10795             Sergey Lega  <sergey.s.lega@intel.com>
10796             Anna Tikhonova  <anna.tikhonova@intel.com>
10797             Ilya Tocar  <ilya.tocar@intel.com>
10798             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10799             Ilya Verbin  <ilya.verbin@intel.com>
10800             Kirill Yukhin  <kirill.yukhin@intel.com>
10801             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10803         * config/i386/sse.md (VI48_AVX512F): New.
10804         (VI48_AVX2): Changed to ...
10805         (VI48_AVX2_48_AVX512F): This.
10806         (avx2_ashrv<mode>): Changed to ...
10807         (<avx2_avx512f>_ashrv<mode>): This.
10808         (avx2_<shift_insn>v<mode>): Changed to ...
10809         (<avx2_avx512f>_<shift_insn>v<mode>): This.
10811 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10812             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10813             Sergey Lega  <sergey.s.lega@intel.com>
10814             Anna Tikhonova  <anna.tikhonova@intel.com>
10815             Ilya Tocar  <ilya.tocar@intel.com>
10816             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10817             Ilya Verbin  <ilya.verbin@intel.com>
10818             Kirill Yukhin  <kirill.yukhin@intel.com>
10819             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10821         * config/i386/sse.md (VI4_AVX512F): New.
10822         (VI8_AVX2_AVX512F): Ditto.
10823         (mul<mode>3): Extended with wider modes.
10824         (*<sse4_1_avx2>_mul<mode>3): Ditto.
10825         (mul<mode>3): Ditto.
10826         (vec_widen_<s>mult_odd_<mode>): Ditto.
10828 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10829             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10830             Sergey Lega  <sergey.s.lega@intel.com>
10831             Anna Tikhonova  <anna.tikhonova@intel.com>
10832             Ilya Tocar  <ilya.tocar@intel.com>
10833             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10834             Ilya Verbin  <ilya.verbin@intel.com>
10835             Kirill Yukhin  <kirill.yukhin@intel.com>
10836             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10838         * config/i386/sse.md (VI2_AVX512F): New.
10839         (VI124_AVX512F): Ditto.
10840         (sseunpackmode): Extended with wider modes.
10841         (sseunpackfltmode): Ditto.
10842         (vec_unpacks_float_hi_<mode>): Ditto.
10843         (vec_unpacks_float_lo_<mode>): Ditto.
10844         (vec_unpacku_float_hi_<mode>): Ditto.
10845         (vec_unpacku_float_lo_<mode>): Ditto.
10846         (vec_unpacks_lo_<mode>): Ditto.
10847         (vec_unpacks_hi_<mode>): Ditto.
10848         (vec_unpacku_lo_<mode>): Ditto.
10849         (vec_unpacku_hi_<mode>): Ditto.
10851 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10852             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10853             Sergey Lega  <sergey.s.lega@intel.com>
10854             Anna Tikhonova  <anna.tikhonova@intel.com>
10855             Ilya Tocar  <ilya.tocar@intel.com>
10856             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10857             Ilya Verbin  <ilya.verbin@intel.com>
10858             Kirill Yukhin  <kirill.yukhin@intel.com>
10859             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10861         * config/i386/i386.md (multdiv): New.
10862         (multdiv_mnemonic): Ditto.
10863         * config/i386/sse.md (<sse>_vmmul<mode>3): Changed to...
10864         (<sse>_vm<multdiv_mnemonic><mode>3): This.
10865         (<sse>_vmdiv<mode>3): Removed.
10867 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10868             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10869             Sergey Lega  <sergey.s.lega@intel.com>
10870             Anna Tikhonova  <anna.tikhonova@intel.com>
10871             Ilya Tocar  <ilya.tocar@intel.com>
10872             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10873             Ilya Verbin  <ilya.verbin@intel.com>
10874             Kirill Yukhin  <kirill.yukhin@intel.com>
10875             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10877         * config/i386/sse.md (V): Extended with wider modes.
10878         (VF2): Ditto.
10879         (ssehalfvecmode): Ditto.
10880         (i128): Ditto.
10881         (ssepackfltmode): Ditto.
10882         (avx_vec_concat<mode>): Ditto.
10883         (V_256_512): New iterator.
10884         (VF2_512_256): Ditto.
10885         (si2dfmode): New attribute.
10886         (si2dfmodelower): Ditto.
10887         (sf2dfmode): Ditto.
10888         (concat_tg_mode): Ditto.
10889         (floatv4siv4df2): Changed to ...
10890         (float<si2dfmodelower><mode>2): This.
10891         (avx_cvtps2pd256): Changed to ...
10892         (<sse2_avx_avx512f>_cvtps2pd<avxsizesuffix>): This.
10893         (vec_pack_trunc_v4df): Changed to ...
10894         (vec_pack_trunc_<mode>): This.
10895         (avx_vpermil<mode>): Changed to ...
10896         (<sse2_avx_avx512f>_vpermil<mode>): This.
10897         (<fixsuffix>fix_truncv8dfv8si2): New.
10898         (vec_pack_sfix_trunc_v8df): Ditto.
10899         (avx512f_rndscale<mode>): Ditto.
10900         (avx512f_roundpd512): Ditto.
10901         (vec_pack_ufix_trunc_<mode>): Updated iterator.
10903 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10904             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10905             Sergey Lega  <sergey.s.lega@intel.com>
10906             Anna Tikhonova  <anna.tikhonova@intel.com>
10907             Ilya Tocar  <ilya.tocar@intel.com>
10908             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10909             Ilya Verbin  <ilya.verbin@intel.com>
10910             Kirill Yukhin  <kirill.yukhin@intel.com>
10911             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10913         * config/i386/i386.md (any_fix): New iterator.
10914         (fixsuffix): New attribute.
10915         * config/i386/sse.md (VF1): Extened with wider modes.
10916         (VI): Ditto.
10917         (VI_AVX2): Ditto.
10918         (VI8): Ditto.
10919         (sseintvecmodelower): Ditto.
10920         (ssescalarmode): Ditto.
10921         (ssescalarnum): Ditto.
10922         (VF1_128_256): New.
10923         (ssexmmmode): Ditto.
10924         (<fixsuffix>fix_truncv16sfv16si2): Ditto.
10925         (<sse>_rcp<mode>2): Change iterator.
10926         (rsqrt<mode>2): Ditto.
10927         (<sse>_rsqrt<mode>2): Ditto.
10928         (avx2_vec_dup<mode>): Ditto.
10929         (<sse4_1>_round<ssemodesuffix>_sfix<avxsizesuffix>): Ditto.
10930         (round<mode>2_sfix): Ditto.
10931         (avx2_pbroadcast<mode>): Ditto.
10932         (*andnot<mode>3): Handle XI mode.
10933         (*<code><mode>3): Ditto.
10934         (AVXTOSSEMODE): Removed.
10935         (avx_vpermil<mode>): Changed to ...
10936         (<sse2_avx_avx512f>_vpermil<mode>): This.
10938 2013-10-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10939             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10940             Sergey Lega  <sergey.s.lega@intel.com>
10941             Anna Tikhonova  <anna.tikhonova@intel.com>
10942             Ilya Tocar  <ilya.tocar@intel.com>
10943             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10944             Ilya Verbin  <ilya.verbin@intel.com>
10945             Kirill Yukhin  <kirill.yukhin@intel.com>
10946             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10948         * config/i386/sse.md (<sse2>_movnt<mode>): Update constraint to "v".
10949         (<sse>_comi): Ditto.
10950         (<sse>_ucomi): Ditto.
10951         (sse_cvtss2siq_2): Ditto.
10952         (sse2_cvtsd2si): Ditto.
10953         (sse2_cvtsd2siq): Ditto.
10954         (sse2_cvttsd2si): Ditto.
10955         (sse2_cvttsd2siq): Ditto.
10956         (<shift_insn><mode>3): Ditto.
10957         (sse2_cvtsi2sdq): Update constraint and prefix.
10958         (sse_cvtsi2ss): Update prefix.
10959         (sse_cvtsi2ssq): Ditto.
10961 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
10963         * tree-vrp.c (infer_nonnull_range): Use is_gimple_call,
10964         ignore internal calls.
10966 2013-10-11  Richard Biener  <rguenther@suse.de>
10968         * tree-pretty-print.c (dump_generic_node): Allow to dump both (D)
10969         and (ab) for SSA_NAMEs.  Mark INTEGER_CSTs with (OVF) if
10970         TREE_OVERFLOW is set.
10972 2013-10-11  Thomas Schwinge  <thomas@codesourcery.com>
10974         * tree.h (OMP_CLAUSE_CODE): Remove duplicate definition.
10976         * gimple.c: GIMPLE statements have subcodes, not sub-codes.
10977         * gimple.h: Likewise.
10979         * doc/generic.texi (OpenMP): OMP_CLAUSE_* are subcodes, not sub-codes.
10981         * doc/generic.texi (Adding new DECL node types): Explain *_CHECK
10982         macros.
10984         * doc/gimple.texi (is_gimple_omp): Move into the correct section.
10986         * acinclude.m4 (gcc_GAS_FLAGS): Add more gcc_cv_as_flags overrides.
10987         * configure: Regenerate.
10989 2013-10-11  Jakub Jelinek  <jakub@redhat.com>
10991         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__LOOPTEMP_
10992         and new OpenMP 4.0 clauses, handle UDR OMP_CLAUSE_REDUCTION,
10993         formatting fixes, use pp_colon instead of pp_character (..., ':'),
10994         similarly pp_right_paren.
10995         (dump_generic_node): Handle OMP_DISTRIBUTE, OMP_TEAMS,
10996         OMP_TARGET_DATA, OMP_TARGET, OMP_TARGET_UPDATE, OMP_TASKGROUP,
10997         allow OMP_FOR_INIT to be NULL, handle OMP_ATOMIC_SEQ_CST.
10998         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add OpenMP 4.0
10999         clauses.
11000         (omp_declare_simd_clauses_equal,
11001         omp_remove_redundant_declare_simd_attrs): New functions.
11002         (attribute_value_equal): Use omp_declare_simd_clauses_equal.
11003         (walk_tree_1): Handle new OpenMP 4.0 clauses.
11004         * tree.h (OMP_LOOP_CHECK): Define.
11005         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
11006         OMP_FOR_INCR, OMP_FOR_PRE_BODY): Use it.
11007         (OMP_TASKGROUP_BODY, OMP_TEAMS_BODY, OMP_TEAMS_CLAUSES,
11008         OMP_TARGET_DATA_BODY, OMP_TARGET_DATA_CLAUSES, OMP_TARGET_BODY,
11009         OMP_TARGET_CLAUSES, OMP_TARGET_UPDATE_CLAUSES, OMP_CLAUSE_SIZE,
11010         OMP_ATOMIC_SEQ_CST, OMP_CLAUSE_DEPEND_KIND, OMP_CLAUSE_MAP_KIND,
11011         OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION, OMP_CLAUSE_PROC_BIND_KIND,
11012         OMP_CLAUSE_REDUCTION_OMP_ORIG_REF, OMP_CLAUSE_ALIGNED_ALIGNMENT,
11013         OMP_CLAUSE_NUM_TEAMS_EXPR, OMP_CLAUSE_THREAD_LIMIT_EXPR,
11014         OMP_CLAUSE_DEVICE_ID, OMP_CLAUSE_DIST_SCHEDULE_CHUNK_EXPR,
11015         OMP_CLAUSE_SIMDLEN_EXPR): Define.
11016         (OMP_CLAUSE_DECL): Change range up to OMP_CLAUSE__LOOPTEMP_.
11017         (omp_remove_redundant_declare_simd_attrs): New prototype.
11018         * gimple.def (GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET,
11019         GIMPLE_OMP_TEAMS): New codes.
11020         (GIMPLE_OMP_RETURN): Use GSS_OMP_ATOMIC_STORE instead of GSS_BASE.
11021         * omp-low.c (struct omp_context): Add cancel_label and cancellable
11022         fields.
11023         (target_nesting_level): New variable.
11024         (extract_omp_for_data): Handle GF_OMP_FOR_KIND_DISTRIBUTE and
11025         OMP_CLAUSE_DIST_SCHEDULE.  Don't fallback to library implementation
11026         for collapse > 1 static schedule unless ordered.
11027         (get_ws_args_for): Add par_stmt argument.  Handle combined loops.
11028         (determine_parallel_type): Adjust get_ws_args_for caller.
11029         (install_var_field): Handle mask & 4 for double indirection.
11030         (scan_sharing_clauses): Ignore shared clause on teams construct.
11031         Handle OMP_CLAUSE__LOOPTEMP_ and new OpenMP 4.0 clauses.
11032         (create_omp_child_function): If inside target or declare target
11033         constructs, set "omp declare target" attribute on the child function.
11034         (find_combined_for): New function.
11035         (scan_omp_parallel): Handle combined loops.
11036         (scan_omp_target, scan_omp_teams): New functions.
11037         (check_omp_nesting_restrictions): Check new OpenMP 4.0 nesting
11038         restrictions and set ctx->cancellable for cancellable constructs.
11039         (scan_omp_1_stmt): Call check_omp_nesting_restrictions also on
11040         selected builtin calls.  Handle GIMPLE_OMP_TASKGROUP,
11041         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS.
11042         (build_omp_barrier): Add lhs argument, return gimple rather than tree.
11043         (omp_clause_aligned_alignment): New function.
11044         (lower_rec_simd_input_clauses): Only call SET_DECL_VALUE_EXPR on decls.
11045         (lower_rec_input_clauses): Add FD argument.  Ignore shared clauses
11046         on teams constructs.  Handle user defined reductions and new
11047         OpenMP 4.0 clauses.
11048         (lower_reduction_clauses): Don't set placeholder to address of ref
11049         if it has already the right type.
11050         (lower_send_clauses): Handle OMP_CLAUSE__LOOPTEMP_.
11051         (expand_parallel_call): Use the new non-_start suffixed builtins,
11052         handle OMP_CLAUSE_PROC_BIND, don't call the outlined function
11053         and GOMP_parallel_end after the call.
11054         (expand_task_call): Handle OMP_CLAUSE_DEPEND.
11055         (expand_omp_for_init_counts): Handle combined loops.
11056         (expand_omp_for_init_vars): Add inner_stmt argument, handle combined
11057         loops.
11058         (expand_omp_for_generic): Likewise.  Use GOMP_loop_end_cancel at the
11059         end of cancellable loops.
11060         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
11061         Likewise.  Handle collapse > 1 loops.
11062         (expand_omp_simd): Handle combined loops.
11063         (expand_omp_for): Add inner_stmt argument, adjust callers of
11064         expand_omp_for* functions, use expand_omp_for_static*chunk even
11065         for collapse > 1 unless ordered.
11066         (expand_omp_sections): Use GOMP_sections_end_cancel at the end
11067         of cancellable sections.
11068         (expand_omp_single): Remove need_barrier variable, just rely on
11069         gimple_omp_return_nowait_p.  Adjust build_omp_barrier caller.
11070         (expand_omp_synch): Allow GIMPLE_OMP_TASKGROUP and GIMPLE_OMP_TEAMS.
11071         (expand_omp_atomic_load, expand_omp_atomic_store,
11072         expand_omp_atomic_fetch_op): Handle gimple_omp_atomic_seq_cst_p.
11073         (expand_omp_target): New function.
11074         (expand_omp): Handle combined loops.  Handle GIMPLE_OMP_TASKGROUP,
11075         GIMPLE_OMP_TEAMS, GIMPLE_OMP_TARGET.
11076         (build_omp_regions_1): Immediately close region for
11077         GF_OMP_TARGET_KIND_UPDATE.
11078         (maybe_add_implicit_barrier_cancel): New function.
11079         (lower_omp_sections): Adjust lower_rec_input_clauses caller.  Handle
11080         cancellation.
11081         (lower_omp_single): Likewise.  Add clobber after the barrier.
11082         (lower_omp_taskgroup): New function.
11083         (lower_omp_for): Handle combined loops.  Adjust
11084         lower_rec_input_clauses caller.  Handle cancellation.
11085         (lower_depend_clauses): New function.
11086         (lower_omp_taskreg): Lower depend clauses.  Adjust
11087         lower_rec_input_clauses caller.  Add clobber after the call.  Handle
11088         cancellation.
11089         (lower_omp_target, lower_omp_teams): New functions.
11090         (lower_omp_1): Handle cancellation.  Handle GIMPLE_OMP_TASKGROUP,
11091         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GOMP_barrier, GOMP_cancel
11092         and GOMP_cancellation_point calls.
11093         (lower_omp): Fold stmts inside of target region.
11094         (diagnose_sb_1, diagnose_sb_2): Handle GIMPLE_OMP_TASKGROUP,
11095         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11096         * builtin-types.def (DEF_FUNCTION_TYPE_8): Document.
11097         (BT_FN_VOID_OMPFN_PTR_UINT,
11098         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG,
11099         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG,
11100         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): Remove.
11101         (BT_FN_VOID_OMPFN_PTR_UINT_UINT_UINT,
11102         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_UINT,
11103         BT_FN_VOID_OMPFN_PTR_UINT_LONG_LONG_LONG_LONG_UINT,
11104         BT_FN_BOOL_INT, BT_FN_BOOL_INT_BOOL, BT_FN_VOID_UINT_UINT,
11105         BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
11106         BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
11107         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): New.
11108         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
11109         call_may_clobber_ref_p_1): Handle BUILT_IN_GOMP_BARRIER_CANCEL,
11110         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_LOOP_END_CANCEL,
11111         BUILT_IN_GOMP_SECTIONS_END_CANCEL.  Don't handle
11112         BUILT_IN_GOMP_PARALLEL_END.
11113         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_TASKGROUP,
11114         GIMPLE_OMP_TARGET and GIMPLE_OMP_TEAMS.
11115         * gimple-pretty-print.c (dump_gimple_omp_for): Handle
11116         GF_OMP_FOR_KIND_DISTRIBUTE.
11117         (dump_gimple_omp_target, dump_gimple_omp_teams): New functions.
11118         (dump_gimple_omp_block): Handle GIMPLE_OMP_TASKGROUP.
11119         (dump_gimple_omp_return): Print lhs if it has any.
11120         (dump_gimple_omp_atomic_load, dump_gimple_omp_atomic_store): Handle
11121         gimple_omp_atomic_seq_cst_p.
11122         (pp_gimple_stmt_1): Handle GIMPLE_OMP_TASKGROUP, GIMPLE_OMP_TARGET
11123         and GIMPLE_OMP_TEAMS.
11124         * langhooks.c (lhd_omp_mappable_type): New function.
11125         * tree-vectorizer.c (struct simd_array_to_simduid): Fix up comment.
11126         * langhooks.h (struct lang_hooks_for_types): Add omp_mappable_type
11127         hook.
11128         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP,
11129         GOVD_ALIGNED and GOVD_MAP_TO_ONLY.
11130         (enum omp_region_type): Add ORT_TEAMS, ORT_TARGET_DATA and ORT_TARGET.
11131         (struct gimplify_omp_ctx): Add combined_loop field.
11132         (gimplify_call_expr, gimplify_modify_expr): Don't call fold_stmt
11133         on stmts inside of target region.
11134         (is_gimple_stmt): Return true for OMP_DISTRIBUTE and OMP_TASKGROUP.
11135         (omp_firstprivatize_variable): Handle GOVD_MAP, GOVD_ALIGNED,
11136         ORT_TARGET and ORT_TARGET_DATA.
11137         (omp_add_variable): Avoid checks on readding var for GOVD_ALIGNED.
11138         Handle GOVD_MAP.
11139         (omp_notice_threadprivate_variable): Complain about threadprivate
11140         variables in target region.
11141         (omp_notice_variable): Complain about vars with non-mappable type
11142         in target region.  Handle ORT_TEAMS, ORT_TARGET and ORT_TARGET_DATA.
11143         (omp_check_private): Ignore ORT_TARGET* regions.
11144         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses_1,
11145         gimplify_adjust_omp_clauses): Handle new OpenMP 4.0 clauses.
11146         (find_combined_omp_for): New function.
11147         (gimplify_omp_for): Handle gimplification of combined loops.
11148         (gimplify_omp_workshare): Gimplify also OMP_TARGET, OMP_TARGET_DATA,
11149         OMP_TEAMS.
11150         (gimplify_omp_target_update): New function.
11151         (gimplify_omp_atomic): Handle OMP_ATOMIC_SEQ_CST.
11152         (gimplify_expr): Handle OMP_DISTRIBUTE, OMP_TARGET, OMP_TARGET_DATA,
11153         OMP_TARGET_UPDATE, OMP_TEAMS, OMP_TASKGROUP.
11154         (gimplify_body): If fndecl has "omp declare target" attribute, add
11155         implicit ORT_TARGET context around it.
11156         * tree.def (OMP_DISTRIBUTE, OMP_TEAMS, OMP_TARGET_DATA, OMP_TARGET,
11157         OMP_TASKGROUP, OMP_TARGET_UPDATE): New tree codes.
11158         * tree-nested.c (convert_nonlocal_reference_stmt,
11159         convert_local_reference_stmt, convert_gimple_call): Handle
11160         GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11161         * omp-builtins.def (BUILT_IN_GOMP_TASK): Use
11162         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR
11163         instead of BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT.
11164         (BUILT_IN_GOMP_TARGET, BUILT_IN_GOMP_TARGET_DATA,
11165         BUILT_IN_GOMP_TARGET_END_DATA, BUILT_IN_GOMP_TARGET_UPDATE,
11166         BUILT_IN_GOMP_TEAMS, BUILT_IN_BARRIER_CANCEL,
11167         BUILT_IN_GOMP_LOOP_END_CANCEL,
11168         BUILT_IN_GOMP_SECTIONS_END_CANCEL, BUILT_IN_OMP_GET_TEAM_NUM,
11169         BUILT_IN_OMP_GET_NUM_TEAMS, BUILT_IN_GOMP_TASKGROUP_START,
11170         BUILT_IN_GOMP_TASKGROUP_END, BUILT_IN_GOMP_PARALLEL_LOOP_STATIC,
11171         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC,
11172         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED,
11173         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME, BUILT_IN_GOMP_PARALLEL,
11174         BUILT_IN_GOMP_PARALLEL_SECTIONS, BUILT_IN_GOMP_CANCEL,
11175         BUILT_IN_GOMP_CANCELLATION_POINT): New built-ins.
11176         (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
11177         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
11178         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
11179         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
11180         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_PARALLEL_END,
11181         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Remove.
11182         * tree-inline.c (remap_gimple_stmt, estimate_num_insns):
11183         Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11184         * gimple.c (gimple_build_omp_taskgroup, gimple_build_omp_target,
11185         gimple_build_omp_teams): New functions.
11186         (walk_gimple_op): Handle GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS and
11187         GIMPLE_OMP_TASKGROUP.  Walk optional lhs on GIMPLE_OMP_RETURN.
11188         (walk_gimple_stmt, gimple_copy): Handle GIMPLE_OMP_TARGET,
11189         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11190         * gimple.h (enum gf_mask): GF_OMP_FOR_KIND_DISTRIBUTE,
11191         GF_OMP_FOR_COMBINED, GF_OMP_FOR_COMBINED_INTO,
11192         GF_OMP_TARGET_KIND_MASK, GF_OMP_TARGET_KIND_REGION,
11193         GF_OMP_TARGET_KIND_DATA, GF_OMP_TARGET_KIND_UPDATE,
11194         GF_OMP_ATOMIC_SEQ_CST): New.
11195         (gimple_build_omp_taskgroup, gimple_build_omp_target,
11196         gimple_build_omp_teams): New prototypes.
11197         (gimple_has_substatements): Handle GIMPLE_OMP_TARGET,
11198         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11199         (gimple_omp_subcode): Use GIMPLE_OMP_TEAMS instead of
11200         GIMPLE_OMP_SINGLE as end of range.
11201         (gimple_omp_return_set_lhs, gimple_omp_return_lhs,
11202         gimple_omp_return_lhs_ptr, gimple_omp_atomic_seq_cst_p,
11203         gimple_omp_atomic_set_seq_cst, gimple_omp_for_combined_p,
11204         gimple_omp_for_set_combined_p, gimple_omp_for_combined_into_p,
11205         gimple_omp_for_set_combined_into_p, gimple_omp_target_clauses,
11206         gimple_omp_target_clauses_ptr, gimple_omp_target_set_clauses,
11207         gimple_omp_target_kind, gimple_omp_target_set_kind,
11208         gimple_omp_target_child_fn, gimple_omp_target_child_fn_ptr,
11209         gimple_omp_target_set_child_fn, gimple_omp_target_data_arg,
11210         gimple_omp_target_data_arg_ptr, gimple_omp_target_set_data_arg,
11211         gimple_omp_teams_clauses, gimple_omp_teams_clauses_ptr,
11212         gimple_omp_teams_set_clauses): New inlines.
11213         (CASE_GIMPLE_OMP): Add GIMPLE_OMP_TARGET, GIMPLE_OMP_TEAMS
11214         and GIMPLE_OMP_TASKGROUP.
11215         * tree-core.h (enum omp_clause_code): Add new OpenMP 4.0 clause codes.
11216         (enum omp_clause_depend_kind, enum omp_clause_map_kind,
11217         enum omp_clause_proc_bind_kind): New.
11218         (union omp_clause_subcode): Add depend_kind, map_kind and
11219         proc_bind_kind fields.
11220         * tree-cfg.c (make_edges): Handle GIMPLE_OMP_TARGET,
11221         GIMPLE_OMP_TEAMS and GIMPLE_OMP_TASKGROUP.
11222         * langhooks-def.h (lhd_omp_mappable_type): New prototype.
11223         (LANG_HOOKS_OMP_MAPPABLE_TYPE): Define.
11224         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
11226 2013-10-10  Teresa Johnson  <tejohnson@google.com>
11228         * predict.c (tree_estimate_probability): Add new parameter
11229         for estimate_bb_frequencies.
11230         (estimate_bb_frequencies): Add new parameter to force estimation.
11231         (rebuild_frequencies): When max frequency in function is small,
11232         recompute counts from frequencies.
11233         * predict.h (estimate_bb_frequencies): New parameter.
11235 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
11237         * ipa-inline.c (ipa_inline): Fix leak of "order" when
11238         optimizations are disabled.
11240 2013-10-10  David Malcolm  <dmalcolm@redhat.com>
11242         * coverage.c (coverage_finish): Fix leak of da_file_name.
11244 2013-10-10  Jan Hubicka  <jh@suse.cz>
11246         * config/i386/x86-tune.def: Enable X86_TUNE_SSE_TYPELESS_STORES
11247         for generic, enable X86_TUNE_SSE_LOAD0_BY_PXOR for Bulldozer,
11248         Bobcat and generic.
11250 2013-10-10  Jakub Jelinek  <jakub@redhat.com>
11252         PR middle-end/58670
11253         * stmt.c (expand_asm_operands): Add FALLTHRU_BB argument,
11254         if any labels are in FALLTHRU_BB, use a special label emitted
11255         immediately after the asm goto insn rather than label_rtx
11256         of the LABEL_DECL.
11257         (expand_asm_stmt): Adjust caller.
11258         * cfgrtl.c (commit_one_edge_insertion): Force splitting of
11259         edge if the last insn in predecessor is a jump with single successor,
11260         but it isn't simplejump_p.
11262 2013-10-10  Richard Biener  <rguenther@suse.de>
11264         PR tree-optimization/58656
11265         * tree-ssa-pre.c (phi_translate): Do not cache failed translations.
11267 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11269         * gimplify.c: Include expr.h and tm_p.h for targets with special
11270         va-arg padding requirements.
11272 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11274         * tree-flow.h: Move some prototypes to gimple.h.
11275         (gimple_fold_indirect_ref): Move prototype to gimple-fold.h.
11276         * gimple.h: Relocate some prototypes from tree-flow.h
11277         * builtins.c (std_gimplify_va_arg_expr, build_va_arg_indirect_ref):
11278         Move to gimplify.c.
11279         * gimplify.c (gimple_fold_indirect_ref): Move to gimple-fold.c.
11280         (build_va_arg_indirect_ref): Relocate and make static.
11281         (std_gimplify_va_arg_expr): Relocate here.
11282         * gimple-fold.c (gimple_fold_indirect_ref): Relocate here.
11283         * gimple-fold.h (gimple_fold_indirect_ref): Add prototype.
11285 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11287         * doc/md.texi: Document the mnemonic attribute.
11289 2013-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11291         PR target/57377
11292         * gensupport.c (gen_mnemonic_attr): Handle (set (attr x) y) and
11293         (set_attr_alternative x ...) when searching for user defined
11294         mnemonic attribute.
11296 2013-10-10  Andrew MacLeod  <amacleod@redhat.com>
11298         * config/aplha/alpha.c: Add gimple-ssa.h to include list.
11300 2013-10-09  Easwaran Raman <eraman@google.com>
11302         * params.def (PARAM_MIN_SIZE_FOR_STACK_SHARING): New param...
11303         * cfgexpand.c (defer_stack_allocation): ...use here
11304         * doc/invoke.texi: Add documentation for min-size-for-stack-sharing.
11306 2013-10-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
11308         * tree-ssa-phiopts.c (rhs_is_fed_for_value_replacement): New function.
11309         (operand_equal_for_value_replacement): New function, extracted from
11310         value_replacement and enhanced to catch more cases.
11311         (value_replacement): Use operand_equal_for_value_replacement.
11313 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11315         * loop-doloop.c (doloop_modify, doloop_optimize): Use
11316         get_max_loop_iterations.
11318 2013-10-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11320         * config/arm/aarch-common.c (arm_early_load_addr_dep):
11321         Place comment above function.
11323 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11325         * tree-flow.h: Remove all remaining prototypes, enums and structs that
11326         are not related to tree-cfg.c.
11327         * tree-ssa-address.h: New file.  Relocate prototypes.
11328         * tree-ssa-address.c: (struct mem_address): Relocate from tree-flow.h.
11329         (addr_for_mem_ref): New.  Combine call to get_address_description and
11330         return addr_for_mem_ref.
11331         * expr.c (expand_expr_real_1): Use new addr_for_mem_ref routine.
11332         * tree-ssa-live.h: Adjust prototypes.
11333         * passes.c: Include tree-ssa-live.h.
11334         * gimple-pretty-print.h (gimple_dump_bb): Add prototype.
11335         * graphite.c (graphite_transform_loops): Make static.
11336         (graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11337         make_pass_graphite, pass_data_graphite_transforms,
11338         make_pass_graphite_transforms): Relocate here from tree-ssa-loop.c.
11339         * ipa-pure-const.c (warn_function_noreturn): Make static.
11340         (execute_warn_function_noreturn, gate_warn_function_noreturn,
11341         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11342         Relocate from tree-cfg.c
11343         * tree-cfg.c (tree_node_can_be_shared, gimple_empty_block_p): Make
11344         static.
11345         (execute_warn_function_noreturn, gate_warn_function_noreturn,
11346         class pass_warn_function_noreturn, make_pass_warn_function_noreturn):
11347         Move to ipa-pure-const.c.
11348         (execute_fixup_cfg, class pass_fixup_cfg, make_pass_fixup_cfg):
11349         Relocate from tree-optimize.c.
11350         * tree-optimize.c (execute_fixup_cfg, class pass_fixup_cfg,
11351         make_pass_fixup_cfg): Move to tree-cfg.c.
11352         * tree-chrec.h: (enum ev_direction): Relocate here from tree-flow.h.
11353         Relocate some prototypes.
11354         * tree-data-ref.h (tree_check_data_deps) Add prototype.
11355         * tree-dump.c (dump_function_to_file): Remove prototype.
11356         Add tree-flow.h to the include file.
11357         * tree-dump.h: Remove prototype.
11358         * tree-parloops.h: New File.  Add prototypes.
11359         * tree-parloops.c (gate_tree_parallelize_loops, tree_parallelize_loops,
11360         pass_data_parallelize_loops,  make_pass_parallelize_loops): Relocate
11361         from tree-ssa-loop.c.
11362         * tree-predcom.c (run_tree_predictive_commoning,
11363         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom):
11364         Relocate here from tree-ssa-loop.c.
11365         * tree-ssa-dom.c (tree_ssa_dominator_optimize) Don't call
11366         ssa_name_values.release ().
11367         * tree-ssa-threadedge.h: New File.  Relocate prototypes here.
11368         (ssa_name_values): Relocate from tree-flow.h.
11369         * tree-ssa.h: Include tree-ssa-threadedge.h and tree-ssa-address.h.
11370         * tree-ssa-loop.c (run_tree_predictive_commoning,
11371         gate_tree_predictive_commoning, pass_data_predcom, make_pass_predcom,
11372         graphite_transforms, gate_graphite_transforms, pass_data_graphite,
11373         make_pass_graphite, pass_data_graphite_transforms,
11374         make_pass_graphite_transforms, gate_tree_parallelize_loops,
11375         tree_parallelize_loops, pass_data_parallelize_loops,
11376         make_pass_parallelize_loops): Move to other files.
11377         * tree-vectorizer.h (lpeel_tree_duplicate_loop_to_edge_cfg): Prototype
11378         moved here.
11379         * tree.h: Remove prototypes from tree-address.c.
11381 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11383         * tree-flow.h (tm_restart_node, gimple_df): Move to gimple-ssa.h.
11384         (struct int_tree_map): Move to tree-hasher.h
11385         (SCALE, LABEL, PERCENT): Move to gimple.h
11386         * tree-flow-inline.h: Delete.  Move functions to other files.
11387         (unmodifiable_var_p, ref_contains_array_ref): Unused, so delete.
11388         * gimple-ssa.h (tm_restart_node, gimple_df): Relocate from tree-flow.h.
11389         (gimple_in_ssa_p, gimple_vop): Relocate from tree-flow-inline.h
11390         * gimple.h (imple_stmt_max_uid, set_gimple_stmt_max_uid,
11391         inc_gimple_stmt_max_uid, get_lineno): Relocate from tree-flow-inline.h.
11392         (SCALE, LABEL, PERCENT): Relocate from tree-flow.h
11393         * tree-hasher.h: Don't include tree-flow.h.
11394         (struct int_tree_map): Relocate from tree-flow.h.
11395         * tree-sra.c (contains_view_convert_expr_p): Relocate from
11396         tree-flow-inline.h and make static.
11397         * tree-ssa-alias.h (ranges_overlap_p): Relocate from
11398         tree-flow-inline.h.
11399         * tree-ssa-operands.c (gimple_ssa_operands): Relocate from
11400         tree-flow-inline.h and make static.
11401         * tree.h (is_global_var, may_be_aliased): Relocate from
11402         tree-flow-inline.h.
11403         * Makefile.in (GTFILES): Remove tree-flow.h and add gimple-ssa.h.
11404         * value-prof.c: No longer include tree-flow-inline.h.
11405         * tree-switch-conversion.c: No longer include tree-flow-inline.h.
11407 2013-10-09  Andrew MacLeod  <amacleod@redhat.com>
11409         * tree-flow.h: Move some protoypes.  Include new tree-ssa-loop.h.
11410         (struct affine_iv, struct tree_niter_desc): Move to tree-ssa-loop.h.
11411         (enum move_pos): Move to tree-ssa-loop-im.h
11412         * cfgloop.h: Move some prototypes.
11413         (gcov_type_to_double_int): relocate from tree-ssa-loop.niter.c.
11414         * tree-flow-inline.h (loop_containing_stmt): Move to tree-ssa-loop.h.
11415         * tree-ssa-loop.h: New File.  Include other tree-ssa-loop-*.h files.
11416         (struct affine_iv, struct tree_niter_desc): Relocate from tree-flow.h.
11417         (loop_containing_stmt): Relocate from tree-flow-inline.h.
11418         * tree-ssa-loop-ch.c: (do_while_loop_p): Make static.
11419         * tree-ssa-loop-im.c (for_each_index): Move to tree-ssa-loop.c.
11420         (enum move_pos): Relocate here.
11421         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): Move to
11422         tree-ssa-loop.c.
11423         (execute_sm_if_changed_flag_set): Change get_lsm_tmp_name call.
11424         (tree_ssa_loop_im, gate_tree_ssa_loop_im, pass_data_lim,
11425         make_pass_lim): Relocate here from tree-ssa-loop.c.
11426         * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Move to
11427         tree-ssa-loop.c.
11428         (loop_edge_to_cancel, unloop_loops): Make static.
11429         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11430         make_pass_iv_canon): Relocate from tree-ssa-loop.c.
11431         (tree_complete_unroll, gate_tree_complete_unroll,
11432         pass_data_complete_unroll, make_pass_complete_unroll): Relocate here.
11433         (tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11434         pass_data_complete_unrolli, make_pass_complete_unrolli): Relocate here.
11435         * tree-ssa-loop-ivopts.c: Remove local prototypes.
11436         (stmt_invariant_in_loop_p): Remove unused function.
11437         * tree-ssa-loop-ivopts.h: New file.  Add prototypes.
11438         * tree-ssa-loop-manip.h: New file.  Add prototypes.
11439         * tree-ssa-loop-niter.c (record_niter_bound): Move to cfgloop.c.
11440         (gcov_type_to_double_int): Move to cfgloop.h.
11441         (double_int_cmp, bound_index,
11442         estimate_numbers_of_iterations_loop): Make static.
11443         (estimated_loop_iterations): Factor out get_estimated_loop_iterations.
11444         (max_loop_iterations): Factor out get_max_loop_iterations.
11445         (estimated_loop_iterations_int, max_stmt_executions_int): Move to
11446         cfgloop.c.
11447         * tree-ssa-loop-niter.h: New file.  Add prototypes.
11448         * tree-ssa-loop-prefetch.c (tree_ssa_loop_prefetch,
11449         gate_tree_ssa_loop_prefetch, pass_data_loop_prefetch,
11450         make_pass_loop_prefetch): Relocate from tree-ssa-loop.c.
11451         * tree-ssa-loop-unswitch.c (tree_ssa_loop_unswitch,
11452         gate_tree_ssa_loop_unswitch, pass_data_tree_unswitch,
11453         make_pass_tree_unswitch): Relocate from tree-ssa-loop.c.
11454         * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im,
11455         pass_data_lim, make_pass_lim): Move to tree-ssa-loop-im.c.
11456         (tree_ssa_loop_unswitch, gate_tree_ssa_loop_unswitch,
11457         pass_data_tree_unswitch, make_pass_tree_unswitch): Move.
11458         (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_data_iv_canon,
11459         make_pass_iv_canon, tree_complete_unroll, gate_tree_complete_unroll,
11460         pass_data_complete_unroll, make_pass_complete_unroll,
11461         tree_complete_unroll_inner, gate_tree_complete_unroll_inner,
11462         pass_data_complete_unrolli, make_pass_complete_unrolli): Move to
11463         tree-ssa-loop-ivcanon.c.
11464         (tree_ssa_loop_prefetch, gate_tree_ssa_loop_prefetch,
11465         pass_data_loop_prefetch, make_pass_loop_prefetch): Move to
11466         tree-ssa-loop-prefetch.c.
11467         (for_each_index, lsm_tmp_name_add, gen_lsm_tmp_name): Relocate from
11468         tree-ssa-loop-im.c.
11469         (get_lsm_tmp_name): Relocate and add suffix parameter.
11470         (tree_num_loop_insns): Relocate from tree-ssa-ivcanon.c.
11471         * tree-scalar-evolution.h (simple_iv): Don't use affive_iv typedef.
11472         * cfgloop.c (record_niter_bound, estimated_loop_iterations_int,
11473         max_stmt_executions_int): Move from tree-ssa-loop-niter.c.
11474         (get_estimated_loop_iterations): Factor out accessor from
11475         estimated_loop_iterations in tree-ssa-loop-niter.c.
11476         (get_max_loop_iterations): Factor out accessor from
11477         _max_loop_iterations in tree-ssa-niter.c.
11478         * loop-unroll.c (decide_unroll_constant_iterations,
11479         decide_unroll_runtime_iterations, decide_peel_simple,
11480         decide_unroll_stupid): Use new get_* accessors.
11482 2013-10-09  Marc Glisse  <marc.glisse@inria.fr>
11484         PR tree-optimization/20318
11485         * doc/extend.texi (returns_nonnull): New function attribute.
11486         * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
11487         attribute.
11488         * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
11489         (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
11491 2013-10-09  Eric Botcazou  <ebotcazou@adacore.com>
11493         PR middle-end/58570
11494         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
11495         false if both components are bitfields.
11497 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
11499         * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
11500         (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
11501         (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
11502         * config/aarch64/aarch64.h
11503         (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
11504         * config/aarch64/aarch64-simd-builtins.def
11505         (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
11507 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
11509         * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
11511 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
11513         * config/aarch64/arm_neon.h (vdiv_f64): Added.
11515 2013-10-09  Alex Velenko  <Alex.Velenko@arm.com>
11517         * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
11518         (vneg_f64): New intrinsic.
11519         (vneg_s8): Asm replaced with C.
11520         (vneg_s16): Likewise.
11521         (vneg_s32): Likewise.
11522         (vneg_s64): New intrinsic.
11523         (vnegq_f32): Asm replaced with C.
11524         (vnegq_f64): Likewise.
11525         (vnegq_s8): Likewise.
11526         (vnegq_s16): Likewise.
11527         (vnegq_s32): Likewise.
11528         (vnegq_s64): Likewise.
11530 2013-10-09  Renlin Li  <Renlin.Li@arm.com>
11532         * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
11534 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11536         * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
11537         packed stack special handling.
11538         (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
11539         back to fixed stack slots for FPRs saved due to stdarg.
11541 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11543         * config/s390/s390.c (s390_frame_info): Restructure function.
11545 2013-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11547         * config/s390/s390.c (struct s390_frame_layout): New field
11548         gpr_save_slots.
11549         (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
11550         (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
11551         regs_ever_clobbered to char*.
11552         (s390_regs_ever_clobbered): Check crtl->saves_all_registers instead
11553         of cfun->has_nonlocal_label.  Ignore frame related restore INSNs.
11554         (s390_register_info): Enable FPR save slots.  Move/Copy some
11555         functionality into ...
11556         (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
11557         (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
11558         function.
11559         (s390_frame_info): Do gpr slot allocation here now.  stdarg does
11560         not imply a stack frame.
11561         (s390_init_frame_layout): Remove variable clobbered_regs.
11562         (s390_update_register_info): Remove function.
11563         (s390_hard_regno_rename_ok): Call-saved regs without a save slot
11564         cannot be used for register renaming.
11565         (s390_hard_regno_scratch_ok): New function.
11566         (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
11567         (s390_initial_elimination_offset): Change offset calculation of
11568         the return address pointer.
11569         (save_gprs): Deal with only r6 being saved from the call-saved regs.
11570         (restore_gprs): Set frame related flag.
11571         (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New functions.
11572         (s390_emit_prologue): Call s390_register_info instead of
11573         s390_update_frame_layout.  Call s390_save_gprs_to_fprs.
11574         (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
11575         (s390_optimize_prologue): Call s390_optimize_register_info.
11576         Try to remove also FPR slot save/restore INSNs.  Remove frame
11577         related flags from restore INSNs.
11579 2013-10-08  DJ Delorie  <dj@redhat.com>
11581         * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
11582         (movhi): Likewise.
11584         * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
11585         avoid conflict with the MI use of %c.
11586         * config/rl78/rl78-real.md: change %c to %C throughout.
11587         * config/rl78/rl78-virt.md: Likewise.
11589 2013-10-08  Jan Hubicka  <jh@suse.cz>
11591         * config/i386/i386.c (ix86_option_override_internal): Switch
11592         to SSE math for -ffast-math when target ISA supports SSE2.
11594 2013-10-08  Andrew MacLeod  <amacleod@redhat.com>
11596         * tree-flow.h: Remove some prototypes.
11597         * tree.h: Remove some protypes, add a couple.
11598         * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
11599         using_eh_for_cleanups_p): Add interface routines for front ends.
11600         * tree-eh.h: New file.  Add protoptyes.
11601         * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
11602         (add_stmt_to_eh_lp_fn): Make static.
11603         (lower_try_finally): Use new using_eh_for_cleanups_p.
11604         * emit-rtl.c: Include tree-eh.h.
11605         * gimple.h: Include tree-eh.h.
11607 2013-10-08  Marc Glisse  <marc.glisse@inria.fr>
11609         PR tree-optimization/58480
11610         * tree-vrp.c (infer_nonnull_range): New function.
11611         (infer_value_range): Call infer_nonnull_range.
11613 2013-10-08  Dehao Chen  <dehao@google.com>
11615         PR tree-optimization/58619
11616         * tree-inline.c (copy_phis_for_bb): Combine location data
11617         only if non-null.
11619 2013-10-08  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
11621         PR target/58423
11622         * config/arm/arm.c (arm_emit_ldrd_pop): Attach
11623         RTX_FRAME_RELATED_P on INSN.
11625 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11627         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
11628         (altivec_expand_vec_perm_const): Call it.
11630 2013-10-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11632         * config/rs6000/vector.md (mov<mode>): Emit permuted move
11633         sequences for LE VSX loads and stores at expand time.
11634         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
11635         prototype.
11636         * config/rs6000/rs6000.c (rs6000_const_vec): New.
11637         (rs6000_gen_le_vsx_permute): New.
11638         (rs6000_gen_le_vsx_load): New.
11639         (rs6000_gen_le_vsx_store): New.
11640         (rs6000_gen_le_vsx_move): New.
11641         * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
11642         (*vsx_le_perm_load_v4si): New.
11643         (*vsx_le_perm_load_v8hi): New.
11644         (*vsx_le_perm_load_v16qi): New.
11645         (*vsx_le_perm_store_v2di): New.
11646         (*vsx_le_perm_store_v4si): New.
11647         (*vsx_le_perm_store_v8hi): New.
11648         (*vsx_le_perm_store_v16qi): New.
11649         (*vsx_xxpermdi2_le_<mode>): New.
11650         (*vsx_xxpermdi4_le_<mode>): New.
11651         (*vsx_xxpermdi8_le_V8HI): New.
11652         (*vsx_xxpermdi16_le_V16QI): New.
11653         (*vsx_lxvd2x2_le_<mode>): New.
11654         (*vsx_lxvd2x4_le_<mode>): New.
11655         (*vsx_lxvd2x8_le_V8HI): New.
11656         (*vsx_lxvd2x16_le_V16QI): New.
11657         (*vsx_stxvd2x2_le_<mode>): New.
11658         (*vsx_stxvd2x4_le_<mode>): New.
11659         (*vsx_stxvd2x8_le_V8HI): New.
11660         (*vsx_stxvd2x16_le_V16QI): New.
11662 2013-10-07  Renlin Li  <Renlin.Li@arm.com>
11664         * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
11666 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11668         * config/s390/s390.c (s390_register_info): Make the call-saved FPR
11669         loop to work also for 31bit ABI.
11670         Save the stack pointer for frame_size > 0.
11672 2013-10-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11674         * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
11675         ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
11676         constraint letters from expanders.
11677         ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
11678         retry count to general_operand.
11679         ("tabort"): Give operand 0 a mode.
11680         ("tabort_1"): Add mode and constraint letter for operand 0.
11681         * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
11683 2013-10-04  Jeff Law  <law@redhat.com>
11685         * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
11687         * tree-ssa-threadedge.c (thread_through_normal_block): Broken
11688         out of ...
11689         (thread_across_edge): Here.  Call it.
11691 2013-10-04  Cary Coutant  <ccoutant@google.com>
11693         * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
11694         discarding a location list expression (or a piece of one).
11696 2013-10-03  Jan Hubicka  <jh@suse.cz>
11698         * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
11699         rate of 2.  Core2, Corei7 and Haswell has issue rate of 4.
11700         (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
11702 2013-10-03  Jan Hubicka  <jh@suse.cz>
11704         * config/i386/i386.c (ix86_option_override_internal): Do not enable
11705         accumulate-outgoing-args when producing unwind info.
11707 2013-10-03  Wei Mi  <wmi@google.com>
11709         * lra-constraints.c (insert_move_for_subreg): New function
11710         extracted from simplify_operand_subreg.
11711         (simplify_operand_subreg): Add reload for paradoxical subreg.
11713 2013-10-03  Rong Xu  <xur@google.com>
11715         * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
11716         the candidate of builtin_expect such that we should fix the
11717         size/time estimation.
11718         (estimate_function_body_sizes): Do the acutally size/time fix-up
11719         for builtin_expect.
11721 2013-10-03  Rong Xu  <xur@google.com>
11723         * predict.c (tree_predict_by_opcode): Get the probability
11724         for builtin_expect from param builtin_expect_probability.
11725         * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
11726         * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
11727         * doc/invoke.texi: Add documentation for builtin-expect-probability.
11729 2013-10-03  Marc Glisse  <marc.glisse@inria.fr>
11731         PR c++/19476
11732         * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
11733         * calls.c (alloca_call_p): Use get_callee_fndecl.
11734         * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
11735         * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
11736         Likewise.
11737         (vrp_visit_stmt): Remove duplicated code.
11739 2013-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
11741         * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
11742         ceildf2, btruncdf2, instead of vsx_* name.
11744         * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
11745         iterators to only do V2DF and V4SF here.  Move the DF code to
11746         rs6000.md where it is combined with SF mode.  Replace <VSv> with
11747         just 'v' since only vector operations are handled with these insns
11748         after moving the DF support to rs6000.md.
11749         (vsx_sub<mode>3): Likewise.
11750         (vsx_mul<mode>3): Likewise.
11751         (vsx_div<mode>3): Likewise.
11752         (vsx_fre<mode>2): Likewise.
11753         (vsx_neg<mode>2): Likewise.
11754         (vsx_abs<mode>2): Likewise.
11755         (vsx_nabs<mode>2): Likewise.
11756         (vsx_smax<mode>3): Likewise.
11757         (vsx_smin<mode>3): Likewise.
11758         (vsx_sqrt<mode>2): Likewise.
11759         (vsx_rsqrte<mode>2): Likewise.
11760         (vsx_fms<mode>4): Likewise.
11761         (vsx_nfma<mode>4): Likewise.
11762         (vsx_copysign<mode>3): Likewise.
11763         (vsx_btrunc<mode>2): Likewise.
11764         (vsx_floor<mode>2): Likewise.
11765         (vsx_ceil<mode>2): Likewise.
11766         (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
11767         (vsx_sminsf3): Likewise.
11768         (vsx_fmadf4): Likewise.
11769         (vsx_fmsdf4): Likewise.
11770         (vsx_nfmadf4): Likewise.
11771         (vsx_nfmsdf4): Likewise.
11772         (vsx_cmpdf_internal1): Likewise.
11774         * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
11775         simpler to select whether a target has SPE or traditional floating
11776         point support in iterators.
11777         (TARGET_DF_SPE): Likewise.
11778         (TARGET_SF_FPR): Likewise.
11779         (TARGET_DF_FPR): Likewise.
11780         (TARGET_SF_INSN): Macros to say whether floating point support
11781         exists for a given operation for expanders.
11782         (TARGET_DF_INSN): Likewise.
11784         * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
11785         combining of SF/DF mode operations, using both traditional and VSX
11786         registers.
11787         (Fvsx): Likewise.
11788         (Ff): Likewise.
11789         (Fv): Likewise.
11790         (Fs): Likewise.
11791         (Ffre): Likewise.
11792         (FFRE): Likewise.
11793         (abs<mode>2): Combine SF/DF modes using traditional floating point
11794         instructions.  Add support for using the upper DF registers with
11795         VSX support, and SF registers with power8-vector support.  Update
11796         expanders for operations supported by both the SPE and traditional
11797         floating point units.
11798         (abs<mode>2_fpr): Likewise.
11799         (nabs<mode>2): Likewise.
11800         (nabs<mode>2_fpr): Likewise.
11801         (neg<mode>2): Likewise.
11802         (neg<mode>2_fpr): Likewise.
11803         (add<mode>3): Likewise.
11804         (add<mode>3_fpr): Likewise.
11805         (sub<mode>3): Likewise.
11806         (sub<mode>3_fpr): Likewise.
11807         (mul<mode>3): Likewise.
11808         (mul<mode>3_fpr): Likewise.
11809         (div<mode>3): Likewise.
11810         (div<mode>3_fpr): Likewise.
11811         (sqrt<mode>3): Likewise.
11812         (sqrt<mode>3_fpr): Likewise.
11813         (fre<Fs>): Likewise.
11814         (rsqrt<mode>2): Likewise.
11815         (cmp<mode>_fpr): Likewise.
11816         (smax<mode>3): Likewise.
11817         (smin<mode>3): Likewise.
11818         (smax<mode>3_vsx): Likewise.
11819         (smin<mode>3_vsx): Likewise.
11820         (negsf2): Delete SF operations that are merged with DF.
11821         (abssf2): Likewise.
11822         (addsf3): Likewise.
11823         (subsf3): Likewise.
11824         (mulsf3): Likewise.
11825         (divsf3): Likewise.
11826         (fres): Likewise.
11827         (fmasf4_fpr): Likewise.
11828         (fmssf4_fpr): Likewise.
11829         (nfmasf4_fpr): Likewise.
11830         (nfmssf4_fpr): Likewise.
11831         (sqrtsf2): Likewise.
11832         (rsqrtsf_internal1): Likewise.
11833         (smaxsf3): Likewise.
11834         (sminsf3): Likewise.
11835         (cmpsf_internal1): Likewise.
11836         (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
11837         (negdf2): Delete DF operations that are merged with SF.
11838         (absdf2): Likewise.
11839         (nabsdf2): Likewise.
11840         (adddf3): Likewise.
11841         (subdf3): Likewise.
11842         (muldf3): Likewise.
11843         (divdf3): Likewise.
11844         (fred): Likewise.
11845         (rsqrtdf_internal1): Likewise.
11846         (fmadf4_fpr): Likewise.
11847         (fmsdf4_fpr): Likewise.
11848         (nfmadf4_fpr): Likewise.
11849         (nfmsdf4_fpr): Likewise.
11850         (sqrtdf2): Likewise.
11851         (smaxdf3): Likewise.
11852         (smindf3): Likewise.
11853         (cmpdf_internal1): Likewise.
11854         (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
11855         (btrunc<mode>2): Delete separate expander, and combine with the
11856         insn and add VSX instruction support.  Use TARGET_<MODE>_FPR.
11857         (btrunc<mode>2_fpr): Likewise.
11858         (ceil<mode>2): Likewise.
11859         (ceil<mode>2_fpr): Likewise.
11860         (floor<mode>2): Likewise.
11861         (floor<mode>2_fpr): Likewise.
11862         (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
11863         Add support for using the upper registers with VSX and
11864         power8-vector.  Move insns to be closer to the define_expands. On
11865         VSX systems, prefer the traditional form of FMA over the VSX
11866         version, since the traditional form allows the target not to
11867         overlap with the inputs.
11868         (fms<mode>4_fpr): Likewise.
11869         (nfma<mode>4_fpr): Likewise.
11870         (nfms<mode>4_fpr): Likewise.
11872 2013-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11873             Richard Earnshaw  <richard.earnshaw@arm.com>
11875         * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
11876         (struct mult_cost_table): Likewise.
11877         (struct mem_cost_table): Likewise.
11878         (struct fp_cost_table): Likewise.
11879         (struct vector_cost_table): Likewise.
11880         (cpu_cost_table): Likewise.
11881         * config/arm/arm.opt (mold-rts-costs): New option.
11882         (mnew-generic-costs): Likewise.
11883         * config/arm/arm.c (generic_extra_costs): New table.
11884         (cortexa15_extra_costs): Likewise.
11885         (arm_slowmul_tune): Use NULL as new costs.
11886         (arm_fastmul_tune): Likewise.
11887         (arm_strongarm_tune): Likewise.
11888         (arm_xscale_tune): Likewise.
11889         (arm_9e_tune): Likewise.
11890         (arm_v6t2_tune): Likewise.
11891         (arm_cortex_a5_tune): Likewise.
11892         (arm_cortex_a9_tune): Likewise.
11893         (arm_v6m_tune): Likewise.
11894         (arm_fa726te_tune): Likewise.
11895         (arm_cortex_a15_tune): Use cortex15_extra_costs.
11896         (arm_cortex_tune): Use generict_extra_costs.
11897         (shifter_op_p): New function.
11898         (arm_unspec_cost): Likewise.
11899         (LIBCALL_COST): Define.
11900         (arm_new_rtx_costs): New function.
11901         (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
11902         table is available. Use old costs otherwise unless mnew-generic-costs
11903         is specified.
11904         * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
11905         (cpu_cost_table): Declare.
11907 2013-10-03  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11909         PR target/58460
11910         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
11911         (*subs_mul_imm_<mode>)
11912         (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
11913         (*sub_<shift>_<mode>)
11914         (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
11915         Remove k constraint.
11917 2013-10-03  Ian Bolton  <ian.bolton@arm.com>
11919         * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
11920         code.
11921         * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
11923 2013-10-02  Teresa Johnson  <tejohnson@google.com>
11925         * predict.c (probably_never_executed): New function.
11926         (probably_never_executed_bb_p): Invoke probably_never_executed.
11927         (probably_never_executed_edge_p): Ditto.
11928         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
11929         Treat profile insanities conservatively.
11931 2013-10-02  John David Anglin  <danglin@gcc.gnu.org>
11933         * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
11935 2013-10-02  Vladimir Makarov  <vmakarov@redhat.com>
11937         * lra-constraints.c (process_alt_operand): Calculate scratch_p and
11938         use it.  Use smaller increase for scratch.  Don't increase reject
11939         for early clobber scratch.
11940         * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
11941         setting eliminated regs except setting fp from hfp.
11942         (lra_eliminate): Check lra_insn_recog_data on NULL.
11944 2013-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
11946         PR target/58587
11947         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
11948         setting -mvsx-timode by default until the underlying problem is fixed.
11949         (RS6000_CPU, power7 defaults): Likewise.
11951 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
11953         * config/x-linux (host-linux.o): Remove header dependencies.
11954         Use $(COMPILE) and $(POSTCOMPILE).
11955         * config/t-linux-android (linux-android.o): Ditto.
11957 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
11959         * Makefile.in (expmed.o-warn): Remove.
11961 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
11963         * graphite-scop-detection.c: Include tree-ssa-propagate,h.
11964         * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
11966 2013-10-02  Teresa Johnson  <tejohnson@google.com>
11968         * dojump.c (do_jump_1): Divide probability between
11969         both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
11971 2013-10-02  Tom Tromey  <tromey@redhat.com>
11973         * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
11975 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
11977         * tree-flow.h: Remove some prototypes.
11978         * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
11979         mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
11980         * tree-into-ssa.c (mark_virtual_operand_for_renaming,
11981         mark_virtual_phi_result_for_renaming): Relocate here.
11982         * tree-into-ssa.h: Add prototypes.
11983         * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
11984         single_pred_before_succ_order.
11985         (blocks_in_phiopt_order): Rename and move to cfganal.c.
11986         (nonfreeing_call_p) Move to gimple.c.
11987         * cfganal.c (single_pred_before_succ_order): Move and renamed from
11988         tree-ssa-phiopt.c.
11989         * basic-block.h (single_pred_before_succ_order): Add prototype.
11990         * gimple.c (nonfreeing_call_p): Relocate here.
11991         * gimple.h: Add prototype.
11992         * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
11993         * tree-ssa-dom.h: New file.  Relocate prototypes here.
11994         * tree-ssa.h: Include tree-ssa-dom.h.
11996 2013-10-02  Uros Bizjak  <ubizjak@gmail.com>
11998         * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
11999         Use $(COMPILE) and $(POSTCOMPILE).
12001         * config/alpha/x-alpha (driver-alpha.o): Ditto.
12003 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12005         * tree-flow.h: Remove some prototypes.
12006         * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
12007         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12008         * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
12009         propagate_tree_value*): Move from here to...
12010         * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
12011         propagate_tree_value*): Relocate here.
12012         * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
12013         * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
12014         * gimple-fold.c: Remove gimple-fold.h from include list.
12015         * tree-vrp.c: Remove gimple-fold.h from include list.
12016         * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
12017         * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
12018         * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
12019         * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
12020         * sese.c: Add tree-ssa-propagate.h to include list.
12022 2013-10-02  Richard Biener  <rguenther@suse.de>
12024         * tree-loop-distribution.c: Include tree-vectorizer.h for
12025         find_loop_location.
12026         (enum partition_kind): Remove PKIND_REDUCTION.
12027         (struct partition_s): Remove has_writes member, add reduction_p member.
12028         (partition_alloc): Adjust.
12029         (partition_builtin_p): Likewise.
12030         (partition_has_writes): Remove.
12031         (partition_reduction_p): New function.
12032         (partition_merge_into): Likewise.
12033         (generate_code_for_partition): Commonize builtin partition
12034         handling tail.
12035         (rdg_cannot_recompute_vertex_p): Remove.
12036         (already_processed_vertex_p): Likewise.
12037         (rdg_flag_vertex): Do not set has_writes.
12038         (classify_partition): Adjust.
12039         (rdg_build_partitions): Do not set has_writes, treat all
12040         partitions as useful.
12041         (distribute_loop): Record number of library calls generated.  Adjust.
12042         (tree_loop_distribution): Report number of loops and library
12043         calls generated as opt-info.
12045 2013-10-02  Andrew MacLeod  <amacleod@redhat.com>
12047         * tree-flow.h: Include new .h files.  Move prototypes.
12048         * tree-cfgcleanup.h: New file.  Add prototypes from tree-flow.h.
12049         * tree-dfa.h: New File.  Add prototypes from tree-flow.h.
12050         (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
12051         * tree-pretty-print.h: Add prototypes from tree-flow.h.
12052         * tree-into-ssa.h: New File.  Add prototypes from tree-flow.h.
12053         ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
12054         * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
12055         * tree.h (get_ref_base_and_extent): Move prototype out.
12056         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
12057         tree-dfa.h.
12058         * gimple-low.h: New File.  Add prototypes from tree-flow.h.
12059         * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
12060         * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
12061         * tree-scalar-evolution.c: Include tree.h.
12062         * sese.c: Include tree.h.
12063         * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
12064         * dwarf2out.c: Include tree-dfa.h.
12065         * tree-chrec.c: Include tree.h.
12066         * tree-data-ref.c: Include tree.h.
12068 2013-10-02  Yufeng Zhang  <yufeng.zhang@arm.com>
12070         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
12071         Fix whitespace.
12073 2013-10-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12075         * config/t-sol2 (sol2-c.o): Remove header dependencies.
12076         Use $(COMPILE) and $(POSTCOMPILE).
12077         (sol2-cxx.o): Likewise.
12078         (sol2-stubs.o): Likewise.
12079         (sol2.o): Likewise.
12080         * config/x-solaris (host-solaris.o): Likewise.
12082         * config/sparc/t-sparc (sparc.o): Remove.
12083         (sparc-c.o): Remove header dependencies.
12084         Use $(COMPILE) and $(POSTCOMPILE).
12085         * config/sparc/x-sparc: Likewise.
12087 2013-10-02  Joern Rennecke  <joern.rennecke@embecosm.com>
12089         * config/arc/arc-opts.h: Add 2013 to Copyright years.
12090         * config/arc/arc700.md: Likewise.
12091         * config/arc/arc-modes.def: Likewise.
12092         * config/arc/arc-simd.h: Likewise.
12093         * config/arc/t-arc-uClibc: Likewise.
12094         * config/arc/t-arc-newlib: Likewise.
12096 2013-10-02  Renlin Li  <renlin.li@arm.com>
12098         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
12099         plus_constant.
12100         (aarch64_expand_epilogue): Likewise.
12102 2013-10-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12103             Yufeng Zhang  <yufeng.zhang@arm.com>
12105         * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
12106         declaration.
12107         (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
12108         'base_in' represent a conversion and legal_cast_p_1 holds; set
12109         'base_in' with the returned value from get_unwidened.
12111 2013-10-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12113         * config/arm/arm.c (arm_legitimize_reload_address): Explain why
12114         plus_constant is not used.
12116 2013-10-01  Wei Mi  <wmi@google.com>
12118         * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
12119         * config/i386/i386.md: Add define_peephole2 to
12120         break partial reg stall for cvtss2sd/cvtsd2ss.
12122 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12124         * config/arc/arc.c (pass_arc_ifcvt::clone):
12125         Update for ctxt_ -> m_ctxt change.
12127 2013-10-01  Jeff Law  <law@redhat.com>
12129         * tree-ssa-threadupdate.c (struct redirection_data): Delete
12130         outgoing_edge and intermediate_edge fields.  Instead store the path.
12131         (redirection_data::hash): Hash on the last edge's destination index.
12132         (redirection_data::equal): Check the entire thread path.
12133         (lookup_redirectio_data): Corresponding changes.
12134         (create_edge_and_update_destination_phis): Likewise.
12135         (thread_single_edge): Likewise.
12137 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12138             Diego Novillo <dnovillo@google.com>
12140         * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
12141         (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
12142         (vld32wh_insn, vld32wl_insn): Delete commented-out old
12143         versions of these patterns.
12145         * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
12146         (__builtin_arc_aligned): Likewise.
12148         * config/arc/arc.md: Expand adc_0 comment stating the intended
12149         purpose and why it isn't ready.
12150         Replace commented out call_value_via_label_mixed with a
12151         plain comment about bl_s.
12153         * config/arc/arc.c (stdio.h): Don't include directly.
12154         (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
12155         Remove if (1) condition.
12156         (arc_encode_section_info): Fix comment.
12158 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12160         * config/arc/arc.c (arc_conditional_register_usage):
12161         Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
12162         Also set reg_alloc_order for DMA config regs.
12164 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12165             Jeremy Bennett  <jeremy.bennett@embecosm.com>
12167         * doc/install.texi (--with-cpu): Mention ARC.
12168         (arc-*-elf32): New paragraph.
12169         (arc-linux-uclibc): Likewise.
12170         * doc/md.texi (Machine Constraints): Add ARC part.
12171         * doc/invoke.texi: (menu): Add ARC Options.
12172         (Machine Dependent Options) <ARC Options>: Add synopsis.
12173         (node ARC Options): Add.
12174         * doc/extend.texi (long_call / short_call attribute): Add ARC.
12175         (ARC Built-in Functions): New section defining
12176         generic ARC built-in functions.
12177         (ARC SIMD Built-in Functions): New section defining SIMD specific
12178         built-in functions.
12179         (Declaring Attributes of Functions): Extended
12180         description of short_call and long_call attributes for ARC and
12181         added index entries.
12183 2013-10-01  Saurabh Verma  <saurabh.verma@codito.com>
12184             Ramana Radhakrishnan  <ramana.radhakrishnan@codito.com>
12185             Joern Rennecke  <joern.rennecke@embecosm.com>
12186             Muhammad Khurram Riaz  <khurram.riaz@arc.com>
12187             Brendan Kehoe  <brendan@zen.org>
12188             Michael Eager  <eager@eagercon.com>
12189             Simon Cook  <simon.cook@embecosm.com>
12190             Jeremy Bennett  <jeremy.bennett@embecosm.com>
12192         * config/arc, common/config/arc: New directories.
12194 2013-10-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12195             Brendan Kehoe  <brendan@zen.org>
12196             Simon Cook  <simon.cook@embecosm.com>
12198         * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
12200 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
12202         * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
12203         * tree-ssa-coalesce.h: New. Move prototype to here.
12204         * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
12205         * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
12206         (gimple_can_coalesce_p): Move to...
12207         * gimple.c (gimple_can_coalesce_p): Here.
12209 2013-10-01  Andrew MacLeod  <amacleod@redhat.com>
12211         * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
12212         (dump_decl_set): Move to gimple.c.
12213         * gimple.h: Don't include tree-ssa-operands.h.
12214         (dump_decl_set): Add prototype.
12215         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12216         Move to gimple-ssa.h.
12217         (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
12218         gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
12219         gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
12220         gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
12221         * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
12222         than PHI_ARG_DEF.
12223         (dump_decl_set): Relocate here.
12224         * gimple-ssa.h: New file.
12225         (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
12226         Relocate from gimple.h.
12227         * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
12228         * tree-ssa-operands.c (swap_ssa_operands): Rename from
12229         swap_tree_operands and remove non-ssa path.
12230         (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
12231         * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
12232         swap_ssa_operands.
12233         * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
12234         vect_is_simple_reduction_1): Use swap_ssa_operands.
12235         * tree-flow.h: Move various prototypes to tree-phinodes.h.
12236         (enum need_phi_state): Move to tree-into-ssa.c.
12237         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12238         BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
12239         (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
12240         * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
12241         link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12242         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12243         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12244         num_imm_uses): Move to ssa-iterators.h.
12245         (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
12246         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
12247         tree-phinodes.h.
12248         (op_iter_done, op_iter_next_def, op_iter_next_tree,
12249         clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
12250         op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
12251         single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
12252         num_ssa_operands, delink_stmt_imm_use, single_phi_def,
12253         op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
12254         end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
12255         first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
12256         end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
12257         (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
12258         gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
12259         gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
12260         phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
12261         (set_phi_nodes): Move to tree-phinodes.h.
12262         * tree-ssa-operands.h (enum ssa_op_iter_type,
12263         struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
12264         ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
12265         (dump_decl_set): Remove prototype.
12266         (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
12267         * tree-phinodes.h: New file.  Move some prototypes from tree-flow.h.
12268         (set_phi_nodes): Relocate from tree-flow-inline.h.
12269         (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
12270         tree-flow-inline.h
12271         * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
12272         include list.  Temporarily add gimple.h to include list.
12273         * ssa-iterators.h: New file.
12274         (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
12275         BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
12276         (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
12277         FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
12278         Relocate from tree-ssa-operands.h.
12279         (delink_imm_use, link_imm_use_to_list, link_imm_use,
12280         set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
12281         relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
12282         next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
12283         num_imm_uses, get_use_from_ptr, get_def_from_ptr,
12284         phi_arg_index_from_use, op_iter_done, op_iter_next_def,
12285         op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
12286         op_iter_init_use, op_iter_init_def, op_iter_init_tree,
12287         single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
12288         zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
12289         single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
12290         end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
12291         link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
12292         first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
12293         Relocate from tree-flow-inline.h.
12294         * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
12296 2013-10-01  Vidya Praveen  <vidyapraveen@arm.com>
12298         * aarch64-simd.md
12299         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
12300         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
12301         Insert '\t' to output template.
12302         (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
12303         (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
12304         gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
12305         (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
12307 2013-10-01  Uros Bizjak  <ubizjak@gmail.com>
12309         * doc/install.texi (Host/target specific installation notes for GCC):
12310         Put @anchor before @heading.
12311         * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
12312         Use @email for email addresses.
12314 2013-10-01  Jeff Law  <law@redhat.com>
12316         * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
12317         a vec.  Only delete the path if we create one without successfully
12318         registering a jump thread.
12319         * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
12320         as a pointer.
12321         * tree-ssa-threadupdate.c (threaded_edges): Remove.  No longer used
12322         (paths): New vector of jump threading paths.
12323         (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
12324         (THREAD_PATH): New accessor macro for the entire thread path.
12325         (lookup_redirection_data): Get intermediate and final outgoing edge
12326         from the thread path.
12327         (create_edge_and_update_destination_phis): Copy the threading path.
12328         (ssa_fix_duplicate_block_edges): Get edges and block types from the
12329         jump threading path.
12330         (ssa_redirect_edges): Get edges and block types from the jump threading
12331         path.  Free the path vector.
12332         (thread_block): Get edges from the jump threading path.  Look at the
12333         entire path to see if we thread to a loop exit.  If we cancel a jump
12334         thread request, then free the path vector.
12335         (thread_single_edge): Get edges and block types from the jump threading
12336         path.  Free the path vector.
12337         (thread_through_loop_header): Get edges and block types from the jump
12338         threading path.  Free the path vector.
12339         (mark_threaded_blocks): Iterate over the vector of paths and store
12340         the path on the appropriate edge.  Get edges and block types from the
12341         jump threading path.
12342         (mark_threaded_blocks): Get edges and block types from the jump
12343         threading path.  Free the path vector.
12344         (thread_through_all_blocks): Use the vector of paths rather than
12345         a vector of 3-edge sets.
12346         (register_jump_thread): Accept pointer to a path vector rather
12347         than the path vector itself.  Store the path vector for later use.
12348         Simplify.
12350 2013-10-01  Jakub Jelinek  <jakub@redhat.com>
12351             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12353         PR target/58574
12354         * config/s390/s390.c (s390_split_branches): Modify check for table
12355         jump insns.
12356         (s390_chunkify_start): Rearrange table jump insn check in order to
12357         deal with compare and branch insns correctly.
12359 2013-10-01  Kugan Vivekanandarajah  <kuganv@linaro.org>
12361         PR target/58578
12362         Revert
12363         2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
12364         * config/arm/arm.md (arm_ashldi3_1bit):  define_insn into
12365         define_insn_and_split.
12366         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
12367         (shiftsi3_compare): New pattern.
12368         (rrx): New pattern.
12369         * config/arm/unspecs.md (UNSPEC_RRX): New.
12371 2013-10-01  Alan Modra  <amodra@gmail.com>
12373         * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
12374         casing inout operands.
12376 2013-10-01  Richard Biener  <rguenther@suse.de>
12378         PR tree-optimization/58553
12379         * tree-loop-distribution.c (struct partition_s): Add niter member.
12380         (classify_partition): Populate niter member for the partition
12381         and properly identify whether the relevant store happens before
12382         or after the loop exit.
12383         (generate_memset_builtin): Use niter member from the partition.
12384         (generate_memcpy_builtin): Likewise.
12386 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
12388         * vec.h (vec_prefix, vec): Prefix member names with "m_".
12389         * vec.c (vec_prefix::calculate_allocation): Update accordingly.
12391 2013-09-30  Richard Sandiford  <rdsandiford@googlemail.com>
12393         * basic-block.h (edge_list): Prefix member names with "m_".
12394         * context.h (context): Likewise.
12395         * domwalk.h (dom_walker): Likewise.
12396         * gengtype-state.c (s_expr_writer, state_writer): Likewise.
12397         * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
12398         * hash-table.h (hash_table): Likewise.
12399         * machmode.h (bit_field_mode_iterator): Likewise.
12400         * pass_manager.h (pass_list): Likewise.
12401         * tree-into-ssa.c (mark_def_dom_walker): Likewise.
12402         * tree-pass.h (pass_data): Likewise.
12403         * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
12404         * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
12405         * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
12406         * asan.c (pass_data_asan): Update accordingly.
12407         * cfganal.c (control_dependences::find_control_dependence): Likewise.
12408         (control_dependences::control_dependences): Likewise.
12409         (control_dependences::~control_dependences): Likewise.
12410         (control_dependences::~control_dependences): Likewise.
12411         (control_dependences::get_edges_dependent_on): Likewise.
12412         * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
12413         (pass_data_remove_cgraph_callee_edges::clone): Likewise.
12414         * context.c (gcc::context::context): Likewise.
12415         * cprop.c (pass_rtl_cprop::clone): Likewise.
12416         * domwalk.c (dom_walker::walk): Likewise.
12417         * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
12418         * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
12419         * mode-switching.c (pass_mode_switching::clone): Likewise.
12420         * passes.c (opt_pass::opt_pass): Likewise.
12421         (pass_manager::pass_manager): Likewise.
12422         * predict.c (pass_strip_predict_hints::clone): Likewise.
12423         * recog.c (pass_data pass_data_peephole2::clone): Likewise.
12424         (pass_split_all_insns::clone): Likewise.
12425         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
12426         Likewise.
12427         (bit_field_mode_iterator::next_mode): Likewise.
12428         (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
12429         * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
12430         * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
12431         * tree-complex.c (pass_lower_complex::clone): Likewise.
12432         * tree-eh.c (pass_cleanup_eh::clone): Likewise.
12433         * tree-object-size.c (pass_object_sizes::clone): Likewise.
12434         * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
12435         * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
12436         (pass_fold_builtins::clone): Likewise.
12437         * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
12438         * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
12439         * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
12440         (pass_cd_dce::clone): Likewise.
12441         * tree-ssa-dom.c (pass_dominator::clone): Likewise.
12442         (pass_phi_only_cprop::clone): Likewise.
12443         * tree-ssa-dse.c (pass_dse::clone): Likewise.
12444         * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
12445         * tree-ssa-loop.c (pass_lim::clone): Likewise.
12446         * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
12447         * tree-ssa-pre.c (pass_fre::clone): Likewise.
12448         * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
12449         * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
12450         * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
12451         * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
12452         * tree-vrp.c (pass_vrp::clone): Likewise.
12453         * tsan.c (pass_tsan::clone): Likewise.
12455 2013-09-30  Jakub Jelinek  <jakub@redhat.com>
12457         PR middle-end/58564
12458         * fold-const.c (tree_unary_nonnegative_warnv_p): Use
12459         INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
12461         PR middle-end/58564
12462         * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
12463         optimization, punt if sign_bit_p looked through any zero extension.
12465 2013-09-30  Teresa Johnson  <tejohnson@google.com>
12467         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
12468         Update redirected out edge count in joiner case.
12469         (ssa_redirect_edges): Common the joiner and non-joiner cases
12470         so that joiner case gets profile updates.
12472 2013-09-30  Richard Biener  <rguenther@suse.de>
12474         PR tree-optimization/58554
12475         * tree-loop-distribution.c (classify_partition): Require
12476         unconditionally executed stores for memcpy and memset recognition.
12477         (tree_loop_distribution): Calculate dominance info.
12479 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
12481         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
12482         (NO_PROFILE_COUNTERS): Likewise.
12483         (PROFILE_HOOK): Likewise.
12484         (FUNCTION_PROFILER): Likewise.
12485         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
12487 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
12489         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
12490         calls and defines in TARGET_MACHO conditional.
12491         (load_macho_picbase_di): Likewise.
12492         (reload_macho_picbase): Likewise.
12493         (reload_macho_picbase_si): Likewise.
12494         (reload_macho_picbase_di): Likewise.
12495         (nonlocal_goto_receiver): Likewise.
12497 2013-09-30  Nick Clifton  <nickc@redhat.com>
12499         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
12500         that use the MSP430X ISA.
12501         (msp430_option_override): Scan -mmcu command line option for any
12502         MCU name that supports the MSP430X ISA.
12503         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
12504         -mmcu options which enable the MSP430X ISA.
12506 2013-09-30  Richard Biener  <rguenther@suse.de>
12508         PR middle-end/58532
12509         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
12510         before looking for setjmp-like calls.
12512 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
12514         PR target/10901
12515         * config/darwin-protos.h (machopic_get_function_picbase): New.
12516         * config/darwin.c (machopic_get_function_picbase): New.
12517         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
12518         label for a new func.  (load_macho_picbase_di): Likewise.
12519         (reload_macho_picbase): New expand.
12520         (reload_macho_picbase_si): New insn.
12521         (reload_macho_picbase_di): New insn.
12522         (nonlocal_goto_receiver): New define and split.
12523         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
12524         (unspecv enum): Add UNSPECV_NLGR.
12526 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
12528         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
12529         that altivec registers are correctly sized on Darwin.
12531 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
12533         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
12534         darwin-driver.o): Use COMPILE and POSTCOMPILE.
12535         * config/x-darwin (host-darwin.o): Likewise.
12536         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
12537         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
12538         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
12540 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
12542         * doc/invoke.texi: Fix usage of @tie{} command.
12544 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
12546         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
12548 2013-09-28  Jan Hubicka  <jh@suse.cz>
12550         * config/i386/x86-tune.def: Add documentation for each of the options;
12551         add whitespace.
12553 2013-09-28  Jan Hubicka  <jh@suse.cz>
12555         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
12556         generic.
12557         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
12558         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
12559         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
12560         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
12561         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
12563 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
12565         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
12566         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
12567         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
12568         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
12569         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
12570         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
12571         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
12572         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
12573         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
12574         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
12575         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
12576         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
12577         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
12578         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
12579         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
12580         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
12581         gimple.h, godump.c, graphite-clast-to-gimple.c,
12582         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
12583         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
12584         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
12585         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
12586         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
12587         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
12588         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
12589         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
12590         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
12591         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
12592         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
12593         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
12594         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
12595         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
12596         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
12597         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
12598         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
12599         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
12600         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
12601         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
12602         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
12603         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
12604         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
12605         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
12606         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
12607         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12608         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
12609         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
12610         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
12611         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
12612         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
12613         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
12614         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
12615         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
12616         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
12617         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
12618         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
12619         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
12620         whitespace before "(".
12622 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
12624         * expr.h (extract_bit_field): Remove packedp parameter.
12625         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
12626         from forward declaration.
12627         (store_split_bit_field): Remove packedp arg from calls to
12628         extract_fixed_bit_field.
12629         (extract_bit_field_1): Remove packedp parameter and packedp
12630         argument from recursive calls and calls to extract_fixed_bit_field.
12631         (extract_bit_field): Remove packedp parameter and corresponding
12632         arg to extract_bit_field_1.
12633         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
12634         to issue warnings.
12635         (extract_split_bit_field): Remove packedp arg from call to
12636         extract_fixed_bit_field.
12637         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
12638         (copy_blkmode_from_reg): Likewise.
12639         (copy_blkmode_to_reg): Likewise.
12640         (read_complex_part): Likewise.
12641         (store_field): Likewise.
12642         (expand_expr_real_1): Likewise.
12643         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
12644         to extract_bit_field.
12645         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
12646         call to extract_bit_field.
12647         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
12648         call to extract_bit_field.
12649         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
12650         and special packedp behavior from -fstrict-volatile-bitfields
12651         documentation.
12653 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12655         * lra-eliminations.c (init_elim_table): Guard value_p.
12657 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
12659         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
12660         DFmode, DImode, and SFmode in the upper VSX registers based on the
12661         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
12662         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
12663         of the VSX register handling.
12665         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
12666         (f32_sv): Likewise.
12667         (zero_extendsidi2_lfiwzx): Add support for loading into the
12668         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
12669         only do VSX memory options on Altivec registers.
12670         (extendsidi2_lfiwax): Likewise.
12671         (extendsfdf2_fpr): Likewise.
12672         (mov<mode>_hardfloat, SF/SD modes): Likewise.
12673         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
12674         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
12675         (movdi_internal64): Likewise.
12677 2013-09-27  Xinliang David Li  <davidxl@google.com>
12679         * opts.c (finish_options): Adjust parameters
12680         according to vect cost model.
12681         (common_handle_option): Set dynamic vect cost
12682         model for FDO.
12683         targhooks.c (default_add_stmt_cost): Compute stmt cost
12684         unconditionally.
12685         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
12686         Use helper function.
12687         * tree-vectorizer.h (unlimited_cost_model): New function.
12688         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
12689         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
12690         function.
12691         (vect_enhance_data_refs_alignment): Ditto.
12692         * flag-types.h: New enum.
12693         * common/config/i386/i386-common.c (ix86_option_init_struct):
12694         No need to initialize vect_cost_model flag.
12695         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
12696         unconditionally.
12698 2013-09-27  Diego Novillo  <dnovillo@google.com>
12700         * gimple.h (enum ssa_mode): Remove.
12702 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
12704         * cfgloop.h (number_of_loops): Fix typo in check for null.
12706 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
12708         PR middle-end/58551
12709         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
12710         are children of outermost saved_cfun's loop, and set it up to
12711         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
12712         if loop != loop0 and SESE region contains bbs that belong to loop0.
12714 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
12716         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
12717         (binary_scale_code_p, get_base_term, get_index_term): New functions.
12718         (set_address_segment, set_address_base, set_address_index)
12719         (set_address_disp): Accept the argument unconditionally.
12720         (baseness): Remove must_be_base_p and must_be_index_p checks.
12721         (decompose_normal_address): Classify as much as possible in the
12722         main loop.
12724 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
12726         * cse.c (count_reg_usage): Handle INT_LIST.
12727         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
12728         * reginfo.c (reg_scan_mark_refs): Likewise.
12729         * reload1.c (eliminate_regs_1): Likewise.
12731 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
12733         PR middle-end/58547
12734         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
12735         signed.
12737 2013-09-27  Richard Biener  <rguenther@suse.de>
12739         PR tree-optimization/58459
12740         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
12741         restriction not propagating into loops.
12743 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
12745         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
12746         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
12747         * doc/tree-ssa.texi (Walking use-def chains): Delete.
12749 2013-09-26  Richard Biener  <rguenther@suse.de>
12751         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
12753 2013-09-26  Richard Biener  <rguenther@suse.de>
12755         * alias.h (component_uses_parent_alias_set): Rename to ...
12756         (component_uses_parent_alias_set_from): ... this.
12757         * alias.c (component_uses_parent_alias_set): Rename to ...
12758         (component_uses_parent_alias_set_from): ... this and return
12759         the desired parent.
12760         (reference_alias_ptr_type_1): Use the result from
12761         component_uses_parent_alias_set_from instead of stripping
12762         components one at a time.
12763         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
12765 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
12767         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
12768         Move prototypes to...
12769         * tree-ssa-ter.h: New File.  Move prototypes here.
12770         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
12771         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
12772         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
12773         from is_replaceable_p.
12774         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
12775         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
12776         (process_replaceable): Use ter_is_replaceable_p.
12777         (find_replaceable_in_bb): Use ter_is_replaceable_p.
12778         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
12779         newly refactored ssa_is_replaceable_p.
12780         * cfgexpand.c: Include tree-outof-ssa.h.
12781         * ssaexpand.h: Delete.
12783 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
12785         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
12786         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
12787         tree-ssa.c
12788         (create_gimple_tmp): Delete.
12789         (get_expr_type, build_assign, build_type_cast): Move to...
12790         * gimple-builder.c: New File.
12791         (get_expr_type): Relocate from gimple.c.
12792         (build_assign, build_type_cast): Change to only create ssanames.
12793         * gimple.h: Move prototypes to...
12794         * gimple-builder.h: New File. Here.
12795         * tree-ssa.h: And here.
12796         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
12797         count_uses_and_derefs): Relocate from gimple.c.
12798         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
12799         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
12800         * tree-ssa-math-opts (execute_cse_reciprocals): Use
12801         gimple_replace_ssa_lhs.
12802         * asan.c: Include gimple-builder.h.
12803         * Makefile.in: Add gimple-builder.o.
12805 2013-09-26  Richard Biener  <rguenther@suse.de>
12807         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
12808         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
12809         (loe_visit_block): Use gcc_checking_assert.
12810         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
12811         gimple_assign_ssa_name_copy_p.
12812         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
12813         change.
12815 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
12817         * config/rs6000/t-rs6000 (rs6000.o): Remove.
12818         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
12820 2013-09-26  Richard Biener  <rguenther@suse.de>
12822         PR tree-optimization/58539
12823         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
12824         the fact that debug statements are not taking part in loop-closed
12825         SSA construction.
12827 2013-09-26  Nick Clifton  <nickc@redhat.com>
12829         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
12830         time warning message.
12831         (msp430_print_operand_raw): Delete unused letter parameter.
12832         (TARGET_PRINT_OPERAND_ADDRESS): Define.
12833         (msp430_print_operand_address): New function.
12834         (msp430_print_operand): Move address printing code from here to
12835         new function.
12836         * config/msp430/msp430.md (movsipsi2): Add comment in generated
12837         assembler.
12838         (zero_extendpsisi2): Likewise.
12839         (extendpsisi2): New pattern.
12840         (andneghi3): New pattern.
12842 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
12844         * config/aarch64/aarch64.opt (mlra): New option.
12845         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
12846         (TARGET_LRA_P): Define.
12848 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
12850         * expr.c (expand_assignment): Remove obsolete comment.
12852 2013-09-25  Jeff Law  <law@redhat.com>
12854         * tree-flow.h (thread_through_all_blocks): Prototype moved into
12855         tree-ssa-threadupdate.h.
12856         (register_jump_thread): Similarly.
12857         * tree-ssa-threadupdate.h: New header file.
12858         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
12859         * tree-vrp.c: Likewise.
12860         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
12861         (thread_around_empty_blocks): Change type of path vector argument to
12862         an edge,type pair from just an edge.  Initialize both elements when
12863         appending to a jump threading path.  Tweak references to elements
12864         appropriately.
12865         (thread_across_edge): Similarly.  Release memory for the elements
12866         as needed.
12867         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
12868         (dump_jump_thread_path): New function broken out from
12869         register_jump_thread.
12870         (register_jump_thread): Use dump_jump_thread_path.  Change type of
12871         path vector entries.  Search the path for NULL edges and dump
12872         the path if one is found.  Tweak the conversion of path to 3-edge
12873         form to use the block copy type information embedded in the path.
12875 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
12877         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
12879 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
12880             Vladimir Makarov  <vmakarov@redhat.com>
12882         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
12883         from the least significant bit.
12884         (strip_address_mutations): Add bitfield operations handling.
12885         (must_be_index_p): Add shifting and rotate operations handling.
12886         (set_address_base): Use must_be_base_p predicate.
12887         (set_address_index): Use must_be_index_p predicate.
12889 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12890             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
12891             Sergey Lega  <sergey.s.lega@intel.com>
12892             Anna Tikhonova  <anna.tikhonova@intel.com>
12893             Ilya Tocar  <ilya.tocar@intel.com>
12894             Andrey Turetskiy  <andrey.turetskiy@intel.com>
12895             Ilya Verbin  <ilya.verbin@intel.com>
12896             Kirill Yukhin  <kirill.yukhin@intel.com>
12897             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
12899         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
12900         Use new names.
12901         (ix86_expand_vector_move_misalign): Support new unaligned load and
12902         stores and use new names.
12903         (CODE_FOR_sse2_storedqu): Rename to ...
12904         (CODE_FOR_sse2_storedquv16qi): ... this.
12905         (CODE_FOR_sse2_loaddqu): Rename to ...
12906         (CODE_FOR_sse2_loaddquv16qi): ... this.
12907         (CODE_FOR_avx_loaddqu256): Rename to ...
12908         (CODE_FOR_avx_loaddquv32qi): ... this.
12909         (CODE_FOR_avx_storedqu256): Rename to ...
12910         (CODE_FOR_avx_storedquv32qi): ... this.
12911         * config/i386/i386.md (fpint_logic): New.
12912         * config/i386/sse.md (VMOVE): Extend for AVX512.
12913         (VF): Ditto.
12914         (VF_128_256): New.
12915         (VF_512): Ditto.
12916         (VI_UNALIGNED_LOADSTORE): Ditto.
12917         (sse2_avx_avx512f): Ditto.
12918         (sse2_avx2): Extend for AVX512.
12919         (sse4_1_avx2): Ditto.
12920         (avx2_avx512f): New.
12921         (sse): Extend for AVX512.
12922         (sse2): Ditto.
12923         (sse4_1): Ditto.
12924         (avxsizesuffix): Ditto.
12925         (sseintvecmode): Ditto.
12926         (ssePSmode): Ditto.
12927         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
12928         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
12929         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
12930         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
12931         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
12932         (<sse2_avx_avx512f>_storedqu<mode): ... this.
12933         (<sse>_movnt<mode>): Replace constraint "x" with "v".
12934         (STORENT_MODE): Extend for AVX512.
12935         (*absneg<mode>2): Replace constraint "x" with "v".
12936         (*mul<mode>3): Ditto.
12937         (*ieee_smin<mode>3): Ditto.
12938         (*ieee_smax<mode>3): Ditto.
12939         (avx_cmp<mode>3): Replace VF with VF_128_256.
12940         (*<sse>_maskcmp<mode>3_comm): Ditto.
12941         (<sse>_maskcmp<mode>3): Ditto.
12942         (<sse>_andnot<mode>3): Extend for AVX512.
12943         (<code><mode>3, anylogic): Replace VF with VF_128_256.
12944         (<code><mode>3, fpint_logic): New.
12945         (*<code><mode>3): Extend for AVX512.
12946         (avx512flogicsuff): New.
12947         (avx512f_<logic><mode>): Ditto.
12948         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
12949         VF_128_256.
12950         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
12951         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
12952         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
12953         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
12954         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
12955         (xop_vpermil2<mode>3): Ditto.
12956         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
12957         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
12958         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
12959         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
12961 2013-09-25  Tom Tromey  <tromey@redhat.com>
12963         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
12964         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
12965         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
12966         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
12967         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
12968         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
12969         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
12970         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
12971         (GRAPHITE_HTAB_H): Remove.
12973 2013-09-25  Tom Tromey  <tromey@redhat.com>
12975         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
12977 2013-09-25  Tom Tromey  <tromey@redhat.com>
12979         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
12981 2013-09-25  Tom Tromey  <tromey@redhat.com>
12983         * config/i386/t-i386 (i386.o): Remove.
12984         (i386-c.o): Use COMPILE and POSTCOMPILE.
12986 2013-09-25  Tom Tromey  <tromey@redhat.com>
12988         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
12990 2013-09-25  Tom Tromey  <tromey@redhat.com>
12992         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
12993         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
12994         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
12995         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
12996         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
12997         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
12998         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
12999         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
13000         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
13001         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
13002         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
13003         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
13004         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
13005         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
13006         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
13007         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
13008         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
13009         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
13010         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
13011         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
13012         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
13013         (tree-ssa-pre.o, tree-ssa-sccvn.o)
13014         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
13015         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
13016         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
13017         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
13018         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
13019         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
13020         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
13021         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
13022         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
13023         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
13024         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
13025         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
13026         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
13027         (graphite-clast-to-gimple.o, graphite-dependences.o)
13028         (graphite-interchange.o, graphite-poly.o)
13029         (graphite-scop-detection.o, graphite-sese-to-poly.o)
13030         (graphite-optimize-isl.o, tree-vect-loop.o)
13031         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
13032         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
13033         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
13034         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
13035         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
13036         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
13037         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
13038         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
13039         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
13040         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
13041         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
13042         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
13043         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
13044         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
13045         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
13046         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
13047         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
13048         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
13049         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
13050         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
13051         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
13052         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
13053         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
13054         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
13055         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
13056         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
13057         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
13058         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
13059         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
13060         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
13061         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
13062         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
13063         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
13064         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
13065         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
13066         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
13067         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
13068         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
13069         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
13070         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
13071         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
13072         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
13073         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
13074         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
13075         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
13076         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
13077         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
13078         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
13079         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
13080         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
13081         (gcov-dump.o): Remove.
13082         (default-c.o): Use COMPILE and POSTCOMPILE.
13083         (CFLAGS-gcc.o): New variable.
13084         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
13086 2013-09-25  Tom Tromey  <tromey@redhat.com>
13088         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
13089         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
13090         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
13091         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
13092         (c-family/c-pragma.o, c-family/c-pretty-print.o)
13093         (c-family/c-semantics.o, c-family/c-ada-spec.o)
13094         (c-family/array-notation-common.o, c-family/stub-objc.o)
13095         (c-family/c-ubsan.o): Remove.
13097 2013-09-25  Tom Tromey  <tromey@redhat.com>
13099         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
13101 2013-09-25  Tom Tromey  <tromey@redhat.com>
13103         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
13104         to add -DENABLE_SHARED_LIBGCC.
13105         (gcc.o): Don't use subshell.
13107 2013-09-25  Tom Tromey  <tromey@redhat.com>
13109         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
13110         * configure.ac: Don't invoke AM_PROG_CC_C_O.
13111         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
13112         * configure, config.in: Rebuild.
13114 2013-09-25  Tom Tromey  <tromey@redhat.com>
13116         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
13117         (COMPILE, POSTCOMPILE): New variables.
13118         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
13119         (DEPFILES): New variable.
13120         Include ".Po" files.
13121         * configure.ac: Add checks for dependency checking.
13122         * configure, aclocal.m4: Regenerate.
13124 2013-09-25  Tom Tromey  <tromey@redhat.com>
13126         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
13127         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
13129 2013-09-25  Tom Tromey  <tromey@redhat.com>
13131         * Makefile.in (generated_files): Add options.h,
13132         target-hooks-def.h, insn-opinit.h,
13133         common/common-target-hooks-def.h, pass-instances.def,
13134         c-family/c-target-hooks-def.h.
13136 2013-09-25  Jeff Law  <law@redhat.com>
13138         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
13139         than foo[foo.length () - 1] to access last member in a vec.
13140         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
13142 2013-09-25  Richard Biener  <rguenther@suse.de>
13144         PR middle-end/58521
13145         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
13147 2013-09-25  Jan Hubicka  <jh@suse.cz>
13149         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
13150         test.
13152 2013-09-25  Marek Polacek  <polacek@redhat.com>
13154         PR sanitizer/58420
13155         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
13156         when determining the type name.
13158 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
13160         * config/sh/sh.md: Fix formatting.
13162 2013-09-24  Xinliang David Li  <davidxl@google.com>
13164         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
13165         max peel iterations parameter.
13166         * param.def: New parameter.
13167         * doc/invoke.texi: Document New parameter.
13169 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
13171         * gimple-pretty-print.c: Various whitespace tweaks.
13172         * tree-core.h: Likewise.
13173         * tree-pretty-print.c: Likewise.
13174         * tree-ssa-alias.c: Likewise.
13175         * tree-ssa-copy.c: Likewise.
13176         * tree-ssanames.c: Likewise.
13177         * tree-ssanames.h: Likewise.
13178         * tree-vrp.c: Likewise.
13180 2013-09-24  Alan Modra  <amodra@gmail.com>
13182         PR middle-end/57134
13183         PR middle-end/57586
13184         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
13185         for output operands that disallow regs.  Don't use EXPAND_WRITE on
13186         inout operands.
13188 2013-09-24  Richard Biener  <rguenther@suse.de>
13190         PR middle-end/58513
13191         * tree.c (reference_alias_ptr_type): Move ...
13192         * alias.c (reference_alias_ptr_type): ... here and implement
13193         in terms of the new reference_alias_ptr_type_1.
13194         (ref_all_alias_ptr_type_p): New helper.
13195         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
13196         use ref_all_alias_ptr_type_p.
13197         (get_deref_alias_set): Add flag_strict_aliasing check here.
13198         (reference_alias_ptr_type_1): New function, split out from ...
13199         (get_alias_set): ... here.
13200         (alias_ptr_types_compatible_p): New function.
13201         * alias.h (reference_alias_ptr_type): Declare.
13202         (alias_ptr_types_compatible_p): Likewise.
13203         * tree.h (reference_alias_ptr_type): Remove.
13204         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
13205         to compare MEM_REF alias types.
13207 2013-09-24  Richard Biener  <rguenther@suse.de>
13209         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
13211 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13213         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
13214         reload helper function arrays into a single array reg_addr.
13215         (reload_fpr_gpr): Likewise.
13216         (reload_gpr_vsx): Likewise.
13217         (reload_vsx_gpr): Likewise.
13218         (struct rs6000_reg_addr): Likewise.
13219         (reg_addr): Likewise.
13220         (rs6000_debug_reg_global): Change rs6000_vector_reload,
13221         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
13222         (rs6000_init_hard_regno_mode_ok): Likewise.
13223         (rs6000_secondary_reload_direct_move): Likewise.
13224         (rs6000_secondary_reload): Likewise.
13226         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
13227         constraints: wu, ww, and wy.  Repurpose wv constraint added during
13228         power8 changes.  Put wg constraint in alphabetical order.
13230         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
13231         for future work to add ISA 2.07 VSX single precision support.
13232         (-mvsx-scalar-double): Change default from -1 to 1, update
13233         documentation comment.
13234         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
13235         (-mupper-regs-df): New debug switch to control whether DF values
13236         can go in the traditional Altivec registers.
13237         (-mupper-regs-sf): New debug switch to control whether SF values
13238         can go in the traditional Altivec registers.
13240         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
13241         and wy constraints.
13242         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
13243         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
13244         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
13245         (rs6000_debug_legitimate_address_p): Print if we are running
13246         before, during, or after reload.
13247         (rs6000_secondary_reload): Add a comment.
13248         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
13250         * config/rs6000/constraints.md (wa constraint): Sort w<x>
13251         constraints.  Update documentation string.
13252         (wd constraint): Likewise.
13253         (wf constraint): Likewise.
13254         (wg constraint): Likewise.
13255         (wn constraint): Likewise.
13256         (ws constraint): Likewise.
13257         (wt constraint): Likewise.
13258         (wx constraint): Likewise.
13259         (wz constraint): Likewise.
13260         (wu constraint): New constraint for ISA 2.07 SFmode scalar
13261         instructions.
13262         (ww constraint): Likewise.
13263         (wy constraint): Likewise.
13264         (wv constraint): Repurpose ISA 2.07 constraint that we did not use
13265         in the previous submissions.
13266         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
13268 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
13270         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
13271         (REG_BR_PROB): Say that the probability is stored in an int_list.
13272         * reg-notes.def: Update commentary to mention INT_LIST.
13273         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
13274         (INT_LIST): New rtx.
13275         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
13276         * rtlanal.c (int_reg_note_p): New function.
13277         (alloc_reg_note): Assert that the note does not have an int argument.
13278         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
13279         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
13280         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
13281         rather than an INSN_LIST.  Handle INT_LIST.
13282         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
13283         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
13284         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
13285         Manipulate them as ints rather than rtxes.
13286         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
13287         * regmove.c (copy_src_to_dest): Likewise.
13288         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
13290         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
13291         into the cases that need it.
13292         * config/arm/arm.c (arm_unwind_emit): Likewise.
13294         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
13295         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
13296         * loop-doloop.c (add_test, doloop_modify): Likewise.
13297         * loop-unswitch.c (compare_and_jump_seq): Likewise.
13298         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
13299         * predict.c (combine_predictions_for_insn): Likewise.
13300         * print-rtl.c (print_rtx): Handle INT_LIST.
13301         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
13302         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
13303         * config/arm/arm.c (emit_unlikely_jump): Likewise.
13304         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
13305         (ix86_split_fp_branch, predict_jump): Likewise.
13306         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
13307         * config/sh/sh.c (expand_cbranchsi4): Likewise.
13308         * config/spu/spu.c (ea_load_store_inline): Likewise.
13310         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
13311         value of a REG_BR_PROB note.
13312         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13313         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
13314         * emit-rtl.c (try_split): Likewise.
13315         * predict.c (br_prob_note_reliable_p): Likewise.
13316         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
13317         * reorg.c (mostly_true_jump): Likewise.
13318         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
13319         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
13320         * config/i386/i386.c (ix86_print_operand): Likewise.
13321         * config/ia64/ia64.c (ia64_print_operand): Likewise.
13322         * config/mmix/mmix.c (mmix_print_operand): Likewise.
13323         * config/rs6000/rs6000.c (output_cbranch): Likewise.
13324         * config/s390/s390.c (s390_expand_tbegin): Likewise.
13325         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
13326         * config/sparc/sparc.c (output_cbranch): Likewise.
13327         * config/spu/spu.c (get_branch_target): Likewise.
13328         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
13329         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
13331 2013-09-23  Jan Hubicka  <jh@suse.cz>
13333         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
13334         for ipa-devirt.
13335         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
13336         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
13337         of external calls
13338         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
13339         (gimple_fold_call): Dump inconsistent devirtualizations; add
13340         sanity check for type based devirtualizations.
13341         * ipa-prop.c: Include ipa-utils.h
13342         (ipa_intraprocedural_devirtualization): Add sanity check.
13343         (try_make_edge_direct_virtual_call): Likewise.
13345 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
13347         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
13348         assignment statements.
13350 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
13352         * gimple-pretty-print.c (dump_ssaname_info): New function.
13353         (dump_gimple_phi): Call it.
13354         (pp_gimple_stmt_1): Likewise.
13355         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
13356         (range_info_def): Declare.
13357         * tree-pretty-print.c (pp_double_int): New function.
13358         (dump_generic_node): Call it.
13359         * tree-pretty-print.h (pp_double_int): Declare.
13360         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
13361         * tree-ssanames.h (range_info_def): New structure.
13362         (value_range_type): Move definition here.
13363         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
13364         Declare.
13365         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
13366         initialization.
13367         (set_range_info): New function.
13368         (get_range_info): Likewise.
13369         (duplicate_ssa_name_range_info): Likewise.
13370         (duplicate_ssa_name_fn): Check pointer type and call
13371         duplicate_ssa_name_range_info.
13372         * tree-ssa-copy.c (fini_copy_prop): Likewise.
13373         * tree-vrp.c (value_range_type): Remove definition, now in
13374         tree-ssanames.h.
13375         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
13376         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
13377         (SSA_NAME_RANGE_INFO): New macro.
13379 2013-09-23  Richard Biener  <rguenther@suse.de>
13381         PR tree-optimization/58464
13382         * tree-ssa-pre.c (phi_trans_lookup): Remove.
13383         (phi_trans_add): Change to add conditionally on being not present.
13384         (phi_translate_1): Remove recursion detection here.
13385         (phi_translate): Pre-seed the cache with NULL to catch
13386         recursion here in a more generic way.
13387         (bitmap_find_leader): Adjust comment.
13388         (get_representative_for): Dump value-numbers.
13389         (create_expression_by_pieces): Likewise.
13390         (insert_into_preds_of_block): Likewise.
13392 2013-09-23  Christian Bruel  <christian.bruel@st.com>
13394         PR target/58475
13395         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
13396         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
13398 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
13400         Revert r202780:
13401         2013-09-20  Renlin Li  <renlin.li@arm.com>
13403         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
13404         plus_constant.
13405         (aarch64_expand_epilogue): Likewise.
13406         (aarch64_legitimize_reload_address): Likewise.
13408 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
13410         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
13411         NULL_TREE before pushing them onto the vector.  Likewise for labels.
13413 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
13415         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
13416         comparison operators when -fno-trapping-math is in effect.
13417         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
13418         comparison operators in TFmode and assert that unsupported operators
13419         cannot reach here.
13420         (ia64_print_operand): Likewise.
13422 2013-09-21  Jan Hubicka  <jh@suse.cz>
13424         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
13425         (sse_typeless_stores): Enable for core
13426         (sse_load0_by_pxor): Likewise.
13427         (four_jump_limit): Disable for core.
13428         (pad_returns): Likewise.
13429         (avoid_vector_decode): Likewise.
13430         (fuse_cmp_and_branch): Enable for cores.
13431         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
13433 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
13435         PR middle-end/56791
13436         * config/pa/pa.c (pa_option_override): Disable auto increment and
13437         decrement instructions until reload is completed.
13439         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
13440         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
13441         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13443 2013-09-20  DJ Delorie  <dj@redhat.com>
13444             Nick Clifton  <nickc@redhat.com>
13446         * config/rl78/rl78.c: Various whitespace and comment tweaks.
13447         (need_to_save): Save bank 0 on interrupts.
13448         (characterize_address): Strip far address wrappers.
13449         (rl78_as_legitimate_address): Likewise.
13450         (transcode_memory_rtx): Likewise.
13451         (rl78_peep_movhi_p): Disable this peephole after devirt.
13452         (rl78_propogate_register_origins): Forget all origins when a
13453         CLOBBER is seen.
13454         * config/rl78/rl78-virt.md: Various whitespace tweaks.
13455         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
13456         peephole2's.
13457         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
13458         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
13459         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
13460         relocating.
13461         * config/rl78/constraints.md: Various whitespace and paren tweaks.
13463 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
13465         * config/pa/pa.md: In "scc" insn patterns, change output template to
13466         handle const0_rtx in reg_or_0_operand operands.
13468 2013-09-20  Martin Husemann  <martin@NetBSD.org>
13470         PR target/56875
13471         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
13472         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
13474 2013-09-20  Richard Biener  <rguenther@suse.de>
13476         PR middle-end/58484
13477         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
13478         remembering SSA name version and block index.
13479         (new_scev_info_str): Adjust.
13480         (hash_scev_info): Likewise.  Also hash the block index.
13481         (eq_scev_info): Adjust.
13482         (find_var_scev_info): Likewise.
13483         (struct instantiate_cache_entry): Remove.
13484         (struct instantiate_cache_type): Use a htab to map name, block
13485         to chrec.
13486         (instantiate_cache_type::~instantiate_cache_type): Adjust.
13487         (get_instantiated_value_entry): Likewise.
13488         (hash_idx_scev_info, eq_idx_scev_info): New functions.
13489         (instantiate_scev_name): Adjust.
13491 2013-09-20  Jeff Law  <law@redhat.com>
13493         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
13495 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
13497         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
13498         Call aarch64_simd_expand_args to update op[argc].
13500 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
13502         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
13503         plugin argument.
13505 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
13507         * gengtype.c (file_rules): Added rule for *.cc files.
13508         (get_output_file_with_visibility): Give fatal message when no
13509         rules found.
13511 2013-09-20  Renlin Li  <renlin.li@arm.com>
13513         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
13514         (aarch64_expand_epilogue): Likewise.
13515         (aarch64_legitimize_reload_address): Likewise.
13517 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13519         PR middle-end/57748
13520         * expr.c (expand_assignment): Remove misalignp code path.
13522 2013-09-20  Marek Polacek  <polacek@redhat.com>
13524         PR sanitizer/58413
13525         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
13526         TYPE_PRECISION.  Add asserts.
13528 2013-09-20  Richard Biener  <rguenther@suse.de>
13530         PR tree-optimization/58453
13531         * tree-loop-distribution.c (distribute_loop): Apply the cost
13532         model for -ftree-loop-distribute-patterns, too.
13534 2013-09-20  Richard Biener  <rguenther@suse.de>
13536         PR middle-end/58473
13537         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
13538         make type comparison less strict.
13540 2013-09-20  Alan Modra  <amodra@gmail.com>
13542         * configure: Regenerate.
13543         * aclocal.m4: Regenerate.
13545 2013-09-20  Marek Polacek  <polacek@redhat.com>
13547         PR other/58467
13548         * doc/extend.texi: Document that attribute used is meant to be used
13549         on variables with static storage duration.
13551 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
13553         PR tree-optimization/58472
13554         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
13555         simd_lane_access set inv_p = false.
13556         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
13557         the simduid magic VAR_DECL.
13559 2013-09-19  Jan Hubicka  <jh@suse.cz>
13561         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
13563 2013-09-17  Jeff Law  <law@redhat.com>
13565         * tree-ssa-dom.c (record_temporary_equivalences): New function
13566         split out of dom_opt_dom_walker::after_dom_children.
13567         (dom_opt_dom_walker::thread_across_edge): Move common code
13568         in here from dom_opt_dom_walker::after_dom_children.
13569         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
13571 2013-09-19  Jan Hubicka  <jh@suse.cz>
13573         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
13574         (TARGET_GENERIC): Use PROCESOR_GENERIC
13575         (enum processor_type): Unify generic32 and 64.
13576         * i386.md (cpu): Likewise.
13577         * x86-tune.def (use_leave): Enable for generic32.
13578         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
13579         * athlon.md: Change generic64 to generic in all occurences.
13580         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
13581         (ix86_target_macros_internal): Likewise.
13582         * driver-i386.c (host_detect_local_cpu): Likewise.
13583         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
13584         to ..
13585         (generic_memcpy, generic_memset, generic_cost): This one.
13586         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
13587         (m_GENERIC32, m_GENERIC64): Remove.
13588         (m_GENERIC): Turn into one flag.
13589         (processor_target): Unify generic tunnings.
13590         (ix86_option_override_internal): Replace generic32/64 by generic.
13591         (ix86_issue_rate): Likewise.
13592         (ix86_adjust_cost): Likewise.
13594 2013-09-19  Jan Hubicka  <jh@suse.cz>
13596         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
13597         of speculative flag.
13599 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
13601         * omp-low.c (expand_omp_sections): Always pass len - 1 to
13602         GOMP_sections_start, even if !exit_reachable.
13604 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
13606         * lra-constraints.c (need_for_all_save_p): Use macro
13607         HARD_REGNO_CALL_PART_CLOBBERED.
13608         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
13609         set up pseudo conflict hard regs.
13611 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
13613         PR target/58452
13614         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
13615         operands.
13617 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
13619         PR rtl-optimization/58438
13620         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
13621         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
13622         from previous subpasses.
13624 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
13626         * arm.c (arm_get_frame_offsets): Validate architecture supports
13627         LDRD/STRD before accepting the tuning preference.
13628         (arm_expand_prologue): Likewise.
13629         (arm_expand_epilogue): Likewise.
13631 2013-09-18  Richard Biener  <rguenther@suse.de>
13633         PR tree-optimization/58417
13634         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
13635         have chrecs with symbols defined in the loop as operands.
13636         (chrec_fold_multiply): Likewise.
13637         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
13638         parameters before folding binary operations.
13639         (struct instantiate_cache_entry_hasher): Remove.
13640         (struct instantiate_cache_type): Use a pointer-map.
13641         (instantiate_cache_type::instantiate_cache_type): New function.
13642         (instantiate_cache_type::get): Likewise.
13643         (instantiate_cache_type::set): Likewise.
13644         (instantiate_cache_type::~instantiate_cache_type): Adjust.
13645         (get_instantiated_value_entry): Likewise.
13646         (global_cache): New global.
13647         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
13648         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
13649         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
13650         (instantiate_scev_name): Adjust.
13651         (instantiate_scev): Construct global instead of local cache.
13652         (resolve_mixers): Likewise.
13654 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
13655             Paolo Carlini  <paolo.carlini@oracle.com>
13657         PR c++/58458
13658         * doc/implement-cxx.texi: Fix references to the C++ standards.
13660 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
13662         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
13663         * tree-vect-data-refs.c (vect_analyze_data_refs): For
13664         simd_lane_access drs, update also DR_ALIGNED_TO.
13666 2013-09-18  Marek Polacek  <polacek@redhat.com>
13668         PR sanitizer/58411
13669         * doc/extend.texi: Document no_sanitize_undefined attribute.
13670         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
13671         no_sanitize_undefined attribute.
13673 2013-09-18  Nick Clifton  <nickc@redhat.com>
13675         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
13676         (ASM_DECLARE_FUNCTION_NAME): Define.
13678 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
13680         * compare-elim.c (find_comparison_dom_walker): New class
13681         (find_comparisons_in_bb): Rename to
13682         find_comparison_dom_walker::before_dom_children
13683         (find_comparisons): Adjust
13684         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
13685         adjust.
13686         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
13687         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
13688         (init_walk_dominator_tree): Remove declaration.
13689         (fini_walk_dominator_tree): Remove declaration.
13690         * fwprop.c (single_def_use_dom_walker): New class
13691         (single_def_use_enter_block): Convert to
13692         single_def_use_dom_walker::before_dom_children.
13693         (single_def_use_leave_block): Convert to
13694         single_def_use_dom_walker::after_dom_children.
13695         (build_single_def_use_links): Adjust.
13696         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
13697         class.
13698         (find_candidates_in_block): Convert to
13699         find_candidates_dom_walker::before_dom_children.
13700         (execute_strength_reduction): Adjust.
13701         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
13702         (sese_dom_walker): New class.
13703         (sese_dom_walker::sese_dom_walker): New constructor.
13704         (sese_dom_walker::~sese_dom_walker): New destructor.
13705         (build_sese_conditions_before): Convert to
13706         sese_dom_walker::before_dom_children.
13707         (build_sese_conditions_after): Convert to
13708         sese_dom_walker::after_dom_children.
13709         (build_poly_scop): Adjust
13710         * tree-into-ssa.c (rewrite_dom_walker): New class
13711         (rewrite_enter_block): Convert to
13712         rewrite_dom_walker::before_dom_children.
13713         (rewrite_leave_block): Convert to
13714         rewrite_dom_walker::after_dom_children.
13715         (rewrite_update_dom_walker): New class.
13716         (rewrite_update_enter_block): Convert to
13717         rewrite_update_dom_walker::before_dom_children.
13718         (rewrite_update_leave_block): Convert to
13719         rewrite_update_dom_walker::after_dom_children.
13720         (rewrite_blocks, rewrite_into_ssa): Adjust.
13721         (mark_def_dom_walker): New class.
13722         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
13723         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
13724         (mark_def_sites_blocks): Convert to
13725         mark_def_dom_walker::before_dom_children.
13726         (mark_def_site_blocks): Remove.
13727         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
13728         (tree_ssa_dominator_optimize): Adjust.
13729         (dom_thread_across_edge): Convert to method
13730         dom_opt_dom_walker::thread_across_edge.
13731         (dom_opt_enter_block): Convert to member function
13732         dom_opt_dom_walker::before_dom_children.
13733         (dom_opt_leave_block): Convert to member function
13734         dom_opt_dom_walker::after_dom_children.
13735         * tree-ssa-dse.c (dse_dom_walker): New class.
13736         (dse_enter_block): Convert to member function
13737         dse_dom_walker::before_dom_children.
13738         (tree_ssa_dse): Adjust.
13739         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
13740         (determine_invariantness_stmt): Convert to method
13741         invariantness_dom_walker::before_dom_children.
13742         (determine_invariantness): Remove
13743         (move_computations_dom_walker): New class.
13744         (move_computations_stmt): Convert to method
13745         move_computations_dom_walker::before_dom_children.
13746         (move_computations, tree_ssa_lim): Adjust.
13747         * tree-ssa-phiopt.c (nontrapping_dom_walker): New class.
13748         (nt_init_block): Convert to method
13749         notrappping_dom_walker::before_dom_children.
13750         (nt_fini_block): Convert to method
13751         method nontrapping_dom_walker::after_dom_children.
13752         (get_non_trapping): Adjust.
13753         * tree-ssa-pre.c (eliminate_dom_walker): New class.
13754         (eliminate_bb): Convert to method
13755         eliminate_dom_walker::before_dom_children.
13756         (eliminate_leave_block): Convert to method
13757         eliminate_dom_walker::after_dom_children.
13758         (eliminate): Adjust.
13759         * tree-ssa-strlen.c (strlen_dom_walker): New class.
13760         (strlen_enter_block): Convert to method
13761         strlen_dom_walker::before_dom_children.
13762         (strlen_leave_block): Convert to method
13763         method strlen_dom_walker::after_dom_children.
13764         (tree_ssa_strlen): Adjust.
13765         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
13766         (tree_ssa_uncprop): Adjust.
13767         (uncprop_leave_block): Convert to method
13768         uncprop_dom_walker::after_dom_children.
13769         (uncprop_leave_block): Convert to method
13770         uncprop_dom_walker::before_dom_children.
13772 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
13774         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
13775         branch in same basic block.  Check both src and dest of the move insn.
13777 2013-09-17  Nick Clifton  <nickc@redhat.com>
13779         * config/rl78/rl78-real.md (bf): New pattern.
13780         (bt): New pattern.
13781         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
13782         (rl78_print_operand): Do not put a # before a %B.
13783         * config/rl78/rl78.opt: Tweak doc strings.
13785 2013-09-17  DJ Delorie  <dj@redhat.com>
13787         * config/rl78/constraints.md (Wcv): Allow up to $r31.
13788         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
13789         (rl78_option_override): Likewise, if -mallregs.
13790         (is_virtual_register): Likewise.
13791         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
13792         (REGNO_OK_FOR_BASE_P): Likewise.
13793         * config/rl78/rl78.opt (-mallregs): New.
13795 2013-09-17  Nick Clifton  <nickc@redhat.com>
13797         * config/rl78/rl78.c (need_to_save): Change return type to bool.
13798         For interrupt functions: save all call clobbered registers if the
13799         interrupt handler is not a leaf function.
13800         (rl78_expand_prologue): Always recompute the frame information.
13801         For interrupt functions: only select bank 0 if one of the bank 0
13802         registers is going to be psuhed.
13804 2013-09-17  DJ Delorie  <dj@redhat.com>
13806         * config/rl78/constraints.md: For each W* constraint, rename to C*
13807         and create a W* constraint that checks for an optional ES: prefix
13808         pattern also.
13809         * config/rl78/rl78.md (UNS_ES_ADDR): New.
13810         (es_addr): New.  Used to wrap far addresses.
13811         * config/rl78/rl78-protos.h (rl78_es_addr): New.
13812         (rl78_es_base): New.
13813         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
13814         wrapped far addresses.
13815         (rl78_print_operand_1): Unwrap far addresses before processing.
13816         (rl78_lo16): Wrap far addresses in unspecs.
13817         (rl78_es_addr): New.
13818         (rl78_es_base): New.
13819         (insn_ok_now): Check for not-yet-wrapped far addresses.
13820         (transcode_memory_rtx): Properly re-wrap far addresses.
13822 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13824         * config/sparc/t-rtems: Add leon3 multilibs.
13826 2013-09-17  Cong Hou  <congh@google.com>
13828         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
13829         when checking the dot production pattern. The type of rhs operand
13830         of multiply is now checked correctly.
13832 2013-09-17  Jeff Law  <law@redhat.com>
13834         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
13835         edge implied equivalences into successor phis.
13836         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
13837         here from tree-ssa-threadedge.c.
13838         (mark_threaded_blocks): When threading through a joiner, if both
13839         successors of the joiner's clone reach the same block, verify the
13840         PHI arguments are equal.  If not, cancel the jump threading request.
13841         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
13842         tree-ssa-threadupdate.c
13843         (thread_across_edge): Don't check PHI argument equality when
13844         threading through joiner block here.
13846 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
13848         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
13849         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
13850         (warn_uninit, warn_uninitialized_vars,
13851         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
13852         Move to tree-ssa-uninit.c.
13853         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
13854         (has_undefined_value_p): New.  Pass dependant parts of
13855         ssa_undefined_value_p.
13856         (uninit_undefined_value_p): Use has_undefined_value_p.
13857         (warn_uninit, warn_uninitialized_vars,
13858         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
13859         Move from tree-ssa.c.
13860         * tree-ssa.h: Adjust prototypes.
13862 2013-09-17  Jan Hubicka  <jh@suse.cz>
13864         PR middle-end/58332
13865         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
13866         * ipa-inline.c (can_inline_edge_p): Do not downgrade
13867         FUNCTION_NOT_OPTIMIZED.
13868         * ipa-inline-analysis.c (compute_inline_parameters): Function
13869         not optimized is not inlinable unless it is alwaysinline.
13870         (inline_analyze_function): Force calls in not optimized
13871         function not inlinable.
13873 2013-09-17  Jan Hubicka  <jh@suse.cz>
13875         PR middle-end/58329
13876         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
13877         to return NULL.
13878         * ipa.c (function_and_variable_visibility): Likewise.
13879         * ipa-profile.c (ipa_profile): Likewise.
13881 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
13883         PR ipa/58398
13884         * cgraph.c (cgraph_function_body_availability): Check for ifunc
13885         attribute, and don't inline the resolver in this case.
13887 2013-09-17  Teresa Johnson  <tejohnson@google.com>
13889         * coverage.c (get_coverage_counts): Add missing newline.
13891 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13893         PR tree-optimization/58088
13894         * fold-const.c (mask_with_trailing_zeros): New function.
13895         (fold_binary_loc): Make sure we don't recurse infinitely
13896         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
13897         Use mask_with_trailing_zeros where appropriate.
13899 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
13901         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
13902         of 'prev' var to get better distance estimation.
13904 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
13906         * tree-inline.h (struct copy_body_data): Add transform_parameter.
13907         * tree-inline.c (is_parameter_of): New predicate.
13908         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
13909         a parameter has been remapped.
13910         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
13911         (optimize_inline_calls): Initialize transform_parameter.
13912         (copy_gimple_seq_and_replace_locals): Likewise.
13913         (tree_function_versioning): Likewise.
13914         (maybe_inline_call_in_expr): Likewise.
13916 2013-09-17  Nick Clifton  <nickc@redhat.com>
13918         * config/msp430/msp430-protos.h: Add prototypes for new functions.
13919         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
13920         interrupt handlers.
13921         (is_attr_func): New function.
13922         (msp430_is_interrupt_func): New function.
13923         (is_naked_func): New function.
13924         (is_reentrant_func): New function.
13925         (is_critical_func): New function.
13926         (msp430_start_function): Add annotations for function attributes.
13927         (msp430_attr): New function.
13928         (msp430_attribute_table): New.
13929         (msp430_function_section): New function.
13930         (TARGET_ASM_FUNCTION_SECTION): Define.
13931         (msp430_builtin): New enum.
13932         (msp430_init_builtins): New function.
13933         (msp430_builtin_devl): New function.
13934         (msp430_expand_builtin): New function.
13935         (TARGET_INIT_BUILTINS): Define.
13936         (TARGET_EXPAND_BUILTINS): Define.
13937         (TARGET_BUILTIN_DECL): Define.
13938         (msp430_expand_prologue): Add support for naked, interrupt,
13939         critical and reentrant functions.
13940         (msp430_expand_epilogue): Likewise.
13941         (msp430_print_operand): Handle 'O' character.
13942         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
13943         NO_TRAMPOLINES.
13944         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
13945         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
13946         (pushm): Use a 'n' rather than an 'i' constraint.
13947         (msp_return): Add generation of the interrupt return instruction.
13948         (disable_interrupts): New pattern.
13949         (enable_interrupts): New pattern.
13950         (push_intr_state): New pattern.
13951         (pop_intr_state): New pattern.
13952         (bic_SR): New pattern.
13953         (bis_SR): New pattern.
13954         * doc/extend.texi: Document MSP430 function attributes and builtin
13955         functions.
13957 2013-09-17  Richard Biener  <rguenther@suse.de>
13959         PR tree-optimization/58432
13960         * tree-loop-distribution.c (tree_loop_distribution): Also
13961         scan PHIs for outside loop uses and seed a partition from them.
13963 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
13965         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
13966         (restructure_reference): Call backtrace_base_for_ref.
13968 2013-09-17  Alan Modra  <amodra@gmail.com>
13970         PR target/57589
13971         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
13972         patch.
13974 2013-09-16  DJ Delorie  <dj@redhat.com>
13976         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
13977         vregs location for RL78/G10.
13978         (rl78_expand_prologue): Avoid SEL on G10.
13979         (rl78_expand_epilogue): Likewise.
13980         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
13981         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
13982         __RL78_G10__ when appropriate.
13983         (ASM_SPEC): Pass -mg10 along to the assembler.
13984         * config/rl78/rl78.md (sel_rb): Disable for G10.
13985         * config/rl78/rl78.opt: Add -mg10 option.
13986         * config/rl78/t-rl78: Add -mg10 multilib.
13988 2013-09-16  Xinliang David Li  <davidxl@google.com>
13990         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
13991         * omp-low.c (omp_max_vf): Ditto.
13992         (expand_omp_simd): Ditto.
13993         * tree-vectorizer.c (vectorize_loops): Ditto.
13994         (gate_vect_slp): Ditto.
13995         (gate_increase_alignment): Ditto.
13996         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
13997         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
13998         (gate_tree_vectorize): Name change.
13999         (tree_vectorize): Ditto.
14000         (pass_vectorize::gate): Call new function.
14001         (pass_vectorize::execute): Ditto.
14002         * opts.c: O3 default setting change.
14003         (finish_options): Check new flag.
14004         * doc/invoke.texi: Document new flags.
14005         * common.opt: New flags.
14007 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
14009         * doc/tm.texi.in (Cond Exec Macros): Remove node.
14010         (Condition Code): Don't reference it.
14011         * doc/tm.texi: Regenerate.
14013 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
14015         PR middle-end/58418
14016         * lra-constraints.c (undo_optional_reloads): Consider all optional
14017         reload even if it did not get a hard reg.
14019 2013-09-16  Teresa Johnson  <tejohnson@google.com>
14021         * dumpfile.c (dump_loc): Remove newline emission.
14022         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
14023         emission to dump_printf_loc calls where missing.
14024         (vect_mark_for_runtime_alias_test): Ditto.
14025         (vect_analyze_data_ref_dependence): Ditto.
14026         (vect_analyze_data_ref_dependences): Ditto.
14027         (vect_slp_analyze_data_ref_dependence): Ditto.
14028         (vect_slp_analyze_data_ref_dependences): Ditto.
14029         (vect_compute_data_ref_alignment): Ditto.
14030         (vect_update_misalignment_for_peel): Ditto.
14031         (vect_verify_datarefs_alignment): Ditto.
14032         (vector_alignment_reachable_p): Ditto.
14033         (vect_get_data_access_cost): Ditto.
14034         (vect_enhance_data_refs_alignment): Ditto.
14035         (vect_find_same_alignment_drs): Ditto.
14036         (vect_analyze_data_refs_alignment): Ditto.
14037         (vect_analyze_group_access): Ditto.
14038         (vect_analyze_data_ref_access): Ditto.
14039         (vect_analyze_data_ref_accesses): Ditto.
14040         (vect_prune_runtime_alias_test_list): Ditto.
14041         (vect_analyze_data_refs): Ditto.
14042         (vect_create_addr_base_for_vector_ref): Ditto.
14043         (vect_create_data_ref_ptr): Ditto.
14044         (vect_grouped_store_supported): Ditto.
14045         (vect_grouped_load_supported): Ditto.
14046         * value-prof.c (check_counter): Ditto.
14047         (check_ic_target): Ditto.
14048         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
14049         (vect_recog_widen_mult_pattern): Ditto.
14050         (vect_recog_widen_sum_pattern): Ditto.
14051         (vect_recog_over_widening_pattern): Ditto.
14052         (vect_recog_widen_shift_pattern): Ditto.
14053         (vect_recog_rotate_pattern): Ditto.
14054         (vect_recog_vector_vector_shift_pattern): Ditto.
14055         (vect_recog_divmod_pattern): Ditto.
14056         (vect_recog_mixed_size_cond_pattern): Ditto.
14057         (vect_recog_bool_pattern): Ditto.
14058         (vect_pattern_recog_1): Ditto.
14059         (vect_pattern_recog): Ditto.
14060         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
14061         (vect_is_simple_iv_evolution): Ditto.
14062         (vect_analyze_scalar_cycles_1): Ditto.
14063         (vect_get_loop_niters): Ditto.
14064         (vect_analyze_loop_1): Ditto.
14065         (vect_analyze_loop_form): Ditto.
14066         (vect_analyze_loop_operations): Ditto.
14067         (vect_analyze_loop_2): Ditto.
14068         (vect_analyze_loop): Ditto.
14069         (report_vect_op): Ditto.
14070         (vect_is_slp_reduction): Ditto.
14071         (vect_is_simple_reduction_1): Ditto.
14072         (vect_get_known_peeling_cost): Ditto.
14073         (vect_estimate_min_profitable_iters): Ditto.
14074         (vect_model_reduction_cost): Ditto.
14075         (vect_model_induction_cost): Ditto.
14076         (get_initial_def_for_induction): Ditto.
14077         (vect_create_epilog_for_reduction): Ditto.
14078         (vectorizable_reduction): Ditto.
14079         (vectorizable_induction): Ditto.
14080         (vectorizable_live_operation): Ditto.
14081         (vect_loop_kill_debug_uses): Ditto.
14082         (vect_transform_loop): Ditto.
14083         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
14084         (vect_stmt_relevant_p): Ditto.
14085         (process_use): Ditto.
14086         (vect_mark_stmts_to_be_vectorized): Ditto.
14087         (vect_model_simple_cost): Ditto.
14088         (vect_model_promotion_demotion_cost): Ditto.
14089         (vect_model_store_cost): Ditto.
14090         (vect_get_store_cost): Ditto.
14091         (vect_model_load_cost): Ditto.
14092         (vect_get_load_cost): Ditto.
14093         (vect_init_vector_1): Ditto.
14094         (vect_get_vec_def_for_operand): Ditto.
14095         (vect_finish_stmt_generation): Ditto.
14096         (vectorizable_call): Ditto.
14097         (vectorizable_conversion): Ditto.
14098         (vectorizable_assignment): Ditto.
14099         (vectorizable_shift): Ditto.
14100         (vectorizable_operation): Ditto.
14101         (vectorizable_store): Ditto.
14102         (vectorizable_load): Ditto.
14103         (vectorizable_condition): Ditto.
14104         (vect_analyze_stmt): Ditto.
14105         (vect_transform_stmt): Ditto.
14106         (vect_is_simple_use): Ditto.
14107         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
14108         (vect_can_advance_ivs_p): Ditto.
14109         (vect_update_ivs_after_vectorizer): Ditto.
14110         (vect_do_peeling_for_loop_bound): Ditto.
14111         (vect_gen_niters_for_prolog_loop): Ditto.
14112         (vect_update_inits_of_drs): Ditto.
14113         (vect_create_cond_for_alias_checks): Ditto.
14114         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
14115         (vect_build_slp_tree_1): Ditto.
14116         (vect_supported_load_permutation_p): Ditto.
14117         (vect_analyze_slp_instance): Ditto.
14118         (vect_analyze_slp): Ditto.
14119         (vect_make_slp_decision): Ditto.
14120         (vect_detect_hybrid_slp): Ditto.
14121         (vect_bb_vectorization_profitable_p): Ditto.
14122         (vect_slp_analyze_bb_1): Ditto.
14123         (vect_update_slp_costs_according_to_vf): Ditto.
14124         (vect_get_mask_element): Ditto.
14125         (vect_transform_slp_perm_load): Ditto.
14126         (vect_schedule_slp_instance): Ditto.
14127         (vect_schedule_slp): Ditto.
14128         (vect_slp_transform_bb): Ditto.
14129         * profile.c (read_profile_edge_counts): Ditto.
14130         (compute_branch_probabilities): Ditto.
14131         * coverage.c (get_coverage_counts): Ditto.
14133 2013-09-16  Diego Novillo  <dnovillo@google.com>
14135         * tree-core.h: Add missing comment lines from refactoring of tree.h.
14137 2013-09-16  Jan Hubicka  <jh@suse.cz>
14139         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
14140         abstract functions; for static functions check the presence of body.
14142 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14144         * config/aarch64/aarch64-simd-builtins.def (fma): New.
14145         * config/aarch64/aarch64-simd.md
14146         (aarch64_mla_elt<mode>): New.
14147         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
14148         (aarch64_mls_elt<mode>): Likewise.
14149         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
14150         (aarch64_fma4_elt<mode>): Likewise.
14151         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
14152         (aarch64_fma4_elt_to_128v2df): Likewise.
14153         (aarch64_fma4_elt_to_64df): Likewise.
14154         (fnma<mode>4): Likewise.
14155         (aarch64_fnma4_elt<mode>): Likewise.
14156         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
14157         (aarch64_fnma4_elt_to_128v2df): Likewise.
14158         (aarch64_fnma4_elt_to_64df): Likewise.
14159         * config/aarch64/iterators.md (VDQSF): New.
14160         * config/aarch64/arm_neon.h
14161         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
14162         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
14164 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14166         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
14167         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
14168         (aarch64_mul3_elt_to_128df): Likewise.
14169         (aarch64_mul3_elt_to_64v2df): Likewise.
14170         * config/aarch64/iterators.md (VEL): Also handle DFmode.
14171         (VMUL): New.
14172         (VMUL_CHANGE_NLANES) Likewise.
14173         (h_con): Likewise.
14174         (f): Likewise.
14175         * config/aarch64/arm_neon.h
14176         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
14178 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
14180         * config/aarch64/arm_neon.h
14181         (vcvtx_high_f32_f64): Fix parameters.
14183 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14184             Uros Bizjak  <ubizjak@gmail.com>
14186         * config/alpha.c: Include tree-ssanames.h.
14188 2013-09-16  Richard Biener  <rguenther@suse.de>
14190         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
14191         (dot_rdg_1): Handle control_dd.
14192         (create_edge_for_control_dependence): New function.
14193         (create_rdg_edges): Add control dependences if asked for.
14194         (build_rdg): Likewise.
14195         (generate_loops_for_partition): If there are not necessary
14196         control stmts remove all their dependencies.
14197         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
14198         (distribute_loop): Pass on control dependences.
14199         (tree_loop_distribution): Compute control dependences and remove
14200         restriction on number of loop nodes.
14202 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
14204         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
14205         for internal calls.
14207 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
14209         * cse.c (try_const_anchors): Punt on CC modes.
14211 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
14213         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
14215 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
14217         PR target/58382
14218         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
14219         calls to word_mode.
14221 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
14223         PR target/48094
14224         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
14225         seen.
14226         (darwin_objc1_section): Likewise.
14227         (darwin_file_end): Emit Image Info section when required.
14229 2013-09-14  Jan Hubicka  <jh@suse.cz>
14231         * tree-into-ssa.c (gate_into_ssa): New.
14232         (pass_data_build_ssa): Use it.
14233         * cgraph.h (expand_thunk): Update prototype.
14234         * cgraphunit.c (analyze_function): Expand thunks early.
14235         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
14236         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
14237         set lowered flag; do not add new function.
14238         (assemble_thunks_and_aliases): Update.
14239         * tree-ssa.c (gate_init_datastructures): New gate.
14240         (pass_data_init_datastructures): Use it.
14242 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
14244         PR target/58269
14245         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
14246         xmm register set described in the psABI.
14248 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
14250         * dwarf2out.c (should_emit_struct_debug): Add check
14251         for type_decl variable is not NULL.
14253 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
14255         * config.gcc: Use new winnt-c.c target hooks
14256         * config/t-winnt: New file
14257         * config/winnt-c.c: New file
14258         * doc/tm.texi.in: Document new hook
14259         * doc/tm.texi: Regenerated
14261 2013-09-13  Jan Hubicka  <jh@suse.cz>
14263         PR middle-end/58094
14264         * ipa-inline.c (check_callers): New function.
14265         (check_caller_edge): Remove.
14266         (want_inline_function_to_all_callers_p): Also permit alises that are
14267         called dirrectly.
14268         (inline_to_all_callers): Terminate the walk when devirtualization
14269         introduce new calls.
14271 2013-09-13  Jan Hubicka  <jh@suse.cz>
14273         * ipa-inline-analysis.c (struct growth_data): Add node.
14274         (do_estimate_growth_1): Fix detection of recursion.
14276 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
14278         PR tree-optimization/58392
14279         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
14280         to avoid shadowing of outer loop variable.  If
14281         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
14282         replace_by_duplicate_decl simduid of loops that have it set and
14283         set dest_cfun->has_simduid_loops and/or
14284         dest_cfun->has_force_vect_loops.
14285         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
14286         instead of maybe_lookup_decl.
14287         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
14288         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
14289         call.  Copy over force_vect and copy and remap simduid.  Set
14290         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
14291         (copy_cfg_body): Remove blocks_to_copy argument.  Use
14292         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
14293         caller.  Don't set cfun->has_simduid_loops and/or
14294         cfun->has_force_vect_loops here.
14295         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
14296         caller.
14297         (expand_call_inline, tree_function_versioning): Adjust copy_body
14298         callers.
14300 2013-09-13  Martin Jambor  <mjambor@suse.cz>
14302         PR bootstrap/58388
14303         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
14304         the assert if the edge was a speculative one.
14306 2013-09-13  Richard Biener  <rguenther@suse.de>
14308         * tree-data-ref.h (known_dependences_p): Move here ...
14309         * tree-loop-distribution.c (known_dependences_p): ... from here.
14310         (dump_rdg_component, debug_rdg_component): Remove.
14311         (dump_rdg): Adjust.
14312         (generate_loops_for_partition): Use gimple_uid instead of
14313         relying on matching stmt visit order.
14314         (rdg_build_partitions): Take starting stmt vector.
14315         (ldist_gen): Merge into ...
14316         (distribute_loop): ... this function.  Do not compute starting
14317         vertices vector.
14318         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
14320 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14322         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
14323         Set type attribute correctly. Set predicable_short_it attribute.
14324         (cmpsi_shiftsi): Remove %? from output template.
14326 2013-09-13  Richard Biener  <rguenther@suse.de>
14328         * tree-loop-distribution.c (struct rdg_component,
14329         rdg_defs_used_in_other_loops_p, free_rdg_components,
14330         rdg_build_components): Remove.
14331         (stmts_from_loop): Do not record virtual PHIs.
14332         (generate_loops_for_partition): Skip virtual PHIs.
14333         (build_rdg_partition_for_component): Rename to ...
14334         (build_rdg_partition_for_vertex): ... this and adjust.
14335         (rdg_build_partitions): Take a vector of starting vertices
14336         instead of components.  Remove unnecessary leftover handling.
14337         (ldist_gen): Do not build components or record other stores.
14338         (distribute_loop): Do not distribute loops containing stmts
14339         with side-effects.
14341 2013-09-13  Christian Bruel  <christian.bruel@st.com>
14343         PR target/58314
14344         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
14346 2013-09-13  Kai Tietz  <ktietz@redhat.com>
14348         * config.gcc: Separate cases for mingw and cygwin targets,
14349         and add 64-bit cygwin target case.
14351         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
14352         dll-export inline-functions.
14353         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
14355 2013-09-13  Jeff Law  <law@redhat.com>
14357         PR middle-end/58387
14358         Revert:
14359         2013-09-06  Jeff Law  <law@redhat.com>
14361         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
14362         edge implied equivalences into successor phis.
14364 2013-09-12  DJ Delorie  <dj@redhat.com>
14366         * config/rl78/rl78-virt.md: Change from | to \; for asm line
14367         separators.
14369 2013-09-12  Brooks Moses  <bmoses@google.com>
14371         PR driver/42955
14372         * Makefile.in: Do not install driver binaries in $(target)/bin.
14374 2013-09-12  DJ Delorie  <dj@redhat.com>
14376         * config/rl78/rl78.opt (mrelax): New.
14377         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
14378         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
14380         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
14381         between SP and FP.
14382         (rl78_expand_epilogue): Likewise.
14384 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
14386         PR middle-end/58335
14387         * lra-eliminations.c (remove_reg_equal_offset_note): New.
14388         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
14389         pointer elimination with using remove_reg_equal_offset_note.
14391 2013-09-12  DJ Delorie  <dj@redhat.com>
14393         * config/msp430/: New port.
14394         * config.gcc (msp430): Added.
14395         * doc/invoke.texi: Document MSP430 options.
14396         * doc/install.texi: Document msp430-elf
14397         * doc/md.texi: Document msp430-elf
14398         * doc/contrib.texi: Document msp430-elf
14400         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
14401         PSImode.
14403 2013-09-12  Martin Jambor  <mjambor@suse.cz>
14405         PR ipa/58389
14406         * ipa-prop.c (remove_described_reference): Give up if the edge in the
14407         reference descriptor is NULL.
14408         (ipa_edge_removal_hook): If owning a reference descriptor, set its
14409         edge to NULL.
14411 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
14413         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
14414         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
14415         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
14416         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
14417         make_temp_ssa_name): move to tree-ssanames.h
14418         * tree-ssa-alias.h: Move prototype.
14419         * tree-ssa.h: Include tree-ssanames.h.
14420         * tree-ssanames.c (FREE_SSANAMES): Move to here.
14421         * tree-ssanames.h: New.  Move items from tree-flow*.h
14422         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
14424 2013-09-12  Richard Biener  <rguenther@suse.de>
14426         PR tree-optimization/58404
14427         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
14428         propagate non-invariant addresses into dereferences wrapped
14429         in component references.
14431 2013-09-12  Richard Biener  <rguenther@suse.de>
14433         PR tree-optimization/58402
14434         * passes.def: Move pass_late_warn_uninitialized later.
14436 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
14438         * tree-ssa.h: New.  Move content from tree-flow.h and
14439         tree-flow-inline.h.
14440         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
14441         Move prototypes belonging to tree-ssa.c.
14442         * tree-flow-inline.h (redirect_edge_var_map_def,
14443         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
14444         tree-ssa.h.
14445         * gimple.h: Adjust prototypes.
14446         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
14447         to...
14448         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
14449         * tree.h: Move prototype to tree-ssa.h.
14450         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
14451         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
14452         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
14453         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
14454         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
14455         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
14456         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
14457         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
14458         graphite-blocking.c, graphite-clast-to-gimple.c,
14459         graphite-dependences.c, graphite-interchange.c,
14460         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
14461         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
14462         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
14463         ipa-reference.c, ipa-split.c, ipa-utils.c,
14464         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
14465         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
14466         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
14467         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
14468         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
14469         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
14470         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
14471         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
14472         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
14473         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
14474         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
14475         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
14476         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
14477         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
14478         value-prof.c, var-tracking.c,
14479         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
14481 2013-09-12  Richard Biener  <rguenther@suse.de>
14483         PR tree-optimization/58396
14484         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
14485         (build_rdg): Take a loop-nest parameter, fix memleaks.
14486         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
14488 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
14490         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
14491         for SLM.
14493 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
14495         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
14496         The FMA instruction names should have a 'v' prefix.
14498 2013-09-12  Richard Biener  <rguenther@suse.de>
14500         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
14501         (dot_rdg): Use popen instead of system in optional code.
14502         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
14503         (already_processed_vertex_p): Adjust.
14504         (has_anti_or_output_dependence, predecessor_has_mem_write,
14505         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
14506         rdg_flag_uses): Remove.
14507         (rdg_flag_vertex): Simplify.
14508         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
14509         remove recursion.
14510         (build_rdg_partition_for_component): Process the first vertex
14511         of a component only.
14512         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
14514 2013-09-12  Alan Modra  <amodra@gmail.com>
14516         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
14518 2013-09-11  DJ Delorie  <dj@redhat.com>
14519             Nick Clifton  <nickc@redhat.com>
14521         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
14522         (rl78_stack_based_mem): New.
14523         * config/rl78/constraints.md (Iv08): New.
14524         (Iv16): New.
14525         (Iv24): New.
14526         (Is09): New.
14527         (Is17): New.
14528         (Is25): New.
14529         (ISsi): New.
14530         (IShi): New.
14531         (ISqi): New.
14532         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
14533         (movhi): Likewise.
14534         (movsi): Change from expand to insn-and-split.
14535         (ashrsi3): Clobber AX.
14536         (lshrsi3): New.
14537         (ashlsi3): New.
14538         (cbranchsi4): New.
14539         * config/rl78/rl78.md (CC_REG): Fix.
14540         (addsi3): Allow memory and immediate operands.
14541         (addsi3_internal): Split into...
14542         (addsi3_internal_virt): ...new, and ...
14543         (addsi3_internal_real): ...new.
14544         (subsi): New.
14545         (subsi3_internal_virt): New.
14546         (subsi3_internal_real): New.
14547         (mulsi3): Add memory operand.
14548         (mulsi3_rl78): Likewise.
14549         (mulsi3_g13): Likewise.
14550         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
14551         (cbranchqi4_real): Add more constraint options.
14552         (cbranchhi4_real): Expand pattern.
14553         (cbranchhi4_real_signed): New.
14554         (cbranchhi4_real_inverted): New.
14555         (cbranchsi4_real_lt): New.
14556         (cbranchsi4_real_ge): New.
14557         (cbranchsi4_real_signed): New.
14558         (cbranchsi4_real): New.
14559         (peephole2): New.
14560         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
14561         constant shifts.
14562         (lshrsi3_virt): Likewise.
14563         (ashlsi3_virt): Likewise.
14564         (cbranchqi4_virt_signed): New.
14565         (cbranchhi4_virt_signed): New.
14566         (cbranchsi4_virt): New.
14567         * config/rl78/rl78.c: Whitespace fixes throughout.
14568         (move_elim_pass): New.
14569         (pass_data_rl78_move_elim): New.
14570         (pass_rl78_move_elim): New.
14571         (make_pass_rl78_move_elim): New.
14572         (rl78_devirt_info): Run devirt earlier.
14573         (rl78_move_elim_info): New.
14574         (rl78_asm_file_start): Register it.
14575         (rl78_split_movsi): New.
14576         (rl78_as_legitimate_address): Allow virtual base registers when
14577         appropriate.
14578         (rl78_addr_space_convert): Remove spurious debug stuff.
14579         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
14580         (rl78_print_operand): More cases for not printing '#'.
14581         (rl78_expand_compare): Remove most of the logic.
14582         (content_memory): New.
14583         (clear_content_memory): New.
14584         (get_content_index): New.
14585         (get_content_name): New.
14586         (display_content_memory): New.
14587         (update_content): New.
14588         (record_content): New.
14589         (already_contains): New.
14590         (insn_ok_now): Re-recog insns with virtual registers.
14591         (add_postponed_content_update): New.
14592         (process_postponed_content_update): New.
14593         (gen_and_emit_move): New.
14594         (transcode_memory_rtx): Record new location content.
14595         Use gen_and_emit_move.
14596         (force_into_acc): New.
14597         (move_to_acc): Use gen_and_emit_move.
14598         (move_from_acc): Likewise.
14599         (move_acc_to_reg): Likewise.
14600         (move_to_x): Likewise.
14601         (move_to_hl): Likewise.
14602         (move_to_de): Likewise.
14603         (rl78_alloc_physical_registers_op1): Record location content.
14604         (has_constraint): New.
14605         (rl78_alloc_physical_registers_op2): Record location content.
14606         Optimize use of HL.
14607         (rl78_alloc_physical_registers_ro1): Likewise.
14608         (rl78_alloc_physical_registers_cmp): Likewise.
14609         (rl78_alloc_physical_registers_umul): Likewise.
14610         (rl78_alloc_address_registers_macax): New.
14611         (rl78_alloc_physical_registers): Initialize and set location
14612         content memory as needed.
14613         (rl78_reorg): Make sure split2 is called.
14614         (rl78_rtx_costs): New.
14616 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
14618         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
14619         for (not (neg ...)) and (neg (not ...)) cases.
14621 2013-09-11  Richard Biener  <rguenther@suse.de>
14623         PR middle-end/58377
14624         * passes.def: Split critical edges before late uninit warning passes.
14625         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
14627 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
14629         PR tree-optimization/58385
14630         * fold-const.c (build_range_check): If both low and high are NULL,
14631         use omit_one_operand_loc to preserve exp side-effects.
14633 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14635         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
14637 2013-09-11  Richard Biener  <rguenther@suse.de>
14639         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
14640         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
14641         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
14642         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
14643         stmts_from_loop, known_dependences_p, build_empty_rdg,
14644         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
14645         * tree-loop-distribution.c: ... here.
14646         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
14647         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
14648         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
14649         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
14650         * tree-loop-distribution.c: ... here.
14651         * tree-loop-distribution.c: Include gimple-pretty-print.h.
14652         (struct partition_s): Add loops member.
14653         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
14654         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
14655         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
14657 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14658             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
14659             Sergey Lega  <sergey.s.lega@intel.com>
14660             Anna Tikhonova  <anna.tikhonova@intel.com>
14661             Ilya Tocar  <ilya.tocar@intel.com>
14662             Andrey Turetskiy  <andrey.turetskiy@intel.com>
14663             Ilya Verbin  <ilya.verbin@intel.com>
14664             Kirill Yukhin  <kirill.yukhin@intel.com>
14665             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14667         * config/i386/constraints.md (k): New.
14668         (Yk): Ditto.
14669         * config/i386/i386.c (const regclass_map): Add new mask registers.
14670         (dbx_register_map): Ditto.
14671         (dbx64_register_map): Ditto.
14672         (svr4_dbx_register_map): Ditto.
14673         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
14674         disabled.
14675         (ix86_preferred_reload_class): Disable constants for mask registers.
14676         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
14677         (ix86_hard_regno_mode_ok): Support new mask registers.
14678         (x86_order_regs_for_local_alloc): Ditto.
14679         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
14680         (FIXED_REGISTERS): Add new mask registers.
14681         (CALL_USED_REGISTERS): Ditto.
14682         (REG_ALLOC_ORDER): Ditto.
14683         (VALID_MASK_REG_MODE): New.
14684         (FIRST_MASK_REG): Ditto.
14685         (LAST_MASK_REG): Ditto.
14686         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
14687         (MAYBE_MASK_CLASS_P): New.
14688         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
14689         (REG_CLASS_CONTENTS): Ditto.
14690         (MASK_REGNO_P): New.
14691         (ANY_MASK_REG_P): Ditto.
14692         (HI_REGISTER_NAMES): Add new mask registers.
14693         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
14694         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
14695         mask registers.
14696         (attribute "type"): Add mskmov, msklog.
14697         (attribute "length_immediate"): Support them.
14698         (attribute "memory"): Ditto.
14699         (attribute "prefix_0f"): Ditto.
14700         (*movhi_internal): Support new mask registers.
14701         (*movqi_internal): Ditto.
14702         (define_split): Split out clobber pattern is a logic
14703         insn on mask registers.
14704         (*k<logic><mode>): New.
14705         (*andhi_1): Extend to support mask regs.
14706         (*andqi_1): Extend to support mask regs.
14707         (kandn<mode>): New.
14708         (define_split): Split and-not to and and not if operands
14709         are not mask regs.
14710         (*<code><mode>_1): Separate HI mode to new pattern...
14711         (*<code>hi_1): This.
14712         (*<code>qi_1): Extend to support mask regs.
14713         (kxnor<mode>): New.
14714         (kortestzhi): Ditto.
14715         (kortestchi): Ditto.
14716         (kunpckhi): Ditto.
14717         (*one_cmpl<mode>2_1): Remove HImode and handle it...
14718         (*one_cmplhi2_1): ...Here, now with mask registers support.
14719         (*one_cmplqi2_1): Support new mask registers.
14720         (HI/QImode arithmetics splitter): Don't split if mask registers
14721         are used.
14722         (HI/QImode not splitter): Ditto.
14723         * config/i386/predicated.md (mask_reg_operand): New.
14724         (general_reg_operand): Ditto.
14726 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
14728         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
14729         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
14731 2013-09-10  Jeff Law  <law@redhat.com>
14733         PR tree-optimization/58380
14734         * tree-ssa-threadupdate.c (thread_block): Recognize another case
14735         of threading through a buried loop header.
14737         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
14738         return value for single successor case.
14740 2013-09-10  Jan Hubicka  <jh@suse.cz>
14742         * ipa-devirt.c (ipa_devirt): Enable with LTO.
14744 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
14746         PR target/58361
14747         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
14748         support conditional execution.
14749         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
14751 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
14753         * lra.c (lra): Clear lra_optional_reload_pseudos before every
14754         constraint pass.
14755         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
14756         Check destination too to check move insn.
14757         (undo_optional_reloads): Add check that the original peudo did not
14758         changed its allocation and the optional reload was inherited on last
14759         inheritance pass.  Break loop after deciding to keep optional reload.
14760         (lra_undo_inheritance): Add check that inherited pseudo still in
14761         memory.
14763 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
14765         * config/aarch64/aarch64.md (generic_sched): New.
14766         * config/aarch64/aarch64-generic.md (load): Make conditional
14767         on generic_sched attribute.
14768         (nonload): Likewise.
14770 2013-09-10  Jan Hubicka  <jh@suse.cz>
14772         * lto-cgraph.c: Include ipa-utils.h.
14773         (compute_ltrans_boundary): Also add possible targets into the boundary.
14775 2013-09-10  Jan Hubicka  <jh@suse.cz>
14777         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
14778         VAR_DECL of vtable rather than full expression.
14780 2013-09-10  Jan Hubicka  <jh@suse.cz>
14781             Paolo Carlini  <paolo.carlini@oracle.com>
14783         * cgraphunit.c (analyze_functions): Save input_location, set it
14784         to UNKNOWN_LOCATION and restore it at the end.
14786 2013-09-10  Martin Jambor  <mjambor@suse.cz>
14788         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
14789         represented by a thunk.
14791 2013-09-10  Jeff Law  <law@redhat.com>
14793         PR tree-optimization/58343
14794         * tree-ssa-threadupdate.c (thread_block): Identify and disable
14795         jump threading requests through loop headers buried in the middle
14796         of a jump threading path.
14798         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
14799         in return value/type.
14801 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
14803         PR rtl-optimization/58365
14804         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
14805         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
14806         it differs.
14808 2013-09-10  Richard Biener  <rguenther@suse.de>
14810         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
14811         * tree-data-ref.c (create_rdg_vertices): Collect all data
14812         references, signal failure to the caller, use data-ref API.
14813         (build_rdg): Compute data references only once.  Maintain lifetime
14814         of data references and data dependences from within RDG.
14815         (free_rdg): Free dependence relations.
14816         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
14817         inventing extra dependences.
14818         (distribute_loop): Update for RDG API changes.
14820 2013-09-10  Kai Tietz  <ktietz@redhat.com>
14822         * doc/invoke.texi (fms-extensions): Document changed
14823         behavior for ms-abi targets.
14824         * config/i386/i386.c (ix86_option_override_internal):
14825         Set default value of option -fms-extension for ms-abi targets.
14827 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
14829         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
14831 2013-09-10  Alan Modra  <amodra@gmail.com>
14833         PR target/58330
14834         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
14836 2013-09-10  Alan Modra  <amodra@gmail.com>
14838         * config/rs6000/predicates.md (add_cint_operand): New.
14839         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
14840         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
14841         using add_cint_operand.
14842         (largetoc_high_plus_aix): Likewise.
14844 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
14846         PR tree-optimization/58364
14847         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
14848         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
14849         the current range can't be an unconditional true or false.
14851 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
14853         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
14855 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
14857         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
14859 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
14861         PR c++/43452
14862         * doc/invoke.texi (-Wdelete-incomplete): Document it.
14864 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
14866         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
14867         NO_REGS for immediate that can't be moved directly into FP_REGS.
14869 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14871         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
14872         comparison with negated operand.
14873         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
14874         RTL form.
14876 2013-09-09  Richard Biener  <rguenther@suse.de>
14878         PR middle-end/58326
14879         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
14880         of a subloop record all its block as affecting loop-closed SSA form.
14882 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14884         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
14885         of an rtx/bitpos pair.
14886         (store_fixed_bit_field): Update accordingly.
14888 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14890         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
14891         GEN_INT.
14892         * builtins.c (expand_errno_check): Likewise.
14893         * dwarf2cfi.c (init_return_column_size): Likewise.
14894         * except.c (sjlj_mark_call_sites): Likewise.
14895         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
14896         * lra-constraints.c (emit_inc): Likewise.
14897         * ree.c (combine_set_extension): Likewise.
14898         * regmove.c (fixup_match_2): Likewise.
14899         * reload1.c (inc_for_reload): Likewise.
14901 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14903         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
14904         (force_to_mode, simplify_shift_const_1, simplify_comparison):
14905         Use gen_int_mode with the mode of the associated simplify_* call.
14906         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
14907         * expmed.c (expand_shift_1): Likewise.
14908         * function.c (instantiate_virtual_regs_in_insn): Likewise.
14909         * loop-iv.c (iv_number_of_iterations): Likewise.
14910         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
14911         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14913 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14915         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
14916         of the associated expand_* call.
14917         (asan_emit_stack_protection): Likewise.
14918         * builtins.c (round_trampoline_addr): Likewise.
14919         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
14920         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
14921         (emit_store_flag): Likewise.
14922         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
14923         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
14924         Likewise.
14925         * function.c (instantiate_virtual_regs_in_insn): Likewise.
14926         * ifcvt.c (noce_try_store_flag_constants): Likewise.
14927         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
14928         * modulo-sched.c (generate_prolog_epilog): Likewise.
14929         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
14930         (expand_ctz, expand_ffs, expand_unop): Likewise.
14932 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14934         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
14935         of the associated gen_rtx_* call.
14936         * caller-save.c (init_caller_save): Likewise.
14937         * combine.c (find_split_point, make_extraction): Likewise.
14938         (make_compound_operation): Likewise.
14939         * dwarf2out.c (mem_loc_descriptor): Likewise.
14940         * explow.c (plus_constant, probe_stack_range): Likewise.
14941         * expmed.c (expand_mult_const): Likewise.
14942         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
14943         * reload1.c (init_reload): Likewise.
14944         * valtrack.c (cleanup_auto_inc_dec): Likewise.
14945         * var-tracking.c (adjust_mems): Likewise.
14946         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
14947         rather than gen_rtx_fmt_ee.
14949 2013-09-09  Jan Hubicka  <jh@suse.cz>
14951         PR middle-end/58294
14952         * value-prof.c (gimple_ic): Copy also abnormal edges.
14954 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
14956         * asan.c (asan_shadow_cst): Use gen_int_mode.
14958 2013-09-08  Jan Hubicka  <jh@suse.cz>
14960         * ipa-profile.c: Add toplevel comment.
14961         (ipa_propagate_frequency_1): Be more conservative when profile is read.
14962         (contains_hot_call_p): New function.
14963         (ipa_propagate_frequency): Set frequencies based on counts when
14964         profile is read.
14965         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
14966         profile; do not tamper with profile after inlining if it is read.
14968 2013-09-08  Jan Hubicka  <jh@suse.cz>
14970         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
14971         speculative edges.
14973 2013-09-08  Jan Hubicka  <jh@suse.cz>
14975         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
14976         summary generation.
14978 2013-09-08  Jeff Law  <law@redhat.com>
14980         PR bootstrap/58340
14981         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
14982         of 'found'.
14984 2013-09-08  Andi Kleen  <ak@linux.intel.com>
14986         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
14988 2013-09-08  Jan Hubicka  <jh@suse.cz>
14990         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
14992 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
14994         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
14995         for non-debug insns.
14996         * lra.c (new_insn_reg): Take the containing insn as a parameter.
14997         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
14998         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
14999         accordingly.
15001 2013-09-08  Jan Hubicka  <jh@suse.cz>
15003         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
15004         targets and devirtualize to BUILT_IN_UNREACHABLE.
15005         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
15006         * ipa.c (walk_polymorphic_call_targets): New function.
15007         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
15008         functions; use the new timevar.
15009         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
15010         was removed from the program.
15011         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
15012         not consider it in the walk when its vtable is dead.
15013         (possible_polymorphic_call_targets_1): Pass anonymous flag to
15014         record_binfo.
15015         (devirt_variable_node_removal_hook): New function.
15016         (possible_polymorphic_call_targets): Also register
15017         devirt_variable_node_removal_hook.
15018         (ipa_devirt): Do not do non-speculative devirtualization.
15019         (gate_ipa_devirt): One execute if devirtualizing speculatively.
15021 2013-09-08  Jan Hubicka  <jh@suse.cz>
15023         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
15024         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
15025         varpool_remove_variable_insertion_hook): Declare.
15026         * varpool.c (varpool_node_hook_list): New structure.
15027         (first_varpool_node_removal_hook,
15028         first_varpool_variable_insertion_hook): New variables.
15029         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
15030         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
15031         varpool_remove_variable_insertion_hook,
15032         varpool_call_variable_insertion_hooks): New functions.
15033         (varpool_remove_node): Use it.
15035 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
15037         PR c++/54941
15038         * diagnostic.c (diagnostic_build_prefix): When s.file is
15039         "<built-in>" don't output line and column numbers.
15041 2013-09-06  Jan Hubicka  <jh@suse.cz>
15043         * cgraphunit.c (expand_thunk): Get body before touching arguments.
15044         * lto-streamer-out.c: Stream thunks, too.
15045         * lto-streamer-in.c (input_function): Pop cfun here
15046         (lto_read_body): Instead of here.
15048 2013-09-06  Caroline Tice  <cmtice@google.com>
15050         * doc/install.texi: Add documentation for the --enable-vtable-verify
15051         and the --disable-libvtv configure options.
15053 2013-09-06  Jeff Law  <law@redhat.com>
15055         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
15056         edge implied equivalences into successor phis.
15058 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
15060         * resource.c (mark_referenced_resources): Handle COND_EXEC.
15062 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
15064         * resource.c (mark_target_live_regs): Compute resources taking
15065         into account if a call is predicated or not.
15067 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
15069         * toplev.c (output_stack_usage): Be prepared for suffixes created by
15070         the compiler in the function names.
15072 2013-09-06  Jan Hubicka  <jh@suse.cz>
15074         PR middle-end/58094
15075         * ipa-inline.c (has_caller_p): New function.
15076         (want_inline_function_to_all_callers_p): Use it.
15077         (sum_callers, inline_to_all_callers): Break out from ...
15078         (ipa_inline): ... here.
15080 2013-09-06  Jan Hubicka  <jh@suse.cz>
15082         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
15083         only when AVX is enabled.
15085 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15087         * config/aarch64/aarch64.md
15088         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
15089         is fpsimd_<load/store>2.
15090         (load_pair<mode>): Likewise.
15091         (store_pair<mode>): Likewise.
15093 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15095         * config/arm/types.md (type): Add "mrs" type.
15096         * config/aarch64/aarch64.md
15097         (aarch64_load_tp_hard): Make type "mrs".
15098         * config/arm/arm.md
15099         (load_tp_hard): Make type "mrs".
15100         * config/arm/cortex-a15.md: Update with new attributes.
15101         * config/arm/cortex-a5.md: Update with new attributes.
15102         * config/arm/cortex-a53.md: Update with new attributes.
15103         * config/arm/cortex-a7.md: Update with new attributes.
15104         * config/arm/cortex-a8.md: Update with new attributes.
15105         * config/arm/cortex-a9.md: Update with new attributes.
15106         * config/arm/cortex-m4.md: Update with new attributes.
15107         * config/arm/cortex-r4.md: Update with new attributes.
15108         * config/arm/fa526.md: Update with new attributes.
15109         * config/arm/fa606te.md: Update with new attributes.
15110         * config/arm/fa626te.md: Update with new attributes.
15111         * config/arm/fa726te.md: Update with new attributes.
15113 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15115         * config/aarch64/aarch64.md
15116         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
15117         (*movtf_aarch64): Likewise.
15118         * config/arm/arm.md
15119         (thumb1_movdi_insn): Use "multiple" for type where more than one
15120         instruction is used for a move.
15121         (*arm32_movhf): Likewise.
15122         (*thumb_movdf_insn): Likewise.
15124 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15126         * config/arm/types.md (type): Rename fcpys to fmov.
15127         * config/arm/vfp.md
15128         (*arm_movsi_vfp): Rename type fcpys as fmov.
15129         (*thumb2_movsi_vfp): Likewise
15130         (*movhf_vfp_neon): Likewise
15131         (*movhf_vfp): Likewise
15132         (*movsf_vfp): Likewise
15133         (*thumb2_movsf_vfp): Likewise
15134         (*movsfcc_vfp): Likewise
15135         (*thumb2_movsfcc_vfp): Likewise
15136         * config/aarch64/aarch64-simd.md
15137         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
15138         * config/aarch64/aarch64.md
15139         (*movsi_aarch64): Replace type mov_reg with fmovs.
15140         (*movdi_aarch64): Likewise
15141         (*movsf_aarch64): Likewise
15142         (*movdf_aarch64): Likewise
15143         * config/arm/arm.c
15144         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
15145         * config/arm/iwmmxt.md
15146         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
15147         * config/arm/arm1020e.md: Update with new attributes.
15148         * config/arm/cortex-a15-neon.md: Update with new attributes.
15149         * config/arm/cortex-a5.md: Update with new attributes.
15150         * config/arm/cortex-a53.md: Update with new attributes.
15151         * config/arm/cortex-a7.md: Update with new attributes.
15152         * config/arm/cortex-a8-neon.md: Update with new attributes.
15153         * config/arm/cortex-a9.md: Update with new attributes.
15154         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15155         * config/arm/cortex-r4f.md: Update with new attributes.
15156         * config/arm/marvell-pj4.md: Update with new attributes.
15157         * config/arm/vfp11.md: Update with new attributes.
15159 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15161         * config/aarch64/aarch64.md
15162         (*madd<mode>): Fix type attribute.
15163         (*maddsi_uxtw): Likewise.
15164         (*msub<mode>): Likewise.
15165         (*msubsi_uxtw): Likewise.
15166         (<su_optab>maddsidi4): Likewise.
15167         (<su_optab>msubsidi4): Likewise.
15169 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15171         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
15172         * config/arm/arm.md (core_cycles): Remove fdiv.
15173         * config/arm/vfp.md:
15174         (*sqrtsf2_vfp): Update for attribute changes.
15175         (*sqrtdf2_vfp): Likewise.
15176         * config/aarch64/aarch64.md:
15177         (sqrt<mode>2): Update for attribute changes.
15178         * config/arm/arm1020e.md: Update with new attributes.
15179         * config/arm/cortex-a15-neon.md: Update with new attributes.
15180         * config/arm/cortex-a5.md: Update with new attributes.
15181         * config/arm/cortex-a53.md: Update with new attributes.
15182         * config/arm/cortex-a7.md: Update with new attributes.
15183         * config/arm/cortex-a8-neon.md: Update with new attributes.
15184         * config/arm/cortex-a9.md: Update with new attributes.
15185         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15186         * config/arm/cortex-r4f.md: Update with new attributes.
15187         * config/arm/marvell-pj4.md: Update with new attributes.
15188         * config/arm/vfp11.md: Update with new attributes.
15190 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15192         * config/arm/types.md
15193         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
15194         * config/aarch64/aarch64.md
15195         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
15196         new attributes.
15197         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
15198         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
15199         (float<GPI:mode><GPF:mode>2): Likewise.
15200         * config/arm/vfp.md
15201         (*truncsisf2_vfp): Update with new attributes.
15202         (*truncsidf2_vfp): Likewise.
15203         (fixuns_truncsfsi2): Likewise.
15204         (fixuns_truncdfsi2): Likewise.
15205         (*floatsisf2_vfp): Likewise.
15206         (*floatsidf2_vfp): Likewise.
15207         (floatunssisf2): Likewise.
15208         (floatunssidf2): Likewise.
15209         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
15210         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
15211         * config/arm/arm1020e.md: Update with new attributes.
15212         * config/arm/cortex-a15-neon.md: Update with new attributes.
15213         * config/arm/cortex-a5.md: Update with new attributes.
15214         * config/arm/cortex-a53.md: Update with new attributes.
15215         * config/arm/cortex-a7.md: Update with new attributes.
15216         * config/arm/cortex-a8-neon.md: Update with new attributes.
15217         * config/arm/cortex-a9.md: Update with new attributes.
15218         * config/arm/cortex-m4-fpu.md: Update with new attributes.
15219         * config/arm/cortex-r4f.md: Update with new attributes.
15220         * config/arm/marvell-pj4.md: Update with new attributes.
15221         * config/arm/vfp11.md: Update with new attributes.
15223 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15225         * config/aarch64/arm_neon.h
15226         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
15227         (vqtbx<1,2,3,4><q>_s8): Likewise.
15229 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15231         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
15232         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
15233         (add<mode>3): Add type attribute.
15234         (add<mode>3): Likewise.
15235         (usadd<mode>3): Likewise.
15236         (ssadd<mode>3): Likewise.
15237         (sub<mode>3): Likewise.
15238         (sub<mode>3): Likewise.
15239         (ussub<mode>3): Likewise.
15240         (sssub<mode>3): Likewise.
15241         (ssmulsa3): Likewise.
15242         (usmulusa3): Likewise.
15243         (arm_usatsihi): Likewise.
15244         * config/arm/vfp.md
15245         (*movdi_vfp): Add types for all instructions.
15246         (*movdi_vfp_cortexa8): Likewise.
15247         (*movhf_vfp_neon): Likewise.
15248         (*movhf_vfp): Likewise.
15249         (*movdf_vfp): Likewise.
15250         (*thumb2_movdf_vfp): Likewise.
15251         (*thumb2_movdfcc_vfp): Likewise.
15252         * config/arm/arm.md: Add type attribute to all insn patterns.
15253         (*thumb1_adddi3): Add type attribute.
15254         (*arm_adddi3): Likewise.
15255         (*adddi_sesidi_di): Likewise.
15256         (*adddi_zesidi_di): Likewise.
15257         (*thumb1_addsi3): Likewise.
15258         (addsi3_compare0): Likewise.
15259         (*addsi3_compare0_scratch): Likewise.
15260         (*compare_negsi_si): Likewise.
15261         (cmpsi2_addneg): Likewise.
15262         (*addsi3_carryin_<optab>): Likewise.
15263         (*addsi3_carryin_alt2_<optab>): Likewise.
15264         (*addsi3_carryin_clobercc_<optab>): Likewise.
15265         (*subsi3_carryin): Likewise.
15266         (*subsi3_carryin_const): Likewise.
15267         (*subsi3_carryin_compare): Likewise.
15268         (*subsi3_carryin_compare_const): Likewise.
15269         (*arm_subdi3): Likewise.
15270         (*thumb_subdi3): Likewise.
15271         (*subdi_di_zesidi): Likewise.
15272         (*subdi_di_sesidi): Likewise.
15273         (*subdi_zesidi_di): Likewise.
15274         (*subdi_sesidi_di): Likewise.
15275         (*subdi_zesidi_ze): Likewise.
15276         (thumb1_subsi3_insn): Likewise.
15277         (*arm_subsi3_insn): Likewise.
15278         (*anddi3_insn): Likewise.
15279         (*anddi_zesidi_di): Likewise.
15280         (*anddi_sesdi_di): Likewise.
15281         (*ne_zeroextracts): Likewise.
15282         (*ne_zeroextracts): Likewise.
15283         (*ite_ne_zeroextr): Likewise.
15284         (*ite_ne_zeroextr): Likewise.
15285         (*anddi_notdi_di): Likewise.
15286         (*anddi_notzesidi): Likewise.
15287         (*anddi_notsesidi): Likewise.
15288         (andsi_notsi_si): Likewise.
15289         (thumb1_bicsi3): Likewise.
15290         (*iordi3_insn): Likewise.
15291         (*iordi_zesidi_di): Likewise.
15292         (*iordi_sesidi_di): Likewise.
15293         (*thumb1_iorsi3_insn): Likewise.
15294         (*xordi3_insn): Likewise.
15295         (*xordi_zesidi_di): Likewise.
15296         (*xordi_sesidi_di): Likewise.
15297         (*arm_xorsi3): Likewise.
15298         (*andsi_iorsi3_no): Likewise.
15299         (*smax_0): Likewise.
15300         (*smax_m1): Likewise.
15301         (*arm_smax_insn): Likewise.
15302         (*smin_0): Likewise.
15303         (*arm_smin_insn): Likewise.
15304         (*arm_umaxsi3): Likewise.
15305         (*arm_uminsi3): Likewise.
15306         (*minmax_arithsi): Likewise.
15307         (*minmax_arithsi_): Likewise.
15308         (*satsi_<SAT:code>): Likewise.
15309         (arm_ashldi3_1bit): Likewise.
15310         (arm_ashrdi3_1bit): Likewise.
15311         (arm_lshrdi3_1bit): Likewise.
15312         (*arm_negdi2): Likewise.
15313         (*thumb1_negdi2): Likewise.
15314         (*arm_negsi2): Likewise.
15315         (*thumb1_negsi2): Likewise.
15316         (*negdi_extendsid): Likewise.
15317         (*negdi_zero_extend): Likewise.
15318         (*arm_abssi2): Likewise.
15319         (*thumb1_abssi2): Likewise.
15320         (*arm_neg_abssi2): Likewise.
15321         (*thumb1_neg_abss): Likewise.
15322         (one_cmpldi2): Likewise.
15323         (extend<mode>di2): Likewise.
15324         (*compareqi_eq0): Likewise.
15325         (*arm_extendhisi2addsi): Likewise.
15326         (*arm_movdi): Likewise.
15327         (*thumb1_movdi_insn): Likewise.
15328         (*arm_movt): Likewise.
15329         (*thumb1_movsi_insn): Likewise.
15330         (pic_add_dot_plus_four): Likewise.
15331         (pic_add_dot_plus_eight): Likewise.
15332         (tls_load_dot_plus_eight): Likewise.
15333         (*thumb1_movhi_insn): Likewise.
15334         (*thumb1_movsf_insn): Likewise.
15335         (*movdf_soft_insn): Likewise.
15336         (*thumb_movdf_insn): Likewise.
15337         (cbranchsi4_insn): Likewise.
15338         (cbranchsi4_scratch): Likewise.
15339         (*negated_cbranchsi4): Likewise.
15340         (*tbit_cbranch): Likewise.
15341         (*tlobits_cbranch): Likewise.
15342         (*tstsi3_cbranch): Likewise.
15343         (*cbranchne_decr1): Likewise.
15344         (*addsi3_cbranch): Likewise.
15345         (*addsi3_cbranch_scratch): Likewise.
15346         (*arm_cmpdi_insn): Likewise.
15347         (*arm_cmpdi_unsig): Likewise.
15348         (*arm_cmpdi_zero): Likewise.
15349         (*thumb_cmpdi_zero): Likewise.
15350         (*deleted_compare): Likewise.
15351         (*mov_scc): Likewise.
15352         (*mov_negscc): Likewise.
15353         (*mov_notscc): Likewise.
15354         (*cstoresi_eq0_thumb1_insn): Likewise.
15355         (cstoresi_nltu_thumb1): Likewise.
15356         (cstoresi_ltu_thu): Likewise.
15357         (thumb1_addsi3_addgeu): Likewise.
15358         (*arm_jump): Likewise.
15359         (*thumb_jump): Likewise.
15360         (*check_arch2): Likewise.
15361         (arm_casesi_internal): Likewise.
15362         (thumb1_casesi_dispatch): Likewise.
15363         (*arm_indirect_jump): Likewise.
15364         (*thumb1_indirect_jump): Likewise.
15365         (nop): Likewise.
15366         (*and_scc): Likewise.
15367         (*ior_scc): Likewise.
15368         (*compare_scc): Likewise.
15369         (*cond_move): Likewise.
15370         (*cond_arith): Likewise.
15371         (*cond_sub): Likewise.
15372         (*cmp_ite0): Likewise.
15373         (*cmp_ite1): Likewise.
15374         (*cmp_and): Likewise.
15375         (*cmp_ior): Likewise.
15376         (*ior_scc_scc): Likewise.
15377         (*ior_scc_scc_cmp): Likewise.
15378         (*and_scc_scc): Likewise.
15379         (*and_scc_scc_cmp): Likewise.
15380         (*and_scc_scc_nod): Likewise.
15381         (*negscc): Likewise.
15382         (movcond_addsi): Likewise.
15383         (movcond): Likewise.
15384         (*ifcompare_plus_move): Likewise.
15385         (*if_plus_move): Likewise.
15386         (*ifcompare_move_plus): Likewise.
15387         (*if_move_plus): Likewise.
15388         (*ifcompare_arith_arith): Likewise.
15389         (*if_arith_arith): Likewise.
15390         (*ifcompare_arith_move): Likewise.
15391         (*if_arith_move): Likewise.
15392         (*ifcompare_move_arith): Likewise.
15393         (*if_move_arith): Likewise.
15394         (*ifcompare_move_not): Likewise.
15395         (*if_move_not): Likewise.
15396         (*ifcompare_not_move): Likewise.
15397         (*if_not_move): Likewise.
15398         (*ifcompare_shift_move): Likewise.
15399         (*if_shift_move): Likewise.
15400         (*ifcompare_move_shift): Likewise.
15401         (*if_move_shift): Likewise.
15402         (*ifcompare_shift_shift): Likewise.
15403         (*ifcompare_not_arith): Likewise.
15404         (*ifcompare_arith_not): Likewise.
15405         (*if_arith_not): Likewise.
15406         (*ifcompare_neg_move): Likewise.
15407         (*if_neg_move): Likewise.
15408         (*ifcompare_move_neg): Likewise.
15409         (*if_move_neg): Likewise.
15410         (prologue_thumb1_interwork): Likewise.
15411         (*cond_move_not): Likewise.
15412         (*sign_extract_onebit): Likewise.
15413         (*not_signextract_onebit): Likewise.
15414         (stack_tie): Likewise.
15415         (align_4): Likewise.
15416         (align_8): Likewise.
15417         (consttable_end): Likewise.
15418         (consttable_1): Likewise.
15419         (consttable_2): Likewise.
15420         (consttable_4): Likewise.
15421         (consttable_8): Likewise.
15422         (consttable_16): Likewise.
15423         (*thumb1_tablejump): Likewise.
15424         (prefetch): Likewise.
15425         (force_register_use): Likewise.
15426         (thumb_eh_return): Likewise.
15427         (load_tp_hard): Likewise.
15428         (load_tp_soft): Likewise.
15429         (tlscall): Likewise.
15430         (*arm_movtas_ze): Likewise.
15431         (*arm_rev): Likewise.
15432         (*arm_revsh): Likewise.
15433         (*arm_rev16): Likewise.
15434         * config/arm/thumb2.md
15435         (*thumb2_smaxsi3): Likewise.
15436         (*thumb2_sminsi3): Likewise.
15437         (*thumb32_umaxsi3): Likewise.
15438         (*thumb2_uminsi3): Likewise.
15439         (*thumb2_negdi2): Likewise.
15440         (*thumb2_abssi2): Likewise.
15441         (*thumb2_neg_abss): Likewise.
15442         (*thumb2_movsi_insn): Likewise.
15443         (tls_load_dot_plus_four): Likewise.
15444         (*thumb2_movhi_insn): Likewise.
15445         (*thumb2_mov_scc): Likewise.
15446         (*thumb2_mov_negs): Likewise.
15447         (*thumb2_mov_negs): Likewise.
15448         (*thumb2_mov_nots): Likewise.
15449         (*thumb2_mov_nots): Likewise.
15450         (*thumb2_movsicc_): Likewise.
15451         (*thumb2_movsfcc_soft_insn): Likewise.
15452         (*thumb2_indirect_jump): Likewise.
15453         (*thumb2_and_scc): Likewise.
15454         (*thumb2_ior_scc): Likewise.
15455         (*thumb2_ior_scc_strict_it): Likewise.
15456         (*thumb2_cond_move): Likewise.
15457         (*thumb2_cond_arith): Likewise.
15458         (*thumb2_cond_ari): Likewise.
15459         (*thumb2_cond_sub): Likewise.
15460         (*thumb2_negscc): Likewise.
15461         (*thumb2_movcond): Likewise.
15462         (thumb2_casesi_internal): Likewise.
15463         (thumb2_casesi_internal_pic): Likewise.
15464         (*thumb2_alusi3_short): Likewise.
15465         (*thumb2_mov<mode>_shortim): Likewise.
15466         (*thumb2_addsi_short): Likewise.
15467         (*thumb2_subsi_short): Likewise.
15468         (thumb2_addsi3_compare0): Likewise.
15469         (*thumb2_cbz): Likewise.
15470         (*thumb2_cbnz): Likewise.
15471         (*thumb2_one_cmplsi2_short): Likewise.
15472         (*thumb2_negsi2_short): Likewise.
15473         (*orsi_notsi_si): Likewise.
15474         * config/arm/arm1020e.md: Update with new attributes.
15475         * config/arm/arm1026ejs.md: Update with new attributes.
15476         * config/arm/arm1136jfs.md: Update with new attributes.
15477         * config/arm/arm926ejs.md: Update with new attributes.
15478         * config/arm/cortex-a15.md: Update with new attributes.
15479         * config/arm/cortex-a5.md: Update with new attributes.
15480         * config/arm/cortex-a53.md: Update with new attributes.
15481         * config/arm/cortex-a7.md: Update with new attributes.
15482         * config/arm/cortex-a8.md: Update with new attributes.
15483         * config/arm/cortex-a9.md: Update with new attributes.
15484         * config/arm/cortex-m4.md: Update with new attributes.
15485         * config/arm/cortex-r4.md: Update with new attributes.
15486         * config/arm/fa526.md: Update with new attributes.
15487         * config/arm/fa606te.md: Update with new attributes.
15488         * config/arm/fa626te.md: Update with new attributes.
15489         * config/arm/fa726te.md: Update with new attributes.
15491 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
15493         * config/aarch64/aarch64-simd.md
15494         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
15495         <vwx> iterator to ensure correct register choice.
15496         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
15497         (aarch64_sqdmull_n<mode>): Likewise.
15498         (aarch64_sqdmull2_n<mode>_internal): Likewise.
15499         * config/aarch64/arm_neon.h
15500         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
15501         (vml<as><q>_n_<su>16): Likewise.
15502         (vml<as>l_high_lane<q>_<su>16): Likewise.
15503         (vml<as>l_high_n_<su>16): Likewise.
15504         (vml<as>l_lane<q>_<su>16): Likewise.
15505         (vml<as>l_n_<su>16): Likewise.
15506         (vmul<q>_lane<q>_<su>16): Likewise.
15507         (vmul<q>_n_<su>16): Likewise.
15508         (vmull_lane<q>_<su>16): Likewise.
15509         (vmull_n_<su>16): Likewise.
15510         (vmull_high_lane<q>_<su>16): Likewise.
15511         (vmull_high_n_<su>16): Likewise.
15512         (vqrdmulh<q>_n_s16): Likewise.
15514 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
15516         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
15517         have the correct lane parameter.
15519 2013-09-06  Richard Biener <rguenther@suse.de>
15521         * cfganal.c (control_dependences::~control_dependences):
15522         Properly free all of the vector.
15524 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
15526         PR target/58269
15527         * config/i386/i386.c (ix86_conditional_register_usage):
15528         Proper initialize extended SSE registers.
15530 2013-09-06  Jan Hubicka  <jh@suse.cz>
15532         PR tree-optimization/58311
15533         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
15535 2013-09-06  Jan Hubicka  <jh@suse.cz>
15537         * Makefile.in (tree-sra.o): Update dependencies.
15538         * tree-sra.c: Include ipa-utils.h
15539         (scan_function): Use recursive_call_p.
15540         (has_caller_p): New function.
15541         (cgraph_for_node_and_aliases): Count also callers of aliases.
15543 2013-09-06  Jan Hubicka  <jh@suse.cz>
15545         PR middle-end/58094
15546         * cgraph.h (symtab_semantically_equivalent_p): Declare.
15547         * tree-tailcall.c: Include ipa-utils.h.
15548         (find_tail_calls): Use it.
15549         * ipa-pure-const.c (check_call): Likewise.
15550         * ipa-utils.c (recursive_call_p): New function.
15551         * ipa-utils.h (recursive_call_p): Dclare.
15552         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
15553         (symtab_semantically_equivalent_p): New function.
15554         * Makefile.in (tree-tailcall.o): Update dependencies.
15556 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
15558         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
15559         non-inlinable part.
15561 2013-09-06  Richard Biener  <rguenther@suse.de>
15563         * lto-streamer.h (lto_global_var_decls): Remove.
15564         * Makefile.in (OBJS): Remove lto-symtab.o.
15565         (lto-symtab.o): Remove.
15566         (GTFILES): Remove lto-symtab.c
15567         * lto-symtab.c: Move to lto/
15569 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15571         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
15572         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
15573         (UNSPEC_FPINT_RINT): New constant definitions.
15574         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
15575         definition with 2 attributes.
15576         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
15577         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
15578         definitions.
15580 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15582         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
15583         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
15584         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
15585         attribute to "z196_alone".
15586         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
15587         "zEC12_simple".
15589 2013-09-06  Richard Biener  <rguenther@suse.de>
15591         * basic-block.h (class control_dependences): New.
15592         * tree-ssa-dce.c (control_dependence_map): Remove.
15593         (cd): New global.
15594         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
15595         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
15596         find_pdom, find_control_dependence, find_all_control_dependences):
15597         Move to cfganal.c.
15598         (mark_control_dependent_edges_necessary,
15599         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
15600         tree_dce_done, perform_tree_ssa_dce): Adjust.
15601         * cfganal.c (set_control_dependence_map_bit,
15602         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
15603         find_all_control_dependences): Move from tree-ssa-dce.c and
15604         implement as methods of control_dependences class.
15605         (control_dependences::control_dependences): New.
15606         (control_dependences::~control_dependences): Likewise.
15607         (control_dependences::get_edges_dependent_on): Likewise.
15608         (control_dependences::get_edge): Likewise.
15610 2013-09-04  Jan Hubicka  <jh@suse.cz>
15612         * tree.c (types_same_for_odr): Drop overactive check.
15613         * ipa-devirt.c (hash_type_name): Likewise.
15615 2013-09-04  Jan Hubicka  <jh@suse.cz>
15617         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
15618         (analyze_functions): ... here.
15620 2013-09-04  Jan Hubicka  <jh@suse.cz>
15622         PR middle-end/58201
15623         * cgraphunit.c (analyze_functions): Clear AUX fields
15624         after processing; initialize assembler name has.
15626 2013-09-05  Jeff Law  <law@redhat.com>
15628         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
15629         from thread_around_empty_block.  Record threading path into PATH.
15630         Recurse if threading through the initial block is successful.
15631         (thread_across_edge): Corresponding changes to slightly simplify.
15633 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
15635         * config/aarch64/aarch64.md
15636         (type): Remove frecpe, frecps, frecpx.
15637         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
15638         fix to be a TARGET_SIMD instruction.
15639         (aarch64_frecps): Remove.
15640         * config/aarch64/aarch64-simd.md
15641         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
15642         (aarch64_frecps<mode>): Handle all float/vector of float modes.
15644 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
15645             Sofiane Naci  <sofiane.naci@arm.com>
15647         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
15648         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
15649         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
15650         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
15651         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
15652         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
15653         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
15654         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
15655         into "clz, "rbit".  Rename "shift" to "shift_imm".
15656         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
15657         changes.  Update for attribute changes all occurrences of arlo_* and
15658         shift* types.
15659         * config/arm/arm-fixed.md: Update for attribute changes
15660         all occurrences of arlo_* types.
15661         * config/arm/thumb2.md: Update for attribute changes all occurrences
15662         of arlo_* types.
15663         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
15664         (cortexa7_older_only): Likewise.
15665         (cortexa7_younger):  Likewise.
15666         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
15667         (1020alu_shift_op): Likewise.
15668         (1020alu_shift_reg_op): Likewise.
15669         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
15670         (alu_shift_op): Likewise.
15671         (alu_shift_reg_op): Likewise.
15672         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
15673         (11_alu_shift_op): Likewise.
15674         (11_alu_shift_reg_op): Likewise.
15675         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
15676         (9_alu_shift_reg_op): Likewise.
15677         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
15678         attribute changes.
15679         (cortex_a15_alu_shift): Likewise.
15680         (cortex_a15_alu_shift_reg): Likewise.
15681         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
15682         attribute changes.
15683         (cortex_a5_alu_shift): Likewise.
15684         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
15685         attribute changes.
15686         (cortex_a53_alu_shift): Likewise.
15687         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
15688         attribute changes.
15689         (cortex_a7_alu_reg): Likewise.
15690         (cortex_a7_alu_shift): Likewise.
15691         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
15692         attribute changes.
15693         (cortex_a8_alu_shift): Likewise.
15694         (cortex_a8_alu_shift_reg): Likewise.
15695         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
15696         (cortex_a9_dp_shift): Likewise.
15697         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
15698         attribute changes.
15699         * config/arm/cortex-r4.md
15700         (cortex_r4_alu): Update for attribute changes.
15701         (cortex_r4_mov): Likewise.
15702         (cortex_r4_alu_shift_reg): Likewise.
15703         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
15704         (526_alu_shift_op): Likewise.
15705         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
15706         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
15707         (626te_alu_shift_op): Likewise.
15708         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
15709         (726te_alu_shift_op): Likewise.
15710         (726te_alu_shift_reg_op): Likewise.
15711         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
15712         (mp626_alu_shift_op): Likewise.
15713         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
15714         (pj4_alu_conds): Likewise.
15715         (pj4_shift): Likewise.
15716         (pj4_shift_conds): Likewise.
15717         (pj4_alu_shift): Likewise.
15718         (pj4_alu_shift_conds): Likewise.
15719         * config/aarch64/aarch64.md: Update for attribute change
15720         all occurrences of arlo_* and shift* types.
15722 2013-09-05  Mike Stump  <mikestump@comcast.net>
15724         * tree.h: Move documentation for tree_function_decl to tree-core.h
15725         with the declaration.
15727 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
15729         PR target/58139
15730         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
15731         looking for widest mode.
15733 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
15735         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
15737 2013-09-05  Richard Biener  <rguenther@suse.de>
15739         PR tree-optimization/58137
15740         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
15741         Do not create vectors of pointers.
15742         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
15743         types for the components of the vector initializer.
15744         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
15745         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
15747 2013-09-05  Martin Jambor  <mjambor@suse.cz>
15749         * ipa-prop.c (remove_described_reference): Accept missing references,
15750         return false if that hppens, otherwise return true.
15751         (cgraph_node_for_jfunc): New function.
15752         (try_decrement_rdesc_refcount): Likewise.
15753         (try_make_edge_direct_simple_call): Use them.
15754         (ipa_edge_removal_hook): Remove references from rdescs.
15755         (ipa_edge_duplication_hook): Clone rdescs and their references
15756         when the new edge has the same caller as the old one.
15757         * cgraph.c (cgraph_resolve_speculation): Remove speculative
15758         reference before removing any edges.
15760 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
15762         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
15763         initial store.
15764         * thumb2.md (thumb2_storewb_parisi): New pattern.
15766 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
15768         * config/aarch64/aarch64-option-extensions.def: Add
15769         AARCH64_OPT_EXTENSION of 'crc'.
15770         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
15771         (AARCH64_ISA_CRC): Ditto.
15772         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
15773         description of the CRC extension.
15775 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15777         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
15778         * config/rs6000/linux.h: Ditto.
15779         * alpha/linux.h: Ditto.
15780         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
15781         no_c99_libc_has_function.
15782         * config/c6x/uclinux-elf.h: Ditto.
15783         * config/lm32/uclinux-elf.h: Ditto.
15784         * config/m68k/uclinux.h: Ditto.
15785         * config/moxie/uclinux.h: Ditto.
15786         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
15787         (crisv32-*-linux*, cris-*-linux*): Ditto.
15788         * config/bfin/bfin.c: Include "tm_p.h".
15790 2013-09-05  Richard Biener  <rguenther@suse.de>
15792         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
15793         check for a definition without a basic-block.
15795 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
15796             Sofiane Naci <sofiane.naci@arm.com>
15798         * config/aarch64/aarch64.md
15799         (*movti_aarch64): Rename r_2_f and f_2_r.
15800         (*movsf_aarch64): Likewise.
15801         (*movdf_aarch64): Likewise.
15802         (*movtf_aarch64): Likewise.
15803         (aarch64_movdi_<mode>low): Likewise.
15804         (aarch64_movdi_<mode>high): Likewise.
15805         (aarch64_mov<mode>high_di): Likewise.
15806         (aarch64_mov<mode>low_di): Likewise.
15807         (aarch64_movtilow_tilow): Likewise.
15808         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
15809         values to config/arm/types.md
15810         (attribute "conds"): Update for attribute change.
15811         (anddi3_insn): Likewise.
15812         (iordi3_insn): Likewise.
15813         (xordi3_insn): Likewise.
15814         (one_cmpldi2): Likewise.
15815         * config/arm/types.md (type): Add Neon types.
15816         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
15817         use "type" attribute.
15818         (movmisalign<mode>_neon_store): Likewise.
15819         (movmisalign<mode>_neon_load): Likewise.
15820         (vec_set<mode>_internal): Likewise.
15821         (vec_setv2di_internal): Likewise.
15822         (vec_extract<mode>): Likewise.
15823         (vec_extractv2di): Likewise.
15824         (add<mode>3_neon): Likewise.
15825         (adddi3_neon): Likewise.
15826         (sub<mode>3_neon): Likewise.
15827         (subdi3_neon): Likewise.
15828         (mul<mode>3_neon): Likewise.
15829         (mul<mode>3add<mode>_neon): Likewise.
15830         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
15831         (fma<VCVTF:mode>4)): Likewise.
15832         (fma<VCVTF:mode>4_intrinsic): Likewise.
15833         (fmsub<VCVTF:mode>4)): Likewise.
15834         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
15835         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
15836         (ior<mode>3): Likewise.
15837         (and<mode>3): Likewise.
15838         (anddi3_neon): Likewise.
15839         (orn<mode>3_neon): Likewise.
15840         (orndi3_neon): Likewise.
15841         (bic<mode>3_neon): Likewise.
15842         (bicdi3_neon): Likewise.
15843         (xor<mode>3): Likewise.
15844         (one_cmpl<mode>2): Likewise.
15845         (abs<mode>2): Likewise.
15846         (neg<mode>2): Likewise.
15847         (umin<mode>3_neon): Likewise.
15848         (umax<mode>3_neon): Likewise.
15849         (smin<mode>3_neon): Likewise.
15850         (smax<mode>3_neon): Likewise.
15851         (vashl<mode>3): Likewise.
15852         (vashr<mode>3_imm): Likewise.
15853         (vlshr<mode>3_imm): Likewise.
15854         (ashl<mode>3_signed): Likewise.
15855         (ashl<mode>3_unsigned): Likewise.
15856         (neon_load_count): Likewise.
15857         (ashldi3_neon_noclobber): Likewise.
15858         (signed_shift_di3_neon): Likewise.
15859         (unsigned_shift_di3_neon): Likewise.
15860         (ashrdi3_neon_imm_noclobber): Likewise.
15861         (lshrdi3_neon_imm_noclobber): Likewise.
15862         (widen_ssum<mode>3): Likewise.
15863         (widen_usum<mode>3): Likewise.
15864         (quad_halves_<code>v4si): Likewise.
15865         (quad_halves_<code>v4sf): Likewise.
15866         (quad_halves_<code>v8hi): Likewise.
15867         (quad_halves_<code>v16qi): Likewise.
15868         (reduc_splus_v2di): Likewise.
15869         (neon_vpadd_internal<mode>): Likewise.
15870         (neon_vpsmin<mode>): Likewise.
15871         (neon_vpsmax<mode>): Likewise.
15872         (neon_vpumin<mode>): Likewise.
15873         (neon_vpumax<mode>): Likewise.
15874         (ss_add<mode>_neon): Likewise.
15875         (us_add<mode>_neon): Likewise.
15876         (ss_sub<mode>_neon): Likewise.
15877         (us_sub<mode>_neon): Likewise.
15878         (neon_vadd<mode>_unspec): Likewise.
15879         (neon_vaddl<mode>): Likewise.
15880         (neon_vaddw<mode>): Likewise.
15881         (neon_vhadd<mode>): Likewise.
15882         (neon_vqadd<mode>): Likewise.
15883         (neon_vaddhn<mode>): Likewise.
15884         (neon_vmul<mode>): Likewise.
15885         (neon_vmla<mode>): Likewise.
15886         (neon_vmlal<mode>): Likewise.
15887         (neon_vmls<mode>): Likewise.
15888         (neon_vmlsl<mode>): Likewise.
15889         (neon_vqdmulh<mode>): Likewise.
15890         (neon_vqdmlal<mode>): Likewise.
15891         (neon_vqdmlsl<mode>): Likewise.
15892         (neon_vmull<mode>): Likewise.
15893         (neon_vqdmull<mode>): Likewise.
15894         (neon_vsub<mode>_unspec): Likewise.
15895         (neon_vsubl<mode>): Likewise.
15896         (neon_vsubw<mode>): Likewise.
15897         (neon_vqsub<mode>): Likewise.
15898         (neon_vhsub<mode>): Likewise.
15899         (neon_vsubhn<mode>): Likewise.
15900         (neon_vceq<mode>): Likewise.
15901         (neon_vcge<mode>): Likewise.
15902         (neon_vcgeu<mode>): Likewise.
15903         (neon_vcgt<mode>): Likewise.
15904         (neon_vcgtu<mode>): Likewise.
15905         (neon_vcle<mode>): Likewise.
15906         (neon_vclt<mode>): Likewise.
15907         (neon_vcage<mode>): Likewise.
15908         (neon_vcagt<mode>): Likewise.
15909         (neon_vtst<mode>): Likewise.
15910         (neon_vabd<mode>): Likewise.
15911         (neon_vabdl<mode>): Likewise.
15912         (neon_vaba<mode>): Likewise.
15913         (neon_vabal<mode>): Likewise.
15914         (neon_vmax<mode>): Likewise.
15915         (neon_vmin<mode>): Likewise.
15916         (neon_vpaddl<mode>): Likewise.
15917         (neon_vpadal<mode>): Likewise.
15918         (neon_vpmax<mode>): Likewise.
15919         (neon_vpmin<mode>): Likewise.
15920         (neon_vrecps<mode>): Likewise.
15921         (neon_vrsqrts<mode>): Likewise.
15922         (neon_vqabs<mode>): Likewise.
15923         (neon_vqneg<mode>): Likewise.
15924         (neon_vcls<mode>): Likewise.
15925         (clz<mode>2): Likewise.
15926         (popcount<mode>2): Likewise.
15927         (neon_vrecpe): Likewise.
15928         (neon_vrsqrte): Likewise.
15929         (neon_vget_lane<mode>_sext_internal): Likewise.
15930         (neon_vget_lane<mode>_zext_internal): Likewise.
15931         (neon_vdup_n<mode>): Likewise.
15932         (neon_vdup_nv2di): Likewise.
15933         (neon_vdpu_lane<mode>_internal): Likewise.
15934         (neon_vswp<mode>): Likewise.
15935         (float<mode><V_cvtto>2): Likewise.
15936         (floatuns<mode><V_cvtto>2): Likewise.
15937         (fix_trunc<mode><V_cvtto>)2): Likewise
15938         (fixuns_trunc<mode><V_cvtto)2): Likewise.
15939         (neon_vcvt<mode>): Likewise.
15940         (neon_vcvtv4sfv4hf): Likewise.
15941         (neon_vcvtv4hfv4sf): Likewise.
15942         (neon_vcvt_n<mode>): Likewise.
15943         (neon_vmovn<mode>): Likewise.
15944         (neon_vqmovn<mode>): Likewise.
15945         (neon_vqmovun<mode>): Likewise.
15946         (neon_vmovl<mode>): Likewise.
15947         (neon_vmul_lane<mode>): Likewise.
15948         (neon_vmull_lane<mode>): Likewise.
15949         (neon_vqdmull_lane<mode>): Likewise.
15950         (neon_vqdmulh_lane<mode>): Likewise.
15951         (neon_vmla_lane<mode>): Likewise.
15952         (neon_vmlal_lane<mode>): Likewise.
15953         (neon_vqdmlal_lane<mode>): Likewise.
15954         (neon_vmls_lane<mode>): Likewise.
15955         (neon_vmlsl_lane<mode>): Likewise.
15956         (neon_vqdmlsl_lane<mode>): Likewise.
15957         (neon_vext<mode>): Likewise.
15958         (neon_vrev64<mode>): Likewise.
15959         (neon_vrev32<mode>): Likewise.
15960         (neon_vrev16<mode>): Likewise.
15961         (neon_vbsl<mode>_internal): Likewise.
15962         (neon_vshl<mode>): Likewise.
15963         (neon_vqshl<mode>): Likewise.
15964         (neon_vshr_n<mode>): Likewise.
15965         (neon_vshrn_n<mode>): Likewise.
15966         (neon_vqshrn_n<mode>): Likewise.
15967         (neon_vqshrun_n<mode>): Likewise.
15968         (neon_vshl_n<mode>): Likewise.
15969         (neon_vqshl_n<mode>): Likewise.
15970         (neon_vqshlu_n<mode>): Likewise.
15971         (neon_vshll_n<mode>): Likewise.
15972         (neon_vsra_n<mode>): Likewise.
15973         (neon_vsri_n<mode>): Likewise.
15974         (neon_vsli_n<mode>): Likewise.
15975         (neon_vtbl1v8qi): Likewise.
15976         (neon_vtbl2v8qi): Likewise.
15977         (neon_vtbl3v8qi): Likewise.
15978         (neon_vtbl4v8qi): Likewise.
15979         (neon_vtbx1v8qi): Likewise.
15980         (neon_vtbx2v8qi): Likewise.
15981         (neon_vtbx3v8qi): Likewise.
15982         (neon_vtbx4v8qi): Likewise.
15983         (neon_vtrn<mode>_internal): Likewise.
15984         (neon_vzip<mode>_internal): Likewise.
15985         (neon_vuzp<mode>_internal): Likewise.
15986         (neon_vld1<mode>): Likewise.
15987         (neon_vld1_lane<mode>): Likewise.
15988         (neon_vld1_dup<mode>): Likewise.
15989         (neon_vld1_dupv2di): Likewise.
15990         (neon_vst1<mode>): Likewise.
15991         (neon_vst1_lane<mode>): Likewise.
15992         (neon_vld2<mode>): Likewise.
15993         (neon_vld2_lane<mode>): Likewise.
15994         (neon_vld2_dup<mode>): Likewise.
15995         (neon_vst2<mode>): Likewise.
15996         (neon_vst2_lane<mode>): Likewise.
15997         (neon_vld3<mode>): Likewise.
15998         (neon_vld3qa<mode>): Likewise.
15999         (neon_vld3qb<mode>): Likewise.
16000         (neon_vld3_lane<mode>): Likewise.
16001         (neon_vld3_dup<mode>): Likewise.
16002         (neon_vst3<mode>): Likewise.
16003         (neon_vst3qa<mode>): Likewise.
16004         (neon_vst3qb<mode>): Likewise.
16005         (neon_vst3_lane<mode>): Likewise.
16006         (neon_vld4<mode>): Likewise.
16007         (neon_vld4qa<mode>): Likewise.
16008         (neon_vld4qb<mode>): Likewise.
16009         (neon_vld4_lane<mode>): Likewise.
16010         (neon_vld4_dup<mode>): Likewise.
16011         (neon_vst4<mode>): Likewise.
16012         (neon_vst4qa<mode>): Likewise.
16013         (neon_vst4qb<mode>): Likewise.
16014         (neon_vst4_lane<mode>): Likewise.
16015         (neon_vec_unpack<US>_lo_<mode>): Likewise.
16016         (neon_vec_unpack<US>_hi_<mode>): Likewise.
16017         (neon_vec_<US>mult_lo_<mode>): Likewise.
16018         (neon_vec_<US>mult_hi_<mode>): Likewise.
16019         (neon_vec_<US>shiftl_<mode>): Likewise.
16020         (neon_unpack<US>_<mode>): Likewise.
16021         (neon_vec_<US>mult_<mode>): Likewise.
16022         (vec_pack_trunc_<mode>): Likewise.
16023         (neon_vec_pack_trunk_<mode>): Likewise.
16024         (neon_vabd<mode>_2): Likewise.
16025         (neon_vabd<mode>_3): Likewise.
16026         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
16027         (thumb2_movsi_vfp): Likewise.
16028         (movdi_vfp): Likewise.
16029         (movdi_vfp_cortexa8): Likewise.
16030         (movhf_vfp_neon): Likewise.
16031         (movhf_vfp): Likewiwse.
16032         (movsf_vfp): Likewiwse.
16033         (thumb2_movsf_vfp): Likewiwse.
16034         (movdf_vfp): Likewise.
16035         (thumb2_movdf_vfp): Likewise.
16036         (movsfcc_vfp): Likewise.
16037         (thumb2_movsfcc_vfp): Likewise.
16038         (movdfcc_vfp): Likewise.
16039         (thumb2_movdfcc_vfp): Likewise.
16040         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
16041         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
16042         (v10_v2c): Likewise.
16043         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
16044         attribute change.
16045         (cortex_a15_neon_int_2): Likewise.
16046         (cortex_a15_neon_int_3): Likewise.
16047         (cortex_a15_neon_int_4): Likewise.
16048         (cortex_a15_neon_int_5): Likewise.
16049         (cortex_a15_neon_vqneg_vqabs): Likewise.
16050         (cortex_a15_neon_vmov): Likewise.
16051         (cortex_a15_neon_vaba): Likewise.
16052         (cortex_a15_neon_vaba_qqq): Likewise.
16053         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16054         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16055         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
16056         scalar_64_32_long_scalar): Likewise.
16057         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16058         (cortex_a15_neon_mla_qqq_8_16): Likewise.
16059         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16060         lotype_qdd_64_32_long): Likewise.
16061         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16062         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16063         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
16064         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16065         (cortex_a15_neon_shift_1): Likewise.
16066         (cortex_a15_neon_shift_2): Likewise.
16067         (cortex_a15_neon_shift_3): Likewise.
16068         (cortex_a15_neon_vshl_ddd): Likewise.
16069         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16070         (cortex_a15_neon_vsra_vrsra): Likewise.
16071         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
16072         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
16073         (cortex_a15_neon_fp_vmul_ddd): Likewise.
16074         (cortex_a15_neon_fp_vmul_qqd): Likewise.
16075         (cortex_a15_neon_fp_vmla_ddd): Likewise.
16076         (cortex_a15_neon_fp_vmla_qqq): Likewise.
16077         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
16078         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
16079         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16080         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16081         (cortex_a15_neon_bp_simple): Likewise.
16082         (cortex_a15_neon_bp_2cycle): Likewise.
16083         (cortex_a15_neon_bp_3cycle): Likewise.
16084         (cortex_a15_neon_vld1_1_2_regs): Likewise.
16085         (cortex_a15_neon_vld1_3_4_regs): Likewise.
16086         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16087         (cortex_a15_neon_vld2_4_regs): Likewise.
16088         (cortex_a15_neon_vld3_vld4): Likewise.
16089         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16090         (cortex_a15_neon_vst1_3_4_regs): Likewise.
16091         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
16092         (cortex_a15_neon_vst3_vst4): Likewise.
16093         (cortex_a15_neon_vld1_vld2_lane): Likewise.
16094         (cortex_a15_neon_vld3_vld4_lane" 10
16095         (cortex_a15_neon_vst1_vst2_lane): Likewise.
16096         (cortex_a15_neon_vst3_vst4_lane): Likewise.
16097         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
16098         (cortex_a15_neon_ldm_2): Likewise.0
16099         (cortex_a15_neon_stm_2): Likewise.
16100         (cortex_a15_neon_mcr): Likewise.
16101         (cortex_a15_neon_mcr_2_mcrr): Likewise.
16102         (cortex_a15_neon_mrc): Likewise.
16103         (cortex_a15_neon_mrrc): Likewise.
16104         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
16105         change.
16106         (cortex_a15_alu_shift): Likewise.
16107         (cortex_a15_alu_shift_reg): Likewise.
16108         (cortex_a15_mult32): Likewise.
16109         (cortex_a15_mult64): Likewise.
16110         (cortex_a15_block): Likewise.
16111         (cortex_a15_branch): Likewise.
16112         (cortex_a15_load1): Likewise.
16113         (cortex_a15_load3): Likewise.
16114         (cortex_a15_store1): Likewise.
16115         (cortex_a15_store3): Likewise.
16116         (cortex_a15_call): Likewise.
16117         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
16118         (cortex_a5_f2r): Likewise.
16119         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
16120         change.
16121         (cortex_a53_f2r): Likewise.
16122         * config/arm/cortex-a7.md
16123         (cortex_a7_branch): Update for attribute change.
16124         (cortex_a7_call): Likewise.
16125         (cortex_a7_alu_imm): Likewise.
16126         (cortex_a7_alu_reg): Likewise.
16127         (cortex_a7_alu_shift): Likewise.
16128         (cortex_a7_mul): Likewise.
16129         (cortex_a7_load1): Likewise.
16130         (cortex_a7_store1): Likewise.
16131         (cortex_a7_load2): Likewise.
16132         (cortex_a7_store2): Likewise.
16133         (cortex_a7_load3): Likewise.
16134         (cortex_a7_store3): Likewise.
16135         (cortex_a7_load4): Likewise.
16136         (cortex_a7_store4): Likewise.
16137         (cortex_a7_fpalu): Likewise.
16138         (cortex_a7_fconst): Likewise.
16139         (cortex_a7_fpmuls): Likewise.
16140         (cortex_a7_neon_mul): Likewise.
16141         (cortex_a7_fpmacs): Likewise.
16142         (cortex_a7_neon_mla: Likewise.
16143         (cortex_a7_fpmuld: Likewise.
16144         (cortex_a7_fpmacd: Likewise.
16145         (cortex_a7_fpfmad: Likewise.
16146         (cortex_a7_fdivs: Likewise.
16147         (cortex_a7_fdivd: Likewise.
16148         (cortex_a7_r2f: Likewise.
16149         (cortex_a7_f2r: Likewise.
16150         (cortex_a7_f_flags: Likewise.
16151         (cortex_a7_f_loads: Likewise.
16152         (cortex_a7_f_loadd: Likewise.
16153         (cortex_a7_f_stores: Likewise.
16154         (cortex_a7_f_stored: Likewise.
16155         (cortex_a7_neon): Likewise.
16156         * config/arm/cortex-a8-neon.md
16157         (cortex_a8_neon_mrc): Update for attribute change.
16158         (cortex_a8_neon_mrrc): Likewise.
16159         (cortex_a8_neon_int_1): Likewise.
16160         (cortex_a8_neon_int_2): Likewise.
16161         (cortex_a8_neon_int_3): Likewise.
16162         (cortex_a8_neon_int_4): Likewise.
16163         (cortex_a8_neon_int_5): Likewise.
16164         (cortex_a8_neon_vqneg_vqabs): Likewise.
16165         (cortex_a8_neon_vmov): Likewise.
16166         (cortex_a8_neon_vaba): Likewise.
16167         (cortex_a8_neon_vaba_qqq): Likewise.
16168         (cortex_a8_neon_vsma): Likewise.
16169         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16170         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16171         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16172         long_scalar): Likewise.
16173         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16174         (cortex_a8_neon_mla_qqq_8_16): Likewise.
16175         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16176         long_scalar_qdd_64_32_long): Likewise.
16177         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16178         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16179         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
16180         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16181         (cortex_a8_neon_shift_1): Likewise.
16182         (cortex_a8_neon_shift_2): Likewise.
16183         (cortex_a8_neon_shift_3): Likewise.
16184         (cortex_a8_neon_vshl_ddd): Likewise.
16185         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16186         (cortex_a8_neon_vsra_vrsra): Likewise.
16187         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
16188         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
16189         (cortex_a8_neon_fp_vsum): Likewise.
16190         (cortex_a8_neon_fp_vmul_ddd): Likewise.
16191         (cortex_a8_neon_fp_vmul_qqd): Likewise.
16192         (cortex_a8_neon_fp_vmla_ddd): Likewise.
16193         (cortex_a8_neon_fp_vmla_qqq): Likewise.
16194         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
16195         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
16196         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16197         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16198         (cortex_a8_neon_bp_simple): Likewise.
16199         (cortex_a8_neon_bp_2cycle): Likewise.
16200         (cortex_a8_neon_bp_3cycle): Likewise.
16201         (cortex_a8_neon_ldr): Likewise.
16202         (cortex_a8_neon_str): Likewise.
16203         (cortex_a8_neon_vld1_1_2_regs): Likewise.
16204         (cortex_a8_neon_vld1_3_4_regs): Likewise.
16205         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16206         (cortex_a8_neon_vld2_4_regs): Likewise.
16207         (cortex_a8_neon_vld3_vld4): Likewise.
16208         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16209         (cortex_a8_neon_vst1_3_4_regs): Likewise.
16210         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
16211         (cortex_a8_neon_vst3_vst4): Likewise.
16212         (cortex_a8_neon_vld1_vld2_lane): Likewise.
16213         (cortex_a8_neon_vld3_vld4_lane): Likewise.
16214         (cortex_a8_neon_vst1_vst2_lane): Likewise.
16215         (cortex_a8_neon_vst3_vst4_lane): Likewise.
16216         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
16217         (cortex_a8_neon_mcr): Likewise.
16218         (cortex_a8_neon_mcr_2_mcrr): Likewise.
16219         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
16220         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
16221         change.
16222         (ca9_neon_mrrc): Likewise.
16223         (cortex_a9_neon_int_1): Likewise.
16224         (cortex_a9_neon_int_2): Likewise.
16225         (cortex_a9_neon_int_3): Likewise.
16226         (cortex_a9_neon_int_4): Likewise.
16227         (cortex_a9_neon_int_5): Likewise.
16228         (cortex_a9_neon_vqneg_vqabs): Likewise.
16229         (cortex_a9_neon_vmov): Likewise.
16230         (cortex_a9_neon_vaba): Likewise.
16231         (cortex_a9_neon_vaba_qqq): Likewise.
16232         (cortex_a9_neon_vsma): Likewise.
16233         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16234         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
16235         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
16236         long_scalar): Likewise.
16237         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
16238         (cortex_a9_neon_mla_qqq_8_16): Likewise.
16239         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
16240         long_scalar_qdd_64_32_long): Likewise.
16241         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
16242         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
16243         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
16244         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
16245         (cortex_a9_neon_shift_1): Likewise.
16246         (cortex_a9_neon_shift_2): Likewise.
16247         (cortex_a9_neon_shift_3): Likewise.
16248         (cortex_a9_neon_vshl_ddd): Likewise.
16249         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
16250         (cortex_a9_neon_vsra_vrsra): Likewise.
16251         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
16252         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
16253         (cortex_a9_neon_fp_vsum): Likewise.
16254         (cortex_a9_neon_fp_vmul_ddd): Likewise.
16255         (cortex_a9_neon_fp_vmul_qqd): Likewise.
16256         (cortex_a9_neon_fp_vmla_ddd): Likewise.
16257         (cortex_a9_neon_fp_vmla_qqq): Likewise.
16258         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
16259         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
16260         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
16261         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
16262         (cortex_a9_neon_bp_simple): Likewise.
16263         (cortex_a9_neon_bp_2cycle): Likewise.
16264         (cortex_a9_neon_bp_3cycle): Likewise.
16265         (cortex_a9_neon_ldr): Likewise.
16266         (cortex_a9_neon_str): Likewise.
16267         (cortex_a9_neon_vld1_1_2_regs): Likewise.
16268         (cortex_a9_neon_vld1_3_4_regs): Likewise.
16269         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
16270         (cortex_a9_neon_vld2_4_regs): Likewise.
16271         (cortex_a9_neon_vld3_vld4): Likewise.
16272         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
16273         (cortex_a9_neon_vst1_3_4_regs): Likewise.
16274         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
16275         (cortex_a9_neon_vst3_vst4): Likewise.
16276         (cortex_a9_neon_vld1_vld2_lane): Likewise.
16277         (cortex_a9_neon_vld3_vld4_lane): Likewise.
16278         (cortex_a9_neon_vst1_vst2_lane): Likewise.
16279         (cortex_a9_neon_vst3_vst4_lane): Likewise.
16280         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
16281         (cortex_a9_neon_mcr): Likewise.
16282         (cortex_a9_neon_mcr_2_mcrr): Likewise.
16283         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
16284         (cortex_a9_fps): Likewise.
16285         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
16286         change.
16287         (cortex_m4_fmuls): Likewise.
16288         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
16289         change.
16290         (cortex_r4_mrc): Likewise.
16291         * config/arm/iterators.md: Update comment referring to neon_type.
16292         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
16293         (iwmmxt_movsi_insn): Likewise.
16294         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
16295         attribute change.
16296         (pj4_core_to_vfp): Likewise.
16297         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
16298         attribute change.
16299         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
16300         (vfp_fstore): Likewise.
16301         * doc/md.texi: Change references to neon_type to refer to type.
16303 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
16305         * tree.h (DECL_BUILT_IN): Fix typo in comment.
16307 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
16309         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
16310         lglobl if not weak.
16312 2013-09-04  Easwaran Raman  <eraman@google.com>
16314         PR middle-end/57370
16315         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
16316         (build_and_add_sum): Use it.
16317         (appears_later_in_bb): Simplify code.
16319 2013-09-04  Teresa Johnson  <tejohnson@google.com>
16321         * dumpfile.c (dump_finish): Don't close stderr/stdout.
16323 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
16325         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
16327 2013-09-04  Jan Hubicka  <jh@suse.cz>
16329         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
16330         * ipa-devirt.c: Include diganostic.h
16331         (odr_type_d): Add types and types_set.
16332         (hash_type_name): Work for types with vtables during LTO.
16333         (odr_hasher::remove): Fix comment; destroy types_set.
16334         (add_type_duplicate): New function,
16335         (get_odr_type): Use it.
16336         (dump_type_inheritance_graph): Dump type duplicates.
16337         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
16338         graph.
16339         * tree.c (types_same_for_odr): Give exact answers on types with
16340         virtual tables.
16342 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
16344         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
16345         explaining their differences.
16347 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
16349         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
16351 2013-09-03  Jeff Law  <law@redhat.com>
16353         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
16354         when not threading through a joiner block.  Pass joiner/no joiner
16355         state to register_jump_thread.
16356         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
16357         state from argument rather than implying on path length.
16358         Dump the entire jump thread path into debugging dump.
16359         * tree-flow.h (register_jump_thread): Update prototype.
16361 2013-08-29  Xinliang David Li  <davidxl@google.com>
16363         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16364         Remove a trivial gcc_assert.
16366 2013-08-29  Xinliang David Li  <davidxl@google.com>
16368         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
16369         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
16370         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
16371         Delay base decl alignment adjustment.
16372         * tree-vectorizer.c (vect_destroy_datarefs): New function.
16373         * tree-vectorizer.h: New data structure.
16374         (set_dr_misalignment): New function.
16375         (dr_misalignment): Ditto.
16376         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
16377         (vectorizable_load): Ditto.
16378         (ensure_base_align): New function.
16379         (vectorize_loops): Add dbg_cnt support.
16380         (execute_vect_slp): Ditto.
16381         * dbgcnt.def: New debug counter.
16382         * Makefile: New dependency.
16384 2013-09-03  Meador Inge  <meadori@codesourcery.com>
16386         Revert:
16388         2013-08-30  Meador Inge  <meadori@codesourcery.com>
16390         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
16392 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
16394         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
16395         function descriptor.
16397 2013-09-03  Richard Biener  <rguenther@suse.de>
16399         * tree-affine.c (add_elt_to_tree): Fix association issue,
16400         avoid useless converts and make sure to always return a
16401         properly typed result.
16403 2013-09-03  Richard Biener  <rguenther@suse.de>
16405         PR middle-end/57656
16406         * fold-const.c (negate_expr_p): Fix division case.
16407         (negate_expr): Likewise.
16409 2013-09-03  Richard Biener  <rguenther@suse.de>
16411         PR lto/58285
16412         * tree-streamer-out.c: Include tm.h.
16413         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
16415 2013-09-03  Jan Hubicka  <jh@suse.cz>
16417         * tree-profile.c (tree_profiling): Cleanup CFG when done.
16419 2013-09-03  Alan Modra  <amodra@gmail.com>
16421         * config.gcc (powerpc*-*-linux*): Add support for little-endian
16422         multilibs to big-endian target and vice versa.
16423         * config/rs6000/t-linux64: Use := assignment on all vars.
16424         (MULTILIB_EXTRA_OPTS): Remove fPIC.
16425         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
16426         * config/rs6000/t-linux64le: New file.
16427         * config/rs6000/t-linux64bele: New file.
16428         * config/rs6000/t-linux64lebe: New file.
16430 2013-09-02  Jan Hubicka  <jh@suse.cz>
16432         * ipa-inline-transform.c (inline_transform): Do not
16433         optimize_inline_calls when not optimizing.
16435 2013-09-02  Jan Hubicka  <jh@suse.cz>
16437         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
16438         duplicated nodes for assembler names.
16439         * symtab.c (symtab_unregister_node): Do not attempt to unlink
16440         hard registers from assembler name hash.
16442 2013-09-02  Jan Hubicka  <jh@suse.cz>
16444         * ipa-split.c (execute_split_functions): Split externally visible
16445         functions called once.
16447 2013-09-02  Martin Jambor  <mjambor@suse.cz>
16449         PR ipa/58106
16450         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
16451         linked list.  When finding the correct duplicate, also consider also
16452         the caller in additon to its inlined_to node.
16454 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
16456         * config/aarch64/aarch64-simd-builtins.def
16457         (dup_lane_scalar): Remove.
16458         * config/aarch64/aarch64-simd.md
16459         (aarch64_simd_dup): Add 'w->w' alternative.
16460         (aarch64_dup_lane<mode>): Allow for VALL.
16461         (aarch64_dup_lane_scalar<mode>): Remove.
16462         (aarch64_dup_lane_<vswap_width_name><mode>): New.
16463         (aarch64_get_lane_signed<mode>): Add w->w altenative.
16464         (aarch64_get_lane_unsigned<mode>): Likewise.
16465         (aarch64_get_lane<mode>): Likewise.
16466         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
16467         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
16468         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
16469         (VCON): Change container of V2SF.
16470         (vswap_width_name): Likewise.
16471         * config/aarch64/arm_neon.h
16472         (__aarch64_vdup_lane_any): New.
16473         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
16474         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
16475         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
16477 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
16479         PR middle-end/56382
16480         * expr.c (emit_move_complex): Do not move complex FP values as parts if
16481         the source or the destination is a single hard register.
16483 2013-09-02  Richard Biener  <rguenther@suse.de>
16485         PR middle-end/57511
16486         * tree-scalar-evolution.c (instantiate_scev_name): Allow
16487         non-linear SCEVs.
16489 2013-09-02  Richard Biener  <rguenther@suse.de>
16491         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
16492         arithmetic to sizetype.
16494 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
16496         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
16497         Find auto-increment use both before and after candidate.
16499 2013-09-02  Marek Polacek  <polacek@redhat.com>
16501         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
16503 2013-09-01  Jan Hubicka  <jh@suse.cz>
16505         * Makefile.in: Add ipa-profile.o
16506         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
16507         * cgraph.c (struct cgraph_propagate_frequency_data,
16508         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
16509         ipa-profile.c; replace cgraph_ by ipa_ prefix.
16510         * cgraph.h (cgraph_propagate_frequency): Remove.
16511         * ipa-inline-analysis.c: Include ipa-utils.h;
16512         drop duplicated cfgloop.h.
16513         (inline_update_callee_summaries): Update.
16514         * ipa-profile.c: New file.
16515         * ipa-utils.h (ipa_propagate_frequency): Declare.
16516         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
16517         data-streamer.h, value-prof.h.
16518         (symtab_remove_unreachable_nodes): Update profile.
16519         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
16520         account_time_size, cmp_counts, dump_histogram,
16521         ipa_profile_generate_summary, ipa_profile_write_summary,
16522         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
16523         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
16524         Move to ipa-profile.c.
16526 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
16528         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
16530 2013-09-01  Jan Hubicka  <jh@suse.cz>
16532         * common.opt (fdevirtualize-speculatively): New function.
16533         * invoke.texi (fdevirtualize-speculatively): Document.
16534         * ipa-devirt.c: Include ipa-inline.h
16535         (likely_target_p): New function.
16536         (ipa_devirt): New function.
16537         (gate_ipa_devirt): New function.
16538         (pass_data_ipa_devirt): New static var.
16539         (pass_ipa_devirt): Likewise.
16540         (make_pass_ipa_devirt): New function.
16541         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
16542         (common_handle_option): Disable devirtualization when
16543         value range profiling is available.
16544         * passes.def (pass_ipa_devirt): Add.
16545         * timever.def (TV_IPA_DEVIRT): New timevar.
16546         * tree-pass.h (make_pass_ipa_devirt):
16548 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
16550         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
16551         include sanitize(undefined).
16553 2013-08-31  Diego Novillo  <dnovillo@google.com>
16555         * Makefile.in (TREE_CORE_H): Define.
16556         (TREE_H): Use.
16557         (GTFILES): Add tree-core.h.
16558         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
16559         size the array.
16560         * tree-core.h: New file.
16561         Move all data structures, enum, typedefs, global
16562         declarations and constants from ...
16563         * tree.h: ... here.
16565 2013-08-31  Jan Hubicka  <jh@suse.cz>
16567         * bulitins.c (expand_builtin): Do not early exit for gcov
16568         instrumented functions.
16570 2013-08-31  Marek Polacek  <polacek@redhat.com>
16572         * ubsan.c: Include tm_p.h.
16574 2013-08-31  Jan Hubicka  <jh@suse.cz>
16576         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
16577         warning.
16579         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
16580         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
16581         * tree-cfg.c (verify_gimple_label): ... here.
16582         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
16583         (ipa_merge_profiles): New function.
16584         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
16585         (lto_input_function_body): Likewise.
16586         * ipa-utils.h (ipa_merge_profiles): Declare.
16587         * lto-streamer.h (lto_input_function_body): Update prototype.
16588         (emit_label_in_global_context_p): Remove.
16589         * lto-symtab.c: Include ipa-utils.h
16590         (lto_cgraph_replace_node): Use ipa_merge_profiles.
16592 2013-08-31  Jan Hubicka  <jh@suse.cz>
16594         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
16596 2013-08-31  Jan Hubicka  <jh@suse.cz>
16598         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
16600 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
16602         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
16603         "cmp" RTX before signed_comparison_operator check to account
16604         for "code" changes.
16606 2013-08-30  Jan Hubicka  <jh@suse.cz>
16608         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
16609         (detect_type_change_1): Rename to ...
16610         (detect_type_change): ... this one; early return on non-polymorphic
16611         types.
16612         (detect_type_change_ssa): Add comp_type parameter; update
16613         use of detect_type_change.
16614         (compute_complex_assign_jump_func): Add param_type parameter;
16615         update use of detect_type_change_ssa.
16616         (compute_complex_ancestor_jump_func): Likewise.
16617         (ipa_get_callee_param_type): New function.
16618         (ipa_compute_jump_functions_for_edge): Compute parameter type;
16619         update calls to the jump function computation functions.
16621 2013-08-30  Teresa Johnson  <tejohnson@google.com>
16622             Steven Bosscher  <steven@gcc.gnu.org>
16624         * cfgrtl.c (fixup_new_cold_bb): New routine.
16625         (commit_edge_insertions): Invoke fixup_partitions.
16626         (find_partition_fixes): New routine.
16627         (fixup_partitions): Ditto.
16628         (verify_hot_cold_block_grouping): Update comments.
16629         (rtl_verify_edges): Invoke find_partition_fixes.
16630         (rtl_verify_bb_pointers): Update comments.
16631         (rtl_verify_bb_layout): Ditto.
16632         * basic-block.h (probably_never_executed_edge_p): Declare.
16633         (fixup_partitions): Ditto.
16634         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
16635         * bb-reorder.c (sanitize_hot_paths): New function.
16636         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
16637         sanitize_hot_paths.
16638         * predict.c (probably_never_executed_edge_p): New routine.
16639         * cfg.c (check_bb_profile): Add partition insanity warnings.
16641 2013-08-30  Meador Inge  <meadori@codesourcery.com>
16643         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
16645 2013-08-30  Marek Polacek  <polacek@redhat.com>
16647         * Makefile.in (ubsan.o): Add.
16648         (c-family/c-ubsan.o): Add.
16649         (builtins.o): Add ubsan.h dependency.
16650         * ubsan.h: New file.
16651         * ubsan.c: New file.
16652         * common.opt: Add -fsanitize=undefined option.
16653         (flag_sanitize): Add variable.
16654         (fsanitize=): Add option.  Add Driver.
16655         (fsanitize=thread): Remove option.
16656         (fsanitize=address): Likewise.
16657         (static-libubsan): New option.
16658         * doc/invoke.texi: Document the new flag and -static-libubsan.
16659         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
16660         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
16661         * builtin-attrs.def (ATTR_COLD): Define.
16662         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
16663         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
16664         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
16665         * flag-types.h (sanitize_code): New enum.
16666         * opts.c (common_handle_option): Parse command line arguments
16667         of -fsanitize=.  Add -fsanitize=unreachable option.
16668         * varasm.c (get_variable_section): Adjust.
16669         (assemble_noswitch_variable): Likewise.
16670         (assemble_variable): Likewise.
16671         (output_constant_def_contents): Likewise.
16672         (categorize_decl_for_section): Likewise.
16673         (place_block_symbol): Likewise.
16674         (output_object_block): Likewise.
16675         * builtins.def: Likewise.
16676         * toplev.c (compile_file): Likewise.
16677         (process_options): Likewise.
16678         * cppbuiltin.c: Likewise.
16679         * tsan.c (tsan_pass): Likewise.
16680         (tsan_gate): Likewise.
16681         (tsan_gate_O0): Likewise.
16682         * cfgexpand.c (partition_stack_vars): Likewise.
16683         (expand_stack_vars): Likewise.
16684         (defer_stack_allocation): Likewise.
16685         (expand_used_vars): Likewise.
16686         * cfgcleanup.c (old_insns_match_p): Likewise.
16687         * asan.c (asan_finish_file): Likewise.
16688         (asan_instrument): Likewise.
16689         (gate_asan): Likewise.
16690         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
16691         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
16692         (asan_global_struct): Use pointer_sized_int_node instead
16693         calling build_nonstandard_integer_type.
16694         (initialize_sanitizer_builtins): Likewise.
16695         (asan_finish_file): Likewise.
16696         * gcc.c: Document %{%:function(args):X}.
16697         (static_spec_functions): Add sanitize.
16698         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
16699         store funcval != NULL there.
16700         (do_spec_1): Adjust handle_spec_function caller.
16701         (handle_braces): Allow %:function(args) as condition.
16702         (sanitize_spec_function): New function.
16703         (ADD_STATIC_LIBUBSAN_LIBS): Define.
16704         (LIBUBSAN_SPEC): Likewise.
16705         (LIBUBSAN_EARLY_SPEC): Likewise.
16706         (SANITIZER_SPEC): Handle libubsan.
16707         (SANITIZER_EARLY_SPEC): Likewise.
16708         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
16709         instead of fsanitize=address.
16710         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
16711         instead of fsanitize=address*.
16712         * builtins.c: Include ubsan.h.
16713         (fold_builtin_0): Instrument __builtin_unreachable.
16714         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
16715         instead of flag_asan.
16716         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
16717         (pointer_sized_int_node): Define.
16718         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
16720 2013-08-30  Mike Stump  <mikestump@comcast.net>
16722         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
16723         with RE patterns.
16725 2013-08-29  Jan Hubicka  <jh@suse.cz>
16727         * cgraph.c (cgraph_function_body_availability): Handle weakref
16728         correctly.
16729         * passes.def: Remove pass_fixup_cfg.
16730         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
16731         track when we need to remove functions.
16732         (gate_ipa_inline): Execute inlining always; add comment why.
16733         (pass_data_ipa_inline): Remove TODO_remove_functions.
16734         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
16735         do not produce summaries.
16736         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
16737         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
16738         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
16739         constant pool and vtable.
16741 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
16743         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
16744         New arm_neon.h's internal macros to specify 64-bit constants.
16745         Avoid using stdint.h's macros.
16747 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
16749         * recog.c (verify_changes): Verify that changes[i].old is non-zero
16750         before applying REG_P.
16752 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
16754         PR tree-optimization/58277
16755         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
16756         after seeing too many stmts with vdef in between dombb and current
16757         bb, invalidate everything.
16759 2013-08-30  Richard Biener  <rguenther@suse.de>
16761         * fold-const.c (fold_single_bit_test): Fix overflow test.
16763 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
16765         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
16766         and which can live in a register, always retrieve the value on entry.
16767         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
16768         passed by invisible reference specially.
16769         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
16770         (vt_add_function_parameter): Correctly deal with a parameter passed by
16771         invisible reference.
16773 2013-08-30  Jan Hubicka  <jh@suse.cz>
16775         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
16777 2013-08-30  Richard Biener  <rguenther@suse.de>
16779         PR tree-optimization/58228
16780         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
16781         allow invariant loads in nested loop vectorization.
16783 2013-08-30  Richard Biener  <rguenther@suse.de>
16785         PR tree-optimization/58223
16786         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
16787         (has_anti_or_output_dependence): ... this and adjust to also
16788         look for output dependences.
16789         (mark_nodes_having_upstream_mem_writes): Adjust.
16790         (rdg_flag_uses): Likewise.
16792 2013-08-30  Richard Biener  <rguenther@suse.de>
16794         PR tree-optimization/58010
16795         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
16796         assert that we have a loop-closed PHI.
16798 2013-08-29  Jan Hubicka  <jh@suse.cz>
16800         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
16801         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
16802         * lto-section-in.c (lto_free_function_in_decl_state): New function.
16803         (lto_free_function_in_decl_state_for_node): New function.
16805 2013-08-29  Xinliang David Li  <davidxl@google.com>
16807         * loop-unroll.c (report_unroll_peel): Minor message change.
16808         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
16809         Emit alignment peeling message with default -fopt-info.
16810         (vect_loop_versioning): Emit loop version info message.
16811         * tree-vectorizer.c (vectorize_loops): Minor message change.
16812         (execute_vect_slp): Ditto.
16814 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
16816         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
16817         of the clone from the DECL_NAME of the original function.
16819 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
16821         * passes.c (register_pass): Add overload.
16822         * tree-pass.h (register_pass): Forward declare it.  Add comment.
16824 2013-08-29  Jan Hubicka  <jh@suse.cz>
16826         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
16827         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
16828         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
16829         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
16830         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
16831         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
16832         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
16833         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
16835 2013-08-29  Teresa Johnson  <tejohnson@google.com>
16837         * dumpfile.c (dump_loc): Output column number.
16838         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
16839         * doc/invoke.texi: Document optall -fopt-info flag.
16840         * profile.c (read_profile_edge_counts): Use new dump framework.
16841         (compute_branch_probabilities): Ditto.
16842         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
16843         when pass not in any opt group.
16844         * pass_manager.h (pass_manager::get_pass_profile): New method.
16845         * value-prof.c (check_counter): Use new dump framework.
16846         (check_ic_target): Ditto.
16847         * coverage.c (get_coverage_counts): Ditto.
16848         (coverage_init): Setup new dump framework.
16850 2013-08-29  Richard Biener  <rguenther@suse.de>
16852         PR tree-optimization/58246
16853         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
16854         handle the dominance check inside a basic-block.
16856 2013-08-29  Richard Biener  <rguenther@suse.de>
16858         PR middle-end/57287
16859         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
16860         of default defs that appear in abnormal PHI nodes.
16862 2013-08-29  Richard Biener  <rguenther@suse.de>
16864         PR tree-optimization/57685
16865         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
16866         single-use operands to avoid exponential complexity.
16868 2013-08-28  Dehao Chen  <dehao@google.com>
16870         * ipa-inline.c (edge_badness): Fix integer underflow.
16872 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
16874         * gtm-builtins.def (_ITM_free): Declare leaf.
16876 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
16878         PR target/58067
16879         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
16880         (*tls_local_dynamic_base_64_largepic): Likewise.
16881         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
16882         Remove predicate from call operand.
16883         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
16884         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
16886 2013-08-28  Jeff Law  <law@redhat.com>
16888         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
16889         checks for the number of predecessors and successors allowed.
16890         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
16891         which require copying a joiner block if there is a request which
16892         is a subpath that requires no joiner block copying.
16894 2013-08-28  Jan Hubicka  <jh@suse.cz>
16896         * lto-streamer-out.c (DFS_write_tree_body): Drop
16897         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
16898         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
16899         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
16900         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
16901         Do not read DECL_ERROR_ISSUED.
16902         (unpack_ts_decl_with_vis_value_fields): Do not read
16903         DECL_DEFER_OUTPUT.
16904         (lto_input_ts_binfo_tree_pointers): Do not read
16905         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
16906         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
16907         write DECL_ERROR_ISSUED..
16908         (pack_ts_decl_with_vis_value_fields): Do not write
16909         DECL_DEFER_OUTPUT.
16910         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
16911         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
16912         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
16913         * tree.h (tree_decl_common): Update comment.
16914         (DECL_ERROR_ISSUED): Remove.
16916 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
16918         PR middle-end/58257
16919         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
16921 2013-08-28  Jan Hubicka  <jh@suse.cz>
16923         * builtins.def (free): Declare leaf.
16925 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
16927         * gdbhooks.py: New.
16928         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
16929         * configure: Regenerate.
16931 2013-08-27  Martin Jambor  <mjambor@suse.cz>
16933         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
16934         (ipa_ancestor_jf_data): Likewise.
16935         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
16936         (ipa_get_jf_pass_through_type_preserved): New function.
16937         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
16938         (ipa_get_jf_ancestor_type_preserved): New function.
16939         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
16940         (ipa_get_jf_ancestor_result): Likewise.
16941         (propagate_vals_accross_pass_through): Use
16942         ipa_get_jf_pass_through_result to do all the value mappings.
16943         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
16944         type_preserved flag.
16945         (ipa_set_jf_cst_copy): New function.
16946         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
16947         (ipa_set_jf_arith_pass_through): Likewise.
16948         (ipa_set_ancestor_jf): Likewise.
16949         (compute_complex_assign_jump_func): Set type_preserved instead of
16950         punting.
16951         (ipa_compute_jump_functions_for_edge): Likewise.
16952         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
16953         (update_jump_functions_after_inlining): Update type_preserved.
16954         Explicitely create jump functions when combining one with pass_through.
16955         (ipa_write_jump_function): Stream the type_preserved flags.
16956         (ipa_read_jump_function): Likewise.
16958 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
16959             Aldy Hernandez  <aldyh@redhat.com>
16961         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
16962         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
16963         * function.h (struct function): Add has_force_vect_loops and
16964         has_simduid_loops.
16965         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
16966         * gimple.c (gimple_build_omp_critical): Add KIND argument and
16967         handle it.
16968         * gimple.def: Update CLAUSES comments.
16969         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
16970         (gimple_build_omp_for): Add argument to prototype.
16971         (gimple_omp_for_kind): New.
16972         (gimple_omp_for_set_kind): New.
16973         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
16974         GOVD_DATA_SHARE_CLASS.
16975         (enum omp_region_type): Add ORT_SIMD.
16976         (gimple_add_tmp_var): Handle ORT_SIMD.
16977         (gimplify_var_or_parm_decl): Same.
16978         (is_gimple_stmt): Same.
16979         (omp_firstprivatize_variable): Same.
16980         (omp_add_variable): Only use splay_tree_insert if lookup failed.
16981         (omp_notice_variable): Handle ORT_SIMD.
16982         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
16983         (omp_check_private): Handle ORT_SIMD.
16984         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
16985         OMP_CLAUSE_SAFELEN.
16986         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
16987         Handle OMP_CLAUSE_LASTPRIVATE.
16988         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
16989         OMP_CLAUSE_SAFELEN.
16990         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
16991         (gimplify_expr): Handle OMP_SIMD.
16992         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
16993         (expand_GOMP_SIMD_VF): New.
16994         (expand_GOMP_SIMD_LAST_LANE): New.
16995         * internal-fn.def (GOMP_SIMD_LANE): New.
16996         (GOMP_SIMD_VF): New.
16997         (GOMP_SIMD_LAST_LANE): New.
16998         * omp-low.c: Include target.h.
16999         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
17000         OMP_CLAUSE_SAFELEN.
17001         (check_omp_nesting_restrictions): Same.
17002         (omp_max_vf): New.
17003         (lower_rec_simd_input_clauses): New.
17004         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
17005         OMP_CLAUSE_LINEAR.
17006         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
17007         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
17008         (expand_omp_build_assign): New.
17009         (expand_omp_for_init_counts): New.
17010         (expand_omp_for_init_vars): New.
17011         (extract_omp_for_update_vars): New.
17012         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
17013         and rewrite accordingly.
17014         (expand_omp_simd): New.
17015         (expand_omp_for): Use expand_omp_simd.
17016         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
17017         (lower_omp_for): Do not lower the body.
17018         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
17019         in their own loops.
17020         * tree-flow.h (find_omp_clause): Remove prototype.
17021         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
17022         forcing vectorization of the loop, or if flag_tree_vectorize.
17023         (gate_tree_if_conversion): Similarly.
17024         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
17025         gimple_build_omp_for.
17026         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
17027         * tree-parloops (create_parallel_loop): Pass kind argument to
17028         gimple_build_omp_for.
17029         * tree-pretty-print.c (dump_omp_clause): Add cases for
17030         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
17031         OMP_CLAUSE__SIMDUID_.
17032         (dump_generic_node): Handle OMP_SIMD.
17033         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
17034         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
17035         unroll OMP_SIMD loops here.
17036         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
17037         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
17038         loop->safelen.
17039         (vect_analyze_data_refs): Handle simd loops.
17040         * tree-vect-loop.c (vectorizable_live_operation): Handle
17041         IFN_GOMP_SIMD*.
17042         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
17043         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
17044         (vectorizable_load): Same.
17045         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
17046         (struct simduid_to_vf): New.
17047         (simduid_to_vf::hash): New.
17048         (simduid_to-vf::equal): New.
17049         (struct simd_array_to_simduid): New.
17050         (simd_array_to_simduid::hash): New.
17051         (simd_array_to_simduid::equal): New.
17052         (adjust_simduid_builtins): New.
17053         (struct note_simd_array_uses_struct): New.
17054         (note_simd_array_uses_cb): New.
17055         (note_simd_array_uses): New.
17056         (vectorize_loops): Handle simd hints and adjust simd builtins
17057         accordingly.
17058         * tree-vectorizer.h (struct _stmt_vec_info): Add
17059         simd_lane_access_p field.
17060         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
17061         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
17062         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
17063         (omp_clause_code_name): Same.
17064         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
17065         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
17066         * tree.def (OMP_SIMD): New entry.
17067         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
17068         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
17069         (OMP_CLAUSE_DECL): Adjust range for new clauses.
17070         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
17071         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
17072         (OMP_CLAUSE_LINEAR_STEP): New.
17073         (OMP_CLAUSE_SAFELEN_EXPR): New.
17074         (OMP_CLAUSE__SIMDUID__DECL): New.
17075         (find_omp_clause): New prototype.
17077 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
17079         * config/i386/driver-i386.c (host_detect_local_cpu): Update
17080         Haswell processor detection.
17082 2013-08-27  Christian Widmer  <shadow@umbrox.de>
17084         PR target/57927
17085         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
17086         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
17087         AVX2 capable processors.
17089 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
17091         * config/aarch64/arm_neon.h: Replace all inline asm implementations
17092         of vget_low_* with implementations in terms of other intrinsics.
17094 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
17096         PR middle-end/57219
17097         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
17098         values to -1, 0 and 1.
17100 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
17102         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
17103         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
17104         (<optab><mode>3_insn): Remove.
17105         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
17106         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
17107         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
17108         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
17109         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
17110         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
17111         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
17112         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
17113         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
17114         (ror<mode>3_insn): Likewise.
17115         * config/aarch64/predicates.md (aarch64_simd_register): New.
17117 2013-08-27  Richard Biener  <rguenther@suse.de>
17119         PR tree-optimization/57521
17120         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
17121         one edge is non-critical.
17122         (find_phi_replacement_condition): Make sure to use a non-critical
17123         edge.  Cleanup and remove old bug workarounds.
17124         (bb_postdominates_preds): Remove.
17125         (if_convertible_loop_p_1): Do not compute post-dominators.
17126         (combine_blocks): Do not free post-dominators.
17127         (main_tree_if_conversion): Likewise.
17128         (pass_data_if_conversion): Add TODO_verify_ssa.
17130 2013-08-27  DJ Delorie  <dj@redhat.com>
17132         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
17134 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
17136         * function.c (assign_parm_find_data_types): Set passed_mode and
17137         nominal_mode to the TYPE_MODE of nominal_type for the built
17138         pointer type in case of the struct-pass-by-reference.
17140 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17142         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
17143         (UINT16_TYPE): Change default to "unsigned int".
17145         * config/avr/avr.opt (mfract-convert-truncate): New option.
17146         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
17147         is set, round negative fractional integers according to n1169
17148         when converting to integer types.
17150 2013-08-26  Jan Hubicka  <jh@suse.cz>
17152         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
17153         methods can not be called indirectly when their address is not taken.
17155 2013-08-26  Jan Hubicka  <jh@suse.cz>
17157         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
17158         ctor_for_folding.
17160 2013-08-26  Jan Hubicka  <jh@suse.cz>
17162         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
17163         can be unshared.
17165 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17167         * reload.c (find_valid_class): Allow classes that do not include
17168         FIRST_PSEUDO_REGISTER - 1.
17170 2013-08-26  Jan Hubicka  <jh@suse.cz>
17172         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
17173         fix edge count/frequency when speculation failed; fix type check
17174         for the direct call.
17176 2013-08-26  Jan Hubicka  <jh@suse.cz>
17178         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
17180 2013-08-26  Jan Hubicka  <jh@suse.cz>
17182         * ipa-inline-transform.c (inline_transform): Be ready for basic block
17183         to be changed by edge redirection.
17185 2013-08-26  Jan Hubicka  <jh@suse.cz>
17187         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
17188         formating; add sanity check.
17189         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
17190         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
17191         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
17192         (resolve_noninline_speculation): Update callee keys, too.
17194 2013-08-26  Jan Hubicka  <jh@suse.cz>
17196         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
17197         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
17199 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
17201         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
17202         into proper place.
17204 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
17206         * config/i386/i386.c (ix86_debug_options): Remove prototype.
17207         (x86_64_elf_select_section): Ditto.
17208         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
17209         arguments.
17210         (ix86_pass_by_reference): Ditto.
17211         (output_set_got): Ditto.
17212         (ix86_unary_operator_ok): Ditto.
17213         (ix86_expand_builtin): Ditto.
17215 2013-08-23  Jan Hubicka  <jh@suse.cz>
17217         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
17219 2013-08-23  Jan Hubicka  <jh@suse.cz>
17221         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
17222         (tree_decl_with_vis): Add FINAL field.
17224 2013-08-23  Jeff Law  <law@redhat.com>
17226         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
17227         the debugging dump when the expression is fully redundant.
17229 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17231         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
17232         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
17233         * pretty-print.c (pp_formatted_text_data): Likewise.
17234         (pp_write_text_to_stream): Likewise.
17235         (pp_write_text_as_dot_label_to_stream): Likewise.
17236         (pp_append_r): Likewise.
17237         (pp_format): Likewise.
17238         (pp_flush): Likewise.
17239         (pp_clear_output_area): Likewise.
17240         (pp_append_text): Likewise.
17241         (pp_formatted_text): Likewise.
17242         (pp_remaining_character_count_for_line): Likewise.
17243         (pp_newline): Likewise.
17244         (pp_character): Likewise.
17245         (output_buffer::~output_buffer): Define.
17246         (pretty_printer::~pretty_printer): Destruct output buffer.
17247         * pretty-print.h (output_buffer::~output_buffer): Declare.
17248         (pretty_printer::~pretty_printer): Declare virtual.
17250 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
17252         PR other/57324
17253         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
17254         HOST_WIDE_INT_M1U): New macros.
17255         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
17256         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
17257         unsigned -1 for lshift.
17258         * cse.c (cse_insn): Likewise.
17259         * double-int.c (rshift_double, lshift_double): Likewise.
17260         * builtins.c (fold_builtin_bitop): Likewise.
17261         * combine.c (force_to_mode): Likewise.
17262         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
17263         * simplify-rtx.c (simplify_const_unary_operation,
17264         simplify_const_binary_operation): Likewise.
17265         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
17266         check_va_list_escapes): Likewise.
17267         * rtlanal.c (nonzero_bits1): Likewise.
17268         * expmed.c (expand_smod_pow2): Likewise.
17269         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
17271 2013-08-23  Jan Hubicka  <jh@suse.cz>
17273         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
17274         as having address taken.
17276 2013-08-23  Jan Hubicka  <jh@suse.cz>
17278         * ipa-utils.h (method_class_type): Declare.
17279         * ipa-devirt.c (method_class_type): Export.
17281         * cgraphunit.c (analyze_functions): Do basic devirtualization;
17282         do not walk base classes of anonymous types.
17284 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
17286         PR rtl-optimization/58220
17287         PR regression/58221
17288         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
17289         handle SEQUENCE insns properly.
17291 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17293         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
17294         definition.
17295         (pp_newline_and_indent): Likewise.
17296         (pp_separate_with): Likewise.
17297         * pretty-print.c (pp_newline_and_flush): Define.
17298         (pp_newline_and_indent): Likewise.
17299         (pp_separate_with): Likewise.
17301 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
17303         PR target/58218
17304         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
17305         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
17307 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
17309         * config/i386/predicates.md (ext_sse_reg_operand): New.
17310         * config/i386/i386.md (*movti_internal): Use
17311         predicate to determine if EVEX is needed.
17312         (*movsi_internal): Ditto.
17313         (*movdf_internal): Ditto.
17314         (*movsf_internal): Ditto.
17315         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
17317 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
17319         PR tree-optimization/58209
17320         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
17321         (find_tail_calls): Give up for pointer result types if m is non-NULL.
17322         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
17323         emit POINTER_PLUS_EXPR.
17324         (create_tailcall_accumulator): For pointer result type accumulate in
17325         sizetype type.
17327 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
17329         * configure.ac: Add backslashes missing from the last change.
17330         * configure: Regenerate.
17332 2013-08-22  Jan Hubicka  <jh@susue.cz>
17334         * ipa.c (function_and_variable_visibility): First remember function
17335         was global and then make it local.
17337 2013-08-22  Julian Brown  <julian@codesourcery.com>
17339         * configure.ac: Add aarch64 to list of arches which use "nop" in
17340         debug_line test.
17341         * configure: Regenerate.
17343 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17345         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
17346         gnu_libc_has_function.
17347         * config/s390/tpf.h: Likewise.
17349 2013-08-22  Jan Hubicka  <jh@susue.cz>
17351         * timevar.c (validate_phases): Add cast.
17353 2013-08-22  Jan Hubicka  <jh@susue.cz>
17355         * timevar.c (validate_phases): Use size_t for memory.
17356         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
17358 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17360         * pretty-print.h (output_buffer::output_buffer): Declare.
17361         (pretty_printer::pretty_printer): Likewise.
17362         (pp_construct): Remove.
17363         * pretty-print.c (output_buffer::output_buffer): Define.
17364         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
17365         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
17366         (print_gimple_expr): Likewise.
17367         (print_gimple_seq): Likewise.
17368         (gimple_dump_bb): Likewise.
17369         * sched-vis.c (dump_value_slim): Likewise.
17370         (dump_insn_slim): Likewise.
17371         (dump_rtl_slim): Likewise.
17372         (str_pattern_slim): Likewise.
17373         * tree-mudflap.c (mf_varname_tree): Likewise.
17374         * graph.c (print_graph_cfg): Likewise.
17375         (start_graph_dump): Likewise.
17376         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
17377         placement-new.
17378         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
17379         pretty printer initialization.
17380         * coretypes.h (diagnostic_context): Remove superflous type alias
17381         declaration.
17382         (pretty_printer): Likewise.  Declare directly as a class.
17383         (pretty_print_info): Remove declaration as class.
17384         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
17385         and pp_clear_output_area.
17386         (asan_add_global): Likewise.
17388 2013-08-22  Jan Hubicka  <jh@suse.cz>
17390         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
17391         * ipa-utils.h (update_type_inheritance_graph): Declare.
17392         (possible_polymorphic_call_target_p): Declare.
17393         (possible_polymorphic_call_target_p): New.
17394         * ipa-devirt.c: Update toplevel comments.
17395         (cached_polymorphic_call_targets): Move up.
17396         (odr_type_d): Move ID down.
17397         (polymorphic_type_binfo_p): Update comment.
17398         (odr_hasher::remove): Likewise;
17399         (get_odr_type): Set anonymous_namespace.
17400         (dump_odr_type): Dump it.
17401         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
17402         (maybe_record_node): Record node in cached_polymorphic_call_targets.
17403         (record_binfo): Add comment.
17404         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
17405         built.
17406         (devirt_node_removal_hook): Do not iCE when cache is freed.
17407         (possible_polymorphic_call_target_p): New predicate.
17408         (update_type_inheritance_graph): New function.
17410 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17411             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
17412             Sergey Lega  <sergey.s.lega@intel.com>
17413             Anna Tikhonova  <anna.tikhonova@intel.com>
17414             Ilya Tocar  <ilya.tocar@intel.com>
17415             Andrey Turetskiy  <andrey.turetskiy@intel.com>
17416             Ilya Verbin  <ilya.verbin@intel.com>
17417             Kirill Yukhin  <kirill.yukhin@intel.com>
17418             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
17420         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
17421         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
17422         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
17423         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
17424         (OPTION_MASK_ISA_AVX2_UNSET): Update.
17425         (OPTION_MASK_ISA_AVX512F_UNSET): New.
17426         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
17427         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
17428         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
17429         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
17430         OPT_mavx512pf, OPT_mavx512er cases.
17431         * config/i386/constraints.md (v): New constraint.
17432         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
17433         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
17434         (bit_AVX512CD): New.
17435         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17436         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
17437         * config/i386/i386-c.c (ix86_target_macros_internal):
17438         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
17439         __AVX512PF__.
17440         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
17441         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
17442         * config/i386/i386.c (regclass_map, dbx_register_map)
17443         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
17444         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
17445         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
17446         -mavx512pf options.
17447         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
17448         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
17449         -mavx512pf options.  Fix formatting.
17450         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
17451         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
17452         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
17453         -mavx512cd, -mavx512pf options.
17454         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
17455         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
17456         (ix86_preferred_output_reload_class): Replace SSE_REGS with
17457         ALL_SSE_REGS.
17458         (ix86_hard_regno_mode_ok): Support 512-bit registers.
17459         (ix86_set_reg_reg_cost): Ditto.
17460         (x86_order_regs_for_local_alloc): Ditto.
17461         (MAX_VECT_LEN): Extend to 64-byte.
17462         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
17463         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
17464         (TARGET_AVX512ER, TARGET_AVX512CD): New.
17465         (BIGGEST_ALIGNMENT): Extend to 512-bits.
17466         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
17467         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
17468         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
17469         (SSE_REG_MODE_P): Support new modes.
17470         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
17471         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
17472         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
17473         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
17474         (REG_CLASS_CONTENTS): Add new registers.
17475         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
17476         (EXT_REX_SSE_REGNO_P): New.
17477         (HI_REGISTER_NAMES): Add new registers.
17478         * config/i386/i386.md: Define constants for new registers.
17479         (mode): Add new 512-bit modes.
17480         (prefix): Support evex prefix.
17481         (isa): Support avx512f, noavx512f, fma_avx512f.
17482         (ssemodesuffix): Add new 512-bit modes.
17483         (movxi): New.
17484         (*movxi_internal_avx512f): Ditto.
17485         (*movdi_internal): Replace constraint "x" with the new constraint "v".
17486         Support MODE_XI.
17487         (*movsi_internal): Likewise.
17488         (*movdf_internal): Likewise.
17489         (*movsf_internal): Likewise.
17490         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
17491         (<code><mode>3): Likewise.
17492         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
17493         New.
17494         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
17495         with the new constraint "v".
17496         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
17497         modes.
17498         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
17499         with the new constraint "v".
17500         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
17501         (<sse2>_storedqu<avxsizesuffix>): Likewise.
17502         (*<plusminus_insn><mode>3): Likewise.
17503         (<sse>_vm<plusminus_insn><mode>3): Likewise.
17504         (*mul<mode>3): Likewise.
17505         (<sse>_vmmul<mode>3): Likewise.
17506         (<sse>_div<mode>3): Likewise.
17507         (<sse>_vmdiv<mode>3): Likewise.
17508         (<sse>_sqrt<mode>2): Likewise.
17509         (<sse>_vmsqrt<mode>2): Likewise.
17510         (*<code><mode>3_finite): Likewise.
17511         (*<code><mode>3) <smaxmin>: Likewise.
17512         (<sse>_vm<code><mode>3): Likewise.
17513         (*<code><mode>3) <any_logic>: Likewise.
17514         (*fma_fmadd_<mode>): Likewise.
17515         (*fma_fmsub_<mode>): Likewise.
17516         (*fma_fnmadd_<mode>): Likewise.
17517         (*fma_fnmsub_<mode>): Likewise.
17518         (*fma_fmaddsub_<mode>): Likewise.
17519         (*fma_fmsubadd_<mode>): Likewise.
17520         (*fmai_fmadd_<mode>): Likewise.
17521         (*fmai_fmsub_<mode>): Likewise.
17522         (*fmai_fnmadd_<mode>): Likewise.
17523         (*fmai_fnmsub_<mode>): Likewise.
17524         (sse_cvtsi2ss): Likewise.
17525         (sse_cvtsi2ssq): Likewise.
17526         (sse_cvtss2si): Likewise.
17527         (sse_cvtss2si_2): Likewise.
17528         (sse_cvtss2siq): Likewise.
17529         (sse_cvtss2siq_2): Likewise.
17530         (sse_cvttss2si): Likewise.
17531         (sse_cvtss2siq_2): Likewise.
17532         (float<sseintvecmodelower><mode>2): Likewise.
17533         (sse2_cvtsd2si_2): Likewise.
17534         (sse2_cvtsd2siq_2): Likewise.
17535         (*<plusminus_insn><mode>3): Likewise.
17536         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
17537         (*<sse4_1_avx2>_mul<mode>3): Likewise.
17538         (ashr<mode>3): Likewise.
17539         (<shift_insn><mode>3): Likewise.
17540         (avx2_<code><mode>3): Likewise.
17541         (*avx2_<code><mode>3): Likewise.
17542         (*andnot<mode>3): Likewise.
17543         (*<code><mode>3) <any_logic>: Likewise.
17544         (abs<mode>2): Likewise.
17545         (avx2_permvar<mode>): Likewise.
17546         (avx2_perm<mode>_1): Likewise.
17547         (*avx_vpermilp<mode>): Likewise.
17548         (avx_vpermilvar<mode>3): Likewise.
17549         (avx2_ashrv<mode>): Likewise.
17550         (avx2_<shift_insn>v<mode>): Likewise.
17551         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
17552         -mavx512cd.
17553         * doc/rtl.texi: Document XImode.
17555 2013-08-21  Jeff Law  <law@redhat.com>
17557         * tree-flow.h (register_jump_thread): Pass vector of edges
17558         instead of each important edge.
17559         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
17560         thread path into a vector and pass that to register_jump_thread.
17561         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
17562         passed in edge vector to the current 3-edge form.
17564         Revert:
17565         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
17567         * dce.c (fini_dce): Call df_analyze again just in case
17568         delete_unmarked_insns removed anything.
17570 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
17572         * reload.h (struct reg_equivs): Rename to ..
17573         (struct reg_equivs_s): .. this.
17575 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
17577         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
17579 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17581         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
17583 2013-08-21  Jeff Law  <law@redhat.com>
17585         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
17586         simplify assignments too.  If the RHS collapses to a singleton
17587         range, then return the value for the range.
17589 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
17591         * config/i386/sse.md (V16): Rename to...
17592         (VMOVE): this.
17593         (mov<mode>): Update iterator name.
17594         (*mov<mode>_internal): Ditto.
17595         (push<mode>1): Ditto.
17596         (movmisalign<mode>): Ditto.
17598 2013-08-20  Jan Hubicka  <jh@suse.cz>
17600         PR bootstrap/58186
17601         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
17602         entry for direct edges.
17603         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
17605 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17607         Revert my last two changes, r201865 and r201864:
17609         Revert r201865:
17610         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17612         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
17613         instances can own GC refs.
17615         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
17616         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
17617         (gcc::context::gt_pch_nx): Likewise.
17618         (gcc::context::gt_pch_nx):  Likewise.
17619         * ggc.h (gt_ggc_mx <T>): New.
17620         (gt_pch_nx_with_op <T>): New.
17621         (gt_pch_nx <T>): New.
17622         * passes.c (opt_pass::gt_ggc_mx): New.
17623         (opt_pass::gt_pch_nx): New.
17624         (opt_pass::gt_pch_nx_with_op): New.
17625         (pass_manager::gt_ggc_mx): New.
17626         (pass_manager::gt_pch_nx): New.
17627         (pass_manager::gt_pch_nx_with_op): New.
17628         (pass_manager::operator new): Use
17629         ggc_internal_cleared_alloc_stat rather than xcalloc.
17630         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
17631         (pass_manager::gt_ggc_mx): New.
17632         (pass_manager::gt_pch_nx): New.
17633         (pass_manager::gt_pch_nx_with_op): New.
17634         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
17635         (opt_pass::operator new): New.
17636         (opt_pass::gt_ggc_mx): New.
17637         (opt_pass::gt_pch_nx): New.
17638         (opt_pass::gt_pch_nx_with_op): New.
17640         Revert r201864:
17641         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17643         * Makefile.in (GTFILES): Add context.h.
17644         * context.c (gcc::context::operator new): New.
17645         (gcc::context::gt_ggc_mx): New.
17646         (gcc::context::gt_pch_nx): New.
17647         (gcc::context::gt_pch_nx): New.
17648         * context.h (gcc::context): Add GTY((user)) marking.
17649         (gcc::context::operator new): New.
17650         (gcc::context::gt_ggc_mx): New.
17651         (gcc::context::gt_pch_nx): New.
17652         (gcc::context::gt_pch_nx): New.
17653         (g): Add GTY marking.
17654         (gt_ggc_mx (gcc::context *)): New.
17655         (gt_pch_nx (gcc::context *)): New.
17656         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
17657         void *cookie)): New.
17658         * gengtype.c (open_base_files) <ifiles>: Add context.h.
17660 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
17662         * dce.c (fini_dce): Call df_analyze again just in case
17663         delete_unmarked_insns removed anything.
17665 2013-08-20  Teresa Johnson  <tejohnson@google.com>
17667         PR rtl-optimizations/57451
17668         * final.c (reemit_insn_block_notes): Prevent lexical blocks
17669         from crossing split section boundaries.
17671 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
17673         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
17674         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
17675         with MULTLIB_DEFAULTS.
17677 2013-08-20  Nick Clifton  <nickc@redhat.com>
17679         * target.def (narrow_volatile_bitfield): Note that the default
17680         value is false, not !TARGET_STRICT_ALIGN.
17681         * doc/tm.texi: Regenerate.
17683 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
17685         Fix LIB_SPEC for systems without libpthread.
17687         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
17688         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
17689         for Android.
17690         * config/i386/linux-common.h: Likewise.
17691         * config/mips/linux-common.h: Likewise.
17693 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
17695         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
17696         checks.
17698 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17700         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
17701         instances can own GC refs.
17703         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
17704         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
17705         (gcc::context::gt_pch_nx): Likewise.
17706         (gcc::context::gt_pch_nx):  Likewise.
17707         * ggc.h (gt_ggc_mx <T>): New.
17708         (gt_pch_nx_with_op <T>): New.
17709         (gt_pch_nx <T>): New.
17710         * passes.c (opt_pass::gt_ggc_mx): New.
17711         (opt_pass::gt_pch_nx): New.
17712         (opt_pass::gt_pch_nx_with_op): New.
17713         (pass_manager::gt_ggc_mx): New.
17714         (pass_manager::gt_pch_nx): New.
17715         (pass_manager::gt_pch_nx_with_op): New.
17716         (pass_manager::operator new): Use
17717         ggc_internal_cleared_alloc_stat rather than xcalloc.
17718         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
17719         (pass_manager::gt_ggc_mx): New.
17720         (pass_manager::gt_pch_nx): New.
17721         (pass_manager::gt_pch_nx_with_op): New.
17722         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
17723         (opt_pass::operator new): New.
17724         (opt_pass::gt_ggc_mx): New.
17725         (opt_pass::gt_pch_nx): New.
17726         (opt_pass::gt_pch_nx_with_op): New.
17728 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
17730         * Makefile.in (GTFILES): Add context.h.
17731         * context.c (gcc::context::operator new): New.
17732         (gcc::context::gt_ggc_mx): New.
17733         (gcc::context::gt_pch_nx): New.
17734         (gcc::context::gt_pch_nx): New.
17735         * context.h (gcc::context): Add GTY((user)) marking.
17736         (gcc::context::operator new): New.
17737         (gcc::context::gt_ggc_mx): New.
17738         (gcc::context::gt_pch_nx): New.
17739         (gcc::context::gt_pch_nx): New.
17740         (g): Add GTY marking.
17741         (gt_ggc_mx (gcc::context *)): New.
17742         (gt_pch_nx (gcc::context *)): New.
17743         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
17744         void *cookie)): New.
17745         * gengtype.c (open_base_files) <ifiles>: Add context.h.
17747 2013-08-20  Alan Modra  <amodra@gmail.com>
17749         PR target/57865
17750         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
17751         (rs6000_emit_epilogue): Likewise.
17753 2013-08-19  Dehao Chen  <dehao@google.com>
17755         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
17757 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
17758             Jakub Jelinek  <jakub@redhat.com>
17760         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
17761         (BUILT_IN_FABSD64): Likewise.
17762         (BUILT_IN_FABSD128): Likewise.
17763         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
17764         (fold_builtin_1): Likewise.
17765         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
17766         destination and source operands.
17767         (*abstd2_fpr): Likewise.
17768         (*nabstd2_fpr): Likewise.
17770 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
17772         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
17773         JUMP_P and INSN_P.
17775 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
17777         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
17778         incomplete.
17780 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17782         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
17783         * builtins.c (default_libc_has_function): New.
17784         (gnu_libc_has_function): Ditto.
17785         (no_c99_libc_has_function): Ditto.
17786         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
17787         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
17788         (fold_builtin_sincos): Likewise.
17789         (fold_builtin_cexp): Likewise.
17790         * builtins.def (DEF_C94_BUILTIN): Likewise.
17791         (DEF_C99_BUILTIN): Likewise.
17792         (DEF_C99_C90RES_BUILTIN): Likewise.
17793         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
17794         definitions to using this define.
17795         * config/darwin-protos.h (darwin_libc_has_function): New.
17796         * config/darwin.c (darwin_libc_has_function): Ditto.
17797         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
17798         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
17799         * config/darwin.h: Ditto.
17800         * config/elfos.h: Ditto.
17801         * config/freebsd.h: Ditto.
17802         * config/i386/cygming.h: Ditto.
17803         * config/i386/djgpp.h: Ditto.
17804         * config/i386/i386-interix.h: Ditto.
17805         * config/microblaze/microblaze.h: Ditto.
17806         * config/mmix/mmix.h: Ditto.
17807         * config/gnu-user.h: Ditto.
17808         * config/ia64/hpux.h: Ditto.
17809         * config/pa/pa-hpux.h: Ditto.
17810         * config/pdp11/pdp11.h: Ditto.
17811         * config/picochip/picochip.h: Ditto.
17812         * config/linux.h: Ditto.
17813         * config/netbsd.h: Ditto.
17814         * config/openbsd.h: Ditto.
17815         * config/rs6000/aix43.h: Ditto.
17816         * config/rs6000/aix51.h: Ditto.
17817         * config/rs6000/aix52.h: Ditto.
17818         * config/rs6000/aix53.h: Ditto.
17819         * config/rs6000/aix61.h: Ditto.
17820         * config/rs6000/darwin.h: Ditto.
17821         * config/rs6000/linux.h: Ditto.
17822         * config/rs6000/linux64.h: Ditto.
17823         * config/s390/tpf.h: Ditto.
17824         * config/sol2-10.h: Ditto.
17825         * config/sol2.h: Ditto.
17826         * config/vms/vms.h: Ditto.
17827         * config/vxworks.h: Ditto.
17828         * config/linux-android.c (linux_android_libc_has_function):
17829         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
17830         * config/linux-protos.h (linux_android_libc_has_function):
17831         New declaration.
17832         * config/i386/i386.c (ix86_libc_has_function): New.
17833         * config/i386/i386-protos.h
17834         (ix86_libc_has_function): New declaration.
17835         * config/i386/i386.md
17836         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
17837         ("isinf<mode>2): Likewise.
17838         * convert.c (convert_to_integer): Using new target hook
17839         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
17840         TARGET_C99_FUNCTIONS.
17841         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
17842         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
17843         * coretypes.h (function_class): New enum for different
17844         classes of functions.
17845         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
17846         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
17847         (TARGET_HAS_SINCOS): Likewise.
17848         (TARGET_LIBC_HAS_FUNCTION): New.
17849         * doc/tm.texi: Regenerated.
17850         * targhooks.h (default_libc_has_function): New declaration.
17851         (no_c99_libc_has_function): Ditto.
17852         (gnu_libc_has_function): Ditto.
17853         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
17854         and TARGET_HAS_SINCOS.
17856 2013-08-18  Jan Hubicka  <jh@suse.cz>
17858         * Makeifle-in (ipa-devirt.o): New.
17859         (GTFILES): Add ipa-utils.h and ipa-devirt.c
17860         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
17861         (analyze_functions): Look into possible targets of polymorphic call.
17862         * dumpfile.c (dump_files): Add type-inheritance dump.
17863         * dumpfile.h (TDI_inheritance): New.
17864         * ipa-devirt.c: New file.
17865         * ipa-utils.h (odr_type_d): Forward declare.
17866         (odr_type): New type.
17867         (build_type_inheritance_graph): Declare.
17868         (possible_polymorphic_call_targets): Declare and introduce inline
17869         variant when only edge is pased.
17870         (dump_possible_polymorphic_call_targets): Likewise.
17871         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
17872         * tree.c (type_in_anonymous_namespace_p): Break out from ...
17873         (types_same_for_odr): ... here.
17874         * tree.h (type_in_anonymous_namespace_p): Declare.
17876 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
17878         PR tree-optimization/58006
17879         * tree-parloops.c (take_address_of): Don't ICE if get_name
17880         returns NULL.
17881         (eliminate_local_variables_stmt): Remove clobber stmts.
17883 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
17885         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
17886         error message is issued for an alias to undefined symbol.
17888 2013-08-18  Jan Hubicka  <jh@suse.cz>
17890         * cgraph.c (cgraph_create_indirect_edge): Discover
17891         polymorphic calls and record basic info into indirect_info.
17892         * gimple-fold.c (gimple_fold_call): When doing BINFO based
17893         devirtualization, ignore objc function calls.
17894         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
17895         call with no parm index info.
17896         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
17897         * tree.c (virtual_method_call_p): New function.
17898         * tree.h (virtual_method_call_p): Declare.
17900 2013-08-16  Jan Hubicka  <jh@suse.cz>
17902         PR middle-end/58179
17903         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
17905 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
17907         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
17908         attribute.
17910 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
17912         * gengtype.c (type_for_name): Add special-case support for
17913         locating types within the "gcc::" namespace.
17914         (open_base_files): Emit a "using namespace gcc" directive.
17916 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
17918         PR target/58160
17919         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
17920         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
17922         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
17923         array instead of each individual operand as a separate argument.
17924         (emit_fusion_gpr_load): Likewise.
17925         (expand_fusion_gpr_load): Add new function declaration.
17927         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
17928         signature to have the operands passed as an array, instead of as
17929         separate arguments.  Allow ZERO_EXTEND to be in the memory
17930         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
17931         depend on the register live/dead flags when peepholes are run.
17932         (expand_fusion_gpr_load): New function to be called from the
17933         peephole2 pass, to change the register that addis sets to be the
17934         target register.
17935         (emit_fusion_gpr_load): Change the calling signature to have the
17936         operands passed as an array, instead of as separate arguments.
17937         Allow ZERO_EXTEND to be in the memory address, and also
17938         SIGN_EXTEND if -mpower8-fusion-sign.
17940         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
17941         unspec enumeration.
17942         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
17943         adjust the register addis loads up in the peephole2 pass.  Do not
17944         depend on the register live/dead state when the peephole pass is done.
17946 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
17948         * gengtype.c (create_user_defined_type): Ensure that the kind
17949         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
17950         declaration is seen before the GTY((user)) marking.
17952 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17954         PR target/58105
17955         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
17957 2013-08-16  Jan Hubicka  <jh@suse.cz>
17959         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
17960         arugment expected_type.
17961         (gimple_fold_call): Use it.
17962         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
17963         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
17964         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
17965         (try_make_edge_direct_virtual_call): Likewise.
17966         * tree.c (obj_type_ref_class): New.
17967         * tree.h (obj_type_ref_class): Use it.
17969 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17971         * sched-vis.c (rtl_slim_pp_initialized): Remove.
17972         (rtl_slim_pp): Likewise.
17973         (init_rtl_slim_pretty_print): Likewise.
17974         (dump_value_slim):  Don't call it.  Use local pretty printer.
17975         (dump_insn_slim): Likewise.
17976         (dump_rtl_slim): Likewise.
17977         (str_pattern_slim): Likewise.
17978         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
17979         Simplify.
17981 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
17983         PR tree-optimization/58164
17984         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
17985         walk gimple_goto_dest of GIMPLE_GOTO.
17987         PR tree-optimization/58165
17988         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
17989         bi_call must be the last stmt in a bb, don't split_block, instead
17990         use fallthru edge from it and give up if there is none.
17991         Release conds vector when returning early.
17993 2013-08-14  Xinliang David Li  <davidxl@google.com>
17995         * config/i386/i386.c (ix86_option_override_internal):
17996         Remove unused variable and field.
17998 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18000         PR target/57949
18001         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
18002         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
18003         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
18004         and Linux, correct BLKmode alignment when 128-bit alignment is
18005         required and compatibility flag is not set.
18006         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
18007         for zero-size arguments when compatibility flag is not set.
18009 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
18011         PR tree-optimization/58145
18012         * tree-sra.c (build_ref_for_offset): If prev_base has
18013         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
18015 2013-08-14  Xinliang David Li  <davidxl@google.com>
18017         * config/i386/i386.c (ix86_option_override_internal):
18018         Fix uninitialized variable error.
18020 2013-08-14  Xinliang David Li  <davidxl@google.com>
18022         * config/i386/i386.opt: Define two new options.
18023         * config/i386/x86-tune.def: Add arch selector field in macros.
18024         * config/i386/i386.h: Adjust macro definition.
18025         * config/i386/i386.c (ix86_option_override_internal):
18026         Refactor the code.
18027         (parse_mtune_ctrl_str): New function.
18028         (set_ix86_tune_features): New function.
18029         (ix86_function_specific_restore): Call the new helper function.
18031 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
18033         PR rtl-optimization/57662
18034         * sel-sched.c (code_motion_process_successors): When the current insn
18035         is removed after the recursive traversal, break from the loop.
18036         Add comments and debug printouts.
18038 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
18039             Alexandre Oliva  <aoliva@redhat.com>
18041         PR target/58067
18042         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
18043         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
18044         there also UNSPEC_PLTOFF.
18046 2013-08-14  Marek Polacek  <polacek@redhat.com>
18048         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
18049         NUM_CONDITIONS bit positions.
18051 2013-08-13  Cary Coutant  <ccoutant@google.com>
18053         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
18054         (attr_checksum): Hash vector contents instead of pointer.
18055         (attr_checksum_ordered): Likewise.
18057 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
18059         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
18060         when Pmode != word_mode.  Add length_address attribute.
18061         (sse3_monitor_<mode>): Merge from sse3_monitor and
18062         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
18063         Pmode != word_mode.  Update insn length attribute.
18064         * config/i386/i386.c (ix86_option_override_internal): Update
18065         ix86_gen_monitor selection for merged sse3_monitor insn.
18067 2013-08-13  Julian Brown  <julian@codesourcery.com>
18069         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
18070         perform invalid legitimization on greater-than-word-size modes for
18071         TARGET_E500_DOUBLE.
18073 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
18075         * ira.c (setup_class_translate_array): Use aclass instead of cl
18076         for classes not fully covered by allocno classes.
18078 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
18080         PR tree-optimization/57661
18081         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
18082         * tree-inline.c (tree_function_versioning): Initialize it.
18083         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
18084         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
18085         that is not being copied.
18087         PR sanitizer/56417
18088         * asan.c (instrument_strlen_call): Fix typo in comment.
18089         Use char * type even for the lhs of POINTER_PLUS_EXPR.
18091 2013-08-13  Steve Ellcey  <sellcey@mips.com>
18093         * config/mips/mips.md (prefetch): Use lw instead of ld on
18094         loongson in 32bit mode.
18096 2013-08-13  Nick Clifton  <nickc@redhat.com>
18098         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
18100 2013-08-13  Jan Hubicka  <jh@suse.cz>
18102         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
18103         introduced edge; fix typo in sanity check.
18104         (cgraph_resolve_speculation): Export; improve diagnostic.
18105         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
18106         speculation at type mismatch.
18107         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
18108         (cgraph_resolve_speculation): Declare.
18109         (symtab_can_be_discarded): New function.
18110         * value-prof.c (gimple_ic_transform): Remove actual transform code.
18111         * ipa-inline-transform.c (speculation_removed): New global var.
18112         (clone_inlined_nodes): See if speculation can be removed.
18113         (inline_call): If speculations was removed, we growths may not match.
18114         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
18115         (speculation_useful_p): New function.
18116         (resolve_noninline_speculation): New function.
18117         (inline_small_functions): Resolve useless speculations.
18118         * ipa-inline.h (speculation_useful_p): Declare
18119         * ipa.c (can_replace_by_local_alias): Simplify.
18120         (ipa_profile): Produce speculative calls in non-lto, too;
18121         add simple cost model; produce local aliases.
18123 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
18125         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
18126         PASS_MANAGER_H.
18128 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
18130         * config/i386/i386.c (ix86_function_versions): Use error + inform.
18132 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
18134         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
18135         iterator instead of X87MODEF.
18137 2013-08-12  Perez Read  <netfirewall@gmail.com>
18139         PR target/58132
18140         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
18141         operand 0 for intel asm alternative.
18142         (*movabs<mode>_2): Ditto for operand 1.
18144 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
18146         * config/aarch64/arm_none.h
18147         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
18149 2013-08-12  Nick Clifton  <nickc@redhat.com>
18151         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
18153 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
18155         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
18156         expand for QI/HImode operand to produce more effictive code for
18157         unsigned char(short) --> float(double) conversion.
18159 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
18161         * doc/invoke.texi: Mention that -ftls-model does not force the final
18162         model.
18164 2013-08-12  Marek Polacek  <polacek@redhat.com>
18165             Marc Glisse  <marc.glisse@inria.fr>
18167         PR tree-optimization/57980
18168         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
18169         when creating -1 constant.
18171 2013-08-10  Jan Hubicka  <jh@suse.cz>
18173         Workaround binutils PR14342.
18174         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
18175         (gimple_init_edge_profiler): Likewise.
18176         (gimple_gen_ic_func_profiler): Likewise.
18178 2013-08-09  Jan Hubicka  <jh@suse.cz>
18180         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
18182 2013-08-09  Xinliang David Li  <davidxl@google.com>
18184         * config/i386/stringop.def: New file.
18185         * config/i386/stringop.opt: New file.
18186         * config/i386/i386-opts.h: Include stringopt.def.
18187         * config/i386/i386.opt: Include stringopt.opt.
18188         * config/i386/i386.c (ix86_option_override_internal):
18189         Override default size based stringop inline strategies with options.
18190         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
18191         New function.
18193 2013-08-09  Jan Hubicka  <jh@suse.cz>
18195         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
18197 2013-08-09  Jan Hubicka  <jh@suse.cz>
18199         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
18200         CGRAPH_FREQ_MAX.
18201         (dump_cgraph_node): Dump profile-id.
18202         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
18203         and common_target_probability.
18204         * lto-cgraph.c (lto_output_edge): Stream common targets.
18205         (lto_output_node): Stream profile ids.
18206         (input_node): Stream profile ids.
18207         (input_edge): Stream common targets.
18208         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
18209         * ipa.c: Include value-prof.h
18210         (ipa_profile_generate_summary): Turn indirect call statement histograms
18211         into common targets.
18212         (ipa_profile): Turn common targets into speculative edges.
18214 2013-08-09  Jan Hubicka  <jh@suse.cz>
18216         * cgraph.h (cgraph_node): Add profile_id.
18217         * value-prof.c (cgraph_node_map): Turn into pointer_map.
18218         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
18219         (del_node_map): Update.
18220         (find_func_by_funcdef_no): Replace by ...
18221         (find_func_by_profile_id): ... this one.
18222         (gimple_ic_transform): Do not remove useful histograms when
18223         speculation is not done; dump info when indirect call removal
18224         can happen at LTO.
18225         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
18226         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
18227         (__gcov_indirect_call_profiler_v2): .. this one.
18228         * profile.h (init_node_map): Update.
18229         * coverage.c (coverage_compute_profile_id): New function.
18230         * coverage.h (coverage_compute_profile_id): Declare.
18231         * tree-profile.c (init_ic_make_global_vars): Make
18232         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
18233         (gimple_init_edge_profiler): Update prototype of
18234         __gcov_indirect_call_profiler.
18235         (gimple_gen_ic_func_profiler): Simplify.
18236         (tree_profiling): Use init_node_map
18238 2013-08-09  Jan Hubicka  <jh@suse.cz>
18240         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
18241         non-speculative refs.
18242         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
18243         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
18244         (cgraph_set_call_stmt): Likewise.
18245         (cgraph_create_edge_1): Fix release checking compilatoin;
18246         clear lto_stmt_uid.
18247         (cgraph_free_edge): Free indirect info.
18248         (cgraph_turn_edge_to_speculative): New function.
18249         (cgraph_speculative_call_info): New function.
18250         (cgraph_make_edge_direct): Return direct edge; handle speculation.
18251         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
18252         (dump_cgraph_node): Dump speculation.
18253         (verify_edge_count_and_frequency): Accept speculative edges.
18254         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
18255         (verify_cgraph_node): Handle speculation.
18256         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
18257         (cgraph_set_call_stmt): Update prototype.
18258         (cgraph_make_edge_direct): Update prototype.
18259         (cgraph_speculative_call_info): Declare.
18260         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
18261         to change; update call of ipa_find_references.
18262         * ipa-ref.c (ipa_record_reference): Fix return value; clear
18263         lto_stmt_uid and speculative flags.
18264         (ipa_dump_references): Dump speculation.
18265         (ipa_clone_references): Clone speculative flag.
18266         (ipa_clone_referring): Likewise.
18267         (ipa_clone_ref): New function.
18268         (ipa_find_reference): Look into lto_stmt_uids
18269         (ipa_clear_stmts_in_references): Do not clear speculative calls.
18270         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
18271         (ipa_find_reference): Update declaration.
18272         (ipa_clone_ref): Declare.
18273         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
18274         stream speculative flag.
18275         (lto_output_ref): Stream statements uids and speculation.
18276         (input_ref): Likewise.
18277         (input_edge): Stream speuclation.
18278         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
18279         (cgraph_set_call_stmt_including_clones): Handle speculation.
18280         * ipa-inline.c (heap_edge_removal_hook): New function.
18281         (inline_small_functions): Register it.
18282         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
18283         also initialize refs.
18284         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
18285         edge to change.
18286         (try_make_edge_direct_simple_call): Likewise.
18287         (try_make_edge_direct_simple_call): Likewise.
18288         (update_indirect_edges_after_inlining): Likewise.
18289         (remove_described_reference): Look proper lto_stmt_uid.
18290         (propagate_controlled_uses): Likewise.
18291         (propagate_controlled_uses): Liekwise.
18292         * tree-inline.c (copy_bb): Copy speculative edges.
18293         (redirect_all_calls): New function.
18294         (copy_cfg_body): Do redirection after loop info is updated.
18295         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
18297 2013-08-09  Jan Hubicka  <jh@suse.cz>
18299         * lto-streamer-out.c (output_function): Renumber PHIs.
18300         * lto-streamer-in.c (input_function): Likewise.
18302 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
18304         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
18305         (get_lane_unsigned): Likewise.
18306         (dup_lane_scalar): Likewise.
18307         (get_lane): enable for VALL.
18308         * config/aarch64/aarch64-simd.md
18309         (aarch64_dup_lane_scalar<mode>): Remove.
18310         (aarch64_get_lane_signed<mode>): Likewise.
18311         (aarch64_get_lane_unsigned<mode>): Likewise.
18312         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
18313         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
18314         (aarch64_get_lane<mode>): Enable for all vector modes.
18315         (aarch64_get_lanedi): Remove misleading constraints.
18316         * config/aarch64/arm_neon.h
18317         (__aarch64_vget_lane_any): Define.
18318         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
18319         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
18320         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
18321         * config/aarch64/iterators.md (VDQQH): New.
18322         (VDQQHS): Likewise.
18323         (vwcore): Likewise.
18325 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
18327         * configure.ac: Add GAS check for LEON instructions on SPARC.
18328         * configure: Regenerate.
18329         * config.in: Likewise.
18330         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
18331         sparc*-*-* block.
18332         * config/sparc/sparc.opt (LEON, LEON3): New masks.
18333         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
18334         for LEON or LEON3.
18335         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
18336         (AS_LEON_FLAG): New macro.
18337         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
18338         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
18339         Deal with LEON and LEON3 for the memory model.
18340         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
18341         (atomic_compare_and_swap<mode>_1): Likewise.
18342         (*atomic_compare_and_swap<mode>_1): Likewise.
18344 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
18346         * config/arm/neon.md (vcond): Fix floating-point vector
18347         comparisons against 0.
18349 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
18351         * lra-constraints.c (emit_spill_move): Remove assert.
18352         (process_alt_operands): Add more debugging
18353         output.  Increase reject for spilling into memory.  Decrease
18354         reject for reloading scratch.
18355         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
18357 2013-08-08  Steve Ellcey  <sellcey@mips.com>
18359         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
18360         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
18361         micromips incompatible.  Add nan2008.
18362         (MULTILIB_DIRNAMES): Add nan2008.
18363         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18364         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
18365         and micromips incompatible.  Add nan2008.
18366         (MULTILIB_DIRNAMES): Add nan2008.
18367         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
18369 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
18371         PR rtl-optimization/58079
18372         * combine.c (combine_simplify_rtx): Avoid using SUBST if
18373         simplify_comparison has widened a comparison with an integer.
18375 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18377         * config/arm/neon.md (movmisalign<mode>): Disable when we
18378         don't allow unaligned accesses.
18379         (*movmisalign<mode>_neon_store): Likewise.
18380         (*movmisalign<mode>_neon_load): Likewise.
18381         (*movmisalign<mode>_neon_store): Likewise.
18382         (*movmisalign<mode>_neon_load): Likewise.
18384 2013-08-08  Jan Hubicka  <jh@suse.cz>
18386         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
18387         (make_pass_rebuild_cgraph_edges): Also clear references.
18388         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
18389         * ipa-inline-transform.c (inline_transform): Remove all references
18390         after inlining.
18391         * cgraphunit.c (expand_function): Remove all references after
18392         expansion.
18393         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
18394         (ipa_find_reference): Rewrite to iterator.
18395         (remove_stmt_references): Likewise.
18396         (ipa_clear_stmts_in_references): New function.
18397         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
18398         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
18399         clear references.
18400         * ipa-split.c (split_function): Remove references in split function.
18402 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
18404         PR target/57431
18405         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
18406         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
18408 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
18410         PR target/56979
18411         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
18412         suggested mode for the assignment isn't compatible with the
18413         registers required.
18415 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18417         PR target/58065
18418         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
18420 2013-08-07  Xinliang David Li  <davidxl@google.com>
18422         * config/i386/i386.opt: New option -mtune-ctrl=.
18423         * config/i386/x86-tune.def: New file.
18424         * config/i386/i386.h: include x86-tune.def.
18425         * config/i386/i386.c (ix86_option_override_internal):
18426         Parsing -mtune-ctrl= option and set tune features.
18428 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
18430         PR other/12081
18431         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
18432         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
18433         to gen_2arg_fn_t.
18435 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
18437         * rtl.h (update_alignments): Declare.
18438         * final.c (grow_label_align): New function extracted from...
18439         (shorten_branches): ...here.  Call it.
18440         (update_alignments): New function.
18441         * reorg.c (sibling_labels): New variable.
18442         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
18443         the new label along with it onto the sibling_labels vector.
18444         (fill_simple_delay_slots): Adjust call to get_label_before.
18445         (fill_slots_from_thread): Likewise.
18446         (relax_delay_slots): Likewise.
18447         (make_return_insns): Likewise.
18448         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
18450 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
18452         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
18453         document its semantics.
18454         (diagnostic_report_diagnostic): Adjust accordingly.
18456 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
18458         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
18459         (sparc_option_override): ...and port to new C++ pass API.
18460         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
18462 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
18464         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
18466 2013-08-06  Caroline Tice  <cmtice@google.com>
18468         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
18469         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
18470         * tree-pass.h: Add pass_vtable_verify.
18471         * varasm.c (assemble_variable): Add code to properly set the comdat
18472         section and name for the .vtable_map_vars section.
18473         (assemble_vtyv_preinit_initializer): New function.
18474         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
18475         LINK_ONCE flag.
18476         * output.h: Add function decl for assemble_vtv_preinit_initializer.
18477         * vtable-verify.c: New file.
18478         * vtable-verify.h: New file.
18479         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
18480         initialiation levels.
18481         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
18482         * passes.def: Insert pass_vtable_verify.
18483         * aclocal.m4: Reorder includes.
18484         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
18485         -fvtv-counts options.
18486         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
18487         as appropriate, if -fvtable-verify=... is used.
18488         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
18489         -fvtable-verify=... is used.
18490         * Makefile.in (OBJS):  Add vtable-verify.o to list.
18491         (vtable-verify.o): Add new build rule.
18492         (GTFILES): Add vtable-verify.c to list.
18493         * common.opt (fvtable-verify=): New flag.
18494         (vtv_priority): Values for fvtable-verify= flag.
18495         (fvtv-counts): New flag.
18496         (fvtv-debug): New flag.
18497         * tree.h (save_vtable_map_decl): New extern function decl.
18499 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
18501         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
18502         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
18503         (pass_data_rl78_devirt): ...new pass_data instance and...
18504         (make_pass_rl78_devirt): ...new function.
18505         (rl78_asm_file_start): Port pass registration to new C++ API.
18507 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
18509         * coretypes.h (rtl_opt_pass): Add.
18510         (gcc::context): Add.
18511         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
18512         (epiphany_init): Port to new C++ pass API.
18513         (epiphany_optimize_mode_switching): Likewise.
18514         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
18515         (pass_manager::get_pass_mode_switching): New.
18516         (pass_manager::get_pass_peephole2): New.
18517         * mode-switching.c (pass_mode_switching): Add clone method.
18518         * recog.c (pass_peephole2): Add clone method.
18519         (pass_split_all_insns): Add clone method.
18521 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
18523         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
18524         (mips_option_override): ...here, porting to new C++ API for passes.
18526 2013-08-06  Jan Hubicka  <jh@suse.cz>
18528         * cgraph.c (cgraph_get_body): New function based on lto.c
18529         implementation.
18530         * cgraph.h (cgraph_get_body): Declare.
18531         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
18532         LTO paths.
18533         * cgraphunit.c (expand_function): Get body prior expanding.
18534         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
18535         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
18536         really need.
18537         * passes.c (do_per_function_toporder): Get body.
18538         * tree-inline.c (expand_call_inline): Get body prior inlining it.
18539         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
18541 2013-08-06  Martin Jambor  <mjambor@suse.cz>
18543         PR fortran/57987
18544         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
18545         is not re-finalized.  Rename second parameter to no_collect.
18547 2013-08-06  Martin Jambor  <mjambor@suse.cz>
18549         PR middle-end/58041
18550         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
18551         MEM_REF has proper alignment information.
18553 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
18555         PR other/12081
18556         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
18557         class insn_gen_fn.
18558         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
18559         rtx (*) (rtx, ...) with insn_gen_fn.
18560         * genoutput.c (output_insn_data): Cast gen_? function pointers to
18561         insn_gen_fn::stored_funcptr.  Add initializer braces.
18563 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
18565         Rewrite how instances of passes are cloned to remove assumptions
18566         about their sizes (thus allowing pass subclasses to have
18567         additional data fields, albeit non-GC-managed ones at this point).
18569         * passes.c (make_pass_instance): Now that passes have clone
18570         methods, rewrite this function to eliminate XNEW and memcpy
18571         calls that used hardcoded sizes.  Since this function no longer
18572         creates pass instances, rename it to...
18573         (add_pass_instance): ...this.  Document the old way that passes were
18574         numbered and flagged, and rework this function to continue using it.
18575         (next_pass_1): Add an initial_pass argument for use by
18576         add_pass_instance.
18577         (position_pass): When adding multiple instances of a pass, use
18578         the pass's clone method, rather than relying on the XNEW/memcpy
18579         within the former make_pass_instance (now add_pass_instance).
18580         (pass_manager::pass_manager): When invoking next_pass_1, also supply
18581         the initial instance of the current pass within the pass manager.
18583 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
18585         This is the automated part of the conversion of passes from C
18586         structs to C++ classes.
18588         Patch autogenerated by refactor_passes.py from
18589         https://github.com/davidmalcolm/gcc-refactoring-scripts
18590         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
18592         * asan.c (pass_asan): Convert from a global struct to a subclass of
18593         gimple_opt_pass along with...
18594         (pass_data_asan): ...new pass_data instance and...
18595         (make_pass_asan): ...new function.
18596         (pass_asan_O0): Convert from a global struct to a subclass of
18597         gimple_opt_pass along with...
18598         (pass_data_asan_O0): ...new pass_data instance and...
18599         (make_pass_asan_O0): ...new function.
18600         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
18601         subclass of rtl_opt_pass along with...
18602         (pass_data_inc_dec): ...new pass_data instance and...
18603         (make_pass_inc_dec): ...new function.
18604         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
18605         a subclass of rtl_opt_pass along with...
18606         (pass_data_reorder_blocks): ...new pass_data instance and...
18607         (make_pass_reorder_blocks): ...new function.
18608         (pass_duplicate_computed_gotos): Convert from a global struct to a
18609         subclass of rtl_opt_pass along with...
18610         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
18611         (make_pass_duplicate_computed_gotos): ...new function.
18612         (pass_partition_blocks): Convert from a global struct to a subclass of
18613         rtl_opt_pass along with...
18614         (pass_data_partition_blocks): ...new pass_data instance and...
18615         (make_pass_partition_blocks): ...new function.
18616         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
18617         struct to a subclass of rtl_opt_pass along with...
18618         (pass_data_branch_target_load_optimize1): ...new pass_data instance
18619         and...
18620         (make_pass_branch_target_load_optimize1): ...new function.
18621         (pass_branch_target_load_optimize2): Convert from a global struct to a
18622         subclass of rtl_opt_pass along with...
18623         (pass_data_branch_target_load_optimize2): ...new pass_data instance
18624         and...
18625         (make_pass_branch_target_load_optimize2): ...new function.
18626         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
18627         of rtl_opt_pass along with...
18628         (pass_data_jump): ...new pass_data instance and...
18629         (make_pass_jump): ...new function.
18630         (pass_jump2): Convert from a global struct to a subclass of
18631         rtl_opt_pass along with...
18632         (pass_data_jump2): ...new pass_data instance and...
18633         (make_pass_jump2): ...new function.
18634         * cfgexpand.c (pass_expand): Convert from a global struct to a
18635         subclass of rtl_opt_pass along with...
18636         (pass_data_expand): ...new pass_data instance and...
18637         (make_pass_expand): ...new function.
18638         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
18639         of rtl_opt_pass along with...
18640         (pass_data_free_cfg): ...new pass_data instance and...
18641         (make_pass_free_cfg): ...new function.
18642         (pass_into_cfg_layout_mode): Convert from a global struct to a
18643         subclass of rtl_opt_pass along with...
18644         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
18645         (make_pass_into_cfg_layout_mode): ...new function.
18646         (pass_outof_cfg_layout_mode): Convert from a global struct to a
18647         subclass of rtl_opt_pass along with...
18648         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
18649         (make_pass_outof_cfg_layout_mode): ...new function.
18650         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
18651         struct to a subclass of gimple_opt_pass along with...
18652         (pass_data_build_cgraph_edges): ...new pass_data instance and...
18653         (make_pass_build_cgraph_edges): ...new function.
18654         (pass_rebuild_cgraph_edges): Convert from a global struct to a
18655         subclass of gimple_opt_pass along with...
18656         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
18657         (make_pass_rebuild_cgraph_edges): ...new function.
18658         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
18659         subclass of gimple_opt_pass along with...
18660         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
18661         and...
18662         (make_pass_remove_cgraph_callee_edges): ...new function.
18663         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
18664         struct to a subclass of rtl_opt_pass along with...
18665         (pass_data_stack_adjustments): ...new pass_data instance and...
18666         (make_pass_stack_adjustments): ...new function.
18667         * combine.c (pass_combine): Convert from a global struct to a subclass
18668         of rtl_opt_pass along with...
18669         (pass_data_combine): ...new pass_data instance and...
18670         (make_pass_combine): ...new function.
18671         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
18672         global struct to a subclass of rtl_opt_pass along with...
18673         (pass_data_compare_elim_after_reload): ...new pass_data instance
18674         and...
18675         (make_pass_compare_elim_after_reload): ...new function.
18676         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
18677         of rtl_opt_pass along with...
18678         (pass_data_rtl_cprop): ...new pass_data instance and...
18679         (make_pass_rtl_cprop): ...new function.
18680         * cse.c (pass_cse): Convert from a global struct to a subclass of
18681         rtl_opt_pass along with...
18682         (pass_data_cse): ...new pass_data instance and...
18683         (make_pass_cse): ...new function.
18684         (pass_cse2): Convert from a global struct to a subclass of
18685         rtl_opt_pass along with...
18686         (pass_data_cse2): ...new pass_data instance and...
18687         (make_pass_cse2): ...new function.
18688         (pass_cse_after_global_opts): Convert from a global struct to a
18689         subclass of rtl_opt_pass along with...
18690         (pass_data_cse_after_global_opts): ...new pass_data instance and...
18691         (make_pass_cse_after_global_opts): ...new function.
18692         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
18693         of rtl_opt_pass along with...
18694         (pass_data_ud_rtl_dce): ...new pass_data instance and...
18695         (make_pass_ud_rtl_dce): ...new function.
18696         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
18697         rtl_opt_pass along with...
18698         (pass_data_fast_rtl_dce): ...new pass_data instance and...
18699         (make_pass_fast_rtl_dce): ...new function.
18700         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
18701         a subclass of rtl_opt_pass along with...
18702         (pass_data_df_initialize_opt): ...new pass_data instance and...
18703         (make_pass_df_initialize_opt): ...new function.
18704         (pass_df_initialize_no_opt): Convert from a global struct to a
18705         subclass of rtl_opt_pass along with...
18706         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
18707         (make_pass_df_initialize_no_opt): ...new function.
18708         (pass_df_finish): Convert from a global struct to a subclass of
18709         rtl_opt_pass along with...
18710         (pass_data_df_finish): ...new pass_data instance and...
18711         (make_pass_df_finish): ...new function.
18712         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
18713         rtl_opt_pass along with...
18714         (pass_data_rtl_dse1): ...new pass_data instance and...
18715         (make_pass_rtl_dse1): ...new function.
18716         (pass_rtl_dse2): Convert from a global struct to a subclass of
18717         rtl_opt_pass along with...
18718         (pass_data_rtl_dse2): ...new pass_data instance and...
18719         (make_pass_rtl_dse2): ...new function.
18720         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
18721         subclass of rtl_opt_pass along with...
18722         (pass_data_dwarf2_frame): ...new pass_data instance and...
18723         (make_pass_dwarf2_frame): ...new function.
18724         * except.c (pass_set_nothrow_function_flags): Convert from a global
18725         struct to a subclass of rtl_opt_pass along with...
18726         (pass_data_set_nothrow_function_flags): ...new pass_data instance
18727         and...
18728         (make_pass_set_nothrow_function_flags): ...new function.
18729         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
18730         subclass of rtl_opt_pass along with...
18731         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
18732         and...
18733         (make_pass_convert_to_eh_region_ranges): ...new function.
18734         * final.c (pass_compute_alignments): Convert from a global struct to a
18735         subclass of rtl_opt_pass along with...
18736         (pass_data_compute_alignments): ...new pass_data instance and...
18737         (make_pass_compute_alignments): ...new function.
18738         (pass_final): Convert from a global struct to a subclass of
18739         rtl_opt_pass along with...
18740         (pass_data_final): ...new pass_data instance and...
18741         (make_pass_final): ...new function.
18742         (pass_shorten_branches): Convert from a global struct to a subclass of
18743         rtl_opt_pass along with...
18744         (pass_data_shorten_branches): ...new pass_data instance and...
18745         (make_pass_shorten_branches): ...new function.
18746         (pass_clean_state): Convert from a global struct to a subclass of
18747         rtl_opt_pass along with...
18748         (pass_data_clean_state): ...new pass_data instance and...
18749         (make_pass_clean_state): ...new function.
18750         * function.c (pass_instantiate_virtual_regs): Convert from a global
18751         struct to a subclass of rtl_opt_pass along with...
18752         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
18753         (make_pass_instantiate_virtual_regs): ...new function.
18754         (pass_leaf_regs): Convert from a global struct to a subclass of
18755         rtl_opt_pass along with...
18756         (pass_data_leaf_regs): ...new pass_data instance and...
18757         (make_pass_leaf_regs): ...new function.
18758         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
18759         subclass of rtl_opt_pass along with...
18760         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
18761         and...
18762         (make_pass_thread_prologue_and_epilogue): ...new function.
18763         (pass_match_asm_constraints): Convert from a global struct to a
18764         subclass of rtl_opt_pass along with...
18765         (pass_data_match_asm_constraints): ...new pass_data instance and...
18766         (make_pass_match_asm_constraints): ...new function.
18767         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
18768         subclass of rtl_opt_pass along with...
18769         (pass_data_rtl_fwprop): ...new pass_data instance and...
18770         (make_pass_rtl_fwprop): ...new function.
18771         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
18772         rtl_opt_pass along with...
18773         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
18774         (make_pass_rtl_fwprop_addr): ...new function.
18775         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
18776         rtl_opt_pass along with...
18777         (pass_data_rtl_pre): ...new pass_data instance and...
18778         (make_pass_rtl_pre): ...new function.
18779         (pass_rtl_hoist): Convert from a global struct to a subclass of
18780         rtl_opt_pass along with...
18781         (pass_data_rtl_hoist): ...new pass_data instance and...
18782         (make_pass_rtl_hoist): ...new function.
18783         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
18784         subclass of gimple_opt_pass along with...
18785         (pass_data_lower_cf): ...new pass_data instance and...
18786         (make_pass_lower_cf): ...new function.
18787         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
18788         from a global struct to a subclass of gimple_opt_pass along with...
18789         (pass_data_strength_reduction): ...new pass_data instance and...
18790         (make_pass_strength_reduction): ...new function.
18791         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
18792         of rtl_opt_pass along with...
18793         (pass_data_rtl_ifcvt): ...new pass_data instance and...
18794         (make_pass_rtl_ifcvt): ...new function.
18795         (pass_if_after_combine): Convert from a global struct to a subclass of
18796         rtl_opt_pass along with...
18797         (pass_data_if_after_combine): ...new pass_data instance and...
18798         (make_pass_if_after_combine): ...new function.
18799         (pass_if_after_reload): Convert from a global struct to a subclass of
18800         rtl_opt_pass along with...
18801         (pass_data_if_after_reload): ...new pass_data instance and...
18802         (make_pass_if_after_reload): ...new function.
18803         * init-regs.c (pass_initialize_regs): Convert from a global struct to
18804         a subclass of rtl_opt_pass along with...
18805         (pass_data_initialize_regs): ...new pass_data instance and...
18806         (make_pass_initialize_regs): ...new function.
18807         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
18808         of ipa_opt_pass_d along with...
18809         (pass_data_ipa_cp): ...new pass_data instance and...
18810         (make_pass_ipa_cp): ...new function.
18811         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
18812         global struct to a subclass of gimple_opt_pass along with...
18813         (pass_data_inline_parameters): ...new pass_data instance and...
18814         (make_pass_inline_parameters): ...new function.
18815         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
18816         subclass of gimple_opt_pass along with...
18817         (pass_data_early_inline): ...new pass_data instance and...
18818         (make_pass_early_inline): ...new function.
18819         (pass_ipa_inline): Convert from a global struct to a subclass of
18820         ipa_opt_pass_d along with...
18821         (pass_data_ipa_inline): ...new pass_data instance and...
18822         (make_pass_ipa_inline): ...new function.
18823         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
18824         struct to a subclass of gimple_opt_pass along with...
18825         (pass_data_local_pure_const): ...new pass_data instance and...
18826         (make_pass_local_pure_const): ...new function.
18827         (pass_ipa_pure_const): Convert from a global struct to a subclass of
18828         ipa_opt_pass_d along with...
18829         (pass_data_ipa_pure_const): ...new pass_data instance and...
18830         (make_pass_ipa_pure_const): ...new function.
18831         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
18832         to a subclass of ipa_opt_pass_d along with...
18833         (pass_data_ipa_reference): ...new pass_data instance and...
18834         (make_pass_ipa_reference): ...new function.
18835         * ipa-split.c (pass_split_functions): Convert from a global struct to
18836         a subclass of gimple_opt_pass along with...
18837         (pass_data_split_functions): ...new pass_data instance and...
18838         (make_pass_split_functions): ...new function.
18839         (pass_feedback_split_functions): Convert from a global struct to a
18840         subclass of gimple_opt_pass along with...
18841         (pass_data_feedback_split_functions): ...new pass_data instance and...
18842         (make_pass_feedback_split_functions): ...new function.
18843         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
18844         global struct to a subclass of simple_ipa_opt_pass along with...
18845         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
18846         instance and...
18847         (make_pass_ipa_function_and_variable_visibility): ...new function.
18848         (pass_ipa_free_inline_summary): Convert from a global struct to a
18849         subclass of simple_ipa_opt_pass along with...
18850         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
18851         (make_pass_ipa_free_inline_summary): ...new function.
18852         (pass_ipa_whole_program_visibility): Convert from a global struct to a
18853         subclass of ipa_opt_pass_d along with...
18854         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
18855         and...
18856         (make_pass_ipa_whole_program_visibility): ...new function.
18857         (pass_ipa_profile): Convert from a global struct to a subclass of
18858         ipa_opt_pass_d along with...
18859         (pass_data_ipa_profile): ...new pass_data instance and...
18860         (make_pass_ipa_profile): ...new function.
18861         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
18862         ipa_opt_pass_d along with...
18863         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
18864         (make_pass_ipa_cdtor_merge): ...new function.
18865         * ira.c (pass_ira): Convert from a global struct to a subclass of
18866         rtl_opt_pass along with...
18867         (pass_data_ira): ...new pass_data instance and...
18868         (make_pass_ira): ...new function.
18869         (pass_reload): Convert from a global struct to a subclass of
18870         rtl_opt_pass along with...
18871         (pass_data_reload): ...new pass_data instance and...
18872         (make_pass_reload): ...new function.
18873         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
18874         subclass of rtl_opt_pass along with...
18875         (pass_data_cleanup_barriers): ...new pass_data instance and...
18876         (make_pass_cleanup_barriers): ...new function.
18877         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
18878         of rtl_opt_pass along with...
18879         (pass_data_loop2): ...new pass_data instance and...
18880         (make_pass_loop2): ...new function.
18881         (pass_rtl_loop_init): Convert from a global struct to a subclass of
18882         rtl_opt_pass along with...
18883         (pass_data_rtl_loop_init): ...new pass_data instance and...
18884         (make_pass_rtl_loop_init): ...new function.
18885         (pass_rtl_loop_done): Convert from a global struct to a subclass of
18886         rtl_opt_pass along with...
18887         (pass_data_rtl_loop_done): ...new pass_data instance and...
18888         (make_pass_rtl_loop_done): ...new function.
18889         (pass_rtl_move_loop_invariants): Convert from a global struct to a
18890         subclass of rtl_opt_pass along with...
18891         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
18892         (make_pass_rtl_move_loop_invariants): ...new function.
18893         (pass_rtl_unswitch): Convert from a global struct to a subclass of
18894         rtl_opt_pass along with...
18895         (pass_data_rtl_unswitch): ...new pass_data instance and...
18896         (make_pass_rtl_unswitch): ...new function.
18897         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
18898         subclass of rtl_opt_pass along with...
18899         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
18900         and...
18901         (make_pass_rtl_unroll_and_peel_loops): ...new function.
18902         (pass_rtl_doloop): Convert from a global struct to a subclass of
18903         rtl_opt_pass along with...
18904         (pass_data_rtl_doloop): ...new pass_data instance and...
18905         (make_pass_rtl_doloop): ...new function.
18906         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
18907         a subclass of rtl_opt_pass along with...
18908         (pass_data_lower_subreg): ...new pass_data instance and...
18909         (make_pass_lower_subreg): ...new function.
18910         (pass_lower_subreg2): Convert from a global struct to a subclass of
18911         rtl_opt_pass along with...
18912         (pass_data_lower_subreg2): ...new pass_data instance and...
18913         (make_pass_lower_subreg2): ...new function.
18914         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
18915         struct to a subclass of ipa_opt_pass_d along with...
18916         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
18917         (make_pass_ipa_lto_gimple_out): ...new function.
18918         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
18919         of ipa_opt_pass_d along with...
18920         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
18921         (make_pass_ipa_lto_finish_out): ...new function.
18922         * mode-switching.c (pass_mode_switching): Convert from a global struct
18923         to a subclass of rtl_opt_pass along with...
18924         (pass_data_mode_switching): ...new pass_data instance and...
18925         (make_pass_mode_switching): ...new function.
18926         * modulo-sched.c (pass_sms): Convert from a global struct to a
18927         subclass of rtl_opt_pass along with...
18928         (pass_data_sms): ...new pass_data instance and...
18929         (make_pass_sms): ...new function.
18930         * omp-low.c (pass_expand_omp): Convert from a global struct to a
18931         subclass of gimple_opt_pass along with...
18932         (pass_data_expand_omp): ...new pass_data instance and...
18933         (make_pass_expand_omp): ...new function.
18934         (pass_lower_omp): Convert from a global struct to a subclass of
18935         gimple_opt_pass along with...
18936         (pass_data_lower_omp): ...new pass_data instance and...
18937         (make_pass_lower_omp): ...new function.
18938         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
18939         of gimple_opt_pass along with...
18940         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
18941         (make_pass_diagnose_omp_blocks): ...new function.
18942         * passes.c (pass_early_local_passes): Convert from a global struct to
18943         a subclass of simple_ipa_opt_pass along with...
18944         (pass_data_early_local_passes): ...new pass_data instance and...
18945         (make_pass_early_local_passes): ...new function.
18946         (pass_all_early_optimizations): Convert from a global struct to a
18947         subclass of gimple_opt_pass along with...
18948         (pass_data_all_early_optimizations): ...new pass_data instance and...
18949         (make_pass_all_early_optimizations): ...new function.
18950         (pass_all_optimizations): Convert from a global struct to a subclass
18951         of gimple_opt_pass along with...
18952         (pass_data_all_optimizations): ...new pass_data instance and...
18953         (make_pass_all_optimizations): ...new function.
18954         (pass_all_optimizations_g): Convert from a global struct to a subclass
18955         of gimple_opt_pass along with...
18956         (pass_data_all_optimizations_g): ...new pass_data instance and...
18957         (make_pass_all_optimizations_g): ...new function.
18958         (pass_rest_of_compilation): Convert from a global struct to a subclass
18959         of rtl_opt_pass along with...
18960         (pass_data_rest_of_compilation): ...new pass_data instance and...
18961         (make_pass_rest_of_compilation): ...new function.
18962         (pass_postreload): Convert from a global struct to a subclass of
18963         rtl_opt_pass along with...
18964         (pass_data_postreload): ...new pass_data instance and...
18965         (make_pass_postreload): ...new function.
18966         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
18967         subclass of rtl_opt_pass along with...
18968         (pass_data_gcse2): ...new pass_data instance and...
18969         (make_pass_gcse2): ...new function.
18970         * postreload.c (pass_postreload_cse): Convert from a global struct to
18971         a subclass of rtl_opt_pass along with...
18972         (pass_data_postreload_cse): ...new pass_data instance and...
18973         (make_pass_postreload_cse): ...new function.
18974         * predict.c (pass_profile): Convert from a global struct to a subclass
18975         of gimple_opt_pass along with...
18976         (pass_data_profile): ...new pass_data instance and...
18977         (make_pass_profile): ...new function.
18978         (pass_strip_predict_hints): Convert from a global struct to a subclass
18979         of gimple_opt_pass along with...
18980         (pass_data_strip_predict_hints): ...new pass_data instance and...
18981         (make_pass_strip_predict_hints): ...new function.
18982         * recog.c (pass_peephole2): Convert from a global struct to a subclass
18983         of rtl_opt_pass along with...
18984         (pass_data_peephole2): ...new pass_data instance and...
18985         (make_pass_peephole2): ...new function.
18986         (pass_split_all_insns): Convert from a global struct to a subclass of
18987         rtl_opt_pass along with...
18988         (pass_data_split_all_insns): ...new pass_data instance and...
18989         (make_pass_split_all_insns): ...new function.
18990         (pass_split_after_reload): Convert from a global struct to a subclass
18991         of rtl_opt_pass along with...
18992         (pass_data_split_after_reload): ...new pass_data instance and...
18993         (make_pass_split_after_reload): ...new function.
18994         (pass_split_before_regstack): Convert from a global struct to a
18995         subclass of rtl_opt_pass along with...
18996         (pass_data_split_before_regstack): ...new pass_data instance and...
18997         (make_pass_split_before_regstack): ...new function.
18998         (pass_split_before_sched2): Convert from a global struct to a subclass
18999         of rtl_opt_pass along with...
19000         (pass_data_split_before_sched2): ...new pass_data instance and...
19001         (make_pass_split_before_sched2): ...new function.
19002         (pass_split_for_shorten_branches): Convert from a global struct to a
19003         subclass of rtl_opt_pass along with...
19004         (pass_data_split_for_shorten_branches): ...new pass_data instance
19005         and...
19006         (make_pass_split_for_shorten_branches): ...new function.
19007         * ree.c (pass_ree): Convert from a global struct to a subclass of
19008         rtl_opt_pass along with...
19009         (pass_data_ree): ...new pass_data instance and...
19010         (make_pass_ree): ...new function.
19011         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
19012         subclass of rtl_opt_pass along with...
19013         (pass_data_stack_regs): ...new pass_data instance and...
19014         (make_pass_stack_regs): ...new function.
19015         (pass_stack_regs_run): Convert from a global struct to a subclass of
19016         rtl_opt_pass along with...
19017         (pass_data_stack_regs_run): ...new pass_data instance and...
19018         (make_pass_stack_regs_run): ...new function.
19019         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
19020         subclass of rtl_opt_pass along with...
19021         (pass_data_cprop_hardreg): ...new pass_data instance and...
19022         (make_pass_cprop_hardreg): ...new function.
19023         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
19024         subclass of rtl_opt_pass along with...
19025         (pass_data_reginfo_init): ...new pass_data instance and...
19026         (make_pass_reginfo_init): ...new function.
19027         * regmove.c (pass_regmove): Convert from a global struct to a subclass
19028         of rtl_opt_pass along with...
19029         (pass_data_regmove): ...new pass_data instance and...
19030         (make_pass_regmove): ...new function.
19031         * regrename.c (pass_regrename): Convert from a global struct to a
19032         subclass of rtl_opt_pass along with...
19033         (pass_data_regrename): ...new pass_data instance and...
19034         (make_pass_regrename): ...new function.
19035         * reorg.c (pass_delay_slots): Convert from a global struct to a
19036         subclass of rtl_opt_pass along with...
19037         (pass_data_delay_slots): ...new pass_data instance and...
19038         (make_pass_delay_slots): ...new function.
19039         (pass_machine_reorg): Convert from a global struct to a subclass of
19040         rtl_opt_pass along with...
19041         (pass_data_machine_reorg): ...new pass_data instance and...
19042         (make_pass_machine_reorg): ...new function.
19043         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
19044         of rtl_opt_pass along with...
19045         (pass_data_sched): ...new pass_data instance and...
19046         (make_pass_sched): ...new function.
19047         (pass_sched2): Convert from a global struct to a subclass of
19048         rtl_opt_pass along with...
19049         (pass_data_sched2): ...new pass_data instance and...
19050         (make_pass_sched2): ...new function.
19051         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
19052         to a subclass of rtl_opt_pass along with...
19053         (pass_data_stack_ptr_mod): ...new pass_data instance and...
19054         (make_pass_stack_ptr_mod): ...new function.
19055         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
19056         to a subclass of rtl_opt_pass along with...
19057         (pass_data_rtl_store_motion): ...new pass_data instance and...
19058         (make_pass_rtl_store_motion): ...new function.
19059         * tracer.c (pass_tracer): Convert from a global struct to a subclass
19060         of gimple_opt_pass along with...
19061         (pass_data_tracer): ...new pass_data instance and...
19062         (make_pass_tracer): ...new function.
19063         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
19064         to a subclass of gimple_opt_pass along with...
19065         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
19066         (make_pass_diagnose_tm_blocks): ...new function.
19067         (pass_lower_tm): Convert from a global struct to a subclass of
19068         gimple_opt_pass along with...
19069         (pass_data_lower_tm): ...new pass_data instance and...
19070         (make_pass_lower_tm): ...new function.
19071         (pass_tm_init): Convert from a global struct to a subclass of
19072         gimple_opt_pass along with...
19073         (pass_data_tm_init): ...new pass_data instance and...
19074         (make_pass_tm_init): ...new function.
19075         (pass_tm_mark): Convert from a global struct to a subclass of
19076         gimple_opt_pass along with...
19077         (pass_data_tm_mark): ...new pass_data instance and...
19078         (make_pass_tm_mark): ...new function.
19079         (pass_tm_edges): Convert from a global struct to a subclass of
19080         gimple_opt_pass along with...
19081         (pass_data_tm_edges): ...new pass_data instance and...
19082         (make_pass_tm_edges): ...new function.
19083         (pass_tm_memopt): Convert from a global struct to a subclass of
19084         gimple_opt_pass along with...
19085         (pass_data_tm_memopt): ...new pass_data instance and...
19086         (make_pass_tm_memopt): ...new function.
19087         (pass_ipa_tm): Convert from a global struct to a subclass of
19088         simple_ipa_opt_pass along with...
19089         (pass_data_ipa_tm): ...new pass_data instance and...
19090         (make_pass_ipa_tm): ...new function.
19091         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
19092         subclass of gimple_opt_pass along with...
19093         (pass_data_call_cdce): ...new pass_data instance and...
19094         (make_pass_call_cdce): ...new function.
19095         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
19096         subclass of gimple_opt_pass along with...
19097         (pass_data_build_cfg): ...new pass_data instance and...
19098         (make_pass_build_cfg): ...new function.
19099         (pass_split_crit_edges): Convert from a global struct to a subclass of
19100         gimple_opt_pass along with...
19101         (pass_data_split_crit_edges): ...new pass_data instance and...
19102         (make_pass_split_crit_edges): ...new function.
19103         (pass_warn_function_return): Convert from a global struct to a
19104         subclass of gimple_opt_pass along with...
19105         (pass_data_warn_function_return): ...new pass_data instance and...
19106         (make_pass_warn_function_return): ...new function.
19107         (pass_warn_function_noreturn): Convert from a global struct to a
19108         subclass of gimple_opt_pass along with...
19109         (pass_data_warn_function_noreturn): ...new pass_data instance and...
19110         (make_pass_warn_function_noreturn): ...new function.
19111         (pass_warn_unused_result): Convert from a global struct to a subclass
19112         of gimple_opt_pass along with...
19113         (pass_data_warn_unused_result): ...new pass_data instance and...
19114         (make_pass_warn_unused_result): ...new function.
19115         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
19116         a subclass of gimple_opt_pass along with...
19117         (pass_data_merge_phi): ...new pass_data instance and...
19118         (make_pass_merge_phi): ...new function.
19119         * tree-complex.c (pass_lower_complex): Convert from a global struct to
19120         a subclass of gimple_opt_pass along with...
19121         (pass_data_lower_complex): ...new pass_data instance and...
19122         (make_pass_lower_complex): ...new function.
19123         (pass_lower_complex_O0): Convert from a global struct to a subclass of
19124         gimple_opt_pass along with...
19125         (pass_data_lower_complex_O0): ...new pass_data instance and...
19126         (make_pass_lower_complex_O0): ...new function.
19127         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
19128         subclass of gimple_opt_pass along with...
19129         (pass_data_lower_eh): ...new pass_data instance and...
19130         (make_pass_lower_eh): ...new function.
19131         (pass_refactor_eh): Convert from a global struct to a subclass of
19132         gimple_opt_pass along with...
19133         (pass_data_refactor_eh): ...new pass_data instance and...
19134         (make_pass_refactor_eh): ...new function.
19135         (pass_lower_resx): Convert from a global struct to a subclass of
19136         gimple_opt_pass along with...
19137         (pass_data_lower_resx): ...new pass_data instance and...
19138         (make_pass_lower_resx): ...new function.
19139         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
19140         of gimple_opt_pass along with...
19141         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
19142         (make_pass_lower_eh_dispatch): ...new function.
19143         (pass_cleanup_eh): Convert from a global struct to a subclass of
19144         gimple_opt_pass along with...
19145         (pass_data_cleanup_eh): ...new pass_data instance and...
19146         (make_pass_cleanup_eh): ...new function.
19147         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
19148         to a subclass of simple_ipa_opt_pass along with...
19149         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
19150         (make_pass_ipa_lower_emutls): ...new function.
19151         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
19152         a subclass of gimple_opt_pass along with...
19153         (pass_data_if_conversion): ...new pass_data instance and...
19154         (make_pass_if_conversion): ...new function.
19155         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
19156         subclass of gimple_opt_pass along with...
19157         (pass_data_build_ssa): ...new pass_data instance and...
19158         (make_pass_build_ssa): ...new function.
19159         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
19160         global struct to a subclass of gimple_opt_pass along with...
19161         (pass_data_loop_distribution): ...new pass_data instance and...
19162         (make_pass_loop_distribution): ...new function.
19163         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
19164         subclass of gimple_opt_pass along with...
19165         (pass_data_mudflap_1): ...new pass_data instance and...
19166         (make_pass_mudflap_1): ...new function.
19167         (pass_mudflap_2): Convert from a global struct to a subclass of
19168         gimple_opt_pass along with...
19169         (pass_data_mudflap_2): ...new pass_data instance and...
19170         (make_pass_mudflap_2): ...new function.
19171         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
19172         subclass of gimple_opt_pass along with...
19173         (pass_data_mudflap_1): ...new pass_data instance and...
19174         (make_pass_mudflap_1): ...new function.
19175         (pass_mudflap_2): Convert from a global struct to a subclass of
19176         gimple_opt_pass along with...
19177         (pass_data_mudflap_2): ...new pass_data instance and...
19178         (make_pass_mudflap_2): ...new function.
19179         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
19180         gimple_opt_pass along with...
19181         (pass_data_nrv): ...new pass_data instance and...
19182         (make_pass_nrv): ...new function.
19183         (pass_return_slot): Convert from a global struct to a subclass of
19184         gimple_opt_pass along with...
19185         (pass_data_return_slot): ...new pass_data instance and...
19186         (make_pass_return_slot): ...new function.
19187         * tree-object-size.c (pass_object_sizes): Convert from a global struct
19188         to a subclass of gimple_opt_pass along with...
19189         (pass_data_object_sizes): ...new pass_data instance and...
19190         (make_pass_object_sizes): ...new function.
19191         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
19192         global struct to a subclass of gimple_opt_pass along with...
19193         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
19194         and...
19195         (make_pass_cleanup_cfg_post_optimizing): ...new function.
19196         (pass_fixup_cfg): Convert from a global struct to a subclass of
19197         gimple_opt_pass along with...
19198         (pass_data_fixup_cfg): ...new pass_data instance and...
19199         (make_pass_fixup_cfg): ...new function.
19200         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
19201         (make_pass_mudflap_1): ...new function.
19202         (pass_mudflap_2): Replace declaration with that of...
19203         (make_pass_mudflap_2): ...new function.
19204         (pass_asan): Replace declaration with that of...
19205         (make_pass_asan): ...new function.
19206         (pass_asan_O0): Replace declaration with that of...
19207         (make_pass_asan_O0): ...new function.
19208         (pass_tsan): Replace declaration with that of...
19209         (make_pass_tsan): ...new function.
19210         (pass_tsan_O0): Replace declaration with that of...
19211         (make_pass_tsan_O0): ...new function.
19212         (pass_lower_cf): Replace declaration with that of...
19213         (make_pass_lower_cf): ...new function.
19214         (pass_refactor_eh): Replace declaration with that of...
19215         (make_pass_refactor_eh): ...new function.
19216         (pass_lower_eh): Replace declaration with that of...
19217         (make_pass_lower_eh): ...new function.
19218         (pass_lower_eh_dispatch): Replace declaration with that of...
19219         (make_pass_lower_eh_dispatch): ...new function.
19220         (pass_lower_resx): Replace declaration with that of...
19221         (make_pass_lower_resx): ...new function.
19222         (pass_build_cfg): Replace declaration with that of...
19223         (make_pass_build_cfg): ...new function.
19224         (pass_early_tree_profile): Replace declaration with that of...
19225         (make_pass_early_tree_profile): ...new function.
19226         (pass_cleanup_eh): Replace declaration with that of...
19227         (make_pass_cleanup_eh): ...new function.
19228         (pass_sra): Replace declaration with that of...
19229         (make_pass_sra): ...new function.
19230         (pass_sra_early): Replace declaration with that of...
19231         (make_pass_sra_early): ...new function.
19232         (pass_early_ipa_sra): Replace declaration with that of...
19233         (make_pass_early_ipa_sra): ...new function.
19234         (pass_tail_recursion): Replace declaration with that of...
19235         (make_pass_tail_recursion): ...new function.
19236         (pass_tail_calls): Replace declaration with that of...
19237         (make_pass_tail_calls): ...new function.
19238         (pass_tree_loop): Replace declaration with that of...
19239         (make_pass_tree_loop): ...new function.
19240         (pass_tree_loop_init): Replace declaration with that of...
19241         (make_pass_tree_loop_init): ...new function.
19242         (pass_lim): Replace declaration with that of...
19243         (make_pass_lim): ...new function.
19244         (pass_tree_unswitch): Replace declaration with that of...
19245         (make_pass_tree_unswitch): ...new function.
19246         (pass_predcom): Replace declaration with that of...
19247         (make_pass_predcom): ...new function.
19248         (pass_iv_canon): Replace declaration with that of...
19249         (make_pass_iv_canon): ...new function.
19250         (pass_scev_cprop): Replace declaration with that of...
19251         (make_pass_scev_cprop): ...new function.
19252         (pass_empty_loop): Replace declaration with that of...
19253         (make_pass_empty_loop): ...new function.
19254         (pass_record_bounds): Replace declaration with that of...
19255         (make_pass_record_bounds): ...new function.
19256         (pass_graphite): Replace declaration with that of...
19257         (make_pass_graphite): ...new function.
19258         (pass_graphite_transforms): Replace declaration with that of...
19259         (make_pass_graphite_transforms): ...new function.
19260         (pass_if_conversion): Replace declaration with that of...
19261         (make_pass_if_conversion): ...new function.
19262         (pass_loop_distribution): Replace declaration with that of...
19263         (make_pass_loop_distribution): ...new function.
19264         (pass_vectorize): Replace declaration with that of...
19265         (make_pass_vectorize): ...new function.
19266         (pass_slp_vectorize): Replace declaration with that of...
19267         (make_pass_slp_vectorize): ...new function.
19268         (pass_complete_unroll): Replace declaration with that of...
19269         (make_pass_complete_unroll): ...new function.
19270         (pass_complete_unrolli): Replace declaration with that of...
19271         (make_pass_complete_unrolli): ...new function.
19272         (pass_parallelize_loops): Replace declaration with that of...
19273         (make_pass_parallelize_loops): ...new function.
19274         (pass_loop_prefetch): Replace declaration with that of...
19275         (make_pass_loop_prefetch): ...new function.
19276         (pass_iv_optimize): Replace declaration with that of...
19277         (make_pass_iv_optimize): ...new function.
19278         (pass_tree_loop_done): Replace declaration with that of...
19279         (make_pass_tree_loop_done): ...new function.
19280         (pass_ch): Replace declaration with that of...
19281         (make_pass_ch): ...new function.
19282         (pass_ccp): Replace declaration with that of...
19283         (make_pass_ccp): ...new function.
19284         (pass_phi_only_cprop): Replace declaration with that of...
19285         (make_pass_phi_only_cprop): ...new function.
19286         (pass_build_ssa): Replace declaration with that of...
19287         (make_pass_build_ssa): ...new function.
19288         (pass_build_alias): Replace declaration with that of...
19289         (make_pass_build_alias): ...new function.
19290         (pass_build_ealias): Replace declaration with that of...
19291         (make_pass_build_ealias): ...new function.
19292         (pass_dominator): Replace declaration with that of...
19293         (make_pass_dominator): ...new function.
19294         (pass_dce): Replace declaration with that of...
19295         (make_pass_dce): ...new function.
19296         (pass_dce_loop): Replace declaration with that of...
19297         (make_pass_dce_loop): ...new function.
19298         (pass_cd_dce): Replace declaration with that of...
19299         (make_pass_cd_dce): ...new function.
19300         (pass_call_cdce): Replace declaration with that of...
19301         (make_pass_call_cdce): ...new function.
19302         (pass_merge_phi): Replace declaration with that of...
19303         (make_pass_merge_phi): ...new function.
19304         (pass_split_crit_edges): Replace declaration with that of...
19305         (make_pass_split_crit_edges): ...new function.
19306         (pass_pre): Replace declaration with that of...
19307         (make_pass_pre): ...new function.
19308         (pass_profile): Replace declaration with that of...
19309         (make_pass_profile): ...new function.
19310         (pass_strip_predict_hints): Replace declaration with that of...
19311         (make_pass_strip_predict_hints): ...new function.
19312         (pass_lower_complex_O0): Replace declaration with that of...
19313         (make_pass_lower_complex_O0): ...new function.
19314         (pass_lower_complex): Replace declaration with that of...
19315         (make_pass_lower_complex): ...new function.
19316         (pass_lower_vector): Replace declaration with that of...
19317         (make_pass_lower_vector): ...new function.
19318         (pass_lower_vector_ssa): Replace declaration with that of...
19319         (make_pass_lower_vector_ssa): ...new function.
19320         (pass_lower_omp): Replace declaration with that of...
19321         (make_pass_lower_omp): ...new function.
19322         (pass_diagnose_omp_blocks): Replace declaration with that of...
19323         (make_pass_diagnose_omp_blocks): ...new function.
19324         (pass_expand_omp): Replace declaration with that of...
19325         (make_pass_expand_omp): ...new function.
19326         (pass_expand_omp_ssa): Replace declaration with that of...
19327         (make_pass_expand_omp_ssa): ...new function.
19328         (pass_object_sizes): Replace declaration with that of...
19329         (make_pass_object_sizes): ...new function.
19330         (pass_strlen): Replace declaration with that of...
19331         (make_pass_strlen): ...new function.
19332         (pass_fold_builtins): Replace declaration with that of...
19333         (make_pass_fold_builtins): ...new function.
19334         (pass_stdarg): Replace declaration with that of...
19335         (make_pass_stdarg): ...new function.
19336         (pass_early_warn_uninitialized): Replace declaration with that of...
19337         (make_pass_early_warn_uninitialized): ...new function.
19338         (pass_late_warn_uninitialized): Replace declaration with that of...
19339         (make_pass_late_warn_uninitialized): ...new function.
19340         (pass_cse_reciprocals): Replace declaration with that of...
19341         (make_pass_cse_reciprocals): ...new function.
19342         (pass_cse_sincos): Replace declaration with that of...
19343         (make_pass_cse_sincos): ...new function.
19344         (pass_optimize_bswap): Replace declaration with that of...
19345         (make_pass_optimize_bswap): ...new function.
19346         (pass_optimize_widening_mul): Replace declaration with that of...
19347         (make_pass_optimize_widening_mul): ...new function.
19348         (pass_warn_function_return): Replace declaration with that of...
19349         (make_pass_warn_function_return): ...new function.
19350         (pass_warn_function_noreturn): Replace declaration with that of...
19351         (make_pass_warn_function_noreturn): ...new function.
19352         (pass_cselim): Replace declaration with that of...
19353         (make_pass_cselim): ...new function.
19354         (pass_phiopt): Replace declaration with that of...
19355         (make_pass_phiopt): ...new function.
19356         (pass_forwprop): Replace declaration with that of...
19357         (make_pass_forwprop): ...new function.
19358         (pass_phiprop): Replace declaration with that of...
19359         (make_pass_phiprop): ...new function.
19360         (pass_tree_ifcombine): Replace declaration with that of...
19361         (make_pass_tree_ifcombine): ...new function.
19362         (pass_dse): Replace declaration with that of...
19363         (make_pass_dse): ...new function.
19364         (pass_nrv): Replace declaration with that of...
19365         (make_pass_nrv): ...new function.
19366         (pass_rename_ssa_copies): Replace declaration with that of...
19367         (make_pass_rename_ssa_copies): ...new function.
19368         (pass_sink_code): Replace declaration with that of...
19369         (make_pass_sink_code): ...new function.
19370         (pass_fre): Replace declaration with that of...
19371         (make_pass_fre): ...new function.
19372         (pass_check_data_deps): Replace declaration with that of...
19373         (make_pass_check_data_deps): ...new function.
19374         (pass_copy_prop): Replace declaration with that of...
19375         (make_pass_copy_prop): ...new function.
19376         (pass_vrp): Replace declaration with that of...
19377         (make_pass_vrp): ...new function.
19378         (pass_uncprop): Replace declaration with that of...
19379         (make_pass_uncprop): ...new function.
19380         (pass_return_slot): Replace declaration with that of...
19381         (make_pass_return_slot): ...new function.
19382         (pass_reassoc): Replace declaration with that of...
19383         (make_pass_reassoc): ...new function.
19384         (pass_rebuild_cgraph_edges): Replace declaration with that of...
19385         (make_pass_rebuild_cgraph_edges): ...new function.
19386         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
19387         (make_pass_remove_cgraph_callee_edges): ...new function.
19388         (pass_build_cgraph_edges): Replace declaration with that of...
19389         (make_pass_build_cgraph_edges): ...new function.
19390         (pass_local_pure_const): Replace declaration with that of...
19391         (make_pass_local_pure_const): ...new function.
19392         (pass_tracer): Replace declaration with that of...
19393         (make_pass_tracer): ...new function.
19394         (pass_warn_unused_result): Replace declaration with that of...
19395         (make_pass_warn_unused_result): ...new function.
19396         (pass_diagnose_tm_blocks): Replace declaration with that of...
19397         (make_pass_diagnose_tm_blocks): ...new function.
19398         (pass_lower_tm): Replace declaration with that of...
19399         (make_pass_lower_tm): ...new function.
19400         (pass_tm_init): Replace declaration with that of...
19401         (make_pass_tm_init): ...new function.
19402         (pass_tm_mark): Replace declaration with that of...
19403         (make_pass_tm_mark): ...new function.
19404         (pass_tm_memopt): Replace declaration with that of...
19405         (make_pass_tm_memopt): ...new function.
19406         (pass_tm_edges): Replace declaration with that of...
19407         (make_pass_tm_edges): ...new function.
19408         (pass_split_functions): Replace declaration with that of...
19409         (make_pass_split_functions): ...new function.
19410         (pass_feedback_split_functions): Replace declaration with that of...
19411         (make_pass_feedback_split_functions): ...new function.
19412         (pass_strength_reduction): Replace declaration with that of...
19413         (make_pass_strength_reduction): ...new function.
19414         (pass_ipa_lower_emutls): Replace declaration with that of...
19415         (make_pass_ipa_lower_emutls): ...new function.
19416         (pass_ipa_function_and_variable_visibility): Replace declaration with
19417         that of...
19418         (make_pass_ipa_function_and_variable_visibility): ...new function.
19419         (pass_ipa_tree_profile): Replace declaration with that of...
19420         (make_pass_ipa_tree_profile): ...new function.
19421         (pass_early_local_passes): Replace declaration with that of...
19422         (make_pass_early_local_passes): ...new function.
19423         (pass_ipa_whole_program_visibility): Replace declaration with that
19424         of...
19425         (make_pass_ipa_whole_program_visibility): ...new function.
19426         (pass_ipa_lto_gimple_out): Replace declaration with that of...
19427         (make_pass_ipa_lto_gimple_out): ...new function.
19428         (pass_ipa_increase_alignment): Replace declaration with that of...
19429         (make_pass_ipa_increase_alignment): ...new function.
19430         (pass_ipa_inline): Replace declaration with that of...
19431         (make_pass_ipa_inline): ...new function.
19432         (pass_ipa_free_lang_data): Replace declaration with that of...
19433         (make_pass_ipa_free_lang_data): ...new function.
19434         (pass_ipa_free_inline_summary): Replace declaration with that of...
19435         (make_pass_ipa_free_inline_summary): ...new function.
19436         (pass_ipa_cp): Replace declaration with that of...
19437         (make_pass_ipa_cp): ...new function.
19438         (pass_ipa_reference): Replace declaration with that of...
19439         (make_pass_ipa_reference): ...new function.
19440         (pass_ipa_pure_const): Replace declaration with that of...
19441         (make_pass_ipa_pure_const): ...new function.
19442         (pass_ipa_pta): Replace declaration with that of...
19443         (make_pass_ipa_pta): ...new function.
19444         (pass_ipa_lto_finish_out): Replace declaration with that of...
19445         (make_pass_ipa_lto_finish_out): ...new function.
19446         (pass_ipa_tm): Replace declaration with that of...
19447         (make_pass_ipa_tm): ...new function.
19448         (pass_ipa_profile): Replace declaration with that of...
19449         (make_pass_ipa_profile): ...new function.
19450         (pass_ipa_cdtor_merge): Replace declaration with that of...
19451         (make_pass_ipa_cdtor_merge): ...new function.
19452         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
19453         of...
19454         (make_pass_cleanup_cfg_post_optimizing): ...new function.
19455         (pass_init_datastructures): Replace declaration with that of...
19456         (make_pass_init_datastructures): ...new function.
19457         (pass_fixup_cfg): Replace declaration with that of...
19458         (make_pass_fixup_cfg): ...new function.
19459         (pass_expand): Replace declaration with that of...
19460         (make_pass_expand): ...new function.
19461         (pass_instantiate_virtual_regs): Replace declaration with that of...
19462         (make_pass_instantiate_virtual_regs): ...new function.
19463         (pass_rtl_fwprop): Replace declaration with that of...
19464         (make_pass_rtl_fwprop): ...new function.
19465         (pass_rtl_fwprop_addr): Replace declaration with that of...
19466         (make_pass_rtl_fwprop_addr): ...new function.
19467         (pass_jump): Replace declaration with that of...
19468         (make_pass_jump): ...new function.
19469         (pass_jump2): Replace declaration with that of...
19470         (make_pass_jump2): ...new function.
19471         (pass_lower_subreg): Replace declaration with that of...
19472         (make_pass_lower_subreg): ...new function.
19473         (pass_cse): Replace declaration with that of...
19474         (make_pass_cse): ...new function.
19475         (pass_fast_rtl_dce): Replace declaration with that of...
19476         (make_pass_fast_rtl_dce): ...new function.
19477         (pass_ud_rtl_dce): Replace declaration with that of...
19478         (make_pass_ud_rtl_dce): ...new function.
19479         (pass_rtl_dce): Replace declaration with that of...
19480         (make_pass_rtl_dce): ...new function.
19481         (pass_rtl_dse1): Replace declaration with that of...
19482         (make_pass_rtl_dse1): ...new function.
19483         (pass_rtl_dse2): Replace declaration with that of...
19484         (make_pass_rtl_dse2): ...new function.
19485         (pass_rtl_dse3): Replace declaration with that of...
19486         (make_pass_rtl_dse3): ...new function.
19487         (pass_rtl_cprop): Replace declaration with that of...
19488         (make_pass_rtl_cprop): ...new function.
19489         (pass_rtl_pre): Replace declaration with that of...
19490         (make_pass_rtl_pre): ...new function.
19491         (pass_rtl_hoist): Replace declaration with that of...
19492         (make_pass_rtl_hoist): ...new function.
19493         (pass_rtl_store_motion): Replace declaration with that of...
19494         (make_pass_rtl_store_motion): ...new function.
19495         (pass_cse_after_global_opts): Replace declaration with that of...
19496         (make_pass_cse_after_global_opts): ...new function.
19497         (pass_rtl_ifcvt): Replace declaration with that of...
19498         (make_pass_rtl_ifcvt): ...new function.
19499         (pass_into_cfg_layout_mode): Replace declaration with that of...
19500         (make_pass_into_cfg_layout_mode): ...new function.
19501         (pass_outof_cfg_layout_mode): Replace declaration with that of...
19502         (make_pass_outof_cfg_layout_mode): ...new function.
19503         (pass_loop2): Replace declaration with that of...
19504         (make_pass_loop2): ...new function.
19505         (pass_rtl_loop_init): Replace declaration with that of...
19506         (make_pass_rtl_loop_init): ...new function.
19507         (pass_rtl_move_loop_invariants): Replace declaration with that of...
19508         (make_pass_rtl_move_loop_invariants): ...new function.
19509         (pass_rtl_unswitch): Replace declaration with that of...
19510         (make_pass_rtl_unswitch): ...new function.
19511         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
19512         (make_pass_rtl_unroll_and_peel_loops): ...new function.
19513         (pass_rtl_doloop): Replace declaration with that of...
19514         (make_pass_rtl_doloop): ...new function.
19515         (pass_rtl_loop_done): Replace declaration with that of...
19516         (make_pass_rtl_loop_done): ...new function.
19517         (pass_web): Replace declaration with that of...
19518         (make_pass_web): ...new function.
19519         (pass_cse2): Replace declaration with that of...
19520         (make_pass_cse2): ...new function.
19521         (pass_df_initialize_opt): Replace declaration with that of...
19522         (make_pass_df_initialize_opt): ...new function.
19523         (pass_df_initialize_no_opt): Replace declaration with that of...
19524         (make_pass_df_initialize_no_opt): ...new function.
19525         (pass_reginfo_init): Replace declaration with that of...
19526         (make_pass_reginfo_init): ...new function.
19527         (pass_inc_dec): Replace declaration with that of...
19528         (make_pass_inc_dec): ...new function.
19529         (pass_stack_ptr_mod): Replace declaration with that of...
19530         (make_pass_stack_ptr_mod): ...new function.
19531         (pass_initialize_regs): Replace declaration with that of...
19532         (make_pass_initialize_regs): ...new function.
19533         (pass_combine): Replace declaration with that of...
19534         (make_pass_combine): ...new function.
19535         (pass_if_after_combine): Replace declaration with that of...
19536         (make_pass_if_after_combine): ...new function.
19537         (pass_ree): Replace declaration with that of...
19538         (make_pass_ree): ...new function.
19539         (pass_partition_blocks): Replace declaration with that of...
19540         (make_pass_partition_blocks): ...new function.
19541         (pass_match_asm_constraints): Replace declaration with that of...
19542         (make_pass_match_asm_constraints): ...new function.
19543         (pass_regmove): Replace declaration with that of...
19544         (make_pass_regmove): ...new function.
19545         (pass_split_all_insns): Replace declaration with that of...
19546         (make_pass_split_all_insns): ...new function.
19547         (pass_fast_rtl_byte_dce): Replace declaration with that of...
19548         (make_pass_fast_rtl_byte_dce): ...new function.
19549         (pass_lower_subreg2): Replace declaration with that of...
19550         (make_pass_lower_subreg2): ...new function.
19551         (pass_mode_switching): Replace declaration with that of...
19552         (make_pass_mode_switching): ...new function.
19553         (pass_sms): Replace declaration with that of...
19554         (make_pass_sms): ...new function.
19555         (pass_sched): Replace declaration with that of...
19556         (make_pass_sched): ...new function.
19557         (pass_ira): Replace declaration with that of...
19558         (make_pass_ira): ...new function.
19559         (pass_reload): Replace declaration with that of...
19560         (make_pass_reload): ...new function.
19561         (pass_clean_state): Replace declaration with that of...
19562         (make_pass_clean_state): ...new function.
19563         (pass_branch_prob): Replace declaration with that of...
19564         (make_pass_branch_prob): ...new function.
19565         (pass_value_profile_transformations): Replace declaration with that
19566         of...
19567         (make_pass_value_profile_transformations): ...new function.
19568         (pass_postreload_cse): Replace declaration with that of...
19569         (make_pass_postreload_cse): ...new function.
19570         (pass_gcse2): Replace declaration with that of...
19571         (make_pass_gcse2): ...new function.
19572         (pass_split_after_reload): Replace declaration with that of...
19573         (make_pass_split_after_reload): ...new function.
19574         (pass_branch_target_load_optimize1): Replace declaration with that
19575         of...
19576         (make_pass_branch_target_load_optimize1): ...new function.
19577         (pass_thread_prologue_and_epilogue): Replace declaration with that
19578         of...
19579         (make_pass_thread_prologue_and_epilogue): ...new function.
19580         (pass_stack_adjustments): Replace declaration with that of...
19581         (make_pass_stack_adjustments): ...new function.
19582         (pass_peephole2): Replace declaration with that of...
19583         (make_pass_peephole2): ...new function.
19584         (pass_if_after_reload): Replace declaration with that of...
19585         (make_pass_if_after_reload): ...new function.
19586         (pass_regrename): Replace declaration with that of...
19587         (make_pass_regrename): ...new function.
19588         (pass_cprop_hardreg): Replace declaration with that of...
19589         (make_pass_cprop_hardreg): ...new function.
19590         (pass_reorder_blocks): Replace declaration with that of...
19591         (make_pass_reorder_blocks): ...new function.
19592         (pass_branch_target_load_optimize2): Replace declaration with that
19593         of...
19594         (make_pass_branch_target_load_optimize2): ...new function.
19595         (pass_leaf_regs): Replace declaration with that of...
19596         (make_pass_leaf_regs): ...new function.
19597         (pass_split_before_sched2): Replace declaration with that of...
19598         (make_pass_split_before_sched2): ...new function.
19599         (pass_compare_elim_after_reload): Replace declaration with that of...
19600         (make_pass_compare_elim_after_reload): ...new function.
19601         (pass_sched2): Replace declaration with that of...
19602         (make_pass_sched2): ...new function.
19603         (pass_stack_regs): Replace declaration with that of...
19604         (make_pass_stack_regs): ...new function.
19605         (pass_stack_regs_run): Replace declaration with that of...
19606         (make_pass_stack_regs_run): ...new function.
19607         (pass_df_finish): Replace declaration with that of...
19608         (make_pass_df_finish): ...new function.
19609         (pass_compute_alignments): Replace declaration with that of...
19610         (make_pass_compute_alignments): ...new function.
19611         (pass_duplicate_computed_gotos): Replace declaration with that of...
19612         (make_pass_duplicate_computed_gotos): ...new function.
19613         (pass_variable_tracking): Replace declaration with that of...
19614         (make_pass_variable_tracking): ...new function.
19615         (pass_free_cfg): Replace declaration with that of...
19616         (make_pass_free_cfg): ...new function.
19617         (pass_machine_reorg): Replace declaration with that of...
19618         (make_pass_machine_reorg): ...new function.
19619         (pass_cleanup_barriers): Replace declaration with that of...
19620         (make_pass_cleanup_barriers): ...new function.
19621         (pass_delay_slots): Replace declaration with that of...
19622         (make_pass_delay_slots): ...new function.
19623         (pass_split_for_shorten_branches): Replace declaration with that of...
19624         (make_pass_split_for_shorten_branches): ...new function.
19625         (pass_split_before_regstack): Replace declaration with that of...
19626         (make_pass_split_before_regstack): ...new function.
19627         (pass_convert_to_eh_region_ranges): Replace declaration with that
19628         of...
19629         (make_pass_convert_to_eh_region_ranges): ...new function.
19630         (pass_shorten_branches): Replace declaration with that of...
19631         (make_pass_shorten_branches): ...new function.
19632         (pass_set_nothrow_function_flags): Replace declaration with that of...
19633         (make_pass_set_nothrow_function_flags): ...new function.
19634         (pass_dwarf2_frame): Replace declaration with that of...
19635         (make_pass_dwarf2_frame): ...new function.
19636         (pass_final): Replace declaration with that of...
19637         (make_pass_final): ...new function.
19638         (pass_rtl_seqabstr): Replace declaration with that of...
19639         (make_pass_rtl_seqabstr): ...new function.
19640         (pass_release_ssa_names): Replace declaration with that of...
19641         (make_pass_release_ssa_names): ...new function.
19642         (pass_early_inline): Replace declaration with that of...
19643         (make_pass_early_inline): ...new function.
19644         (pass_inline_parameters): Replace declaration with that of...
19645         (make_pass_inline_parameters): ...new function.
19646         (pass_update_address_taken): Replace declaration with that of...
19647         (make_pass_update_address_taken): ...new function.
19648         (pass_convert_switch): Replace declaration with that of...
19649         (make_pass_convert_switch): ...new function.
19650         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
19651         to a subclass of simple_ipa_opt_pass along with...
19652         (pass_data_ipa_tree_profile): ...new pass_data instance and...
19653         (make_pass_ipa_tree_profile): ...new function.
19654         * tree-sra.c (pass_sra_early): Convert from a global struct to a
19655         subclass of gimple_opt_pass along with...
19656         (pass_data_sra_early): ...new pass_data instance and...
19657         (make_pass_sra_early): ...new function.
19658         (pass_sra): Convert from a global struct to a subclass of
19659         gimple_opt_pass along with...
19660         (pass_data_sra): ...new pass_data instance and...
19661         (make_pass_sra): ...new function.
19662         (pass_early_ipa_sra): Convert from a global struct to a subclass of
19663         gimple_opt_pass along with...
19664         (pass_data_early_ipa_sra): ...new pass_data instance and...
19665         (make_pass_early_ipa_sra): ...new function.
19666         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
19667         subclass of gimple_opt_pass along with...
19668         (pass_data_ccp): ...new pass_data instance and...
19669         (make_pass_ccp): ...new function.
19670         (pass_fold_builtins): Convert from a global struct to a subclass of
19671         gimple_opt_pass along with...
19672         (pass_data_fold_builtins): ...new pass_data instance and...
19673         (make_pass_fold_builtins): ...new function.
19674         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
19675         subclass of gimple_opt_pass along with...
19676         (pass_data_copy_prop): ...new pass_data instance and...
19677         (make_pass_copy_prop): ...new function.
19678         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
19679         global struct to a subclass of gimple_opt_pass along with...
19680         (pass_data_rename_ssa_copies): ...new pass_data instance and...
19681         (make_pass_rename_ssa_copies): ...new function.
19682         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
19683         subclass of gimple_opt_pass along with...
19684         (pass_data_dce): ...new pass_data instance and...
19685         (make_pass_dce): ...new function.
19686         (pass_dce_loop): Convert from a global struct to a subclass of
19687         gimple_opt_pass along with...
19688         (pass_data_dce_loop): ...new pass_data instance and...
19689         (make_pass_dce_loop): ...new function.
19690         (pass_cd_dce): Convert from a global struct to a subclass of
19691         gimple_opt_pass along with...
19692         (pass_data_cd_dce): ...new pass_data instance and...
19693         (make_pass_cd_dce): ...new function.
19694         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
19695         subclass of gimple_opt_pass along with...
19696         (pass_data_dominator): ...new pass_data instance and...
19697         (make_pass_dominator): ...new function.
19698         (pass_phi_only_cprop): Convert from a global struct to a subclass of
19699         gimple_opt_pass along with...
19700         (pass_data_phi_only_cprop): ...new pass_data instance and...
19701         (make_pass_phi_only_cprop): ...new function.
19702         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
19703         subclass of gimple_opt_pass along with...
19704         (pass_data_dse): ...new pass_data instance and...
19705         (make_pass_dse): ...new function.
19706         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
19707         a subclass of gimple_opt_pass along with...
19708         (pass_data_forwprop): ...new pass_data instance and...
19709         (make_pass_forwprop): ...new function.
19710         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
19711         struct to a subclass of gimple_opt_pass along with...
19712         (pass_data_tree_ifcombine): ...new pass_data instance and...
19713         (make_pass_tree_ifcombine): ...new function.
19714         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
19715         subclass of gimple_opt_pass along with...
19716         (pass_data_ch): ...new pass_data instance and...
19717         (make_pass_ch): ...new function.
19718         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
19719         subclass of gimple_opt_pass along with...
19720         (pass_data_tree_loop): ...new pass_data instance and...
19721         (make_pass_tree_loop): ...new function.
19722         (pass_tree_loop_init): Convert from a global struct to a subclass of
19723         gimple_opt_pass along with...
19724         (pass_data_tree_loop_init): ...new pass_data instance and...
19725         (make_pass_tree_loop_init): ...new function.
19726         (pass_lim): Convert from a global struct to a subclass of
19727         gimple_opt_pass along with...
19728         (pass_data_lim): ...new pass_data instance and...
19729         (make_pass_lim): ...new function.
19730         (pass_tree_unswitch): Convert from a global struct to a subclass of
19731         gimple_opt_pass along with...
19732         (pass_data_tree_unswitch): ...new pass_data instance and...
19733         (make_pass_tree_unswitch): ...new function.
19734         (pass_predcom): Convert from a global struct to a subclass of
19735         gimple_opt_pass along with...
19736         (pass_data_predcom): ...new pass_data instance and...
19737         (make_pass_predcom): ...new function.
19738         (pass_vectorize): Convert from a global struct to a subclass of
19739         gimple_opt_pass along with...
19740         (pass_data_vectorize): ...new pass_data instance and...
19741         (make_pass_vectorize): ...new function.
19742         (pass_graphite): Convert from a global struct to a subclass of
19743         gimple_opt_pass along with...
19744         (pass_data_graphite): ...new pass_data instance and...
19745         (make_pass_graphite): ...new function.
19746         (pass_graphite_transforms): Convert from a global struct to a subclass
19747         of gimple_opt_pass along with...
19748         (pass_data_graphite_transforms): ...new pass_data instance and...
19749         (make_pass_graphite_transforms): ...new function.
19750         (pass_check_data_deps): Convert from a global struct to a subclass of
19751         gimple_opt_pass along with...
19752         (pass_data_check_data_deps): ...new pass_data instance and...
19753         (make_pass_check_data_deps): ...new function.
19754         (pass_iv_canon): Convert from a global struct to a subclass of
19755         gimple_opt_pass along with...
19756         (pass_data_iv_canon): ...new pass_data instance and...
19757         (make_pass_iv_canon): ...new function.
19758         (pass_scev_cprop): Convert from a global struct to a subclass of
19759         gimple_opt_pass along with...
19760         (pass_data_scev_cprop): ...new pass_data instance and...
19761         (make_pass_scev_cprop): ...new function.
19762         (pass_record_bounds): Convert from a global struct to a subclass of
19763         gimple_opt_pass along with...
19764         (pass_data_record_bounds): ...new pass_data instance and...
19765         (make_pass_record_bounds): ...new function.
19766         (pass_complete_unroll): Convert from a global struct to a subclass of
19767         gimple_opt_pass along with...
19768         (pass_data_complete_unroll): ...new pass_data instance and...
19769         (make_pass_complete_unroll): ...new function.
19770         (pass_complete_unrolli): Convert from a global struct to a subclass of
19771         gimple_opt_pass along with...
19772         (pass_data_complete_unrolli): ...new pass_data instance and...
19773         (make_pass_complete_unrolli): ...new function.
19774         (pass_parallelize_loops): Convert from a global struct to a subclass
19775         of gimple_opt_pass along with...
19776         (pass_data_parallelize_loops): ...new pass_data instance and...
19777         (make_pass_parallelize_loops): ...new function.
19778         (pass_loop_prefetch): Convert from a global struct to a subclass of
19779         gimple_opt_pass along with...
19780         (pass_data_loop_prefetch): ...new pass_data instance and...
19781         (make_pass_loop_prefetch): ...new function.
19782         (pass_iv_optimize): Convert from a global struct to a subclass of
19783         gimple_opt_pass along with...
19784         (pass_data_iv_optimize): ...new pass_data instance and...
19785         (make_pass_iv_optimize): ...new function.
19786         (pass_tree_loop_done): Convert from a global struct to a subclass of
19787         gimple_opt_pass along with...
19788         (pass_data_tree_loop_done): ...new pass_data instance and...
19789         (make_pass_tree_loop_done): ...new function.
19790         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
19791         struct to a subclass of gimple_opt_pass along with...
19792         (pass_data_cse_reciprocals): ...new pass_data instance and...
19793         (make_pass_cse_reciprocals): ...new function.
19794         (pass_cse_sincos): Convert from a global struct to a subclass of
19795         gimple_opt_pass along with...
19796         (pass_data_cse_sincos): ...new pass_data instance and...
19797         (make_pass_cse_sincos): ...new function.
19798         (pass_optimize_bswap): Convert from a global struct to a subclass of
19799         gimple_opt_pass along with...
19800         (pass_data_optimize_bswap): ...new pass_data instance and...
19801         (make_pass_optimize_bswap): ...new function.
19802         (pass_optimize_widening_mul): Convert from a global struct to a
19803         subclass of gimple_opt_pass along with...
19804         (pass_data_optimize_widening_mul): ...new pass_data instance and...
19805         (make_pass_optimize_widening_mul): ...new function.
19806         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
19807         subclass of gimple_opt_pass along with...
19808         (pass_data_phiopt): ...new pass_data instance and...
19809         (make_pass_phiopt): ...new function.
19810         (pass_cselim): Convert from a global struct to a subclass of
19811         gimple_opt_pass along with...
19812         (pass_data_cselim): ...new pass_data instance and...
19813         (make_pass_cselim): ...new function.
19814         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
19815         subclass of gimple_opt_pass along with...
19816         (pass_data_phiprop): ...new pass_data instance and...
19817         (make_pass_phiprop): ...new function.
19818         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
19819         subclass of gimple_opt_pass along with...
19820         (pass_data_pre): ...new pass_data instance and...
19821         (make_pass_pre): ...new function.
19822         (pass_fre): Convert from a global struct to a subclass of
19823         gimple_opt_pass along with...
19824         (pass_data_fre): ...new pass_data instance and...
19825         (make_pass_fre): ...new function.
19826         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
19827         subclass of gimple_opt_pass along with...
19828         (pass_data_reassoc): ...new pass_data instance and...
19829         (make_pass_reassoc): ...new function.
19830         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
19831         subclass of gimple_opt_pass along with...
19832         (pass_data_sink_code): ...new pass_data instance and...
19833         (make_pass_sink_code): ...new function.
19834         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
19835         subclass of gimple_opt_pass along with...
19836         (pass_data_strlen): ...new pass_data instance and...
19837         (make_pass_strlen): ...new function.
19838         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
19839         struct to a subclass of gimple_opt_pass along with...
19840         (pass_data_build_alias): ...new pass_data instance and...
19841         (make_pass_build_alias): ...new function.
19842         (pass_build_ealias): Convert from a global struct to a subclass of
19843         gimple_opt_pass along with...
19844         (pass_data_build_ealias): ...new pass_data instance and...
19845         (make_pass_build_ealias): ...new function.
19846         (pass_ipa_pta): Convert from a global struct to a subclass of
19847         simple_ipa_opt_pass along with...
19848         (pass_data_ipa_pta): ...new pass_data instance and...
19849         (make_pass_ipa_pta): ...new function.
19850         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
19851         subclass of gimple_opt_pass along with...
19852         (pass_data_uncprop): ...new pass_data instance and...
19853         (make_pass_uncprop): ...new function.
19854         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
19855         global struct to a subclass of gimple_opt_pass along with...
19856         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
19857         (make_pass_late_warn_uninitialized): ...new function.
19858         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
19859         to a subclass of gimple_opt_pass along with...
19860         (pass_data_init_datastructures): ...new pass_data instance and...
19861         (make_pass_init_datastructures): ...new function.
19862         (pass_early_warn_uninitialized): Convert from a global struct to a
19863         subclass of gimple_opt_pass along with...
19864         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
19865         (make_pass_early_warn_uninitialized): ...new function.
19866         (pass_update_address_taken): Convert from a global struct to a
19867         subclass of gimple_opt_pass along with...
19868         (pass_data_update_address_taken): ...new pass_data instance and...
19869         (make_pass_update_address_taken): ...new function.
19870         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
19871         struct to a subclass of gimple_opt_pass along with...
19872         (pass_data_release_ssa_names): ...new pass_data instance and...
19873         (make_pass_release_ssa_names): ...new function.
19874         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
19875         subclass of gimple_opt_pass along with...
19876         (pass_data_stdarg): ...new pass_data instance and...
19877         (make_pass_stdarg): ...new function.
19878         * tree-switch-conversion.c (pass_convert_switch): Convert from a
19879         global struct to a subclass of gimple_opt_pass along with...
19880         (pass_data_convert_switch): ...new pass_data instance and...
19881         (make_pass_convert_switch): ...new function.
19882         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
19883         to a subclass of gimple_opt_pass along with...
19884         (pass_data_tail_recursion): ...new pass_data instance and...
19885         (make_pass_tail_recursion): ...new function.
19886         (pass_tail_calls): Convert from a global struct to a subclass of
19887         gimple_opt_pass along with...
19888         (pass_data_tail_calls): ...new pass_data instance and...
19889         (make_pass_tail_calls): ...new function.
19890         * tree-vect-generic.c (pass_lower_vector): Convert from a global
19891         struct to a subclass of gimple_opt_pass along with...
19892         (pass_data_lower_vector): ...new pass_data instance and...
19893         (make_pass_lower_vector): ...new function.
19894         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
19895         gimple_opt_pass along with...
19896         (pass_data_lower_vector_ssa): ...new pass_data instance and...
19897         (make_pass_lower_vector_ssa): ...new function.
19898         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
19899         to a subclass of gimple_opt_pass along with...
19900         (pass_data_slp_vectorize): ...new pass_data instance and...
19901         (make_pass_slp_vectorize): ...new function.
19902         (pass_ipa_increase_alignment): Convert from a global struct to a
19903         subclass of simple_ipa_opt_pass along with...
19904         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
19905         (make_pass_ipa_increase_alignment): ...new function.
19906         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
19907         gimple_opt_pass along with...
19908         (pass_data_vrp): ...new pass_data instance and...
19909         (make_pass_vrp): ...new function.
19910         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
19911         subclass of simple_ipa_opt_pass along with...
19912         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
19913         (make_pass_ipa_free_lang_data): ...new function.
19914         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
19915         gimple_opt_pass along with...
19916         (pass_data_tsan): ...new pass_data instance and...
19917         (make_pass_tsan): ...new function.
19918         (pass_tsan_O0): Convert from a global struct to a subclass of
19919         gimple_opt_pass along with...
19920         (pass_data_tsan_O0): ...new pass_data instance and...
19921         (make_pass_tsan_O0): ...new function.
19922         * var-tracking.c (pass_variable_tracking): Convert from a global
19923         struct to a subclass of rtl_opt_pass along with...
19924         (pass_data_variable_tracking): ...new pass_data instance and...
19925         (make_pass_variable_tracking): ...new function.
19926         * web.c (pass_web): Convert from a global struct to a subclass of
19927         rtl_opt_pass along with...
19928         (pass_data_web): ...new pass_data instance and...
19929         (make_pass_web): ...new function.
19930         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
19931         declaration with that of...
19932         (make_pass_mode_switch_use): ...new function.
19933         (pass_resolve_sw_modes): Replace declaration with that of...
19934         (make_pass_resolve_sw_modes): ...new function.
19935         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
19936         from a global struct to a subclass of rtl_opt_pass along with...
19937         (pass_data_mode_switch_use): ...new pass_data instance and...
19938         (make_pass_mode_switch_use): ...new function.
19939         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
19940         from a global struct to a subclass of rtl_opt_pass along with...
19941         (pass_data_resolve_sw_modes): ...new pass_data instance and...
19942         (make_pass_resolve_sw_modes): ...new function.
19943         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
19944         struct to a subclass of rtl_opt_pass along with...
19945         (pass_data_insert_vzeroupper): ...new pass_data instance and...
19946         (make_pass_insert_vzeroupper): ...new function.
19947         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
19948         global struct to a subclass of rtl_opt_pass along with...
19949         (pass_data_work_around_errata): ...new pass_data instance and...
19950         (make_pass_work_around_errata): ...new function.
19951         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
19952         struct to a subclass of rtl_opt_pass along with...
19953         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
19954         (make_pass_mips_machine_reorg2): ...new function.
19956 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19958         * passes.c (pass_manager::operator new): New.
19960 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
19962         Handwritten part of conversion of passes to C++ classes.
19964         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
19965         (toplev.o): Add dep on PASS_MANAGER_H.
19966         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
19967         of early local pases to reflect this moving from a global to a
19968         member of gcc::pass_manager.
19969         (cgraph_add_new_function): Likewise.
19970         * lto-cgraph.c (lto_output_node): Update for conversion of
19971         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
19972         * passes.c (opt_pass::clone): New.
19973         (opt_pass::gate): New.
19974         (opt_pass::execute): New.
19975         (opt_pass::opt_pass): New.
19976         (pass_manager::execute_early_local_passes): New.
19977         (pass_manager::execute_pass_mode_switching): new.
19978         (finish_optimization_passes): Convert to...
19979         (pass_manager::finish_optimization_passes): ...this.
19980         (finish_optimization_passes): Update for conversion of passes to
19981         C++ classes.
19982         (register_dump_files_1): Use has_gate since we cannot portably
19983         check a vtable entry against NULL.
19984         (dump_one_pass): Likewise.
19985         (ipa_write_summaries_2): Likewise.
19986         (ipa_write_optimization_summaries_1): Likewise.
19987         (ipa_read_summaries_1): Likewise.
19988         (ipa_read_optimization_summaries_1): Likewise.
19989         (execute_ipa_stmt_fixups): Likewise.
19990         (pass_manager::pass_manager): Rewrite pass-creation, invoking
19991         pass-creation functions rather than wiring up globals, and
19992         storing the results in fields of pass_manager generated using
19993         pass-instances.def.
19994         (pass_manager::dump_profile_report): Update for conversion of
19995         passes to C++ classes.
19996         (pass_manager::execute_ipa_summary_passes): Likewise.
19997         (execute_one_ipa_transform_pass): Likewise.
19998         (execute_one_pass): Use has_gate and has_execute since we cannot
19999         portably check a vtable entry against NULL.
20000         * pass_manager.h (pass_manager::finish_optimization_passes): New.
20001         (pass_manager): Use pass-instances.def to add fields for the
20002         various pass instances.
20003         * toplev.c (finalize): Update for move of
20004         finish_optimization_passes to a method of gcc::pass_manager.
20005         * toplev.h (finish_optimization_passes): Move to method of class
20006         pass_manager.
20007         * tree-pass.h (struct pass_data): New.
20008         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
20009         (opt_pass::gate): Convert to virtual function.
20010         (opt_pass::~opt_pass): New.
20011         (opt_pass::clone): New.
20012         (opt_pass::execute): Convert to virtual function.
20013         (opt_pass::opt_pass): New.
20014         (opt_pass::ctxt_): new.
20015         (gimple_opt_pass): Convert to subclass of opt_pass.
20016         (gimple_opt_pass::gimple_opt_pass): New.
20017         (rtl_opt_pass): Convert to subclass of opt_pass.
20018         (rtl_opt_pass::rtl_opt_pass): New.
20019         (ipa_opt_pass_d): Convert to subclass of opt_pass.
20020         (ipa_opt_pass_d::ipa_opt_pass_d): New.
20021         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
20022         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
20023         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
20024         invocation of pass_mode_switching to reflect this moving from a
20025         global to a member of gcc::pass_manager.
20026         (ix86_option_override): Rework how pass_insert_vzeroupper is
20027         added to the pass_manager to reflect autogenerated changes.
20028         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
20030 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
20032         PR rtl-optimization/57708
20033         * recog.c (peep2_find_free_register): Validate all regs in a
20034         multi-reg mode.
20036 2013-08-05  Jan Hubicka  <jh@suse.cz>
20038         PR lto/57602
20039         * cgraph.c (verify_cgraph_node): Accept local flags from other
20040         partitions.
20041         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
20042         (function_and_variable_visibility): Likewise.
20043         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
20045 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20047         * graph.c (init_graph_slim_pretty_print): Remove.
20048         (print_graph_cfg): Do not call it.  Use local pretty printer.
20049         (start_graph_dump): Likewise.
20051 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20053         * gimple-pretty-print.c (buffer): Remove.
20054         (initialized): Likewise.
20055         (maybe_init_pretty_print): Likewise.
20056         (print_gimple_stmt): Do not call it.  Use non-static local
20057         pretty_printer variable.
20058         (print_gimple_expr): Likewise.
20059         (print_gimple_seq): Likewise.
20060         (gimple_dump_bb): Likewise.
20062 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20064         * asan.c (asan_pp): Remove.
20065         (asan_pp_initialized): Likewise.
20066         (asan_pp_initialize): Likewise.
20067         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
20068         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
20069         (asan_add_global): Likewise.
20071 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20073         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
20074         * diagnostic.h (diagnostic_flush_buffer): Adjust.
20075         * pretty-print.c (pp_formatted_text_data): Likewise.
20076         (pp_indent): Rename from pp_base_indent.
20077         (pp_format): Rename from pp_base_format.
20078         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
20079         (pp_format_verbatim): Rename from pp_base_format_verbatim.
20080         (pp_flush): Rename from pp_base_flush.
20081         (pp_set_line_maximum_length): Rename from
20082         pp_base_set_line_maximum_length.
20083         (pp_clear_output_area): Rename from pp_base_clear_output_area.
20084         (pp_set_prefix): Rename from pp_base_set_prefix.
20085         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
20086         (pp_emit_prefix): Rename from pp_base_emit_prefix.
20087         (pp_append_text): Rename from pp_base_append_text.
20088         (pp_formatted_text): Rename from pp_base_formatted_text.
20089         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
20090         (pp_remaining_character_count_for_line): Rename from
20091         pp_base_remaining_character_count_for_line.
20092         (pp_newline): Rename from pp_base_newline.
20093         (pp_character): Rename from pp_base_character.
20094         (pp_string): Rename from pp_base_string.
20095         (pp_maybe_space): Rename from pp_base_maybe_space.
20096         * asan.c (asan_pp_string): Adjust.
20097         (asan_emit_stack_protection): Likewise.
20098         (asan_add_global): Likewise.
20099         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
20100         * tree-mudflap.c (mf_varname_tree): Likewise.
20101         * tree-pretty-print.c (pp_tree_identifier): Rename from
20102         pp_base_tree_identifier.
20103         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
20104         Declare as function.
20106 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20108         * pretty-print.h (pp_bar_bar): New.
20109         (pp_ampersand_ampersand): Likewise.
20110         (pp_less_equal): Likewise.
20111         (pp_greater_equal): Likewise.
20112         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
20113         printer functions instead of pp_string or operators and punctuators.
20114         (dump_gimple_call): Likewise.
20115         (dump_gimple_omp_for): Likewise.
20116         (dump_gimple_transaction): Likewise.
20117         (dump_gimple_phi): Likewise.
20118         (pp_gimple_stmt_1): Likewise.
20119         * sched-vis.c (print_insn): Likewise.
20120         * tree-mudflap.c (mf_varname_tree): Likewise.
20121         * tree-pretty-print.c (dump_block_node): Likewise.
20122         (dump_generic_node): Likewise.
20124 2013-08-02  Jan Hubicka  <jh@suse.cz>
20126         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
20127         boundaries.
20128         * lto-streamer-out.c (tree_is_indexable): Results decls and
20129         parm decls are not indexable.
20130         (DFS_write_tree_body): Do not follow args and results.
20131         (hash_tree): Likewise.
20132         (output_functions): Rearrange so struct function is needed
20133         only when real body is output; be able to also ouptut abstract
20134         functions; output DECL_ARGUMENTS and DECL_RESULT.
20135         (lto_output): When not in WPA, ale store abstract functions.
20136         (write_symbol): Do not care about RESULT_DECL.
20137         (output_symbol_p): Handle correctly sbtract decls.
20138         * lto-streamer-in.c (input_function): Rearrange so struct
20139         function can be NULL at entry; allow streaming of
20140         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
20141         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
20142         sanity check during LTO.
20143         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
20144         RESULT_DECl and DECL_ARGUMENTS.
20145         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20146         Likewise.
20148 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
20150         * pretty-print.h (pp_underscore): New.
20151         (pp_comma): Tidy.
20152         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
20153         printer functions instead of pp_character.
20154         (dump_binary_rhs): Likewise.
20155         (dump_ternary_rhs): Likewise.
20156         (dump_gimple_call_args): Likewise.
20157         (pp_points_to_solution): Likewise.
20158         (dump_gimple_call): Likewise.
20159         (dump_gimple_switch): Likewise.
20160         (dump_gimple_cond): Likewise.
20161         (dump_gimple_bind): Likewise.
20162         (dump_gimple_try): Likewise.
20163         (dump_gimple_omp_for): Likewise.
20164         (dump_gimple_omp_continue): Likewise.
20165         (dump_gimple_omp_single): Likewise.
20166         (dump_gimple_omp_sections): Likewise.
20167         (dump_gimple_omp_block): Likewise.
20168         (dump_gimple_omp_critical): Likewise.
20169         (dump_gimple_transaction): Likewise.
20170         (dump_gimple_asm): Likewise.
20171         (dump_gimple_phi): Likewise.
20172         (dump_gimple_omp_parallel): Likewise.
20173         (dump_gimple_omp_task): Likewise.
20174         (dump_gimple_omp_atomic_load): Likewise.
20175         (dump_gimple_omp_atomic_store): Likewise.
20176         (dump_gimple_mem_ops): Likewise.
20177         (pp_gimple_stmt_1): Likewise.
20178         (pp_cfg_jump): Likewise.
20179         (dump_implicit_edges): Likewise.
20180         (gimple_dump_bb_for_graph): Likewise.
20181         * graph.c (draw_cfg_node): Likewise.
20182         * langhooks.c (lhd_print_error_function): Likewise.
20183         * sched-vis.c (print_exp): Likewise.
20184         (print_value): Likewise.
20185         (print_pattern): Likewise.
20186         (print_insn): Likewise.
20187         (rtl_dump_bb_for_graph): Likewise.
20188         * tree-pretty-print.c (dump_function_declaration): Likewise.
20189         (dump_array_domain): Likewise.
20190         (dump_omp_clause): Likewise.
20191         (dump_location): Likewise.
20192         (dump_generic_node): Likewise.
20193         (print_struct_decl): Likewise.
20194         * diagnostic.c (diagnostic_show_locus): Use pp_space.
20196 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20198         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
20199         candidate table when replacing a candidate statement.
20200         (replace_rhs_if_not_dup): Likewise.
20201         (replace_one_candidate): Likewise.
20203 2013-08-02  Jan Hubicka  <jh@suse.cz>
20204             Martin Liska  <marxin.liska@gmail.com>
20206         * cgraphunit.c (add_new_function): Fix logic when adding from
20207         late IPA pass.
20208         (assemble_thunk): Rename to ...
20209         (expand_thunk); .. this one; export; get it working with
20210         general functions; make produced gimple valid.
20211         * cgraph.h (expand_thunk): Declare.
20213 2013-08-02  Jan Hubicka  <jh@suse.cz>
20215         * ipa-cp.c (gather_context_independent_values): Use
20216         ipa_get_param_move_cost.
20217         (get_replacement_map): Remove PARAM; move parameter folding
20218         into tree-inline.c
20219         (create_specialized_node): Update.
20220         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
20221         assert that we have gimple body; update move_cost.
20222         (count_formal_params): Assert that we have gimple body.
20223         (ipa_dump_param): New function.
20224         (ipa_alloc_node_params): Break out from ...
20225         (ipa_initialize_node_params): ... here.
20226         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
20227         (ipa_write_node_info): Stream move costs.
20228         (ipa_read_node_info): Read move costs.
20229         (ipa_update_after_lto_read): Do not recompute node params.
20230         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
20231         (ipa_get_param): Check we are not in WPA.
20232         (ipa_get_param_move_cost): New.
20233         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
20234         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
20235         parm numbers to be present.
20237 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
20239         PR rtl-optimization/58048
20240         * lra-constraints.c (process_alt_operands): Don't check asm
20241         operand on register.
20243 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
20245         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
20246         the implied StoreLoad barrier for atomic operations if before.
20248 2013-08-02  Jan Hubicka  <jh@suse.cz>
20249             Martin Liska  <marxin.liska@gmail.com>
20251         * cgraph.c (cgraph_function_body_availability): Do not check
20252         cgraph flags.
20253         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
20254         symtab_node_availability): Declare.
20255         * ipa.c (can_replace_by_local_alias): New.
20256         (function_and_variable_visibility): Use it.
20257         * symtab.c (symtab_for_node_and_aliases,
20258         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
20260 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
20262         PR rtl-optimization/57963
20263         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
20264         (lra_constraints): Use them.
20266 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
20268         * config/arm/types.md (define_attr "type"): Add "load_acq"
20269         and "store_rel".
20270         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
20271         changes.
20272         (cortex_a53_store1): Likewise.
20274 2013-08-01  Jan Hubicka  <jh@suse.cz>
20276         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
20277         partitions are not needed.
20279 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
20281         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
20282         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
20283         MAYBE_NON_Q_CLASS_P where appropriate.
20285 2013-08-01  Jan Hubicka  <jh@suse.cz>
20287         * cgraph.h (release_function_body): Declare.
20288         * tree.c (free_lang_data_in_decl): Free, parameters and return values
20289         of unused delcarations.
20291 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20293         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
20294         RTL form when subtracting a constant.
20296 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20298         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
20299         Generate canonical plus rtx with negated immediate instead of minus
20300         where appropriate.
20301         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
20303 2013-08-01  Jan Hubicka  <jh@suse.cz>
20305         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
20306         (cgraph_release_function_body): Likewise.
20307         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
20308         * cgraph.h (cgrpah_node): Rename abstract_and_needed
20309         to used_as_abstract_origin.
20310         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
20311         symbols used as abstract origins.
20312         * cgraphunit.c (analyze_functions): Update.
20313         * ipa.c (symtab_remove_unreachable_nodes): Recompute
20314         used_as_abstract_origin.
20315         * tree-inline.c (tree_function_versioning): Update
20316         used_as_abstract_origin; be ready for DECL_RESULT and
20317         DECL_ARGUMENTS to be NULL.
20319         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
20320         for abstract functions.
20321         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
20322         real symbols.
20324 2013-08-01  Jan Hubicka  <jh@suse.cz>
20326         * profile.c (compute_value_histograms): Fix thinko.
20328 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
20330         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
20331         aarch-common-protos.h to extra_headers.
20332         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20333         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
20334         * config/aarch64/t-aarch64 (aarch-common.o): Define.
20336 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
20338         * config/aarch64/aarch64.md (define_attr "type"): Delete.
20339         Include "../arm/types.md".  Define "type" attribute for all patterns.
20340         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
20341         attribute changes.
20343 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
20345         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
20346         to support power8 load fusion.
20347         (fusion_gpr_mem_load): Likewise.
20349         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
20351         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
20352         declarations for power8 load fusion.
20353         (emit_fusion_gpr_load): Likewise.
20355         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
20356         tuning for power8, turn on fusion mode by default.  Turn on sign
20357         extending fusion mode if normal fusion mode is on, and we are at
20358         -O2 or -O3.
20359         (fusion_gpr_load_p): New function, return true if we can fuse an
20360         addis instruction with a dependent load to a GPR.
20361         (emit_fusion_gpr_load): Emit the instructions for power8 load
20362         fusion to GPRs.
20364         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
20365         (VSX load fusion peepholes): New peepholes to fuse together an
20366         addi instruction with a VSX load instruction.
20368         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
20369         peepholes to fuse an addis instruction with a load to a GPR base
20370         register.  If we are supporting sign extending fusions, convert
20371         sign extending loads to zero extending loads and add an explicit
20372         sign extension.
20374 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
20376         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
20377         aarch-common-protos.h to extra_headers.
20378         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
20379         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
20380         (arm_early_store_addr_dep): Likewise.
20381         (arm_no_early_alu_shift_dep): Likewise.
20382         (arm_no_early_alu_shift_value_dep): Likewise.
20383         (arm_no_early_mul_dep): Likewise.
20384         (arm_no_early_store_addr_dep): Likewise.
20385         (arm_mac_accumulator_is_mul_result): Likewise.
20386         (arm_mac_accumulator_is_result): Likewise.
20387         * config/arm/aarch-common.c: ... here.  New file.
20388         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
20389         here to ...
20390         (arm_early_store_addr_dep): Likewise.
20391         (arm_no_early_alu_shift_dep): Likewise.
20392         (arm_no_early_alu_shift_value_dep): Likewise.
20393         (arm_no_early_mul_dep): Likewise.
20394         (arm_no_early_store_addr_dep): Likewise.
20395         (arm_mac_accumulator_is_mul_result): Likewise.
20396         (arm_mac_accumulator_is_result): Likewise.
20397         * config/arm/aarch-common-protos.h: ... here.  New file.
20398         * config/arm/t-arm (aarch-common.o): Define.
20400 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
20402         * config/arm/arm.md: Include new file "types.md".
20403         (define_attr "type"): Move from here to ...
20404         (define_attr "mul32"): Likewise.
20405         (define_attr "mul64"): Likewise.
20406         * config/arm/types.md: ... here.  New file.
20408 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
20410         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
20411         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
20413 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20415         * gen-pass-instances.awk: Fix offset of substr().
20417 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
20419         * Makefile.in (pass-instances.def): New.
20420         (passes.o): Replace dependency on passes.def with one on
20421         pass-instances.def
20423         * gen-pass-instances.awk: New.
20425         * passes.c (pass_manager::pass_manager): Use pass-instances.def
20426         rather than passes.def, updating local definition of NEXT_PASS
20427         macro to add an extra NUM parameter (currently unused).
20429 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
20431         * Makefile.in (PASS_MANAGER_H): New.
20432         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
20433         (passes.o): Likewise.
20434         (statistics.o): Likewise.
20435         (cgraphunit.o): Likewise.
20436         (context.o): Depend on PASS_MANAGER_H.
20438         * pass_manager.h: New.
20440         * cgraphunit.c (cgraph_add_new_function): Update for moves
20441         of globals to fields of pass_manager.
20442         (analyze_function): Likewise.
20443         (expand_function): Likewise.
20444         (ipa_passes): Likewise.
20445         (compile): Likewise.
20447         * context.c (context::context): New.
20448         * context.h  (context::context): New.
20449         (context::get_passes): New.
20450         (context::passes_): New.
20452         * lto-cgraph.c (input_node): Update for moves of globals to
20453         fields of pass_manager.
20455         * passes.c (all_passes): Remove, in favor of a field of the
20456         same name within the new class pass_manager.
20457         (all_small_ipa_passes): Likewise.
20458         (all_lowering_passes): Likewise.
20459         (all_regular_ipa_passes): Likewise.
20460         (all_late_ipa_passes): Likewise.
20461         (all_lto_gen_passes): Likewise.
20462         (passes_by_id): Likewise.
20463         (passes_by_id_size): Likewise.
20464         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
20465         the new class pass_manager.
20466         (set_pass_for_id): Convert to...
20467         (pass_manager::set_pass_for_id): ...method.
20468         (get_pass_for_id): Convert to...
20469         (pass_manager::get_pass_for_id): ...method.
20470         (register_one_dump_file): Move body of implementation into...
20471         (pass_manager::register_one_dump_file): ...here.
20472         (register_dump_files_1): Convert to...
20473         (pass_manager::register_dump_files_1): ...method.
20474         (register_dump_files): Convert to...
20475         (pass_manager::register_dump_files): ...method.
20476         (create_pass_tab): Update for moves of globals to fields of
20477         pass_manager.
20478         (dump_passes): Move body of implementation into...
20479         (pass_manager::dump_passes): ...here.
20480         (register_pass): Move body of implementation into...
20481         (pass_manager::register_pass): ...here.
20482         (init_optimization_passes): Convert into...
20483         (pass_manager::pass_manager): ...constructor for new
20484         pass_manager class, and initialize the pass_lists array.
20485         (check_profile_consistency): Update for moves of globals to
20486         fields of pass_manager.
20487         (dump_profile_report): Move body of implementation into...
20488         (pass_manager::dump_profile_report): ...here.
20489         (ipa_write_summaries_1): Update for moves of pass lists from
20490         being globals to fields of pass_manager.
20491         (ipa_write_optimization_summaries): Likewise.
20492         (ipa_read_summaries):  Likewise.
20493         (ipa_read_optimization_summaries): Likewise.
20494         (execute_all_ipa_stmt_fixups): Likewise.
20496         * statistics.c (statistics_fini): Update for moves of globals to
20497         fields of pass_manager.
20499         * toplev.c (general_init): Replace call to
20500         init_optimization_passes with construction of the pass_manager
20501         instance.
20503         * tree-pass.h (all_passes): Remove, in favor of a field of the
20504         same name within the new class pass_manager.
20505         (all_small_ipa_passes): Likewise.
20506         (all_lowering_passes): Likewise.
20507         (all_regular_ipa_passes): Likewise.
20508         (all_lto_gen_passes): Likewise.
20509         (all_late_ipa_passes): Likewise.
20510         (passes_by_id): Likewise.
20511         (passes_by_id_size): Likewise.
20512         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
20513         the new class pass_manager.
20514         (get_pass_for_id): Remove.
20516 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
20518         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
20519         configs.
20521 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
20523         * arm.md (mulhi3): New expand pattern.
20525 2013-07-30  Jan Hubicka  <jh@suse.cz>
20526             Martin Liska  <marxin.liska@gmail.com>
20528         * profile.c (compute_value_histograms): Do not ICE when
20529         there is mismatch only on some counters.
20531 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20533         PR rtl-optimization/57637
20534         * function.c (move_insn_for_shrink_wrap): Also check the
20535         GEN set of the LIVE problem for the liveness analysis
20536         if it exists, otherwise give up.
20538 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20540         PR tree-optimization/57993
20541         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
20542         replaced statement in the candidate table.
20543         (phi_add_costs): Return infinite cost when the hidden basis does
20544         not dominate all phis on which the candidate is dependent.
20545         (replace_one_candidate): Record replaced statement in the
20546         candidate table.
20548 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
20550         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
20551         (ashlv2si3): New expander.
20552         (*ashlv2si3_i): New define_insn_and_split.
20553         * predicates.md (float_operation): Allow patterns with three
20554         basic sub-patterns.
20556         PR rtl-optimization/58021
20557         * mode-switching.c (create_pre_exit): Always split off preceding
20558         insns if we are not at the basic block head.
20560 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
20562         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
20563         (UCLIBC_DYNAMIC_LINKER): New macro.
20564         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
20565         `-mnan=2008'.
20566         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
20567         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
20568         `-mnan=2008'.
20569         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
20570         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
20571         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
20572         for SF and DF modes.  Use ieee_quad_format for TF mode.
20573         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
20574         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
20575         (mips_option_override): Handle `-mnan=legacy'.
20576         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
20577         `-mabs=2008' and `-mnan=2008'.
20578         (OPTION_DEFAULT_SPECS): Add "nan" default.
20579         (ASM_SPEC): Handle `-mnan='.
20580         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
20581         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
20582         comment accordingly.
20583         (neg<mode>2): Likewise.
20584         * config/mips/mips.opt (mabs, mnan): New options.
20585         * doc/install.texi (Configuration): Document `--with-nan=' option.
20586         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
20587         `-mnan=' options.
20588         (MIPS Options): Document them.
20589         * config.gcc <mips*-*-*>: Handle `--with-nan='.
20590         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
20591         * configure: Regenerate.
20592         * config.in: Regenerate.
20594 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
20596         * config/i386/i386.md (float post-reload splitters): Do not check
20597         for subregs of SSE registers.
20599 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
20600             H.J. Lu  <hongjiu.lu@intel.com>
20602         PR target/57954
20603         PR target/57988
20604         * config/i386/i386.md (post-reload splitter
20605         to avoid partial SSE reg dependency stalls): New pattern.
20607 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
20609         * config/s390/s390.md ("movcc"): Swap load and store instructions.
20611 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
20613         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
20614         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
20616 2013-07-26  Cary Coutant  <ccoutant@google.com>
20618         * dwarf2out.c (die_checksum_ordered): Don't include template
20619         instantiations in signature.
20620         (is_template_parameter): New function.
20621         (is_template_instantiation): New function.
20622         (generate_skeleton_bottom_up): Don't include template instantiations
20623         in type unit DIE.
20624         (generate_skeleton): Likewise.
20625         (break_out_comdat_types): Move recursive call to break out nested
20626         types earlier.
20627         (prune_unused_types_mark_generic_parms_dies): Call
20628         is_template_parameter.
20630 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
20632         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
20633         uses vector registers.
20634         * config/aarch64/iterators.md: Add attributes rtn and vas.
20636 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20637             Richard Earnshaw  <richard.earnshaw@arm.com>
20639         * combine.c (simplify_comparison): Re-canonicalize operands
20640         where appropriate.
20641         * config/arm/arm.md (movcond_addsi): New splitter.
20643 2013-07-25  Sterling Augustine  <saugustine@google.com>
20645         * dwarf2out.c (size_of_pubnames): Move code to...
20646         (include_pubname_in_output): ...here.  New.
20647         (want_pubnames): Rearrange.
20648         (output_pubnames): Call include_pubname_in_output.  Move assertion.
20650 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
20652         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
20654 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
20656         PR target/38836
20657         * doc/extend.texi: Remove obsolete builtins. Fix
20658         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
20660 2013-07-25  Jan Hubicka  <jh@suse.cz>
20662         * cgraph.c (release_function_body): Break out from ...
20663         (cgraph_release_function_body): ... this one; also release DECL_RESULT
20664         and DECL_ARGUMENTS.
20665         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
20666         old_tree in the map.
20667         (create_specialized_node): Update.
20668         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
20669         into index.
20670         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
20671         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
20672         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
20673         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
20674         DECL_RESULT.
20676 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20678         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
20679         addsi3_carryin_alt2_<optab>): Correct output template.
20681 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20683         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
20684         Adjust for arm_restrict_it.
20685         Remove trailing whitespace.
20687 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
20689         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
20690         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
20692         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
20694 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
20696         PR rtl-optimization/57960
20697         * lra-constraints.c (process_alt_operands): Use the right mode
20698         when checking strict_low.
20700 2013-07-25  Jan Hubicka  <jh@suse.cz>
20702         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
20703         * cgraph.c (cgraph_remove_node): Do not release function body
20704         when in cgraph streaming.
20705         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
20706         in other partitions are not considered reachable; fix handling of
20707         clones.
20709 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20711         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
20713 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20715         PR target/19599
20716         PR target/57731
20717         PR target/57837
20718         * config/arm/arm.md ("*sibcall_insn): Replace use of
20719         Ss with US. Adjust output for v5 and v4t.
20720         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
20722         * config/arm/constraints.md ("Ss"): Rename to US.
20724 2013-07-25  Terry Guo  <terry.guo@arm.com>
20726         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
20727         shift_add/shift_sub0/shift_sub1 RTXs.
20729 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
20730             Anton Blanchard  <anton@au1.ibm.com>
20732         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
20733         (altivec_vpks<VI_char>ss): Likewise.
20734         (altivec_vpks<VI_char>us): Likewise.
20735         (altivec_vpku<VI_char>us): Likewise.
20736         (altivec_vpku<VI_char>um): Likewise.
20738 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
20740         Introduce context class.
20742         * Makefile.in (CONTEXT_H): New.
20743         (OBJS): Add context.o.
20744         (toplev.o): Add CONTEXT_H to dependencies.
20745         (context.o): New.
20747         * toplev.c (general_init): Create the singleton gcc::context instance.
20749         * context.c: New.
20751         * context.h: New.
20753 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
20755         PR rtl-optimization/57968
20756         * mode-switching.c (create_pre_exit): Allow instructions that
20757         don't set a return register to need a non-exit mode.
20759 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
20760             Anton Blanchard  <anton@au1.ibm.com>
20762         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
20763         operands to vperm for little endian.
20764         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
20765         of lvsl to create the control mask for a vperm for little endian.
20767 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20768             Anton Blanchard  <anton@au1.ibm.com>
20770         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
20771         two operands for little-endian.
20773 2013-07-23  Steve Ellcey  <sellcey@mips.com>
20775         * config/mips/mips.c (mips_case_values_threshold): New.
20776         (TARGET_CASE_VALUES_THRESHOLD): Define.
20778 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20779             Anton Blanchard  <anton@au1.ibm.com>
20781         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
20782         selection of field for vector splat in little endian mode.
20784 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
20786         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
20787         expanders to rs6000.md.
20788         (ior<mode>3): Likewise.
20789         (and<mode>3): Likewise.
20790         (one_cmpl<mode>2): Likewise.
20791         (nor<mode>3): Likewise.
20792         (andc<mode>3): Likewise.
20793         (eqv<mode>3): Likewise.
20794         (nand<mode>3): Likewise.
20795         (orc<mode>3): Likewise.
20797         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
20798         declaration.
20800         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
20801         to split multi-word logical operations.
20802         (rs6000_split_logical_di): Likewise.
20803         (rs6000_split_logical): Likewise.
20805         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
20806         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
20807         and allow TImode operations in 32-bit.
20808         (vsx_and<mode>3_64bit): Likewise.
20809         (vsx_ior<mode>3_32bit): Likewise.
20810         (vsx_ior<mode>3_64bit): Likewise.
20811         (vsx_xor<mode>3_32bit): Likewise.
20812         (vsx_xor<mode>3_64bit): Likewise.
20813         (vsx_one_cmpl<mode>2_32bit): Likewise.
20814         (vsx_one_cmpl<mode>2_64bit): Likewise.
20815         (vsx_nor<mode>3_32bit): Likewise.
20816         (vsx_nor<mode>3_64bit): Likewise.
20817         (vsx_andc<mode>3_32bit): Likewise.
20818         (vsx_andc<mode>3_64bit): Likewise.
20819         (vsx_eqv<mode>3_32bit): Likewise.
20820         (vsx_eqv<mode>3_64bit): Likewise.
20821         (vsx_nand<mode>3_32bit): Likewise.
20822         (vsx_nand<mode>3_64bit): Likewise.
20823         (vsx_orc<mode>3_32bit): Likewise.
20824         (vsx_orc<mode>3_64bit): Likewise.
20826         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
20827         logical types in GPRs.
20829         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
20830         logical insns to rs6000.md, and allow TImode operations in
20831         32-bit.
20832         (altivec_ior<mode>3): Likewise.
20833         (altivec_xor<mode>3): Likewise.
20834         (altivec_one_cmpl<mode>2): Likewise.
20835         (altivec_nor<mode>3): Likewise.
20836         (altivec_andc<mode>3): Likewise.
20838         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
20839         attributes for moving the 128-bit logical operations into
20840         rs6000.md.
20841         (BOOL_REGS_OUTPUT): Likewise.
20842         (BOOL_REGS_OP1): Likewise.
20843         (BOOL_REGS_OP2): Likewise.
20844         (BOOL_REGS_UNARY): Likewise.
20845         (BOOL_REGS_AND_CR0): Likewise.
20846         (one_cmpl<mode>2): Add support for DI logical operations on
20847         32-bit, splitting the operations to 32-bit.
20848         (anddi3): Likewise.
20849         (iordi3): Likewise.
20850         (xordi3): Likewise.
20851         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
20852         changes to combine the 32/64-bit code, allow logical operations on
20853         TI mode in 32-bit, and to use similar match_operator patterns like
20854         scalar mode uses.  Combine the Altivec and VSX code for logical
20855         operations, and move it here.
20856         (ior<mode>3, 128-bit types): Likewise.
20857         (xor<mode>3, 128-bit types): Likewise.
20858         (one_cmpl<mode>3, 128-bit types): Likewise.
20859         (nor<mode>3, 128-bit types): Likewise.
20860         (andc<mode>3, 128-bit types): Likewise.
20861         (eqv<mode>3, 128-bit types): Likewise.
20862         (nand<mode>3, 128-bit types): Likewise.
20863         (orc<mode>3, 128-bit types): Likewise.
20864         (and<mode>3_internal): Likewise.
20865         (bool<mode>3_internal): Likewise.
20866         (boolc<mode>3_internal1): Likewise.
20867         (boolc<mode>3_internal2): Likewise.
20868         (boolcc<mode>3_internal1): Likewise.
20869         (boolcc<mode>3_internal2): Likewise.
20870         (eqv<mode>3_internal1): Likewise.
20871         (eqv<mode>3_internal2): Likewise.
20872         (one_cmpl1<mode>3_internal): Likewise.
20874 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
20876         * config/microblaze/microblaze.c (microblaze_expand_prologue):
20877         Rename flag_stack_usage to flag_stack_usage_info.
20879 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
20881         * config/microblaze/sync.md: New file.
20882         * config/microblaze/microblaze.md: Include sync.md
20883         * config/microblaze/microblaze.c: Add print_operand 'y'.
20884         * config/microblaze/constraints.md: Add memory_contraint
20885         'Q' which is a single register.
20887 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
20889         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
20891 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
20893         * reload.c (find_reloads): Exit loop once we find this operand
20894         cannot be reloaded somehow for this alternative.
20896         * reload.c (find_reloads): Exit loop once we find a hard register.
20898         * rtlanal.c (computed_jump_p): Exit loop once we find label
20899         reference is used.
20901         * i386.c (ix86_pad_returns): Exit loop after setting replace.
20903         * cfgloopmanip.c (remove_path): Exit loop after setting
20904         irred_invalidated.
20906         * gensupport.c (subst_dup): Avoid loop if code is not
20907         MATCH_DUP nor MATCH_OP_DUP.
20909 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
20911         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
20913 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20915         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
20916         true for SP_REGNUM if mode == ptr_mode.
20917         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
20918         with value R0_REGNUM + 31.
20920 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20922         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
20923         pad pointer-typed argument downward.
20925 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20927         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
20928         and __ILP32__ when the ILP32 model is in use.
20930 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20932         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
20933         (aarch64_load_symref_appropriately): In the case of
20934         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
20935         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
20936         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
20937         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
20938         if 'mode' doesn't equal to 'ptr_mode'.
20939         (aarch64_output_mi_thunk): Add an assertion on the alignment of
20940         'vcall_offset'; change to call aarch64_emit_move differently depending
20941         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
20942         to calculate the upper bound of 'vcall_offset'.
20943         (aarch64_cannot_force_const_mem): Change to also return true if
20944         mode != ptr_mode.
20945         (aarch64_legitimize_reload_address): In the case of large
20946         displacements, add new local variable 'xmode' and an assertion
20947         based on it; change to use 'xmode' to generate the new rtx and
20948         reload.
20949         (aarch64_asm_trampoline_template): Change to generate the template
20950         differently depending on TARGET_ILP32 or not; change to use
20951         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
20952         (aarch64_trampoline_size): Removed.
20953         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
20954         and replace immediate literals with it.  Change to use 'ptr_mode'
20955         instead of 'DImode' and call convert_memory_address if the mode
20956         of 'fnaddr' doesn't equal to 'ptr_mode'.
20957         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
20958         to output symbol.
20959         (aarch64_elf_asm_destructor): Likewise.
20960         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
20961         on TARGET_ILP32 instead of aarch64_trampoline_size.
20962         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
20963         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
20964         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
20965         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
20966         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
20967         (storewb_pair<GPI:mode>_<P:mode>): ... this.
20968         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
20969         depending on the value of 'mode'.
20970         (add_losym_<mode>): New.
20971         (ldr_got_small_<mode>): New, based on ldr_got_small.
20972         (ldr_got_small): Remove.
20973         (ldr_got_small_sidi): New.
20974         * config/aarch64/iterators.md (P): New.
20975         (PTR): Change to 'ptr_mode' in the condition.
20977 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
20979         * config.gcc (aarch64*-*-*): Support --with-abi.
20980         (aarch64*-*-elf): Support --with-multilib-list.
20981         (aarch64*-*-linux*): Likewise.
20982         (supported_defaults): Add abi to aarch64*-*-*.
20983         * configure.ac: Mention AArch64 for --with-multilib-list.
20984         * configure: Re-generated.
20985         * config/aarch64/biarchilp32.h: New file.
20986         * config/aarch64/biarchlp64.h: New file.
20987         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
20988         (ABI_SPEC): Ditto.
20989         (MULTILIB_DEFAULTS): Ditto.
20990         (DRIVER_SELF_SPECS): Ditto.
20991         (ASM_SPEC): Update to also substitute -mabi.
20992         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
20993         file whose name depends on -mabi= and -mbig-endian.
20994         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
20995         TARGET_ILP32.
20996         (POINTER_SIZE): New define.
20997         (POINTERS_EXTEND_UNSIGNED): Ditto.
20998         (enum aarch64_abi_type): New enumeration tag.
20999         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
21000         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
21001         (TARGET_ILP32): New define.
21002         * config/aarch64/aarch64.opt (mabi): New.
21003         (aarch64_abi): New.
21004         (ilp32, lp64): New values for -mabi.
21005         * config/aarch64/t-aarch64 (comma): New define.
21006         (MULTILIB_OPTIONS): Ditto.
21007         (MULTILIB_DIRNAMES): Ditto.
21008         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
21009         * doc/invoke.texi: Document -mabi for AArch64.
21011 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
21013         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
21015 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
21016             Anton Blanchard  <anton@au1.ibm.com>
21018         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
21019         endianness when selecting field to splat.
21021 2013-07-22  Eric Christopher  <echristo@gmail.com>
21023         * dwarf2out.c (die_odr_checksum): New function to use
21024         CHECKSUM_ macros and ULEB128 for DIE tag.
21025         (generate_type_signature): Use.
21027 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
21029         * config.gcc (sparc*-*-*): Accept leon3 processor.
21030         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
21031         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
21032         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
21033         * config/sparc/sparc.opt (enum processor_type): Add leon3.
21034         (mfix-ut699): Adjust comment.
21035         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
21036         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
21037         (CPP_CPU_SPEC): Likewise.
21038         (ASM_CPU_SPEC): Likewise.
21039         * config/sparc/sparc.c (leon3_cost): New constant.
21040         (sparc_option_override): Add leon3 support.
21041         (mem_ref): New function.
21042         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
21043         (sparc_do_work_around_errata): Look into the instruction in the delay
21044         slot and adjust accordingly.  Add fix for the data cache nullify issues
21045         of the UT699.  Change insertion position for the NOP.
21046         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
21047         (leon3_load): New reservation.
21048         (leon_store): Bump latency to 2.
21049         (grfpu): New automaton.
21050         (grfpu_alu): New unit.
21051         (grfpu_ds): Likewise.
21052         (leon_fp_alu): Adjust.
21053         (leon_fp_mult): Delete.
21054         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
21055         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
21056         * config/sparc/sparc.md (cpu): Add leon3.
21057         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
21058         (swapsi): Likewise.
21059         (atomic_test_and_set): Likewise.
21060         (ldstub): Likewise.
21062 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
21064         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
21065         default for R5900 targets.
21066         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
21067         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
21068         * config/mips/mips.c (mips_option_override): Report an error for
21069         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
21070         for -march=r5900 -mhard-float.
21072 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
21074         * df-problems.c (can_move_insns_across): Exit loop once we
21075         find a non-fixed, non-global register.
21077         * ipa-pure-const.c (propagate_nothrow): Exit loop after
21078         setting can_throw.
21080         * omega.c (omega_eliminate_red): Break after setting red_found.
21081         (omega_problem_has_red_equations): Similarly after setting found.
21082         (omega_query_variable): Similarly after setting coupled.
21084 2013-07-22  Marek Polacek  <polacek@redhat.com>
21086         * gimplify.c: Don't include gimple.h twice.
21088 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21090         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
21091         instead of TARGET_THUMB1.
21092         (Pz): New constraint.
21093         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
21094         encodings.
21095         (compare_negsi_si): Likewise.
21096         (compare_addsi2_op0): Likewise.
21097         (compare_addsi2_op1): Likewise.
21098         (addsi3_carryin_<optab>): Likewise.
21099         (addsi3_carryin_alt2_<optab>): Likewise.
21100         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
21101         for arm_restrict_it.
21102         (subsi3_carryin): Likewise.
21103         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
21104         (minmax_arithsi): Disable for arm_restrict_it.
21105         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
21106         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
21107         (satsi_<SAT:code>_shift): Likewise.
21108         (arm_shiftsi3): Add alternative for 16-bit encoding.
21109         (arm32_movhf): Disable for arm_restrict_it.
21110         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
21111         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
21113 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
21115         * config/arm/arm.md (attribute "insn"): Delete.
21116         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
21117         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
21118         (not_shiftsi): Update for attribute change.
21119         (not_shiftsi_compare0): Likewise.
21120         (not_shiftsi_compare0_scratch): Likewise.
21121         (arm_one_cmplsi2): Likewise.
21122         (thumb1_one_cmplsi2): Likewise.
21123         (notsi_compare0): Likewise.
21124         (notsi_compare0_scratch): Likewise.
21125         (thumb1_movdi_insn): Likewise.
21126         (arm_movsi_insn): Likewise.
21127         (movhi_insn_arch4): Likewise.
21128         (movhi_bytes): Likewise.
21129         (arm_movqi_insn): Likewise.
21130         (thumb1_movqi_insn): Likewise.
21131         (arm32_movhf): Likewise.
21132         (thumb1_movhf): Likewise.
21133         (arm_movsf_soft_insn): Likewise.
21134         (thumb1_movsf_insn): Likewise.
21135         (thumb_movdf_insn): Likewise.
21136         (movsicc_insn): Likewise.
21137         (movsfcc_soft_insn): Likewise.
21138         (and_scc): Likewise.
21139         (cond_move): Likewise.
21140         (if_move_not): Likewise.
21141         (if_not_move): Likewise.
21142         (if_shift_move): Likewise.
21143         (if_move_shift): Likewise.
21144         (if_shift_shift): Likewise.
21145         (if_not_arith): Likewise.
21146         (if_arith_not): Likewise.
21147         (cond_move_not): Likewise.
21148         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
21149         (neon_mov<mode>): Likewise.
21150         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
21151         (thumb2_movsi_vfp): Likewise.
21152         (movsf_vfp): Likewise.
21153         (thumb2_movsf_vfp): Likewise.
21154         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21155         change.
21156         (cortexa7_older_only): Likewise.
21157         (cortexa7_younger): Likewise.
21158         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
21159         (1020alu_shift_op): Likewise.
21160         (1020alu_shift_reg_op): Likewise.
21161         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
21162         (alu_shift_op): Likewise.
21163         (alu_shift_reg_op): Likewise.
21164         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
21165         (11_alu_shift_op): Likewise.
21166         (11_alu_shift_reg_op): Likewise.
21167         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
21168         (9_alu_shift_reg_op): Likewise.
21169         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21170         change.
21171         (cortex_a15_alu_shift): Likewise.
21172         (cortex_a15_alu_shift_reg): Likewise.
21173         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
21174         (cortex_a5_alu_shift): Likewise.
21175         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
21176         change.
21177         (cortex_a53_alu_shift): Likewise.
21178         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21179         change.
21180         (cortex_a7_alu_reg): Likewise.
21181         (cortex_a7_alu_shift): Likewise.
21182         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21183         (cortex_a8_alu_shift): Likewise.
21184         (cortex_a8_alu_shift_reg): Likewise.
21185         (cortex_a8_mov): Likewise.
21186         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
21187         (cortex_a9_dp_shift): Likewise.
21188         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
21189         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
21190         (cortex_r4_mov): Likewise.
21191         (cortex_r4_alu_shift): Likewise.
21192         (cortex_r4_alu_shift_reg): Likewise.
21193         * config/arm/fa526.md (526_alu_op): Update for attribute change.
21194         (526_alu_shift_op): Likewise.
21195         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
21196         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
21197         (626te_alu_shift_op): Likewise.
21198         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
21199         (726te_alu_op): Likewise.
21200         (726te_alu_shift_op): Likewise.
21201         (726te_alu_shift_reg_op): Likewise.
21202         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
21203         (mp626_alu_shift_op): Likewise.
21204         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
21205         (pj4_alu_e1_conds): Likewise.
21206         (pj4_alu): Likewise.
21207         (pj4_alu_conds): Likewise.
21208         (pj4_shift): Likewise.
21209         (pj4_shift_conds): Likewise.
21210         (pj4_alu_shift): Likewise.
21211         (pj4_alu_shift_conds): Likewise.
21213 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21215         * config/arm/predicates.md (shiftable_operator_strict_it):
21216         New predicate.
21217         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
21218         Disable cond_exec version for arm_restrict_it.
21219         (thumb2_smaxsi3): Convert to generate cond_exec.
21220         (thumb2_sminsi3): Likewise.
21221         (thumb32_umaxsi3): Likewise.
21222         (thumb2_uminsi3): Likewise.
21223         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
21224         (thumb2_neg_abssi2): Likewise.
21225         (thumb2_mov_scc): Add alternative for 16-bit encoding.
21226         (thumb2_movsicc_insn): Adjust alternatives.
21227         (thumb2_mov_negscc): Disable for arm_restrict_it.
21228         (thumb2_mov_negscc_strict_it): New pattern.
21229         (thumb2_mov_notscc_strict_it): New pattern.
21230         (thumb2_mov_notscc): Disable for arm_restrict_it.
21231         (thumb2_ior_scc): Likewise.
21232         (thumb2_ior_scc_strict_it): New pattern.
21233         (thumb2_cond_move): Adjust for arm_restrict_it.
21234         (thumb2_cond_arith): Disable for arm_restrict_it.
21235         (thumb2_cond_arith_strict_it): New pattern.
21236         (thumb2_cond_sub): Adjust for arm_restrict_it.
21237         (thumb2_movcond): Likewise.
21238         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
21239         (thumb2_zero_extendhisi2_v6): Likewise.
21240         (thumb2_zero_extendqisi2_v6): Likewise.
21241         (orsi_notsi_si): Likewise.
21242         (orsi_not_shiftsi_si): Likewise.
21244 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
21246         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
21247         instruction sequence is 1 byte shorter.
21249 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
21251         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
21252         it is not needed after split.
21254 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
21256         PR target/51784
21257         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
21258         second label for nonlocal goto receivers. Don't output pic base labels
21259         unless we're producing PIC; mark that action unreachable().
21260         (ix86_save_reg): If the function contains a nonlocal label, save the
21261         PIC base reg.
21262         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
21263         * config/darwin.c (emitted_pic_label_num): New GTY.
21264         (update_pic_label_number_if_needed): New.
21265         (machopic_output_function_base_name): Adjust for nonlocal receiver
21266         case.
21267         (machopic_should_output_picbase_label): New.
21268         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
21269         (nonlocal_goto_receiver): New insn and split.
21271 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
21273         * config/aarch64/aarch64-builtins.c
21274         (aarch64_fold_builtin): Fold abs in all modes.
21275         * config/aarch64/aarch64-simd-builtins.def
21276         (abs): Enable for all modes.
21277         * config/aarch64/arm_neon.h
21278         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
21279         (vabs_f64): Add missing intrinsic.
21281 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
21283         * config/aarch64/arm_neon.h (vabs_s64): New function
21285 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
21287         PR target/57516
21288         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
21289         * config/avr/avr.md (adjust_len): Add `round'.
21290         * config/avr/avr-protos.h (avr_out_round): New prototype.
21291         (avr_out_plus): Add `out_label' argument.
21292         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
21293         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
21294         Handle the case where `insn' is just a pattern.
21295         (avr_out_bitop): Handle the case where `insn' is just a pattern.
21296         (avr_out_round): New function.
21297         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
21299 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
21301         * config/microblaze/microblaze.c (microblaze_expand_prologue):
21302         Add check for flag_stack_usage to handle -fstack-usage support
21304 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
21306         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
21307         interaction for new Power8 flags and VSX.
21309 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
21311         PR middle-end/57698
21312         * tree-inline.c (expand_call_inline): Emit errors during
21313         early_inlining only if optimization is not turned on.
21315 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21317         * passes.def: New.
21319         * passes.c (init_optimization_passes): Move the construction of
21320         the pass hierarchy into a new passes.def file.
21322         * Makefile.in (passes.o): Add dependency on passes.def.
21324 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21326         * passes.c (init_optimization_passes): Introduce macros for
21327         constructing the tree of passes (INSERT_PASSES_AFTER,
21328         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
21329         TERMINATE_PASS_LIST).
21331 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
21332             Wei Mi  <wmi@google.com>
21334         PR rtl-optimization/57878
21335         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
21336         top.
21337         (reload_pseudo_compare_func): Check nregs first for reload
21338         pseudos.
21340 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21342         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
21344 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
21346         * read-rtl.c (validate_const_int): Once an invalid character is
21347         seen, quit the loop.
21349         * gengtype.c (write_roots): Similarly once we find the "deletable"
21350         or "if_marked" option.
21352 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
21354         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
21355         "xtab" and "sat".  Move value "clz" from here to ...
21356         (attriubte "type"): ... here.
21357         (satsi_<SAT:code>): Delete "insn" attribute.
21358         (satsi_<SAT:code>_shift): Likewise.
21359         (arm_zero_extendqisi2addsi): Likewise.
21360         (arm_extendqisi2addsi): Likewise.
21361         (clzsi2): Update for attribute changes.
21362         (rbitsi2): Likewise.
21363         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
21364         attribute.
21365         (arm_usatsihi): Likewise.
21366         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
21368 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
21370         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
21371         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
21372         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
21373         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
21374         in alphabetical order.
21375         (attribute "core_cycles"): Update for attribute changes.
21376         (arm_addsi3): Likewise.
21377         (addsi3_compare0): Likewise.
21378         (addsi3_compare0_scratch): Likewise.
21379         (addsi3_compare_op1): Likewise.
21380         (addsi3_compare_op2): Likewise.
21381         (compare_addsi2_op0): Likewise.
21382         (compare_addsi2_op1): Likewise.
21383         (addsi3_carryin_shift_<optab>): Likewise.
21384         (subsi3_carryin_shift): Likewise.
21385         (rsbsi3_carryin_shift): Likewise.
21386         (arm_subsi3_insn): Likewise.
21387         (subsi3_compare0): Likewise.
21388         (subsi3_compare): Likewise.
21389         (arm_andsi3_insn): Likewise.
21390         (thumb1_andsi3_insn): Likewise.
21391         (andsi3_compare0): Likewise.
21392         (andsi3_compare0_scratch): Likewise.
21393         (zeroextractsi_compare0_scratch
21394         (andsi_not_shiftsi_si): Likewise.
21395         (iorsi3_insn): Likewise.
21396         (iorsi3_compare0): Likewise.
21397         (iorsi3_compare0_scratch): Likewise.
21398         (arm_xorsi3): Likewise.
21399         (thumb1_xorsi3_insn): Likewise.
21400         (xorsi3_compare0): Likewise.
21401         (xorsi3_compare0_scratch): Likewise.
21402         (satsi_<SAT:code>_shift): Likewise.
21403         (rrx): Likewise.
21404         (arm_shiftsi3): Likewise.
21405         (shiftsi3_compare0): Likewise.
21406         (not_shiftsi): Likewise.
21407         (not_shiftsi_compare0): Likewise.
21408         (not_shiftsi_compare0_scratch): Likewise.
21409         (arm_one_cmplsi2): Likewise.
21410         (thumb_one_complsi2): Likewise.
21411         (notsi_compare0): Likewise.
21412         (notsi_compare0_scratch): Likewise.
21413         (thumb1_zero_extendhisi2): Likewise.
21414         (arm_zero_extendhisi2): Likewise.
21415         (arm_zero_extendhisi2_v6): Likewise.
21416         (arm_zero_extendhisi2addsi): Likewise.
21417         (thumb1_zero_extendqisi2): Likewise.
21418         (thumb1_zero_extendqisi2_v6): Likewise.
21419         (arm_zero_extendqisi2): Likewise.
21420         (arm_zero_extendqisi2_v6): Likewise.
21421         (arm_zero_extendqisi2addsi): Likewise.
21422         (thumb1_extendhisi2): Likewise.
21423         (arm_extendhisi2): Likewise.
21424         (arm_extendhisi2_v6): Likewise.
21425         (arm_extendqisi): Likewise.
21426         (arm_extendqisi_v6): Likewise.
21427         (arm_extendqisi2addsi): Likewise.
21428         (thumb1_extendqisi2): Likewise.
21429         (thumb1_movdi_insn): Likewise.
21430         (arm_movsi_insn): Likewise.
21431         (movsi_compare0): Likewise.
21432         (movhi_insn_arch4): Likewise.
21433         (movhi_bytes): Likewise.
21434         (arm_movqi_insn): Likewise.
21435         (thumb1_movqi_insn): Likewise.
21436         (arm32_movhf): Likewise.
21437         (thumb1_movhf): Likewise.
21438         (arm_movsf_soft_insn): Likewise.
21439         (thumb1_movsf_insn): Likewise.
21440         (movdf_soft_insn): Likewise.
21441         (thumb_movdf_insn): Likewise.
21442         (arm_cmpsi_insn): Likewise.
21443         (cmpsi_shiftsi): Likewise.
21444         (cmpsi_shiftsi_swp): Likewise.
21445         (arm_cmpsi_negshiftsi_si): Likewise.
21446         (movsicc_insn): Likewise.
21447         (movsfcc_soft_insn): Likewise.
21448         (arith_shiftsi): Likewise.
21449         (arith_shiftsi_compare0
21450         (arith_shiftsi_compare0_scratch
21451         (sub_shiftsi): Likewise.
21452         (sub_shiftsi_compare0
21453         (sub_shiftsi_compare0_scratch
21454         (and_scc): Likewise.
21455         (cond_move): Likewise.
21456         (if_plus_move): Likewise.
21457         (if_move_plus): Likewise.
21458         (if_move_not): Likewise.
21459         (if_not_move): Likewise.
21460         (if_shift_move): Likewise.
21461         (if_move_shift): Likewise.
21462         (if_shift_shift): Likewise.
21463         (if_not_arith): Likewise.
21464         (if_arith_not): Likewise.
21465         (cond_move_not): Likewise.
21466         (thumb1_ashlsi3): Set type attribute.
21467         (thumb1_ashrsi3): Likewise.
21468         (thumb1_lshrsi3): Likewise.
21469         (thumb1_rotrsi3): Likewise.
21470         (shiftsi3_compare0_scratch): Likewise.
21471         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
21472         (neon_mov<mode>): Likewise.
21473         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
21474         attribute changes.
21475         (thumb2_movsi_insn): Likewise.
21476         (thumb2_cmpsi_neg_shiftsi): Likewise.
21477         (thumb2_extendqisi_v6): Likewise.
21478         (thumb2_zero_extendhisi2_v6): Likewise.
21479         (thumb2_zero_extendqisi2_v6): Likewise.
21480         (thumb2_shiftsi3_short): Likewise.
21481         (thumb2_addsi3_compare0_scratch): Likewise.
21482         (orsi_not_shiftsi_si): Likewise.
21483         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
21484         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
21485         changes.
21486         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
21487         (1020alu_shift_op): Likewise.
21488         (1020alu_shift_reg_op): Likewise.
21489         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
21490         (alu_shift_op): Likewise.
21491         (alu_shift_reg_op): Likewise.
21492         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
21493         (11_alu_shift_op): Likewise.
21494         (11_alu_shift_reg_op): Likewise.
21495         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
21496         (9_alu_shift_reg_op): Likewise.
21497         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
21498         changes.
21499         (cortex_a15_alu_shift): Likewise.
21500         (cortex_a15_alu_shift_reg): Likewise.
21501         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
21502         changes.
21503         (cortex_a5_alu_shift): Likewise.
21504         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
21505         changes.
21506         (cortex_a53_alu_shift): Likewise.
21507         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
21508         changes.
21509         (cortex_a7_alu_reg): Likewise.
21510         (cortex_a7_alu_shift): Likewise.
21511         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
21512         changes.
21513         (cortex_a8_alu_shift): Likewise.
21514         (cortex_a8_alu_shift_reg): Likewise.
21515         (cortex_a8_mov): Likewise.
21516         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
21517         (cortex_a9_dp_shift): Likewise.
21518         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
21519         changes.
21520         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
21521         changes.
21522         (cortex_r4_mov): Likewise.
21523         (cortex_r4_alu_shift): Likewise.
21524         (cortex_r4_alu_shift_reg): Likewise.
21525         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
21526         (526_alu_shift_op): Likewise.
21527         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
21528         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
21529         (626te_alu_shift_op): Likewise.
21530         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
21531         (726te_alu_op): Likewise.
21532         (726te_alu_shift_op): Likewise.
21533         (726te_alu_shift_reg_op): Likewise.
21534         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
21535         (mp626_alu_shift_op): Likewise.
21536         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
21537         (pj4_alu_e1_conds): Likewise.
21538         (pj4_alu): Likewise.
21539         (pj4_alu_conds): Likewise.
21540         (pj4_shift): Likewise.
21541         (pj4_shift_conds): Likewise.
21542         (pj4_alu_shift): Likewise.
21543         (pj4_alu_shift_conds): Likewise.
21544         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
21545         changes.
21546         (cortexa7_older_only): Likewise.
21547         (cortexa7_younger): Likewise.
21549 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
21551         * ipa-pure-const.c (generate_summary): Rename to...
21552         (pure_const_generate_summary): ... this.
21554 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
21556         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
21558 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
21560         PR target/57909
21561         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
21562         usage in HI mode.
21564 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21566         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
21567         enabled without -march=zEC12.
21568         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
21569         flags to be set.
21571 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
21573         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
21574         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
21575         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
21576         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
21577         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
21578         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
21579         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
21580         ISA_HAS_FP4.
21581         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
21582         and ISA_HAS_NMADD3_NMSUB3.
21583         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
21584         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
21585         (nmsub4<mode>, nmsub3<mode>): Likewise.
21586         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
21588 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
21590         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
21591         TARGET_MIPS5400 checking.
21593 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
21594             Peter Bergner  <bergner@vnet.ibm.com>
21596         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
21597         registers in the comment.
21598         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
21599         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
21600         rather than FIRST_PSEUDO_REGISTERS.
21602 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
21604         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
21605         enable extra ISA flags with TARGET_HTM.
21607 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
21609         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
21610         Fix comment typos.
21612 2013-07-15  Cong Hou  <congh@google.com>
21614         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
21615         in compare function for sorting.
21617 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
21619         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
21620         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
21621         * config/rs6000/rs6000.opt: Add -mhtm option.
21622         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
21623         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
21624         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
21625         __HTM__ if the HTM instructions are available.
21626         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
21627         htm_spr_reg_operand): New define_predicates.
21628         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
21629         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
21630         Include htm.md.
21631         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
21632         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
21633         HTM builtin functions.
21634         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
21635         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
21636         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
21637         (rs6000_builtin_mask_calculate): Likewise.
21638         (rs6000_option_override_internal): Likewise.
21639         (bdesc_htm): Add new HTM builtin support.
21640         (htm_spr_num): New function.
21641         (htm_spr_regno): Likewise.
21642         (rs6000_htm_spr_icode): Likewise.
21643         (htm_expand_builtin): Likewise.
21644         (htm_init_builtins): Likewise.
21645         (rs6000_expand_builtin): Add support for HTM builtin functions.
21646         (rs6000_init_builtins): Likewise.
21647         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
21648         option.
21649         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
21650         (TARGET_HTM, MASK_HTM): Define macros.
21651         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
21652         (FIXED_REGISTERS): Likewise.
21653         (CALL_USED_REGISTERS): Likewise.
21654         (CALL_REALLY_USED_REGISTERS): Likewise.
21655         (REG_ALLOC_ORDER): Likewise.
21656         (enum reg_class): Likewise.
21657         (REG_CLASS_NAMES): Likewise.
21658         (REG_CLASS_CONTENTS): Likewise.
21659         (REGISTER_NAMES): Likewise.
21660         (ADDITIONAL_REGISTER_NAMES): Likewise.
21661         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
21662         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
21663         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
21664         * config/rs6000/htm.md: New file.
21665         * config/rs6000/htmintrin.h: New file.
21666         * config/rs6000/htmxlintrin.h: New file.
21668 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
21670         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
21671         Define SYMBOL_TINY_GOT, update comment.
21672         * config/aarch64/aarch64.c
21673         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
21674         (aarch64_expand_mov_immediate): Likewise.
21675         (aarch64_print_operand): Likewise.
21676         (aarch64_classify_symbol): Likewise.
21677         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
21678         (ldr_got_tiny): Define.
21680 2013-07-13  Tobias Grosser  <tobias@grosser.es>
21682         PR tree-optimization/54094
21683         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
21684           scheduling dimension for the parallelism check from the polyhedral
21685           information in the AST.
21686         * graphite-dependences.c (carries_deps): Do not assume the schedule is
21687           in 2D + 1 form.
21689 2013-07-13  Jason Merrill  <jason@redhat.com>
21691         * print-tree.c (debug_vec_tree): Use debug_raw.
21692         (debug_raw (vec<tree, va_gc> &)): New.
21693         (debug_raw (vec<tree, va_gc> *)): New.
21694         * tree.h: Declare them.
21696 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
21698         * ifcvt.c (ifcvt_after_combine): New static variable.
21699         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
21700         for size.
21701         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
21702         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
21703         rest_of_handle_if_after_reload): Pass new argument for if_convert.
21705 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
21707         * config/mips/mips.c (mips_expand_call): Remove empty statement.
21709 2013-07-12  Michael Matz  <matz@suse.de>
21711         PR middle-end/55771
21712         * convert.c (convert_to_real): Reject non-float inner types.
21714 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
21716         * config/aarch64/aarch64-protos.h
21717         (aarch64_simd_immediate_valid_for_move): Remove.
21718         * config/aarch64/aarch64.c (simd_immediate_info): New member.
21719         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
21720         cases.
21721         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
21723 2013-07-11  Steve Ellcey  <sellcey@mips.com>
21725         * config/mips/mips.c (mips_conditional_register_usage): Do not
21726         use t[0-7] registers in MIPS16 mode when optimizing for size.
21728 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
21730         * config/i386/i386.c (dispatch_function_versions): Fix array
21731         indexing of function_version_info to match actual_versions.
21733 2013-07-11  Teresa Johnson  <tejohnson@google.com>
21735         * vec.h (struct va_gc): Move release out-of-line.
21736         (va_gc::release): Call ggc_free on released vec.
21738 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21740         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
21741         Require GOT register as additional operand in UNSPEC.
21742         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
21743         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
21744         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
21745         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
21746         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
21747         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
21748         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
21750 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
21752         PR target/57631
21753         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
21754         name seen by assembler/linker rather if available.
21756 2013-07-11  Andreas Schwab  <schwab@suse.de>
21758         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
21760 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
21762         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21764 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
21766         * doc/tm.texi.in: Move hook documentation to ....
21767         * target.def: ... here.
21769         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
21770         text on @hook line.
21771         * doc/tm.texi: Regenerate.
21773 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
21775         PR c++/57869
21776         * doc/invoke.texi: Document -Wconditionally-supported.
21778 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
21780         PR target/57844
21781         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
21782         of my_fp.
21784 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
21786         PR target/57506
21787         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
21788         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
21789         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
21790         Remove duplicate devices.
21791         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
21792         * config/avr/t-multilib: Regenerate.
21793         * config/avr/avr-tables.opt: Regenerate.
21794         * doc/avr-mmcu.texi: Regenerate.
21796 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
21798         PR target/56987
21799         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
21801 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
21803         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
21804         the cost of MULT when optimizing for size.
21806 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
21808         * config/cr16/cr16-protos.h: Don't include target.h.
21810 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
21812         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
21813         adjust register size for TDmode and TFmode for VSX registers.
21815 2013-07-08  Kai Tietz  <ktietz@redhat.com>
21817         PR target/56892
21818         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
21819         hook_bool_const_tree_true.
21821 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21823         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
21824         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
21825         * config/s390/s390.md: Define FPR*_REGNUM constants.
21826         Fix FPR2_REGNUM constant (18 -> 17).
21827         ("*trunc<BFP:mode><DFP_ALL:mode>2")
21828         ("*trunc<DFP_ALL:mode><BFP:mode>2")
21829         ("trunc<BFP:mode><DFP_ALL:mode>2")
21830         ("trunc<DFP_ALL:mode><BFP:mode>2")
21831         ("*extend<BFP:mode><DFP_ALL:mode>2")
21832         ("*extend<DFP_ALL:mode><BFP:mode>2")
21833         ("extend<BFP:mode><DFP_ALL:mode>2")
21834         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
21835         FPR4_REGNUM.
21837 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
21839         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
21841 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21843         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
21844         and cfun_fpr_bit_p to cfun_fpr_save_p.
21845         (s390_frame_area, s390_register_info, s390_frame_info)
21846         (s390_emit_prologue, s390_emit_epilogue)
21847         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
21848         register numbers.
21849         * config/s390/s390.h: Define *_REGNUM macros for floating point
21850         register numbers.
21852 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
21854         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
21856 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
21858         PR rtl-optimization/57786
21859         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
21860         and break out of the loop when it is set to false.
21862 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
21864         PR target/57819
21865         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
21866         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
21867         (const_int 63)) 0)).
21868         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
21869         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
21870         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
21872         PR rtl-optimization/57829
21873         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
21874         mask bits outside of mode are just sign-extension from mode to HWI.
21876 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
21878         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
21879         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
21880         adjust_address instead of change_address to keep info about alignment.
21881         (emit_strmov): Remove.
21882         (emit_memmov): New function.
21883         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
21884         (expand_movmem_epilogue): Likewise and return updated rtx for
21885         destination.
21886         (expand_constant_movmem_prologue): Likewise and return updated rtx for
21887         destination and source.
21888         (decide_alignment): Refactor, handle vector_loop.
21889         (ix86_expand_movmem): Likewise.
21890         (ix86_expand_setmem): Likewise.
21891         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
21893 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
21895         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
21896         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
21898 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
21900         * config/i386/sse.md (sse_movlhps): Change alternative 3
21901         of operand 2 to "m".
21903 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
21905         PR target/57807
21906         * config/i386/sse.md (iptr): New mode attribute.
21907         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
21908         (<sse>_vm<plusminus_insn><mode>3): Ditto.
21909         (<sse>_vmmul<mode>3): Ditto.
21910         (<sse>_vmdiv<mode>3): Ditto.
21911         (sse_vmrcpv4sf2): Ditto.
21912         (<sse>_vmsqrt<mode>2): Ditto.
21913         (sse_vmrsqrtv4sf2): Ditto.
21914         (<sse>_vm<code><mode>3): Ditto.
21915         (avx_vmcmp<mode>3): Ditto.
21916         (<sse>_vmmaskcmp<mode>3): Ditto.
21917         (<sse>_comi): Ditto.
21918         (<sse>_ucomi): Ditto.
21919         (*xop_vmfrcz_<mode>): Ditto.
21920         (*fmai_fmadd_<mode>): Ditto.
21921         (*fmai_fmsub_<mode>): Ditto.
21922         (*fmai_fnmadd_<mode>): Ditto.
21923         (*fmai_fnmsub_<mode>): Ditto.
21924         (*fma4i_vmfmadd_<mode>): Ditto.
21925         (*fma4i_vmfmsub_<mode>): Ditto.
21926         (*fma4i_vmfnmadd_<mode>): Ditto.
21927         (*fma4i_vmfnmsub_<mode>): Ditto.
21928         (*xop_vmfrcz_<mode>): Ditto.
21929         (sse_cvtps2pi): Ditto.
21930         (sse_cvttps2pi): Ditto.
21931         (sse_cvtss2si): Ditto.
21932         (sse_cvtss2si_2): Ditto.
21933         (sse_cvtss2siq_2): Ditto.
21934         (sse_cvttss2si): Ditto.
21935         (sse_cvttss2siq): Ditto.
21936         (sse_cvtsd2si): Ditto.
21937         (sse_cvtsd2si_2): Ditto.
21938         (sse_cvtsd2siq_2): Ditto.
21939         (sse_cvttsd2si): Ditto.
21940         (sse_cvttsd2siq): Ditto.
21941         (sse_cvtsd2ss): Ditto.
21942         (sse_cvtss2sd): Ditto.
21943         (avx2_pbroadcast<mode>): Ditto.
21944         (avx2_pbroadcast<mode>_1): Ditto.
21945         (*avx_vperm_broadcast_v4sf): Ditto.
21947         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
21948         (sse_movlhps): Ditto.
21949         (sse_storehps): Ditto.
21950         (sse_loadhps): Ditto.
21951         (sse_storelps): Ditto.
21952         (sse_loadlps): Ditto.
21953         (*vec_concatv4sf): Ditto.
21954         (*vec_interleave_highv2df): Ditto.
21955         (*vec_interleave_lowv2df): Ditto.
21956         (*vec_extractv2df_1_sse): Ditto.
21957         (*vec_extractv2df_0_sse): Ditto.
21958         (sse2_storelpd): Ditto.
21959         (sse2_loadlpd): Ditto.
21960         (sse2_movsd): Ditto.
21961         (*vec_concatv4si): Ditto.
21962         (vec_concatv2di): Ditto.
21964         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
21965         for Intel asm dialect.
21966         (mmx_punpcklwd): Ditto.
21967         (mmx_punpckldq): Ditto.
21969         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
21970         for intel assembler dialect.
21972 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
21974         PR target/29776
21975         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
21976         for BUILT_IN_C{LZ,LRSB}*.
21977         * tree.h (CASE_INT_FN): Add FN##IMAX case.
21978         * tree-vrp.c (extract_range_basic): Handle
21979         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
21980         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
21981         fall thru to code calling set_value*.
21982         * builtins.c (expand_builtin): Remove *IMAX cases.
21983         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
21984         if width is bigger than 2*HWI.
21986 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
21988         PR rtl-optimization/55342
21989         * lra-int.h (lra_subreg_reload_pseudos): New.
21990         * lra.c: Add undoing optional reloads to the block diagram.
21991         (lra_subreg_reload_pseudos): New.
21992         (lra_optional_reload_pseudos): Change comments.
21993         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
21994         lra_optional_reload_pseudos after undo transformations.
21995         * lra-assigns.c (pseudo_prefix_title): New.
21996         (lra_setup_reg_renumber): Use it.
21997         (spill_for): Ditto.  Check subreg reload pseudos too.
21998         (assign_by_spills): Consider subreg reload pseudos too.
21999         * lra-constraints.c (simplify_operand_subreg): Use
22000         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
22001         (curr_insn_transform): Recognize and do optional reloads.
22002         (undo_optional_reloads): New.
22003         (lra_undo_inheritance): Call undo_optional_reloads.
22005 2013-07-05  Thomas Quinot  <quinot@adacore.com>
22007         * tree-complex.c (expand_complex_operations_1): Fix typo.
22009 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
22011         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
22012         (tune_params): New member 'const vec_costs'.
22013         * config/aarch64/aarch64.c (generic_vector_cost): New.
22014         (generic_tunings): New member 'generic_vector_cost'.
22015         (aarch64_builtin_vectorization_cost): New.
22016         (aarch64_add_stmt_cost): New.
22017         (TARGET_VECTORIZE_ADD_STMT_COST): New.
22018         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
22020 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
22022         PR target/57777
22023         * config/i386/predicates.md (vsib_address_operand): Disallow
22024         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
22026 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
22028         PR middle-end/55030
22029         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
22030         expand_builtin_setjmp_receiver.
22031         (expand_label): Adjust, call expand_builtin_setjmp_receiver
22032         with NULL for the label parameter.
22033         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
22034         the frame-pointer.  Adjust comments.
22035         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
22036         only if LABEL is non-NULL.
22038 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
22040         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
22041         (ARM_ABI_AAPCS64): Ditto.
22042         (arm_abi): Ditto.
22043         (ARM_DEFAULT_ABI): Ditto.
22045 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
22047         * config/aarch64/aarch64-builtins.c
22048         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
22049         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
22050         (st1): Likewise.
22051         * config/aarch64/aarch64-simd.md
22052         (aarch64_ld1<VALL:mode>): New.
22053         (aarch64_st1<VALL:mode>): Likewise.
22054         * config/aarch64/arm_neon.h
22055         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
22057 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
22059         * config/i386/i386.c (gate_insert_vzeroupper): Check if
22060         target ISA is AVX.
22061         (ix86_option_override_internal):Turn on all -mavx target flags by
22062         default as they are dependent on AVX anyway.
22064 2013-07-02  Cary Coutant  <ccoutant@google.com>
22066         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
22067         deterministic hash.
22068         (loc_checksum_ordered): Likewise.
22069         (hash_loc_operands): Remove inline keyword.
22071 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
22073         PR tree-optimization/57741
22074         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
22075         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
22076         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
22077         Allow REAL_CST step_exprs if flag_associative_math.
22078         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
22080 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
22082         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
22084 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
22086         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
22088 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22090         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
22091         encoding.
22092         (iorsi3_insn): Likewise.
22093         (arm_xorsi3): Likewise.
22095 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
22097         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
22098         to ...
22099         (attribute "type"): ... here, and prefix with "wmmx_".
22100         (attribute "core_cycles"): Update for attribute changes.
22101         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
22102         (tbcstv4hi): Likewise.
22103         (tbcstv2si): Likewise.
22104         (iwmmxt_iordi3): Likewise.
22105         (iwmmxt_xordi3): Likewise.
22106         (iwmmxt_anddi3): Likewise.
22107         (iwmmxt_nanddi3): Likewise.
22108         (iwmmxt_arm_movdi): Likewise.
22109         (iwmmxt_movsi_insn): Likewise.
22110         (mov<mode>_internal): Likewise.
22111         (and<mode>3_iwmmxt): Likewise.
22112         (ior<mode>3_iwmmxt): Likewise.
22113         (xor<mode>3_iwmmxt): Likewise.
22114         (add<mode>3_iwmmxt): Likewise.
22115         (ssaddv8qi3): Likewise.
22116         (ssaddv4hi3): Likewise.
22117         (ssaddv2si3): Likewise.
22118         (usaddv8qi3): Likewise.
22119         (usaddv4hi3): Likewise.
22120         (usaddv2si3): Likewise.
22121         (sub<mode>3_iwmmxt): Likewise.
22122         (sssubv8qi3): Likewise.
22123         (sssubv4hi3): Likewise.
22124         (sssubv2si3): Likewise.
22125         (ussubv8qi3): Likewise.
22126         (ussubv4hi3): Likewise.
22127         (ussubv2si3): Likewise.
22128         (mulv4hi3_iwmmxt): Likewise.
22129         (smulv4hi3_highpart): Likewise.
22130         (umulv4hi3_highpart): Likewise.
22131         (iwmmxt_wmacs): Likewise.
22132         (iwmmxt_wmacsz): Likewise.
22133         (iwmmxt_wmacu): Likewise.
22134         (iwmmxt_wmacuz): Likewise.
22135         (iwmmxt_clrdi): Likewise.
22136         (iwmmxt_clrv8qi): Likewise.
22137         (iwmmxt_clr4hi): Likewise.
22138         (iwmmxt_clr2si): Likewise.
22139         (iwmmxt_uavgrndv8qi3): Likewise.
22140         (iwmmxt_uavgrndv4hi3): Likewise.
22141         (iwmmxt_uavgv8qi3): Likewise.
22142         (iwmmxt_uavgv4hi3): Likewise.
22143         (iwmmxt_tinsrb): Likewise.
22144         (iwmmxt_tinsrh): Likewise.
22145         (iwmmxt_tinsrw): Likewise.
22146         (iwmmxt_textrmub): Likewise.
22147         (iwmmxt_textrmsb): Likewise.
22148         (iwmmxt_textrmuh): Likewise.
22149         (iwmmxt_textrmsh): Likewise.
22150         (iwmmxt_textrmw): Likewise.
22151         (iwmxxt_wshufh): Likewise.
22152         (eqv8qi3): Likewise.
22153         (eqv4hi3): Likewise.
22154         (eqv2si3): Likewise.
22155         (gtuv8qi3): Likewise.
22156         (gtuv4hi3): Likewise.
22157         (gtuv2si3): Likewise.
22158         (gtv8qi3): Likewise.
22159         (gtv4hi3): Likewise.
22160         (gtv2si3): Likewise.
22161         (smax<mode>3_iwmmxt): Likewise.
22162         (umax<mode>3_iwmmxt): Likewise.
22163         (smin<mode>3_iwmmxt): Likewise.
22164         (umin<mode>3_iwmmxt): Likewise.
22165         (iwmmxt_wpackhss): Likewise.
22166         (iwmmxt_wpackwss): Likewise.
22167         (iwmmxt_wpackdss): Likewise.
22168         (iwmmxt_wpackhus): Likewise.
22169         (iwmmxt_wpackwus): Likewise.
22170         (iwmmxt_wpackdus): Likewise.
22171         (iwmmxt_wunpckihb): Likewise.
22172         (iwmmxt_wunpckihh): Likewise.
22173         (iwmmxt_wunpckihw): Likewise.
22174         (iwmmxt_wunpckilb): Likewise.
22175         (iwmmxt_wunpckilh): Likewise.
22176         (iwmmxt_wunpckilw): Likewise.
22177         (iwmmxt_wunpckehub): Likewise.
22178         (iwmmxt_wunpckehuh): Likewise.
22179         (iwmmxt_wunpckehuw): Likewise.
22180         (iwmmxt_wunpckehsb): Likewise.
22181         (iwmmxt_wunpckehsh): Likewise.
22182         (iwmmxt_wunpckehsw): Likewise.
22183         (iwmmxt_wunpckelub): Likewise.
22184         (iwmmxt_wunpckeluh): Likewise.
22185         (iwmmxt_wunpckeluw): Likewise.
22186         (iwmmxt_wunpckelsb): Likewise.
22187         (iwmmxt_wunpckelsh): Likewise.
22188         (iwmmxt_wunpckelsw): Likewise.
22189         (ror<mode>3): Likewise.
22190         (ashr<mode>3_iwmmxt): Likewise.
22191         (lshr<mode>3_iwmmxt): Likewise.
22192         (ashl<mode>3_iwmmxt): Likewise.
22193         (ror<mode>3_di): Likewise.
22194         (ashr<mode>3_di): Likewise.
22195         (lshr<mode>3_di): Likewise.
22196         (ashl<mode>3_di): Likewise.
22197         (iwmmxt_wmadds): Likewise.
22198         (iwmmxt_wmaddu): Likewise.
22199         (iwmmxt_tmia): Likewise.
22200         (iwmmxt_tmiaph): Likewise.
22201         (iwmmxt_tmiabb): Likewise.
22202         (iwmmxt_tmiatb): Likewise.
22203         (iwmmxt_tmiabt): Likewise.
22204         (iwmmxt_tmiatt): Likewise.
22205         (iwmmxt_tmovmskb): Likewise.
22206         (iwmmxt_tmovmskh): Likewise.
22207         (iwmmxt_tmovmskw): Likewise.
22208         (iwmmxt_waccb): Likewise.
22209         (iwmmxt_wacch): Likewise.
22210         (iwmmxt_waccw): Likewise.
22211         (iwmmxt_waligni): Likewise.
22212         (iwmmxt_walignr): Likewise.
22213         (iwmmxt_walignr0): Likewise.
22214         (iwmmxt_walignr1): Likewise.
22215         (iwmmxt_walignr2): Likewise.
22216         (iwmmxt_walignr3): Likewise.
22217         (iwmmxt_wsadb): Likewise.
22218         (iwmmxt_wsadh): Likewise.
22219         (iwmmxt_wsadbz): Likewise.
22220         (iwmmxt_wsadhz): Likewise.
22221         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
22222         (iwmmxt_wabsdiffb): Likewise.
22223         (iwmmxt_wabsdiffh): Likewise.
22224         (iwmmxt_wabsdiffw): Likewise.
22225         (iwmmxt_waddsubhx): Likewise
22226         (iwmmxt_wsubaddhx): Likewise.
22227         (addc<mode>3): Likewise.
22228         (iwmmxt_avg4): Likewise.
22229         (iwmmxt_avg4r): Likewise.
22230         (iwmmxt_wmaddsx): Likewise.
22231         (iwmmxt_wmaddux): Likewise.
22232         (iwmmxt_wmaddsn): Likewise.
22233         (iwmmxt_wmaddun): Likewise.
22234         (iwmmxt_wmulwsm): Likewise.
22235         (iwmmxt_wmulwum): Likewise.
22236         (iwmmxt_wmulsmr): Likewise.
22237         (iwmmxt_wmulumr): Likewise.
22238         (iwmmxt_wmulwsmr): Likewise.
22239         (iwmmxt_wmulwumr): Likewise.
22240         (iwmmxt_wmulwl): Likewise.
22241         (iwmmxt_wqmulm): Likewise.
22242         (iwmmxt_wqmulwm): Likewise.
22243         (iwmmxt_wqmulmr): Likewise.
22244         (iwmmxt_wqmulwmr): Likewise.
22245         (iwmmxt_waddbhusm): Likewise.
22246         (iwmmxt_waddbhusl): Likewise.
22247         (iwmmxt_wqmiabb): Likewise.
22248         (iwmmxt_wqmiabt): Likewise.
22249         (iwmmxt_wqmiatb): Likewise.
22250         (iwmmxt_wqmiatt): Likewise.
22251         (iwmmxt_wqmiabbn): Likewise.
22252         (iwmmxt_wqmiabtn): Likewise.
22253         (iwmmxt_wqmiatbn): Likewise.
22254         (iwmmxt_wqmiattn): Likewise.
22255         (iwmmxt_wmiabb): Likewise.
22256         (iwmmxt_wmiabt): Likewise.
22257         (iwmmxt_wmiatb): Likewise.
22258         (iwmmxt_wmiatt): Likewise.
22259         (iwmmxt_wmiabbn): Likewise.
22260         (iwmmxt_wmiabtn): Likewise.
22261         (iwmmxt_wmiatbn): Likewise.
22262         (iwmmxt_wmiattn): Likewise.
22263         (iwmmxt_wmiawbb): Likewise.
22264         (iwmmxt_wmiawbt): Likewise.
22265         (iwmmxt_wmiawtb): Likewise.
22266         (iwmmxt_wmiawtt): Likewise.
22267         (iwmmxt_wmiawbbn): Likewise.
22268         (iwmmxt_wmiawbtn): Likewise.
22269         (iwmmxt_wmiawtbn): Likewise.
22270         (iwmmxt_wmiawttn): Likewise.
22271         (iwmmxt_wmerge): Likewise.
22272         (iwmmxt_tandc<mode>3): Likewise.
22273         (iwmmxt_torc<mode>3): Likewise.
22274         (iwmmxt_torvsc<mode>3): Likewise.
22275         (iwmmxt_textrc<mode>3): Likewise.
22276         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
22277         (wmmxt_pack): Likewise.
22278         (wmmxt_mult_c1): Likewise.
22279         (wmmxt_mult_c2): Likewise.
22280         (wmmxt_alu_c1): Likewise.
22281         (wmmxt_alu_c2): Likewise.
22282         (wmmxt_alu_c3): Likewise.
22283         (wmmxt_transfer_c1): Likewise.
22284         (wmmxt_transfer_c2): Likewise.
22285         (wmmxt_transfer_c3): Likewise.
22286         (marvell_f_iwmmxt_wstr): Likewise.
22287         (marvell_f_iwmmxt_wldr): Likewise.
22289 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
22291         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
22293 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22295         Revert:
22296         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22297         * lra-constraints.c (need_for_split_p): Check call used hard regs
22298         living through calls.
22300         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
22301         call used regs for call insn.
22303 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
22305         PR target/57736
22306         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
22307         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
22309 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
22311         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
22313 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
22315         * lra-constraints.c (need_for_split_p): Check call used hard regs
22316         living through calls.
22318 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
22320         PR target/57744
22321         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
22322         to tie with any other modes.  Eliminate Altivec vector mode tests,
22323         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
22324         code, to return 0 if testing MODE2 for a condition, if we've
22325         already tested MODE1 for the same condition.
22327 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22329         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
22330         layout.
22332 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22334         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
22335         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
22337 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22339         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
22340         Define.
22341         (aarch64_symbolic_constant_p): Remove.
22342         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
22343         static.  Fix line length and white space.
22344         (aarch64_symbolic_constant_p): Remove.
22345         * config/aarch64/predicates.md (aarch64_valid_symref):
22346         Use aarch64_classify_symbol_expression.
22348 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22350         * config/arm/constraints.md (Ts): New constraint.
22351         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
22352         16-bit encodings.
22353         (compare_scc): Use "Ts" constraint for operand 0.
22354         (ior_scc_scc): Likewise.
22355         (and_scc_scc): Likewise.
22356         (and_scc_scc_nodom): Likewise.
22357         (ior_scc_scc_cmp): Likewise for operand 7.
22358         (and_scc_scc_cmp): Likewise.
22359         * config/arm/thumb2.md (thumb2_movsi_insn):
22360         Add alternatives for 16-bit encodings.
22361         (thumb2_movhi_insn): Likewise.
22362         (thumb2_movsicc_insn): Likewise.
22363         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
22364         (thumb2_negscc): Use "Ts" constraint.
22365         Move mvn instruction outside cond_exec block.
22366         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
22367         for 16-bit encodings.
22369 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22371         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
22372         encoding.
22373         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
22374         (mulsi3subsi): Likewise.
22375         (mulsidi3adddi): Likewise.
22376         (mulsidi3_v6): Likewise.
22377         (umulsidi3_v6): Likewise.
22378         (umulsidi3adddi_v6): Likewise.
22379         (smulsi3_highpart_v6): Likewise.
22380         (umulsi3_highpart_v6): Likewise.
22381         (mulhisi3tb): Likewise.
22382         (mulhisi3bt): Likewise.
22383         (mulhisi3tt): Likewise.
22384         (maddhisi4): Likewise.
22385         (maddhisi4tb): Likewise.
22386         (maddhisi4tt): Likewise.
22387         (maddhidi4): Likewise.
22388         (maddhidi4tb): Likewise.
22389         (maddhidi4tt): Likewise.
22390         (zeroextractsi_compare0_scratch): Likewise.
22391         (insv_zero): Likewise.
22392         (insv_t2): Likewise.
22393         (anddi_notzesidi_di): Likewise.
22394         (anddi_notsesidi_di): Likewise.
22395         (andsi_notsi_si): Likewise.
22396         (iordi_zesidi_di): Likewise.
22397         (xordi_zesidi_di): Likewise.
22398         (andsi_iorsi3_notsi): Likewise.
22399         (smax_0): Likewise.
22400         (smax_m1): Likewise.
22401         (smin_0): Likewise.
22402         (not_shiftsi): Likewise.
22403         (unaligned_loadsi): Likewise.
22404         (unaligned_loadhis): Likewise.
22405         (unaligned_loadhiu): Likewise.
22406         (unaligned_storesi): Likewise.
22407         (unaligned_storehi): Likewise.
22408         (extv_reg): Likewise.
22409         (extzv_t2): Likewise.
22410         (divsi3): Likewise.
22411         (udivsi3): Likewise.
22412         (arm_zero_extendhisi2addsi): Likewise.
22413         (arm_zero_extendqisi2addsi): Likewise.
22414         (compareqi_eq0): Likewise.
22415         (arm_extendhisi2_v6): Likewise.
22416         (arm_extendqisi2addsi): Likewise.
22417         (arm_movt): Likewise.
22418         (thumb2_ldrd): Likewise.
22419         (thumb2_ldrd_base): Likewise.
22420         (thumb2_ldrd_base_neg): Likewise.
22421         (thumb2_strd): Likewise.
22422         (thumb2_strd_base): Likewise.
22423         (thumb2_strd_base_neg): Likewise.
22424         (arm_negsi2): Add alternative for 16-bit encoding.
22425         (arm_one_cmplsi2): Likewise.
22427 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22429         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
22430         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
22431         (movdfcc): Likewise.
22432         * config/arm/vfp.md (*thumb2_movsf_vfp):
22433         Disable predication for arm_restrict_it.
22434         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
22435         (*thumb2_movdfcc_vfp): Likewise.
22436         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
22437         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
22438         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
22439         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
22440         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
22441         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
22442         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
22443         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
22444         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
22445         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
22446         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
22447         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
22448         Disable predication for arm_restrict_it.
22450 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
22452         * config/i386/bmiintrin.h (_bextr_u32): New.
22453         (_bextr_u64): Ditto.
22455 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
22457         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
22458         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
22459         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
22460         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
22461         * config/mips/n32-elf.h: ...this new file.
22463 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
22465         PR target/57224
22466         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
22467         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
22469 2013-06-27  Catherine Moore  <clm@codesourcery.com>
22471         * config/mips/mips-tables.opt: Regenerate.
22472         * config/mips/mips-cpus.def: Add m14ke and m14kec.
22473         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
22474         * doc/invoke.texi: Add -m14kc.
22476 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
22478         PR target/57623
22479         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
22480         constraints of operand 1 and 2.
22482         PR target/57623
22483         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
22484         to match RTL canonicalization.  Swap predicates and
22485         constraints of operand 1 and 2.
22487 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
22489         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
22490         Process OP_INOUT regs for splitting too.
22492 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
22494         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
22495         decl before the loop, initialize to NULL.
22496         (vectorizable_load): Initialize ptr_incr to NULL.
22498 2013-06-27  Martin Jambor  <mjambor@suse.cz>
22500         PR lto/57208
22501         * ipa-ref.h (ipa_maybe_record_reference): Declare.
22502         * ipa-ref.c (ipa_maybe_record_reference): New function.
22503         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
22504         * ipa-cp.c (create_specialized_node): Record potential references from
22505         aggvals.
22506         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
22508 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
22510         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
22511         parameter 'mode' of type 'enum machine_mode mode'; change to pass
22512         'mode' to force_reg.
22513         (aarch64_add_offset): Update calls to aarch64_force_temporary.
22514         (aarch64_expand_mov_immediate): Likewise.
22516 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
22518         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
22519         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
22521 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22523         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
22524         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
22525         (struct machine_function): Add tbegin_p.
22526         (s390_canonicalize_comparison): Fold CC mode compares to
22527         conditional jump if possible.
22528         (s390_emit_jump): Return the emitted jump.
22529         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
22530         Handle CCRAWmode compares.
22531         (s390_option_override): Default to -mhtm if available.
22532         (s390_reg_clobbered_rtx): Handle floating point regs as well.
22533         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
22534         FPRs instead of df_regs_ever_live_p.
22535         (s390_optimize_nonescaping_tx): New function.
22536         (s390_init_frame_layout): Extend clobbered_regs array to cover
22537         FPRs as well.
22538         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
22539         (s390_expand_tbegin): New function.
22540         (enum s390_builtin): New enum definition.
22541         (code_for_builtin): New array definition.
22542         (s390_init_builtins): New function.
22543         (s390_expand_builtin): New function.
22544         (TARGET_INIT_BUILTINS): Define.
22545         (TARGET_EXPAND_BUILTIN): Define.
22546         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
22547         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
22548         (s390_alc_comparison): Likewise.
22549         * config/s390/s390-modes.def: Add CCRAWmode.
22550         * config/s390/s390.h (processor_flags): Add PF_TX.
22551         (TARGET_CPU_HTM): Define macro.
22552         (TARGET_HTM): Define macro.
22553         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
22554         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
22555         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
22556         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
22557         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
22558         (TBEGIN_MASK, TBEGINC_MASK): New constants.
22559         ("*cc_to_int"): Move up.
22560         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
22561         constants other than 0.
22562         ("*ccraw_to_int"): New insn and splitter definition.
22563         ("tbegin", "tbegin_nofloat", "tbegin_retry")
22564         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
22565         ("tx_assist"): New expander.
22566         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
22567         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
22568         * config/s390/s390.opt: Add -mhtm option.
22569         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
22570         * config/s390/htmxlintrin.h: New file.
22571         * config/s390/htmintrin.h: New file.
22572         * config/s390/s390intrin.h: New file.
22573         * doc/extend.texi: Document htm builtins.
22574         * config.gcc: Add the new header files to extra_headers.
22576 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
22578         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
22579         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
22581 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
22582             Pat Haugen  <pthaugen@us.ibm.com>
22583             Peter Bergner  <bergner@vnet.ibm.com>
22585         * config/rs6000/power8.md: New.
22586         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
22587         setting for power8 entry.
22588         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
22589         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
22590         test for Power4/Power5 only.
22591         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
22592         support.
22593         (force_new_group): Adjust comment.
22594         * config/rs6000/rs6000.md: Include power8.md.
22596 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
22598         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
22599         * config/arm/arm-protos.h (arm_max_conditional_execute): New
22600         declaration.
22601         (tune_params): Update comment.
22602         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
22603         (arm_max_conditional_execute): New function.
22604         (thumb2_final_prescan_insn): Use max_insn_skipped and
22605         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
22607 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
22609         PR tree-optimization/57705
22610         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
22611         SSA_NAME step, provided that it is not defined inside the loop.
22612         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
22613         (get_initial_def_for_induction): Handle SSA_NAME IV step.
22615 2013-06-25  Martin Jambor  <mjambor@suse.cz>
22617         PR middle-end/57670
22618         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
22619         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
22620         calls in the dump.
22621         (ipa_note_param_call): Initialize member_ptr flag.
22622         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
22623         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
22624         (ipa_write_indirect_edge_info): Stream member_ptr flag.
22625         (ipa_read_indirect_edge_info): Likewise.
22627 2013-06-25  Richard Biener  <rguenther@suse.de>
22629         PR middle-end/56977
22630         * passes.c (init_optimization_passes): Move pass_fold_builtins
22631         and pass_dce earlier with -Og.
22633 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
22635         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
22636         <BIT_FIELD_REF>: Remove trailing TAB.
22637         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
22638         remove blank line.
22640 2013-06-24  Martin Jambor  <mjambor@suse.cz>
22642         PR tree-optimization/57358
22643         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
22644         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
22645         (ipa_analyze_params_uses): Generate pessimistic info when true.
22647 2013-06-24  Martin Jambor  <mjambor@suse.cz>
22649         PR tree-optimization/57539
22650         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
22651         global.inlined_to of the new node to it.  All callers changed.
22652         * ipa-inline-transform.c (clone_inlined_nodes): New variable
22653         inlining_into, pass it to cgraph_clone_node.
22654         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
22655         ipa_free_edge_args_substructures.
22656         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
22657         rdesc linked list.  Do not assert rdesc edges have inlined caller.
22658         Assert we have found an rdesc in the rdesc list.
22660 2013-06-24  Richard Biener  <rguenther@suse.de>
22662         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
22663         (pointer_set_lookup): Declare.
22664         (class pointer_map): New template class implementing a
22665         generic pointer to T map.
22666         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
22667         pointer_map<T>::contains, pointer_map<T>::insert,
22668         pointer_map<T>::traverse): New functions.
22669         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
22670         (pointer_set_lookup): New function.
22671         (pointer_set_contains): Use pointer_set_lookup.
22672         (pointer_set_insert): Likewise.
22673         (insert_aux): Remove.
22674         (struct pointer_map_t): Embed a pointer_set_t.
22675         (pointer_map_create): Adjust.
22676         (pointer_map_destroy): Likewise.
22677         (pointer_map_contains): Likewise.
22678         (pointer_map_insert): Likewise.
22679         (pointer_map_traverse): Likewise.
22680         * tree-streamer.h (struct streamer_tree_cache_d): Use a
22681         pointer_map<unsigned> instead of a pointer_map_t.
22682         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
22683         (streamer_tree_cache_lookup): Likewise.
22684         (streamer_tree_cache_create): Likewise.
22685         (streamer_tree_cache_delete): Likewise.
22686         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
22687         pointer_map<unsigned> instead of a pointer_map_t.
22688         (lto_init_tree_ref_encoder): Adjust.
22689         (lto_destroy_tree_ref_encoder): Likewise.
22690         * lto-section-out.c (lto_output_decl_index): Likewise.
22691         (lto_record_function_out_decl_state): Likewise.
22692         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
22694 2013-06-24  Richard Biener  <rguenther@suse.de>
22696         PR tree-optimization/57488
22697         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
22699 2013-06-24  Alan Modra  <amodra@gmail.com>
22701         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
22702         (gen_easy_altivec_constant): Likewise.
22703         * config/rs6000/predicates.md (easy_vector_constant_add_self,
22704         easy_vector_constant_msb): Likewise.
22706 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
22708         PR target/57688
22709         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
22710         add missing return true.
22712 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
22714         PR target/52483
22715         * config/sh/predicates.md (general_extend_operand): Invoke
22716         general_movsrc_operand for memory operands.
22717         (general_movsrc_operand): Allow reg+reg addressing, do not use
22718         general_operand for memory operands.
22720 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
22722         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
22723         when current target options does not apply.
22724         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
22725         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
22726         * config/i386/bmiintrin.h: Pass appropriate target
22727         attributes to header.
22728         * config/i386/mmintrin.h: Ditto.
22729         * config/i386/nmmintrin.h: Ditto.
22730         * config/i386/avx2intrin.h: Ditto.
22731         * config/i386/fxsrintrin.h: Ditto.
22732         * config/i386/tbmintrin.h: Ditto.
22733         * config/i386/xsaveintrin.h: Ditto.
22734         * config/i386/f16cintrin.h: Ditto.
22735         * config/i386/xtestintrin.h: Ditto.
22736         * config/i386/xsaveoptintrin.h: Ditto.
22737         * config/i386/bmi2intrin.h: Ditto.
22738         * config/i386/lzcntintrin.h: Ditto.
22739         * config/i386/smmintrin.h: Ditto.
22740         * config/i386/wmmintrin.h: Ditto.
22741         * config/i386/x86intrin.h: Remove all header include guards.
22742         * config/i386/prfchwintrin.h: Ditto.
22743         * config/i386/pmmintrin.h: Ditto.
22744         * config/i386/tmmintrin.h: Ditto.
22745         * config/i386/xmmintrin.h: Ditto.
22746         * config/i386/popcntintrin.h: Ditto.
22747         * config/i386/rdseedintrin.h: Ditto.
22748         * config/i386/ammintrin.h: Ditto.
22749         * config/i386/emmintrin.h: Ditto.
22750         * config/i386/immintrin.h: Remove all header include guards.
22751         * config/i386/fma4intrin.h: Ditto.
22752         * config/i386/lwpintrin.h: Ditto.
22753         * config/i386/xopintrin.h: Ditto.
22754         * config/i386/ia32intrin.h: Ditto.
22755         * config/i386/avxintrin.h: Ditto.
22756         * config/i386/rtmintrin.h: Ditto.
22757         * config/i386/fmaintrin.h: Ditto.
22758         * config/i386/mm3dnow.h: Ditto.
22760 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
22762         * common/config/i386/i386-common.c: Handle LZCNT.
22764 2013-06-22  Andi Kleen  <ak@linux.intel.com>
22766         * doc/extend.texi: Use __atomic_store_n instead of
22767         __atomic_store in HLE example.
22769 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
22771         * config/sh/sh.c: Remove <cstdlib> workaround.
22773 2013-06-21  Andi Kleen  <ak@linux.intel.com>
22775         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
22777 2013-06-21  Andi Kleen  <ak@linux.intel.com>
22779         * doc/extend.texi: Document that __atomic_clear and
22780           __atomic_test_and_set should only be used with bool.
22782 2013-06-20  Jan Hubicka  <jh@suse.cz>
22784         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
22785         types_same_for_odr.
22786         * tree.c (decls_same_for_odr): New function.
22787         (same_for_edr): New function.
22788         (types_same_for_odr): New function.
22789         (get_binfo_at_offset): Use it.
22790         * tree.h (types_same_for_odr): Declare.
22792 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
22793             Jason Merrill  <jason@redhat.com>
22795         * system.h: Include <cstdlib> as well as <stdlib.h>.
22797 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
22799         PR target/57655
22800         * config/i386/i386.c (construct_container): Report error if
22801         long double is used with disabled x87 float returns.
22803 2013-06-20  Jan Hubicka  <jh@suse.cz>
22805         * lto-cgraph.c (input_symtab): Do not set cgraph state.
22807 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
22809         PR rtl-optimization/57425
22810         PR rtl-optimization/57569
22811         * alias.c (write_dependence_p): Remove parameters mem_mode and
22812         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
22813         Changed all callers.
22814         (canon_anti_dependence): Get comments and semantics in sync.
22815         Add parameter mem_canonicalized.  Changed all callers.
22816         * rtl.h (canon_anti_dependence): Update prototype.
22818 2013-06-20  Richard Biener  <rguenther@suse.de>
22820         * data-streamer-in.c (streamer_read_uhwi): Optimize single
22821         byte case, inline streamer_read_uchar and defer section
22822         overrun check.
22824 2013-06-20  Richard Biener  <rguenther@suse.de>
22826         PR tree-optimization/57584
22827         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
22828         SSA names into the expanded expression that take part in
22829         abnormal coalescing.
22831 2013-06-19  Sharad Singhai  <singhai@google.com>
22833         * gcov.c (print_usage): Handle new option.
22834         (process_args): Ditto.
22835         (get_gcov_intermediate_filename): New function.
22836         (output_intermediate_file): New function.
22837         (output_gcov_file): New function
22838         (generate_results): Handle new option.
22839         (release_function): Relase demangled name.
22840         (read_graph_file): Handle demangled name.
22841         (output_lines): Ditto.
22842         * doc/gcov.texi: Document gcov intermediate format.
22844 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
22846         PR bootstrap/57604
22847         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
22848         (lra_emit_add): Use the functions.  Add comment about Y as an
22849         address segment.
22851 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
22853         PR driver/57652
22854         * collect2.c (collect_atexit): New.
22855         (collect_exit): Delete.
22856         (main): Register collect_atexit with atexit.
22857         (collect_wait): Change collect_exit to exit.
22858         (do_wait): Same.
22859         * collect2.h (collect_exit): Delete.
22860         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
22862 2013-06-19  Wei Mi  <wmi@google.com>
22864         PR rtl-optimization/57518
22865         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
22866         if regno is used in paradoxical subreg.
22867         (update_equiv_regs): Check pdx_subregs[regno] before
22868         set a reg to be equivalent with a mem.
22870 2013-06-19  Matthias Klose  <doko@ubuntu.com>
22872         PR driver/57651
22873         * file-find.h (find_a_file): Add a mode parameter.
22874         * file-find.c (find_a_file): Likewise.
22875         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
22876         with X_OK for the executables.
22877         * collect2.c (main): Call find_a_file with X_OK.
22879 2013-06-19  Steve Ellcey  <sellcey@mips.com>
22881         PR target/56942
22882         * config/mips/mips.md (casesi_internal_mips16_<mode>):
22883         Use NEXT_INSN instead of next_real_insn.
22885 2013-06-19  Jan Hubicka  <jh@suse.cz>
22887         * cgraph.h (const_value_known_p): Replace by ...
22888         (ctor_for_folding): .. this one.
22889         * cgraphunit.c (process_function_and_variable_attributes): Use it.
22890         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
22891         * expr.c (expand_expr_real_1): Likewise.
22892         (string_constant): Likewise.
22893         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
22894         * ipa.c (process_references): Likewise.
22895         (symtab_remove_unreachable_nodes): Likewise.
22896         * ipa-inline-analysis.c (param_change_prob): Likewise.
22897         * gimple-fold.c (canonicalize_constructor_val): Likewise.
22898         (get_base_constructor): Likwise.
22899         * varpool.c (varpool_remove_node): Likewise.
22900         (varpool_remove_initializer): LIkewise.
22901         (dump_varpool_node): LIkwise.
22902         (const_value_known_p): Rewrite to ...
22903         (ctor_for_folding): ... this one.
22905 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
22907         PR driver/57651
22908         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
22909         PERSONALITY in $PATH derived prefixes.
22911 2013-06-19  Jeff Law  <law@redhat.com>
22913         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
22914         in comment.
22916         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
22917         (simplify_bitwise_binary): Use it to simpify certain binary ops on
22918         booleans.
22920 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
22922         * config/arm/vfp.md: Move VFP instruction classification documentation
22923         to ...
22924         * config/arm/arm.md: ... here.  Update instruction classification
22925         documentation.
22927 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
22929         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
22930         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
22931         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
22933 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
22935         PR target/57609
22936         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
22937         with NEXT_INSN.  Use tablejump_p to check for jump table data
22938         insns.
22940 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
22942         PR c++/56544
22943         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
22944         that now in C++ the value is correct per the C++ standards.
22946 2013-06-19  Richard Biener  <rguenther@suse.de>
22948         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
22949         for global context.
22951 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22953         Revert:
22954         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22956         PR target/57609
22957         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
22958         with next_active_insn.
22960 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
22962         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
22963         functions are inlined during failures to flag an error.
22964         * tree-inline.c (expand_call_inline): Allow the error to be flagged
22965         in early inline pass.
22967 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
22969         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
22970         in comments.
22972 2013-06-18  Julian Brown  <julian@codesourcery.com>
22974         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
22975         Permit virtual register pre-reload if !strict.
22976         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
22977         change.
22978         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
22979         prototype.
22980         * config/arm/neon.md (movmisalign<mode>): Use
22981         neon_perm_struct_or_reg_operand instead of
22982         neon_struct_or_register_operand.
22983         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
22984         neon_permissive_struct_operand instead of neon_struct_operand.
22985         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
22986         neon_vector_mem_operand.
22987         * config/arm/predicates.md (neon_struct_operand): Adjust call to
22988         neon_vector_mem_operand.
22989         (neon_permissive_struct_operand): New.
22990         (neon_struct_or_register_operand): Rename to...
22991         (neon_perm_struct_or_reg_operand): This. Adjust call to
22992         neon_vector_mem_operand.
22994 2013-06-18  Richard Biener  <rguenther@suse.de>
22996         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
22997         * lto-streamer.h: Include pointer-set.h.
22998         (struct lto_decl_slot): Remove.
22999         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
23000         Remove next_index entry.
23001         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23002         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23003         (lto_init_tree_ref_encoder): Adjust.
23004         (lto_destroy_tree_ref_encoder): Likewise.
23005         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
23006         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
23007         (lto_output_decl_index): Adjust.
23008         (lto_new_out_decl_state): Likewise.
23009         (lto_record_function_out_decl_state): Likewise.
23010         * lto-streamer-out.c (copy_function): Likewise.
23012 2013-06-18  Richard Biener  <rguenther@suse.de>
23014         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
23015         * cgraphunit.c: Include cfgloop.h.
23016         (init_lowered_empty_function): Initialize the loop tree.
23017         (assemble_thunk): Insert new BBs into loops.
23019 2013-06-18  Richard Biener  <rguenther@suse.de>
23021         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
23022         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
23023         the map from cache entry to cache index optional.
23024         (streamer_tree_cache_replace_tree): Adjust accordingly.
23025         (streamer_tree_cache_append): Likewise.
23026         (streamer_tree_cache_delete): Likewise.
23027         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
23028         streamer cache map from cache entry to cache index.
23029         * lto-streamer-out.c (create_output_block): Adjust.
23031 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
23033         * config/arm/arm.md (attribute "insn"): Move multiplication and
23034         division attributes to...
23035         (attribute "type"): ... here.  Remove mult.
23036         (attribute "mul32"): New attribute.
23037         (attribute "mul64"): Add umaal.
23038         (*arm_mulsi3): Update attributes.
23039         (*arm_mulsi3_v6): Likewise.
23040         (*thumb_mulsi3): Likewise.
23041         (*thumb_mulsi3_v6): Likewise.
23042         (*mulsi3_compare0): Likewise.
23043         (*mulsi3_compare0_v6): Likewise.
23044         (*mulsi_compare0_scratch): Likewise.
23045         (*mulsi_compare0_scratch_v6): Likewise.
23046         (*mulsi3addsi): Likewise.
23047         (*mulsi3addsi_v6): Likewise.
23048         (*mulsi3addsi_compare0): Likewise.
23049         (*mulsi3addsi_compare0_v6): Likewise.
23050         (*mulsi3addsi_compare0_scratch): Likewise.
23051         (*mulsi3addsi_compare0_scratch_v6): Likewise.
23052         (*mulsi3subsi): Likewise.
23053         (*mulsidi3adddi): Likewise.
23054         (*mulsi3addsi_v6): Likewise.
23055         (*mulsidi3adddi_v6): Likewise.
23056         (*mulsidi3_nov6): Likewise.
23057         (*mulsidi3_v6): Likewise.
23058         (*umulsidi3_nov6): Likewise.
23059         (*umulsidi3_v6): Likewise.
23060         (*umulsidi3adddi): Likewise.
23061         (*umulsidi3adddi_v6): Likewise.
23062         (*smulsi3_highpart_nov6): Likewise.
23063         (*smulsi3_highpart_v6): Likewise.
23064         (*umulsi3_highpart_nov6): Likewise.
23065         (*umulsi3_highpart_v6): Likewise.
23066         (mulhisi3): Likewise.
23067         (*mulhisi3tb): Likewise.
23068         (*mulhisi3bt): Likewise.
23069         (*mulhisi3tt): Likewise.
23070         (maddhisi4): Likewise.
23071         (*maddhisi4tb): Likewise.
23072         (*maddhisi4tt): Likewise.
23073         (maddhidi4): Likewise.
23074         (*maddhidi4tb): Likewise.
23075         (*maddhidi4tt): Likewise.
23076         (divsi3): Likewise.
23077         (udivsi3): Likewise.
23078         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
23079         (thumb2_mulsi_short_compare0): Likewise.
23080         (thumb2_mulsi_short_compare0_scratch): Likewise.
23081         * config/arm/arm1020e.md (1020mult1): Update attribute change.
23082         (1020mult2): Likewise.
23083         (1020mult3): Likewise.
23084         (1020mult4): Likewise.
23085         (1020mult5): Likewise.
23086         (1020mult6): Likewise.
23087         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
23088         change.
23089         (cortex_a15_mult64): Likewise.
23090         (cortex_a15_sdiv): Likewise.
23091         (cortex_a15_udiv): Likewise.
23092         * config/arm/arm1026ejs.md (mult1): Update attribute change.
23093         (mult2): Likewise.
23094         (mult3): Likewise.
23095         (mult4): Likewise.
23096         (mult5): Likewise.
23097         (mult6): Likewise.
23098         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
23099         (pj4_ir_div): Likewise.
23100         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
23101         (11_mult2): Likewise.
23102         (11_mult3): Likewise.
23103         (11_mult4): Likewise.
23104         (11_mult5): Likewise.
23105         (11_mult6): Likewise.
23106         (11_mult7): Likewise.
23107         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
23108         (cortex_a8_mla): Likewise.
23109         (cortex_a8_mull): Likewise.
23110         (cortex_a8_smulwy): Likewise.
23111         (cortex_a8_smlald): Likewise.
23112         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
23113         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
23114         (cortex_r4_mul_3): Likewise.
23115         (cortex_r4_mla_4): Likewise.
23116         (cortex_r4_mla_3): Likewise.
23117         (cortex_r4_smlald): Likewise.
23118         (cortex_r4_mull): Likewise.
23119         (cortex_r4_sdiv): Likewise.
23120         (cortex_r4_udiv): Likewise.
23121         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
23122         (cortex_a7_idiv): Likewise.
23123         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
23124         (9_mult2): Likewise.
23125         (9_mult3): Likewise.
23126         (9_mult4): Likewise.
23127         (9_mult5): Likewise.
23128         (9_mult6): Likewise.
23129         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
23130         (cortex_a53_sdiv): Likewise.
23131         (cortex_a53_udiv): Likewise.
23132         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
23133         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
23134         (mp626_mult2): Likewise.
23135         (mp626_mult3): Likewise.
23136         (mp626_mult4): Likewise.
23137         * config/arm/fa526.md (526_mult1): Update attribute change.
23138         (526_mult2): Likewise.
23139         * config/arm/arm-generic.md (mult): Update attribute change.
23140         (mult_ldsched_strongarm): Likewise.
23141         (mult_ldsched): Likewise.
23142         (multi_cycle): Likewise.
23143         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
23144         * config/arm/fa606te.md (606te_mult1): Update attribute change.
23145         (606te_mult2): Likewise.
23146         (606te_mult3): Likewise.
23147         (606te_mult4): Likewise.
23148         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
23149         (cortex_a9_mac16): Likewise.
23150         (cortex_a9_multiply): Likewise.
23151         (cortex_a9_mac): Likewise.
23152         (cortex_a9_multiply_long): Likewise.
23153         * config/arm/fa626te.md (626te_mult1): Update attribute change.
23154         (626te_mult2): Likewise.
23155         (626te_mult3): Likewise.
23156         (626te_mult4): Likewise.
23158 2013-06-18  Richard Biener  <rguenther@suse.de>
23160         PR lto/57334
23161         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
23163 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23165         PR target/57609
23166         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
23167         with next_active_insn.
23169 2013-06-18  Alan Modra  <amodra@gmail.com>
23171         * config/rs6000/rs6000.h (enum data_align): New.
23172         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
23173         (DATA_ABI_ALIGNMENT): Define.
23174         (CONSTANT_ALIGNMENT): Correct comment.
23175         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
23176         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
23178 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
23180         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
23181         ATTRIBUTE_UNUSED marking.
23183 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
23185         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
23186         alternative and update.
23187         (aarch64_dup_lanedi): Delete.
23188         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
23189         * config/aarch64/aarch64-simd-builtins.def: Update.
23191 2013-06-17  Richard Biener  <rguenther@suse.de>
23193         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
23194         (lto_input_scc): Declare.
23195         (lto_input_tree_1): Likewise.
23196         (struct lto_stats_d): Add num_tree_bodies_output and
23197         num_pickle_refs_output.
23198         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
23199         (lto_read_tree_1): Split out from ...
23200         (lto_read_tree): ... this.
23201         (lto_input_scc): New function.
23202         (lto_input_tree_1): Split out from ...
23203         (lto_input_tree): ... this.  Handle LTO_tree_scc.
23204         (lto_data_in_create): Create the streamer cache without hashes.
23205         * lto-streamer-out.c (create_output_block): Create the streamer
23206         cache with hashes when not doing WPA.
23207         (lto_write_tree_1): Split out from ...
23208         (lto_write_tree): ... this.
23209         (get_symbol_initial_value): New function.
23210         (lto_output_tree_1): Split out from ...
23211         (lto_output_tree): ... this.  Write trees as series of SCCs
23212         using a DFS walk via DFS_write_tree.
23213         (struct sccs, struct scc_entry): New types.
23214         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
23215         (DFS_write_tree_body): New function.
23216         (DFS_write_tree): Likewise.
23217         (hash_tree): Likewise.
23218         (scc_entry_compare): Likewise.
23219         (hash_scc): Likewise.
23220         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
23221         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
23222         TREE_CHAIN as regular reference.
23223         (streamer_read_integer_cst): Remove.
23224         (streamer_get_pickled_tree): Adjust.
23225         * tree-streamer-out.c (streamer_write_chain): Disable streaming
23226         of DECL_EXTERNALs in BLOCK_VARS for now.
23227         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
23228         reference.
23229         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
23230         Add hash value argument and record that if hashes are recorded
23231         in the cache.
23232         (streamer_tree_cache_insert_1): Adjust.
23233         (streamer_tree_cache_insert): Likewise.
23234         (streamer_tree_cache_insert_at): Rename to ...
23235         (streamer_tree_cache_replace_tree): ... this and adjust.
23236         (streamer_tree_cache_append): Adjust.
23237         (record_common_node): Likewise.
23238         (streamer_tree_cache_create): Add argument whether to
23239         record hash values together with trees.
23240         (streamer_tree_cache_delete): Adjust.
23241         * tree-streamer.h (struct streamer_tree_cache_d): Add
23242         vector of hashes.
23243         (streamer_read_integer_cst): Remove.
23244         (streamer_tree_cache_insert): Adjust.
23245         (streamer_tree_cache_append): Likewise.
23246         (streamer_tree_cache_insert_at): Rename to ...
23247         (streamer_tree_cache_replace_tree): ... this and adjust.
23248         (streamer_tree_cache_create): Add argument whether to record hashes.
23249         (streamer_tree_cache_get): Rename to ...
23250         (streamer_tree_cache_get_tree): ... this.
23251         (streamer_tree_cache_get_hash): New function.
23252         * tree.c (cache_integer_cst): New function.
23253         * tree.h (cache_integer_cst): Declare.
23254         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
23255         * lto-symtab.c (lto_varpool_replace_node): Only release
23256         DECL_INITIAL of non-prevailing decls.
23257         * varpool.c (varpool_remove_initializer): Do not release
23258         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
23260 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
23262         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
23263         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
23264         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
23265         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
23266         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
23267         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
23268         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
23269         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
23270         instead of TARGET_64BIT.
23271         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
23272         Require ISA_HAS_<D>DIV.
23274 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
23276         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
23277         (mips*-*-linux*): Move default with_llsc setting to where other
23278         defaults are set.
23279         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
23280         with_arch block.
23281         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
23282         Likewise.  Remove default with_tune setting.  Move default float
23283         setting to its own block.  Handle with_llsc in the same block as above.
23285 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
23287         PR rtl-optimization/57425
23288         PR rtl-optimization/57569
23289         * alias.c (write_dependence_p): Add new parameters mem_mode,
23290         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
23291         Changed all callers.
23292         (canon_anti_dependence): New function.
23293         * cse.c (check_dependence): Use canon_anti_dependence.
23294         * cselib.c (cselib_invalidate_mem): Likewise.
23295         * rtl.h (canon_anti_dependence): Declare.
23297 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
23299         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
23300         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
23301         ".set mips3" for 64-bit targets.
23303 2013-06-15  Dehao Chen  <dehao@google.com>
23305         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
23306         * gimple-low.c (gimple_check_call_matching_types): Likewise.
23307         (gimple_check_call_args): Likewise.
23308         * value-prof.c (check_ic_target): Likewise.
23309         * ipa-inline.c (early_inliner): Likewise.
23310         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
23311         * cgraph.c (cgraph_create_edge_1): Likewise.
23312         (cgraph_make_edge_direct): Likewise.
23314 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23316         PR target/57615
23317         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
23318         rs6000_output_move_128bit to handle emitting quad memory
23319         operations.  Set attribute length to 8 bytes.
23321 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
23323         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
23324         New pattern.
23325         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
23326         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
23327         (aarch64_<su>mlsl<mode>): Likewise.
23329 2013-06-14  Mike Stump  <mikestump@comcast.net>
23331         * Makefile.in (TARGET_H): Add insn-codes.h.
23333 2013-06-14  Alan Modra  <amodra@gmail.com>
23335         PR middle-end/57134
23336         PR middle-end/57586
23337         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
23338         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
23339         bitfield expansion when EXPAND_MEMORY.
23340         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
23342 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
23344         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
23345         test for clearing quad memory on 32-bit later.
23347 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
23349         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
23350         (fold_negate_expr): Likewise.
23351         (fold_real_zero_addition_p): Handle vectors.
23352         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
23354 2013-06-14  Alan Modra  <amodra@gmail.com>
23356         * varasm.c (force_const_mem): Revert 2013-06-07 change.
23358 2013-06-13  Jan Hubicka  <jh@suse.cz>
23360         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
23361         Local comdats are not externally visible.
23362         * symtab.c (dump_symtab_base): Dump externally visible.
23363         (verify_symtab_base): Verify back links in the symtab hash.
23365 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
23367         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
23368         CONVERT_EXPR as equal nodes.
23370 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
23372         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
23374 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
23376         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
23377         Generalize to complex and vector.
23378         * tree.c (build_all_ones_cst): New function.
23379         * tree.h (build_all_ones_cst): Declare it.
23381 2013-06-13  Alan Modra  <amodra@gmail.com>
23383         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
23384         * config/rs6000/rs6000.md (signbittf2): New insn.
23385         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
23386         (abstf2_internal, cmptf_internal2): Likewise.
23387         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
23389 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
23390             Pat Haugen  <pthaugen@us.ibm.com>
23391             Peter Bergner  <bergner@vnet.ibm.com>
23393         * config/rs6000/rs6000.c (emit_load_locked): Add support for
23394         power8 byte, half-word, and quad-word atomic instructions.
23395         (emit_store_conditional): Likewise.
23396         (rs6000_expand_atomic_compare_and_swap): Likewise.
23397         (rs6000_expand_atomic_op): Likewise.
23399         * config/rs6000/sync.md (larx): Add new modes for power8.
23400         (stcx): Likewise.
23401         (AINT): New mode iterator to include TImode as well as normal
23402         integer modes on power8.
23403         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
23404         that VSX registers are not considered.  Use AINT mode iterator
23405         instead of INT1 to allow inclusion of quad word atomic operations
23406         on power8.
23407         (load_locked<mode>): Likewise.
23408         (store_conditional<mode>): Likewise.
23409         (atomic_compare_and_swap<mode>): Likewise.
23410         (atomic_exchange<mode>): Likewise.
23411         (atomic_nand<mode>): Likewise.
23412         (atomic_fetch_<fetchop_name><mode>): Likewise.
23413         (atomic_nand_fetch<mode>): Likewise.
23414         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
23415         each type.
23416         (ATOMIC): On power8, add QImode, HImode modes.
23417         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
23418         modes that promote to SImode.
23419         (load_lockedti): Convert TImode arguments to PTImode, so that we
23420         get a guaranteed even/odd register pair.
23421         (load_lockedpti): Likewise.
23422         (store_conditionalti): Likewise.
23423         (store_conditionalpti): Likewise.
23425         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
23426         atomic load/store instructions.
23427         (HSI): Likewise.
23429 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
23431         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
23432         loads.
23433         (insn_count): New attribute, with most cases extracted from...
23434         (length): ...here.  Redefine most cases in terms of insn_count.
23435         (single_insn): Delete.
23436         (can_delay): Use insn_count to check for single instructions.
23437         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
23438         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
23439         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
23440         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
23441         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
23442         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
23443         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
23444         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
23445         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
23446         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
23447         rather than "length".
23448         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
23449         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
23450         Use "insn_count" rather than "length".
23451         * config/mips/mips-dsp.md
23452         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
23453         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
23454         length attributes.
23456 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
23458         PR tree-optimization/57361
23459         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
23461 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
23463         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
23464         to split.
23465         (aarch64_simd_combine<mode>): New instruction expansion.
23466         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
23467         function prototype.
23468         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
23469         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
23471 2013-06-12  Jan Hubicka  <jh@suse.cz>
23473         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
23474         decl has when in streaming stage.
23475         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
23476         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
23478 2013-06-12  Roland Stigge  <stigge@antcom.de>
23480         PR target/57578
23481         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
23483 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
23485         PR tree-optimization/57537
23486         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
23487         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
23489 2013-06-12  Richard Biener  <rguenther@suse.de>
23491         * data-streamer.h (streamer_write_char_stream): CSE
23492         obs->current_pointer.
23493         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
23494         streamer_write_char_stream manually and optimize the resulting loop.
23495         (streamer_write_hwi_stream): Likewise.
23497 2013-06-12  Jan Hubicka  <jh@suse.cz>
23499         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
23500         * cgraph.h (varpool_create_empty_node): Declare.
23501         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
23502         duplicated nodes.
23503         * symtab.c (symtab_unregister_node): Be lax about missin entries
23504         in node hash.
23505         (symtab_get_node): Update comment.
23506         * varpool.c (varpool_create_empty_node): Break out from ...
23507         (varpool_node_for_decl): ... here.
23508         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
23510 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
23512         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
23513         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
23514         part.  Use straight-line flow at the end.
23515         <COMPONENT_REF>: Remove superfluous else.
23516         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
23518 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
23520         PR target/56564
23521         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
23522         target hook even for !TREE_PUBLIC decls.  If no resolution info
23523         is available, return false for common and external decls.
23525 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23527         * config/rl78/constraints.md (U): New constraint.
23528         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
23529         valloc attribute.
23531 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
23533         PR target/57589
23534         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
23535         to allow returning address to AT_PLATFORM name.
23537 2013-06-11  Jan Hubicka  <jh@suse.cz>
23539         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
23540         * cgraph.h (symtab_node_base): Add weakref flag.
23541         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
23542         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
23543         (output_weakrefs): Use weakref flag.
23544         * fold-const.c (simple_operand_p): Handle WEAK.
23545         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
23546         * ipa.c (varpool_externally_visible_p): Drop weakref.
23547         (function_and_variable_visibility): Update comment; fix weakref
23548         sanity checks; do not clear DECL_WEAK on them.
23549         * lto-cgraph.c (lto_output_node): update.
23550         (lto_output_varpool_node): Update.
23551         (input_overwrite_node): Update.
23552         (input_node): Update.
23553         (input_varpool_node): Update.
23554         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
23555         (lto_symtab_merge_symbols): Add sanity check.
23556         (lto_symtab_prevailing_decl): Do not special case weakrefs.
23557         * passes.c (rest_of_decl_compilation): Set static flag, too.
23558         * symtab.c (dump_symtab_base): Dump weakref.
23559         (verify_symtab_base): Sanity check weakrefs.
23560         (symtab_make_decl_local): Remove duplicated code.
23561         (symtab_alias_ultimate_target): Simplify.
23562         * varpool.c (varpool_create_variable_alias): Set weakref flag.
23564 2013-06-11  Tom de Vries  <tom@codesourcery.com>
23566         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
23567         sequence_vect == NULL.
23569 2013-06-11  DJ Delorie  <dj@redhat.com>
23571         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
23572         (rl78_unwind_word_mode): New.
23574 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
23576         * final.c (debug_prefix_maps): Make static.
23578 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
23580         * function.c (initial_trampoline): Remove stray copy.
23582 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
23584         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
23586 2013-06-11  Martin Jambor  <mjambor@suse.cz>
23588         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
23589         within bounds at the beginning of the function.
23591 2013-06-11  Alan Modra  <amodra@gmail.com>
23593         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
23594         reporting.
23595         (get_named_section): Don't NULL !DECL_P decl.
23597 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
23599         * doc/invoke.texi (core-avx2): Document.
23600         (slm): Likewise.
23601         (atom): Updated with MOVBE.
23603 2013-06-11  Richard Biener  <rguenther@suse.de>
23605         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
23607 2013-06-11  Anton Blanchard  <anton@samba.org>
23609         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
23610         correct shift value in little-endian mode.
23612 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
23614         PR target/56564
23615         * varasm.c (get_variable_align): Move #endif to the right place.
23617 2013-06-10  Cary Coutant  <ccoutant@google.com>
23619         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
23620         for hash so that hash table traversal order is deterministic.
23622 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
23623             Pat Haugen  <pthaugen@us.ibm.com>
23624             Peter Bergner  <bergner@vnet.ibm.com>
23626         * config/rs6000/vector.md (GPR move splitter): Do not split moves
23627         of vectors in GPRS if they are direct moves or quad word load or
23628         store moves.
23630         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
23631         declaration.
23632         (direct_move_p): Likewise.
23633         (quad_load_store_p): Likewise.
23635         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
23636         classes into bins based on the physical register type.
23637         (reg_class_to_reg_type): Likewise.
23638         (IS_STD_REG_TYPE): Likewise.
23639         (IS_FP_VECT_REG_TYPE): Likewise.
23640         (reload_fpr_gpr): Arrays to determine what insn to use if we can
23641         use direct move instructions.
23642         (reload_gpr_vsx): Likewise.
23643         (reload_vsx_gpr): Likewise.
23644         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
23645         information that is a simplification of register classes.  Also
23646         precalculate direct move reload helpers.
23647         (direct_move_p): New function to return true if the operation can
23648         be done as a direct move instruciton.
23649         (quad_load_store_p): New function to return true if the operation
23650         is a quad memory operation.
23651         (rs6000_legitimize_address): If quad memory, only allow register
23652         indirect for TImode addresses.
23653         (rs6000_legitimate_address_p): Likewise.
23654         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
23655         (rs6000_reload_register_type): Likewise.
23656         (register_to_reg_type): Return register type.
23657         (rs6000_secondary_reload_simple_move): New helper function for
23658         secondary reload and secondary memory needed to identify anything
23659         that is a simple move, and does not need reloading.
23660         (rs6000_secondary_reload_direct_move): New helper function for
23661         secondary reload to identify cases that can be done with several
23662         instructions via the direct move instructions.
23663         (rs6000_secondary_reload_move): New helper function for secondary
23664         reload to identify moves between register types that can be done.
23665         (rs6000_secondary_reload): Add support for quad memory operations
23666         and for direct move.
23667         (rs6000_secondary_memory_needed): Likewise.
23668         (rs6000_debug_secondary_memory_needed): Change argument names.
23669         (rs6000_output_move_128bit): New function to return the move to
23670         use for 128-bit moves, including knowing about the various
23671         limitations of quad memory operations.
23673         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
23674         memory operations.  call rs6000_output_move_128bit for the actual
23675         instruciton(s) to generate.
23676         (vsx_movti_64bit): Likewise.
23678         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
23679         (UNSPEC_P8V_MTVSRWZ): Likewise.
23680         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
23681         (UNSPEC_P8V_MTVSRD): Likewise.
23682         (UNSPEC_P8V_XXPERMDI): Likewise.
23683         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
23684         (UNSPEC_FUSION_GPR): Likewise.
23685         (FMOVE128_GPR): New iterator for direct move.
23686         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
23687         (f32_sv): Likewise.
23688         (f32_dm): Likewise.
23689         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
23690         loads and direct move instructions.
23691         (zero_extendsidi2_lfiwzx): Likewise.
23692         (extendsidi2_lfiwax): Likewise.
23693         (extendsidi2_nocell): Likewise.
23694         (floatsi<mode>2_lfiwax): Likewise.
23695         (lfiwax): Likewise.
23696         (floatunssi<mode>2_lfiwzx): Likewise.
23697         (lfiwzx): Likewise.
23698         (fix_trunc<mode>_stfiwx): Likewise.
23699         (fixuns_trunc<mode>_stfiwx): Likewise.
23700         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
23701         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
23702         (parity<mode>2_cmpb): Set length/type attr.
23703         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
23704         for 'mr.' to fast_compare.
23705         (bpermd_<mode>): Change type attr to popcnt.
23706         (p8_fmrgow_<mode>): New insns for power8 direct move support.
23707         (p8_mtvsrwz_1): Likewise.
23708         (p8_mtvsrwz_2): Likewise.
23709         (reload_fpr_from_gpr<mode>): Likewise.
23710         (p8_mtvsrd_1): Likewise.
23711         (p8_mtvsrd_2): Likewise.
23712         (p8_xxpermdi_<mode>): Likewise.
23713         (reload_vsx_from_gpr<mode>): Likewise.
23714         (reload_vsx_from_gprsf): Likewise.
23715         (p8_mfvsrd_3_<mode>): LIkewise.
23716         (reload_gpr_from_vsx<mode>): Likewise.
23717         (reload_gpr_from_vsxsf): Likewise.
23718         (p8_mfvsrd_4_disf): Likewise.
23719         (multi-word GPR splits): Do not split direct moves or quad memory
23720         operations.
23722 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
23724         * tree-into-ssa.c (interesting_blocks): Make static.
23726 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
23728         PR target/56564
23729         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
23730         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
23731         Use DATA_ABI_ALIGNMENT for that case instead if defined.
23732         (get_variable_align): New function.
23733         (get_variable_section, emit_bss, emit_common,
23734         assemble_variable_contents, place_block_symbol): Use
23735         get_variable_align instead of DECL_ALIGN.
23736         (assemble_noswitch_variable): Add align argument, use it
23737         instead of DECL_ALIGN.
23738         (assemble_variable): Adjust caller.  Use get_variable_align
23739         instead of DECL_ALIGN.
23740         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
23741         caller.
23742         (DATA_ABI_ALIGNMENT): Define.
23743         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
23744         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
23745         opt is false, only return the psABI mandated alignment increase.
23746         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
23747         (DATA_ABI_ALIGNMENT): ... this.
23748         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
23749         (DATA_ABI_ALIGNMENT): ... this.
23750         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
23751         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
23752         (DATA_ABI_ALIGNMENT): ... this.
23753         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
23754         * doc/tm.texi: Regenerated.
23756 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
23758         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
23759         cmp_code to construct REG_EQUAL note.
23761 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
23763         PR target/57568
23764         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
23765         that operands[2] doesn't overlap with operands[0].
23767 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
23768             Jan Hubicka  <jh@suse.cz>
23770         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
23771         hack to mark symbols as used.
23773 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
23775         PR rtl-optimization/57559
23776         * lra-constraints.c (process_alt_operands): Don't discourage
23777         memory with known offset for offsetable memory constraint.
23778         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
23780 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
23782         * varasm.c (struct oc_local_state): Reorder fields.
23783         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
23784         and adjust accordingly.
23785         (output_constructor): Reorder initialization code and adjust call to
23786         output_constructor_bitfield.
23788 2013-06-07  Jan Hubicka  <jh@suse.cz>
23790         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
23792 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
23794         * tree-object-size.c (unknown): Make const.
23796 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23798         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
23799         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
23800         for last alternative in the cpu_facility attribute.
23802 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23804         PR target/56315
23805         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
23806         (xordi3): Change operand 2 constraint to arm_xordi_operand.
23807         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
23808         * config/arm/constraints.md (Dg): New constraint.
23809         * config/arm/neon.md (xordi3_neon): Remove.
23810         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
23811         * config/arm/predicates.md (arm_xordi_operand): New predicate.
23813 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23815         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
23816         Clean up alternatives.
23818 2013-06-07  Alan Modra  <amodra@gmail.com>
23820         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
23821         va_list_gpr_size.
23823 2013-06-07  Alan Modra  <amodra@gmail.com>
23825         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
23827 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23829         * config/arm/constraints.md (Df): New constraint.
23830         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
23831         Correct length attribute for last two alternatives.
23833 2013-06-07  Alan Modra  <amodra@gmail.com>
23835         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
23836         override user -mfp-in-toc.
23837         (offsettable_ok_by_alignment): Consider just the current access
23838         rather than the whole object, unless BLKmode.  Handle
23839         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
23840         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
23841         for -mcmodel=medium.
23842         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
23843         override user -mfp-in-toc or -msum-in-toc.  Default to
23844         -mno-fp-in-toc for -mcmodel=medium.
23846 2013-06-06  DJ Delorie  <dj@redhat.com>
23848         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
23849         TARGET_VALID_POINTER_MODE.
23851 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
23852             Pat Haugen  <pthaugen@us.ibm.com>
23853             Peter Bergner  <bergner@vnet.ibm.com>
23855         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23856         Document new power8 builtins.
23858         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
23859         condition code register, to allow 128-bit logical operations to be
23860         done in the VSX or GPR registers.
23861         (nor<mode>3): Use the canonical form for nor.
23862         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
23863         vclz*, and vpopcnt* vector instructions.
23864         (nand<mode>3): Likewise.
23865         (orc<mode>3): Likewise.
23866         (clz<mode>2): LIkewise.
23867         (popcount<mode>2): Likewise.
23869         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
23870         that only the GPRs are recognized.
23872         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23873         support for new power8 builtins.
23875         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
23876         builtin functions.
23877         (xscvdpspn): Likewise.
23878         (vclz): Likewise.
23879         (vclzb): Likewise.
23880         (vclzh): Likewise.
23881         (vclzw): Likewise.
23882         (vclzd): Likewise.
23883         (vpopcnt): Likewise.
23884         (vpopcntb): Likewise.
23885         (vpopcnth): Likewise.
23886         (vpopcntw): Likewise.
23887         (vpopcntd): Likewise.
23888         (vgbbd): Likewise.
23889         (vmrgew): Likewise.
23890         (vmrgow): Likewise.
23891         (eqv): Likewise.
23892         (eqv_v16qi3): Likewise.
23893         (eqv_v8hi3): Likewise.
23894         (eqv_v4si3): Likewise.
23895         (eqv_v2di3): Likewise.
23896         (eqv_v4sf3): Likewise.
23897         (eqv_v2df3): Likewise.
23898         (nand): Likewise.
23899         (nand_v16qi3): Likewise.
23900         (nand_v8hi3): Likewise.
23901         (nand_v4si3): Likewise.
23902         (nand_v2di3): Likewise.
23903         (nand_v4sf3): Likewise.
23904         (nand_v2df3): Likewise.
23905         (orc): Likewise.
23906         (orc_v16qi3): Likewise.
23907         (orc_v8hi3): Likewise.
23908         (orc_v4si3): Likewise.
23909         (orc_v2di3): Likewise.
23910         (orc_v4sf3): Likewise.
23911         (orc_v2df3): Likewise.
23913         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
23914         allow power8 quad mode in 64-bit.
23915         (rs6000_builtin_vectorized_function): Add support to vectorize
23916         ISA 2.07 count leading zeros, population count builtins.
23917         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
23918         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
23919         (builtin_function_type): Add vgbbd builtin function which takes an
23920         unsigned argument.
23921         (altivec_expand_vec_perm_const): Add support for new power8 merge
23922         instructions.
23924         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
23925         that does not include TImdoe for use with 32-bit.
23926         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
23927         instructions.
23928         (UNSPEC_VSX_CVDPSPN): Likewise.
23929         (vsx_xscvdpspn): Likewise.
23930         (vsx_xscvspdpn): Likewise.
23931         (vsx_xscvdpspn_scalar): Likewise.
23932         (vsx_xscvspdpn_directmove): Likewise.
23933         (vsx_and<mode>3): Split logical operations into 32-bit and
23934         64-bit. Add support to do logical operations on TImode as well as
23935         VSX vector types.  Allow logical operations to be done in either
23936         VSX registers or in general purpose registers in 64-bit mode.  Add
23937         splitters if GPRs were used. For AND, add clobber of CCmode to
23938         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
23939         encoding.
23940         (vsx_and<mode>3_32bit): Likewise.
23941         (vsx_and<mode>3_64bit): Likewise.
23942         (vsx_ior<mode>3): Likewise.
23943         (vsx_ior<mode>3_32bit): Likewise.
23944         (vsx_ior<mode>3_64bit): Likewise.
23945         (vsx_xor<mode>3): Likewise.
23946         (vsx_xor<mode>3_32bit): Likewise.
23947         (vsx_xor<mode>3_64bit): Likewise.
23948         (vsx_one_cmpl<mode>2): Likewise.
23949         (vsx_one_cmpl<mode>2_32bit): Likewise.
23950         (vsx_one_cmpl<mode>2_64bit): Likewise.
23951         (vsx_nor<mode>3): Likewise.
23952         (vsx_nor<mode>3_32bit): Likewise.
23953         (vsx_nor<mode>3_64bit): Likewise.
23954         (vsx_andc<mode>3): Likewise.
23955         (vsx_andc<mode>3_32bit): Likewise.
23956         (vsx_andc<mode>3_64bit): Likewise.
23957         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
23958         and xxlorc instructions.
23959         (vsx_eqv<mode>3_64bit): Likewise.
23960         (vsx_nand<mode>3_32bit): Likewise.
23961         (vsx_nand<mode>3_64bit): Likewise.
23962         (vsx_orc<mode>3_32bit): Likewise.
23963         (vsx_orc<mode>3_64bit): Likewise.
23965         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
23967         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
23968         instruction.
23969         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
23970         (p8_vmrgow): Likewise.
23971         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
23972         GPRs to be split under VSX.
23973         (p8v_clz<mode>2): Add power8 count leading zero support.
23974         (p8v_popcount<mode>2): Add power8 population count support.
23975         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
23976         support.
23978         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
23979         instruction.
23981         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
23982         builtin functions.
23983         (vec_nand): Likewise.
23984         (vec_vclz): Likewise.
23985         (vec_vclzb): Likewise.
23986         (vec_vclzd): Likewise.
23987         (vec_vclzh): Likewise.
23988         (vec_vclzw): Likewise.
23989         (vec_vgbbd): Likewise.
23990         (vec_vmrgew): Likewise.
23991         (vec_vmrgow): Likewise.
23992         (vec_vpopcnt): Likewise.
23993         (vec_vpopcntb): Likewise.
23994         (vec_vpopcntd): Likewise.
23995         (vec_vpopcnth): Likewise.
23996         (vec_vpopcntw): Likewise.
23998 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24000         PR rtl-optimization/57468
24001         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
24002         spilled pseudos.
24004 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24006         PR rtl-optimization/57459
24007         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
24008         type when setting live regs.
24010 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
24012         * config/s390/s390.opt (mlra): New option.
24013         * config/s390/s390.c (s390_decompose_address): Check displacement
24014         for all registers for LRA.
24015         (s390_secondary_reload): Don't used secondary reloads for LRA.
24016         (s390_lra_p): New function.
24017         (TARGET_LRA_P): Define.
24018         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
24019         of attribute cpu_facility to zarch for the last alternative.
24020         (*cmpmem_short): Ditto.
24022 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
24024         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
24025         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
24026         (arm_expand_prologue): Likewise.
24028 2013-06-06  Teresa Johnson  <tejohnson@google.com>
24030         PR c++/53743
24031         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
24032         as this is now done by redirect_edge_and_branch_force.
24033         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
24034         barriers, and fix interaction with splitting.
24035         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
24036         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
24037         reflect changes made in the routine.
24038         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
24039         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
24040         since this is called in cfglayout mode, and replace partition fixup
24041         with assert as that is now done by force_nonfallthru_and_redirect.
24042         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
24043         already be marked with region crossing note.
24044         (insert_section_boundary_note): Make non-static, gate on flag
24045         has_bb_partition, rewrite to also check for multiple partitions.
24046         (rest_of_handle_reorder_blocks): Remove call to
24047         insert_section_boundary_note, now done later during free_cfg.
24048         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
24049         * bb-reorder.h (insert_section_boundary_note): Declare.
24050         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
24051         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
24052         invoke insert_section_boundary_note.
24053         (try_redirect_by_replacing_jump): Remove unnecessary
24054         check for region crossing note.
24055         (fixup_partition_crossing): New function.
24056         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
24057         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
24058         in non-cfglayout mode.
24059         (force_nonfallthru_and_redirect): Fixup partition boundaries,
24060         remove old code that tried to do this. Emit barrier correctly
24061         when we are in cfglayout mode.
24062         (last_bb_in_partition): New function.
24063         (rtl_split_edge): Correctly fixup partition boundaries.
24064         (commit_one_edge_insertion): Remove old code that tried to
24065         fixup region crossing edge since this is now handled in
24066         split_block, and set up insertion point correctly since
24067         block may now end in a jump.
24068         (verify_hot_cold_block_grouping): Guard against checking when not in
24069         linearized RTL mode.
24070         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
24071         notes.
24072         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
24073         rtl_verify_flow_info, so not called in cfglayout mode.
24074         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
24075         (fixup_reorder_chain): Remove old code that attempted to fixup region
24076         crossing note as this is now handled in force_nonfallthru_and_redirect.
24077         (duplicate_insn_chain): Don't duplicate switch section notes.
24078         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
24079         note.
24080         * basic-block.h (emit_barrier_after_bb): Declare.
24082 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24084         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
24085         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
24086         arm_usatsihi): Adjust alternatives for arm_restrict_it.
24088 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24090         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
24091         where appropriate.
24092         * config/arm/ldmstm.md: Regenerate.
24094 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24096         * config/arm/sync.md (atomic_loaddi_1):
24097         Disable predication for arm_restrict_it.
24098         (arm_load_exclusive<mode>): Likewise.
24099         (arm_load_exclusivesi): Likewise.
24100         (arm_load_exclusivedi): Likewise.
24101         (arm_load_acquire_exclusive<mode>): Likewise.
24102         (arm_load_acquire_exclusivesi): Likewise.
24103         (arm_load_acquire_exclusivedi): Likewise.
24104         (arm_store_exclusive<mode>): Likewise.
24105         (arm_store_exclusive<mode>): Likewise.
24106         (arm_store_release_exclusivedi): Likewise.
24107         (arm_store_release_exclusive<mode>): Likewise.
24109 2013-06-06  Richard Biener  <rguenther@suse.de>
24111         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
24112         after LTO_null.
24113         (lto_tag_is_tree_code_p): Adjust.
24114         (lto_tag_is_gimple_code_p): Likewise.
24115         (lto_gimple_code_to_tag): Likewise.
24116         (lto_tag_to_gimple_code): Likewise.
24117         (lto_tree_code_to_tag): Likewise.
24118         (lto_tag_to_tree_code): Likewise.
24119         * data-streamer.h (streamer_write_hwi_in_range): Use
24120         uhwi streaming to stream the normalized range.
24121         (streamer_read_hwi_in_range): Likewise.
24123 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24125         * config/arm/arm.md (enabled_for_depr_it): New attribute.
24126         (predicable_short_it): Likewise.
24127         (predicated): Likewise.
24128         (enabled): Handle above.
24129         (define_cond_exec): Set predicated attribute to yes.
24131 2013-06-05  Mike Stump  <mikestump@comcast.net>
24133         * gdbinit.in (__FUNCTION__): Add.
24135 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
24137         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
24138         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
24140 2013-06-05  Jan Hubicka  <jh@suse.cz>
24142         * varasm.c (mark_decl_referenced): Revert the removal until targets
24143         are fixed.
24145 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
24147         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
24148         instead of mark_decl_referenced.
24150 2013-06-05  Jan Hubicka  <jh@suse.cz>
24152         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
24153         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
24154         and symtab_used_from_object_file_p.
24155         (cgraph_make_node_local_1): Clear forced_by_abi.
24156         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
24157         * cgraph.h (symtab_node_base): Add forced_by_abi.
24158         (decide_is_variable_needed): Remove.
24159         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
24160         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
24161         (decide_is_symbol_needed): ... this one; handle symbols in general;
24162         always analyze virtuals; honnor forced_by_abi.
24163         (cgraph_finalize_function): Update.
24164         (varpool_finalize_decl): Update.
24165         (symbol_defined_and_needed): Remove.
24166         (analyze_functions): Update.
24167         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
24168         output_refs, input_overwrite_node): Handle forced_by_abi.
24169         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
24170         (address_taken_from_non_vtable_p): ... this one.
24171         (comdat_can_be_unshared_p_1): New function.
24172         (cgraph_comdat_can_be_unshared_p): Rename to ...
24173         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
24174         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
24175         (function_and_variable_visibility): Clear forced_by_abi as needed.
24176         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
24177         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
24178         * symtab.c (dump_symtab_base): Dump forced_by_abi.
24179         * varpool.c (decide_is_variable_needed): Remove.
24181 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24183         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
24184         (arm_option_override): Override arm_restrict_it where appropriate.
24185         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
24186         * config/arm/arm.opt (mrestrict-it): New command-line option.
24187         * doc/invoke.texi: Document -mrestrict-it.
24189 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
24191         * tsan.c (tsan_atomic_table): Make const.
24193 2013-06-05  Richard Biener  <rguenther@suse.de>
24195         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
24196         index associated with the tree we are supposed to replace.
24197         * tree-streamer-out.c (pack_ts_base_value_fields): Output
24198         TREE_ASM_WRITTEN as zero for everything but SSA names.
24200 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
24202         * tree-ssa-structalias.c (call_stmt_vars): Make static.
24204 2013-06-04  Jan Hubicka  <jh@suse.cz>
24206         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
24207         (input_node, input_varpool_node): Handle correctly external same
24208         body aliases.
24209         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
24210         nodes at ltrans stage.
24212 2013-06-04  Jan Hubicka  <jh@suse.cz>
24214         * ipa-inline.c (update_caller_keys): Fix availability test.
24215         (update_callee_keys): Likewise.
24216         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
24217         to follow ELF standard.
24219 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
24221         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
24222         (mips64r5900el-*-elf*): New configurations.
24223         * config/mips/mips-cpus.def (r5900): New processor.
24224         * config/mips/mips-tables.opt: Regenerate.
24225         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
24226         (mips_issue_rate): Handle PROCESSOR_R5900.
24227         (mips_reorg_process_insns): Force reorder mode for the R5900.
24228         * config/mips/mips.h (TARGET_MIPS5900): Define.
24229         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
24230         TARGET_MIPS5900.
24231         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
24232         TARGET_MIPS5900.
24233         * config/mips/mips.md (processor): Add r5900.
24234         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
24236 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24238         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
24239         into function to generate MOVI instruction.
24240         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
24241         (aarch64_preferred_simd_mode): Turn into wrapper.
24242         (aarch64_output_scalar_simd_mov_immediate): New function.
24243         * config/aarch64/aarch64-protos.h: Add prototype for above.
24245 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24247         * config/aarch64/aarch64.c (simd_immediate_info): Remove
24248         element_char member.
24249         (sizetochar): Return signed char.
24250         (aarch64_simd_valid_immediate): Remove elchar and other
24251         unnecessary variables.
24252         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
24253         Calculate element_char as required.
24254         * config/aarch64/aarch64-protos.h: Update and move prototype
24255         for aarch64_output_simd_mov_immediate.
24256         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
24257         Update arguments.
24259 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24261         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
24262         information completed by aarch64_simd_valid_immediate.
24263         (aarch64_legitimate_constant_p): Update arguments.
24264         (aarch64_simd_valid_immediate): Work with struct rather than many
24265         pointers.
24266         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
24267         (aarch64_simd_make_constant): Update arguments.
24268         (aarch64_output_simd_mov_immediate): Work with struct rather than
24269         many pointers.  Output immediate directly rather than as operand.
24270         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24271         Update prototype.
24272         * config/aarch64/constraints.md (Dn): Update arguments.
24274 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24276         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
24277         longer static.
24278         (aarch64_simd_immediate_valid_for_move): Remove.
24279         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
24280         (aarch64_simd_make_constant): Update call.
24281         (aarch64_output_simd_mov_immediate): Update call.
24282         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
24283         Add prototype.
24284         * config/aarch64/constraints.md (Dn): Update call.
24286 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
24288         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
24289         return type to bool for prototype.
24290         (aarch64_legitimate_constant_p): Check for true instead of not -1.
24291         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
24292         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
24294 2013-06-04  Catherine Moore  <clm@codesourcery.com>
24296         * config/mips/mips.opt (meva): New.
24297         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
24298         (ASM_SPEC): Handle -meva.
24299         * doc/invoke.texi (meva):  Document.
24301 2013-06-04  Alan Modra  <amodra@gmail.com>
24303         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
24304         constant output.
24306 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24308         * rtl.def: Add extra fourth optional field to define_cond_exec.
24309         * gensupport.c (process_one_cond_exec): Process attributes from
24310         define_cond_exec.
24311         * doc/md.texi: Document fourth field in define_cond_exec.
24313 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
24315         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
24316         out the processing order as in store_bit_field_1.
24318 2013-06-04  Jan Hubicka  <jh@suse.cz>
24320         PR middle-end/57500
24321         * cgraphunit.c (cgraph_process_same_body_aliases): Create
24322         non-VAR_DECL node if it does not exist yet.
24324 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
24326         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
24327         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
24328         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
24329         target_cpu_default setting.
24331 2013-06-03  Teresa Johnson  <tejohnson@google.com>
24333         * dumpfile.c (opt_info_switch_p): Change -fopt-info
24334         default to -fopt-info=optimized instead of all.
24335         * doc/invoke.texi: Ditto.
24336         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
24337         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
24338         (execute_vect_slp): Emit BB vectorization success under
24339         MSG_OPTIMIZED_LOCATIONS.
24340         * tree-vect-slp.c (vect_slp_transform_bb): Change
24341         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
24342         * tree-vect-loop.c (vect_transform_loop): Ditto.
24344 2013-06-03  Jason Merrill  <jason@redhat.com>
24346         PR c++/57415
24347         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24348         Use TARGET_EXPR for C++.
24350 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
24352         PR rtl-optimization/57268
24353         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
24354         if DEBUG_INSN_P (insn).
24356         Reapply
24357         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
24359         PR rtl-optimization/57268
24360         * sched-deps.c (sched_analyze_2): Flush dependence lists if
24361         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24363 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
24365         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
24366         (ix86_avoid_lea_for_addr): Likewise.
24367         (exact_dependency_1): Likewise.
24368         (ix86_adjust_cost): Likewise.
24369         (swap_top_of_ready_list): Fix formatting and !reload_completed check
24370         removed.
24371         (do_reorder_for_imul): Fix typo, formatting and
24372         !reload_completed check removed.
24373         (ix86_sched_reorder): Fix typo and formatting.
24374         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
24375         list.
24377 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
24379         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
24381 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
24383         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
24384         <STRING_CST>: Likewise.
24385         <VECTOR_CST>: Likewise.
24387 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
24388             Mikael Morin  <mikael@gcc.gnu.org>
24390         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
24391         * config.in: Regenerated.
24392         * configure: Regenerated.
24394 2013-06-01  Jan Hubicka  <jh@suse.cz>
24396         PR middle-end/57366
24397         * cgraphunit.c (compile): When weakref is not supported,
24398         set up transparent aliases before final output pass.
24399         * varasm.c (assemble_alias): Do not try to do it here.
24401 2013-06-01  Jan Hubicka  <jh@suse.cz>
24403         PR middle-end/57467
24404         * passes.c (for_per_function): Skip unanalyzed functions.
24406 2013-06-01  Jan Hubicka  <jh@suse.cz>
24408         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
24409         (lto_symtab_merge_symbols_1): ... this one.
24410         (lto_symtab_merge_cgraph_nodes): Rename to ...
24411         (lto_symtab_merge_symbols): ... this one; simplify.
24412         * cgraph.c (same_body_aliases_done): Rename to ...
24413         (cpp_implicit_aliases_done): ... this one.
24414         (cgraph_create_function_alias): Update.
24415         (cgraph_same_body_alias): Update.
24416         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
24417         (verify_edge_corresponds_to_fndecl): Simplify.
24418         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
24419         (cgraph_node): Remove same_body_alias.
24420         (varpool_node): Remove alias_of and extra_name_alias.
24421         (same_body_aliases_done): Rename to ..
24422         (cpp_implicit_aliases_done): ... this one.
24423         (symtab_alias_ultimate_target): Add default parameter.
24424         (symtab_resolve_alias): New function.
24425         (fixup_same_cpp_alias_visibility): Declare.
24426         (cgraph_function_node): Add default parameter.
24427         (cgraph_node_asm_name): Likewise.
24428         (cgraph_function_or_thunk_node): Add default parameter; do
24429         not ICE when it is NULL.
24430         (varpool_variable_node): Likewise.
24431         * tree-emutls.c (create_emultls_var): Update.
24432         (ipa_lower_emutls): Update.
24433         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
24434         (cgraph_reset_node): Reset alias info.
24435         (cgraph_finalize_function): Update.
24436         (fixup_same_cpp_alias_visibility): Move to symtab.c.
24437         (analyze_function): Simplify.
24438         (cgraph_process_same_body_aliases): Simplify.
24439         (analyze_functions): Fixup same body aliases.
24440         (handle_alias_pairs): Simplify.
24441         (assemble_thunk): Update.
24442         (assemble_thunks_and_aliases): Update.
24443         (output_weakrefs): Rewrite.
24444         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
24445         (lto_output_varpool_node): Likewise.
24446         (compute_ltrans_boundary): Remve assert.
24447         (get_alias_symbol): New functoin.
24448         (input_node): Rewrite alias handling.
24449         (input_varpool_node): Likewise.
24450         * ipa-pure-const.c (propagate_pure_const): Fix formating.
24451         * ipa.c (process_references): Handle weakrefs correctly.
24452         (symtab_remove_unreachable_nodes): Likewise.
24453         * trans-mem.c (get_cg_data): Update.
24454         (ipa_tm_create_version_alias): Update.
24455         (ipa_tm_execute): Update.
24456         * symtab.c (dump_symtab_base): Dump aliases.
24457         (verify_symtab_base): Verify aliases.
24458         (symtab_node_availability): New function.
24459         (symtab_alias_ultimate_target): Simplify.
24460         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
24461         handle all the fixup cases.
24462         (symtab_resolve_alias): New function.
24463         * passes.c (ipa_write_summaries): Handle weakrefs.
24464         * varpool.c (varpool_analyze_node): Simplify.
24465         (assemble_aliases): Update.
24466         (varpool_create_variable_alias): Simplify.
24467         (varpool_extra_name_alias): Simplify.
24468         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
24469         (lto_symtab_merge_symbols): ... this one.
24471 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
24473         Revert
24474         PR rtl-optimization/57268
24475         * sched-deps.c (sched_analyze_2): Flush dependence lists if
24476         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24478 2013-06-01  Tobias Burnus  <burnus@net-b.de>
24480         Partially reverted:
24481         2013-05-31  Tobias Burnus  <burnus@net-b.de>
24483         PR middle-end/57073
24484         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
24485         further up.
24487 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
24489         PR rtl-optimization/57268
24490         * sched-deps.c (sched_analyze_2): Flush dependence lists if
24491         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
24493 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
24495         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
24496         unordered comparison operators when -fno-trapping-math is in effect
24497         on the e500.
24498         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
24499         and implement unordered comparison operators properly on the e500.
24501 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
24503         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
24504         for constant scalar integers.
24505         (simplify_relational_operation_1): Likewise.
24507 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
24509         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
24510         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
24511         Fix comment.
24513 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
24514             Igor Zamyatin  <igor.zamyatin@intel.com>
24516         Silvermont (SLM) architecture performance tuning.
24517         * config/i386/i386.h (enum ix86_tune_indices): Add
24518         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
24519         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
24521         * config/i386/i386.c (initial_ix86_tune_features)
24522         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
24523         (ix86_lea_outperforms): Handle Silvermont tuning.
24524         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
24525         call.
24526         (ix86_use_lea_for_mov): Likewise.
24527         (ix86_avoid_lea_for_addr): Likewise.
24528         (ix86_lea_for_add_ok): Likewise.
24529         (exact_dependency_1): New function.
24530         (exact_store_load_dependency): Likewise.
24531         (ix86_adjust_cost): Handle Silvermont tuning.
24532         (do_reoder_for_imul): Likewise.
24533         (swap_top_of_ready_list): New function.
24534         (ix86_sched_reorder): Changed to handle Silvermont tuning.
24536         * config/i386/i386.md (peepholes that split memory operand in fp
24537         converts): New.
24539 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24541         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
24542         Remove un-necessary braces.
24544 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
24546         * config/aarch64/aarch64.c (aarch64_classify_symbol):
24547         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
24549 2013-05-31  Tobias Burnus  <burnus@net-b.de>
24551         PR middle-end/57073
24552         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
24554 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24556         PR target/56315
24557         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
24558         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
24559         * config/arm/neon.md (iordi3_neon): Remove.
24560         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
24561         * config/arm/predicates.md (imm_for_neon_logic_operand):
24562         Move to earlier in the file.
24563         (neon_logic_op2): Likewise.
24564         (arm_iordi_operand_neon): New predicate.
24566 2013-05-31  Richard Biener  <rguenther@suse.de>
24568         PR tree-optimization/57478
24569         PR tree-optimization/57453
24570         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
24571         are life as well.
24573 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24575         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
24576         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
24578 2013-05-30  Tobias Burnus  <burnus@net-b.de>
24579             Thomas Koenig  <tkoenig@gcc.gnu.org>
24581         PR middle-end/57073
24582         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
24583         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
24585 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
24587         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
24589 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
24591         * target.def (register_usage_leveling_p): New hook.
24592         * targhooks.c (default_register_usage_leveling_p): New.
24593         * targhooks.h (default_register_usage_leveling_p): New prototype.
24594         * lra-assigns.c (register_usage_leveling_p): Use the hook.
24595         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
24596         * doc/tm.texi: Update.
24597         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
24599 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
24601         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
24602         (*insv_reg<mode>): New define_insn.
24604 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
24606         PR rtl-optimization/57439
24607         * postreload.c (move2add_valid_value_p): Check that we have
24608         a zero subreg_regno_offset when accessing the register in
24609         the requested mode.
24611 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
24612             Igor Zamyatin  <igor.zamyatin@intel.com>
24614         Silvermont (SLM) architecture pipeline model, tuning and
24615         insn selection.
24616         * config.gcc: Add slm config options and target.
24618         * config/i386/slm.md: New.
24620         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
24622         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
24623         PROCESSOR_SLM.
24624         (ix86_target_macros_internal): Likewise.
24626         * config/i386/i386.c (slm_cost): New cost.
24627         (m_SLM): New macro flag.
24628         (initial_ix86_tune_features): Set m_SLM.
24629         (x86_accumulate_outgoing_args): Likewise.
24630         (x86_arch_always_fancy_math_387): Likewise.
24631         (processor_target_table): Add slm cost.
24632         (cpu_names): Add slm cpu name.
24633         (x86_option_override_internal): Set SLM ISA.
24634         (ix86_issue_rate): New case PROCESSOR_SLM.
24635         (ia32_multipass_dfa_lookahead): Likewise.
24636         (fold_builtin_cpu): Add slm.
24638         * config/i386/i386.h (TARGET_SLM): New target macro.
24639         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
24640         (processor_type): Add PROCESSOR_SLM.
24642         * config/i386/i386.md (cpu): Add new value "slm".
24643         (slm.md): Include slm.md.
24645 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
24646             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24648         * config/arm/arm-protos.h: Add and update function protos.
24649         * config/arm/arm.c (use_simple_return_p): New added.
24650         (thumb2_expand_return): Check simple_return flag.
24651         * config/arm/arm.md: Add simple_return and conditional simple_return.
24652         * config/arm/iterators.md: Add iterator for return and simple_return.
24654 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
24656         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
24657         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
24658         (arm_emit_vfp_multi_reg_pop): Likewise.
24659         (thumb2_emit_ldrd_pop): Likewise.
24660         (arm_expand_epilogue): Add misc REG_CFA notes.
24661         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
24663 2013-05-29  Lawrence Crowl  <crowl@google.com>
24665         * config/arm/t-arm: Update for below.
24667         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
24668         Change type to hash_table.  Update dependent calls and types.
24670         * config/i386/t-cygming: Update for below.
24672         * config/i386/t-interix: Update for below.
24674         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
24675         Change type to hash_table.  Update dependent calls and types.
24676         (i386_find_on_wrapper_list::wrappers): Likewise.
24678         * config/ia64/t-ia64: Update for below.
24680         * config/ia64/ia64.c (bundle_state_table):
24681         Change type to hash_table.  Update dependent calls and types.
24683         * config/mips/mips.c (mips_reorg_process_insns::htab):
24684         Change type to hash_table.  Update dependent calls and types.
24686         * config/sol2.c (solaris_comdat_htab):
24687         Change type to hash_table.  Update dependent calls and types.
24689         * config/t-sol2: Update for above.
24691 2013-05-29  Teresa Johnson  <tejohnson@google.com>
24693         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
24694         functions are not yet marked as defined.
24696 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
24697             Pat Haugen  <pthaugen@us.ibm.com>
24698             Peter Bergner  <bergner@vnet.ibm.com>
24700         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
24701         instructions.
24702         (VEC_A): Likewise.
24703         (VEC_C): Likewise.
24704         (vrotl<mode>3): Likewise.
24705         (vashl<mode>3): Likewise.
24706         (vlshr<mode>3): Likewise.
24707         (vashr<mode>3): Likewise.
24709         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
24710         support for power8 V2DI builtins.
24712         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
24713         power8 V2DI builtins.
24714         (vupkhsw): Likewise.
24715         (vupklsw): Likewise.
24716         (vaddudm): Likewise.
24717         (vminsd): Likewise.
24718         (vmaxsd): Likewise.
24719         (vminud): Likewise.
24720         (vmaxud): Likewise.
24721         (vpkudum): Likewise.
24722         (vpksdss): Likewise.
24723         (vpkudus): Likewise.
24724         (vpksdus): Likewise.
24725         (vrld): Likewise.
24726         (vsld): Likewise.
24727         (vsrd): Likewise.
24728         (vsrad): Likewise.
24729         (vsubudm): Likewise.
24730         (vcmpequd): Likewise.
24731         (vcmpgtsd): Likewise.
24732         (vcmpgtud): Likewise.
24733         (vcmpequd_p): Likewise.
24734         (vcmpgtsd_p): Likewise.
24735         (vcmpgtud_p): Likewise.
24736         (vupkhsw): Likewise.
24737         (vupklsw): Likewise.
24738         (vaddudm): Likewise.
24739         (vmaxsd): Likewise.
24740         (vmaxud): Likewise.
24741         (vminsd): Likewise.
24742         (vminud): Likewise.
24743         (vpksdss): Likewise.
24744         (vpksdus): Likewise.
24745         (vpkudum): Likewise.
24746         (vpkudus): Likewise.
24747         (vrld): Likewise.
24748         (vsld): Likewise.
24749         (vsrad): Likewise.
24750         (vsrd): Likewise.
24751         (vsubudm): Likewise.
24753         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
24754         support for power8 V2DI instructions.
24756         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
24757         power8 V2DI instructions.  Combine pack and unpack insns to use an
24758         iterator for each mode.  Check whether a particular mode supports
24759         Altivec instructions instead of just checking TARGET_ALTIVEC.
24760         (UNSPEC_VPKUWUM): Likewise.
24761         (UNSPEC_VPKSHSS): Likewise.
24762         (UNSPEC_VPKSWSS): Likewise.
24763         (UNSPEC_VPKUHUS): Likewise.
24764         (UNSPEC_VPKSHUS): Likewise.
24765         (UNSPEC_VPKUWUS): Likewise.
24766         (UNSPEC_VPKSWUS): Likewise.
24767         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
24768         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
24769         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
24770         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
24771         (UNSPEC_VUPKHSB): Likewise.
24772         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
24773         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
24774         (UNSPEC_VUPKHSH): Likewise.
24775         (UNSPEC_VUPKLSB): Likewise.
24776         (UNSPEC_VUPKLSH): Likewise.
24777         (VI2): Likewise.
24778         (VI_char): Likewise.
24779         (VI_scalar): Likewise.
24780         (VI_unit): Likewise.
24781         (VP): Likewise.
24782         (VP_small): Likewise.
24783         (VP_small_lc): Likewise.
24784         (VU_char): Likewise.
24785         (add<mode>3): Likewise.
24786         (altivec_vaddcuw): Likewise.
24787         (altivec_vaddu<VI_char>s): Likewise.
24788         (altivec_vadds<VI_char>s): Likewise.
24789         (sub<mode>3): Likewise.
24790         (altivec_vsubcuw): Likewise.
24791         (altivec_vsubu<VI_char>s): Likewise.
24792         (altivec_vsubs<VI_char>s): Likewise.
24793         (altivec_vavgs<VI_char>): Likewise.
24794         (altivec_vcmpbfp): Likewise.
24795         (altivec_eq<mode>): Likewise.
24796         (altivec_gt<mode>): Likewise.
24797         (altivec_gtu<mode>): Likewise.
24798         (umax<mode>3): Likewise.
24799         (smax<mode>3): Likewise.
24800         (umin<mode>3): Likewise.
24801         (smin<mode>3): Likewise.
24802         (altivec_vpkuhum): Likewise.
24803         (altivec_vpkuwum): Likewise.
24804         (altivec_vpkshss): Likewise.
24805         (altivec_vpkswss): Likewise.
24806         (altivec_vpkuhus): Likewise.
24807         (altivec_vpkshus): Likewise.
24808         (altivec_vpkuwus): Likewise.
24809         (altivec_vpkswus): Likewise.
24810         (altivec_vpks<VI_char>ss): Likewise.
24811         (altivec_vpks<VI_char>us): Likewise.
24812         (altivec_vpku<VI_char>us): Likewise.
24813         (altivec_vpku<VI_char>um): Likewise.
24814         (altivec_vrl<VI_char>): Likewise.
24815         (altivec_vsl<VI_char>): Likewise.
24816         (altivec_vsr<VI_char>): Likewise.
24817         (altivec_vsra<VI_char>): Likewise.
24818         (altivec_vsldoi_<mode>): Likewise.
24819         (altivec_vupkhsb): Likewise.
24820         (altivec_vupkhs<VU_char>): Likewise.
24821         (altivec_vupkls<VU_char>): Likewise.
24822         (altivec_vupkhsh): Likewise.
24823         (altivec_vupklsb): Likewise.
24824         (altivec_vupklsh): Likewise.
24825         (altivec_vcmpequ<VI_char>_p): Likewise.
24826         (altivec_vcmpgts<VI_char>_p): Likewise.
24827         (altivec_vcmpgtu<VI_char>_p): Likewise.
24828         (abs<mode>2): Likewise.
24829         (vec_unpacks_hi_v16qi): Likewise.
24830         (vec_unpacks_hi_v8hi): Likewise.
24831         (vec_unpacks_lo_v16qi): Likewise.
24832         (vec_unpacks_hi_<VP_small_lc>): Likewise.
24833         (vec_unpacks_lo_v8hi): Likewise.
24834         (vec_unpacks_lo_<VP_small_lc>): Likewise.
24835         (vec_pack_trunc_v8h): Likewise.
24836         (vec_pack_trunc_v4si): Likewise.
24837         (vec_pack_trunc_<mode>): Likewise.
24839         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
24840         V2DI builtins.
24841         (vec_vmaxsd): Likewise.
24842         (vec_vmaxud): Likewise.
24843         (vec_vminsd): Likewise.
24844         (vec_vminud): Likewise.
24845         (vec_vpksdss): Likewise.
24846         (vec_vpksdus): Likewise.
24847         (vec_vpkudum): Likewise.
24848         (vec_vpkudus): Likewise.
24849         (vec_vrld): Likewise.
24850         (vec_vsld): Likewise.
24851         (vec_vsrad): Likewise.
24852         (vec_vsrd): Likewise.
24853         (vec_vsubudm): Likewise.
24854         (vec_vupkhsw): Likewise.
24855         (vec_vupklsw): Likewise.
24857 2013-05-29  Jan Hubicka  <jh@suse.cz>
24859         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
24860         flags; reorder rest of fields in more consistent way.
24861         (varpool_node): Remove analyzed, finalized and alias.
24862         (cgraph_ndoe): Likewise.
24863         (symtab_alias_ultimate_target): New function.
24864         (cgraph_function_node): Move offline.
24865         (cgraph_reset_node): Declare.
24866         (cgraph_comdat_can_be_unshared_p): Remove.
24867         (varpool_remove_initializer): Declare.
24868         (varpool_first_defined_variable, varpool_next_defined_variable
24869         cgraph_first_defined_function, cgraph_next_defined_function): Update.
24870         (cgraph_function_with_gimple_body_p): Update.
24871         (varpool_all_refs_explicit_p): Update.
24872         (symtab_alias_target): New function.
24873         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
24874         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
24875         (cgraph_function_or_thunk_node): Simplify using
24876         symtab_alias_ultimate_target.
24877         (varpool_variable_node): Likewise.
24878         * cgraph.c (cgraph_create_function_alias): Update.
24879         (cgraph_add_thunk): Update.
24880         (cgraph_remove_node): Update.
24881         (dump_cgraph_node): Do not dump removed flags.
24882         (cgraph_function_body_availability): Update.
24883         (cgraph_propagate_frequency): Update.
24884         (verify_cgraph_node): Check sanity of local flag.
24885         (cgraph_function_node): Move here from cgraph.h; revamp for
24886         cgraph_function_or_thunk_node.
24887         * lto-symtab.c (lto_varpool_replace_node): Update.
24888         (lto_symtab_resolve_can_prevail_p): Update.
24889         (lto_symtab_merge_cgraph_nodes): Update.
24890         * ipa-cp.c (determine_versionability, initialize_node_lattices,
24891         propagate_constants_accross_call, devirtualization_time_bonus,
24892         ipcp_propagate_stage): Update.
24893         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
24894         * ipa-inline-transform.c (clone_inlined_nodes,
24895         preserve_function_body_p): Update.
24896         * ipa-reference.c (propagate): Update.
24897         (write_node_summary_p): Update.
24898         * toplev.c (wrapup_global_declaration_2): Update.
24899         * cgraphunit.c (cgraph_analyze_function): Rename to ...
24900         (analyze_function) ... this one.
24901         (cgraph_process_new_functions): Update.
24902         (cgraph_reset_node): Export.
24903         (cgraph_finalize_function): Update.
24904         (cgraph_add_new_function): Update.
24905         (process_function_and_variable_attributes): Update.
24906         (varpool_finalize_decl): Update.
24907         (symbol_finalized): Remove.
24908         (symbol_finalized_and_needed): Rename to ...
24909         (symbol_defined_and_needed): ... update.
24910         (cgraph_analyze_functions): Update.
24911         (handle_alias_pairs): Update.
24912         (mark_functions_to_output): Update.
24913         (assemble_thunk): Update.
24914         (output_in_order): Update.
24915         (output_weakrefs): Update.
24916         (finalize_compilation_unit): Update.
24917         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
24918         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
24919         input_node, input_varpool_node): Update.
24920         * dbxout.c (dbxout_expand_expr): Update.
24921         * cgraphclones.c (cgraph_clone_node): Update.
24922         (cgraph_copy_node_for_versioning): Update.
24923         (cgraph_materialize_clone): Update.
24924         (cgraph_materialize_all_clones): Update.
24925         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
24926         propagate_pure_const, propagate_nothrow): Update.
24927         * lto-streamer-out.c (lto_output, write_symbol): Update.
24928         * ipa-utils.c (ipa_reverse_postorder): Update.
24929         * ipa-inline.c (can_inline_edge_p): Update.
24930         (update_caller_keys, ipa_inline): Update.
24931         * dwarf2out.c (reference_to_unused,
24932         premark_types_used_by_global_vars_helper): Update.
24933         * tree-eh.c (tree_could_trap_p): Update.
24934         * ipa-split.c (consider_split, execute_split_functions): Update.
24935         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
24936         has_addr_references_p): Update; move ahead in file for better
24937         readability.
24938         (process_references): Simplify.
24939         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
24940         bodies are removed.
24941         (cgraph_comdat_can_be_unshared_p): Make static.
24942         (cgraph_externally_visible_p): Update.
24943         (varpool_externally_visible_p): Update.
24944         (function_and_variable_visibility): Update.
24945         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
24946         ipa_tm_mark_force_output_node): Update.
24947         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
24948         estimate_edge_devirt_benefit, inline_generate_summary,
24949         inline_write_summary): Update.
24950         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
24951         * ipa-prop.c (ipa_compute_jump_functions): Update.
24952         (ipa_print_node_params, ipa_prop_read_section,
24953         ipa_update_after_lto_read, read_replacements_section): Update.
24954         * varasm.c (mark_decl_referenced): Update.
24955         (assemble_alias, dump_tm_clone_pairs): Update.
24956         * tree-inline.c (copy_bb): Update.
24957         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
24958         Update.
24959         * symtab.c (dump_symtab_base): Print new flags.
24960         (verify_symtab_base): Verify new flags.
24961         (symtab_alias_ultimate_target): New function.
24962         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
24963         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
24964         Update.
24965         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
24966         Update.
24967         * i386.c (ix86_get_function_versions_dispatcher,
24968         ix86_generate_version_dispatcher_body): Update.
24969         (fold_builtin_cpu): Use varpool_add_new_variable.
24970         * varpool.c (varpool_remove_initializer): Break out from ...
24971         (varpool_remove_node): ... this one.
24972         (dump_varpool_node, varpool_node_for_asm,
24973         cgraph_variable_initializer_availability, varpool_analyze_node,
24974         varpool_assemble_decl, varpool_remove_unreferenced_decls,
24975         varpool_finalize_named_section_flags, varpool_create_variable_alias):
24976         Update.
24978 2013-05-29  Jan Hubicka  <jh@suse.cz>
24980         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
24982 2013-05-29  Easwaran Raman  <eraman@google.com>
24984         PR tree-optimization/57442
24985         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
24986         when control exits the main loop.
24988 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
24990         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
24991         and RX600.
24992         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
24993         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
24994         * rx/t-rx: Add rx100 under multi library matches option for nofpu
24995         option.
24997 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24999         PR tree-optimization/57441
25000         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
25001         Don't limit size of incr_vec to number of candidates.
25003 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
25005         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
25006         and mips16 directories.
25007         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
25008         (MULTILIB_DIRNAMES): Ditto.
25009         (MULTILIB_EXCEPTIONS): Add new exceptions.
25010         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
25011         (MULTILIB_DIRNAMES): Ditto.
25012         (MULTILIB_EXCEPTIONS): Add new exceptions.
25014 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25015             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25017         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
25018         SYMBOL_TINY_ABSOLUTE.
25019         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
25020         SYMBOL_TINY_ABSOLUTE.
25021         (aarch64_expand_mov_immediate): Likewise.
25022         (aarch64_classify_symbol): Likewise.
25023         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
25024         Permit SYMBOL_TINY_ABSOLUTE.
25025         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
25027 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25028             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25030         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
25031         Refactor if/switch.  Replace gcc_assert with if.
25033 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
25035         * config/i386/i386.c (initial_ix86_tune_features): Enable
25036         FP Reassociation for AMD bdver1 and bdver2.
25038 2013-05-29  Martin Jambor  <mjambor@suse.cz>
25040         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
25041         and IMAGPART_EXPR do not occur within other handled_components.
25043 2013-05-29  Richard Biener  <rguenther@suse.de>
25045         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
25046         access on whether the use is in the BB we currently try to
25047         vectorize.
25048         (vect_bb_vectorization_profitable_p): Pass the BB we currently
25049         vectorize to vect_bb_slp_scalar_cost.
25051 2013-05-29  Richard Biener  <rguenther@suse.de>
25053         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
25054         computing scalar cost offsetted by stmts that are kept live
25055         by scalar uses.
25056         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
25057         for computation of scalar cost.
25059 2013-05-28  Steve Ellcey  <sellcey@mips.com>
25061         * config/mips/mips-cpus.def (mips32r2): Change processor type.
25063 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
25065         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
25066         array notation built-in reduction functions.
25067         * doc/passes.texi (Passes): Added documentation about changes done
25068         for Cilk Plus.
25069         * doc/invoke.texi (C Dialect Options): Added documentation about
25070         the -fcilkplus flag.
25071         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
25072         (BUILTINS_DEF): Depend on cilkplus.def.
25073         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
25074         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
25075         * cilkplus.def: New file.
25077 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
25079         PR rtl-optimization/57439
25080         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
25082 2013-05-28  Easwaran Raman  <eraman@google.com>
25084         PR tree-optimization/57337
25085         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
25086         (find_insert_point): Correctly identify the insertion point
25087         when two statements with the same UID is compared.
25089 2013-05-28  Richard Biener  <rguenther@suse.de>
25091         PR tree-optimization/56787
25092         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
25093         from the list of data references.
25094         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
25095         clobbers.
25096         (vect_analyze_loop_operations): Likewise.
25097         (vect_transform_loop): Remove clobbers.
25099 2013-05-28  Martin Jambor  <mjambor@suse.cz>
25101         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
25102         and REALPART_EXPRs have scalar type.
25104 2013-05-28  Richard Biener  <rguenther@suse.de>
25106         PR tree-optimization/57411
25107         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
25108         virtual operands.
25109         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
25110         virtual operand propagation.
25112 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
25114         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
25115         destination register for bmasksi_vis.
25116         (vector_init_bshuffle): Likewise.
25117         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
25119 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
25121         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
25122         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
25123         mode if the instruction isn't available in the original mode.
25124         * config/sparc/sparc.opt (mfix-ut699): New option.
25125         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
25126         (divdf3): Turn into expander.
25127         (divdf3_nofix): New insn.
25128         (divdf3_fix): Likewise.
25129         (divsf3): Disable if -mfix-ut699.
25130         (sqrtdf2): Turn into expander.
25131         (sqrtdf2_nofix): New insn.
25132         (sqrtdf2_fix): Likewise.
25133         (sqrtsf2): Disable if -mfix-ut699.
25135 2013-05-27  Richard Biener  <rguenther@suse.de>
25137         PR middle-end/57412
25138         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
25139         block for the new loop.
25141 2013-05-27  Richard Biener  <rguenther@suse.de>
25143         PR tree-optimization/57343
25144         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
25145         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
25146         (number_of_iterations_cond): Do not build the folded tree.
25148 2013-05-27  Richard Biener  <rguenther@suse.de>
25150         Revert
25151         PR middle-end/57381
25152         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25153         OEP_CONSTANT_ADDRESS_OF retained.
25155         PR tree-optimization/57417
25156         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
25157         for unchanged base.
25158         (set_ssa_val_to): Compare addresses using
25159         get_addr_base_and_unit_offset.
25161 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
25163         PR rtl-optimization/56833
25164         * postreload.c (move2add_record_mode): New function.
25165         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
25166         (move2add_use_add2_insn): Use move2add_record_sym_value.
25167         (move2add_use_add3_insn): Likewise.
25168         (reload_cse_move2add): Use move2add_valid_value_p and
25169         move2add_record_mode.  Invalidate call-clobbered and REG_INC
25170         affected regs by setting reg_mode to VOIDmode.
25171         (move2add_note_store): Don't pretend the inside of a SUBREG is
25172         the actual destination.  Invalidate single/leading registers by
25173         setting reg_mode to VOIDmode.
25174         Use move2add_record_sym_value, move2add_valid_value_p and
25175         move2add_record_mode.
25177 2013-05-27  Richard Biener  <rguenther@suse.de>
25179         PR tree-optimization/57396
25180         * tree-affine.c (double_int_constant_multiple_p): Properly
25181         return false for val == 0 and div != 0.
25183 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25185         * config/mips/mips.h: Use #elif in preprocessor conditions.
25187 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25189         PR target/53916
25190         * config/mips/constraints.md (kl): New constraint.
25191         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
25192         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
25193         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
25194         from LO for MIPS16.
25195         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
25197 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
25199         PR target/55777
25200         * config/mips/mips.c (mips_can_inline_p): New function.
25201         (TARGET_CAN_INLINE_P): Define.
25203 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
25205         * sched-int.h (ds_t, dw_t): Make unsigned int.
25206         Fix documentation that describes how all the ds_t bits are used.
25207         Reserve the last bit for delayed-branch scheduling.
25208         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
25209         (BITS_PER_DEP_WEAK): Fix definition and documentation.
25210         (gen_dep_weak_1): Remove prototype.
25211         * sched-deps.c (get_dep_weak_1): Make static.
25212         * target.def (speculate_insn, needs_block_p, gen_spec_check,
25213         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
25214         * doc/tm.texi: Regenerate.
25215         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
25217 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
25219         PR debug/56950
25220         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
25222 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
25223             Sandra Loosemore  <sandra@codesourcery.com>
25225         * config.gcc (powerpc-*): Allow native for with-cpu.
25227 2013-05-24  Jeff Law  <law@redhat.com>
25229         PR tree-optimization/57124
25230         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
25231         conversion feeding a condition if the range has an overflow
25232         if -fstrict-overflow.  Add warnings for when we do make the
25233         transformation.
25235 2013-05-24  Dehao Chen  <dehao@google.com>
25237         * tree-cfg.c (locus_discrim_map): Fix the typo.
25238         (locus_discrim_hasher): Likewise.
25239         (locus_discrim_hasher::hash): Likewise.
25240         (locus_discrim_hasher::equal): Likewise.
25242 2013-05-24  Martin Jambor  <mjambor@suse.cz>
25244         PR tree-optimization/57294
25245         * cgraph.h (ipa_record_stmt_references): Declare.
25246         * cgraphbuild.c (ipa_record_stmt_references): New function.
25247         (build_cgraph_edges): Use ipa_record_stmt_references.
25248         (rebuild_cgraph_edges): Likewise.
25249         (cgraph_rebuild_references): Likewise.
25250         * ipa-prop.c (ipa_modify_call_arguments): Discard references
25251         associated with the old statement and build references from the
25252         newly built statements.
25253         * ipa-ref.c (ipa_remove_stmt_references): New function.
25254         * ipa-ref.h (ipa_remove_stmt_references): Declare.
25256 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
25258         * lra-constraints.c (emit_spill_move): Use smaller mode for
25259         mem-mem moves.
25260         (check_and_process_move): Consider mem-reg moves for secondary
25261         too.
25262         (curr_insn_transform): Don't lose insns emitted before for
25263         secondary memory moves.
25264         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
25265         reg set up in the current insn.
25267 2013-05-24  Dehao Chen  <dehao@google.com>
25269         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25270         hash function.
25271         (locus_descrim_hasher::equal): Likewise.
25272         (build_gimple_cfg): New discriminator assignment algorithm.
25273         (make_edges): Likewise.
25274         (next_discriminator_for_locus): Likewise.
25275         (same_line_p): Likewise.
25276         (assign_discriminators): Likewise.
25277         (make_cond_expr_edges): Likewise.
25278         (make_gimple_switch_edges): Likewise.
25279         (make_goto_expr_edges): Likewise.
25280         (make_gimple_asm_edges): Likewise.
25282 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
25284         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
25285         X format specifier to only display bottom 16 bits.
25286         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
25287         immediate to match for operand 2, since it will be masked.
25289 2013-05-24  Richard Biener  <rguenther@suse.de>
25291         PR tree-optimization/57287
25292         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
25293         all SSA names that occur in abnormal PHIs.
25295 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
25297         PR tree-ssa/57385
25298         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
25299         that index is not negative.
25301 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
25303         PR rtl-optimization/55177
25304         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
25305         (simplify_byte_swapping_operation): New.
25306         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
25307         (simplify_relational_operation_1): Deal with BSWAP.
25309 2013-05-23  Richard Henderson  <rth@redhat.com>
25311         PR target/56742
25312         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
25313         (ix86_reorg): Call it.
25315 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
25317         PR target/57379
25318         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
25319         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
25320         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
25322 2013-05-23  Christian Bruel  <christian.bruel@st.com>
25324         PR debug/57351
25325         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
25327 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25328             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25330         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
25331         * config/aarch64/constraints.md (Usa): Remove.
25332         * doc/md.texi (AArch64 Usa): Remove.
25334 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
25335             Marcus Shawcroft  <marcus.shawcroft@arm.com>
25337         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
25338         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
25339         * config/aarch64/predicates.md (aarch64_const_address): Remove.
25340         (aarch64_mov_operand): Use aarch64_mov_operand_p.
25342 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
25344         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
25345         instruction (AdvSIMD).
25346         * config/aarch64/aarch64-builtins.c
25347         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
25348         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
25350 2013-05-23  Martin Jambor  <mjambor@suse.cz>
25352         PR middle-end/57347
25353         * tree.h (contains_bitfld_component_ref_p): Declare.
25354         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
25355         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
25356         caller.
25357         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
25358         not access a bit-field.  Assert all final offsets are byte-aligned.
25360 2013-05-23  Richard Biener  <rguenther@suse.de>
25362         PR tree-optimization/57380
25363         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
25364         least one invariant or re-used load.
25365         * passes.c (init_optimization_passes): Move pass_phiprop before
25366         pass_forwprop.
25368 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
25370         * config/aarch64/aarch64-simd.md
25371         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
25373 2013-05-23  Richard Biener  <rguenther@suse.de>
25375         PR middle-end/57381
25376         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
25377         OEP_CONSTANT_ADDRESS_OF retained.
25379 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
25381         PR middle-end/57344
25382         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
25383         don't lower unit.  Handle unit not being always BITS_PER_WORD.
25385 2013-05-23  Richard Biener  <rguenther@suse.de>
25387         PR rtl-optimization/57341
25388         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
25389         instead of true_dependence.
25391 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
25393         * bb-reorder.c (branch_threshold): Make const.
25394         (exec_threshold): Ditto.
25396 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
25397             Pat Haugen  <pthaugen@us.ibm.com>
25398             Peter Bergner  <bergner@vnet.ibm.com>
25400         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
25401         documentation for the power8 crypto builtins.
25403         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
25405         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
25406         macros for defining power8 builtin functions.
25407         (BU_P8V_AV_2): Likewise.
25408         (BU_P8V_AV_P): Likewise.
25409         (BU_P8V_VSX_1): Likewise.
25410         (BU_P8V_OVERLOAD_1): Likewise.
25411         (BU_P8V_OVERLOAD_2): Likewise.
25412         (BU_CRYPTO_1): Likewise.
25413         (BU_CRYPTO_2): Likewise.
25414         (BU_CRYPTO_3): Likewise.
25415         (BU_CRYPTO_OVERLOAD_1): Likewise.
25416         (BU_CRYPTO_OVERLOAD_2): Likewise.
25417         (XSCVSPDP): Fix typo, point to the correct instruction.
25418         (VCIPHER): Add power8 crypto builtins.
25419         (VCIPHERLAST): Likewise.
25420         (VNCIPHER): Likewise.
25421         (VNCIPHERLAST): Likewise.
25422         (VPMSUMB): Likewise.
25423         (VPMSUMH): Likewise.
25424         (VPMSUMW): Likewise.
25425         (VPERMXOR_V2DI): Likewise.
25426         (VPERMXOR_V4SI: Likewise.
25427         (VPERMXOR_V8HI: Likewise.
25428         (VPERMXOR_V16QI: Likewise.
25429         (VSHASIGMAW): Likewise.
25430         (VSHASIGMAD): Likewise.
25431         (VPMSUM): Likewise.
25432         (VPERMXOR): Likewise.
25433         (VSHASIGMA): Likewise.
25435         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
25436         __CRYPTO__ if the crypto instructions are available.
25437         (altivec_overloaded_builtins): Add support for overloaded power8
25438         builtins.
25440         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
25441         support for power8 crypto builtins.
25442         (builtin_function_type): Likewise.
25443         (altivec_init_builtins): Add support for builtins that take vector
25444         long long (V2DI) arguments.
25446         * config/rs6000/crypto.md: New file, define power8 crypto
25447         instructions.
25449 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
25450             Pat Haugen  <pthaugen@us.ibm.com>
25451             Peter Bergner  <bergner@vnet.ibm.com>
25453         * doc/invoke.texi (Option Summary): Add power8 options.
25454         (RS/6000 and PowerPC Options): Likewise.
25456         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
25457         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
25458         wm, wn, wr documentation.
25460         * config/rs6000/constraints.md (wm): New constraint for VSX
25461         registers if direct move instructions are enabled.
25462         (wn): New constraint for no registers.
25463         (wq): New constraint for quad word even GPR registers.
25464         (wr): New constraint if 64-bit instructions are enabled.
25465         (wv): New constraint if power8 vector instructions are enabled.
25466         (wQ): New constraint for quad word memory locations.
25468         * config/rs6000/predicates.md (const_0_to_15_operand): New
25469         constraint for 0..15 for crypto instructions.
25470         (gpc_reg_operand): If VSX allow registers in VSX registers as well
25471         as GPR and floating point registers.
25472         (int_reg_operand): New predicate to match only GPR registers.
25473         (base_reg_operand): New predicate to match base registers.
25474         (quad_int_reg_operand): New predicate to match even GPR registers
25475         for quad memory operations.
25476         (vsx_reg_or_cint_operand): New predicate to allow vector logical
25477         operations in both GPR and VSX registers.
25478         (quad_memory_operand): New predicate for quad memory operations.
25479         (reg_or_indexed_operand): New predicate for direct move support.
25481         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
25482         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
25483         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
25484         (POWERPC_MASKS): Add power8 options.
25485         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
25486         various options.
25488         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
25489         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
25491         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
25492         (-mpower8-fusion): New power8 options.
25493         (-mpower8-fusion-sign): Likewise.
25494         (-mpower8-vector): Likewise.
25495         (-mcrypto): Likewise.
25496         (-mdirect-move): Likewise.
25497         (-mquad-memory): Likewise.
25499         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
25500         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
25501         registers.
25502         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
25503         (rs6000_debug_vector_unit): Add p8_vector.
25504         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
25505         definitions.  Also print fusion state.
25506         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
25507         (rs6000_builtin_mask_calculate): Add power8 builtin support.
25508         (rs6000_option_override_internal): Add support for power8.
25509         (rs6000_common_init_builtins): Add debugging for skipped builtins
25510         if -mdebug=builtin.
25511         (rs6000_adjust_cost): Add power8 support.
25512         (rs6000_issue_rate): Likewise.
25513         (insn_must_be_first_in_group): Likewise.
25514         (insn_must_be_last_in_group): Likewise.
25515         (force_new_group): Likewise.
25516         (rs6000_register_move_cost): Likewise.
25517         (rs6000_opt_masks): Likewise.
25519         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
25520         power8 capable assembler, default to power7 options.
25521         (TARGET_DIRECT_MOVE): Likewise.
25522         (TARGET_CRYPTO): Likewise.
25523         (TARGET_P8_VECTOR): Likewise.
25524         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
25525         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
25526         (VECTOR_MEM_P8_VECTOR_P): Likewise.
25527         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
25528         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
25529         (TARGET_XSCVDPSPN): Likewise.
25530         (TARGET_XSCVSPDPN): Likewsie.
25531         (TARGET_SYNC_HI_QI): Likewise.
25532         (TARGET_SYNC_TI): Likewise.
25533         (MASK_CRYPTO): Likewise.
25534         (MASK_DIRECT_MOVE): Likewise.
25535         (MASK_P8_FUSION): Likewise.
25536         (MASK_P8_VECTOR): Likewise.
25537         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
25538         temporary used by some of the direct move instructions to get two FP
25539         temporary registers does not force creation of a stack frame.
25540         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
25541         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
25542         that any VSX registers are tieable, even if they are also an
25543         Altivec vector mode.
25544         (r6000_reg_class_enum): Add wm, wr, wv constraints.
25545         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
25546         (RS6000_BTM_CRYPTO): Likewise.
25547         (RS6000_BTM_COMMON): Likewise.
25549         * config/rs6000/rs6000.md (cpu attribute): Add power8.
25550         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
25551         (enum rs6000_vector): Add power8 vector support.
25553 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25555         PR target/19599
25556         PR target/57340
25557         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
25558         (any_sibcall_could_use_r3): this and handle indirect calls.
25559         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
25561 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25563         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
25565 2013-05-22  Richard Biener  <rguenther@suse.de>
25567         PR middle-end/57349
25568         * profile.c (branch_prob): Do not split blocks that are
25569         abnormally receiving from ECF_RETURNS_TWICE functions.
25571 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
25573         * recog.c (offsettable_address_addr_space_p): Fix calculation of
25574         address mode.  Move pointer mode initialization to the same place.
25576 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
25578         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
25579         while it has any effect.
25581 2013-05-21  Easwaran Raman  <eraman@google.com>
25583         PR tree-optimization/57322
25584         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
25585         UID of the statement added to the BB to be 1.
25587 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
25589         PR tree-optimization/57331
25590         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
25591         of conversion from pointer type to integral type with integer.
25593 2013-05-21  Martin Jambor  <mjambor@suse.cz>
25595         PR lto/57289
25596         * ipa-prop.c (ipa_read_node_info): Process param_used and
25597         controlled_uses in the same order as when writing.
25599 2013-05-21  Magnus Granberg  <baldrick@free.fr>
25601         PR plugins/56754
25602         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
25604 2013-05-21  Richard Biener  <rguenther@suse.de>
25606         PR tree-optimization/57318
25607         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
25608         estimate stmts with side-effects as likely eliminated.
25610 2013-05-21  Richard Biener  <rguenther@suse.de>
25612         PR tree-optimization/57330
25613         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
25614         preserve the call stmts fntype.
25616 2013-05-21  Richard Biener  <rguenther@suse.de>
25618         PR tree-optimization/57303
25619         * tree-ssa-sink.c (statement_sink_location): Improve killing
25620         stmt detection and properly handle self-assignments.
25622 2013-05-21  Christian Bruel  <christian.bruel@st.com>
25624         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
25625         spanning registers. LEAF_REG_REMAP is supported only for contiguous
25626         registers. Set register size out of the PARALLEL loop.
25628 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
25630         PR target/56547
25631         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
25632         (*fmasf4, *fmasf4_media): New insns.
25634 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25636         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
25637         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
25638         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
25639         (mips_idiv_insns): Update the comments to say that the returned
25640         instruction counts are in units of BASE_INSN_LENGTH.
25641         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
25642         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
25643         using 2 rather than 4 as the length of indirect MIPS16 and
25644         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
25645         length of a NOP.  Don't divide MIPS16 lengths by 2.
25646         (mips16_split_long_branches): Assume a branch is long if the
25647         length is greater than 4 rather than 8.
25648         * config/mips/mips.md (length): Give MIPS16 lengths directly,
25649         rather than multiplying them by 2.  Multiply instruction counts
25650         by BASE_INSN_LENGTH rather than 4.
25651         (*jump_mips16, tls_get_tp_mips16_<mode>)
25652         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
25654 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25656         * config/mips/mips.md (extended_mips16): Remove branch case.
25657         (length): Remove duplicated extended_mips16 test.
25659 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25661         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
25663 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
25665         * recog.h (Recog_data): Rename to...
25666         (recog_data_d): ...this.
25667         (recog_data): Update accordingly.
25668         * recog.c (recog_data): Likewise.
25669         * reload.c (save_recog_data): Likewise.
25670         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
25671         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
25673 2013-05-17  Julian Brown  <julian@codesourcery.com>
25675         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
25676         found in a REG_EQUAL note, invalidate it.
25678 2013-05-17  Easwaran Raman  <eraman@google.com>
25680         * tree-ssa-reassoc.c (find_insert_point): New function.
25681         (insert_stmt_after): Likewise.
25682         (get_def_stmt): Likewise.
25683         (ensure_ops_are_available): Likewise.
25684         (not_dominated_by): Likewise.
25685         (rewrite_expr_tree): Do not move statements beyond what is
25686         necessary. Remove call to swap_ops_for_binary_stmt...
25687         (reassociate_bb): ... and move it here.
25688         (build_and_add_sum): Assign UIDs for new statements.
25689         (linearize_expr): Likewise.
25690         (do_reassoc): Renumber gimple statement UIDs.
25692 2013-05-17  Jan Hubicka  <jh@suse.cz>
25694         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
25695         weakrefs.
25696         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
25697         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
25698         weakrefs.
25699         (output_weakrefs): Update.
25701 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
25702             Martin Jambor  <mjambor@suse.cz>
25704         PR middle-end/57276
25705         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
25706         value that corresponds to the given aggval is found in values vector.
25708 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
25710         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
25711         sse, sse2, sse3, ssse3 and sse4a flags to options.
25713 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
25715         * gengtype-state.c: (s_expr_writer): New class, to handle
25716         prettifying of output layout of s-expressions.
25717         (state_writer): New class, to write out gtype.state.
25718         (state_written_type_count): Move this variable into member data of
25719         state_writer.
25720         (s_expr_writer::s_expr_writer): New code: constructor for new class
25721         (state_writer::state_writer(): ditto
25722         (s_expr_writer::write_new_line): New function
25723         (s_expr_writer::write_any_indent): ditto
25724         (s_expr_writer::begin_s_expr): ditto
25725         (s_expr_writer::end_s_expr): ditto
25726         (write_state_fileloc): convert to method of state_writer...
25727         (state_writer:: write_state_fileloc): ...and use methods of
25728         s_expr_writer to write indentation into the gtype.state output file
25729         to visually represent the hierarchical structure of the list
25730         structures
25731         (write_state_fields): ditto, renaming to...
25732         (state_writer::write_state_fields)
25733         (write_state_a_string): ditto, renaming to...
25734         (state_writer::write_state_a_string)
25735         (write_state_string_option): ditto, renaming to...
25736         (state_writer::write_state_string_option)
25737         (write_state_type_option): ditto, renaming to...
25738         (state_writer::write_state_type_option)
25739         (write_state_nested_option): ditto, renaming to...
25740         (state_writer::write_state_nested_option)
25741         (write_state_option): ditto, renaming to...
25742         (state_writer::write_state_option)
25743         (write_state_options): ditto, renaming to...
25744         (state_writer::write_state_options)
25745         (write_state_lang_bitmap): ditto, renaming to...
25746         (state_writer::write_state_lang_bitmap)
25747         (write_state_version): ditto, renaming to...
25748         (state_writer::write_state_version)
25749         (write_state_scalar_type): ditto, renaming to...
25750         (state_writer::write_state_scalar_type)
25751         (write_state_string_type): ditto, renaming to...
25752         (state_writer::write_state_string_type)
25753         (write_state_undefined_type): ditto, renaming to...
25754         (state_writer::write_state_undefined_type)
25755         (write_state_struct_union_type): ditto, renaming to...
25756         (state_writer::write_state_struct_union_type)
25757         (write_state_struct_type): ditto, renaming to...
25758         (state_writer::write_state_struct_type)
25759         (write_state_user_struct_type): ditto, renaming to...
25760         (state_writer::write_state_user_struct_type)
25761         (write_state_lang_struct_type): ditto, renaming to...
25762         (state_writer::write_state_lang_struct_type)
25763         (write_state_param_struct_type): ditto, renaming to...
25764         (state_writer::write_state_param_struct_type)
25765         (write_state_pointer_type): ditto, renaming to...
25766         (state_writer::write_state_pointer_type)
25767         (write_state_array_type): ditto, renaming to...
25768         (state_writer::write_state_array_type)
25769         (write_state_gc_used): ditto, renaming to...
25770         (state_writer::write_state_gc_used)
25771         (write_state_common_type_content): ditto, renaming to...
25772         (state_writer::write_state_common_type_content)
25773         (write_state_type): ditto, renaming to...
25774         (state_writer::write_state_type)
25775         (write_state_pair_list): ditto, renaming to...
25776         (state_writer::write_state_pair_list)
25777         (write_state_pair): ditto, renaming to...
25778         (state_writer::write_state_pair)
25779         (write_state_typedefs): ditto, renaming to...
25780         (state_writer::write_state_typedefs)
25781         (write_state_structures): ditto, renaming to...
25782         (state_writer::write_state_structures)
25783         (write_state_param_structs): ditto, renaming to...
25784         (state_writer::write_state_param_structs)
25785         (write_state_variables): ditto, renaming to...
25786         (state_writer::write_state_variables)
25787         (write_state_srcdir): ditto, renaming to...
25788         (state_writer::write_state_srcdir)
25789         (write_state_files_list): ditto, renaming to...
25790         (state_writer::write_state_files_list)
25791         (write_state_languages): ditto, renaming to...
25792         (state_writer::write_state_languages)
25793         (write_state): create a state_writer instance and use it when
25794         writing out the state file
25796 2013-05-17  Mike Stump  <mikestump@comcast.net>
25798         PR rtl-optimization/57304
25799         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
25800         accessing DF_REF_REAL_LOC.
25802 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
25804         PR rtl-optimization/57281
25805         PR rtl-optimization/57300
25806         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
25807         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
25808         what the other splitter did if the registers are dead.
25810 2013-05-17  Richard Biener  <rguenther@suse.de>
25812         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
25813         MEM_REF offsets.
25815 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
25817         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
25818         linking.
25820 2013-05-17  Marek Polacek  <polacek@redhat.com>
25822         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
25823         length when doing non-zero store of storing '\0' to '\0'.
25825 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
25827         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
25828         vect_external_def oprnd1 with loop_vinfo, try to emit
25829         optional cast, negation and and stmts on the loop preheader
25830         edge instead of into the pattern def seq.
25832         PR tree-optimization/57051
25833         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
25834         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
25836 2013-05-16  Nick Clifton  <nickc@redhat.com>
25838         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
25839         (rl78_is_naked_func): New function.
25840         (rl78_expand_prologue): Skip prologue generation for naked functions.
25841         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
25842         * doc/extend.texi (naked): Add RL78 to the list of processors
25843         that supports this attribute.
25845 2013-05-16  Jeff Law  <law@redhat.com>
25847         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
25849 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
25851         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
25852         cache parameters using detect_caches_amd also for CYRIX,
25853         NSC and TM2 signatures.
25855 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
25856             Dzianis Kahanovich  <mahatma@eu.by>
25858         PR target/45359
25859         PR target/46396
25860         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25861         VIA/Centaur processors and determine their cache parameters
25862         using detect_caches_amd.
25864 2013-05-16  Teresa Johnson  <tejohnson@google.com>
25866         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
25867         (rtl_verify_edges): New function.
25868         (rtl_verify_bb_insns): Ditto.
25869         (rtl_verify_bb_pointers): Ditto.
25870         (rtl_verify_bb_insn_chain): Ditto.
25871         (rtl_verify_fallthru): Ditto.
25872         (rtl_verify_bb_layout): Ditto.
25873         (rtl_verify_flow_info_1): Outline checks into new functions.
25874         (rtl_verify_flow_info): Ditto.
25876 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
25878         * cfghooks.c (copy_bbs): Add update_dominance argument.
25879         * cfghooks.h (copy_bbs): Update prototype.
25880         * tree-cfg.c (gimple_duplicate_sese_region):
25881         Add update_dominance argument.
25882         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
25883         * tree-ssa-loop-ch.c (copy_loop_headers): Update
25884         gimple_duplicate_sese_region call.
25885         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
25886         Update copy_bbs call.
25887         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
25888         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
25890 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
25892         * tree-vectorizer.h (NUM_PATTERNS): Increment.
25893         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
25894         vect_recog_rotate_pattern.
25895         (vect_recog_rotate_pattern): New function.
25897 2013-05-16  Jason Merrill  <jason@redhat.com>
25899         * Makefile.in (LLINKER): New variable.
25900         (mostlyclean): Remove link mutex.
25901         * configure.ac: Handle --enable-link-mutex.
25902         * lock-and-run.sh: New script.
25904 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25906         PR target/19599
25907         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
25908         for NULL decl.
25910 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25912         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
25914 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
25916         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
25917         * config/arm/arm.c (next_consecutive_mem): New function.
25918         (gen_movmem_ldrd_strd): Likewise.
25919         * config/arm/arm.md (movmemqi): Update condition and code.
25920         (unaligned_loaddi, unaligned_storedi): New patterns.
25922 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25924         * config.gcc: Obsolete *-*-solaris2.9*.
25925         * doc/install.texi (Specific, *-*-solaris2*): Document it.
25927 2013-05-16  Richard Biener  <rguenther@suse.de>
25929         * passes.c (init_optimization_passes): Move pass_parallelize_loops
25930         earlier, after GRAPHITE transforms and IV canonicalization.
25932 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
25934         * omp-low.c (extract_omp_for_data): For collapsed loops,
25935         if at least one of the loops is known at compile time to
25936         iterate zero times, set count to 0.
25937         (expand_omp_regimplify_p): New function.
25938         (expand_omp_for_generic): For collapsed loops, if at least
25939         one of the loops isn't known to iterate at least once,
25940         add runtime check with setting count to 0.
25941         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
25942         For unsigned types if it isn't known at compile time that
25943         the loop will iterate at least once, add runtime check to bypass
25944         the whole loop if initial condition isn't true.
25946 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
25948         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
25950 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
25952         PR middle-end/57286
25953         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
25954         transformations to avoid an infinite loop.
25956 2013-05-16  Marek Polacek  <polacek@redhat.com>
25958         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
25960 2013-05-15  Leif Ekblad  <leif@rdos.net>
25962         * config/i386/i386.c (ix86_decompose_address): Use
25963         DEFAULT_TLS_SEG_REG to access TLS segment register.
25964         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
25965         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
25966         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
25968 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
25970         PR target/57260
25971         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
25972         sibling calls to functions that would normally be lazily bound,
25973         unless $gp is call-clobbered.
25975 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
25977         * config/i386/i386.c (ix86_option_override_internal): Update
25978         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
25979         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
25980         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
25981         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
25982         of TARGET_3DNOW.
25983         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
25985 2013-05-15  Andreas Schwab  <schwab@suse.de>
25987         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
25988         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
25989         third operand.
25991 2013-05-15  Teresa Johnson  <tejohnson@google.com>
25993         * loop-unroll.c (report_unroll_peel): Check decision before
25994         emitting unroll/peel message.
25996 2013-05-15  Teresa Johnson  <tejohnson@google.com>
25998         * function.h (has_bb_partition): New rtl_data flag.
25999         (bb_reorder_complete): Ditto.
26000         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
26001         instead of flag_reorder_blocks_and_partition.
26002         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
26003         with some enhancements.
26004         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
26005         * bb-reorder.c (connect_traces): Check for has_bb_partition
26006         instead of flag_reorder_blocks_and_partition.
26007         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
26008         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
26009         verify_hot_cold_block_grouping.
26010         (partition_hot_cold_basic_blocks): Set has_bb_partition.
26012 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26014         PR target/19599
26015         * config/arm/predicates.md (call_insn_operand): New predicate.
26016         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
26017         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
26018         if insn is not a tail call.
26019         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
26020         registers.
26021         * config/arm/arm.h (enum reg_class): New caller save register class.
26022         (REG_CLASS_NAMES): Likewise.
26023         (REG_CLASS_CONTENTS): Likewise.
26024         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
26025         without decls.
26027 2013-05-15  Richard Biener  <rguenther@suse.de>
26029         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
26030         of MSG_OPTIMIZED_LOCATIONS.
26031         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
26032         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
26033         message.
26034         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
26035         of MSG_OPTIMIZED_LOCATIONS.
26036         (execute_vect_slp): Likewise.
26037         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
26038         (vect_create_cond_for_alias_checks): Likewise.
26039         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
26040         (vect_recog_widen_mult_pattern): Likewise.
26041         (vect_recog_widen_sum_pattern): Likewise.
26042         (vect_recog_over_widening_pattern): Likewise.
26043         (vect_recog_widen_shift_pattern): Likewise.
26044         (vect_recog_vector_vector_shift_pattern): Likewise.
26045         (vect_recog_divmod_pattern): Likewise.
26046         (vect_recog_mixed_size_cond_pattern): Likewise.
26047         (vect_recog_bool_pattern): Likewise.
26048         (vect_pattern_recog_1): Likewise.
26050 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26052         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
26053         non-functions to builtin_unreachable.
26054         * ipa-inline-transform.c (inline_call): Do not assert estimates were
26055         correct when new direct edges were discovered.
26057 2013-05-15  Martin Jambor  <mjambor@suse.cz>
26059         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
26060         header, print symbol order instead of node uid, print more information
26061         about indirect edge targets.
26062         (ipa_make_edge_direct_to_target): Print symbol order instead of node
26063         uids.
26064         (ipa_make_edge_direct_to_target): Likewise.
26065         (remove_described_reference): Likewise.
26066         (propagate_controlled_uses): Likewise.
26067         (ipa_print_node_params): Also print symbol order.
26068         (ipcp_transform_function): Print symbol order instead of node uids.
26069         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
26070         (cgraph_get_create_real_symbol_node): Likewise.
26071         * ipa-cp.c (print_lattice): Likewise.
26072         (print_all_lattices): Likewise.
26073         (determine_versionability): Likewise.
26074         (initialize_node_lattices): Likewise.
26075         (estimate_local_effects): Likewise.
26076         (update_profiling_info): Likewise.
26077         (create_specialized_node): Likewise.
26078         (perhaps_add_new_callers): Likewise.
26079         (decide_about_value): Likewise.
26080         (decide_whether_version_node): Likewise.
26081         (identify_dead_nodes): Likewise.
26082         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
26083         (dump_inline_summary): Likewise.
26084         (estimate_node_size_and_time): Likewise.
26085         (inline_analyze_function): Likewise.
26086         * ipa-inline.c (report_inline_failed_reason): Likewise.
26087         (want_early_inline_function_p): Likewise.
26088         (edge_badness): Likewise.
26089         (update_edge_key): Likewise.
26090         (inline_small_functions): Likewise.  Add dumping of order to two other
26091         dumps.
26092         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
26093         instead of node uids.
26094         (propagate_pure_const): Likewise.
26095         (propagate_pure_const): Likewise.
26096         * ipa-utils.c (dump_cgraph_node_set): Likewise.
26097         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
26098         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
26099         of node uids.
26100         * tree-pretty-print.c (dump_function_header): Likewise.
26101         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
26102         Print symbol order instead of node uids.
26104 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26106         * config/s390/s390.c (s390_register_move_cost): Don't impose the
26107         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
26109 2013-05-15  Richard Biener  <rguenther@suse.de>
26111         PR tree-optimization/57275
26112         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
26113         return value for fail to do runtime alias checks for gather loads.
26115 2013-05-15  Jan Hubicka  <jh@suse.cz>
26117         PR lto/57038
26118         PR lto/47375
26119         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
26120         weakrefs are not external.
26121         (lto_symtab_merge_decls): Fix thinko when dealing with
26122         non-lto_symtab decls.
26123         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
26124         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
26125         * varpool.c (dump_varpool_node): Dump more flags.
26127 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26129         * config/i386/i386.c (processor_alias_table): Add instruction
26130         FSGSBASE for AMD bdver3 architecture.
26132 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26134         * tree.c (warn_deprecated_use): Print file:line using locus color.
26135         * diagnostic.c (diagnostic_report_current_module): Print file:line
26136         and file:line:column using locus color.
26138 2013-05-14  Mike Stump  <mikestump@comcast.net>
26140         * gdbinit.in: Add __null.
26142 2013-05-14  Mike Stump  <mikestump@comcast.net>
26144         * recog.h: Rename struct recog_data to Recog_data.
26145         * recog.c: Likewise.
26146         * reload.c (can_reload_into): Likewise.
26147         * config/picochip/picochip.c: Likewise.
26149 2013-05-14  Mike Stump  <mikestump@comcast.net>
26151         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
26153 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
26155         * resource.h (struct resources): Remove unch_memory member.
26156         (CLEAR_RESOURCE): Don't clear unch_memory.
26157         * resource.c (mark_referenced_resources): Don't set it.
26158         (mark_set_resources): Likewise.
26159         (mark_target_live_regs): Don't clear it.
26160         (init_resource_info): Likewise.
26161         * reorg.c (resource_conflicts_p): Don't compare it.
26162         (redundant_insn): Don't set it.
26164         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
26165         Remove prototypes.
26166         * emit-rtl.c (next_label): Remove unused function.
26167         (skip_consecutive_labels, link_cc0_insns): Move to ...
26168         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
26169         only place where these functions are used, and make them static.
26171 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
26173         * fold-const.c (fold_negate_expr): Handle vectors.
26174         (fold_truth_not_expr): Make it static.
26175         (fold_invert_truthvalue): New static function.
26176         (invert_truthvalue_loc): Handle vectors. Do not call
26177         fold_truth_not_expr directly.
26178         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
26179         <TRUTH_NOT_EXPR>: Do not cast to boolean.
26180         (fold_comparison): Handle vector constants.
26181         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
26182         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
26183         * tree.h (fold_truth_not_expr): Remove declaration.
26185 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
26187         * config/aarch64/aarch64-simd.md
26188         (aarch64_vcond_internal<mode>): Rename to...
26189         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
26190         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
26191         float modes. Clarify all iterator modes.
26192         (vcond<mode><mode>): Use new name for vcond expanders.
26193         (vcond<v_cmp_result><mode>): Likewise.
26194         (vcondu<mode><mode>: Likewise.
26195         * config/aarch64/iterators.md (VDQF_COND): New.
26197 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
26199         PR bootstrap/57266
26200         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
26201         variable for the shift amount. Check that we shift by non-negative
26202         amounts.
26204 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
26206         PR target/42017
26207         * config/arm/arm.h (EPILOGUE_USES): Only return true
26208         for LR_REGNUM after epilogue_completed.
26210 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
26212         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
26213         is error_mark_node.
26215 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26217         PR target/57261
26218         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
26219         and Solaris 11+/x86 with gld.
26220         * configure: Regenerate.
26222 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26224         * expmed.c (expand_shift_1): Canonicalize rotates by
26225         constant bitsize / 2 to bitsize - 1.
26226         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
26227         case ROTATERT>: Likewise.
26229         Revert:
26230         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
26232         * config/i386/i386.md (rotateinv): New code attr.
26233         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26234         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26235         roll $31, %eax, etc.
26237 2013-05-14  Richard Biener  <rguenther@suse.de>
26239         PR middle-end/57235
26240         * tree-eh.c (sink_clobbers): Give up for successors with
26241         multiple predecessors and no virtual uses.
26243 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
26245         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
26246         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
26248 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
26250         PR middle-end/57251
26251         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
26252         the case when both op0 and op1 have VOIDmode.
26254 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
26256         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
26257         in multiply-accumulate mode.
26259 2013-05-13  Guozhi Wei  <carrot@google.com>
26261         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
26263 2013-05-13  Kai Tietz  <ktietz@redhat.com>
26265         PR target/56975
26266         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
26267         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
26268         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
26269         * config/i386/i386.c (ix86_option_override_internal): Likewise.
26270         (ix86_expand_prologue): Likewise.
26271         (ix86_expand_split_stack_prologue): Likewise.
26272         (legitimate_pic_address_disp_p): Likewise.
26273         (legitimize_pic_address): Likewise.
26274         (legitimize_tls_address): Likewise.
26275         (legitimize_pe_coff_symbol): Likewise.
26276         (output_pic_addr_const): Likewise.
26277         (construct_plt_address): Likewise.
26278         (ix86_expand_call): Likewise.
26279         (x86_output_mi_thunk): Likewise.
26280         (x86_function_profiler): Likewise.
26282 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
26284         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
26285         similar switch cases.
26286         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
26287         (aarch64_simd_mov_to_<mode>low): Delete.
26288         (aarch64_simd_mov_to_<mode>high): Delete.
26289         (move_lo_quad_<mode>): Add w<-r alternative.
26290         (aarch64_simd_move_hi_quad_<mode>): Likewise.
26291         (aarch64_simd_mov_from_*): Update type attribute.
26292         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
26293         statement.
26295 2013-05-13  Jan Hubicka  <jh@suse.cz>
26297         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
26298         * config/i386/i386.c (ix86_compute_frame_layout,
26299         ix86_expand_epilogue, emit_i387_cw_initialization,
26300         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
26301         ix86_local_alignment): Fix use of size/speed predicates.
26303 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
26305         PR tree-optimization/45216
26306         PR tree-optimization/57157
26307         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
26308         the (-Y) & (B - 1) variant if OP is |.
26309         * expmed.c (expand_shift_1): For rotations by const0_rtx just
26310         return shifted.  Use (-op1) & (prec - 1) as other_amount
26311         instead of prec - op1.
26313 2013-05-13  Martin Jambor  <mjambor@suse.cz>
26315         PR middle-end/42371
26316         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
26317         (ipa_constant_data): New type.
26318         (ipa_jump_func): Use ipa_constant_data to hold information about
26319         constant jump functions.
26320         (ipa_get_jf_constant): Adjust to jump function type changes.
26321         (ipa_get_jf_constant_rdesc): New function.
26322         (ipa_param_descriptor): New field controlled_uses.
26323         (ipa_get_controlled_uses): New function.
26324         (ipa_set_controlled_uses): Likewise.
26325         * ipa-ref.h (ipa_find_reference): Declare.
26326         * ipa-prop.c (ipa_cst_ref_desc): New type.
26327         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
26328         changes.
26329         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
26330         New parameter cs.  Adjust all callers.
26331         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
26332         (remove_described_reference): New function.
26333         (jfunc_rdesc_usable): Likewise.
26334         (try_make_edge_direct_simple_call): Decrement controlled use count,
26335         attempt to remove reference if it hits zero.
26336         (combine_controlled_uses_counters): New function.
26337         (propagate_controlled_uses): Likewise.
26338         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
26339         (ipa_edge_duplication_hook): Duplicate reference descriptions.
26340         (ipa_print_node_params): Print described use counter.
26341         (ipa_write_jump_function): Adjust to jump function type changes.
26342         (ipa_read_jump_function): New parameter CS, pass it to
26343         ipa_set_jf_constant.  Adjust caller.
26344         (ipa_write_node_info): Stream controlled use count
26345         (ipa_read_node_info): Likewise.
26346         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
26347         asserting.
26348         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
26349         count.  Remove cloning-added reference if it reaches zero.
26350         * ipa-ref.c (ipa_find_reference): New function.
26352 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
26354         * config/i386/i386.c (processor_target_table): Modified default
26355         alignment values for AMD BD and BT architectures.
26357 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
26359         * tree-vect-generic.c (uniform_vector_p): Move ...
26360         * tree.c (uniform_vector_p): ... here.
26361         * tree.h (uniform_vector_p): Declare it.
26362         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
26363         into a scalar.
26365 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
26367         PR tree-optimization/57230
26368         * tree-ssa-strlen.c (handle_char_store): Record length for
26369         array store from STRING_CST.
26371         PR tree-optimization/57230
26372         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
26373         check.
26375 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
26377         * config/epiphany/epiphany.c (epiphany_init): Check size of
26378         NUM_MODES_FOR_MODE_SWITCHING.
26379         (epiphany_expand_prologue):
26380         Remove CONFIG_REGNUM initial value handling code.
26381         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
26382         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
26383         (emit_set_fp_mode, epiphany_mode_after): Likewise.
26384         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
26385         Don't return 1 for FP_MODE_NONE.
26386         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
26387         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
26388         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
26389         * config/epiphany/epiphany.md (save_config): New pattern.
26391 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
26393         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
26395 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
26397         * config/i386/i386.md (memory): Handle sseishft1.
26398         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
26399         (*vec_extractv2di_1): Ditto.
26401 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
26403         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
26404         saved registers.
26406 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
26408         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
26409         Add mthumb/march=armv7-a multilib.
26410         Add mthumb/march=armv7-r multilib.
26411         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
26413 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
26415         * config/v850/t-rtems: Add more multilibs.
26417 2013-05-10  Richard Biener  <rguenther@suse.de>
26419         PR tree-optimization/57214
26420         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
26421         not propagate from SSA names that occur in abnormal PHI nodes.
26423 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
26425         * stor-layout.c (element_precision): New function.
26426         * machmode.h (element_precision): Declare it.
26427         * tree.c (build_minus_one_cst): New function.
26428         (element_precision): Likewise.
26429         * tree.h (build_minus_one_cst): Declare new function.
26430         (element_precision): Likewise.
26431         * fold-const.c (operand_equal_p): Use element_precision.
26432         (fold_binary_loc): Handle vector types.
26433         * convert.c (convert_to_integer): Use element_precision.
26434         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
26435         separately.
26437 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
26439         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
26440         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
26441         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
26442         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26443         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
26444         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
26445         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
26446         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
26447         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
26448         (Uuw8): New constraints.
26449         (Usb4): Move into alphabetical order.
26450         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
26451         (sd8_operand, ub8_operand, uw8_operand): New predicates.
26452         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
26453         previously unnamed patterns.
26454         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
26455         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
26456         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
26457         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
26458         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
26459         of specific lengths.
26461 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
26463         * config/i386/i386.md (rotateinv): New code attr.
26464         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
26465         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
26466         roll $31, %eax, etc.
26468         PR tree-optimization/45216
26469         PR tree-optimization/57157
26470         * tree-ssa-forwprop.c (simplify_rotate): New function.
26471         (ssa_forward_propagate_and_combine): Call it.
26473 2013-05-10  Richard Biener  <rguenther@suse.de>
26475         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
26476         disable peeling when we version for aliasing.
26477         (vector_alignment_reachable_p): Honor explicit user alignment.
26478         (vect_supportable_dr_alignment): Likewise.
26479         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
26480         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
26481         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
26482         then peeling to arrange for the cost-model check to come first.
26484 2013-05-10  Alan Modra  <amodra@gmail.com>
26486         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
26487         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
26488         * configure: Regenerate.
26490 2013-05-10  Alan Modra  <amodra@gmail.com>
26492         PR target/55033
26493         * varasm.c (default_elf_select_section): Move !DECL_P check..
26494         (get_named_section): ..to here before calling get_section_name.
26495         Adjust assertion.
26496         (default_section_type_flags): Add DECL_P check.
26497         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
26498         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
26500 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
26502         * config/epiphany/epiphany.c (epiphany_expand_prologue):
26503         When using gen_stack_adjust_str with a register offset, add a
26504         REG_FRAME_RELATED_EXPR note.
26506 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
26508         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
26509         (*vec_extractv4si_zext_mem): Ditto.
26510         (*vec_extractv2di): Add 0->x and x->x alternatives.
26511         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
26512         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
26514 2013-05-09  Jason Merrill  <jason@redhat.com>
26516         N3639 C++1y VLA support
26517         * gimplify.c (gimplify_vla_decl): Don't touch an existing
26518         DECL_VALUE_EXPR.
26520         * tree.c (build_constructor_va): New.
26521         * tree.h: Declare it.
26523 2013-05-09  Martin Jambor  <mjambor@suse.cz>
26525         PR lto/57084
26526         * gimple-fold.c (canonicalize_constructor_val): Call
26527         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
26529 2013-05-09  Jan Hubicka  <jh@suse.cz>
26530             Richard Biener  <rguenther@suse.de>
26532         PR lto/54095
26533         * symtab.c (symtab_make_decl_local): Do not add private names.
26535 2013-05-09  Jan Hubicka  <jh@suse.cz>
26537         PR lto/54095
26538         * symtab.c (insert_to_assembler_name_hash): Handle clones.
26539         (unlink_from_assembler_name_hash): Likewise.
26540         (symtab_prevail_in_asm_name_hash, symtab_register_node,
26541         symtab_unregister_node, symtab_initialize_asm_name_hash,
26542         change_decl_assembler_name): Update.
26544 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
26546         * config/aarch64/aarch64.md: New movtf split.
26547         (*movtf_aarch64): Update.
26548         (aarch64_movdi_tilow): Handle TF modes and rename to
26549         aarch64_movdi_<mode>low.
26550         (aarch64_movdi_tihigh): Handle TF modes and rename to
26551         aarch64_movdi_<mode>high
26552         (aarch64_movtihigh_di): Handle TF modes and rename to
26553         aarch64_mov<mode>high_di
26554         (aarch64_movtilow_di): Handle TF modes and rename to
26555         aarch64_mov<mode>low_di
26556         (aarch64_movtilow_tilow): Remove spurious whitespace.
26557         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
26558         splits.
26559         (aarch64_print_operand): Update.
26561 2013-05-09  Alan Modra  <amodra@gmail.com>
26563         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
26564         powerpc64le.
26565         * configure: Regenerate.
26567 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
26569         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
26570         splitter preparation statements.
26571         * config/i386/sse.md (*vec_extract* splitters): Ditto.
26572         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
26573         adjust_address_nv.
26575 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26577         * gimple-ssa-strength-reduction.c (count_candidates): Change
26578         return value to int.
26579         (analyze_candidates_and_replace): Change type of length to int.
26581 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
26583         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
26584         (*vec_extract<mode>): Use VI12_128 mode iterator.
26585         (*vec_extract<mode>_mem): Ditto.
26586         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
26587         attribute.
26589 2013-05-08  Diego Novillo  <dnovillo@google.com>
26591         PR bootstrap/54659
26593         Revert:
26594         2012-08-17  Diego Novillo  <dnovillo@google.com>
26596         PR bootstrap/54281
26597         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
26598         * config.in: Regenerate.
26599         * configure: Regenerate.
26600         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
26602 2013-05-08  Jan Hubicka  <jh@suse.cz>
26604         PR lto/54095
26605         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
26606         * cgraph.h (symtab_node_base): Add unique_name.
26607         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
26608         input_overwrite_node, input_varpool_node): Stream unique_name.
26609         * cgraphclones.c (cgraph_create_virtual_clone,
26610         cgraph_function_versioning): Set unique_name.
26611         * ipa.c (function_and_variable_visibility): Set unique_name.
26613 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26615         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
26616         (alloc_cand_and_find_basis): Restrict conditional candidate
26617         processing to CAND_MULTs.
26619 2013-05-08  Jan Hubicka  <jh@suse.cz>
26621         PR lto/54095
26622         lto-symtab.c (lto_symtab_symbol_p): New function.
26623         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
26624         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
26625         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
26626         Skip static symbols.
26628 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
26630         PR tree-optimization/57200
26631         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
26632         Only call inform if the preceding warning_at returns true.
26634 2013-05-07  Han Shen  <shenhan@google.com>
26636         * cfgexpand.c (record_or_union_type_has_array_p): New function.
26637         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
26638         * common.opt (fstack-protector-strong): New option.
26639         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
26640         * doc/invoke.texi (Optimization Options): Document
26641         "-fstack-protector-strong".
26642         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
26644 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
26646         * config/mips/mips.c (mips_machine_reorg2): Return 0.
26648 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
26650         * ira.c (update_equiv_regs): Add insn having equiv memory even if
26651         it is not lhs of the insn.
26652         (setup_reg_equiv): Remove insn having equiv memory which it is not
26653         lhs of the insn.
26654         * lra-constraints.c (process_address): Try to improve generation
26655         code for address base + disp.
26656         (lra_constraints): Make correct the code for checking insn setting
26657         up backward equivalence.  Remove insn only if it is in the init
26658         insn list.
26659         * lra-eliminations.c (update_reg_eliminate): Change return value.
26660         (lra_eliminate): Use the result.
26662 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
26664         * config/i386/sse.md (ssescalarnummask): New mode attribute.
26665         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
26666         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
26667         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
26668         register target operands.
26669         (*vec_extractv8hi_sse2): New pattern.
26670         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
26671         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
26672         (*vec_extract<mode>_mem): New insn and split pattern.
26674 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
26676         * config/arm/arm.c (arm_asan_shadow_offset): New function.
26677         (TARGET_ASAN_SHADOW_OFFSET): Define.
26678         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
26679         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
26681 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26683         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
26684         (incr_vec_index): Return -1 if increment not found.
26685         (create_add_on_incoming_edge): Assert if increment not found.
26686         (record_increment): Limit number of increments recorded.
26687         (all_phi_incrs_profitable): Return false if an increment not found.
26688         (replace_profitable_candidates): Don't process increments that were
26689         not recorded.
26690         (analyze_candidates_and_replace): Limit size of incr_vec.
26692 2013-05-07  Richard Biener  <rguenther@suse.de>
26694         * calls.c (special_function_p): setjmp-like functions are leaf.
26695         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
26696         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
26698 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
26700         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
26701         (aarch64_simd_mov<mode>): New expander.
26702         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
26703         (aarch64_simd_mov_to_<mode>high): Likewise.
26704         (aarch64_simd_mov_from_<mode>low): Likewise.
26705         (aarch64_simd_mov_from_<mode>high): Likewise.
26706         (aarch64_dup_lane<mode>): Update.
26707         (aarch64_dup_lanedi): New instruction pattern.
26708         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
26709         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
26711 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26713         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
26714         (replace_mult_candidate): Remove unnecessary argument; remove
26715         unnecessary parameter from call to introduce_cast_before_cand.
26716         (replace_unconditional_candidate): Remove unnecessary parameter
26717         from call to replace_mult_candidate.
26718         (replace_conditional_candidate): Likewise.
26719         (insert_initializers): Use make_temp_ssa_name.
26720         (introduce_cast_before_cand): Remove unnecessary argument; use
26721         make_temp_ssa_name.
26722         (replace_one_candidate): Remove unnecessary argument; remove
26723         unnecessary parameter from calls to introduce_cast_before_cand.
26724         (replace_profitable_candidates): Remove unnecessary parameters
26725         from calls to replace_one_candidate.
26727 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26729         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
26730         phi def as possibly hiding a basis for a CAND_ADD whose operands
26731         have been commuted in the analysis.
26732         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
26734 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
26736         * config/aarch64/aarch64.md
26737         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
26738         shift value between 0-4.
26740 2013-05-07  Richard Biener  <rguenther@suse.de>
26742         * double-int.h (rshift): New overload.
26743         * double-int.c (rshift): New function.
26744         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
26745         (create_reference_ops_from_ref): Remove.
26746         (vn_reference_insert): Use shared ops for constructing the
26747         reference and copy it.
26749 2013-05-07  Richard Biener  <rguenther@suse.de>
26751         PR middle-end/57190
26752         * tree-eh.c (sink_clobbers): Properly propagate
26753         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
26755 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
26757         PR tree-optimization/57149
26758         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
26759         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
26760         collect_phi_def_edges, execute_late_warn_uninitialized): Use
26761         uninit_undefined_value_p instead of ssa_undefined_value_p.
26763         PR debug/57184
26764         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
26765         for modifier == EXPAND_INITIALIZER.
26767 2013-05-07  Anton Blanchard  <anton@samba.org>
26769         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
26770         for powerpc64 little endian.
26771         * configure: Regenerate.
26773 2013-05-06  Graham Stott  <grahams@btinternet.com>
26775         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
26776         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
26777         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
26778         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
26780 2013-05-06  Graham Stott  <grahams@btinternet.com>
26782         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
26783         codes which allow non-lvalues.
26785 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
26787         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
26788         components are all 1s.
26789         (integer_minus_onep): New function.
26790         * tree.h (integer_minus_onep): Declare it.
26791         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
26792         integer_minus_onep instead of integer_all_onesp.
26794 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
26796         PR target/52933
26797         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
26798         variations of these patterns.
26800 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
26802         * config/i386/i386.md (isa): Add x64_sse4 member.
26803         (enabled): Handle x64_sse4.
26804         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
26805         instruction for 64bit SSE4_1 targets.  Update insn attributes.
26806         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
26807         instruction for SSE4_1 targets.  Update insn attributes.
26808         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
26809         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
26810         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
26811         const_1 selector.
26812         (*vec_extractv4si): Rename from *sse4_1_pextrd.
26813         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
26814         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
26816 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
26818         PR target/57108
26819         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
26821 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
26823         * final.c (do_assembler_dialects): Don't handle curly braces and
26824         vertical bar escaped by % as dialect delimiters.
26825         (output_asm_insn): Print curly braces and vertical bar if escaped
26826         by % and ASSEMBLER_DIALECT defined.
26827         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
26828         * doc/tm.texi: Regenerated.
26830 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
26832         * config/mips/mips.c: Include tree-pass.h.
26833         (mips_reorg): Split in pre- and post-dbr_schedule parts.
26834         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
26835         (pass_mips_machine_reorg2): New machine specific pass.
26836         (insert_pass_mips_machine_reorg2): New pass plugin definition.
26837         (mips_option_override): Register the new pass.
26838         * rtl.h (cleanup_barriers): Remove prototype.
26839         (dbr_schedule): Likewise.
26840         * jump.c (cleanup_barriers): Make static.
26841         * reorg.c (dbr_schedule): Likewise.
26843 2013-05-06  Richard Biener  <rguenther@suse.de>
26845         PR tree-optimization/57185
26846         * tree-parloops.c (add_field_for_reduction): Handle anonymous
26847         SSA names properly.
26849 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
26851         PR target/57106
26852         * config/i386/i386.c (add_parameter_dependencies): Add dependence
26853         between "first_arg" and "insn", not "last" and "insn".
26855 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26857         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
26858         (find_candidates_in_block): Re-enable slsr_process_phi.
26859         (create_phi_basis): Fix double counting of candidate adjustment.
26861 2013-05-06  Richard Biener  <rguenther@suse.de>
26863         PR middle-end/57147
26864         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
26865         the edge is also fallthru, preserve it and just clear the
26866         abnormal flag.
26867         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
26868         also complex, preserve that and just clear the fallthru flag.
26869         * tree-inline.c (update_ssa_across_abnormal_edges): Also
26870         update virtual operands.
26872 2013-05-06  Alan Modra  <amodra@gmail.com>
26874         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
26875         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
26876         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
26877         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
26878         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
26879         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
26881 2013-05-06  Alan Modra  <amodra@gmail.com>
26883         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
26884         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
26885         (DEFAULT_ASM_ENDIAN): Define.
26886         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
26887         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
26888         Update -K PIC clause from sysv4.h.
26889         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
26890         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
26892 2013-05-06  Alan Modra  <amodra@gmail.com>
26894         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
26895         twice for little-endian.
26896         (ashrdi3_no_power, ashrdi3): Support little-endian.
26898 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
26900         PR target/55303
26901         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
26902         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
26903         related expanders.
26904         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
26905         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
26906         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
26907         New predicates.
26909 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
26910             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26912         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
26913         * config/pa/pa.opt: Make mbig-switch a no-op.
26914         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
26915         (CASE_VECTOR_MODE): Always return SImode.
26916         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
26917         for the !TARGET_BIG_SWITCH case.
26918         * config/pa/pa-linux.h: Likewise.
26919         * config/pa/pa-openbsd.h: Likewise.
26920         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
26921         * config/pa/pa.md (short_jump): Remove define_insn.
26922         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
26923         (casesi0): Remove define_insn.
26924         (type): Remove btable_branch.
26925         (pa_combine_type): Likewise.
26926         (in_nullified_branch_delay): Likewise.
26927         (in_call_delay): Likewise.
26928         (define_delay): Likewise.
26929         (define_insn_reservation "Z3"): Likewise.
26930         (define_insn_reservation "Z4"): Likewise.
26931         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
26932         (pa_adjust_insn_length): Remove adjustment for btable branches.
26933         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
26934         and mno-big-switch
26936 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
26938         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
26939         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
26940         Add m->r,x alternatives.
26941         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
26942         splitters using SWI48x mode iterator.
26943         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
26944         TARGET_64BIT.  Add m->x alternative.
26945         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
26946         Add o->x alternative.  Enable for TARGET_SSE.
26947         (sse_storeq): Remove expander.
26948         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
26949         with memory input operand.
26950         (*vec_extractv2di_1 splitter): New.
26951         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
26952         * config/i386/i386.md (ssevecmodelower): New mode attribute.
26954 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
26956         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
26957         (INT_LOWPART): Delete.
26958         (extract_MB): Adjust.
26959         (extract_ME): Adjust.
26960         (print_operand): Adjust.
26962 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
26964         * config/rs6000/predicates.md (reg_or_add_cint_operand,
26965         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
26966         (reg_or_logical_cint_operand, easy_fp_constant,
26967         logical_const_operand): Delete "CONST_DOUBLE" case.
26968         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
26969         "HOST_BITS_PER_WIDE_INT == 64" test.
26970         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
26971         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
26972         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
26973         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
26974         test.
26975         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
26976         CONST_DOUBLE DImode/VOIDmode case.
26977         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
26978         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
26979         CONST_DOUBLE VOIDmode case.
26980         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
26981         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
26982         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
26983         Delete CONST_DOUBLE case.
26984         (splitters for mov FMOVE64 const_double): Delete
26985         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
26986         "HOST_BITS_PER_WIDE_INT >= 64" test.
26987         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
26988         case.
26989         (mov DI const_double): Delete.
26991 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
26993         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
26994         on op shows all bits zero in mode of a lowpart subreg, return zero.
26996 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
26998         PR target/57150
26999         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
27000         to save TFmode registers and DImode to save TImode registers for
27001         caller save operations.
27002         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
27003         mark being partially clobbered since they only use the first
27004         double word.
27006         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
27007         and TDmode only use the upper 64-bits of each VSX register.
27009 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27011         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
27012         (find_candidates_in_block): Disable slsr_process_phi.
27014 2013-05-03  Guozhi Wei  <carrot@google.com>
27016         * coverage.c (coverage_obj_init): Move the construction of gcov
27017         constructor to ...
27018         (build_init_ctor): ... here.
27020 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27022         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
27023         (slsr_cand_d): Redefine def_phi.
27024         (stride_status, phi_adjust_status, count_phis_status): New enums.
27025         (find_phi_def): New.
27026         (find_basis_for_base_expr): New.
27027         (find_basis_for_candidate): Handle hidden bases.
27028         (alloc_cand_and_find_basis): Handle phi candidates.
27029         (slsr_process_phi): New.
27030         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
27031         (create_mul_imm_cand): Likewise.
27032         (create_add_ssa_cand): Exclude phi base candidates.
27033         (create_add_imm_cand): Likewise.
27034         (slsr_process_cast): Likewise.
27035         (slsr_process_copy): Likewise.
27036         (find_candidates_in_block): Handle phi candidates.
27037         (dump_candidate): Likewise.
27038         (unconditional_cands): Delete.
27039         (unconditional_cands_with_known_stride_p): Delete.
27040         (phi_dependent_cand_p): New.
27041         (cand_increment): Handle phi-dependent candidates.
27042         (replace_dependent): Delete.
27043         (replace_mult_candidate): New.
27044         (replace_unconditional_candidate): New.
27045         (incr_vec_index): Move to avoid forward reference.
27046         (create_add_on_incoming_edge): New.
27047         (create_phi_basis): New.
27048         (replace_dependents): Delete.
27049         (replace_conditional_candidate): New.
27050         (phi_add_costs): New.
27051         (replace_uncond_cands_and_profitable_phis): New.
27052         (record_increment): Handle phi adjustments.
27053         (record_phi_increments): New.
27054         (record_increments): Handle phi adjustments.
27055         (phi_incr_cost): New.
27056         (lowest_cost_path): Handle phis.
27057         (total_savings): Likewise.
27058         (analyze_increments): Likewise.
27059         (ncd_with_phi): New.
27060         (ncd_of_cand_and_phis): New.
27061         (nearest_common_dominator_for_cands): Handle phi increments.
27062         (all_phi_incrs_profitable): New.
27063         (replace_profitable_candidates): Handle phi-dependent candidates.
27064         (analyze_candidates_and_replace): Likewise.
27066 2013-05-03  Teresa Johnson  <tejohnson@google.com>
27068         PR bootstrap/57154
27069         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
27070         do not exceed REG_BR_PROB_BASE.
27072 2013-05-03  Jeff Law  <law@redhat.com>
27074         PR tree-optimization/57144
27075         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
27076         operand of the condition will bit into the new type when eliminating
27077         a cast feeding a condition.
27079 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
27081         PR rtl-optimization/57130
27082         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
27083         of COMPARE as in_code to the recursive call if needed.
27085 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
27087         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
27088         (enabled): Handle new members.
27089         * config/i386/sse.md (*vec_concatv2si): Merge from
27090         *vec_concatv2si_sse2 and vec_concatv2si_sse.
27091         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
27093 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
27095         PR tree-optimization/57027
27096         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
27097         for fnms opportunity, check we got the prerequisite kind
27098         of tree / gimple before using accessor functions.
27100 2013-05-03  Richard Biener  <rguenther@suse.de>
27102         * double-int.h (lshift): New overload without precision
27103         and arith argument.
27104         (operator *=, operator +=, operator -=): Move ...
27105         * double-int.c (operator *=, operator +=, operator -=): ... here
27106         and implement more efficiently.
27107         (mul_double_with_sign): Remove.
27108         (lshift_double): Adjust to take unsinged shift argument, push
27109         dispatching code to callers.
27110         (mul_double_wide_with_sign): Add early out for callers that
27111         are not interested in high parts or overflow.
27112         (lshift): New function.
27113         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
27114         dispatch code here.
27115         (lrotate, rrotate): Use logical shifts.
27116         * expr.c (get_inner_reference): Use lshift.
27117         * fixed-value.c (do_fixed_divide): Likewise.
27118         * tree-dfa.c (get_ref_base_and_extent): Likewise.
27119         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27120         (indirect_refs_may_alias_p): Likewise.
27121         (stmt_kills_ref_p_1): Likewise.
27123 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
27125         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
27127 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
27129         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
27130         scalar form of FABD instruction.
27132 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
27134         * lra-constraints.c (process_alt_operands): Add checking alt
27135         number to choose the best alternative.
27137 2013-05-02  Richard Biener  <rguenther@suse.de>
27139         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
27140         bitmap and its handling.
27141         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
27143 2013-05-02  Richard Biener  <rguenther@suse.de>
27145         PR middle-end/57140
27146         * tree-inline.c (copy_loops): Properly handle removed loops.
27147         (copy_cfg_body): Mark destination loops for fixup if source
27148         loops needed fixup.
27150 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
27152         PR target/56732
27153         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
27154         generating simple_return for naked functions.
27156 2013-05-02  Martin Jambor  <mjambor@suse.cz>
27158         PR middle-end/56988
27159         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
27160         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
27161         flags match.
27162         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
27163         ipa_agg_replacement_value structures.
27164         (known_aggs_to_agg_replacement_list): Likewise.
27165         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
27166         (read_agg_replacement_chain): Likewise.
27167         (ipcp_transform_function): Also check that by_ref flags match.
27169 2013-05-02  Richard Biener  <rguenther@suse.de>
27171         * graphds.h (struct graph): Add obstack member.
27172         * graphds.c (new_graph): Initialize obstack and allocate
27173         vertices from it.
27174         (add_edge): Allocate edge from the obstack.
27175         (free_graph): Free the obstack instead of all edges and vertices.
27177 2013-05-02  Teresa Johnson  <tejohnson@google.com>
27179         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
27180         divides.
27181         * cfg.c (update_bb_profile_for_threading): Ditto.
27182         * tree-inline.c (copy_bb): Ditto.
27183         (copy_edges_for_bb): Ditto.
27184         (initialize_cfun): Ditto.
27185         (copy_cfg_body): Ditto.
27186         (expand_call_inline): Ditto.
27187         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
27188         (estimate_node_size_and_time): Ditto.
27189         (inline_merge_summary): Ditto.
27190         * cgraphclones.c (cgraph_clone_edge): Ditto.
27191         (cgraph_clone_node): Ditto.
27192         * sched-rgn.c (compute_dom_prob_ps): Ditto.
27193         (compute_trg_info): Ditto.
27195 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
27197         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
27198         S reg when fp attribute set.
27199         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
27201 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
27203         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
27204         New pattern.
27205         (*and_one_cmplsi3_compare0_uxtw): Likewise.
27206         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
27207         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
27209 2013-05-02  Richard Biener  <rguenther@suse.de>
27211         * tree-scalar-evolution.c (scev_info_hasher): Remove.
27212         (struct instantiate_cache_entry): New type.
27213         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
27214         (struct instantiate_cache_type): New type.
27215         (set_instantiated_value, get_instantiated_value): Remove.
27216         (get_instantiated_value_entry): New function.
27217         (instantiate_scev_name): Use the new cache and adjust.
27218         (instantiate_scev_poly): Adjust.
27219         (instantiate_scev_binary): Likewise.
27220         (instantiate_array_ref): Likewise.
27221         (instantiate_scev_convert): Likewise.
27222         (instantiate_scev_not): Likewise.
27223         (instantiate_scev_3): Likewise.
27224         (instantiate_scev_2): Likewise.
27225         (instantiate_scev_r): Likewise.
27226         (instantiate_scev): Likewise.
27227         (resolve_mixers): Likewise.
27229 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
27231         PR target/57091
27232         * lra-constraints.c (best_small_class_operands_num): Remove.
27233         (process_alt_operands): Remove small_class_operands_num.  Take
27234         small classes operands into losers and only if the operand is not
27235         matched.  Modify debugging output.
27236         (curr_insn_transform): Remove best_small_class_operands_num.
27237         Print insn name.
27239 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27241         * config/aarch64/aarch64-builtins.c
27242         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
27243         * config/aarch64/aarch64-simd-builtins.def
27244         (reduc_splus_): Add new modes.
27245         (reduc_uplus_): New.
27246         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
27247         (reduc_uplus_v4sf): Likewise.
27248         (reduc_splus_v4sf): Likewise.
27249         (aarch64_addv<mode>): Likewise.
27250         (reduc_uplus_<mode>): Likewise.
27251         (reduc_splus_<mode>): Likewise.
27252         (aarch64_addvv2di): Likewise.
27253         (reduc_uplus_v2di): Likewise.
27254         (reduc_splus_v2di): Likewise.
27255         (aarch64_addvv2si): Likewise.
27256         (reduc_uplus_v2si): Likewise.
27257         (reduc_splus_v2si): Likewise.
27258         (reduc_<sur>plus_<mode>): New.
27259         (reduc_<sur>plus_v2di): Likewise.
27260         (reduc_<sur>plus_v2si): Likewise.
27261         (reduc_<sur>plus_v4sf): Likewise.
27262         (aarch64_addpv4sf): Likewise.
27263         * config/aarch64/arm_neon.h
27264         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
27265         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
27266         add UNSPEC_SADDV, UNSPEC_UADDV.
27267         (SUADDV): New.
27268         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
27270 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27272         * config/aarch64/arm_neon.h
27273         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
27275 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27277         * config/aarch64/aarch64-builtins
27278         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
27280 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27282         * config/aarch64/aarch64-simd-builtins.def
27283         (reduc_smax_): New.
27284         (reduc_smin_): Likewise.
27285         (reduc_umax_): Likewise.
27286         (reduc_umin_): Likewise.
27287         (reduc_smax_nan_): Likewise.
27288         (reduc_smin_nan_): Likewise.
27289         (fmax): Remove.
27290         (fmin): Likewise.
27291         (smax): Update for V2SF, V4SF and V2DF modes.
27292         (smin): Likewise.
27293         (smax_nan): New.
27294         (smin_nan): Likewise.
27295         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
27296         (<su><maxmin><mode>3): ...This, refactor.
27297         (s<maxmin><mode>3): New.
27298         (<maxmin_uns><mode>3): Likewise.
27299         (reduc_<maxmin_uns>_<mode>): Refactor.
27300         (reduc_<maxmin_uns>_v4sf): Likewise.
27301         (reduc_<maxmin_uns>_v2si): Likewise.
27302         (aarch64_<fmaxmin><mode>: Remove.
27303         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
27304         new builtin names.
27305         (vmin<q>_f<32,64>): Likewise.
27306         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27307         (FMAXMIN): New.
27308         (su): Add mappings for smax, smin, umax, umin.
27309         (maxmin): New.
27310         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
27311         (FMAXMIN): Rename as...
27312         (FMAXMIN_UNS): ...This.
27313         (maxminv): Remove.
27314         (fmaxminv): Likewise.
27315         (fmaxmin): Likewise.
27316         (maxmin_uns): New.
27317         (maxmin_uns_op): Likewise.
27319 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27321         * config/aarch64/arm_neon.h
27322         (vac<ge, gt><sd>_f<32, 64>): Rename to...
27323         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
27324         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
27326 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27328         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
27329         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
27331 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27333         * config/aarch64/aarch64-simd.md
27334         (vcond<mode>_internal): Handle special cases for constant masks.
27335         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
27336         (vcondu<mode><mode>): Likewise.
27337         (vcond<v_cmp_result><mode>): New.
27339 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27341         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
27342         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
27343         * config/aarch64/aarch64-simd-builtins.def
27344         (cmeq): Update to BUILTIN_VALLDI.
27345         (cmgt): Likewise.
27346         (cmge): Likewise.
27347         (cmle): Likewise.
27348         (cmlt): Likewise.
27349         * config/aarch64/arm_neon.h
27350         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
27351         to builtins or C as appropriate.
27353 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
27355         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
27356         (cmgeu): ...This.
27357         (cmhi): Rename to...
27358         (cmgtu): ...This.
27359         * config/aarch64/aarch64-simd.md
27360         (simd_mode): Add SF.
27361         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
27362         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
27363         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
27364         (cstore<mode>_neg): ...This.
27365         * config/aarch64/iterators.md
27366         (VALLF): new.
27367         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
27368         (COMPARISONS): New.
27369         (UCOMPARISONS): Likewise.
27370         (optab): Add missing comparisons.
27371         (n_optab): New.
27372         (cmp_1): Likewise.
27373         (cmp_2): Likewise.
27374         (CMP): Likewise.
27375         (cmp): Remove.
27376         (VCMP_S): Likewise.
27377         (VCMP_U): Likewise.
27378         (V_cmp_result): Add DF, SF modes.
27379         (v_cmp_result): Likewise.
27380         (v): Likewise.
27381         (vmtype): Likewise.
27382         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
27384 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
27386         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
27387         define_insn to define_insn_and_split.
27388         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
27389         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
27390         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
27391         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
27392         (thumb2_negscc): Likewise.
27394 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
27396         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
27398 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
27400         * config/arm/thumb2.md: Remove trailing whitespaces.
27402 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27404         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
27405         Use gen_int_mode rather than GEN_INT.
27407 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
27409         * value-prof.c (stream_in_histogram_value): Remove the strayed
27410         debug_gimple_stmt.
27412 2013-04-30  Richard Biener  <rguenther@suse.de>
27414         PR middle-end/57122
27415         * cfghooks.c (split_edge): Properly check for the loop latch edge.
27417 2013-04-30  Richard Biener  <rguenther@suse.de>
27419         PR middle-end/57107
27420         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
27422 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
27424         PR rtl-optimization/56957
27425         PR rtl-optimization/57105
27426         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
27427         variable.  Use just INSN_UID for determining whether an insn
27428         should be only disconnected from the insn stream.
27429         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
27431 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
27433         PR tree-optimization/57104
27434         * tsan.c (instrument_expr): Don't instrument accesses to
27435         DECL_HARD_REGISTER VAR_DECLs.
27437 2013-04-30  Richard Biener  <rguenther@suse.de>
27439         * function.h (loops_for_fn): New inline function.
27440         (set_loops_for_fn): Likewise.
27441         * cfgloop.h (place_new_loop): Add struct function parameter.
27442         (get_loop): Likewise.
27443         (get_loops): Likewise.
27444         (number_of_loops): Likewise.
27445         (fel_next): Adjust.
27446         (fel_init): Likewise.
27447         * cfg.c (get_loop_copy): Adjust.
27448         * cfgloop.c (flow_loops_dump): Likewise.
27449         (record_loop_exits): Likewise.
27450         (verify_loop_structure): Likewise.
27451         * cfgloopanal.c (mark_irreducible_loops): Likewise.
27452         (estimate_reg_pressure_cost): Likewise.
27453         (mark_loop_exit_edges): Likewise.
27454         * cfgloopmanip.c (place_new_loop): Likewise.
27455         (add_loop): Likewise.
27456         (duplicate_loop): Likewise.
27457         * graph.c (draw_cfg_nodes): Likewise.
27458         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
27459         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
27460         (extract_affine_chrec): Likewise.
27461         (build_scop_iteration_domain): Likewise.
27462         * graphite.c (graphite_initialize): Likewise.
27463         * ira-build.c (create_loop_tree_nodes): Likewise.
27464         (more_one_region_p): Likewise.
27465         (rebuild_regno_allocno_maps): Likewise.
27466         (mark_loops_for_removal): Likewise.
27467         (mark_all_loops_for_removal): Likewise.
27468         (remove_unnecessary_regions): Likewise.
27469         (ira_build): Likewise.
27470         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
27471         * loop-init.c (fix_loop_structure): Likewise.
27472         (gate_rtl_move_loop_invariants): Likewise.
27473         (gate_rtl_unswitch): Likewise.
27474         (gate_rtl_unroll_and_peel_loops): Likewise.
27475         (rtl_doloop): Likewise.
27476         * lto-streamer-in.c (input_cfg): Likewise.
27477         * lto-streamer-out.c (output_cfg): Likewise.
27478         * modulo-sched.c (sms_schedule): Likewise.
27479         * predict.c (tree_estimate_probability): Likewise.
27480         (tree_estimate_probability_driver): Likewise.
27481         (estimate_loops): Likewise.
27482         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
27483         (move_sese_region_to_fn): Likewise.
27484         (debug_loop_num): Likewise.
27485         * tree-chrec.c (chrec_evaluate): Likewise.
27486         (hide_evolution_in_other_loops_than_loop): Likewise.
27487         (chrec_component_in_loop_num): Likewise.
27488         (reset_evolution_in_loop): Likewise.
27489         (evolution_function_is_invariant_rec_p): Likewise.
27490         * tree-if-conv.c (main_tree_if_conversion): Likewise.
27491         * tree-inline.c (copy_loops): Likewise.
27492         (copy_cfg_body): Likewise.
27493         (tree_function_versioning): Likewise.
27494         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
27495         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
27496         Likewise.
27497         (add_to_evolution_1): Likewise.
27498         (scev_const_prop): Likewise.
27499         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
27500         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
27501         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
27502         (tree_ssa_lim_initialize): Likewise.
27503         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
27504         (verify_loop_closed_ssa): Likewise.
27505         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
27506         (tree_ssa_loop_im): Likewise.
27507         (tree_ssa_loop_unswitch): Likewise.
27508         (tree_vectorize): Likewise.
27509         (check_data_deps): Likewise.
27510         (tree_ssa_loop_ivcanon): Likewise.
27511         (tree_ssa_loop_bounds): Likewise.
27512         (tree_complete_unroll): Likewise.
27513         (tree_complete_unroll_inner): Likewise.
27514         (tree_parallelize_loops): Likewise.
27515         (tree_ssa_loop_prefetch): Likewise.
27516         (tree_ssa_loop_ivopts): Likewise.
27517         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
27518         * tree-vectorizer.c (vectorize_loops): Likewise.
27520 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
27522         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
27523         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
27524         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
27525         with EABI_LINK_SPEC.
27527 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
27529         PR target/44578
27530         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
27531         alternative.
27533 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
27535         PR target/57097
27536         * lra-constraints.c (process_alt_operands): Discourage a bit more
27537         using memory for pseudos.  Print cost dump for alternatives.
27538         Modify cost values for conflicts with early clobbers.
27539         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
27541 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
27543         PR target/57098
27544         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
27546 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
27548         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
27549         from/to S register.
27550         (movdi_aarch64): Support LDR/STR from/to D register.
27552 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
27554         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
27555         or higher by default.
27557 2013-04-29  Richard Biener  <rguenther@suse.de>
27559         PR middle-end/57075
27560         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
27561         even if not adding abnormal edges for calls that can make
27562         abnormal gotos.
27564 2013-04-29  Richard Biener  <rguenther@suse.de>
27566         PR middle-end/57103
27567         * tree-cfg.c (move_stmt_op): Fix condition under which to update
27568         TREE_BLOCK.
27569         (move_stmt_r): Remove redundant checking.
27571 2013-04-29  Teresa Johnson  <tejohnson@google.com>
27573         PR bootstrap/57077
27574         * basic-block.h (apply_scale): New function.
27575         (apply_probability): Use apply_scale.
27576         * gimple-streamer-in.c (input_bb): Ditto.
27577         * lto-streamer-in.c (input_cfg): Ditto.
27578         * lto-cgraph.c (merge_profile_summaries): Ditto.
27579         * tree-optimize.c (execute_fixup_cfg): Ditto.
27580         * tree-inline.c (copy_bb): Update comment to use apply_scale.
27581         (copy_edges_for_bb): Ditto.
27582         (copy_cfg_body): Ditto.
27584 2013-04-29  Tom de Vries  <tom@codesourcery.com>
27586         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
27587         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
27588         (tail_merge_optimize): Handle current_loops == NULL.
27590 2013-04-26  Jeff Law  <law@redhat.com>
27592         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
27593         (simplify_cond_using_ranges): Generalize code to simplify
27594         COND_EXPRs where one argument is a constant and the other
27595         is an SSA_NAME created by an integral type conversion.
27597 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27599         * config/arm/arm.md (store_minmaxsi): Use only when
27600         optimize_insn_for_size_p.
27602 2013-04-29  Christian Bruel  <christian.bruel@st.com>
27604         PR target/57108
27605         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
27607 2013-04-29  Richard Biener  <rguenther@suse.de>
27609         PR middle-end/57089
27610         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
27611         loop tree make sure to schedule a fixup for the child as well.
27612         (expand_omp_for_generic): Properly add loops.
27613         (expand_omp_for_static_nochunk): Likewise.
27614         (expand_omp_for_static_chunk): Likewise.
27615         (expand_omp_for): For the degenerate case fixup loops.
27616         (expand_omp_sections): Fix default bb placement in loops.
27617         (expand_omp_atomic_pipeline): Properly add loops.
27619 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
27621         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
27623 2013-04-29  Tom de Vries  <tom@codesourcery.com>
27625         * tree-ssa-tail-merge.c: Update header comment.
27627 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27629         * config/aarch64/arm_neon.h
27630         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
27631         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
27632         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
27633         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
27634         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
27635         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
27636         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
27637         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
27639 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27641         * config/aarch64/aarch64-simd.md
27642         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
27643         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
27644         fix_trunc, fixuns_trunc.
27645         (ftrunc<VDQF:mode>2): New.
27646         * config/aarch64/iterators.md (optab): Add fix, fixuns.
27647         (fix_trunc_optab): New.
27649 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27651         * config/aarch64/aarch64-builtins.c
27652         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
27653         iceilf, lround, iroundf.
27655 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
27657         PR target/54349
27658         * config/i386/i386.h (enum ix86_tune_indices)
27659         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
27660         New, split from X86_TUNE_INTER_UNIT_MOVES.
27661         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
27662         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
27663         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
27664         (TARGET_INTER_UNIT_MOVES): Remove.
27665         * config/i386/i386.c (initial_ix86_tune_features): Update.
27666         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
27667         (ix86_expand_convert_uns_didf_sse): Use
27668         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
27669         (ix86_expand_vector_init_one_nonzero): Ditto.
27670         (ix86_expand_vector_init_interleave): Ditto.
27671         (inline_secondary_memory_needed): Return true for moves from SSE class
27672         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
27673         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
27674         * config/i386/constraints.md (Yi, Ym): Depend on
27675         TARGET_INTER_UNIT_MOVES_TO_VEC.
27676         (Yj, Yn): New constraints.
27677         * config/i386/i386.md (*movdi_internal): Change constraints of
27678         operand 1 from Yi to Yj and from Ym to Yn.
27679         (*movsi_internal): Ditto.
27680         (*movdf_internal): Ditto.
27681         (*movsf_internal): Ditto.
27682         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
27683         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
27684         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
27685         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
27686         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
27687         * config/i386/sse.md (movdi_to_sse): Ditto.
27688         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
27689         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
27690         TARGET_INTER_UNIT_MOVES.
27691         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
27692         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
27693         instead of TARGET_INTER_UNIT_MOVES.
27694         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
27695         operand 1 from Yi to Yj and from Ym to Yn.
27697 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27699         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
27700         (float_truncate_hi_): Likewise.
27701         (float_extend_lo_): Likewise.
27702         (float_truncate_lo_): Likewise.
27703         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
27704         (aarch64_float_extend_lo_v2df): Likewise.
27705         (vec_unpacks_hi_v4sf): Likewise.
27706         (aarch64_float_truncate_lo_v2sf): Likewise.
27707         (aarch64_float_truncate_hi_v4sf): Likewise.
27708         (vec_pack_trunc_v2df): Likewise.
27709         (vec_pack_trunc_df): Likewise.
27711 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27713         * config/aarch64/aarch64-builtins.c
27714         (aarch64_fold_builtin): Fold float conversions.
27715         * config/aarch64/aarch64-simd-builtins.def
27716         (floatv2si, floatv4si, floatv2di): New.
27717         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
27718         * config/aarch64/aarch64-simd.md
27719         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
27720         * config/aarch64/iterators.md (FLOATUORS): New.
27721         (optab): Add float, floatuns.
27722         (su_optab): Likewise.
27724 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27726         * config/aarch64/aarch64-builtins.c
27727         (aarch64_builtin_vectorized_function): Use new names for
27728         fcvt builtins.
27729         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
27730         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
27731         (fcvtzu): Split as...
27732         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
27733         (fcvtas): Split as...
27734         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
27735         (fcvtau): Split as...
27736         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
27737         (fcvtps): Split as...
27738         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
27739         (fcvtpu): Split as...
27740         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
27741         (fcvtms): Split as...
27742         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
27743         (fcvtmu): Split as...
27744         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
27745         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
27746         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
27747         (lfrintnusf, lfrintnudf): Likewise.
27748         * config/aarch64/aarch64-simd.md
27749         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
27750         define_insn.
27751         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
27752         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
27753         (fcvt_pattern): Likewise.
27755 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27757         * config/aarch64/aarch64-simd.md
27758         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
27759         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
27761 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27763         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
27764         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
27765         (vrnd<a,m,n,p>_f32): Implement using builtins.
27766         (vrnd<i,x><q>_f<32, 64>): New.
27768 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27770         * config/aarch64/aarch64-builtins.c
27771         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
27772         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
27773         (frintz): Rename to...
27774         (btrunc): ...this.
27775         (frintp): Rename to...
27776         (ceil): ...this.
27777         (frintm): Rename to...
27778         (floor): ...this.
27779         (frinti): Rename to...
27780         (nearbyint): ...this.
27781         (frintx): Rename to...
27782         (rint): ...this.
27783         (frinta): Rename to...
27784         (round): ...this.
27785         * config/aarch64/aarch64-simd.md
27786         (aarch64_frint<frint_suffix><mode>): Delete.
27787         (<frint_pattern><mode>2): Convert to insn.
27788         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
27789         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
27790         (frint_pattern): Likewise.
27791         (frint_suffix): Likewise.
27793 2013-04-29  Richard Biener  <rguenther@suse.de>
27795         PR tree-optimization/57081
27796         * loop-init.c: Include tree-flow.h.
27797         (loop_optimizer_finalize): Free number of iteration estimates.
27798         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
27800 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
27802         PR tree-optimization/57083
27803         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
27804         non-singleton shift count range, zero extend low_bound for uns case.
27806         * config/i386/predicates.md (general_vector_operand): New predicate.
27807         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
27808         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
27809         if they aren't nonimmediate operands.  If their original values
27810         satisfy const_vector_equal_evenodd_p, don't shift them.
27811         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
27812         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
27813         if not nonimmediate_operand.
27814         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
27815         instead of register_operand.
27816         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
27818 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
27820         * stor-layout.c (finalize_size_functions): Allocate a structure and
27821         reset cfun before dumping the functions.
27823 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
27825         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
27827         PR target/56866
27828         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
27829         use xop_pmacsdqh if uns_p.
27830         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
27831         the immediate rotate count.
27833 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
27835         * rtl.h (struct rtx_def): Add comment for field jump.
27836         (LRA_SUBREG_P): New macro.
27837         * recog.c (register_operand): Check LRA_SUBREG_P.
27838         * lra.c (lra): Add note at the end of RTL code. Align non-empty
27839         stack frame.
27840         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
27841         (lra_final_code_change): Skip subreg change for operators.
27842         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
27843         if there are no operand changes.
27844         * lra-constraints.c (curr_insn_set): New.
27845         (match_reload): Set LRA_SUBREG_P.
27846         (emit_spill_move): Ditto.
27847         (check_and_process_move): Use curr_insn_set. Process only single
27848         set insns.  Don't initialize sec_mem_p and change_p.
27849         (simplify_operand_subreg): Use LRA_SUBREG_P.
27850         (reg_in_class_p): New function.
27851         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
27852         of #ifdef.  Add code to remove cycling.
27853         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
27854         non-null disp.  Reload inner instead of disp when base and index
27855         are null.  Try to put lo_sum into register.
27856         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
27857         (check_and_process_move): Move code for move cost check to
27858         simple_move_p.  Remove equiv_substitution.
27859         (simple_move_p): New function.
27860         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
27861         curr_insn_set.  Call check_and_process_move only for single set
27862         insns.  Use the new function.  Move call of check_and_process_move
27863         after operand equiv substitution and address process.
27865 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
27867         PR go/57045
27868         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
27869         with nonlocal goto receivers or returns twice calls, ignore
27870         unininitialized values from abnormal edges to nl goto receiver
27871         or returns twice call.
27873 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
27875         PR tree-optimization/57051
27876         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
27877         and VEC_RSHIFT_EXPR if shift count is a multiple of element
27878         bitsize.
27880 2013-04-26  Richard Biener  <rguenther@suse.de>
27882         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
27883         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
27884         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
27885         (fixup_loop_arrays_after_move): New function.
27886         (move_sese_region_to_fn): Properly outline the loop tree parts
27887         of the SESE region.
27889 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
27891         * config/i386/i386.md (type, unit): Fix long lines.
27893 2013-04-26  Richard Biener  <rguenther@suse.de>
27895         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
27896         (lto-streamer-out.o): Likewise.
27897         * cfgloop.c (init_loops_structure): Export, add struct function
27898         argument and adjust.
27899         (flow_loops_find): Adjust.
27900         * cfgloop.h (enum loop_estimation): Add EST_LAST.
27901         (init_loops_structure): Declare.
27902         * lto-streamer-in.c: Include cfgloop.h.
27903         (input_cfg): Input the loop tree.
27904         * lto-streamer-out.c: Include cfgloop.h.
27905         (output_cfg): Output the loop tree.
27906         (output_struct_function_base): Do not drop PROP_loops.
27908 2013-03-26  Richard Biener  <rguenther@suse.de>
27910         * tree-cfg.c (execute_build_cfg): Build the loop tree.
27911         (pass_build_cfg): Provide PROP_loops.
27912         (move_sese_region_to_fn): Remove loops that are outlined into fn
27913         for now.
27914         * tree-inline.c: Include cfgloop.h.
27915         (initialize_cfun): Do not drop PROP_loops.
27916         (copy_loops): New function.
27917         (copy_cfg_body): Copy loop structure.
27918         (tree_function_versioning): Initialize destination loop tree.
27919         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
27920         (pass_parallelize_loops): Do IL verification.
27921         * loop-init.c (loop_optimizer_init): Fixup loops if required.
27922         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
27923         the CFG make sure we fixup loops as well.
27924         * tree-ssa-tail-merge.c: Include cfgloop.h.
27925         (replace_block_by): When merging loop latches mark loops for fixup.
27926         * lto-streamer-out.c (output_struct_function_base): Drop
27927         PROP_loops for now.
27928         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
27929         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
27930         * ipa-split.c: Include cfgloop.h.
27931         (split_function): Add the new return block to the loop tree root.
27932         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
27933         whether we have removed the forwarder block.
27934         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
27935         * cfgloop.h (place_new_loop): Declare.
27936         * cfgloopmanip.c (place_new_loop): Export.
27937         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
27938         (tree-switch-conversion.o): Likewise.
27939         (tree-complex.o): Likewise.
27940         (tree-inline.o): Likewise.
27941         (tree-ssa-tailmerge.o): Likewise.
27942         (ipa-split.o): Likewise.
27943         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
27944         (tree-ssa-copy.o): Likewise.
27945         * tree-switch-conversion.c: Include cfgloop.h
27946         (process_switch): If we emit a bit-test cascade, schedule loops
27947         for fixup.
27948         * tree-complex.c: Include cfgloop.h.
27949         (expand_complex_div_wide): Properly add new basic-blocks to loops.
27950         * asan.c: Include cfgloop.h.
27951         (create_cond_insert_point): Properly add new basic-blocks to
27952         loops, schedule loop fixup.
27953         * cfgloop.c (verify_loop_structure): Check that looks are not
27954         marked for fixup.
27955         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
27956         to loops.
27957         (expand_omp_for_generic): Likewise.
27958         (expand_omp_sections): Likewise.
27959         (expand_omp_atomic_pipeline): Schedule loops for fixup.
27960         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
27961         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
27962         is initialized, not when loops are present.
27963         * tree-parloops.c (parallelize_loops): Remove checking here.
27964         * passes.c (init_optimization_passes): Schedule a copy-propagation
27965         pass before complete unrolling of inner loops.
27967 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
27969         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
27970         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
27971         (colorize_init): Add argument to _WIN32 version.
27972         * toplev.c: Include diagnostic-color.h.
27973         (process_options): Default to -fdiagnostics-color=auto if
27974         GCC_COLORS env var is in the environment.
27975         * common.opt (fdiagnostics-color=): Add Var and Init.
27976         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
27977         env var is in the environment, the default is auto rather than never.
27979         * diagnostic.h (file_name_as_prefix): Add context argument.
27980         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
27981         the string as locus.
27982         * langhooks.c (lhd_print_error_function): Adjust caller.
27984 2013-04-25  Lawrence Crowl  <crowl@google.com>
27986         * var-tracking.c (shared_hash_def::htab):
27987         Change type to hash_table.  Update dependent calls and types.
27989 2013-04-25  Lawrence Crowl  <crowl@google.com>
27991         * Makefile.in: Update as needed below.
27993         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
27994         Move declaration to after the type's method definitons.
27996         * attribs.c (htab_t scoped_attributes::attribute_hash):
27997         Change type to hash_table.  Update dependent calls and types.
27999         * bitmap.c (htab_t bitmap_desc_hash):
28000         Change type to hash_table.  Update dependent calls and types.
28002         * cselib.c (htab_t cselib_hash_table):
28003         Change type to hash_table.  Update dependent calls and types.
28005         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
28006         (hash_string_slot_node): Move implementation into lto-streamer.h
28007         struct string_slot_hasher.
28008         (eq_string_slot_node): Likewise.
28010         * data-streamer-out.c: Update output_block::string_hash_table
28011         dependent calls and types.
28013         * dwarf2cfi.c (htab_t trace_index):
28014         Change type to hash_table.  Update dependent calls and types.
28016         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
28017         Change type to hash_table.  Update dependent calls and types.
28018         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
28019         (htab_t optimize_external_refs::map): Likewise.
28020         (htab_t output_comp_unit::extern_map): Likewise.
28021         (htab_t output_comdat_type_unit::extern_map): Likewise.
28022         (htab_t output_macinfo::macinfo_htab): Likewise.
28023         (htab_t optimize_location_lists::htab): Likewise.
28024         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
28026         * except.c (htab_t ehspec_hash_type):
28027         Change type to hash_table.  Update dependent calls and types.
28028         (assign_filter_values::ttypes): Likewise.
28029         (assign_filter_values::ehspec): Likewise.
28030         (sjlj_assign_call_site_values::ar_hash): Likewise.
28031         (convert_to_eh_region_ranges::ar_hash): Likewise.
28033         * gcse.c (htab_t pre_ldst_table):
28034         Change type to hash_table.  Update dependent calls and types.
28036         * ggc-common.c (htab_t saving_htab):
28037         Change type to hash_table.  Update dependent calls and types.
28038         (htab_t loc_hash): Likewise.
28039         (htab_t ptr_hash): Likewise.
28040         (call_count): Rename ggc_call_count.
28041         (call_alloc): Rename ggc_call_alloc.
28042         (loc_descriptor): Rename make_loc_descriptor.
28043         (add_statistics): Rename ggc_add_statistics.
28045         * ggc-common.c (saving_htab):
28046         Change type to hash_table.  Update dependent calls and types.
28048         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
28049         (push_gimplify_context): Likewise.
28050         (pop_gimplify_context): Likewise.
28051         (struct gimple_temp_hash_elt): Added.
28052         (struct gimplify_hasher): Likewise.
28053         (struct gimplify_ctx.temp_htab):
28054         Change type to hash_table.  Update dependent calls and types.
28056         * gimple-fold.c: Include gimplify-ctx.h.
28058         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
28059         Change type to hash_table.  Update dependent calls and types.
28060         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
28061         avoid potential global name collision.
28063         * gimplify.c: Include gimplify-ctx.h.
28064         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
28065         (htab_t gimplify_ctx::temp_htab):
28066         Update dependent calls and types for new type hash_table.
28067         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
28068         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
28070         * gimplify-ctx.h: New.
28071         (struct gimple_temp_hash_elt): Move from gimplify.c.
28072         (class gimplify_hasher): New.
28073         (struct gimplify_ctx): Move from gimple.h.
28074         (htab_t gimplify_ctx::temp_htab):
28075         Change type to hash_table.  Update dependent calls and types.
28077         * graphite-clast-to-gimple.c: Include graphite-htab.h.
28078         (htab_t ivs_params::newivs_index):
28079         Change type to hash_table.  Update dependent calls and types.
28080         (htab_t ivs_params::params_index): Likewise.
28081         (htab_t print_generated_program::params_index): Likewise.
28082         (htab_t gloog::newivs_index): Likewise.
28083         (htab_t gloog::params_index): Likewise.
28085         * graphite.c: Include graphite-htab.h.
28086         4htab_t graphite_transform_loops::bb_pbb_mapping):
28087         Change type to hash_table.  Update dependent calls and types.
28089         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
28090         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
28091         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
28093         * graphite-dependences.c: Include graphite-htab.h.
28094         (loop_is_parallel_p): Change hash table type of parameter.
28096         * graphite-htab.h: New.
28097         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
28098         (extern find_pbb_via_hash): Move from graphite-poly.h.
28099         (extern loop_is_parallel_p): Move from graphite-poly.h.
28100         (extern get_loop_body_pbbs): Move from graphite-poly.h.
28102         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
28103         (extern loop_is_parallel_p): Move to graphite-htab.h.
28104         (extern get_loop_body_pbbs): Move to graphite-htab.h.
28106         * haifa-sched.c (htab_t delay_htab):
28107         Change type to hash_table.  Update dependent calls and types.
28108         (htab_t delay_htab_i2): Likewise.
28110         * ira-color.c (htab_t allocno_hard_regs_htab):
28111         Change type to hash_table.  Update dependent calls and types.
28113         * ira-costs.c (htab_t cost_classes_htab):
28114         Change type to hash_table.  Update dependent calls and types.
28116         * loop-invariant.c (htab_t merge_identical_invariants::eq):
28117         Change type to hash_table.  Update dependent calls and types.
28119         * loop-iv.c (htab_t bivs):
28120         Change type to hash_table.  Update dependent calls and types.
28122         * loop-unroll.c (htab_t opt_info::insns_to_split):
28123         Change type to hash_table.  Update dependent calls and types.
28124         (htab_t opt_info::insns_with_var_to_expand): Likewise.
28126         * lto-streamer.h (struct string_slot): Move from data-streamer.h
28127         (struct string_slot_hasher): New.
28128         (htab_t output_block::string_hash_table):
28129         Change type to hash_table.  Update dependent calls and types.
28131         * lto-streamer-in.c (freeing_string_slot_hasher): New.
28132         (htab_t file_name_hash_table):
28133         Change type to hash_table.  Update dependent calls and types.
28135         * lto-streamer-out.c: Update output_block::string_hash_table dependent
28136         calls and types.
28138         * lto-streamer.c (htab_t tree_htab):
28139         Change type to hash_table.  Update dependent calls and types.
28141         * omp-low.c: Include gimplify-ctx.h.
28143         * passes.c (htab_t name_to_pass_map):
28144         Change type to hash_table.  Update dependent calls and types.
28145         (pass_traverse): Rename to passes_pass_traverse.
28147         * plugin.c (htab_t event_tab):
28148         Change type to hash_table.  Update dependent calls and types.
28150         * postreload-gcse.c (htab_t expr_table):
28151         Change type to hash_table.  Update dependent calls and types.
28152         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
28154         * sese.c (debug_rename_map_1): Make extern.
28155         (htab_t copy_bb_and_scalar_dependences::rename_map):
28156         Change type to hash_table.  Update dependent calls and types.
28158         * sese.h (extern debug_rename_map): Move to .c file.
28160         * store-motion.c (htab_t store_motion_mems_table):
28161         Change type to hash_table.  Update dependent calls and types.
28163         * trans-mem.c (htab_t tm_new_mem_hash):
28164         Change type to hash_table.  Update dependent calls and types.
28166         * tree-browser.c (htab_t TB_up_ht):
28167         Change type to hash_table.  Update dependent calls and types.
28169         * tree-cfg.c (htab_t discriminator_per_locus):
28170         Change type to hash_table.  Update dependent calls and types.
28172         * tree-complex.c: Include tree-hasher.h
28173         (htab_t complex_variable_components):
28174         Change type to hash_table.  Update dependent calls and types.
28176         * tree-eh.c (htab_t finally_tree):
28177         Change type to hash_table.  Update dependent calls and types.
28179         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
28180         struct int_tree_hasher.
28181         (extern int_tree_map_eq): Likewise.
28182         (uid_decl_map_hash): Removed.
28183         (extern decl_tree_map_eq): Likewise.
28185         * tree-hasher.h: New.
28186         (struct int_tree_hasher): New.
28187         (typedef int_tree_htab_type): New.
28189         * tree-inline.c: Include gimplify-ctx.h.
28191         * tree-mudflap.c: Include gimplify-ctx.h.
28193         * tree-parloops.c: Include tree-hasher.h.
28194         (htab_t eliminate_local_variables_stmt::decl_address):
28195         Change type to hash_table.  Update dependent calls and types.
28196         (htab_t separate_decls_in_region::decl_copies): Likewise.
28198         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
28199         Change type to hash_table.  Update dependent calls and types.
28201         * tree-sra.c (candidates):
28202         Change type to hash_table.  Update dependent calls and types.
28204         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
28205         in tree-flow.h.
28206         (int_tree_map_hash): Likewise.
28208         * tree-ssa-dom.c (htab_t avail_exprs):
28209         Change type to hash_table.  Update dependent calls and types.
28211         * tree-ssa-live.c (var_map_base_init::tree_to_index):
28212         Change type to hash_table.  Update dependent calls and types.
28214         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
28215         Change type to hash_table.  Update dependent calls and types.
28217         * tree-ssa-phiopt.c (seen_ssa_names):
28218         Change type to hash_table.  Update dependent calls and types.
28220         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
28221         Change type to hash_table.  Update dependent calls and types.
28223         * tree-ssa-uncprop.c (equiv):
28224         Change type to hash_table.  Update dependent calls and types.
28226 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
28228         PR rtl-optimization/57003
28229         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
28230         call note_stores with kill_clobbered_value callback again after
28231         killing regs_invalidated_by_call.
28233 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28235         * config/aarch64/aarch64-simd.md
28236         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
28237         (aarch64_simd_bsl<mode>): Likewise.
28238         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
28240 2013-04-25  Marek Polacek  <polacek@redhat.com>
28242         PR tree-optimization/57066
28243         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
28245 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28247         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
28249 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28251         * config/aarch64/aarch64-builtins.c
28252         (aarch64_fold_builtin): New.
28253         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
28254         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
28255         * config/aarch64/aarch64-simd-builtins.def (abs): New.
28256         * config/aarch64/arm_neon.h
28257         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
28259 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28260             Tejas Belagod  <tejas.belagod@arm.com>
28262         * config/aarch64/aarch64-builtins.c
28263         (aarch64_gimple_fold_builtin): New.
28264         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
28265         * config/aarch64/aarch64-simd-builtins.def (addv): New.
28266         * config/aarch64/aarch64-simd.md (addpv4sf): New.
28267         (addvv4sf): Update.
28268         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
28270 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28272         * config/aarch64/aarch64.md
28273         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
28275 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28277         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
28278         (*ngcsi_uxtw): New pattern.
28280 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28281             Julian Brown  <julian@codesourcery.com>
28283         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
28284         (TB_DREG): Add T_V4HF.
28285         (v4hf_UP): New macro.
28286         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28287         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28288         Handle initialisation of V4HF. Adjust initialisation of reinterpret
28289         built-ins.
28290         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
28291         (arm_vector_mode_supported_p): Handle V4HF.
28292         (arm_mangle_map): Handle V4HFmode.
28293         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
28294         * config/arm/arm_neon_builtins.def: Add entries for
28295         vcvtv4hfv4sf, vcvtv4sfv4hf.
28296         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
28297         (neon_vcvtv4hfv4sf): Likewise.
28298         * config/arm/neon-gen.ml: Handle half-precision floating point
28299         features.
28300         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
28301         * config/arm/arm_neon.h: Regenerate.
28302         * config/arm/neon.ml (type elts): Add F16.
28303         (type vectype): Add T_float16x4, T_floatHF.
28304         (type vecmode): Add V4HF.
28305         (type features): Add Requires_FP_bit feature.
28306         (elt_width): Handle F16.
28307         (elt_class): Likewise.
28308         (elt_of_class_width): Likewise.
28309         (mode_of_elt): Refactor.
28310         (type_for_elt): Handle F16, fix error messages.
28311         (vectype_size): Handle T_float16x4.
28312         (vcvt_sh): New function.
28313         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
28314         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
28315         (string_of_mode): Handle V4HF.
28316         * doc/arm-neon-intrinsics.texi: Regenerate.
28318 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
28320         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
28321         format specifier in 'X' case.
28323 2013-04-25  Alan Modra  <amodra@gmail.com>
28325         PR target/57052
28326         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
28327         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
28328         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
28329         Repeat for many other rotate/shift and mask patterns using subregs.
28330         Name lshiftrt insns.
28331         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
28332         on WORDS_BIG_ENDIAN.
28334 2013-04-25  Alan Modra  <amodra@gmail.com>
28336         * config.gcc: Support little-endian powerpc-linux targets.
28337         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
28338         (LINK_OS_LINUX_SPEC): Define.
28339         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
28340         Preserve MASK_LITTLE_ENDIAN.
28341         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
28342         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
28343         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
28344         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
28345         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
28346         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
28347         Correct fp word order for little-endian.  Don't shift toc entries
28348         smaller than a word for little-endian.
28349         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
28350         (bswapdi2 splits): Correct low-part subreg for little-endian.
28351         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
28352         low/high where such is correct only for be.
28353         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
28354         little-endian for -mcall-aixdesc.
28356 2013-04-25  Alan Modra  <amodra@gmail.com>
28358         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
28359         replace_equiv_address_nv.
28361 2013-04-25  Alan Modra  <amodra@gmail.com>
28363         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
28365 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28367         Revert:
28368         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28369         * rtl.h (struct rtx_def): ...
28371 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28373         PR rtl-optimizations/57046
28374         * lra-constraints (split_reg): Set up lra_risky_transformations_p
28375         for multi-reg splits.
28377 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
28379         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
28381 2013-04-24  Sterling Augustine  <saugustine@google.com>
28383         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
28384         (comp_dir_string, debug_str_dwo_section): New.
28385         (DEBUG_STR_DWO_SECTION): Rename to ...
28386         (DEBUG_DWO_STR_SECTION): ... this.
28387         (DEBUG_NORM_STR_SECTION): Delete.
28388         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
28389         (DEBUG_STR_DWO_SECTION_FLAGS): New.
28390         (find_AT_string): Move most logic to ...
28391         (find_AT_string_in_table): ... here.  New.
28392         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
28393         add_skeleton_AT_string.  Delete logic.
28394         (output_skeleton_debug_sections): Remove call to
28395         add_top_level_skeleton_die_attrs.
28396         (add_comp_dir_attribute): Move logic to comp_dir_string.
28397         (dwarf2out_init): Initialize debug_str_dwo_section.
28398         (output_indirect_string): Call find_string_form.
28399         (output_indirect_strings): Rewrite.
28400         (prune_unused_types): Empty skeleton_debug_str_hash.
28401         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
28402         (dwarf2out_finish):  Call output_indirect_strings.
28404 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
28406         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
28408 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
28410         * rtl.h (struct rtx_def): Add comment for field jump.
28411         (LRA_SUBREG_P): New macro.
28412         * recog.c (register_operand): Check LRA_SUBREG_P.
28413         * lra.c (lra): Add note at the end of RTL code. Align non-empty
28414         stack frame.
28415         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
28416         (lra_final_code_change): Skip subreg change for operators.
28417         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
28418         if there are no operand changes.
28419         * lra-constraints.c (curr_insn_set): New.
28420         (match_reload): Set LRA_SUBREG_P.
28421         (emit_spill_move): Ditto.
28422         (check_and_process_move): Use curr_insn_set. Process only single
28423         set insns.  Don't initialize sec_mem_p and change_p.
28424         (simplify_operand_subreg): Use LRA_SUBREG_P.
28425         (reg_in_class_p): New function.
28426         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
28427         of #ifdef.  Add code to remove cycling.
28428         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
28429         non-null disp.  Reload inner instead of disp when base and index
28430         are null.  Try to put lo_sum into register.
28431         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
28432         (check_and_process_move): Move code for move cost check to
28433         simple_move_p.  Remove equiv_substitution.
28434         (simple_move_p): New function.
28435         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
28436         curr_insn_set.  Call check_and_process_move only for single set
28437         insns.  Use the new function.  Move call of check_and_process_move
28438         after operand equiv substitution and address process.
28440 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
28442         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
28443         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
28444         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
28446 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
28448         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
28450 2013-04-24  Marek Polacek  <polacek@redhat.com>
28452         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
28453         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
28454         (select_loops_exit_conditions): Likewise.
28455         (number_of_iterations_for_all_loops): Likewise.
28456         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
28457         (scev_analysis): Likewise.
28459 2013-04-02  Catherine Moore  <clm@codesourcery.com>
28460             Chao-ying Fu  <fu@mips.com>
28462         * config/mips/micromips.md (jraddiusp): New pattern.
28463         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
28464         instruction if possible.
28466 2013-04-24  Alan Modra  <amodra@gmail.com>
28468         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
28470 2013-04-24  Julian Brown  <julian@codesourcery.com>
28471             Chung-Lin Tang  <cltang@codesourcery.com>
28473         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
28474         dependency behavior in enumeration type DIE generation. Add TODO note
28475         to comments about future DW_FORM_sdata/udata re-work of related code.
28477 2013-04-23  Lawrence Crowl  <crowl@google.com>
28479         * Makefile.in: Update as needed below.
28481         * hash-table.h (class hash_table):
28482         Correct many methods with parameter types compare_type to the correct
28483         value_type.  (Correct code was unlikely to notice the change.)
28484         (hash_table::elements_with_deleted) New.
28485         (class hashtable::iterator): New.
28486         (hashtable::begin()): New.
28487         (hashtable::end()): New.
28488         (FOR_EACH_HASH_TABLE_ELEMENT): New.
28490         * statistics.c (statistics_hashes):
28491         Change type to hash_table.  Update dependent calls and types.
28493         * tree-into-ssa.c (var_infos):
28494         Change type to hash_table.  Update dependent calls and types.
28496         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
28497         Change type to hash_table.  Update dependent calls and types.
28499         * tree-ssa-loop-im.c (struct mem_ref.refs):
28500         Change type to hash_table.  Update dependent calls and types.
28502         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
28503         Change type to hash_table.  Update dependent calls and types.
28505         * tree-ssa-sccvn.c (vn_tables_s::nary):
28506         Change type to hash_table.  Update dependent calls and types.
28507         (vn_tables_s::phis): Likewise.
28508         (vn_tables_s::references): Likewise.
28510         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
28511         (vn_reference_eq): Update parameter and return types.
28513         * tree-ssa-structalias.c (pointer_equiv_class_table):
28514         Change type to hash_table.  Update dependent calls and types.
28515         (location_equiv_class_table): Likewise.
28517         * tree-vect-data-refs.c: Consequential changes for making
28518         peeling a hash_table.
28520         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
28521         (destroy_loop_vec_info): Dependent hash_table update.
28523         * tree-vectorizer.h (peeling_htab):
28524         Change type to hash_table.  Update dependent calls and types.
28526 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
28528         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
28529         to check the register content is equal or not.
28530         * lra-constraints.c (match_reload): Use lra_assign_reg_val
28531         to assign register content record.
28532         * lra-eliminations.c (update_reg_eliminate): Use
28533         lra_update_reg_val_offset to update register content offset.
28534         * lra-int.h (struct lra_reg): Add offset member.
28535         (lra_reg_val_equal_p): New static inline function.
28536         (lra_update_reg_val_offset): New static inline function.
28537         (lra_assign_reg_val): New static inline function.
28538         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
28539         to assign register content record.
28540         (initialize_lra_reg_info_element): Initial offset to zero.
28542 2013-04-23  Catherine Moore  <clm@codesourcery.com>
28544         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
28545         operands.  Record compression.
28547 2013-04-23  Xinliang David Li  <davidxl@google.com>
28549         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
28551 2013-04-23  Richard Biener  <rguenther@suse.de>
28553         PR middle-end/57036
28554         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
28555         parameter, only add abnormal goto edges from the copied body
28556         if the call could perform abnormal gotos.
28557         (copy_cfg_body): Adjust.
28559 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
28561         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
28563 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
28565         * coretypes.h (gimple_stmt_iterator): Add struct to make
28566         compatible with C.
28568 2013-04-23  Richard Biener  <rguenther@suse.de>
28570         PR tree-optimization/57026
28571         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
28572         from SSA names occuring in abnormal PHI nodes.
28574 2013-04-22  Andi Kleen  <ak@linux.intel.com>
28576         * lto/lto.c (print_lto_report_1): Fix LTO report names.
28578 2013-04-22  Andi Kleen  <ak@linux.intel.com>
28580         * lto/lto.c (print_lto_report_1): Declare early.
28581         (read_cgraph_and_symbols): Call print_lto_report_1 early.
28583 2013-04-22  Andi Kleen  <ak@linux.intel.com>
28585         * common.opt (-flto-report-wpa): Add.
28586         * doc/invoke.texi (-flto-report-wpa): Add.
28587         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
28588         (lto_main): dito.
28590 2013-04-22  Xinliang David Li  <davidxl@google.com>
28592         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
28593         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
28594         * Makefile.in: New dependency
28596             David Daney <ddaney.cavm@gmail.com>
28598         * configure.ac (gcc_cv_as_micromips_support):  Use the
28599         --fatal-warnings option.
28600         * configure: Regenerate.
28602 2013-04-22  Marek Polacek  <polacek@redhat.com>
28604         PR sanitizer/56990
28605         * tsan.c (instrument_expr): Don't instrument expression
28606         in case its size is zero.
28608 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
28610         PR target/57032
28611         Revert:
28612         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
28614         * config/alpha/alpha.c (TARGET_LRA_P): New define.
28616 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28618         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
28619         (gimple_stmt_iterator): New typedef.
28620         * gimple.h (gimple_stmt_iterator): Rename to...
28621         (gimple_stmt_iterator_d): ... This.
28622         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
28623         trees be valid for GIMPLE and GENERIC.
28624         (TARGET_GIMPLE_FOLD_BUILTIN): New.
28625         * gimple-fold.c (gimple_fold_call): Call target hook
28626         gimple_fold_builtin.
28627         * hooks.c (hook_bool_gsiptr_false): New.
28628         * hooks.h (hook_bool_gsiptr_false): New.
28629         * target.def (fold_stmt): New.
28630         * doc/tm.texi: Regenerate.
28632 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
28634         PR target/57018
28635         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
28636         a set sp if no stack realignment.
28638 2013-04-22  Nick Clifton  <nickc@redhat.com>
28640         * config.gcc (tilegx-linux): Extend extra_objs rather than
28641         overwriting it.
28642         (tilepro-linux): Likewise.
28644 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28646         * config/aarch64/aarch64-builtins.c
28647         (CF): Remove.
28648         (CF0, CF1, CF2, CF3, CF4, CF10): New.
28649         (VAR<1-12>): Add MAP parameter.
28650         (BUILTIN_*): Likewise.
28651         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
28652         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
28653         (aarch64_ushl_n<mode>): Likewise.
28654         (aarch64_sshr_n<mode>): Likewise.
28655         (aarch64_ushr_n<mode>): Likewise.
28656         (aarch64_<maxmin><mode>): Likewise.
28657         (aarch64_sqrt<mode>): Likewise.
28658         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
28659         (vshr<q>_n_*): Likewise.
28661 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
28663         * config/aarch64/aarch64-builtins.c
28664         (aarch64_simd_builtin_type_mode): Handle SF types.
28665         (sf_UP): Define.
28666         (BUILTIN_GPF): Define.
28667         (aarch64_init_simd_builtins): Handle SF types.
28668         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
28669         (frecps): Likewise.
28670         (frecpx): Likewise.
28671         * config/aarch64/aarch64-simd.md
28672         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
28673         (aarch64_frecpe<mode>): New.
28674         (aarch64_frecps<mode>): Likewise.
28675         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
28676         (v8type): Add frecp<esx>.
28677         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
28678         (aarch64_frecps<mode>): Likewise.
28679         * config/aarch64/iterators.md (FRECP): New.
28680         (frecp_suffix): Likewise.
28681         * config/aarch64/arm_neon.h
28682         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
28684 2013-04-22  Christian Bruel  <christian.bruel@st.com>
28686         PR target/56995
28687         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
28688         (REG_CLASS_NAMES): Idem.
28689         (REG_CLASS_CONTENTS): Idem.
28690         (REGCLASS_HAS_FP_REG): Idem.
28691         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
28692         (sh_conditional_register_usage): Idem.
28694 2013-04-21  Jeff Law  <law@redhat.com>
28696         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
28697         (ssa_forward_propagate_and_combine): Use it.
28699 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
28701         * lra.c: Update the flow chart diagram.
28703 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
28705         PR rtl-optimization/56847
28706         * lra-constraints.c (process_alt_operands): Discourage alternative
28707         with non-matche doffsettable memory constraint fro memory with
28708         known offset.
28710 2013-04-19  Richard Biener  <rguenther@suse.de>
28712         PR tree-optimization/56982
28713         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
28714         function.
28715         * gimplify.c (gimplify_call_expr): Notice special calls.
28716         (gimplify_modify_expr): Likewise.
28717         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
28718         abnormal control flow receivers.
28719         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
28720         in the same way as cfun->has_nonlocal_labels.
28721         (gimple_purge_dead_abnormal_call_edges): Likewise.
28722         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
28723         receivers start a basic-block.
28725 2013-04-19  Richard Biener  <rguenther@suse.de>
28727         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
28728         member ...
28729         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
28730         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
28731         (SLP_TREE_LOAD_PERMUTATION): Add.
28732         (vect_transform_slp_perm_load): Adjust prototype.
28733         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
28734         (vect_free_slp_instance): Likewise.
28735         (vect_create_new_slp_node): Likewise.
28736         (vect_supported_slp_permutation_p): Remove.
28737         (vect_slp_rearrange_stmts): Adjust.
28738         (vect_supported_load_permutation_p): Likewise.  Inline
28739         vect_supported_slp_permutation_p here.
28740         (vect_analyze_slp_instance): Compute load permutations per
28741         slp node instead of per instance.
28742         (vect_get_slp_defs): Adjust.
28743         (vect_transform_slp_perm_load): Likewise.
28744         (vect_schedule_slp_instance): Remove redundant code.
28745         (vect_schedule_slp): Remove hack for PR56270, add it ...
28746         * tree-vect-stmts.c (vectorizable_load): ... here, do not
28747         CSE loads for SLP.  Adjust.
28749 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
28751         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
28752         spelling in two comments.
28754 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
28756         PR target/56797
28757         * config/arm/arm.c (load_multiple_sequence): Require SP
28758         as base register for loads if SP is in the register list.
28760 2013-04-19  Martin Jambor  <mjambor@suse.cz>
28762         PR tree-optimization/56718
28763         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
28764         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
28765         and made public.  Adjusted all callers.
28766         (ipa_intraprocedural_devirtualization): New function.
28767         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
28768         (ipa_intraprocedural_devirtualization): Likewise.
28769         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
28771 2013-04-19  Richard Biener  <rguenther@suse.de>
28773         PR tree-optimization/57000
28774         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
28776 2013-04-19  Terry Guo  <terry.guo@arm.com>
28778         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
28779         Replace with ...
28780         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
28781         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
28782         (cortex_m4_fmacs): Use new reservations.
28783         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
28785 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
28787         PR rtl-optimization/56999
28788         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
28789         related code.
28790         (lra_coalesce): Remove split_origin_bitmap and related code.
28791         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
28792         ranges if necessary.
28794 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
28796         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
28797         New array.
28798         (ix86_expand_call): Remove clobbered_registers array and use
28799         x86_64_ms_sysv_extra_clobbered_registers instead.
28800         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
28801         Declare here.
28802         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
28803         predicate.
28804         * config/i386/i386.md (*call_rex64_ms_sysv): Use
28805         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
28806         (*call_value_rex64_ms_sysv): Ditto.
28808 2013-04-18  Cary Coutant  <ccoutant@google.com>
28810         * dwarf2out.c (output_pubnames): Check die_perennial_p of
28811         parent instead of die_mark.
28813 2013-04-18  Diego Novillo  <dnovillo@google.com>
28815         * gimple.c (create_gimple_tmp): New.
28816         (get_expr_type): New.
28817         (build_assign): New.
28818         (build_type_cast): New.
28819         * gimple.h (enum ssa_mode): Define.
28820         (gimple_seq_set_location): New.
28821         * asan.c (build_check_stmt): Change some gimple_build_* calls
28822         to use build_assign and build_type_cast.
28824 2013-04-18  Richard Biener  <rguenther@suse.de>
28826         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28827         handle negative step.  Remove redundant checks.
28828         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
28829         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
28830         for negative step and grouped loads fail to vectorize.
28832 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
28834         * emit-rtl.c (reset_insn_used_flags): New function.
28835         (reset_all_used_flags): Use it.
28836         (verify_insn_sharing): New function.
28837         (verify_rtl_sharing): Fix verification for SEQUENCEs.
28839 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
28841         PR tree-optimization/56984
28842         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
28843         and (x >> M) >= N don't register any assertion if N << M is the
28844         minimum value.
28846 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
28848         * lower-subreg.c (resolve_simple_move): If called self-recursive,
28849         do not delete_insn insns that have not yet been emitted, only
28850         unlink them with remove_insn.
28851         * df-scan.c (df_insn_delete): Revert r197492.
28853 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
28855         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
28856         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
28858 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
28860         * config/arm/arm.md (movsicc_insn): Convert define_insn into
28861         define_insn_and_split.
28862         (and_scc,ior_scc,negscc): Likewise.
28863         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
28865 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
28867         * config/arm/arm.c (use_return_insn): Return 0 for targets that
28868         can benefit from using a sequence of LDRD instructions in epilogue
28869         instead of a single LDM instruction.
28871 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28873         PR 45688
28874         * doc/extend.texi: Fix typo.
28876 2013-04-17  Richard Biener  <rguenther@suse.de>
28878         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
28879         (vect_build_slp_tree): ... here.
28880         (vect_build_slp_tree_1): Compute which stmts of the SLP group
28881         match.  Remove special-casing of mismatched complex loads.
28882         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
28883         re-try the match with swapped commutative operands.
28884         (vect_supported_load_permutation_p): Remove special-casing of
28885         mismatched complex loads.
28886         (vect_analyze_slp_instance): Adjust.
28888 2013-04-17  Richard Biener  <rguenther@suse.de>
28890         PR rtl-optimization/56921
28891         * cfgloop.h (struct loop): Add simple_loop_desc member.
28892         (struct niter_desc): Mark with GTY(()).
28893         (simple_loop_desc): Do not use aux field but simple_loop_desc.
28894         * loop-iv.c (get_simple_loop_desc): Likewise.
28895         (free_simple_loop_desc): Likewise.
28897         Revert
28898         2013-04-16  Richard Biener  <rguenther@suse.de>
28900         PR rtl-optimization/56921
28901         * loop-init.c (pass_rtl_move_loop_invariants): Add
28902         TODO_do_not_ggc_collect to todo_flags_finish.
28903         (pass_rtl_unswitch): Same.
28904         (pass_rtl_unroll_and_peel_loops): Same.
28905         (pass_rtl_doloop): Same.
28907 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
28909         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
28910         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
28911         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
28912         references.
28913         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
28914         * tree-streamer.c (record_common_node): Adjust reference in comment.
28916 2013-04-17  Terry Guo  <terry.guo@arm.com>
28918         * config/arm/cortex-m4.md: Add a new bypass.
28920 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28922         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
28923         New pattern.
28924         (*subs_<optab><mode>_multp2): New pattern.
28925         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
28926         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
28928 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
28930         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
28931         (*subs_mul_imm_<mode>): New pattern.
28933 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
28935         PR target/56948
28936         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
28937         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
28938         (vsx_movti_32bit): Change j->wa to O->wa.
28940 2013-04-16  Richard Biener  <rguenther@suse.de>
28942         PR rtl-optimization/56921
28943         * loop-init.c (pass_rtl_move_loop_invariants): Add
28944         TODO_do_not_ggc_collect to todo_flags_finish.
28945         (pass_rtl_unswitch): Same.
28946         (pass_rtl_unroll_and_peel_loops): Same.
28947         (pass_rtl_doloop): Same.
28949 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
28951         * config/arm/arm.c (emit_multi_reg_push): New declaration
28952         for an existing function.
28953         (arm_emit_strd_push): New function.
28954         (arm_expand_prologue): Used here.
28955         (arm_emit_ldrd_pop): New function.
28956         (arm_expand_epilogue): Used here.
28957         (arm_get_frame_offsets): Update condition.
28958         (arm_emit_multi_reg_pop): Add a special case for load of a single
28959         register with writeback.
28961 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
28963         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
28964         description.
28966 2013-04-16  Richard Biener  <rguenther@suse.de>
28968         PR tree-optimization/56756
28969         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
28970         (first_mem_ref_loc): New.
28971         (execute_sm): Place the load temporarily before a previous
28972         access instead of in the latch edge to ensure its SSA dependencies
28973         are defined at points dominating the load.
28975 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
28977         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
28978         correct fix by moving header and footer insn to the footer of
28979         the merged basic block.  Clear BB_END of the merged-away block.
28981         PR middle-end/43631
28982         * emit-rtl.c (make_note_raw): New function.
28983         (link_insn_into_chain): New static inline function.
28984         (add_insn): Use it.
28985         (add_insn_before, add_insn_after): Factor insn chain linking code...
28986         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
28987         using link_insn_into_chain.
28988         (note_outside_basic_block_p): New helper function for emit_note_after
28989         and emit_note_before.
28990         (emit_note_after): Use nobb variant of add_insn_after if the note
28991         should not be contained in a basic block.
28992         (emit_note_before): Use nobb variant of add_insn_before if the note
28993         should not be contained in a basic block.
28994         (emit_note_copy): Use make_note_raw.
28995         (emit_note): Likewise.
28996         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
28997         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
28998         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
28999         the moved barrier the tail of the basic block it follows.
29000         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
29002 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
29004         PR tree-optimization/56962
29005         * gimple-ssa-strength-reduction.c (record_increment): Only set
29006         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
29007         either rhs1 or rhs2 is equal to c->base_expr.
29009 2013-04-15  Richard Biener  <rguenther@suse.de>
29011         PR tree-optimization/56933
29012         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
29013         member.
29014         (GROUP_READ_WRITE_DEPENDENCE): Remove.
29015         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
29016         * tree-vect-data-refs.c (vect_analyze_group_access): Move
29017         dependence check ...
29018         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
29019         ... here.
29020         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
29021         GROUP_READ_WRITE_DEPENDENCE.
29023 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29025         * emit-rtl.c (reset_all_used_flags): New function.
29026         (verify_rtl_sharing): Call reset_all_used_flags before and after
29027         performing the checks.
29029 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29031         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
29032         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
29033         * config/arm/constraints.md (De): New constraint.
29034         * config/arm/neon.md (anddi3_neon): Delete.
29035         (neon_vand<mode>): Expand to standard anddi3 pattern.
29036         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
29037         Move earlier in the file.
29038         (neon_inv_logic_op2): Likewise.
29039         (arm_anddi_operand_neon): New predicate.
29041 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29043         * configure.ac (gcc_cv_ld_as_needed): Set
29044         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
29045         Use -z ignore, -z record on *-*-solaris2*.
29046         (HAVE_LD_AS_NEEDED): Update comment.
29047         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
29048         * configure: Regenerate.
29049         * config.in: Regenerate.
29050         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
29051         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
29052         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
29053         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
29054         equivalents.  Fix markup.
29055         * doc/tm.texi: Regenerate.
29057 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
29059         * config/i386/i386.opt: New option mstack-protector-guard=.
29060         * config/i386/i386-opts.h: Add enum stack_protector_guard.
29061         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
29062         TARGET_SSP_TLS_GUARD.
29063         * config/i386/i386.c (ix86_option_override_internal): Set
29064         ix86_stack_protector_guard.
29065         * config/i386/i386.md (stack_protect_set): Enable for
29066         TARGET_SSP_TLS_GUARD only.
29067         (stack_protect_set_<mode>): Ditto.
29068         (stack_protect_test): Ditto.
29069         (stack_protect_test_<mode>): Ditto.
29070         * doc/invoke.texi (i386 Option): Document.
29072 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
29074         PR target/56890
29075         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
29076         (S_MODES): Set H_MODE bit.
29077         (SF_MODES): Set only S_MODE and SF_MODE bits.
29078         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
29079         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
29080         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
29081         <MODE_FLOAT>: Likewise.
29083 2013-04-15  Joey Ye  <joey.ye@arm.com>
29085         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
29087 2013-04-15  Joey Ye  <joey.ye@arm.com>
29089         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
29090         for real far jump.
29091         (thumb_far_jump_used_p): Count instruction size and set
29092         far_jump_used.
29094 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
29096         * reorg.c (fill_simple_delay_slots): Reindent block of code.
29097         * resource.c (mark_target_live_regs): Reformat conditional block.
29099 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
29101         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
29102         notes, they are emitted only just before final.
29103         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
29105 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
29107         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
29108         * cfgrtl.c (delete_insn): Call it here instead.
29109         * lra-spills.c (lra_final_code_change): Use delete_insn.
29110         * haifa-sched.c (sched_remove_insn): Likewise.
29111         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
29112         returning to the nop pool.
29113         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
29114         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
29116 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
29118         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
29119         * doc/tm.texi: Regenerated.
29121 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
29123         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
29124         QImode checks.
29126 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
29128         * df-core.c (df_find_def): Compare register numbers.
29129         (df_find_use): Likewise.
29131 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
29133         PR target/56903
29134         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
29135         lra_in_progress for return.
29137 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
29139         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
29140         define_insn into define_insn_and_split and emit movsicc patterns.
29142 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
29144         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
29146 2013-04-12  Richard Biener  <rguenther@suse.de>
29148         * tree-pass.h (TODO_do_not_ggc_collect): New.
29149         * passes.c (execute_one_ipa_transform_pass): Honor
29150         TODO_do_not_ggc_collect.
29151         (execute_one_pass): Likewise.
29153         Revert
29154         2013-04-10  Richard Biener  <rguenther@suse.de>
29156         * passes.c (init_optimization_passes): Remove reload pass.
29157         * ira.c (do_reload): Merge into ...
29158         (ira): ... this.
29159         (rest_of_handle_reload): Remove.
29160         (pass_reload): Likewise.
29161         * config/i386/i386.c (ix86_option_override): Refer to ira instead
29162         of reload for vzeroupper pass placement.
29164 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
29166         PR tree-optimization/56918
29167         PR tree-optimization/56920
29168         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
29169         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
29170         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
29171         use wide_mul_with_sign method.
29173 2013-04-12  Richard Biener  <rguenther@suse.de>
29175         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
29176         not be considered a gimple constant.
29178 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
29180         * fold-const.c (const_binop): Handle vector shifts by a scalar.
29181         (fold_binary_loc): Call const_binop also for mixed vector-scalar
29182         operations.
29184 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29185             Jakub Jelinek  <jakub@redhat.com>
29187         * opts.c: Include diagnostic-color.h.
29188         (common_handle_option): Handle OPT_fdiagnostics_color_.
29189         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
29190         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
29191         (diagnostic-color.o): New.
29192         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
29193         (diagnostic_color_rule): New enum.
29194         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
29195         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
29196         the location string.
29197         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
29198         either NULL, or color kind.
29199         * diagnostic-color.c: New file.
29200         * diagnostic-color.h: New file.
29201         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
29202         arguments.
29203         * doc/invoke.texi (-fdiagnostics-color): Document.
29204         * pretty-print.h (pp_show_color): Define.
29205         (struct pretty_print_info): Add show_color field.
29206         * diagnostic.c: Include diagnostic-color.h.
29207         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
29208         macros.  Colorize error:, warning: etc. strings and also the location
29209         string.
29210         (diagnostic_show_locus): Colorize the caret line.
29211         * pretty-print.c: Include diagnostic-color.h.
29212         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
29213         inside of %< %> quotes or quoted through q format modifier.
29215 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29217         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
29219 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29221         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
29222         code in CC_NZ mode.
29223         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
29224         pattern.
29226 2013-04-11  Marek Polacek  <polacek@redhat.com>
29228         PR tree-optimization/48184
29229         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
29231 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
29233         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
29234         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
29235         (skip_simple_arithmetic): Tidy up.
29236         * tree.h (skip_simple_constant_arithmetic): Declare.
29238 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
29240         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
29242 2013-04-11  Richard Biener  <rguenther@suse.de>
29244         * tree-vect-loop.c (get_initial_def_for_induction): Properly
29245         generate vector constants.
29247 2013-04-11  Richard Biener  <rguenther@suse.de>
29249         PR tree-optimization/56878
29250         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
29251         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
29252         New function.
29253         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29254         Prefer to align the DR with the most invariant base address.
29256 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29258         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
29259         comment.
29261 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
29263         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
29264         floating-point vector comparisons against 0.
29266 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
29268         PR tree-optimization/56899
29269         * fold-const.c (extract_muldiv_1): Apply distributive law
29270         only if TYPE_OVERFLOW_WRAPS (ctype).
29272 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
29274         PR target/56124
29275         * ira-costs.c (scan_one_insn): Check whether the source rtx of
29276         loading has side effect.
29278 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
29280         * config/sparc/sparc.c: Include tree-pass.h.
29281         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
29282         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
29283         head of file.  Change return type.  Split off gate function.
29284         (sparc_gate_work_around_errata): New function.
29285         (pass_work_around_errata): New pass definition.
29286         (insert_pass_work_around_errata) New pass insert definition to
29287         insert pass_work_around_errata just after delayed-branch scheduling.
29288         (sparc_option_override): Insert the pass.
29289         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
29291 2013-04-10  David S. Miller  <davem@davemloft.net>
29293         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
29294         or -mcpu=hypersparc.
29296         * target.def (cstore_mode): New hook.
29297         * target.h: Include insn-codes.h
29298         * targhooks.c: Likewise.
29299         (default_cstore_mode): New function.
29300         * targhooks.h: Declare it.
29301         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
29302         * doc/tm.texi: Rebuild.
29303         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
29304         target hook, rather than inspecting the insn_data.
29305         * config/sparc/sparc.c (sparc_cstore_mode): New function.
29306         (TARGET_CSTORE_MODE): Redefine.
29307         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
29308         result patterns.
29309         * config/sparc/predicates.md (cstore_result_operand): New special
29310         predicate.
29311         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
29312         Use it for operand 0.
29313         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
29314         (*snesi_special): Likewise.
29315         (*snesi_zero): Likewise.
29316         (*seqsi_zero): Likewise.
29317         (*sltu_insn): Likewise.
29318         (*sgeu_insn): Likewise.
29319         (*seqdi_special): Make operand 0 and comparison operation be of
29320         DImode.
29321         (*snedi_special): Likewise.
29322         (*snedi_special_vis3): Likewise.
29323         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
29324         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
29325         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
29326         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
29327         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
29328         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
29329         (*sltu_extend_sp64): Likewise.
29330         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
29331         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
29332         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
29333         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
29334         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
29336 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
29338         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
29339         (aarch64_start_file): Use the new function.
29341 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
29342             Jason Merrill  <jason@redhat.com>
29344         * common.opt: Add -gdwarf.
29345         * opts.c (common_handle_option): Handle it.
29346         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
29348 2013-04-10  Richard Biener  <rguenther@suse.de>
29350         * passes.c (execute_todo): Do not call ggc_collect conditional here.
29351         (execute_one_ipa_transform_pass): But unconditionally here.
29352         (execute_one_pass): And here.
29353         (init_optimization_passes): Remove reload pass.
29354         * tree-pass.h (TODO_ggc_collect): Remove.
29355         (pass_reload): Likewise.
29356         * ira.c (do_reload): Merge into ...
29357         (ira): ... this.
29358         (rest_of_handle_reload): Remove.
29359         (pass_reload): Likewise.
29360         * config/i386/i386.c (ix86_option_override): Refer to ira instead
29361         of reload for vzeroupper pass placement.
29362         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
29363         and todo_flags_finish of all passes.
29365 2013-04-10  Richard Biener  <rguenther@suse.de>
29367         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
29368         first_const_oprnd field, rename first_def_type to first_op_type.
29369         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
29370         (vect_get_and_check_slp_defs): Always use the type of the
29371         operand.  Allow mixed vect_external_def, vect_constant_def types.
29372         (vect_get_constant_vectors): Handle mixed vect_external_def,
29373         vect_constant_def types.
29375 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
29377         PR tree-optimization/55524
29378         * tree-ssa-math-opts.c
29379         (convert_mult_to_fma): Don't use an fms construct
29380         when we don't have an fms operation, but fnma, and it looks
29381         likely that we'll be able to use the latter.
29383 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
29385         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
29386         function.
29387         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
29388         inline fail caused by overwritable functions.
29390 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
29392         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
29393         unnecessary bits in the constant power of two case.
29395 2013-04-10  Richard Biener  <rguenther@suse.de>
29397         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
29398         broken code swapping operands.
29399         (vect_build_slp_tree): Do not compute load permutations here.
29400         (vect_analyze_slp_instance): Compute load permutations here,
29401         after building the SLP tree.
29403 2013-04-09  Christian Bruel  <christian.bruel@st.com>
29405         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
29406         of next/prev_real_insn.
29408 2013-04-09  Jan Hubicka  <jh@suse.cz>
29410         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
29411         Drop aliased parameter.
29412         (function_and_variable_visibility): Do not handle alias pairs.
29413         * cgraph.c (varpool_externally_visible_p): Update prototype.
29414         * varpool.c (varpool_add_new_variable): Update.
29416 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29418         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
29420 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
29422         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
29424         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
29426 2013-04-09  Marek Polacek  <polacek@redhat.com>
29428         PR tree-optimization/48762
29429         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
29431 2013-04-09  Richard Biener  <rguenther@suse.de>
29433         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
29434         dealing with cost.
29435         (vect_build_slp_tree): Likewise.
29436         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
29437         calculating the cost of a SLP instance.
29438         (vect_analyze_slp_instance): Use it from here, after building
29439         the SLP tree.
29441 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
29443         PR middle-end/56883
29444         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
29445         expand_omp_for_static_chunk): Use simple_p = true in
29446         force_gimple_operand_gsi calls when assigning to addressable decls.
29448 2013-04-09  Jeff Law  <law@redhat.com>
29450         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
29451         when the boolean was created by converting a wider object which
29452         had a boolean range.
29454 2013-04-09  Richard Biener  <rguenther@suse.de>
29456         * tree-vectorizer.h (slp_void_p): Remove.
29457         (slp_tree): Typedef before _slp_tree declaration.
29458         (struct _slp_tree): Use a vector of slp_tree as children.
29459         (vect_get_place_in_interleaving_chain): Remove.
29460         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
29461         Move ...
29462         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
29463         and make static.
29464         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
29465         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
29466         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
29467         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
29468         Use slp_node instead of slp_void_p and adjust.
29470 2013-04-09  Richard Biener  <rguenther@suse.de>
29472         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
29473         work that is not necessary.
29475 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
29477         PR tree-optimization/56854
29478         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
29479         forward into clobber stmts if it would change MEM_REF lhs into
29480         non-MEM_REF.
29482 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
29484         * tree.c (type_hash_lookup, type_hash_add): Make static.
29485         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
29487 2013-04-09  Richard Biener  <rguenther@suse.de>
29489         * tree.h (unsave_expr_now): Remove.
29490         * tree-inline.c (mark_local_for_remap_r): Remove.
29491         (unsave_expr_1): Likewise.
29492         (unsave_r): Likewise.
29493         (unsave_expr_now): Likewise.
29494         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
29495         (propagate_tree_value): Likewise.
29497 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
29499         * doc/rtl.texi (sequence): Rewrite documentation to match the
29500         current use of SEQUENCE rtl objects.
29501         * rtl.def (SEQUENCE): Likewise.
29503         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
29504         Update documentation.
29505         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
29506         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
29508         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
29510 2013-04-08  Teresa Johnson  <tejohnson@google.com>
29512         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
29513         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
29514         methods.
29515         (estimate_edge_size_and_time): Add comment to suggest using rounding
29516         methods.
29517         (estimate_node_size_and_time): Ditto.
29518         (remap_edge_change_prob): Use helper rounding divide methods.
29519         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
29520         (gimple_mod_pow2_value_transform): Ditto.
29521         (gimple_mod_subtract_transform): Ditto.
29522         (gimple_ic_transform): Ditto.
29523         (gimple_stringops_transform): Ditto.
29524         * stmt.c (conditional_probability): Ditto.
29525         (emit_case_dispatch_table): Ditto.
29526         * lto-cgraph.c (merge_profile_summaries): Ditto.
29527         * tree-optimize.c (execute_fixup_cfg): Ditto.
29528         * cfgcleanup.c (try_forward_edges): Ditto.
29529         * cfgloopmanip.c (scale_loop_profile): Ditto.
29530         (loopify): Ditto.
29531         (duplicate_loop_to_header_edge): Ditto.
29532         (lv_adjust_loop_entry_edge): Ditto.
29533         * tree-vect-loop.c (vect_transform_loop): Ditto.
29534         * profile.c (compute_branch_probabilities): Ditto.
29535         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
29536         * lto-streamer-in.c (input_cfg): Ditto.
29537         * gimple-streamer-in.c (input_bb): Ditto.
29538         * ipa-cp.c (update_profiling_info): Ditto.
29539         (update_specialized_profile): Ditto.
29540         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
29541         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
29542         rounding methods.
29543         * sched-rgn.c (compute_dom_prob_ps): Ditto.
29544         (compute_trg_info): Ditto.
29545         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
29546         (purge_dead_edges): Ditto.
29547         * loop-unswitch.c (unswitch_loop): Ditto.
29548         * cgraphclones.c (cgraph_clone_edge): Ditto.
29549         (cgraph_clone_node): Ditto.
29550         * tree-inline.c (copy_bb): Ditto.
29551         (copy_edges_for_bb): Ditto.
29552         (initialize_cfun): Ditto.
29553         (copy_cfg_body): Ditto.
29554         (expand_call_inline): Ditto.
29556 2013-04-08  Kai Tietz  <ktietz@redhat.com>
29558         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
29559         TARGET_CYGWIN64 by TARGET_64BIT.
29561 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
29563         * config/epiphany/epiphany.md (GPR_1): New constant.
29564         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
29565         * config/epiphany/epiphany.c (gen_compare_reg):
29566         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
29567         is already in place.
29568         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
29569         Don't require being called during rtl expansion; If y operlaps r0,
29570         return 0.
29571         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
29572         (epiphany_expand_epilogue): Likewise.
29574         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
29575         Don't use CC_FPmode for ORDERED / UNORDERED.
29576         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
29578         * config/epiphany/constraints.md (CnL): New constraint.
29579         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
29580         * config/epiphany/predicates.md (add_operand): Allow 1024.
29582         * config/epiphany/epiphany.md (logical_op): New code iterator.
29583         (op_mnc): New code attribute.
29584         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
29585         (mov_f+1, mov_f+2): New peephole2 patterns.
29587         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
29588         (cstoresi4): Also allow re-use of zero result when doing a NE
29589         comparison to a non-zero operand.
29590         Use (clobber (scratch)) for first insn if the gpr output is not needed.
29592         * config/epiphany/epiphany.md (<insn_opname>v2si3):
29593         Use gen_addsi3_i / gen_subsi3_i.
29595 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
29597         PR c++/34949
29598         PR c++/50243
29599         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
29600         contain anything but clobbers, at most one __builtin_stack_restore,
29601         optionally debug stmts and final resx, and if it has at least one
29602         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
29603         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
29604         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
29605         which isn't defaut definition, remove them.
29606         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
29607         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
29608         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
29609         with MEM_REF LHS with SSA_NAME address.
29611 2013-04-08  Jeff Law  <law@redhat.com>
29613         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
29615 2013-04-08  Richard Biener  <rguenther@suse.de>
29617         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
29618         extra newline.
29619         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
29620         determined vector type.
29621         (vect_analyze_data_refs): Likewise.
29622         (vect_get_new_vect_var): Adjust.
29623         (vect_create_destination_var): Preserve SSA name versions.
29624         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
29625         not dump anything here.
29627 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
29629         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
29630         Add member lr_slot_known.
29631         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
29632         if necessary.
29633         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
29634         Remove code that sets lr_slot_offset according to what a previous
29635         version of epiphany_emit_save_restore used to do.
29636         (epiphany_emit_save_restore): When doing an lr save or restore,
29637         set/verify lr_slot_known and lr_slot_offset.
29639 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
29641         PR target/54338
29642         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
29643         in ALL_REGS.
29645 2013-04-08  Richard Biener  <rguenther@suse.de>
29647         * alias.c (find_base_term): Fix thinko in previous change.
29649 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
29651         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
29652         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
29653         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
29654         if possible to compute val.
29655         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
29656         For QImode integers don't require anything about precision.  Use
29657         const_with_all_bytes_same to find out if the constant doesn't have
29658         repeated bytes in it.
29660 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29662         * config/s390/s390.c (s390_expand_insv): Only accept insertions
29663         within mode size.
29665 2013-04-08  Marek Polacek  <polacek@redhat.com>
29667         PR rtl-optimization/48182
29668         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
29669         value to 1.
29671 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29673         PR target/55487
29674         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
29675         nuses, make sure we have a label.
29677 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29679         PR target/56843
29680         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
29681         (rs6000_emit_swdiv_low_precision): Remove.
29682         (rs6000_emit_swdiv): Rewrite to handle between one and four
29683         iterations of Newton-Raphson generally; modify required number of
29684         iterations for some cases.
29685         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
29687 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
29689         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
29690         set-but-unused variable.
29692         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
29693         basic blocks of released function bodies garbage-collectable.
29695         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
29696         (struct rtl_opt_pass): Add TODO_df_finish.
29698         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
29700 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29702         * config/arm/constraints.md (q): New constraint.
29703         * config/arm/ldrdstrd.md: New file.
29704         * config/arm/arm.md (ldrdstrd.md) New include.
29705         (arm_movdi): Use "q" instead of "r" constraint
29706         for double-word memory access.
29707         (movdf_soft_insn): Likewise.
29708         * config/arm/vfp.md (movdi_vfp): Likewise.
29709         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
29710         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
29711         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
29712         (mem_ok_for_ldrd_strd): Likewise.
29713         (output_move_double): Update assertion.
29715 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29717         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
29719 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29721         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
29722         define_insn_and_split.
29723         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
29725 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29727         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
29728         define_insn_and_split.
29729         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
29730         (shiftsi3_compare): New pattern.
29731         (rrx): New pattern.
29732         * config/arm/unspecs.md (UNSPEC_RRX): New.
29734 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29736         * config/arm/arm.md (negdi_extendsidi): New pattern.
29737         (negdi_zero_extendsidi): Likewise.
29739 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29741         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
29742         define_insn_and_split.
29743         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
29744         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
29746 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29748         * config/arm/arm.md (arm_subdi3): Convert define_insn into
29749         define_insn_and_split.
29750         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
29751         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
29753 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29755         * config/arm/arm.md (subsi3_carryin): New pattern.
29756         (subsi3_carryin_const): Likewise.
29757         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
29758         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
29760 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29762         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
29764 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
29766         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
29767         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
29769 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29771         * config/arm/arm.c (arm_expand_builtin): Change fcode
29772         type to unsigned int.
29774 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29776         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
29778 2013-04-04  Ian Lance Taylor  <iant@google.com>
29780         * doc/standards.texi (Standards): The Go frontend supports the Go 1
29781         language standard.
29783 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
29785         PR middle-end/56729
29786         * df-scan.c (df_insn_delete): Disable failing assert.
29788 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29790         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
29791         New function prototype.
29792         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
29793         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
29794         (arm_builtin_vectorized_function): New function.
29796 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29798         * config/arm/arm_neon_builtins.def: New file.
29799         * config/arm/arm.c (neon_builtin_data): Move contents to
29800         arm_neon_builtins.def.
29801         (enum arm_builtins): Include neon builtin definitions.
29802         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
29803         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
29805 2013-04-04  Marek Polacek  <polacek@redhat.com>
29807         PR tree-optimization/48186
29808         * predict.c (maybe_hot_frequency_p): Return false if
29809         HOT_BB_FREQUENCY_FRACTION is 0.
29810         (cgraph_maybe_hot_edge_p): Likewise.
29812 2013-04-04  Richard Biener  <rguenther@suse.de>
29814         PR tree-optimization/56826
29815         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
29816         more accurately.
29818 2013-04-04  Richard Biener  <rguenther@suse.de>
29820         PR tree-optimization/56213
29821         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
29822         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
29824 2013-04-04  Richard Biener  <rguenther@suse.de>
29826         PR tree-optimization/56837
29827         * tree-loop-distribution.c (classify_partition): For non-zero
29828         values require that the value has the same precision as its
29829         mode to be useful as memset value.
29831 2013-04-03  Nick Clifton  <nickc@redhat.com>
29833         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
29834         (fmssf4): Use fmsf.s on E3V5 architectures.
29835         (fnmasf4): Use fnmaf.s on E3V5 architectures.
29836         (fnmssf4): Use fnmsf.s on E3V5 architectures.
29838 2013-04-03  Jeff Law  <law@redhat.com>
29840         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
29841         (lra-eliminations.o): Likewise.
29843 2013-04-03  Teresa Johnson  <tejohnson@google.com>
29845         * gcov-io.c (compute_working_sets): Moved most of body of old
29846         compute_working_sets here from profile.c.
29847         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
29848         (gcov_working_set_t): Moved typedef here from basic-block.h
29849         (compute_working_set): Declare.
29850         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
29851         (get_working_sets): Renamed from compute_working_set,
29852         replace most of body with call to new compute_working_sets.
29853         (get_exec_counts): Replace call to compute_working_sets
29854         to get_working_sets.
29855         * profile.h (get_working_sets): Renamed from compute_working_set.
29856         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
29857         to get_working_sets.
29858         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
29859         * gcov-dump.c (dump_working_sets): New function.
29861 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
29863         * hwint.c (sext_hwi, zext_hwi): New functions.
29864         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
29865         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
29866         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
29867         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
29868         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
29869         (sext_hwi, zext_hwi): New functions.
29871 2013-04-03  Jeff Law  <law@redhat.com>
29873         PR tree-optimization/56799
29874         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
29875         back test for widening conversion erroneously dropped in prior change.
29877 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29879         PR target/56809
29880         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
29881         instead of next_real_insn.
29883 2013-04-03  Marek Polacek  <polacek@redhat.com>
29885         PR sanitizer/55702
29886         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
29888 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29890         PR target/56809
29891         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
29892         next_real_insn.
29893         (thumb1_output_casesi): Likewise.
29894         (thumb2_output_casesi): Likewise.
29896 2013-04-03  Richard Biener  <rguenther@suse.de>
29898         PR tree-optimization/56817
29899         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
29900         Split out ...
29901         (tree_unroll_loops_completely_1): ... new function to manually
29902         walk the loop tree, properly defering outer loops of unrolled
29903         loops to later iterations.
29905 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
29907         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
29908         (vectorizable_load): Likewise.
29909         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
29910         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
29912 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
29914         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
29915         BIT_FIELD_REF.
29917 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
29919         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
29921 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
29923         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
29925 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
29927         PR tree-optimization/56790
29928         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
29929         folding.
29931 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
29933         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
29934         Handle VEC_MERGE.
29935         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
29936         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
29937         equal arguments.
29939 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
29941         PR c/19449
29942         * tree.h (force_folding_builtin_constant_p): New decl.
29943         * builtins.c (force_folding_builtin_constant_p): New variable.
29944         (fold_builtin_constant_p): Fold immediately also if
29945         force_folding_builtin_constant_p.
29947 2013-04-03  Richard Biener  <rguenther@suse.de>
29949         PR tree-optimization/56812
29950         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
29951         DRs of the same interleaving chain are independent.
29953 2013-04-02  Jason Merrill  <jason@redhat.com>
29955         * gdbinit.in (pbb): Use debug fn.
29957 2013-04-02  Lawrence Crowl  <crowl@google.com>
29959         * sese.h (struct ivtype_map_elt_s): Remove unused.
29960         (extern debug_ivtype_map): Remove unused.
29961         (extern eq_ivtype_map_elts): Remove unused.
29962         * sese.c (debug_ivtype_map): Removed unused.
29963         (debug_ivtype_map_1): Removed unused.
29964         (debug_ivtype_elt): Remove unused.
29965         (eq_ivtype_map_elts): Remove unused.
29967 2013-04-02  Kai Tietz  <ktietz@redhat.com>
29969         PR target/52790
29970         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
29971         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
29972         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
29973         function.
29974         (legitimize_pe_coff_symbol): Likewise.
29975         (is_imported_p): New helper-function.
29976         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
29977         for Windows x64 targets.
29978         (ix86_expand_prologue): Optimize for pe-coff targets.
29979         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
29980         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
29981         medium/large code-model.
29982         (legitimize_pic_address): Likewise.
29983         (legitimize_tls_address): Likewise.
29984         (ix86_expand_call): Likewise.
29985         (x86_output_mi_thunk): Likewise.
29986         (get_dllimport_decl): Add new beimport argument.
29987         (construct_plt_address): Don't assert for x64 pe-coff targets.
29988         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
29989         targets.
29990         (SYMBOL_FLAG_STUBVAR): New macro.
29991         (SYMBOL_REF_STUBVAR_P): Likewise.
29992         * config/i386/winnt.c (stub_list): New structure.
29993         (stub_head): New local variable.
29994         (i386_pe_record_stub): New function.
29995         (i386_pe_file_end): Emit refptr-stubs.
29997 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
29999         PR rtl-optimization/56745
30000         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
30001         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
30003         PR c++/34949
30004         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
30005         and both of them are MEM_REFs, just compare first argument for
30006         equality and attempt to deal even with differing offsets.
30008         PR c++/34949
30009         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
30010         of gimple_clobber_p to be MEM_REF.
30011         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
30012         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
30013         after gimplification.
30014         * asan.c (get_mem_ref_of_assignment): Don't instrument
30015         gimple_clobber_p stmts.
30016         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
30017         gimple_clobber_p stmt if they have MEM_REF lhs and
30018         are dead because of another gimple_clobber_p stmt.
30019         * tree-ssa-live.c (clear_unused_block_pointer): Treat
30020         gimple_clobber_p stmts like debug stmts.
30021         (remove_unused_locals): Remove clobbers with MEM_REF lhs
30022         that refer to unused VAR_DECLs or uninitialized values.
30023         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
30024         gimple_clobber_p stmts if they refer to removed parameters.
30025         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
30026         formatting.
30028 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
30030         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
30031         using SWI48 mode attribute.
30033 2013-04-02  Wei Mi  <wmi@google.com>
30035         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
30036         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
30037         *<rotate_insn><mode>3_mask in i386.md.
30039 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
30041         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
30043 2013-04-02  Richard Biener  <rguenther@suse.de>
30045         PR tree-optimization/56778
30046         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30047         Runtime alias tests are not supported for gather loads.
30048         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
30049         stmts referenced from SSA operands before updating SSA form.
30051 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
30052             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30054         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
30055         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
30056         * config/arm/cortex-a53.md: New file.
30057         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
30058         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
30059         * config/arm/arm.c (arm_issue_rate): Likewise.
30060         * config/arm/arm-tune.md: Regenerate
30061         * config/arm/arm-tables.opt: Regenerate.
30062         * config/arm/arm-cores.def: Add cortex-a53.
30064 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
30066         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
30067         non-static link.
30069 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30071         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
30072         scalar load/store operations using B/H registers.
30073         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
30075 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
30077         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
30078         scalar move.
30079         * config/aarch64/aarch64.c
30080         (aarch64_simd_scalar_immediate_valid_for_move): New.
30081         * config/aarch64/aarch64-protos.h
30082         (aarch64_simd_scalar_immediate_valid_for_move): New.
30083         * config/aarch64/constraints.md (Dh, Dq): New.
30084         * config/aarch64/iterators.md (hq): New.
30086 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
30088         * reorg.c (get_branch_condition): Deal with conditional returns.
30089         (fill_simple_delay_slots): Remove dead code dealing with jumps.
30091 2013-04-01  Wei Mi  <wmi@google.com>
30093         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
30094         Truncate operand 2 using %b asm operand modifier.
30095         (*<shift_insn><mode>3_mask): Ditto.
30096         (*<rotate_insn><mode>3_mask): Ditto.
30098 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
30100         PR middle-end/56798
30101         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
30103 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
30105         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
30106         of next_real_insn.
30107         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
30109 2013-03-30  Lawrence Crowl  <crowl@google.com>
30111         * dse.c (clear_alias_sets): Remove never set.
30112         (disqualified_clear_alias_sets): Remove never set.
30113         (clear_alias_mode_pool): Remove never set.
30114         (dse_step0): Remove condition that is never true.
30115         (canon_address): Remove condition that is never true.
30116         (dse_step7): Remove condition that is never true.
30117         (rest_of_handle_dse): Remove condition that is never true.
30118         (rest_of_handle_dse::did_global): Remove never read from above.
30119         (dse_step2_spill): Remove never called from above.
30120         (dse_step5_spill): Remove never called from above.
30122 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
30124         * doc/md.texi (Standard Names) <casesi>: Update documentation for
30125         JUMP_TABLE_DATA changes.
30126         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
30127         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
30128         (Insns) <jump_table_data>: New entry.
30129         * doc/tm.texi: Regenerate.
30131         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
30133         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
30134         for table jump at the end of a basic block using tablejump_p.
30135         * targhooks.c (default_invalid_within_doloop): Likewise.
30136         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
30137         target hook implementation that is identical to the default hook.
30138         (rs6000_invalid_within_doloop): Remove.
30140         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
30141         unused variable from tablejump_p call.
30143         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
30144         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
30145         (INSN_DELETED_P): Likewise.
30146         (emit_jump_table_data): New prototype.
30147         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
30148         after 4th as unused.
30149         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
30150         * sched-vis.c (print_insn): Likewise.
30151         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
30152         insn for compatibility with back ends that use next_active_insn to
30153         identify jump table data.
30154         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
30155         (remove_insn): Likewise.
30156         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
30157         to be emitted.
30158         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
30159         (emit_jump_table_data): New function.
30161         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
30162         basic block, a JUMP_TABLE_DATA never is.
30163         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
30164         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
30165         off from code handling real insns.
30166         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
30167         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
30168         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
30169         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
30170         is not a NONDEBUG_INSN_P.
30171         * ira-costs.c (scan_one_insn): Likewise.
30172         * jump.c (mark_all_labels): Likewise.
30173         (mark_jump_label_1): Likewise.
30174         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30175         * lra.c (get_insn_freq): Expect all insns reaching here to be in
30176         a basic block.
30177         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
30178         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
30179         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
30180         JUMP_TABLE_DATA_P insns.
30181         (calculate_elim_costs_all_insns): Likewise.
30182         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
30183         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
30184         (delete_output_reload): Code style fixups.
30185         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
30186         insn flags on this non-insn.
30187         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
30188         as scheduling barriers, for pre-change compatibility.
30189         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
30190         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
30192         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
30193         redundant JUMP_TABLE_DATA_P test.
30194         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
30195         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30196         (frv_for_each_packet): Likewise.
30197         * config/i386/i386.c (min_insn_size): Likewise.
30198         (ix86_avoid_jump_mispredicts): Likewise.
30199         * config/m32r/m32r.c (m32r_is_insn): Likewise.
30200         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
30201         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30202         (mips16_insn_length): Robustify.
30203         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
30204         (mips16_split_long_branches): Likewise.
30205         * config/pa/pa.c (pa_combine_instructions): Likewise.
30206         * config/rs6000/rs6000.c (get_next_active_insn): Treat
30207         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
30208         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
30209         as contributing to pool range lengths.
30210         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
30211         Remove redundant JUMP_TABLE_DATA_P test.
30212         (sh_loop_align): Likewise.
30213         (split_branches): Likewise.
30214         (sh_insn_length_adjustment): Likewise.
30215         * config/spu/spu.c (get_branch_target): Likewise.
30217 2013-03-29  Jan Hubicka  <jh@suse.cz>
30219         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
30220         gcov streaming; stream hot bb threshold to ltrans.
30221         * predict.c (get_hot_bb_threshold): Break out from ....
30222         (maybe_hot_count_p): ... here.
30223         (set_hot_bb_threshold): New function.
30224         * lto-section-in.c (lto_section_name): Add profile.
30225         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
30226         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
30227         and data-streamer.h
30228         (histogram_entry): New structure.
30229         (histogram, histogram_pool): New global vars.
30230         (histogram_hash): New structure.
30231         (histogram_hash::hash): New method.
30232         (histogram_hash::equal): Likewise.
30233         (account_time_size): New function.
30234         (cmp_counts): New function.
30235         (dump_histogram): New function.
30236         (ipa_profile_generate_summary): New function.
30237         (ipa_profile_write_summary): New function.
30238         (ipa_profile_read_summary): New function.
30239         (ipa_profile): Decide on threshold.
30240         (pass_ipa_profile): Add ipa_profile_write_summary and
30241         ipa_profile_read_summary.
30242         * Makefile.in (ipa.o): Update dependencies.
30243         * lto-streamer.h (LTO_section_ipa_profile): New section.
30245 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
30247         * tree.h (VAR_P): New.
30249 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
30251         PR lto/56777
30252         * doc/invoke.texi ([-fwhole-program]): Fix typo.
30254 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
30256         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
30257         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30258         (control_flow_insn_p): Likewise.
30259         * cfgrtl.c (duplicate_insn_chain): Likewise.
30260         * final.c (get_attr_length_1): Likewise.
30261         (shorten_branches): Likewise.
30262         (final_scan_insn): Likewise.
30263         * function.c (instantiate_virtual_regs): Likewise.
30264         * gcse.c (insert_insn_end_basic_block): Likewise.
30265         * ira-costs.c (scan_one_insn): Likewise.
30266         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
30267         * lra.c (check_rtl): Likewise.
30268         * reload1.c (elimination_costs_in_insn): Likewise.
30269         * reorg.c (follow_jumps): Likewise.
30271         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
30272         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
30273         (thumb_far_jump_used_p): Likewise.
30274         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
30275         (workaround_speculation): Likewise.
30276         (add_sched_insns_for_speculation): Likewise.
30277         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
30278         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
30279         (frv_for_each_packet): Likewise.
30280         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
30281         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
30282         (final_emit_insn_group_barriers): Likewise.
30283         * config/m32r/m32r.c (m32r_is_insn): Likewise.
30284         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
30285         (mips16_insn_length): Likewise.
30286         * config/pa/pa.c (pa_reorg): Likewise.
30287         (pa_combine_instructions): Likewise.
30288         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
30289         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
30290         (sh_reorg): Likewise.
30291         (split_branches): Likewise.
30292         * config/spu/spu.c (get_branch_target): Likewise.
30294         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
30295         JUMP_TABLE_DATA_P.
30297 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
30299         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
30300         Fix declaration name.
30302 2013-03-28  Lawrence Crowl  <crowl@google.com>
30304         * graphds.h (struct graph.indicies): Remove unused.
30305         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
30306         (SCOP_ORIGINAL_PDDRS): Remove unused.
30307         * sese.h (extern insert_loop_close_phis): Removed unused.
30308         (extern insert_guard_phis): Removed unused.
30309         (extern ivtype_map_elt_info): Removed unused.
30310         (new_ivtype_map_elt): Removed unused.
30311         * sese.c (ivtype_map_elt_info): Removed unused.
30313 2013-03-28  Lawrence Crowl  <crowl@google.com>
30315         * Makefile.in: Add several missing include dependences.
30316         (DUMPFILE_H): New.
30317         (test-dump.o): New.  This object is not added to any executable,
30318         but is present for ad-hoc testing.
30319         * bitmap.c
30320         (debug (const bitmap_head_def &)): New.
30321         (debug (const bitmap_head_def *)): New.
30322         * bitmap.h
30323         (extern debug (const bitmap_head_def &)): New.
30324         (extern debug (const bitmap_head_def *)): New.
30325         * cfg.c
30326         (debug (edge_def &)): New.
30327         (debug (edge_def *)): New.
30328         * cfghooks.c
30329         (debug (basic_block_def &)): New.
30330         (debug (basic_block_def *)): New.
30331         * dumpfile.h
30332         (dump_node (const_tree, int, FILE *)): Correct source file.
30333         * dwarf2out.c
30334         (debug (die_struct &)): New.
30335         (debug (die_struct *)): New.
30336         * dwarf2out.h
30337         (extern debug (die_struct &)): New.
30338         (extern debug (die_struct *)): New.
30339         * gimple-pretty-print.c
30340         (debug (gimple_statement_d &)): New.
30341         (debug (gimple_statement_d *)): New.
30342         * gimple-pretty-print.h
30343         (extern debug (gimple_statement_d &)): New.
30344         (extern debug (gimple_statement_d *)): New.
30345         * ira-build.c
30346         (debug (ira_allocno_copy &)): New.
30347         (debug (ira_allocno_copy *)): New.
30348         (debug (ira_allocno &)): New.
30349         (debug (ira_allocno *)): New.
30350         * ira-int.h
30351         (extern debug (ira_allocno_copy &)): New.
30352         (extern debug (ira_allocno_copy *)): New.
30353         (extern debug (ira_allocno &)): New.
30354         (extern debug (ira_allocno *)): New.
30355         * ira-lives.c
30356         (debug (live_range &)): New.
30357         (debug (live_range *)): New.
30358         * lra-int.h
30359         (debug (lra_live_range &)): New.
30360         (debug (lra_live_range *)): New.
30361         * lra-lives.c
30362         (debug (lra_live_range &)): New.
30363         (debug (lra_live_range *)): New.
30364         * omega.c
30365         (debug (omega_pb_d &)): New.
30366         (debug (omega_pb_d *)): New.
30367         * omega.h
30368         (extern debug (omega_pb_d &)): New.
30369         (extern debug (omega_pb_d *)): New.
30370         * print-rtl.c
30371         (debug (const rtx_def &)): New.
30372         (debug (const rtx_def *)): New.
30373         * print-tree.c
30374         (debug_tree (tree): Move within file.
30375         (debug_raw (const tree_node &)): New.
30376         (debug_raw (const tree_node *)): New.
30377         (dump_tree_via_hooks (const tree_node *, int)): New.
30378         (debug (const tree_node &)): New.
30379         (debug (const tree_node *)): New.
30380         (debug_verbose (const tree_node &)): New.
30381         (debug_verbose (const tree_node *)): New.
30382         (debug_head (const tree_node &)): New.
30383         (debug_head (const tree_node *)): New.
30384         (debug_body (const tree_node &)): New.
30385         (debug_body (const tree_node *)): New.
30386         (debug_vec_tree (tree): Move and reimplement in terms of dump.
30387         (debug (vec<tree, va_gc> &)): New.
30388         (debug (vec<tree, va_gc> *)): New.
30389         * rtl.h
30390         (extern debug (const rtx_def &)): New.
30391         (extern debug (const rtx_def *)): New.
30392         * sbitmap.c
30393         (debug_raw (simple_bitmap_def &)): New.
30394         (debug_raw (simple_bitmap_def *)): New.
30395         (debug (simple_bitmap_def &)): New.
30396         (debug (simple_bitmap_def *)): New.
30397         * sbitmap.h
30398         (extern debug (simple_bitmap_def &)): New.
30399         (extern debug (simple_bitmap_def *)): New.
30400         (extern debug_raw (simple_bitmap_def &)): New.
30401         (extern debug_raw (simple_bitmap_def *)): New.
30402         * sel-sched-dump.c
30403         (debug (vinsn_def &)): New.
30404         (debug (vinsn_def *)): New.
30405         (debug_verbose (vinsn_def &)): New.
30406         (debug_verbose (vinsn_def *)): New.
30407         (debug (expr_def &)): New.
30408         (debug (expr_def *)): New.
30409         (debug_verbose (expr_def &)): New.
30410         (debug_verbose (expr_def *)): New.
30411         (debug (vec<rtx> &)): New.
30412         (debug (vec<rtx> *)): New.
30413         * sel-sched-dump.h
30414         (extern debug (vinsn_def &)): New.
30415         (extern debug (vinsn_def *)): New.
30416         (extern debug_verbose (vinsn_def &)): New.
30417         (extern debug_verbose (vinsn_def *)): New.
30418         (extern debug (expr_def &)): New.
30419         (extern debug (expr_def *)): New.
30420         (extern debug_verbose (expr_def &)): New.
30421         (extern debug_verbose (expr_def *)): New.
30422         (extern debug (vec<rtx> &)): New.
30423         (extern debug (vec<rtx> *)): New.
30424         * sel-sched-ir.h
30425         (_list_iter_cond_expr): Make inline instead of static.
30426         * sreal.c
30427         (debug (sreal &)): New.
30428         (debug (sreal *)): New.
30429         * sreal.h
30430         (extern debug (sreal &)): New.
30431         (extern debug (sreal *)): New.
30432         * tree.h
30433         (extern debug_raw (const tree_node &)): New.
30434         (extern debug_raw (const tree_node *)): New.
30435         (extern debug (const tree_node &)): New.
30436         (extern debug (const tree_node *)): New.
30437         (extern debug_verbose (const tree_node &)): New.
30438         (extern debug_verbose (const tree_node *)): New.
30439         (extern debug_head (const tree_node &)): New.
30440         (extern debug_head (const tree_node *)): New.
30441         (extern debug_body (const tree_node &)): New.
30442         (extern debug_body (const tree_node *)): New.
30443         (extern debug (vec<tree, va_gc> &)): New.
30444         (extern debug (vec<tree, va_gc> *)): New.
30445         * tree-cfg.c
30446         (debug (struct loop &)): New.
30447         (debug (struct loop *)): New.
30448         (debug_verbose (struct loop &)): New.
30449         (debug_verbose (struct loop *)): New.
30450         * tree-dump.c: Add header dependence.
30451         * tree-flow.h
30452         (extern debug (struct loop &)): New.
30453         (extern debug (struct loop *)): New.
30454         (extern debug_verbose (struct loop &)): New.
30455         (extern debug_verbose (struct loop *)): New.
30456         * tree-data-ref.c
30457         (debug (data_reference &)): New.
30458         (debug (data_reference *)): New.
30459         (debug (vec<data_reference_p> &)): New.
30460         (debug (vec<data_reference_p> *)): New.
30461         (debug (vec<ddr_p> &)): New.
30462         (debug (vec<ddr_p> *)): New.
30463         * tree-data-ref.h
30464         (extern debug (data_reference &)): New.
30465         (extern debug (data_reference *)): New.
30466         (extern debug (vec<data_reference_p> &)): New.
30467         (extern debug (vec<data_reference_p> *)): New.
30468         (extern debug (vec<ddr_p> &)): New.
30469         (extern debug (vec<ddr_p> *)): New.
30470         * tree-ssa-alias.c
30471         (debug (pt_solution &)): New.
30472         (debug (pt_solution *)): New.
30473         * tree-ssa-alias.h
30474         (extern debug (pt_solution &)): New.
30475         (extern debug (pt_solution *)): New.
30476         * tree-ssa-alias.c
30477         (debug (_var_map &)): New.
30478         (debug (_var_map *)): New.
30479         (debug (tree_live_info_d &)): New.
30480         (debug (tree_live_info_d *)): New.
30481         * tree-ssa-alias.h
30482         (extern debug (_var_map &)): New.
30483         (extern debug (_var_map *)): New.
30484         (extern debug (tree_live_info_d &)): New.
30485         (extern debug (tree_live_info_d *)): New.
30487 2013-03-28  Jan Hubicka  <jh@suse.cz>
30489         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
30491 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
30493         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
30494         record only when desired or required.
30496 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
30498         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
30499         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
30501 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
30503         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
30504         (*andsi3_compare0_uxtw): New pattern.
30505         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
30506         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
30508 2013-03-28  Jan Hubicka  <jh@suse.cz>
30510         * data-streamer-in.c (streamer_read_gcov_count): New function.
30511         * gimple-streamer-out.c: Include value-prof.h.
30512         (output_gimple_stmt): Output histogram.
30513         (output_bb): Use streamer_write_gcov_count.
30514         * value-prof.c: Include data-streamer.h
30515         (dump_histogram_value): Add HIST_TYPE_MAX.
30516         (stream_out_histogram_value): New function.
30517         (stream_in_histogram_value): New function.
30518         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
30519         (stream_out_histogram_value, stream_in_histogram_value): Declare.
30520         * data-streamer-out.c (streamer_write_gcov_count): New function.
30521         (streamer_write_gcov_count_stream): New function.
30522         * lto-cgraph.c (lto_output_edge): Update counter streaming.
30523         (lto_output_node): Likewise.
30524         (input_node, input_edge): Likewise.
30525         * lto-streamer-out.c (output_cfg): Update streaming.
30526         * lto-streamer-in.c (input_cfg): Likewise.
30527         * data-streamer.h (streamer_write_gcov_count,
30528         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
30529         * gimple-streamer-in.c: Include value-prof.h
30530         (input_gimple_stmt): Input histograms.
30531         (input_bb): Update profile streaming.
30533 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
30535         * genmodes.c (emit_max_int): New function.
30536         (emit_insn_modes_h): Added call to emit_max_function.
30537         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
30538         Added doc.
30539         * machmode.def: Fixed comment.
30541 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
30543         * combine.c (try_combine): Removed useless assert.
30544         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
30546 2013-03-28  Marek Polacek  <polacek@redhat.com>
30547             Richard Biener  <rguenther@suse.de>
30549         PR tree-optimization/56695
30550         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
30551         build signed result of a vector comparison.
30552         * tree-cfg.c (verify_gimple_comparison): Check that a result
30553         of a vector comparison has signed type.
30555 2013-03-28  Richard Biener  <rguenther@suse.de>
30557         PR tree-optimization/37021
30558         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
30559         do not restrict gaps between groups.
30560         * tree-vect-stmts.c (vectorizable_load): Properly account for
30561         a gap between groups.
30563 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30565         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
30566         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
30567         is not enabled.
30569 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
30571         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
30572         * doc/extend.texi (Named Address Spaces): Ditto.
30573         (Variable Attributes): Ditto.
30575 2013-03-27  Kai Tietz  <ktietz@redhat.com>
30577         * config.build: Add support for cygwin x64 target.
30578         * config.gcc: Likewise.
30579         * config.host: Likewise.
30580         * configure.ac: Likewise
30581         * configure: Regenerated.
30583 2013-03-27  Kai Tietz  <ktietz@redhat.com>
30585         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
30586         * config/i386/t-cygwin-w64: New file.
30587         * config/i386/cygwin-w64.h: New file.
30588         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
30589         and add support for x64-cygwin target.
30590         (CPP_SPEC): Likewise.
30591         (CXX_WRAP_SPEC_LIST): Undefine before define.
30592         (LIBGCJ_SONAME): Use 15 as version.
30594 2013-03-27  Richard Biener  <rguenther@suse.de>
30596         PR tree-optimization/56716
30597         * tree-ssa-structalias.c (perform_var_substitution): Adjust
30598         dumping for ref nodes.
30600 2013-03-27  Martin Jambor  <mjambor@suse.cz>
30602         PR tree-optimization/55334
30603         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
30604         restricted pointers to arrays.
30606 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
30608         * Makefile.in (.SUFFIXES): Add .cc.
30609         (.c.o): Apply same recipe for implicit rule .cc.o.
30611 2013-03-27  Richard Biener  <rguenther@suse.de>
30613         PR tree-optimization/37021
30614         * tree-vect-data-refs.c (vect_check_strided_load): Allow
30615         REALPART/IMAGPART_EXPRs around the supported refs.
30616         * tree-ssa-structalias.c (find_func_aliases): Assume that
30617         floating-point values are not used to transfer pointers.
30619 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
30621         * target.def (TARGET_HAS_IFUNC_P): New target hook.
30622         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
30623         * doc/tm.texi: Regenerate.
30624         * targhooks.h (default_has_ifunc_p): New.
30625         * targhooks.c (default_has_ifunc_p): Ditto.
30626         * config/linux-protos.h: New file.
30627         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
30628         hook for linux which disables support of indirect functions in android.
30629         * config/linux-android.c: New file.
30630         * config/t-linux-android.c: Ditto.
30631         * config.gcc: Added new object file linux-android.o.
30632         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
30633         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
30634         * varasm.c (do_assemble_alias): Likewise.
30635         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
30636         doesn't support indirect functions.
30637         * configure: Regenerate.
30639 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
30641         PR target/56102
30642         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
30643         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
30644         mult-word mode.
30646 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30648         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
30650 2013-03-27  Terry Guo  <terry.guo@arm.com>
30652         * config/arm/arm-cores.def: Added core cortex-r7.
30653         * config/arm/arm-tune.md: Regenerated.
30654         * config/arm/arm-tables.opt: Regenerated.
30655         * doc/invoke.texi: Added entry for core cortex-r7.
30657 2013-03-27  Walter Lee  <walt@tilera.com>
30659         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
30660         double-decrement of next_scratch_regno.
30662 2013-03-27  Walter Lee  <walt@tilera.com>
30664         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
30665         input operands.
30666         (insn_v1mulus): Ditto.
30667         (insn_v2muls): Ditto.
30669 2013-03-27  Walter Lee  <walt@tilera.com>
30671         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
30672         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
30674 2013-03-27  Walter Lee  <walt@tilera.com>
30676         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
30677         (*sibcall_value): Ditto.
30679 2013-03-27  Walter Lee  <walt@tilera.com>
30681         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
30682         (insn_mnz_v8qi): ... this ...
30683         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
30684         vector equivalent.
30685         (insn_v<n>mnz): Replaced by ...
30686         (insn_v1mnz): ... this ...
30687         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
30688         equivalent.
30689         (insn_mz_<mode>): Replaced by ...
30690         (insn_mz_v8qi): ... this ...
30691         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
30692         vector equivalent.
30693         (insn_v<n>mz): Replaced by ...
30694         (insn_v1mz): ... this ...
30695         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
30696         equivalent.
30698 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
30700         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
30702 2013-03-26  Roland McGrath  <mcgrathr@google.com>
30704         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
30705         than fprintf with a non-constant, non-format string.
30707 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
30709         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
30710         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
30711         operand 0 predicate.
30712         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
30713         attribute.  Use general_x64nomem_operand as operand 1 predicate.
30714         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
30715         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
30716         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
30717         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
30718         (mov<mode>_insv_1): Remove expander.  Merge insn with
30719         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
30720         Use general_x64nomem_operand as operand 1 predicate.
30721         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
30722         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
30723         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
30724         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
30725         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
30726         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
30727         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
30728         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
30729         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
30730         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
30731         (general_x64nomem_operand): Ditto.
30733 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30735         * config/rtems.opt: Add -pthread option.
30737 2013-03-26  Richard Biener  <rguenther@suse.de>
30739         * alias.c (find_base_term): Avoid redundant and not used recursion.
30740         (base_alias_check): Get the initial base term from the caller.
30741         (true_dependence_1): Compute and pass base terms to base_alias_check.
30742         (write_dependence_p): Likewise.
30743         (may_alias_p): Likewise.
30745 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
30747         * config/aarch64/aarch64.c (aarch64_classify_address): Support
30748         PC-relative load in SI modes and above only.
30750 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
30752         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
30753         * config/arm/iwmmxt.md (WCGR0): Update.
30754         (WCGR1, WCGR2, WCGR3): Likewise.
30756 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
30758         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
30759         Use x64 and nox64 isa attributes.
30761 2013-03-26  Richard Biener  <rguenther@suse.de>
30763         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
30764         alignment computations and rely on get_object_alignment_1
30765         for the !TYPE_P case.
30766         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
30768 2013-03-26  Walter Lee  <walt@tilera.com>
30770         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
30771         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
30773 2013-03-25  Jeff Law  <law@redhat.com>
30775         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
30776         check for INTEGRAL_TYPE_P that was missing due to checking in
30777         wrong version of prior patch.
30779 2013-03-25  Walter Lee  <walt@tilera.com>
30781         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
30782         TILEGX_INSN_SHUFFLEBYTES1.
30783         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
30784         shufflebytes1.
30785         (tilegx_builtins): Ditto.
30786         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
30788 2013-03-25  Walter Lee  <walt@tilera.com>
30790         * config/tilegx/tilegx.md (floatsisf2): New pattern.
30791         (floatunssisf2): New pattern.
30792         (floatsidf2): New pattern.
30793         (floatunssidf2): New pattern.
30795 2013-03-25  Walter Lee  <walt@tilera.com>
30797         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
30798         tests for constraint J, K, N, P.
30800 2013-03-25  Walter Lee  <walt@tilera.com>
30802         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
30803         Use indirect/pcrel encoding.
30804         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
30805         Ditto.
30807 2013-03-25  Steve Ellcey  <sellcey@mips.com>
30809         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
30810         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
30811         * config/mips/mips.c (mips_option_override): Set IMADD default.
30812         * config/mips/mips.h (PTF_AVOID_IMADD): New.
30813         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
30814         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
30815         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
30816         * doc/invoke.texi (-mimadd/-mno-imadd): New.
30818 2013-03-25  Jeff Law  <law@redhat.com>
30820         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
30821         slightly to avoid creating and folding useless trees.  Simplify
30822         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
30824 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
30826         * config/i386/i386.md (*zero_extendsidi2): Merge with
30827         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
30828         * config/i386/predicates.md (x86_64_zext_operand): Rename from
30829         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
30830         targets.  Clarify comment.
30832 2013-03-25  Martin Jambor  <mjambor@suse.cz>
30834         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
30835         pass-through jump functions differently.
30836         (ipa_read_jump_function): Likewise.  Also use setter functions to set
30837         up jump functions.
30839 2013-03-25  Martin Jambor  <mjambor@suse.cz>
30841         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
30842         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
30843         process it.
30844         (ipa_get_indirect_edge_target): New function.
30845         (devirtualization_time_bonus): New parameter known_aggs, pass it to
30846         ipa_get_indirect_edge_target.  Update all callers.
30847         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
30848         ipa_get_indirect_edge_target_1 instead of calling
30849         ipa_get_indirect_edge_target.
30850         (create_specialized_node): Pass aggvlas to
30851         ipcp_discover_new_direct_edges.
30853 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30855         * config/arm/arm.md (f_sels, f_seld): New types.
30856         (*cmov<mode>): New pattern.
30857         * config/arm/predicates.md (arm_vsel_comparison_operator): New
30858         predicate.
30860 2013-03-25  Kai Tietz  <ktietz@redhat.com>
30862         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
30863         POSIX-printf for mingw-hosted  builds.
30865 2013-03-25  Richard Biener  <rguenther@suse.de>
30867         PR middle-end/56694
30868         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
30869         must-not-throw stmt location.
30871 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30873         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
30874         Emit load-acquire versions when acq is true.
30875         (arm_emit_store_exclusive): Add rel parameter.
30876         Emit store-release versions when rel is true.
30877         (arm_split_compare_and_swap): Use acquire-release instructions
30878         instead.
30879         of barriers when appropriate.
30880         (arm_split_atomic_op): Likewise.
30881         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
30882         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
30883         (VUNSPEC_SLX): Likewise.
30884         (VUNSPEC_LDA): Likewise.
30885         (VUNSPEC_STL): Likewise.
30886         * config/arm/sync.md (atomic_load<mode>): New pattern.
30887         (atomic_store<mode>): Likewise.
30888         (arm_load_acquire_exclusive<mode>): Likewise.
30889         (arm_load_acquire_exclusivesi): Likewise.
30890         (arm_load_acquire_exclusivedi): Likewise.
30891         (arm_store_release_exclusive<mode>): Likewise.
30893 2013-03-25  Catherine Moore  <clm@codesourcery.com>
30895         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
30896         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
30897         * config/mip/predicates.md (lwsp_swsp_operand,
30898         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
30899         sb16_operand, db4_operand, db7_operand, ib3_operand,
30900         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
30901         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
30902         andi16_operand): New predicates.
30903         * config/mips/mips.md (compression): New attribute.
30904         (enabled): New attribute.
30905         (length): Consider compression in computing length.
30906         (shift_compression): New code attribute.
30907         (*add<mode>3): New operands. Record compression.
30908         (sub<mode>3): Likewise.
30909         (one_cmpl<mode>2): Likewise.
30910         (*and<mode>3): Likewise.
30911         (*ior<mode>3): Likewise.
30912         (unnamed pattern for xor): Likewise.
30913         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
30914         (*<optab><mode>3): Likewise.
30915         (*mov<mode>_internal: Likewise.
30916         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
30917         (mips_unsigned_immediate_p): New.
30918         (umips_lwsp_swsp_address_p): New.
30919         (m16_based_address_p): New.
30920         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
30921         (mips_unsigned_immediate_p): New prototype.
30922         (lwsp_swsp_address_p): New prototype.
30923         (m16_based_address_p): New prototype.
30924         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
30925         (mips_signed_immediate_p): New function.
30926         (m16_based_address_p): New function.
30927         (lwsp_swsp_address_p): New function.
30928         (mips_print_operand_punctuation): Recognize short delay slot insns
30929         for microMIPS.add<mode>3"
30931 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30933         PR target/56720
30934         * config/arm/iterators.md (v_cmp_result): New mode attribute.
30935         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
30937 2013-03-25  Richard Biener  <rguenther@suse.de>
30939         PR tree-optimization/56689
30940         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
30941         any edge.
30943 2013-03-25  Richard Biener  <rguenther@suse.de>
30945         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
30946         of bitmap.
30947         (memory_references): Likewise.
30948         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
30949         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
30950         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
30951         (gather_mem_refs_in_loops): Fold into ...
30952         (analyze_memory_references): ... this.  Move initialization
30953         to tree_ssa_lim_initialize.
30954         (fill_always_executed_in): Rename to ...
30955         (fill_always_executed_in_1): ... this.
30956         (fill_always_executed_in): Move contains_call computation to
30957         this new function from ...
30958         (tree_ssa_lim_initialize): ... here.
30959         (tree_ssa_lim): Call fill_always_executed_in.
30961 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
30963         * postreload.c (reload_combine): Fix code detecting returns.
30965 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
30967         * function.c (emit_use_return_register_into_block): On cc0 targets,
30968         do not emit the sequence between cc0 setter and user.
30970 2013-03-25  Kai Tietz  <ktietz@redhat.com>
30972         * config/i386/predicates.md (local_symbolic_operand): Interpret
30973         dll-imported symbols as none-local.
30975 2013-03-25  Richard Biener  <rguenther@suse.de>
30977         * tree-ssa-loop-im.c (struct depend): Remove.
30978         (struct lim_aux_data): Make depends a vec of gimples.
30979         (free_lim_aux_data): Adjust.
30980         (add_dependency): Likewise.
30981         (set_level): Likewise.
30983 2013-03-25  Richard Biener  <rguenther@suse.de>
30985         PR middle-end/56434
30986         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
30987         the pointer returned by calls with ECF_MALLOC set.
30989 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
30991         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
30993 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
30995         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
30996         using MMXMODE mode iterator.
30997         (*move<mode>_internal): Merge with *movv2sf_internal and
30998         *movv2sf_internal_rex64 using MMXMODE mode iterator.
31000 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
31002         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
31003         (record_last_mem_set_info): Likewise.
31005         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
31006         of XNEWVEC followed by memset.
31007         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
31009 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
31011         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31012         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
31013         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
31014         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
31015         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
31016         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
31017         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
31018         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
31019         BARRIER_P instead of GET_CODE.
31021 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31023         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
31024         inaccuracy in the probing code.
31026         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
31027         (ctrapdi4): Likewise.
31029 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31031         * calls.c (expand_call): Add missing guard to code handling return
31032         of non-BLKmode structures in MSB.
31033         * function.c (expand_function_end): Likewise.
31035 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31037         * combine.c (try_combine): Adjust comment.  Do not add the set of
31038         insn #0 if the destination indirectly is set or dies in insn #2.
31039         Tidy up code to distribute a new note.
31041 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31043         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
31044         also for alternatives 16 and 17.
31046 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
31048         * config/i386/sse.md (*mov<mode>_internal): Merge with
31049         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
31050         Emit insn template depending on type attribute.  Use
31051         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31052         movd instead of movq mnemonic for interunit moves.  Rewrite mode
31053         attribute calculation.  Remove unit attribute calculation.
31054         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
31055         Set prefix_data16 attribute for DImode ssemov types.
31056         Use Ym instead of y for SSE-MMX conversion alternatives.
31057         Reorder operand constraints.
31059 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
31061         * df.h (df_insn_delete): Adjust prototype.
31062         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
31063         and let it decide whether mark the basic block dirty.
31064         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
31065         * df-scan.c (df_insn_info_delete): New helper function, split
31066         off from df_insn_delete.
31067         (df_scan_free_bb_info): Use it.
31068         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
31069         Likewise.
31070         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
31071         that the insn is actually an insn and it has a non-NULL basic block.
31072         Do not mark basic block dirty if only deleting a DEBUG_INSN.
31074 2013-03-22  Richard Biener  <rguenther@suse.de>
31076         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
31077         dep_ref members.
31078         (mem_ref_alloc): Do not allocate them.
31079         (refs_independent_p): Do not query or maintain a cache.
31081 2013-03-22  Richard Biener  <rguenther@suse.de>
31083         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
31084         (gather_mem_refs_in_loops): Do not compute it.
31085         (analyze_memory_references): Do not allocate it.
31086         (tree_ssa_lim_finalize): Do not free it.
31087         (for_all_locs_in_loop): Do not query all_refs_in_loop.
31089 2013-03-22  Richard Biener  <rguenther@suse.de>
31091         * is-a.h (as_a): Use gcc_checking_assert.
31093 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
31095         * config/aarch64/aarch64.c (aarch64_print_operand): New
31096         format specifier for printing a constant in hex.
31097         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
31098         format specifier for printing second operand.
31100 2013-03-22  Richard Biener  <rguenther@suse.de>
31102         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
31103         bitmaps.
31104         (gather_mem_refs_in_loops): Perform store accumulation here.
31105         (create_vop_ref_mapping_loop): Remove.
31106         (create_vop_ref_mapping): Likewise.
31107         (analyze_memory_references): Initialize refs_stored_in_loop.
31108         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
31109         (record_indep_loop): Remove.
31110         (record_dep_loop): New function.
31111         (ref_indep_loop_p_1): Adjust to only walk over references
31112         in the loop, not its subloops.
31113         (ref_indep_loop_p): Rename to ...
31114         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
31115         maintaining a more fine-grained cache.
31116         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
31117         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
31119 2013-03-22  Richard Biener  <rguenther@suse.de>
31121         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
31122         (struct mem_ref): Make accesses_in_loop a vec of a vec of
31123         aggregate mem_ref_loc.
31124         (free_mem_ref_locs): Inline into ...
31125         (memref_free): ... this and adjust.
31126         (mem_ref_alloc): Adjust.
31127         (mem_ref_locs_alloc): Remove.
31128         (record_mem_ref_loc): Adjust.
31129         (get_all_locs_in_loop): Rewrite into ...
31130         (for_all_locs_in_loop): ... this iterator.
31131         (rewrite_mem_ref_loc): New functor.
31132         (rewrite_mem_refs): Use for_all_locs_in_loop.
31133         (sm_set_flag_if_changed): New functor.
31134         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
31135         (ref_always_accessed): New functor.
31136         (ref_always_accessed_p): Use for_all_locs_in_loop.
31138 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31140         * tree-pass.h (PROP_gimple_lvec): New.
31141         * passes.c (dump_properties): Handle PROP_gimple_lvec.
31142         (init_optimization_passes): Move pass_lower_vector.
31143         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
31144         PROP_gimple_lvec.
31145         (pass_lower_vector): Provide PROP_gimple_lvec.
31146         (pass_lower_vector_ssa): Likewise.
31147         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
31149 2013-03-21  Mark Wielaard  <mjw@redhat.com>
31151         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
31153 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
31155         * config/i386/i386.md (*movdi_internal): Disparage slightly
31156         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
31157         conversion alternatives.
31159 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
31161         PR middle-end/48087
31162         * diagnostic.def (DK_WERROR): New kind.
31163         * diagnostic.h (werrorcount): Define.
31164         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
31165         promoted to DK_ERROR, increment DK_WERROR counter instead of
31166         DK_ERROR counter.
31167         * toplev.c (toplev_main): Call print_ignored_options even if
31168         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
31169         even if just werrorcount is non-zero.
31171         PR debug/55608
31172         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
31173         on failure.
31174         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
31175         (string_cst_pool_decl): New function.
31176         (optimize_one_addr_into_implicit_ptr): New function.
31177         (resolve_addr_in_expr): Optimize DWARF location expression
31178         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
31179         which doesn't live in memory, but has DW_AT_location or
31180         DW_AT_const_value, or refers to a string literal, into
31181         DW_OP_GNU_implicit_pointer.
31182         (optimize_location_into_implicit_ptr): New function.
31183         (resolve_addr): If removing DW_AT_location of a variable because
31184         it was DW_OP_addr of address of the variable, but the variable doesn't
31185         live in memory, try to emit const value attribute for the initializer.
31187 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31189         * tree.h (VECTOR_TYPE_P): New macro.
31190         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
31191         TYPE_MODE): Use it.
31192         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
31193         VEC_COND_EXPR cannot be lvalues.
31194         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
31196 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
31198         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
31199         Restrict the transformation to equal modes.
31201 2013-03-21  Richard Biener  <rguenther@suse.de>
31203         PR tree-optimization/39326
31204         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
31205         (MEM_ANALYZABLE): Adjust.
31206         (record_mem_ref_loc): Move bitmap ops ...
31207         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
31208         unanalyzable refs, do not record locations for it.
31209         (analyze_memory_references): Allocate ref zero as shared
31210         unanalyzable ref.
31211         (refs_independent_p): Do not test for unanalyzed mems here.
31212         (ref_indep_loop_p_1): Special-case disambiguation against
31213         the unanalyzed ref.
31214         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
31216 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
31218         * config/arm/arm-protos.h (tune_params): Add
31219         prefer_neon_for_64bits field.
31220         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
31221         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
31222         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
31223         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
31224         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
31225         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
31226         (arm_option_override): Handle -mneon-for-64bits new option.
31227         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
31228         (prefer_neon_for_64bits): Declare new variable.
31229         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
31230         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
31231         (arch_enabled): Handle new arch types. Remove support for onlya8
31232         and nota8.
31233         (one_cmpldi2): Use new arch names.
31234         (zero_extend<mode>di2, extend<mode>di2): Ditto.
31235         * config/arm/arm.opt (mneon-for-64bits): Add option.
31236         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
31237         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
31238         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
31239         of onlya8.
31240         * doc/invoke.texi (-mneon-for-64bits): Document.
31242 2013-03-21  Richard Biener  <rguenther@suse.de>
31244         PR tree-optimization/39326
31245         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
31246         (sort_bbs_in_loop_postorder_cmp): New function.
31247         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
31249 2013-03-21  Richard Biener  <rguenther@suse.de>
31251         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
31252         (vect_insert_into_interleaving_chain): Likewise.
31253         (vect_drs_dependent_in_basic_block): Inline ...
31254         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
31255         split out from ...
31256         (vect_analyze_data_ref_dependence): ... here.  Simplify.
31257         (vect_check_interleaving): Simplify.
31258         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
31259         (vect_slp_analyze_data_ref_dependences): ... this new function.
31260         (dr_group_sort_cmp): New function.
31261         (vect_analyze_data_ref_accesses): Compute data-reference groups
31262         here instead of in vect_analyze_data_ref_dependence.  Use
31263         a more efficient algorithm.
31264         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
31265         vect_slp_analyze_data_ref_dependences.  Call
31266         vect_analyze_data_ref_accesses earlier.
31267         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
31268         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
31269         (vect_slp_analyze_data_ref_dependences): New prototype.
31271 2013-03-21  Richard Biener  <rguenther@suse.de>
31273         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
31274         ref is stored in the loop.
31275         (find_refs_for_sm): Walk only over all stores.
31276         (store_motion_loop): Allocate from lim_bitmap_obstack.
31277         (store_motion): Likewise.
31279 2013-03-21  Richard Biener  <rguenther@suse.de>
31281         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
31282         Update virtual SSA form.
31284 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31286         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
31287         * configure: Regenerate.
31288         * config.in: Regenerate.
31289         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
31290         if !HAVE_LD_EH_FRAME_CIEV3.
31292 2013-03-21  Richard Biener  <rguenther@suse.de>
31294         * tree-cfg.c (verify_expr_no_block): New function.
31295         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
31296         nor DECL_VALUE_EXPR have locations with associated blocks.
31297         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
31298         (clear_unused_block_pointer): Remove code dealing with
31299         blocks in DECL_DEBUG_EXPR locations.
31301 2013-03-21  Richard Biener  <rguenther@suse.de>
31303         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
31304         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
31305         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
31306         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
31307         instead of DECL_DEBUG_EXPR_IS_FROM.
31308         * gimplify.c (gimplify_modify_expr): Likewise.
31309         * tree-cfg.c (verify_expr_location_1): Likewise.
31310         * tree-complex.c (create_one_component_var): Likewise.
31311         * tree-sra.c (create_access_replacement): Likewise.
31312         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
31313         (clear_unused_block_pointer): Likewise.
31314         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
31315         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
31316         * var-tracking.c (var_debug_decl): Likewise.
31317         (track_expr_p): Likewise.
31318         * tree-inline.c (add_local_variables): Likewise.  Set
31319         DECL_HAS_DEBUG_EXPR_P after copying it.
31320         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
31321         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
31323 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
31325         PR bootstrap/56656
31326         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
31327         * configure: Regenerate.
31328         * config.in: Regenerate.
31329         * config/i386/i386.md (*movdf_internal): Use
31330         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
31331         movd instead of movq mnemonic for interunit moves.
31332         (*movdi_internal): Ditto.
31334 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31336         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
31337         (abd<mode>_3): New pattern.
31338         (aba<mode>_3): New pattern.
31339         (fabd<mode>_3): New pattern.
31341 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
31343         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
31344         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
31345         occurrence of REGISTER_PREFIX as its empty string.
31347 2013-03-20  Jeff Law  <law@redhat.com>
31349         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
31350         addititional equivalences for equality comparisons between an SSA_NAME
31351         and a constant where the SSA_NAME was set from a widening conversion.
31353 2013-03-20  Walter Lee  <walt@tilera.com>
31355         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
31357 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31359         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
31360         depending on type attribute.
31361         (*movti_internal): Ditto.
31362         (*movtf_internal): Ditto.
31363         (*movxf_internal): Ditto.
31364         (*movdf_internal): Ditto.
31365         (*movsf_internal): Ditto.
31367 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31369         * config/i386/i386.md (*movti_internal): Set prefix attribute to
31370         maybe_vex for sselog1 and ssemov types.
31371         (*movdi_internal): Reorder operand constraints.
31372         (*movsi_internal): Ditto.  Set prefix attribute to
31373         maybe_vex for sselog1 and ssemov types.
31374         (*movtf_internal): Set prefix attribute to maybe_vex
31375         for sselog1 and ssemov types.
31376         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
31377         DImode ssemov types.  Reorder operand constraints.
31378         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
31379         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
31380         attribute for SImode ssemov types.  Reorder operand constraints.
31382 2013-03-20  Martin Jambor  <mjambor@suse.cz>
31384         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
31385         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
31387 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
31389         * config/rs6000/predicates.md (indexed_address, update_address_mem
31390         update_indexed_address_mem): New predicates.
31391         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
31392         attribute for load/store instructions.
31393         * config/rs6000/dfp.md (movsd_store): Likewise.
31394         (movsd_load): Likewise.
31395         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
31396         (unnamed HI->DI extend define_insn): Likewise.
31397         (unnamed SI->DI extend define_insn): Likewise.
31398         (unnamed QI->SI extend define_insn): Likewise.
31399         (unnamed QI->HI extend define_insn): Likewise.
31400         (unnamed HI->SI extend define_insn): Likewise.
31401         (unnamed HI->SI extend define_insn): Likewise.
31402         (extendsfdf2_fpr): Likewise.
31403         (movsi_internal1): Likewise.
31404         (movsi_internal1_single): Likewise.
31405         (movhi_internal): Likewise.
31406         (movqi_internal): Likewise.
31407         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
31408         attribute for load/store instructions.
31409         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
31410         instructions.
31411         (mov<mode>_softfloat): Likewise.
31412         (mov<mode>_hardfloat32): Likewise.
31413         (mov<mode>_hardfloat64): Likewise.
31414         (mov<mode>_softfloat64): Likewise.
31415         (movdi_internal32): Likewise.
31416         (movdi_internal64): Likewise.
31417         (probe_stack_<mode>): Likewise.
31419 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
31421         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
31422         floating point, and decimal floating point to reload iterator.
31424         * config/rs6000/constraints.md (wl constraint): New constraints to
31425         return FLOAT_REGS if certain options are used to reduce the number
31426         of separate patterns that exist in the file.
31427         (wx constraint): Likewise.
31428         (wz constraint): Likewise.
31430         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31431         -mdebug=reg, print wg, wl, wx, and wz constraints.
31432         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
31433         Initialize the reload functions for 64-bit binary/decimal floating
31434         point types.
31435         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
31436         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
31437         create the buffer on the stack to overcome not having a 32-bit
31438         load and store.
31439         (rs6000_emit_move): Likewise.
31440         (rs6000_secondary_memory_needed_rtx): Likewise.
31441         (rs6000_alloc_sdmode_stack_slot): Likewise.
31442         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
31443         via xxlxor, just like DFmode 0.0.
31445         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
31446         define as 1 if we are running on a power7 or newer.
31447         (enum r6000_reg_class_enum): Add new constraints.
31449         * config/rs6000/dfp.md (movsd): Delete, combine with binary
31450         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
31451         with other moves by using conditional constraits (wg).  Use LFIWZX
31452         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
31453         (movsd splitter): Likewise.
31454         (movsd_hardfloat): Likewise.
31455         (movsd_softfloat): Likewise.
31457         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
31458         binary and decimal floating point moves.
31459         (fmove_ok): New attributes to combine binary and decimal floating
31460         point moves, and to combine power6x (mfpgpr) moves along normal
31461         floating moves.
31462         (real_value_to_target): Likewise.
31463         (f32_lr): Likewise.
31464         (f32_lm): Likewise.
31465         (f32_li): Likewise.
31466         (f32_sr): Likewise.
31467         (f32_sm): Likewise.
31468         (f32_si): Likewise.
31469         (movsf): Combine binary and decimal floating point moves.  Combine
31470         power6x (mfpgpr) moves with other moves by using conditional
31471         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
31472         (mov<mode> for SFmode/SDmode); Likewise.
31473         (SFmode/SDmode splitters): Likewise.
31474         (movsf_hardfloat): Likewise.
31475         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
31476         (movsf_softfloat): Likewise.
31477         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
31479         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
31480         wx and wz constraints.
31482         * config/rs6000/constraints.md (wg constraint): New constraint to
31483         return FLOAT_REGS if -mmfpgpr (power6x) was used.
31485         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
31486         constraint.
31488         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
31489         -mdebug=reg, print wg, wl, wx, and wz constraints.
31490         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
31491         Initialize the reload functions for 64-bit binary/decimal floating
31492         point types.
31493         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
31494         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
31495         create the buffer on the stack to overcome not having a 32-bit
31496         load and store.
31497         (rs6000_emit_move): Likewise.
31498         (rs6000_secondary_memory_needed_rtx): Likewise.
31499         (rs6000_alloc_sdmode_stack_slot): Likewise.
31500         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
31501         via xxlxor, just like DFmode 0.0.
31503         * config/rs6000/dfp.md (movdd): Delete, combine with binary
31504         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
31505         with other moves by using conditional constraits (wg).  Use LFIWZX
31506         and STFIWX for loading SDmode on power7.
31507         (movdd splitters): Likewise.
31508         (movdd_hardfloat32): Likewise.
31509         (movdd_softfloat32): Likewise.
31510         (movdd_hardfloat64_mfpgpr): Likewise.
31511         (movdd_hardfloat64): Likewise.
31512         (movdd_softfloat64): Likewise.
31514         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
31515         64-bit binary and decimal floating point moves.
31516         (FMOVE64X): Likewise.
31517         (movdf): Combine 64-bit binary and decimal floating point moves.
31518         Combine power6x (mfpgpr) moves with other moves by using
31519         conditional constraits (wg).
31520         (mov<mode> for DFmode/DDmode): Likewise.
31521         (DFmode/DDmode splitters): Likewise.
31522         (movdf_hardfloat32): Likewise.
31523         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
31524         (movdf_softfloat32): Likewise.
31525         (movdf_hardfloat64_mfpgpr): Likewise.
31526         (movdf_hardfloat64): Likewise.
31527         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
31528         (movdf_softfloat64): Likewise.
31529         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
31530         (reload_<mode>_load): Move to later in the file so they aren't in
31531         the middle of the floating point move insns.
31532         (reload_<mode>_store): Likewise.
31534         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
31535         constraint.
31537         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
31538         constraint if -mdebug=reg.
31539         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
31540         Enable using dd reload support if needed.
31542         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
31543         binary and decimal floating point moves in rs6000.md.
31544         (movtd_internal): Likewise.
31546         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
31547         decimal floating point moves.
31548         (movtf): Likewise.
31549         (movtf_internal): Likewise.
31550         (mov<mode>_internal, TDmode/TFmode): Likewise.
31551         (movtf_softfloat): Likewise.
31552         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
31554         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
31555         movdi_internal64, using wg constraint for move direct operations.
31556         (movdi_internal64): Likewise.
31558         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
31559         MODES_TIEABLE_P for selected modes.  Print the numerical value of
31560         the various virtual registers. Use GPR/FPR first/last values,
31561         instead of hard coding the register numbers.  Print which modes
31562         have reload functions registered.
31563         (rs6000_option_override_internal): If -mdebug=reg, trace the options
31564         settings before/after setting cpu, target and subtarget settings.
31565         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
31566         and for secondary reload failures in rs6000_secondary_reload_inner.
31567         (rs6000_secondary_reload_fail): Likewise.
31568         (rs6000_secondary_reload_inner): Likewise.
31570         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
31571         macros for first/last GPR and FPR registers.
31572         (LAST_GPR_REGNO): Likewise.
31573         (FIRST_FPR_REGNO): Likewise.
31574         (LAST_FPR_REGNO): Likewise.
31576         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
31577         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
31578         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
31579         (vcond<mode><mode>): Likewise.
31580         (vcondu<mode><mode>): Likewise.
31581         (vector_gtu<mode>): Likewise.
31582         (vector_gte<mode>): Likewise.
31583         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
31584         to prevent the compiler from converting DImode operations to TImode.
31585         (ior<mode>3): Likewise.
31586         (and<mode>3): Likewise.
31587         (one_cmpl<mode>2): Likewise.
31588         (nor<mode>3): Likewise.
31589         (andc<mode>3): Likewise.
31591         * config/rs6000/constraints.md (wt constraint): New constraint
31592         that returns VSX_REGS if TImode is allowed in VSX registers.
31594         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
31595         constant under VSX.
31597         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
31598         similar to TImode, but it is restricted to being in the GPRs.
31600         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
31601         TImode to occupy a single VSX register.
31603         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
31604         -mvsx-timode for power7/power8.
31605         (power7 cpu): Likewise.
31606         (power8 cpu): Likewise.
31608         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
31609         sure that TFmode/TDmode take up two registers if they are ever
31610         allowed in the upper VSX registers.
31611         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
31612         registers.
31613         (rs6000_init_hard_regno_mode_ok): Likewise.
31614         (rs6000_debug_reg_global): Add debugging for PTImode and wt
31615         constraint.  Print if LRA is turned on.
31616         (rs6000_option_override_internal): Give an error if -mvsx-timode
31617         and VSX is not enabled.
31618         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
31619         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
31620         to reg+offset addressing.  Use PTImode when checking offset
31621         addresses for validity.
31622         (reg_offset_addressing_ok_p): Likewise.
31623         (rs6000_legitimate_offset_address_p): Likewise.
31624         (rs6000_legitimize_address): Likewise.
31625         (rs6000_legitimize_reload_address): Likewise.
31626         (rs6000_legitimate_address_p): Likewise.
31627         (rs6000_eliminate_indexed_memrefs): Likewise.
31628         (rs6000_emit_move): Likewise.
31629         (rs6000_secondary_reload): Likewise.
31630         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
31631         reloads to fpr registers to continue to use reg+offset addressing,
31632         but 64-bit reloads to altivec registers need reg+reg addressing.
31633         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
31634         it.  Treat LO_SUM like a PLUS operation.
31635         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
31636         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
31637         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
31638         registers to share a register with a smaller sized type, since VSX
31639         puts scalars in the upper 64-bits.
31640         (print_operand): Add support for PTImode.
31641         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
31642         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
31643         registers, but don't have arithmetic support.
31644         (rs6000_memory_move_cost): Add test for VSX.
31645         (rs6000_opt_masks): Add -mvsx-timode.
31647         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
31648         for TImode.
31649         (VSs): Likewise.
31650         (VSr): Use wt constraint for TImode.
31651         (VSv): Drop TImode support.
31652         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
31653         (vsx_movti_64bit): Likewise.
31654         (vsx_movti_32bit): Likewise.
31655         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
31656         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
31657         one '?' on the appropriate output constraint.  Do not allow TImode
31658         logical operations on 32-bit systems.
31659         (vsx_ior<mode>3): Likewise.
31660         (vsx_xor<mode>3): Likewise.
31661         (vsx_one_cmpl<mode>2): Likewise.
31662         (vsx_nor<mode>3): Likewise.
31663         (vsx_andc<mode>3): Likewise.
31664         (vsx_concat_<mode>): Likewise.
31665         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
31667         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
31668         OPTION_MASK_VSX_TIMODE.
31669         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
31670         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
31672         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
31673         (TI2 iterator): New iterator for TImode, PTImode.
31674         (wd mode attribute): Add values for vector types.
31675         (movti_string): Replace TI move operations with operations for TImode
31676         and PTImode.  Add support for TImode being allowed in VSX registers.
31677         (mov<mode>_string, TImode/PTImode): Likewise.
31678         (movti_ppc64): Likewise.
31679         (mov<mode>_ppc64, TImode/PTImode): Likewise.
31680         (TI mode splitters): Likewise.
31682         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
31683         constraint.
31685 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
31687         PR tree-optimization/56355
31688         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
31689         Also handle integers with undefined overflow.
31691 2013-03-20  Catherine Moore  <clm@codesourcery.com>
31692             Maciej W. Rozycki  <macro@codesourcery.com>
31693             Tom de Vries  <tom@codesourcery.com>
31694             Nathan Sidwell  <nathan@codesourcery.com>
31695             Iain Sandoe  <iain@codesourcery.com>
31696             Nathan Froyd  <froydnj@codesourcery.com>
31697             Chao-ying Fu  <fu@mips.com>
31699         * doc/extend.texi: (micromips, nomicromips, nocompression):
31700         Document new function attributes.
31701         * doc/invoke.texi (minterlink-compressed, mmicromips,
31702         m14k, m14ke, m14kec): Document new options.
31703         (minterlink-mips16): Update documentation.
31704         * doc/md.texi (ZC, ZD): Document new constraints.
31705         * configure.ac (gcc_cv_as_micromips): Check if linker
31706         supports the .set micromips directive.
31707         * configure: Regenerate.
31708         * config.in: Regenerate.
31709         * config/mips/mips-tables.opt: Regenerate.
31710         * config/mips/micromips.md: New file.
31711         * constraints.md (ZC, ZD): New constraints.
31712         * config/mips/predicates.md (movep_src_register): New predicate.
31713         (movep_src_operand): New predicate.
31714         (non_volatile_mem_operand): New predicate.
31715         * config/mips/mips.md (multimem): New type.
31716         (length): Differentiate between 17-bit and 18-bit branch offsets.
31717         (MOVEP1, MOVEP2): New mode iterator.
31718         (mov_<load>l): Use ZC constraint.
31719         (mov_<load>r): Likewise.
31720         (mov_<store>l): Likewise.
31721         (mov_<store>r): Likewise.
31722         (*branch_equality<mode>_inverted): Add microMIPS support.
31723         (*branch_equality<mode>): Likewise.
31724         (*jump_absolute): Likewise.
31725         (indirect_jump_<mode>): Likewise.
31726         (tablejump_<mode>): Likewise.
31727         (<optab>_internal): Likewise.
31728         (sibcall_internal): Likewise.
31729         (sibcall_value_internal): Likewise.
31730         (prefetch): Use constraint ZD.
31731         * config/mips/mips.opt (minterlink-compressed): New option.
31732         (minterlink-mips16): Now an alias for minterlink-compressed.
31733         (mmicromips): New option.
31734         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
31735         (compare_and_swap_12): Likewise.
31736         (sync_add<mode>): Likewise.
31737         (sync_<optab>_12): Likewise.
31738         (sync_old_<optab>_12): Likewise.
31739         (sync_new_<optab>_12): Likewise.
31740         (sync_nand_12): Likewise.
31741         (sync_old_nand_12): Likewise.
31742         (sync_new_nand_12): Likewise.
31743         (sync_sub<mode>): Likewise.
31744         (sync_old_add<mode>): Likewise.
31745         (sync_old_sub<mode>): Likewise.
31746         (sync_new_add<mode>): Likewise.
31747         (sync_new_sub<mode>): Likewise.
31748         (sync_<optab><mode>): Likewise.
31749         (sync_old_<optab><mode>): Likewise.
31750         (sync_new_<optab><mode>): Likewise.
31751         (sync_nand<mode>): Likewise.
31752         (sync_old_nand<mode>): Likewise.
31753         (sync_new_nand<mode>): Likewise.
31754         (sync_lock_test_and_set<mode>): Likewise.
31755         (test_and_set_12): Likewise.
31756         (atomic_compare_and_swap<mode>): Likewise.
31757         (atomic_exchange<mode>_llsc): Likewise.
31758         (atomic_fetch_add<mode>_llsc): Likewise.
31759         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
31760         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
31761         (umips_save_restore_pattern_p): Likewise.
31762         (umips_load_store_pair_p): Likewise.
31763         (umips_output_load_store_pair): Likewise.
31764         (umips_movep_target_p): Likewise.
31765         (umips_12bit_offset_address_p): Likewise.
31766         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
31767         (mips_base_mips16): Rename this...
31768         (mips_base_compression_flags): ...to this. Update all uses.
31769         (mips_attribute_table): Add micromips, nomicromips and nocompression.
31770         (mips_mips16_decl_p): Delete.
31771         (mips_nomips16_decl_p): Delete.
31772         (mips_get_compress_on_flags): New function.
31773         (mips_get_compress_off_flags): New function.
31774         (mips_get_compress_mode): New function.
31775         (mips_get_compress_on_name): New function.
31776         (mips_get_compress_off_name): New function.
31777         (mips_insert_attributes): Support multiple compression types.
31778         (mips_merge_decl_attributes): Likewise.
31779         (umips_12bit_offset_address_p): New function.
31780         (mips_start_function_definition): Emit .set micromips directive.
31781         (mips_call_may_need_jalx_p): New function.
31782         (mips_function_ok_for_sibcall): Add microMIPS support.
31783         (mips_print_operand_punctuation): Support short delay slots and
31784         compact jumps.
31785         (umips_swm_mask, umips_swm_encoding): New.
31786         (umips_build_save_restore): New function.
31787         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
31788         (was_mips16_p): Remove.
31789         (old_compression_mode): New.
31790         (mips_set_compression_mode): New function.
31791         (mips_set_current_function): Add microMIPS support.
31792         (mips_option_override): Likewise.
31793         (umips_save_restore_pattern_p): New function.
31794         (umips_output_save_restore): New function.
31795         (umips_load_store_pair_p_1): New function.
31796         (umips_load_store_pair_p): New function.
31797         (umips_output_load_store_pair_1): New function.
31798         (umips_output_load_store_pair): New function.
31799         (umips_movep_target_p) New function.
31800         (mips_prepare_pch_save): Add microMIPS support.
31801         * config/mips/mips.h (TARGET_COMPRESSION): New.
31802         (TARGET_CPU_CPP_BUILTINS): Update macro
31803         to use new compression flags and to support microMIPS.
31804         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
31805         (MIPS_ARCH_FLOAT_SPEC): Likewise.
31806         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
31807         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
31808         (ASM_SPEC): Support mmicromips and mno-micromips.
31809         (M16STORE_REG_P): New macro.
31810         (MIPS_CALL): Support TARGET_MICROMIPS.
31811         (MICROMIPS_J): New macro.
31812         (mips_base_mips16): Rename this...
31813         (mips_base_compression_flags): ...to this.
31814         (UMIPS_12BIT_OFFSET_P): New macro.
31815         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
31816         (MULTILIB_DIRNAMES): Likewise.
31817 2013-03-20  Richard Biener  <rguenther@suse.de>
31819         PR tree-optimization/56661
31820         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
31821         the result does not have to be distinct.
31823 2013-03-20  Richard Biener  <rguenther@suse.de>
31825         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
31826         remap_gimple_op_r.
31828 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31829             Steven Bosscher  <steven@gcc.gnu.org>
31831         PR rtl-optimization/56605
31832         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
31834 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
31836         PR bootstrap/56656
31837         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
31838         that require movd instead of movq.
31840 2013-03-20  Richard Biener  <rguenther@suse.de>
31842         * tree-ssa-structalias.c (struct variable_info): Add pointer
31843         to the first field of an aggregate with sub-vars.  Make
31844         this and the pointer to the next subfield its ID.
31845         (vi_next): New function.
31846         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
31847         storedanything_id, integer_id): Increment by one.
31848         (new_var_info, get_call_vi, lookup_call_clobber_vi,
31849         get_call_clobber_vi): Adjust.
31850         (solution_set_expand): Simplify and speedup.
31851         (solution_set_add): Inline into ...
31852         (set_union_with_increment): ... this.  Adjust accordingly.
31853         (do_sd_constraint): Likewise.
31854         (do_ds_constraint): Likewise.
31855         (do_complex_constraint): Simplify.
31856         (build_pred_graph): Adjust.
31857         (solve_graph): Likewise.  Simplify and speedup.
31858         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
31859         get_constraint_for_component_ref, get_constraint_for_1,
31860         first_vi_for_offset, first_or_preceding_vi_for_offset,
31861         create_function_info_for, create_variable_info_for_1,
31862         create_variable_info_for, intra_create_variable_infos): Adjust.
31863         (init_base_vars): Push NULL for ID zero.
31864         (compute_points_to_sets): Adjust.
31866 2013-03-20  Richard Biener  <rguenther@suse.de>
31868         * cfgloop.c (verify_loop_structure): Streamline and avoid
31869         ICEing on corrupt loop tree.
31870         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
31871         loop tree.
31873 2013-03-20  Richard Biener  <rguenther@suse.de>
31875         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
31876         check whether an SSA update is needed.
31878 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
31880         * config/mips/constraints.md (T): Rename to...
31881         (Yf): ...this.
31882         (U): Rename to...
31883         (Yd): ...this.
31884         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
31885         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
31887 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
31889         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
31890         (*subsi3_carryin_uxtw): Likewise.
31892 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
31894         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
31895         (*rorsi3_insn_uxtw): Likewise.
31897 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
31899         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
31900         (*extrsi5_insn_uxtw): Likewise.
31902 2013-03-19  Richard Biener  <rguenther@suse.de>
31904         PR tree-optimization/56273
31905         * passes.c (init_optimization_passes): Move second VRP after DOM.
31907 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
31909         * config/i386/i386.md (*movti_internal): Merge from
31910         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
31911         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
31912         nox64 isa attributes.
31914 2013-03-18  Richard Biener  <rguenther@suse.de>
31916         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
31917         (unite): Likewise.
31918         (merge_node_constraints): Likewise.
31919         (build_succ_graph): Likewise.
31920         (valid_graph_edge): Inline into single caller.
31921         (unify_nodes): Likewise.  Use bitmap_set_bit return value
31922         and cache varinfo.
31923         (scc_visit): Fix formatting and variable use.
31924         (do_sd_constraint): Use gcc_checking_assert.
31925         (do_ds_constraint): Likewise.
31926         (do_complex_constraint): Likewise.
31927         (condense_visit): Likewise.  Cleanup.
31928         (dump_pred_graph): New function.
31929         (perform_var_substitution): Dump the pred-graph before
31930         variable substitution.
31931         (find_equivalent_node): Use gcc_checking_assert.
31932         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
31934 2013-03-18  Richard Biener  <rguenther@suse.de>
31936         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
31937         Remove cond_expr_stmt_list argument and do not gimplify the
31938         built expression.
31939         (vect_loop_versioning): Adjust.
31940         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
31941         Cleanup to use less temporaries.
31942         (vect_create_data_ref_ptr): Cleanup.
31944 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
31946         PR tree-optimization/56635
31947         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
31948         require types_compatible_p types.
31950 2013-03-18  Nick Clifton  <nickc@redhat.com>
31952         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
31953         spurious backslash.
31955         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
31956         Add missing line to comment describing function.
31958 2013-03-18  Richard Biener  <rguenther@suse.de>
31960         PR tree-optimization/56210
31961         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
31962         Handle string / character search functions.
31963         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
31965 2013-03-18  Richard Biener  <rguenther@suse.de>
31967         PR middle-end/56483
31968         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
31969         and implement properly.
31970         * gimple.h (gimple_cond_single_var_p): Remove.
31972 2013-03-18  Richard Biener  <rguenther@suse.de>
31974         * tree-data-ref.h (find_data_references_in_loop): Declare.
31975         * tree-data-ref.c (get_references_in_stmt): Use a stack
31976         vector pre-allocated in the callers.
31977         (find_data_references_in_stmt): Adjust.
31978         (graphite_find_data_references_in_stmt): Likewise.
31979         (create_rdg_vertices): Likewise.
31980         (find_data_references_in_loop): Export.
31981         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
31982         Compute dependences here...
31983         (vect_analyze_data_refs): ...not here.  When we encounter
31984         a non-vectorizable data reference in basic-block vectorization
31985         truncate the data reference vector.  Do not bother to
31986         fixup data-dependence information for gather loads.
31987         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
31988         of data references, as reported.
31990 2013-03-18  Richard Biener  <rguenther@suse.de>
31992         PR tree-optimization/3713
31993         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
31994         has_constants and expr.
31995         (stmt_has_constants): Properly valueize SSA names when deciding
31996         whether the stmt has constants.
31998 2013-03-18  Richard Biener  <rguenther@suse.de>
32000         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
32001         whole function when there is nothing to do.
32002         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
32003         * tree-vectorizer.c (vectorize_loops): Update virtual and
32004         loop-closed SSA once.
32005         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
32007 2013-03-18  Richard Biener  <rguenther@suse.de>
32009         PR middle-end/56113
32010         * domwalk.c (bb_postorder): New global static.
32011         (cmp_bb_postorder): New function.
32012         (walk_dominator_tree): Replace scheme imposing an order for
32013         visiting dominator sons by one sorting them at the time they
32014         are pushed on the stack.
32016 2013-03-18  Richard Biener  <rguenther@suse.de>
32018         PR tree-optimization/39326
32019         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
32020         (struct mem_ref): Replace mem member with ao_ref typed member.
32021         (MEM_ANALYZABLE): Adjust.
32022         (memref_eq): Likewise.
32023         (mem_ref_alloc): Likewise.
32024         (gather_mem_refs_stmt): Likewise.
32025         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
32026         (execute_sm_if_changed_flag_set): Adjust.
32027         (execute_sm): Likewise.
32028         (ref_always_accessed_p): Likewise.
32029         (refs_independent_p): Likewise.
32030         (can_sm_ref_p): Likewise.
32032 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
32034         PR c/56566
32035         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
32036         return 1 even for !unsignedp.
32038 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32040         * config/i386/i386.md (isa): Add x64 and nox64.
32041         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
32042         (*pushtf): Enable *roF alternative for x64 isa only.
32043         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
32044         mode attribute of integer alternatives to DImode for TARGET_64BIT.
32045         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
32046         (*movtf_internal): Merge from *movtf_internal_rex64 and
32047         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
32048         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
32049         nox64 isa attributes.
32050         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
32051         nox64 isa attributes.
32052         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
32054 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
32056         * config/alpha/alpha.c (TARGET_LRA_P): New define.
32058 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
32060         PR target/56640
32061         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
32062         class names.  Remove trailing comma after "ALL_REGS".
32064 2013-03-16  Jan Hubicka  <jh@suse.cz>
32066         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
32067         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
32068         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
32069         of cgraph_get_create_node.
32070         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
32072 2013-03-16  Jason Merrill  <jason@redhat.com>
32074         PR debug/49090
32075         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
32076         with DW_AT_default_value.
32078 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
32080         * BASE-VER: Set to 4.9.0.
32082 2013-03-14  Andi Kleen  <ak@linux.intel.com>
32084         PR target/56619
32085         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
32086         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
32087         Document _x* TSX intrinsics.
32089 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
32090             David Holsgrove  <david.holsgrove@xilinx.com>
32092         * configure.ac: Add MicroBlaze TLS support detection.
32093         * configure: Regenerate.
32094         * config/microblaze/microblaze-protos.h
32095         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
32096         symbol_mentioned_p, label_mentioned_p): Add prototypes.
32097         * config/microblaze/microblaze.c (microblaze_address_type): Add
32098         ADDRESS_TLS and tls_reloc address types.
32099         (microblaze_address_info): Add tls_reloc.
32100         (TARGET_HAVE_TLS): Define.
32101         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
32102          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
32103          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
32104         load_tls_operand,  microblaze_call_tls_get_addr,
32105         microblaze_legitimize_tls_address): New functions.
32106         (microblaze_classify_unspec): Handle UNSPEC_TLS.
32107         (get_base_reg): Use microblaze_tls_symbol_p.
32108         (microblaze_classify_address): Handle TLS.
32109         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
32110         label_mentioned_p and microblaze_tls_referenced_p.
32111         (microblaze_legitimize_address): Handle TLS.
32112         (microblaze_address_insns): Handle ADDRESS_TLS.
32113         (pic_address_needs_scratch): Handle TLS.
32114         (print_operand_address): Handle TLS.
32115         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
32116         (microblaze_expand_move): Handle TLS.
32117         (microblaze_legitimate_constant_p): Check
32118         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
32119         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
32120         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
32121         (PIC_OFFSET_TABLE_REGNUM): Set.
32122         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
32123         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
32124         (addsi3, movsi_internal2, movdf_internal): Update constraints
32125         * config/microblaze/predicates.md (arith_plus_operand): Define
32126         (move_operand): Redefine as move_src_operand,
32127         check microblaze_tls_referenced_p.
32129 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
32131         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
32132         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
32134 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
32136         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
32137         CC mode for AND.
32139 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
32141         PR tree-optimization/53265
32142         * common.opt (Waggressive-loop-optimizations): New option.
32143         * tree-ssa-loop-niter.c: Include tree-pass.h.
32144         (do_warn_aggressive_loop_optimizations): New function.
32145         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
32146         if number_of_latch_executions returned constant.
32147         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
32148         early.  If number_of_latch_executions returned constant, set
32149         nb_iterations_upper_bound back to it.
32150         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
32151         field.
32152         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
32153         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
32155         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
32156         (MULTILIB_OSDIRNAMES): Set.
32157         * genmultilib: If defaultosdirname doesn't start with :: , set
32158         defaultosdirname2 instead, clear it and emit two . multilib_raw
32159         entries instead of just one.
32161 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
32163         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32164         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
32165         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
32166         (SUBTARGET_OVERRIDE_OPTIONS): New.
32168 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
32170         PR target/49880
32171         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
32172         (musermode): Convert to Var(TARGET_USERMODE).
32173         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
32174         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
32175         * config/sh/sh.c (sh_option_override): Use
32176         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
32177         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
32178         condition.
32179         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
32180         TARGET_SH4.
32181         (udivsi3_i4_single, divsi3_i4_single): Use
32182         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
32184 2013-03-13  Dave Korn  <dave.korn.cygwin@gmail.com>
32186         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
32187         default setting.
32189 2013-03-13  Richard Biener  <rguenther@suse.de>
32191         PR tree-optimization/56608
32192         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
32193         calls when vectorizing basic-blocks.
32195 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
32197         PR plugins/45078
32198         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
32199         tm_file.
32201 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
32203         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
32205 2013-03-11  Jan Hubicka  <jh@suse.cz>
32207         PR lto/56557
32208         * lto-streamer-out.c (output_symbol_p): Skip references from
32209         constructors of external variables.
32211 2013-03-11  Jan Hubicka  <jh@suse.cz>
32213         PR middle-end/56571
32214         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
32215         from pseudos.
32216         * emit-rtl.c (verify_rtx_sharing): Likewise.
32217         (copy_insn_1): Likewise.
32218         * rtl.c (copy_rtx): Likewise.
32220 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
32222         PR target/56591
32223         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
32224         output_operand_lossage message.
32226 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
32228         PR target/56470
32229         * arm.c (shift_op): Validate RTL pattern on the fly.
32230         (arm_print_operand, case 'S'): Don't use shift_operator to validate
32231         the RTL.
32233 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32235         PR target/56347
32236         * config/pa/pa.md (call_value): Check for calls to powf and direct to
32237         new call patterns that clobber %fr12.
32238         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
32239         split and postreload patterns.
32240         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
32241         registers %fr12 and %fr12R as call used.
32243 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
32245         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
32246         (canon_address, record_store, replace_read, check_mem_read_rtx,
32247         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
32248         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
32249         rest_of_handle_dse): Likewise.
32251 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
32253         PR middle-end/56524
32254         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
32255         Add base_optabs.
32256         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
32257         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
32258         (save_optabs_if_changed): Replace with...
32259         (init_tree_optimization_optabs): ...this.
32260         * optabs.c (save_optabs_if_changed): Rename to...
32261         (init_tree_optimization_optabs): ...this.  Take the optimization node
32262         as argument.  Do nothing if the base optabs are already correct.
32263         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
32264         to recompute optabs.
32265         * function.h (function): Remove optabs field.
32266         * function.c (invoke_set_current_function_hook): Call
32267         init_tree_optimization_optabs.  Use the result to initialize
32268         this_fn_optabs.
32270 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
32272         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
32273         if GTMA_HAS_NO_INSTRUMENTATION.
32274         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
32275         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
32276         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
32277         * gimple-pretty-print.c (dump_gimple_transaction): Handle
32278         GTMA_HAS_NO_INSTRUMENTATION.
32280 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
32282         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
32283         libasan_preinit.o.
32285 2013-03-08  Marek Polacek  <polacek@redhat.com>
32286             Jakub Jelinek  <jakub@redhat.com>
32288         PR tree-optimization/56478
32289         * predict.c (is_comparison_with_loop_invariant_p): Change the
32290         type of loop_step to tree.
32291         (predict_loops): Adjust.
32292         (predict_iv_comparison): Perform the computations on double_ints.
32294 2013-03-08  Richard Biener  <rguenther@suse.de>
32296         PR tree-optimization/56570
32297         * tree-cfg.c (verify_expr_location_1): Verify locations for
32298         DECL_DEBUG_EXPR.
32299         * tree-sra.c (create_access_replacement): Strip locations
32300         from DECL_DEBUG_EXPRs.
32302 2013-03-08  Richard Biener  <rguenther@suse.de>
32304         * tree-inline.c (expand_call_inline): Do not associate
32305         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
32306         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
32308 2013-03-08  Richard Biener  <rguenther@suse.de>
32310         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
32311         or block changes with -Og.  Fix for location / block encoding
32312         changes and PHI arguments with locations.
32314 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
32316         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
32317         for all counters.
32318         (struct output_info): Likewise.
32319         (register_overhead): Remove bad gcc_assert.
32320         (bitmap_find_bit): If there is only a single bitmap element, do not
32321         count a miss as a search.
32322         (print_statistics): Update for counter type changes.
32323         (dump_bitmap_statistics): Likewise.  Print headers such that they
32324         are properly lined up with the printed counters.
32326 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
32328         PR tree-optimization/56559
32329         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
32330         check that it has only a single use.
32332 2013-03-07  Richard Biener  <rguenther@suse.de>
32334         * doc/invoke.texi (fwhole-program): Discourage use in combination
32335         with -flto.
32337 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
32339         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
32341         PR tree-optimization/56539
32342         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
32343         instead of GSI_CONTINUE_LINKING as last argument to
32344         force_gimple_operand_gsi.  Adjust function comment.
32346         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
32347         aarch64-cores.def.
32349         PR middle-end/56548
32350         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
32351         promoted mode, convert the result back to the original mode.
32353 2013-03-06  Richard Biener  <rguenther@suse.de>
32355         PR middle-end/56294
32356         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
32357         (insert_updated_phi_nodes_compare_uids): New function.
32358         (update_ssa): Sort symbols_to_rename after UID before
32359         traversing it to insert PHI nodes.
32361 2013-03-06  Richard Biener  <rguenther@suse.de>
32363         PR middle-end/50494
32364         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
32365         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
32367         Revert
32368         2013-02-13  Richard Biener  <rguenther@suse.de>
32370         PR lto/50494
32371         * varasm.c (output_constant_def_1): Get the decl representing
32372         the constant as argument.
32373         (output_constant_def): Wrap output_constant_def_1.
32374         (make_decl_rtl): Use output_constant_def_1 with the decl
32375         representing the constant.
32376         (build_constant_desc): Optionally re-use a decl already
32377         representing the constant.
32378         (tree_output_constant_def): Adjust.
32380 2013-03-06  Joey Ye  <joey.ye@arm.com>
32382         PR lto/50293
32383         * gcc.c (convert_white_space): New function.
32384         (main): Handles white space in function name.
32386 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
32388         PR target/56529
32389         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
32390         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
32391         to SH_DIV_CALL_TABLE for TARGET_SH2.
32392         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
32393         list.
32394         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
32395         call-table options.
32397 2013-03-05  Sterling Augustine  <saugustine@google.com>
32398             Cary Coutant  <ccoutant@google.com>
32400         PR debug/55364
32401         * dwarf2out.c (resolve_addr): Don't call
32402         remove_loc_list_addr_table_entries a second time for the same
32403         expression.
32405 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32407         PR debug/56510
32408         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
32409         (avoid_complex_debug_insns): New function.
32410         (expand_debug_locations): Call it.
32412         PR rtl-optimization/56484
32413         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
32414         lifetimes of hard registers on small register class machines.
32416 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
32418         * config/microblaze/microblaze-protos.h: Rename
32419         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
32420         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
32421         fast_interrupt.
32422         (microblaze_fast_interrupt_function_p): New function.
32423         (microblaze_is_interrupt_handler): Rename to
32424         microblaze_is_interrupt_variant and add fast_interrupt check.
32425         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
32426         (save_restore_insns): Likewise.
32427         (compute_frame_size): Likewise.
32428         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
32429         (microblaze_globalize_label): Likewise.
32430         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
32431         * config/microblaze/microblaze.md: Use wrapper
32432         microblaze_is_interrupt_variant.
32434 2013-03-05  Kai Tietz  <ktietz@redhat.com>
32436         * sdbout.c (sdbout_one_type): Switch to current function's section
32437         supporting cold/hot.
32439 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
32441         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
32442         -mxl-reorder.
32444 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32446         PR middle-end/56461
32447         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
32448         if VALGRIND_GET_VBITS is defined, temporarily make object
32449         memory all defined, and restore previous valgrind addressability
32450         and definability afterwards.  Free this_object at the end.
32452         PR middle-end/56461
32453         * lra.c (lra): Call lra_clear_live_ranges if live_p,
32454         right before calling lra_create_live_ranges, also call it
32455         when clearing live_p.  Only call lra_clear_live_ranges
32456         at the end if live_p.
32458         PR middle-end/56461
32459         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
32461 2013-03-05  Richard Biener  <rguenther@suse.de>
32463         PR tree-optimization/56521
32464         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
32465         value-id.
32467 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
32469         PR c++/55135
32470         * except.h (remove_unreachable_eh_regions): New prototype.
32471         * except.c (remove_eh_handler_splicer): New function, split out
32472         of remove_eh_handler.
32473         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
32474         warning about running it on many EH regions one at a time.
32475         (remove_unreachable_eh_regions_worker): New function, walk the
32476         EH tree in depth-first order and remove non-marked regions.
32477         (remove_unreachable_eh_regions): New function.
32478         * tree-eh.c (mark_reachable_handlers): New function, split out
32479         from remove_unreachable_handlers.
32480         (remove_unreachable_handlers): Use mark_reachable_handlers and
32481         remove_unreachable_eh_regions.
32482         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
32483         and remove_unreachable_eh_regions.
32485 2013-03-05  Richard Biener  <rguenther@suse.de>
32487         PR middle-end/56525
32488         * loop-init.c (fix_loop_structure): Remove loops in two stages,
32489         not freeing them until the end.
32491 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32493         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
32495 2013-03-05  Richard Biener  <rguenther@suse.de>
32497         PR tree-optimization/56270
32498         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
32499         of loads after scheduling an SLP instance.
32501 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32503         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
32504         tic6x.exp.
32505         (check_gcc_parallelize): Run guality.exp as a separate job from
32506         vect.exp with unsorted.exp and $(dg_target_exps) separately from
32507         struct-layout-1.exp with stackalign.exp.
32509         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
32511         PR middle-end/56461
32512         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
32513         load_index sbitmap even if some bit in it isn't set.
32515         PR middle-end/56461
32516         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
32517         (discover_iteration_bound_by_body_walk): Change queues to
32518         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
32519         spelling in comment.  Call safe_push on queues[bound_index] directly.
32520         Release queues[queue_index] in every iteration unconditionally.
32521         Release bounds vector.
32523         PR middle-end/56461
32524         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
32525         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
32526         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
32527         inner_phis vector.
32529 2013-03-05  Richard Biener  <rguenther@suse.de>
32531         PR lto/56515
32532         * tree-inline.c (remap_blocks_to_null): New function.
32533         (expand_call_inline): When expanding a call stmt without
32534         an associated block inline remap all callee blocks to NULL.
32536 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
32538         PR rtl-optimization/56494
32539         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
32540         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
32541         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
32543         PR middle-end/56461
32544         * sel-sched-ir.c (free_sched_pools): Release
32545         succs_info_pool.stack[succs_info_pool.max_top] vectors too
32546         if succs_info_pool.max_top isn't -1.
32548         PR bootstrap/56509
32549         * opts.c (opts_obstack, opts_concat): Moved to...
32550         * opts-common.c (opts_obstack, opts_concat): ... here.
32552 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
32554         PR middle-end/56461
32555         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
32557 2013-03-04  Martin Jambor  <mjambor@suse.cz>
32559         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
32560         all appropriate places.
32562 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
32564         PR tree-optimization/56424
32565         * ipa-split.c (split_function): Do not set the RSO flag if result is
32566         not by reference and its type is a register type.
32568 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
32570         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
32571         (microblaze_legitimate_pic_operand): Likewise
32572         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
32573         new function microblaze_legitimate_pic_operand
32574         * config/microblaze/microblaze-protos.h
32575         (microblaze_legitimate_pic_operand): Declare.
32577 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32579         * config/microblaze/predicates.md (call_insn_simple_operand):
32580         New predicate for supported rtx code types.
32581         * config/microblaze/microblaze.md (call_internal1): Use
32582         call_insn_simple_operand predicate.
32584 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
32586         PR middle-end/56461
32587         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
32588         partitions.ordered_remove.
32590         PR middle-end/56461
32591         * tree-vect-stmts.c (vectorizable_conversion): Don't call
32592         vec_oprnds0.create (1) for modifier == NONE.
32594         PR middle-end/56461
32595         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
32596         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
32597         vec_oprnds1 right before pushing anything to it for
32598         scalar_shift_arg.
32600         PR middle-end/56461
32601         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
32602         set nbbs to 0 instead of having separate code path.
32603         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
32604         instead of false as last argument if returning NULL.
32606 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
32608         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
32609         the attribute is now called "target" instead of "option".
32610         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
32611         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
32612         attribute/pragma name for TARGET_OPTION_VALID_P and
32613         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
32614         * doc/tm.texi: Regenerated.
32616 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
32618         * config/microblaze/microblaze.c:
32619         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
32620         * config/microblaze/microblaze.h: Add -mxl-reorder to
32621         DRIVER_SELF_SPECS.
32622         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
32623         instructions emitted if TARGET_REORDER.
32624         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
32625         or 0 for -m/-mno case, but initialises as 2 to detect default use case
32626         separately.
32628 2013-03-01  Xinliang David Li  <davidxl@google.com>
32630         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
32631         walk length.
32633 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
32635         PR middle-end/56461
32636         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
32637         vector even when returning true.  Fix up function comment formatting.
32639         PR middle-end/56461
32640         * ira-build.c (ira_loop_nodes_count): New variable.
32641         (create_loop_tree_nodes): Initialize it.
32642         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
32644         PR middle-end/56461
32645         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
32646         method on dr_chain and result_chain.
32647         * tree-vect-stmts.c (vectorizable_store): Only call
32648         result_chain.create if j == 0.
32650         PR middle-end/56461
32651         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
32652         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
32653         before overwriting it.
32655 2013-03-01  Tobias Burnus  <burnus@net-b.de>
32657         * doc/extended.texi (C Extensions): Change order in @menu
32658         to match @node.
32659         (Other MIPS Built-in Functions): Move last MIPS entry before
32660         "picoChip Built-in Functions".
32661         (SH Built-in Functions): Move after RX Built-in Functions.
32662         * doc/gcc.texi (Introduction): Change order in @menu
32663         to match @node.
32664         * doc/md.texi (Constraints): Ditto.
32665         * gty.texi (Type Information): Ditto.
32666         (User-provided marking routines for template types): Make
32667         subsection.
32668         * doc/invoke.texi (AArch64 Options): Move before
32669         "Adapteva Epiphany Options".
32671 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
32672             Jakub Jelinek  <jakub@redhat.com>
32674         PR sanitizer/56454
32675         * asan.c (gate_asan): Lookup no_sanitize_address instead of
32676         no_address_safety_analysis attribute.
32677         * doc/extend.texi (no_address_safety_attribute): Rename to
32678         no_sanitize_address attribute, mention no_address_safety_analysis
32679         attribute as deprecated alias.
32681 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
32683         PR middle-end/56461
32684         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
32685         type to vec<vec<tree> > *.
32686         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
32687         to be vec<tree> instead of vec<tree> *, set vec_defs
32688         to vNULL and call vec_defs.create (number_of_vects), adjust other
32689         uses of vec_defs.
32690         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
32691         vectorizable_condition): Adjust vect_get_slp_defs callers.
32693 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32695         * config/aarch64/aarch64.c
32696         (aarch64_float_const_representable): Remove unused variable.
32698 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32700         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
32702 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32704         * config/aarch64/aarch64-builtins.c
32705         (aarch64_init_simd_builtins): Make static.
32707 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
32709         * config/aarch64/aarch64.c
32710         (aarch64_simd_make_constant): Make static.
32712 2013-02-28  Martin Jambor  <mjambor@suse.cz>
32714         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
32715         with no initialization to the RHS of debug statements.
32717 2013-02-28  Martin Jambor  <mjambor@suse.cz>
32719         PR tree-optimization/56294
32720         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
32721         Adjust dumping.
32722         (get_access_replacement): Do not call create_access_replacement.
32723         Assert a replacement exists.
32724         (get_repl_default_def_ssa_name): Create the replacement declaration
32725         itself.
32727 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32729         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
32730         final_end_function.
32732 2013-02-28  Marek Polacek  <polacek@redhat.com>
32734         PR rtl-optimization/56466
32735         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
32736         if we're changing a loop.
32737         (peel_loops_completely): Likewise.
32739 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
32741         PR c++/55813
32742         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
32744 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
32746         PR target/56445
32747         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
32748         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
32749         INTX_FTYPE_FX, FX_FTYPE_INTX.
32750         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
32752 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
32754         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
32755         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
32756         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
32757         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
32758         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
32759         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
32760         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
32761         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
32762         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
32763         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
32764         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
32765         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
32766         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
32767         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
32768         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
32769         (avrxmega6): Increase max flash segments from 5 to 6.
32770         * config/avr/t-multilib: Regenerate.
32771         * config/avr/avr-tables.opt: Regenerate.
32772         * doc/avr-mmcu.texi: Regenerate.
32774 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
32776         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
32777         (avr_device_to_arch): Rename to avr_device_to_ld.
32778         (avr_device_to_as): New prototype.
32779         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
32780         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
32781         * config/avr/driver-avr.c (avr_device_to_as): New.
32782         (avr_device_to_arch): Rename to avr_device_to_ld.
32784 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
32786         PR middle-end/56461
32787         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
32788         method on dr_chain and result_chain.
32790         PR middle-end/56461
32791         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
32792         pointer_set_destroy on not_executed_last_iteration.
32794         PR middle-end/56461
32795         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
32797         PR middle-end/56461
32798         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
32799         FOR_EACH_DEFINED_FUNCTION when freeing state.
32801         PR middle-end/56461
32802         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
32803         pool_free.
32804         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
32805         overwriting it.
32807         PR middle-end/56461
32808         * ipa-cp.c (decide_whether_version_node): Call vec_free on
32809         known_aggs[i].items and release known_aggs vector.
32811         PR middle-end/56461
32812         * ipa-reference.c (propagate): Free node_info even for alias nodes.
32814 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
32816         * config/microblaze/microblaze.c (microblaze_emit_compare):
32817         Use xor for EQ/NE comparisions.
32818         * config/microblaze/microblaze.md (cstoresf4): Add constraints
32819         (cbranchsf4): Adjust operator to comparison_operator.
32821 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
32823         PR middle-end/56461
32824         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
32825         vector.
32826         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
32827         vec_safe_push, always update *slot.
32828         (redirect_edge_var_map_clear): Use vec_free.
32829         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
32830         (free_var_map_entry): Use vec_free.
32831         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
32832         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
32834 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
32836         PR middle-end/45472
32837         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
32838         when the may_trap_p bit of the exprs being merged differs.
32839         Reorder tests for speculativeness in the logical and operator.
32841 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
32843         * incpath.c (add_standard_paths): Use reconcat instead of concat
32844         where appropriate and avoid leaking memory.
32846         * opts.h: Include obstack.h.
32847         (opts_concat): New prototype.
32848         (opts_obstack): New declaration.
32849         * opts.c (opts_concat): New function.
32850         (opts_obstack): New variable.
32851         (init_options_struct): Call gcc_init_obstack on opts_obstack.
32852         (finish_options): Use opts_concat instead of concat
32853         and XOBNEWVEC instead of XNEWVEC.
32854         * opts-common.c (generate_canonical_option, decode_cmdline_option,
32855         generate_option): Likewise.
32856         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
32857         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
32859         PR target/56455
32860         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
32861         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
32863 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
32865         PR middle-end/56461
32866         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
32868 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
32870         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
32871         (arm_block_move_unaligned_straight): Likewise.
32872         (arm_adjust_block_mem): Likewise.
32874 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
32876         PR target/48901
32877         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
32878         temp, cond and label.
32879         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
32881         PR target/52500
32882         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
32883         * config/c6x/c6x.h (dbx_register_map): Update declaration.
32885         PR target/52501
32886         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
32887         of prologue/epilogue functions.
32889         PR target/52550
32890         * config/tilegx/tilegx.c (tilegx_expand_prologue):
32891         Remove unused variable cfa_offset.
32892         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
32894         PR target/54639
32895         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
32896         type promotion to unsigned.
32898         PR target/54640
32899         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
32900         for HOST_WIDE_INT of 32 bit / same size as int.
32901         (arm_block_move_unaligned_straight): Likewise.
32902         (arm_adjust_block_mem): Likewise.
32904         PR target/54662
32905         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
32906         ALL_CFLAGS.
32908 2013-02-26  Marek Polacek  <polacek@redhat.com>
32910         PR tree-optimization/56426
32911         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
32913 2013-02-26  Richard Biener  <rguenther@suse.de>
32915         PR target/56444
32916         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
32917         unused variable loops.
32919 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
32921         PR tree-optimization/56448
32922         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
32923         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
32924         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
32925         later operands of the references, or even first operand for
32926         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
32928         PR tree-optimization/56443
32929         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
32930         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
32931         to type_for_mode langhook.
32933 2013-02-25  Matt Turner  <mattst88@gmail.com>
32935         * doc/invoke.texi: Document r4700.
32937 2013-02-25  Richard Biener  <rguenther@suse.de>
32939         PR tree-optimization/56175
32940         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
32941         split out from ...
32942         (simplify_bitwise_binary): ... here.  Also guard the conversion
32943         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
32945 2013-02-25  Catherine Moore  <clm@codesourcery.com>
32947         Revert:
32948         2013-02-24  Catherine Moore  <clm@codesourcery.com>
32949             Maciej W. Rozycki  <macro@codesourcery.com>
32950             Tom de Vries  <tom@codesourcery.com>
32951             Nathan Sidwell  <nathan@codesourcery.com>
32952             Iain Sandoe  <iain@codesourcery.com>
32953             Nathan Froyd  <froydnj@codesourcery.com>
32954             Chao-ying Fu  <fu@mips.com>
32956         * doc/extend.texi: (micromips, nomicromips, nocompression):
32957         Document new function attributes.
32958         * doc/invoke.texi (minterlink-compressed, mmicromips,
32959         m14k, m14ke, m14kec): Document new options.
32960         (minterlink-mips16): Update documentation.
32961         * doc/md.texi (ZC, ZD): Document new constraints.
32962         * configure.ac (gcc_cv_as_micromips): Check if linker
32963         supports the .set micromips directive.
32964         * configure: Regenerate.
32965         * config.in: Regenerate.
32966         * config/mips/mips-tables.opt: Regenerate.
32967         * config/mips/micromips.md: New file.
32968         * constraints.md (ZC, AD): New constraints.
32969         * config/mips/predicates.md (movep_src_register): New predicate.
32970         (movep_src_operand): New predicate.
32971         (non_volatile_mem_operand): New predicate.
32972         * config/mips/mips.md (multimem): New type.
32973         (length): Differentiate between 17-bit and 18-bit branch offsets.
32974         (MOVEP1, MOVEP2): New mode iterator.
32975         (mov_<load>l): Use ZC constraint.
32976         (mov_<load>r): Likewise.
32977         (mov_<store>l): Likewise.
32978         (mov_<store>r): Likewise.
32979         (*branch_equality<mode>_inverted): Add microMIPS support.
32980         (*branch_equality<mode>): Likewise.
32981         (*jump_absolute): Likewise.
32982         (indirect_jump_<mode>): Likewise.
32983         (tablejump_<mode>): Likewise.
32984         (<optab>_internal): Likewise.
32985         (sibcall_internal): Likewise.
32986         (sibcall_value_internal): Likewise.
32987         (prefetch): Use constraint ZD.
32988         * config/mips/mips.opt (minterlink-compressed): New option.
32989         (minterlink-mips16): Now an alias for minterlink-compressed.
32990         (mmicromips): New option.
32991         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
32992         (compare_and_swap_12): Likewise.
32993         (sync_add<mode>): Likewise.
32994         (sync_<optab>_12): Likewise.
32995         (sync_old_<optab>_12): Likewise.
32996         (sync_new_<optab>_12): Likewise.
32997         (sync_nand_12): Likewise.
32998         (sync_old_nand_12): Likewise.
32999         (sync_new_nand_12): Likewise.
33000         (sync_sub<mode>): Likewise.
33001         (sync_old_add<mode>): Likewise.
33002         (sync_old_sub<mode>): Likewise.
33003         (sync_new_add<mode>): Likewise.
33004         (sync_new_sub<mode>): Likewise.
33005         (sync_<optab><mode>): Likewise.
33006         (sync_old_<optab><mode>): Likewise.
33007         (sync_new_<optab><mode>): Likewise.
33008         (sync_nand<mode>): Likewise.
33009         (sync_old_nand<mode>): Likewise.
33010         (sync_new_nand<mode>): Likewise.
33011         (sync_lock_test_and_set<mode>): Likewise.
33012         (test_and_set_12): Likewise.
33013         (atomic_compare_and_swap<mode>): Likewise.
33014         (atomic_exchange<mode>_llsc): Likewise.
33015         (atomic_fetch_add<mode>_llsc): Likewise.
33016         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33017         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33018         (umips_save_restore_pattern_p): Likewise.
33019         (umips_load_store_pair_p): Likewise.
33020         (umips_output_load_store_pair): Likewise.
33021         (umips_movep_target_p): Likewise.
33022         (umips_12bit_offset_address_p): Likewise.
33023         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33024         (mips_base_mips16): Rename this...
33025         (mips_base_compression_flags): ...to this. Update all uses.
33026         (mips_attribute_table): Add micromips, nomicromips and nocompression.
33027         (mips_mips16_decl_p): Delete.
33028         (mips_nomips16_decl_p): Delete.
33029         (mips_get_compress_on_flags): New function.
33030         (mips_get_compress_off_flags): New function.
33031         (mips_get_compress_mode): New function.
33032         (mips_get_compress_on_name): New function.
33033         (mips_get_compress_off_name): New function.
33034         (mips_insert_attributes): Support multiple compression types.
33035         (mips_merge_decl_attributes): Likewise.
33036         (umips_12bit_offset_address_p): New function.
33037         (mips_start_function_definition): Emit .set micromips directive.
33038         (mips_call_may_need_jalx_p): New function.
33039         (mips_function_ok_for_sibcall): Add microMIPS support.
33040         (mips_print_operand_punctuation): Support short delay slots and
33041         compact jumps.
33042         (umips_swm_mask, umips_swm_encoding): New.
33043         (umips_build_save_restore): New function.
33044         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33045         (was_mips16_p): Remove.
33046         (old_compression_mode): New.
33047         (mips_set_compression_mode): New function.
33048         (mips_set_current_function): Add microMIPS support.
33049         (mips_option_override): Likewise.
33050         (umips_save_restore_pattern_p): New function.
33051         (umips_output_save_restore): New function.
33052         (umips_load_store_pair_p_1): New function.
33053         (umips_load_store_pair_p): New function.
33054         (umips_output_load_store_pair_1): New function.
33055         (umips_output_load_store_pair): New function.
33056         (umips_movep_target_p) New function.
33057         (mips_prepare_pch_save): Add microMIPS support.
33058         * config/mips/mips.h (TARGET_COMPRESSION): New.
33059         (TARGET_CPU_CPP_BUILTINS): Update macro
33060         to use new compression flags and to support microMIPS.
33061         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33062         (MIPS_ARCH_FLOAT_SPEC): Likewise.
33063         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33064         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33065         (ASM_SPEC): Support mmicromips and mno-micromips.
33066         (M16STORE_REG_P): New macro.
33067         (MIPS_CALL): Support TARGET_MICROMIPS.
33068         (MICROMIPS_J): New macro.
33069         (mips_base_mips16): Rename this...
33070         (mips_base_compression_flags): ...to this.
33071         (UMIPS_12BIT_OFFSET_P): New macro.
33072         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33073         (MULTILIB_DIRNAMES): Likewise.
33075 2013-02-25  Tom de Vries  <tom@codesourcery.com>
33077         PR rtl-optimization/56131
33078         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
33079         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
33080         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
33082 2013-02-25  Tobias Burnus  <burnus@net-b.de>
33084         * doc/invoke.texi (-fsanitize=): Move from optimization
33085         to debugging options.
33087 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
33089         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
33091 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
33092             Alexander Monakov  <amonakov@ispras.ru>
33094         PR middle-end/56077
33095         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
33096         flush pending lists also on non-jumps.  Adjust comment.
33098 2013-02-24  Catherine Moore  <clm@codesourcery.com>
33099             Maciej W. Rozycki  <macro@codesourcery.com>
33100             Tom de Vries  <tom@codesourcery.com>
33101             Nathan Sidwell  <nathan@codesourcery.com>
33102             Iain Sandoe  <iain@codesourcery.com>
33103             Nathan Froyd  <froydnj@codesourcery.com>
33104             Chao-ying Fu  <fu@mips.com>
33106         * doc/extend.texi: (micromips, nomicromips, nocompression):
33107         Document new function attributes.
33108         * doc/invoke.texi (minterlink-compressed, mmicromips,
33109         m14k, m14ke, m14kec): Document new options.
33110         (minterlink-mips16): Update documentation.
33111         * doc/md.texi (ZC, ZD): Document new constraints.
33112         * configure.ac (gcc_cv_as_micromips): Check if linker
33113         supports the .set micromips directive.
33114         * configure: Regenerate.
33115         * config.in: Regenerate.
33116         * config/mips/mips-tables.opt: Regenerate.
33117         * config/mips/micromips.md: New file.
33118         * constraints.md (ZC, AD): New constraints.
33119         * config/mips/predicates.md (movep_src_register): New predicate.
33120         (movep_src_operand): New predicate.
33121         (non_volatile_mem_operand): New predicate.
33122         * config/mips/mips.md (multimem): New type.
33123         (length): Differentiate between 17-bit and 18-bit branch offsets.
33124         (MOVEP1, MOVEP2): New mode iterator.
33125         (mov_<load>l): Use ZC constraint.
33126         (mov_<load>r): Likewise.
33127         (mov_<store>l): Likewise.
33128         (mov_<store>r): Likewise.
33129         (*branch_equality<mode>_inverted): Add microMIPS support.
33130         (*branch_equality<mode>): Likewise.
33131         (*jump_absolute): Likewise.
33132         (indirect_jump_<mode>): Likewise.
33133         (tablejump_<mode>): Likewise.
33134         (<optab>_internal): Likewise.
33135         (sibcall_internal): Likewise.
33136         (sibcall_value_internal): Likewise.
33137         (prefetch): Use constraint ZD.
33138         * config/mips/mips.opt (minterlink-compressed): New option.
33139         (minterlink-mips16): Now an alias for minterlink-compressed.
33140         (mmicromips): New option.
33141         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
33142         (compare_and_swap_12): Likewise.
33143         (sync_add<mode>): Likewise.
33144         (sync_<optab>_12): Likewise.
33145         (sync_old_<optab>_12): Likewise.
33146         (sync_new_<optab>_12): Likewise.
33147         (sync_nand_12): Likewise.
33148         (sync_old_nand_12): Likewise.
33149         (sync_new_nand_12): Likewise.
33150         (sync_sub<mode>): Likewise.
33151         (sync_old_add<mode>): Likewise.
33152         (sync_old_sub<mode>): Likewise.
33153         (sync_new_add<mode>): Likewise.
33154         (sync_new_sub<mode>): Likewise.
33155         (sync_<optab><mode>): Likewise.
33156         (sync_old_<optab><mode>): Likewise.
33157         (sync_new_<optab><mode>): Likewise.
33158         (sync_nand<mode>): Likewise.
33159         (sync_old_nand<mode>): Likewise.
33160         (sync_new_nand<mode>): Likewise.
33161         (sync_lock_test_and_set<mode>): Likewise.
33162         (test_and_set_12): Likewise.
33163         (atomic_compare_and_swap<mode>): Likewise.
33164         (atomic_exchange<mode>_llsc): Likewise.
33165         (atomic_fetch_add<mode>_llsc): Likewise.
33166         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
33167         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
33168         (umips_save_restore_pattern_p): Likewise.
33169         (umips_load_store_pair_p): Likewise.
33170         (umips_output_load_store_pair): Likewise.
33171         (umips_movep_target_p): Likewise.
33172         (umips_12bit_offset_address_p): Likewise.
33173         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
33174         (mips_base_mips16): Rename this...
33175         (mips_base_compression_flags): ...to this. Update all uses.
33176         (mips_attribute_table): Add micromips, nomicromips and nocompression.
33177         (mips_mips16_decl_p): Delete.
33178         (mips_nomips16_decl_p): Delete.
33179         (mips_get_compress_on_flags): New function.
33180         (mips_get_compress_off_flags): New function.
33181         (mips_get_compress_mode): New function.
33182         (mips_get_compress_on_name): New function.
33183         (mips_get_compress_off_name): New function.
33184         (mips_insert_attributes): Support multiple compression types.
33185         (mips_merge_decl_attributes): Likewise.
33186         (umips_12bit_offset_address_p): New function.
33187         (mips_start_function_definition): Emit .set micromips directive.
33188         (mips_call_may_need_jalx_p): New function.
33189         (mips_function_ok_for_sibcall): Add microMIPS support.
33190         (mips_print_operand_punctuation): Support short delay slots and
33191         compact jumps.
33192         (umips_swm_mask, umips_swm_encoding): New.
33193         (umips_build_save_restore): New function.
33194         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
33195         (was_mips16_p): Remove.
33196         (old_compression_mode): New.
33197         (mips_set_compression_mode): New function.
33198         (mips_set_current_function): Add microMIPS support.
33199         (mips_option_override): Likewise.
33200         (umips_save_restore_pattern_p): New function.
33201         (umips_output_save_restore): New function.
33202         (umips_load_store_pair_p_1): New function.
33203         (umips_load_store_pair_p): New function.
33204         (umips_output_load_store_pair_1): New function.
33205         (umips_output_load_store_pair): New function.
33206         (umips_movep_target_p) New function.
33207         (mips_prepare_pch_save): Add microMIPS support.
33208         * config/mips/mips.h (TARGET_COMPRESSION): New.
33209         (TARGET_CPU_CPP_BUILTINS): Update macro
33210         to use new compression flags and to support microMIPS.
33211         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
33212         (MIPS_ARCH_FLOAT_SPEC): Likewise.
33213         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
33214         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
33215         (ASM_SPEC): Support mmicromips and mno-micromips.
33216         (M16STORE_REG_P): New macro.
33217         (MIPS_CALL): Support TARGET_MICROMIPS.
33218         (MICROMIPS_J): New macro.
33219         (mips_base_mips16): Rename this...
33220         (mips_base_compression_flags): ...to this.
33221         (UMIPS_12BIT_OFFSET_P): New macro.
33222         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
33223         (MULTILIB_DIRNAMES): Likewise.
33225 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
33227         PR target/52555
33228         * target-globals.c (save_target_globals): For init_reg_sets and
33229         target_reinit remporarily set this_fn_optabs to this_target_optabs.
33231 2013-02-22  James Greenhalgh  <james.greenhalgh@arm.com>
33233         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
33234         * config/aarch64/t-aarch64
33235         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
33237 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
33239         PR inline-asm/56148
33240         * lra-constraints.c (process_alt_operands): Reload operand
33241         conflicting with earlier clobber only if no more other conflicting
33242         operands.
33244 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
33246         PR sanitizer/56393
33247         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
33248         if not linking a shared library.
33250 2013-02-22  Seth LaForge  <sethml@google.com>
33252         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
33254 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
33256         * config/arm/arm.md (split for extendsidi): Update condition.
33257         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
33258         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
33259         (qhs_zextenddi_cstr): Likewise.
33261 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
33263         PR middle-end/56420
33264         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
33265         avoid signed wrapping.
33266         (expand_mult): Handle properly multiplication by
33267         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
33268         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
33269         in the compiler if coeff is HOST_WIDE_INT_MIN.
33270         (expand_divmod): Don't make ext_op1 static, change it's type to
33271         uhwi.  Avoid undefined behavior in -INTVAL (op1).
33273         PR rtl-optimization/50339
33274         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
33275         field.
33276         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
33277         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
33278         into splitting_ashiftrt field.
33279         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
33280         ASHIFTRT.
33281         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
33282         choices.
33284 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
33286         PR middle-end/56108
33287         * trans-mem.c (execute_tm_mark): Do not expand transactions that
33288         are sure to go irrevocable.
33290 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
33292         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
33293         scalars are valid operands.
33295 2013-02-21  Martin Jambor  <mjambor@suse.cz>
33297         PR tree-optimization/56310
33298         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
33299         only matching indices and non-negative final offsets.
33300         (intersect_aggregates_with_edge): Pass src_idx to
33301         agg_replacements_to_vector.  Pass src_idx insstead of index to
33302         intersect_with_agg_replacements.
33304 2013-02-21  Martin Jambor  <mjambor@suse.cz>
33306         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
33307         instead of hard-wired defaults.
33309 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
33311         * doc/invoke.texi (MIPS Options): Update documentation of the
33312         floating-point multiply-accumulate instruction restrictions.
33314 2013-02-21  Kostya Serebryany  <kcc@google.com>
33316         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
33317         asan_shadow_offset on x86_64 linux.
33319 2013-02-21  Richard Biener  <rguenther@suse.de>
33321         PR tree-optimization/56415
33322         Revert
33323         2013-02-11  Richard Biener  <rguenther@suse.de>
33325         PR tree-optimization/56273
33326         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33327         first VRP run.
33329 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
33331         PR bootstrap/56258
33332         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
33333         instead of @itemx.
33335         PR inline-asm/56405
33336         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
33337         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
33339 2013-02-20  Jan Hubicka  <jh@suse.cz>
33341         PR tree-optimization/56265
33342         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
33343         when target is referenced for first time.
33345 2013-02-20  Richard Biener  <rguenther@suse.de>
33347         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
33348         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
33349         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
33350         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
33351         not return anything.
33352         (rename_ssa_copies): Do not remove unused locals.
33353         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
33354         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
33355         * passes.c (execute_function_todo): Do not schedule unused locals
33356         removal if cleanup_tree_cfg did something.
33357         * tree-ssa-live.c (remove_unused_locals): Dump statistics
33358         about the number of removed locals.
33360 2013-02-20  Richard Biener  <rguenther@suse.de>
33362         PR tree-optimization/56398
33363         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
33365 2013-02-20  Martin Jambor  <mjambor@suse.cz>
33367         PR tree-optimization/55334
33368         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
33369         restricted pointers to arrays.
33371 2013-02-20  Richard Biener  <rguenther@suse.de>
33372             Jakub Jelinek  <jakub@redhat.com>
33374         PR tree-optimization/56396
33375         * tree-ssa-ccp.c (n_const_val): New static variable.
33376         (get_value): Return NULL for SSA names we don't have a lattice
33377         entry for.
33378         (ccp_initialize): Initialize n_const_val.
33379         * tree-ssa-copy.c (n_copy_of): New static variable.
33380         (init_copy_prop): Initialize n_copy_of.
33381         (get_value): Return NULL_TREE for SSA names we don't have a
33382         lattice entry for.
33384 2013-02-20  Martin Jambor  <mjambor@suse.cz>
33386         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
33388 2013-02-20  Richard Biener  <rguenther@suse.de>
33390         * genpreds.c (write_lookup_constraint): Do not compare first
33391         letter of the constraint again.
33393 2013-02-20  Richard Biener  <rguenther@suse.de>
33395         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
33396         and ceil_log2.
33397         (get_use_iv_cost): Terminate hashtable walk when coming across
33398         an empty entry.
33400 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
33402         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
33403         reassociation for avx2 targets.
33405 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33407         * config/microblaze/microblaze.c: microblaze_has_clz = 0
33408         Add version check for v8.10.a to enable microblaze_has_clz
33409         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
33410         version and TARGET_PATTERN_COMPARE check
33411         * config/microblaze/microblaze.md: New clzsi2 instruction
33413 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33415         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
33416         function before branching.
33418 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
33420         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
33421         DUMP_INSN_RTX_UID.
33422         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
33424 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
33426         PR middle-end/55889
33427         * sel-sched.c: Include ira.h.
33428         (implicit_clobber_conflict_p): New function.
33429         (moveup_expr): Use it.
33430         * Makefile.in (sel-sched.o): Depend on ira.h.
33432 2013-02-19  Richard Biener  <rguenther@suse.de>
33434         PR tree-optimization/56384
33435         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
33436         (vn_hash_type): Split out from ...
33437         (vn_hash_constant_with_type): ... here.
33438         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
33439         (vn_phi_eq): Compare types from vn_phi_s structure.
33440         (vn_phi_lookup): Populate vn_phi_s type.
33441         (vn_phi_insert): Likewise.
33443 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
33445         PR tree-optimization/56350
33446         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
33447         if haven't found reduction or nested cycle operand, rather than
33448         asserting we must find it.
33450         PR tree-optimization/56381
33451         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
33452         to fold_build3.
33454 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
33455             Jakub Jelinek  <jakub@redhat.com>
33457         PR target/52555
33458         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
33459         (swap_optab_enable): Same.
33460         (init_all_optabs): Use argument instead of global.
33461         * tree.h (struct tree_optimization_option): New field target_optabs.
33462         * expr.h (init_all_optabs): Add argument to prototype.
33463         (TREE_OPTIMIZATION_OPTABS): New.
33464         (save_optabs_if_changed): Protoize.
33465         * optabs.h: Declare this_fn_optabs.
33466         * optabs.c (save_optabs_if_changed): New.
33467         Declare this_fn_optabs.
33468         (init_optabs): Add argument to init_all_optabs() call.
33469         * function.c (invoke_set_current_function_hook): Handle per
33470         function optabs.
33471         * function.h (struct function): New field optabs.
33472         * config/mips/mips.c (mips_set_mips16_mode): Handle when
33473         optimization_current_node has changed.
33474         * target-globals.h (save_target_globals_default_opts): Protoize.
33475         * target-globals.c (save_target_globals_default_opts): New.
33477 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
33479         PR target/56347
33480         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
33481         registers %fr12 and %fr12R as call used.
33483         PR target/56214
33484         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
33485         and HImode, require all displacements to be an integer multiple of
33486         their mode size.
33487         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
33488         only allow QImode and HImode when reload is in progress and strict is
33489         true.  Likewise for symbolic addresses.  Use base14_operand to check
33490         displacements in REG+BASE addresses.
33492 2013-02-18  Richard Biener  <rguenther@suse.de>
33494         PR tree-optimization/56366
33495         * tree-vect-loop.c (get_initial_def_for_induction): Properly
33496         handle sign-conversion of outer-loop initial induction value.
33498 2013-02-18  Richard Biener  <rguenther@suse.de>
33500         PR middle-end/56349
33501         * cfghooks.c (merge_blocks): If we merge a latch into another
33502         block adjust references to it.
33503         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
33504         (verify_loop_structure): Verify that a recorded latch is in fact
33505         a latch.
33507 2013-02-18  Richard Biener  <rguenther@suse.de>
33509         PR tree-optimization/56321
33510         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
33511         order SSA name release and virtual operand unlinking.
33513 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33515         * config/microblaze/microblaze.md (save_stack_block): Define.
33516         (restore_stack_block): Likewise.
33518 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33520         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
33521         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
33522         * config/microblaze/microblaze.c (microblaze_option_override):
33523         Bail out early for PIC modes when target does not support PIC.
33525 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33527         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
33528         Replace with a microblaze version.
33529         (microblaze_trampoline_init): Adapt for microblaze.
33530         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
33531         microblaze.
33533 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
33534             Dodji Seketeli  <dodji@redhat.com>
33536         PR asan/56330
33537         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
33538         (instrument_mem_region_access): Do not forget to always put
33539         instrumentation of the of 'base' and 'base + len' in a "if (len !=
33540         0) statement, even for cases where either 'base' or 'base + len'
33541         are not instrumented -- because they have been previously
33542         instrumented.  Simplify the logic by putting all the statements
33543         instrument 'base + len' inside a sequence, and then insert that
33544         sequence right before the current insertion point.  Then, to
33545         instrument 'base + len', just get an iterator on that statement.
33546         And do not forget to update the pointer to iterator the function
33547         received as argument.
33549 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
33551         PR rtl-optimization/56348
33552         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
33554 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
33556         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
33557         (clean_graph_dump_file): Pass base to start_graph_dump.
33559 2013-02-14  Richard Henderson  <rth@redhat.com>
33561         PR target/55941
33562         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
33564 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
33566         * collect2-aix.h: Define F_LOADONLY.
33568 2013-02-14  Richard Biener  <rguenther@suse.de>
33570         PR lto/50494
33571         * varasm.c (output_constant_def_1): Get the decl representing
33572         the constant as argument.
33573         (output_constant_def): Wrap output_constant_def_1.
33574         (make_decl_rtl): Use output_constant_def_1 with the decl
33575         representing the constant.
33576         (build_constant_desc): Optionally re-use a decl already
33577         representing the constant.
33578         (tree_output_constant_def): Adjust.
33580 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
33582         Fix an asan crash
33583         * asan.c (instrument_builtin_call):  Really put the length of the
33584         second source argument into src1_len.
33586 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
33588         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
33589         argument.  If it is false, don't create edge from then_bb to
33590         fallthru_bb.
33591         (insert_if_then_before_iter): Pass true to it.
33592         (build_check_stmt): Pass false to it.
33593         (transform_statements): Flush hash table only on extended basic
33594         block boundaries, rather than at the beginning of every bb.
33595         Don't flush hash table on nonfreeing_call_p calls.
33596         * tree-flow.h (nonfreeing_call_p): New prototype.
33597         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
33599 2013-02-13  David S. Miller  <davem@davemloft.net>
33601         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
33603 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
33605         PR target/56184
33606         * ira.c (max_regno_before_ira): Move from ...
33607         (ira): ... here.
33608         (fix_reg_equiv_init): Use max_regno_before_ira instead of
33609         vec_safe_length.
33611 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
33613         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
33615 2013-02-13  Richard Biener  <rguenther@suse.de>
33617         PR lto/56295
33618         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
33619         globals in MEM_REFs.
33621 2013-02-13  Richard Biener  <rguenther@suse.de>
33623         * loop-init.c (loop_optimizer_init): Clear loop state when
33624         re-initializing preserved loops.
33625         * loop-unswitch.c (unswitch_single_loop): Return whether
33626         we unswitched the loop.  Do not verify loop state here.
33627         (unswitch_loops): When we unswitched a loop discover new loops.
33629 2013-02-13  Kostya Serebryany  <kcc@google.com>
33631         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
33632         on x86_64 linux.
33633         * sanitizer.def: Rename __asan_init to __asan_init_v1.
33635 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
33637         Avoid instrumenting duplicated memory access in the same basic block
33638         * Makefile.in (asan.o): Add new dependency on hash-table.h
33639         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
33640         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
33641         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
33642         (free_mem_ref_resources, has_mem_ref_been_instrumented)
33643         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
33644         (get_mem_ref_of_assignment): New functions.
33645         (get_mem_refs_of_builtin_call): Extract from
33646         instrument_builtin_call and tweak a little bit to make it fit with
33647         the new signature.
33648         (instrument_builtin_call): Use the new
33649         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
33650         of is_gimple_builtin_call.
33651         (instrument_derefs, instrument_mem_region_access): Insert the
33652         instrumented memory reference into the hash table.
33653         (maybe_instrument_assignment): Renamed instrument_assignment into
33654         this, and change it to advance the iterator when instrumentation
33655         actually happened and return true in that case.  This makes it
33656         homogeneous with maybe_instrument_assignment, and thus give a
33657         chance to callers to be more 'regular'.
33658         (transform_statements): Clear the memory reference hash table
33659         whenever we enter a new BB, when we cross a function call, or when
33660         we are done transforming statements.  Use
33661         maybe_instrument_assignment instead of instrumentation.  No more
33662         need to special case maybe_instrument_assignment and advance the
33663         iterator after calling it; it's now handled just like
33664         maybe_instrument_call.  Update comment.
33666 2013-02-13  Richard Biener  <rguenther@suse.de>
33668         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
33669         Fix loop discovery code.
33671 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
33673         PR inline-asm/56148
33674         * lra-constraints.c (process_alt_operands): Match early clobber
33675         operand with itself.  Check conflicts with earlyclobber only if
33676         the operand is not reloaded.  Prefer to reload conflicting operand
33677         if earlyclobber and matching operands are the same.
33679 2013-02-12  Richard Biener  <rguenther@suse.de>
33681         PR lto/56297
33682         * lto-streamer-out.c (write_symbol): Do not output symbols
33683         for hard register variables.
33685 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
33687         PR target/54222
33688         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
33689         (umulsidi3_insn, mulsidi3_insn): New insns.
33691 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
33693         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
33694         (struct tune_params): Add vec_costs field.
33695         * config/arm/arm.c (arm_builtin_vectorization_cost)
33696         (arm_add_stmt_cost): New functions.
33697         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
33698         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
33699         (arm_default_vec_cost): New struct of type cpu_vec_costs.
33700         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
33701         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
33702         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
33703         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
33705 2013-02-12  Richard Biener  <rguenther@suse.de>
33707         PR lto/56295
33708         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
33709         decls again if possible.
33711 2013-02-12  Richard Biener  <rguenther@suse.de>
33713         PR middle-end/56288
33714         * tree-ssa.c (verify_ssa_name): Fix check, move
33715         SSA_NAME_IN_FREE_LIST check up.
33717 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
33718             Steven Bosscher   <steven@gcc.gnu.org>
33720         PR rtl-optimization/56151
33721         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
33722         equal to op0 or op1, and last_insn pattern is CODE operation
33723         with MEM dest and one of the operands matches that MEM.
33725 2013-02-11  Sriraman Tallam  <tmsriram@google.com>
33727         * doc/extend.texi: Document Function Multiversioning and "default"
33728         parameter string to target attribute.
33729         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
33730         target attribute parameter is "default".
33731         (ix86_compare_version_priority): Remove checks for target attribute.
33732         (ix86_mangle_function_version_assembler_name): Change error to sorry.
33733         Remove check for target attribute equal to NULL. Add assert.
33734         (ix86_generate_version_dispatcher_body): Change error to sorry.
33736 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
33737             Jack Howarth  <howarth@bromo.med.uc.edu>
33738             Patrick Marlier  <patrick.marlier@gmail.com>
33740         PR libitm/55693
33741         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
33742         define ENDFILE_SPEC as TM_DESTRUCTOR.
33743         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
33745 2013-02-11  Alexander Potapenko  <glider@google.com>
33746             Jack Howarth  <howarth@bromo.med.uc.edu>
33747             Jakub Jelinek  <jakub@redhat.com>
33749         PR sanitizer/55617
33750         * config/darwin.c (cdtor_record): Rename ctor_record.
33751         (sort_cdtor_records): Rename sort_ctor_records.
33752         (finalize_dtors): New routine to sort destructors by
33753         priority before use in assemble_integer.
33754         (machopic_asm_out_destructor): Use finalize_dtors if needed.
33756 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
33758         PR rtl-optimization/56275
33759         * simplify-rtx.c (avoid_constant_pool_reference): Check that
33760         offset is non-negative and less than cmode size before
33761         calling simplify_subreg.
33763 2013-02-11  Richard Biener  <rguenther@suse.de>
33765         PR tree-optimization/56264
33766         * cfgloop.h (fix_loop_structure): Adjust prototype.
33767         * loop-init.c (fix_loop_structure): Return the number of
33768         newly discovered loops.
33769         * tree-cfgcleanup.c (repair_loop_structures): When new loops
33770         are discovered, do a full loop-closed SSA rewrite.
33772 2013-02-11  Richard Biener  <rguenther@suse.de>
33774         PR tree-optimization/56273
33775         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
33776         first VRP run.
33777         (check_array_ref): Fix missing newline in dumps.
33778         (search_for_addr_array): Likewise.
33780 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
33782         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
33784 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
33786         PR target/56256
33787         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
33789 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
33791         PR rtl-optimization/56246
33792         * lra-constraints.c (simplify_operand_subreg): Try to reuse
33793         reload pseudo.
33794         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
33795         constraints are satisfied.
33797 2013-02-08  Jeff Law  <law@redhat.com>
33799         PR debug/53948
33800         * emit-rtl.c (reg_is_parm_p): New function.
33801         * regs.h (reg_is_parm_p): New prototype.
33802         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
33803         callee-clobbered registers.
33805 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
33807         PR target/56043
33808         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
33809         If there is no implicit builtin declaration, just return NULL.
33811 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
33813         * config/i386/sse.md (FMAMODEM): New mode iterator.
33814         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
33815         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
33817 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
33819         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
33820         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
33821         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
33823 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
33825         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
33826         (microblaze*-*-elf): Likewise.
33827         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
33828         LINK_SPEC.
33829         * config/microblaze/microblaze-c.c: Add builtin defines for
33830         _LITTLE_ENDIAN and _BIG_ENDIAN.
33831         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
33832         add to TARGET_DEFAULT flags.
33833         Expand ASM_SPEC and LINK_SPEC.
33834         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
33835         * config/microblaze/microblaze.md: Update extendsidi2 and
33836         movdi_internal instructions to use low-order / high-order reg
33837         print_operands.
33838         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
33839         options and inversemask / mask of LITTLE_ENDIAN.
33840         * config/microblaze/t-microblaze: Expand multilib options to
33841         include mlittle-endian (le) and update exceptions patterns.
33843 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
33845         PR rtl-optimization/56195
33846         * lra-constraints.c (get_reload_reg): Don't reuse regs
33847         if they have smaller mode than requested, if they have
33848         wider mode than requested, try to return a SUBREG.
33850         PR tree-optimization/56250
33851         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
33852         if type is unsigned and code isn't MULT_EXPR.
33854 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
33856         PR tree-optimization/56064
33857         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
33858         bits according to mode.
33859         * fixed-value.h (fixed_from_double_int)
33860         (const_fixed_from_double_int): Adjust comments.
33862 2013-02-08  Richard Biener  <rguenther@suse.de>
33864         PR lto/56231
33865         * lto-streamer.h (struct data_in): Remove current_file, current_line
33866         and current_col members.
33867         * lto-streamer-out.c (lto_output_location): Stream changed bits
33868         en-block for efficiency.
33869         * lto-streamer-in.c (clear_line_info): Remove.
33870         (lto_input_location): Cache current file, line and column
33871         globally via local statics.  Read changed bits en-block.
33872         (input_function): Do not call clear_line_info.
33873         (lto_read_body): Likewise.
33874         (lto_input_toplevel_asms): Likewise.
33876 2013-02-08  Michael Matz  <matz@suse.de>
33878         PR tree-optimization/52448
33879         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
33880         (nt_call_phase): New static.
33881         (add_or_mark_expr): Only mark accesses with newer phase than any
33882         call seen.
33883         (nonfreeing_call_p): New.
33884         (nt_init_block): Update nt_call_phase, mark blocks as visited.
33885         (nt_fini_block): Keep blocks marked as visited.
33886         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
33888 2013-02-08  Richard Biener  <rguenther@suse.de>
33890         * ira.c (ira): Free broken dominator information.
33892 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
33894         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
33896 2013-02-08  Marek Polacek  <polacek@redhat.com>
33898         * cfgloop.c (verify_loop_structure): Add more checking of headers.
33900 2013-02-08  Richard Biener  <rguenther@suse.de>
33902         PR middle-end/56181
33903         * cfgloop.h (flow_loops_find): Adjust.
33904         (bb_loop_header_p): Declare.
33905         * cfgloop.c (bb_loop_header_p): New function split out from ...
33906         (flow_loops_find): ... here.  Adjust function signature,
33907         support incremental loop structure update.
33908         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
33909         * cfgloopmanip.c (fix_loop_structure): Move ...
33910         * loop-init.c (fix_loop_structure): ... here.
33911         (apply_loop_flags): Split out from ...
33912         (loop_optimizer_init): ... here.
33913         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
33914         in incremental mode, only remove dead loops here.
33916 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
33918         PR target/54222
33919         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
33920         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
33921         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
33922         (*round<mode>3.libgcc): New insns for fixed-modes.
33923         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
33924         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
33925         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
33926         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
33927         implementations.  Define to __builtin_avr_absFX,
33928         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
33929         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
33930         __builtin_avr_countlsFX, respectively.
33931         * config/avr/avr-c.c (target.h): Include it.
33932         (enum avr_builtin_id): New enum.
33933         (avr_resolve_overloaded_builtin): New static function.
33934         (avr_register_target_pragmas): Use it to set
33935         targetm.resolve_overloaded_builtin.
33936         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
33937         tree nodes used by DEF_BUILTIN.
33938         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
33939         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
33940         <AVR_BUILTIN_xxBITS>: Same.
33942 2013-02-08  Richard Biener  <rguenther@suse.de>
33944         * cfgloop.c (verify_loop_structure): Properly handle
33945         a loop exiting to another loop header.
33946         * ira-int.h (ira_loops): Remove.
33947         * ira.c (ira_loops): Remove.
33948         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
33949         (do_reload): Use loop_optimizer_finalize.
33950         * ira-build.c (create_loop_tree_nodes): Use get_loops and
33951         number_of_loops to access the loop tree.
33952         (more_one_region_p): Likewise.
33953         (finish_loop_tree_nodes): Likewise.
33954         (rebuild_regno_allocno_maps): Likewise.
33955         (mark_loops_for_removal): Likewise.
33956         (mark_all_loops_for_removal): Likewise.
33957         (remove_unnecessary_regions): Likewise.
33958         (ira_build): Likewise.
33959         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
33961 2013-02-08  Richard Biener  <rguenther@suse.de>
33963         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
33964         * ipa-pure-const.c (analyze_function): Avoid calling
33965         mark_irreducible_loops twice.
33966         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
33968 2013-02-07  David S. Miller  <davem@davemloft.net>
33970         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
33971         on 'reg'.
33972         * var-tracking.c (vt_add_function_parameter): Test the presence of
33973         HAVE_window_save properly and do not remap argument registers when
33974         we have a leaf function.
33976 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
33978         PR bootstrap/56227
33979         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
33980         instead of "ll".
33981         * config/i386/i386.c (ix86_print_operand): Ditto.
33983 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
33985         * lra-constraints.c (process_alt_operands): Fix recently added comment.
33987 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
33989         PR rtl-optimization/56225
33990         * lra-constraints.c (process_alt_operands): Check that reload hard
33991         reg can hold value for strict_low_part.
33993 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
33995         PR debug/56154
33996         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
33997         dwarf2out_end_function.
33998         (in_first_function_p, maybe_at_text_label_p,
33999         first_loclabel_num_not_at_text_label): New variables.
34000         (dwarf2out_var_location): In the first function find out
34001         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
34002         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
34003         functions.
34005 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
34007         PR rtl-optimization/56178
34008         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
34009         SUBREG of a register.  Tidy up related block of code.
34010         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
34011         note if the source is a register or a SUBREG of a register.
34013 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
34015         PR target/56228
34016         * config/rs6000/rs6000.md (ptrm): New mode attr.
34017         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
34018         call_value_indirect_aix<pttrsize>,
34019         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
34020         m in constraints.
34022 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34024         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
34025         if -bnortl. Convert to strcmp and strncmp.
34027 2013-02-07  Alan Modra  <amodra@gmail.com>
34029         PR target/54009
34030         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
34031         addresses won't wrap when offsetting.
34032         (rs6000_secondary_reload): Provide secondary reloads needed for
34033         wrapping LO_SUM addresses.
34035 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
34037         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
34038         MACH, just __MACH__.
34040 2013-02-06  Richard Biener  <rguenther@suse.de>
34042         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
34043         instead of calling fix_loop_structure.
34045 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
34047         PR middle-end/56217
34048         * omp-low.c (use_pointer_for_field): Return false if
34049         lower_send_shared_vars doesn't generate any copy-out code.
34051 2013-02-06  Tom de Vries  <tom@codesourcery.com>
34053         PR rtl-optimization/56131
34054         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
34055         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
34056         of the label is NULL.  Add comment.
34058 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
34060         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
34062         PR sanitizer/55374
34063         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
34064         (STATIC_LIBTSAN_LIBS): Likewise.
34065         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
34066         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
34067         is defined, don't add anything else beyond that.
34068         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
34069         (LINK_COMMAND_SPEC): Use them.
34071         PR tree-optimization/56205
34072         * tree-stdarg.c (check_all_va_list_escapes): Return true if
34073         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
34074         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
34076 2013-02-05  Richard Biener  <rguenther@suse.de>
34078         PR tree-optimization/53342
34079         PR tree-optimization/53185
34080         * tree-vectorizer.h (vect_check_strided_load): Remove.
34081         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
34082         not disallow peeling for vectorized strided loads.
34083         (vect_check_strided_load): Make static and simplify.
34084         (vect_analyze_data_refs): Adjust.
34085         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
34086         correctly when vectorizing strided loads.
34088 2013-02-05  Richard Biener  <rguenther@suse.de>
34090         * doc/install.texi: Refer to ISL, not PPL.
34092 2013-02-05  Jan Hubicka  <jh@suse.cz>
34094         PR tree-optimization/55789
34095         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
34097 2013-02-05  Jan Hubicka  <jh@suse.cz>
34099         PR tree-optimization/55789
34100         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
34101         the dead call anyway.
34103 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
34105         PR sanitizer/55374
34106         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
34108 2013-02-04  Alexander Potapenko  <glider@google.com>
34109             Jack Howarth  <howarth@bromo.med.uc.edu>
34110             Jakub Jelinek  <jakub@redhat.com>
34112         PR sanitizer/55617
34113         * config/darwin.c (sort_ctor_records): Stabilized qsort
34114         on constructor priority by using original position.
34115         (finalize_ctors): New routine to sort constructors by
34116         priority before use in assemble_integer.
34117         (machopic_asm_out_constructor): Use finalize_ctors if needed.
34119 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
34121         PR libstdc++/54314
34122         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
34123         about visibility on artificial decls.
34124         * config/sol2.c (solaris_assemble_visibility): Likewise.
34126 2013-02-04  Kai Tietz  <ktietz@redhat.com>
34128         PR target/56186
34129         * config/i386/i386.c (function_value_ms_64): Add additional valtype
34130         argument and improve checking of return-argument types for 16-byte
34131         modes.
34132         (ix86_function_value_1): Add additional valtype argument on call
34133         of function_value_64.
34134         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
34135         handling infunction_value_64 function.
34137 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
34139         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
34141 2013-02-04  Richard Biener  <rguenther@suse.de>
34143         PR tree-optimization/56188
34144         * tree-ssa-structalias.c (label_visit): Consider case with
34145         initially non-empty points-to set.
34146         (perform_var_substitution): Dump node mapping and clean up.
34148 2013-02-04  Richard Guenther  <rguenther@suse.de>
34150         PR lto/56168
34151         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
34152         node prevail as last resort.
34153         (lto_symtab_merge_decls): Remove guard on LTRANS here.
34154         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
34156 2013-02-04  Richard Biener  <rguenther@suse.de>
34158         PR tree-optimization/56113
34159         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
34160         Merge into ...
34161         (equiv_class_lookup_or_add): ... this.
34162         (label_visit): Adjust and fix error in previous patch.
34163         (perform_var_substitution): Adjust.
34165 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
34167         * config/sh/divtab.c: Fix formatting and comments throughout the file.
34168         * config/sh/sh4-300.md: Likewise.
34169         * config/sh/sh4a.md: Likewise.
34170         * config/sh/constraints.md: Likewise.
34171         * config/sh/sh.md: Likewise.
34172         * config/sh/netbsd-elf.h: Likewise.
34173         * config/sh/predicates.md: Likewise.
34174         * config/sh/sh-protos.h: Likewise.
34175         * config/sh/ushmedia.h: Likewise.
34176         * config/sh/linux.h: Likewise.
34177         * config/sh/sh.c: Likewise.
34178         * config/sh/superh.h: Likewise.
34179         * config/sh/elf.h: Likewise.
34180         * config/sh/sh4.md: Likewise.
34181         * config/sh/sh.h: Likewise.
34183 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34185         * config/pa/constraints.md: Adjust unused letters.  Change "T"
34186         constraint to match_test floating_point_store_memory_operand().
34187         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
34188         (base14_operand): New.
34189         (floating_point_store_memory_operand): New.
34190         (integer_store_memory_operand): Revise to use base14_operand and
34191         reg_plus_base_memory_operand.
34192         (move_dest_operand): Allow symbolic_memory_operands.
34193         (symbolic_memory_operand): Check for LO_SOM.
34194         (symbolic_operand): Change default case to break.
34195         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
34196         CONST_DOUBLE values to be reloaded by putting them into memory when
34197         the destination is a floating point register.
34198         (movdf): Remove code to handle CONST_DOUBLE.
34199         (movsf): Likewise.
34200         (reload_indf_r1): New.
34201         (reload_insf_r1): New.
34202         Consistently use "Q" and "T" constraints with integer and floating
34203         point move instructions, respectively.
34204         (movdi): Remove FAIL.
34205         Change predicate for source operand unamed DImode move from
34206         general_operand to move_src_operand.
34207         (umulsidi3): Change predicate for destination operand to
34208         register_operand.
34209         Likewise for similar unamed patterns.
34210         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
34211         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
34212         (hppa_legitimize_address): Simplify mask calculation.
34213         (pa_emit_move_sequence): Revised handling of secondary reloads from
34214         REG+D addresses for floating point loads and stores.  Directly handle
34215         loading CONST0_RTX (mode) to a floating point register.
34216         (pa_secondary_reload): Handle reloading DF and SFmode constant values
34217         to floating point registers.  Don't restrict secondary reloads to
34218         floating point registers to integer modes.  Revise some comments and
34219         cleanup some code.
34220         (TARGET_LEGITIMATE_ADDRESS_P): Define.
34221         (pa_legitimate_address_p): New.
34222         (pa_legitimize_reload_address): New.
34223         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
34224         (STRICT_REG_OK_FOR_BASE_P): New.
34225         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
34226         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
34228 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
34229             Andrew Dixie  <andrewd@gentrack.com>
34231         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
34232         flag set.
34234 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
34236         * expmed.c (extract_bit_field_1): Pass the full width of the
34237         structure to get_best_reg_extraction_insn.
34239 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
34241         PR target/54601
34242         * configure.ac (use_cxa_atexit): Add AIX.
34243         * configure: Regenerate.
34245         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
34247 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
34249         PR debug/54793
34250         * final.c (need_profile_function): New variable.
34251         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
34252         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
34253         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
34254         notes, targetm.asm_out.function_prologue doesn't emit anything,
34255         HAVE_prologue and profiler should be emitted before prologue,
34256         set need_profile_function instead of emitting it.
34257         (final_scan_insn): If need_profile_function, emit
34258         profile_function on the first NOTE_INSN_BASIC_BLOCK or
34259         NOTE_INSN_FUNCTION_BEG note.
34261 2013-02-01  Richard Henderson  <rth@redhat.com>
34263         * config/rs6000/rs6000.md (smulditi3): New.
34264         (umulditi3): New.
34266         * config/alpha/alpha.md (umulditi3): New.
34268 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
34270         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
34271         (ASM_OUTPUT_ALIGNED_LOCAL): New.
34273 2013-02-01  Richard Biener  <rguenther@suse.de>
34275         PR tree-optimization/56113
34276         * tree-ssa-structalias.c (label_visit): Reduce work for
34277         single-predecessor nodes.
34279 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
34281         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
34282         range isn't testing for zero.
34284 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
34286         PR middle-end/56113
34287         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
34289 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
34290             Nick Clifton  <nickc@redhat.com>
34292         * config/v850/constraints.md (Q): Define as a memory constraint.
34293         * config/v850/predicates.md (label_ref_operand): New predicate.
34294         (e3v5_shift_operand): New predicate.
34295         (ior_operator): New predicate.
34296         * config/v850/t-v850: Add e3v5 multilib.
34297         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
34298         (v850_gen_movdi): Prototype.
34299         * config/v850/v850.c: Add support for e3v5 architecture.
34300         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
34301         TARGET_V850E_UP.
34302         (construct_save_jarl): Add e3v5 long JARL support.
34303         (v850_adjust_insn_length): New function.  Adjust length of call
34304         insns when using e3v5 instructions.
34305         (v850_gen_movdi): New function: Generate instructions to move a
34306         DImode value.
34307         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
34308         (CPP_SPEC): Define __v850e3v5__ as appropriate.
34309         (TARGET_USE_FPU): Enable for e3v5.
34310         (CONST_OK_FOR_W): New macro.
34311         (ADJUST_INSN_LENGTH): Define.
34312         * config/v850/v850.md (UNSPEC_LOOP): Define.
34313         (attr cpu): Add v850e3v5.
34314         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
34315         (movdi): New pattern.
34316         (movdi_internal): New pattern.
34317         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
34318         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
34319         (cstoresf4): Likewise.
34320         (cstoredf4): Likewise.
34321         (insv): New pattern.
34322         (rotlso3_a): New pattern.
34323         (rotlsi3_b): New pattern
34324         (rotlsi3_v850e3v5): New pattern.
34325         (doloop_begin): New pattern.
34326         (fix_loop_counter): New pattern.
34327         (doloop_end): New pattern.
34328         (branch_normal): Add e3v5 long branch support.
34329         (branch_invert): Likewise.
34330         (branch_z_normal): Likewise.
34331         (branch_z_invert): Likewise.
34332         (branch_nz_normal): Likewise.
34333         (branch_nz_invert): Likewise.
34334         (call_internal_short): Add e3v5 register-indirect JARL support.
34335         (call_internal_long): Likewise.
34336         (call_value_internal_short): Likewise.
34337         (call_value_internal_long): Likewise.
34338         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
34339         (mloop): New option.
34340         * config.gcc: Add support for configuring v840e3v5 target.
34341         * doc/invoke.texi: Document new v850 specific command line options.
34343 2013-01-31  Paul Koning  <ni1d@arrl.net>
34345         PR debug/55059
34346         PR debug/54508
34347         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
34348         children if parent is a class.
34349         (prune_unused_types_prune): Don't add DW_AT_declaration.
34351 2013-01-31  Richard Biener  <rguenther@suse.de>
34353         PR tree-optimization/56157
34354         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
34355         match up operand with SLP child.
34357 2013-01-31  Jason Merrill  <jason@redhat.com>
34359         PR debug/54410
34360         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
34361         parameters the first time.
34362         (gen_scheduled_generic_parms_dies): Check completeness here.
34364 2013-01-31  Richard Biener  <rguenther@suse.de>
34366         PR middle-end/53073
34367         * common.opt (faggressive-loop-optimizations): New flag,
34368         enabled by default.
34369         * doc/invoke.texi (faggressive-loop-optimizations): Document.
34370         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
34371         infer_loop_bounds_from_undefined by it.
34373 2013-01-31  Richard Biener  <rguenther@suse.de>
34375         PR tree-optimization/56150
34376         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
34377         visit virtual operands.
34378         (find_uses_to_rename_bb): Likewise.
34380 2013-01-31  Richard Biener  <rguenther@suse.de>
34382         PR tree-optimization/56150
34383         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
34384         mixed store non-store stmts.
34386 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
34388         PR sanitizer/55374
34389         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
34390         LIBASAN_EARLY_SPEC is defined.
34391         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
34392         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
34393         before %o.
34394         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
34396         PR c++/55742
34397         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
34398         invalid args instead of ICEing on it.
34399         (ix86_valid_target_attribute_tree): Return error_mark_node if
34400         ix86_valid_target_attribute_inner_p failed.
34401         (ix86_valid_target_attribute_p): Return false only if
34402         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
34403         target("default") attribute.
34404         (sorted_attr_string): Change argument from const char * to tree,
34405         merge in all target attribute arguments rather than just one.
34406         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
34407         instead of free.  Avoid using strcat.
34408         (ix86_mangle_function_version_assembler_name): Mangle
34409         target("default") as if no target attribute is present.  Adjust
34410         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
34411         instead of xmalloc and XDELETEVEC instead of free.
34412         (ix86_function_versions): Don't return true if one of the decls
34413         doesn't have target attribute.  If they don't and one of the decls
34414         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
34415         sorted_attr_string caller.  Use XDELETEVEC instead of free.
34416         (ix86_supports_function_versions): Remove.
34417         (make_name): Fix up formatting.
34418         (make_dispatcher_decl): Remove resolver_name and its initialization.
34419         Avoid leaking memory.
34420         (is_function_default_version): Return true if there is
34421         target("default") attribute rather than no target attribute at all.
34422         (make_resolver_func): Avoid leaking memory.
34423         (ix86_generate_version_dispatcher_body): Likewise.
34424         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
34425         * target.def (supports_function_versions): Remove.
34426         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
34427         * doc/tm.texi: Regenerated.
34429 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34431         PR rtl-optimization/56144
34432         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
34433         for values with side effects.
34435 2013-01-30  Richard Biener  <rguenther@suse.de>
34437         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
34438         (sparseset_pop): Likewise.
34439         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
34440         to be able to use quick_push in the worker loop.
34442 2013-01-30  Marek Polacek  <polacek@redhat.com>
34444         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
34446 2013-01-30  Richard Biener  <rguenther@suse.de>
34448         PR lto/56147
34449         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
34451 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
34453         PR tree-optimization/56064
34454         * fixed-value.c (fixed_from_double_int): New function.
34455         * fixed-value.h (fixed_from_double_int): New prototype.
34456         (const_fixed_from_double_int): New static inline function.
34457         * fold-const.c (native_interpret_fixed): New static function.
34458         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
34459         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
34460         (native_encode_fixed): New static function.
34461         (native_encode_expr) <FIXED_CST>: Use it.
34462         (native_interpret_int): Move double_int worker code to...
34463         * double-int.c (double_int::from_buffer): ...this new static method.
34464         * double-int.h (double_int::from_buffer): Prototype it.
34466 2013-01-30  Richard Biener  <rguenther@suse.de>
34468         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
34469         New pointer-map and obstack.
34470         (init_alias_vars): Allocate pointer-map and obstack.
34471         (delete_points_to_sets): Free them.
34472         (find_what_var_points_to): Cache result.
34473         (find_what_p_points_to): Adjust for changed interface of
34474         find_what_var_points_to.
34475         (compute_points_to_sets): Likewise.
34476         (ipa_pta_execute): Likewise.
34478 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34480         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
34481         * configure: Regenerate.
34482         * config.in: Regenerate.
34483         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
34484         #nobits/#progbits if supported.
34486 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
34488         PR target/56121
34489         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
34490         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
34491         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
34493 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34495         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
34496         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
34498 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34500         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
34501         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
34503 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34505         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
34506         declaration.
34507         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
34508         * config/arm/cortex-a7.md: New bypasses using
34509         arm_mac_accumulator_is_result.
34511 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34513         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
34514         (cortex_a7_neon_mla): Likewise.
34515         (cortex_a7_fpfmad): New reservation.
34516         (cortex_a7_fpmacs): Use ffmas and update required units.
34517         (cortex_a7_fpmuld): Update required units and latency.
34518         (cortex_a7_fpmacd): Likewise.
34519         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
34520         (cortex_a7_neon). Likewise.
34521         (bypass) Update participating units.
34523 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
34525         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
34526         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
34527         from fmac to ffma.
34528         * config/arm/vfp11.md (vfp_farith): Use ffmas.
34529         (vfp_fmul): Use ffmad.
34530         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
34531         (cortex_r4_fmacd): Use ffmad.
34532         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
34533         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
34534         (cortex_a9_fmacd): Use ffmad.
34535         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
34536         (cortex_a8_vfp_macd): Use ffmad.
34537         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
34538         (cortex_a5_fpmacd): Use ffmad.
34539         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
34540         (cortex_a15_vfp_macd): Use ffmad.
34541         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
34543 2013-01-29  Jason Merrill  <jason@redhat.com>
34545         PR libstdc++/54314
34546         * varasm.c (default_assemble_visibility): Don't warn about
34547         visibility on artificial decls.
34549 2013-01-29  Richard Biener  <rguenther@suse.de>
34551         PR tree-optimization/56113
34552         * tree-ssa-structalias.c (equiv_class_lookup): Also return
34553         the bitmap leader.
34554         (label_visit): Free duplicate bitmaps and record the leader instead.
34555         (perform_var_substitution): Adjust.
34557 2013-01-29  Richard Biener  <rguenther@suse.de>
34559         PR tree-optimization/55270
34560         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
34561         the CFG, schedule loops for fixup.
34563 2013-01-29  Nick Clifton  <nickc@redhat.com>
34565         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
34566         SP_REG.
34568 2013-01-28  Leif Ekblad  <leif@rdos.net>
34570         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
34571         * config/i386/i386.h (TARGET_RDOS): New macro.
34572         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
34573         * config/i386/i386.c (ix86_option_override_internal): For 64bit
34574         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
34575         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
34576         DEFAULT_LARGE_SECTION_THRESHOLD.
34577         * config/i386/i386.md (R14_REG, R15_REG): New constants.
34578         * config/i386/rdos.h: New file.
34579         * config/i386/rdos64.h: New file.
34581 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
34583         PR other/54814
34584         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
34585         TEST_HARD_REG_BIT.
34587 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
34589         PR rtl-optimization/56117
34590         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
34591         call cselib_lookup_from_insn on the MEM before calling
34592         add_insn_mem_dependence.
34594 2013-01-28  Richard Biener  <rguenther@suse.de>
34596         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
34597         to a stmt that didn't have one.
34598         (copy_phis_for_bb): Likewise for PHI arguments.
34599         (copy_debug_stmt): Likewise for debug stmts.
34601 2013-01-28  Richard Biener  <rguenther@suse.de>
34603         PR tree-optimization/56034
34604         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
34605         (partition_builtin_p): Adjust.
34606         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
34607         it is the last partition.
34608         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
34609         up the vertex for the definition.
34610         (classify_partition): Classify whether a partition is a
34611         PKIND_REDUCTION, thus has uses outside of the loop.
34612         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
34613         Merge all PKIND_REDUCTION partitions into the last partition.
34614         (tree_loop_distribution): Seed partitions from reductions as well.
34616 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
34618         PR tree-optimization/56125
34619         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
34620         pow(x,c) into sqrt(x) * powi(x, n/2) or
34621         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
34622         optimizing for size.
34623         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
34624         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
34625         integer.
34627         PR tree-optimization/56094
34628         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
34629         to UNKNOWN_LOCATION while gimplifying expr.
34631 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
34633         PR target/56114
34634         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
34635         operand 0 in movabs insn template for -masm=intel asm alternative.
34636         (*movabs<mode>_2): Ditto for operand 1.
34638 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
34640         PR target/54663
34641         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
34642         of microblaze-c.o
34644 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34646         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
34647         tm_file.
34649 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
34651         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
34652         Undef to avoid warning.
34654 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34656         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
34657         * configure: Regenerate.
34659 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
34661         PR tree-optimization/56098
34662         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
34663         for stmts with volatile ops.
34664         (cond_store_replacement): Don't optimize if assign has volatile ops.
34665         (cond_if_else_store_replacement_1): Don't optimize if either
34666         then_assign or else_assign have volatile ops.
34667         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
34668         volatile ops.
34670 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
34672         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
34674 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
34676         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
34677         missing ':' in asm example.
34679 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
34681         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
34682         entries into lane and laneq entries.
34683         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
34684         Remove AdvSIMD scalar modes.
34685         (aarch64_sq<r>dmulh_laneq<mode>): New.
34686         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
34687         modes.
34688         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
34689         builtin implementations to relfect changes in RTL in aarch64-simd.md.
34690         * config/aarch64/iterators.md (VCOND): New.
34691         (VCONQ): New.
34693 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
34695         PR target/54222
34696         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
34697         Add NULL LIBNAME argument to existing definitions.
34698         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
34699         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
34700         * config/avr/avr.c (DEF_BUILTIN): Same.
34701         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
34702         (avr_expand_builtin): Expand to a vanilla call if a libgcc
34703         implementation is available (DECL_ASSEMBLER_NAME is set).
34704         (avr_fold_absfx): New static function.
34705         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
34706         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
34707         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
34708         AVR_BUILTIN_ABSLLK.
34709         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
34710         (abshk, absk, abslk, absllk): Provide as static inline functions.
34712 2013-01-25  Marek Polacek  <polacek@redhat.com>
34714         PR tree-optimization/56035
34715         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
34717 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
34719         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
34720         (*movtf_internal_rex64): Add (!o,C) alternative
34721         (*movxf_internal_rex64): Ditto.
34722         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
34724 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
34726         * doc/invoke.texi: fix typo.
34727         * doc/objc.texi: fix typo.
34729 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
34731         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
34732         for the first two alternatives.
34734 2013-01-24  Diego Novillo  <dnovillo@google.com>
34736         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
34737         (ggc-zone.o): Remove.
34738         * configure.ac: Remove option --with-gc.
34739         * configure: Re-generate.
34740         * doc/install.texi: Remove documentation for --with-gc.
34741         * gengtype.c (write_enum_defn): Remove.  Update all users.
34742         (write_Types_process_field): Remove generation of gt_e_* argument.
34743         (output_type_enum): Remove.  Update all users.
34744         (write_enum_defn): Remove.  Update all users.
34745         (enum alloc_zone): Remove.  Update all users.
34746         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
34747         * ggc-common.c (ggc_splay_alloc): Remove first argument.
34748         Update all callers.
34749         (struct ptr_data): Remove field TYPE.  Update all users.
34750         (gt_pch_note_object): Remove argument TYPE.  Update all users.
34751         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
34752         Update all users.
34753         * ggc-none.c (ggc_alloc_typed_stat): Remove.
34754         (struct alloc_zone): Remove.
34755         (ggc_internal_alloc_zone_stat): Remove.
34756         (ggc_internal_cleared_alloc_zone_stat): Remove.
34757         * ggc-page.c (ggc_alloc_typed_stat): Remove.
34758         (ggc_pch_count_object): Remove last argument.  Update all users.
34759         (ggc_pch_alloc_object): Remove last argument.  Update all users.
34760         (struct alloc_zone): Remove.
34761         * ggc-zone.c: Remove.
34762         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
34763         (struct alloc_zone): Remove.
34764         (ggc_alloc_typed_stat): Remove.
34765         (ggc_alloc_typed): Remove.
34766         (ggc_splay_alloc): Remove first argument.
34767         (rtl_zone): Remove.  Update all users.
34768         (tree_zone): Remove.  Update all users.
34769         (tree_id_zone): Remove.  Update all users.
34770         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
34771         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
34772         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
34773         * tree-ssanames.c: Remove references to zone allocator in comments.
34775 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
34777         * config/avr/avr.c (avr_out_fract): Make register numbers that
34778         might be outside of source operand signed.
34780 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
34782         * config/i386/constraints.md (Yf): New constraint.
34783         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
34784         of f constraint to conditionaly disable x87 register preferences.
34785         (*movdf_internal): Ditto.
34786         (*movsf_internal): Ditto.
34788 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
34790         PR inline-asm/55934
34791         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
34792         that have operands with impossible constraints.
34793         Add a FIXME for a speed-up opportunity.
34794         * lra-constraints.c (process_alt_operands): Verify that a class
34795         selected from constraints on asms is valid for the operand mode.
34796         (curr_insn_transform): Remove incorrect comment.
34798 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
34800         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
34801         TOC operand is a valid symbol ref in the constant pool.
34803 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
34805         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
34807 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
34809         PR target/54222
34810         * config/avr/stdfix.h: New file.
34811         * t-avr (stdfix-gcc.h): New rule to build it.
34812         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
34814 2013-01-23  Kostya Serebryany  <kcc@google.com>
34816         * config/darwin.h: remove dependency on
34817         CoreFoundation (asan on Mac OS).
34819 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
34821         PR target/49069
34822         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
34823         instead of cmpdi_operand for first comparison operand.
34824         Don't assert that comparison operands aren't both constants.
34826 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
34828         * doc/install.texi (Downloading the Source): Update references to
34829         downloading separate components.
34831 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
34833         * doc/extend.texi (__int128): Improve grammar.
34835 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
34837         PR target/56028
34838         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
34839         alternative to (o,r).
34840         (*movdi_internal_rex64): Remove (!o,n) alternative.
34841         (DImode immediate->memory splitter): Remove.
34842         (DImode immediate->memory peephole2): Remove.
34843         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
34844         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
34845         alternative to (!o,*r).
34846         (*movtf_internal_sse): New pattern.
34847         (*movxf_internal_rex64): New pattern.
34848         (*movxf_internal): Disable for TARGET_64BIT.
34849         (*movdf_internal_rex64): Remove (!o,F) alternative.
34851 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
34853         PR middle-end/56074
34854         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
34855         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
34856         * tree-vect-loop-manip.c (find_loop_location): Also ignore
34857         stmt locations where LOCATION_LOCUS of the stmt location is
34858         UNKNOWN_LOCATION or BUILTINS_LOCATION.
34860         PR target/55686
34861         * config/i386/i386.md (UNSPEC_STOS): New.
34862         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
34863         *strsetqi_1): Add UNSPEC_STOS.
34865 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
34867         PR c++/56067
34868         * doc/invoke.texi: Remove left over -Wsynth example.
34870 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
34872         PR tree-optimization/56051
34873         * fold-const.c (fold_binary_loc): Don't fold
34874         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
34875         a narrowing conversion, or widening conversion from signed
34876         to unsigned.
34878 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
34880         PR rtl-optimization/56023
34881         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
34882         dependent on debug instruction.
34884 2013-01-21  Martin Jambor  <mjambor@suse.cz>
34886         PR middle-end/56022
34887         * function.c (allocate_struct_function): Call
34888         invoke_set_current_function_hook earlier.
34890 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
34892         * reload1.c (init_reload): Only initialize reload_obstack
34893         during the first call.
34895 2013-01-21  Marek Polacek  <polacek@redhat.com>
34897         * cfgloop.c (verify_loop_structure): Fix up grammar.
34899 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
34901         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
34902         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
34904 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34906         PR target/56058
34907         * config/arm/marvell-pj4.md: Update copyright year.
34908         Fix up use of alu to alu_reg and simple_alu_imm.
34910 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
34912         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
34914 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
34916         PR target/55433
34917         * lra-constraints.c (curr_insn_transform): Don't reuse original
34918         insn for secondary memory move when memory mode should be different.
34920 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34922         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
34923         atomic_storedi_1): New patterns.
34925 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
34927         btver2 pipeline descriptions.
34928         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
34929         descriptions.
34930         * config/i386/i386.md (btver2_decode): New type attributes.
34931         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
34932         type attributes.
34933         * config/i386/btver2.md: New file describing btver2 pipelines.
34935 2013-01-19  Andrew Pinski  <apinski@cavium.com>
34937         PR tree-optimization/52631
34938         * tree-ssa-sccvn (visit_use): Before looking up the original
34939         statement, try looking up the simplified expression.
34941 2013-01-19  Anthony Green  <green@moxielogic.com>
34943         * config/moxie/moxie.c (moxie_expand_prologue): Set
34944         current_function_static_stack_size.
34946 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
34948         PR tree-optimization/56029
34949         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
34950         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
34952 2013-01-18  Sharad Singhai  <singhai@google.com>
34954         PR tree-optimization/55995
34955         * dumpfile.c (dump_loc): Print location only if available.
34956         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
34958 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
34960         PR target/55433
34961         * lra-constraints.c (curr_insn_transform): Reuse original insn for
34962         secondary memory move.
34963         (inherit_reload_reg): Use rclass instead of cl for
34964         check_secondary_memory_needed_p.
34966 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
34968         PR middle-end/56015
34969         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
34970         the case where writing real complex part of target modifies op1.
34972 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
34974         * config/aarch64/aarch64-simd.md
34975         (aarch64_vcond_internal<mode>): Handle unordered cases.
34976         * config/aarch64/iterators.md (v_cmp_result): New.
34978 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
34979             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
34981         * config/arm/marvell-pj4.md: New file.
34982         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
34983         * config/arm/arm.md (generic_sched): Add marvell_pj4.
34984         (generic_vfp): Likewise.
34985         * config/arm/arm-cores.def: Add marvell-pj4.
34986         * config/arm/arm-tune.md: Regenerate.
34987         * config/arm/arm-tables.opt: Regenerate.
34988         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
34989         * doc/invoke.texi: Document marvell-pj4.
34991 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
34993         * config/aarch64/arm_neon.h: Map scalar types to standard types.
34995 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
34997         PR debug/54114
34998         PR debug/54402
34999         PR debug/49888
35000         * var-tracking.c (negative_power_of_two_p): New.
35001         (global_get_addr_cache, local_get_addr_cache): New.
35002         (get_addr_from_global_cache, get_addr_from_local_cache): New.
35003         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
35004         heading comment.
35005         (vt_stack_offset_p): Remove.
35006         (vt_canon_true_dep): Always canonicalize loc's address.
35007         (clobber_overlapping_mems): Make sure we have a MEM.
35008         (local_get_addr_clear_given_value): New.
35009         (val_reset): Clear local cached entries.
35010         (compute_bb_dataflow): Create and release the local cache.
35011         Disable duplicate MEMs clobbering.
35012         (emit_notes_in_bb): Clobber MEMs likewise.
35013         (vt_emit_notes): Create and release the local cache.
35014         (vt_initialize, vt_finalize): Create and release the global
35015         cache, respectively.
35016         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
35018 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35020         PR libmudflap/53359
35021         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
35022         not found in the symtab.
35024 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
35026         PR debug/56006
35027         PR rtl-optimization/55547
35028         PR rtl-optimization/53827
35029         PR debug/53671
35030         PR debug/49888
35031         * alias.c (offset_overlap_p): New, factored out of...
35032         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
35033         the conservative special case for symbolic constants.  Don't
35034         adjust zero sizes on alignment.
35036 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
35038         PR rtl-optimization/52573
35039         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
35040         REG_UNUSED for the same register.
35042 2013-01-17  Richard Biener  <rguenther@suse.de>
35043             Marek Polacek  <polacek@redhat.com>
35045         PR rtl-optimization/55833
35046         * loop-unswitch.c (unswitch_loops): Move loop verification...
35047         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
35048         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
35049         Set it to true when we're removing a loop from hierarchy tree in
35050         an irreducible region.
35051         (fix_bb_placements): Adjust caller.
35052         (fix_loop_placements): Likewise.
35054 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
35056         * config/avr/builtins.def (DEF_BUILTIN): Factor out
35057         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
35058         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
35059         Remove ID.  Adjust comments.
35060         * config/avr/avr-c.c (avr_builtin_name): Remove.
35061         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
35062         * config/avr/avr.c (avr_tolower): New static function.
35063         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
35064         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
35065         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
35066         default expansion.
35068 2013-01-17  Jan Hubicka  <jh@suse.cz>
35070         PR tree-optimization/55273
35071         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
35073 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
35075         PR target/55981
35076         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
35077         store through atomic_store<mode>_1.
35078         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
35080 2013-01-17  Martin Jambor  <mjambor@suse.cz>
35082         PR tree-optimizations/55264
35083         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
35084         for virtual methods.
35085         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
35086         virtual methods before inlining is over.
35087         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
35088         virtual functions.
35089         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
35090         non-virtual.
35092 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35094         PR rtl-optimization/56005
35095         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
35096         pending reads for prefetch.
35098 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
35100         * config/aarch64/aarch64.md
35101         (*cstoresi_neg_uxtw): New pattern.
35102         (*cmovsi_insn_uxtw): New pattern.
35103         (*<optab>si3_uxtw): New pattern.
35104         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
35105         (*<optab>si3_insn_uxtw): New pattern.
35106         (*bswapsi2_uxtw): New pattern.
35108 2013-01-16  Richard Biener  <rguenther@suse.de>
35110         * tree-inline.c (tree_function_versioning): Remove set but
35111         never used variable.
35113 2013-01-16  Richard Biener  <rguenther@suse.de>
35115         PR tree-optimization/55964
35116         * tree-flow.h (rename_variables_in_loop): Remove.
35117         (rename_variables_in_bb): Likewise.
35118         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
35119         (copy_loop_before): Adjust and delete update-ssa status.
35120         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
35121         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
35122         (rename_variables_in_loop): Remove.
35123         (slpeel_update_phis_for_duplicate_loop): Likewise.
35124         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
35125         use available cfg machinery instead of duplicating it.
35126         Update PHI nodes and perform poor-mans SSA update here.
35127         (slpeel_tree_peel_loop_to_edge): Adjust.
35129 2013-01-16  Richard Biener  <rguenther@suse.de>
35131         PR tree-optimization/54767
35132         PR tree-optimization/53465
35133         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
35134         (vrp_visit_phi_node): For PHI arguments coming via backedges
35135         drop all symbolical range information.
35136         (execute_vrp): Compute backedges.
35138 2013-01-16  Richard Biener  <rguenther@suse.de>
35140         * doc/install.texi: Update CLooG and ISL requirements to
35141         0.18.0 and 0.11.1.
35143 2013-01-16  Christian Bruel  <christian.bruel@st.com>
35145         PR target/55301
35146         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
35147         (broken_move): Handle UNSPECV_SP_SWITCH_B.
35148         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
35150 2013-01-16  DJ Delorie  <dj@redhat.com>
35152         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
35153         (UNSPECV_SP_SWITCH_E): New.
35154         (sp_switch_1): Change to an unspec.
35155         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
35156         replace $r15.
35158 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
35160         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
35161         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
35162         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
35163         (expand_mem_thread_fence): Ditto.
35164         (expand_mem_signal_fence): Ditto.
35165         (expand_atomic_load): Ditto.
35166         (expand_atomic_store): Ditto.
35168 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
35170         PR rtl-optimization/55547
35171         PR rtl-optimization/53827
35172         PR debug/53671
35173         PR debug/49888
35174         * alias.c (memrefs_conflict_p): Set sizes to negative after
35175         AND adjustments.
35177 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35179         PR target/55940
35180         * function.c (thread_prologue_and_epilogue_insns): Always
35181         add crtl->drap_reg to set_up_by_prologue.set, even if
35182         stack_realign_drap is false.
35184 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35186         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
35187         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
35188         *call): Fix indention.
35190 2013-01-15  Tom de Vries  <tom@codesourcery.com>
35192         PR target/55876
35193         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
35194         Update comment.
35196 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
35198         PR rtl-optimization/55153
35199         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
35201 2013-01-15  Martin Jambor  <mjambor@suse.cz>
35203         PR tree-optimization/55920
35204         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
35205         accesses as grp_to_be_debug_replaced.
35207 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35209         PR tree-optimization/55920
35210         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
35211         there is non-useless type conversion needed from debug rhs to lhs,
35212         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
35214 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
35215             Mikael Pettersson  <mikpe@it.uu.se>
35217         PR target/43961
35218         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
35219         Thumb.
35220         (ASM_OUTPUT_CASE_LABEL): Remove.
35221         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
35222         * final.c (shorten_branches): Update alignment of labels before
35223         jump tables if CASE_VECTOR_SHORTEN_MODE.
35225 2013-01-15  Richard Biener  <rguenther@suse.de>
35227         PR bootstrap/55961
35228         * system.h: Do not include gmp.h for building host tools.
35230 2013-01-15  Richard Biener  <rguenther@suse.de>
35232         PR middle-end/55882
35233         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
35234         account for bitpos when computing alignment.
35236 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
35238         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
35239         (ix86_target_macros_internal): Likewise.
35241         * config/i386/i386.c (m_CORE2I7): Removed.
35242         (m_CORE_HASWELL): New macro.
35243         (m_CORE_ALL): Likewise.
35244         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
35245         (initial_ix86_arch_features): Likewise.
35246         (processor_target_table): Initializations for Core avx2.
35247         (cpu_names): New names "core-avx2".
35248         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
35249         PROCESSOR_CORE_HASWELL.
35250         (ix86_issue_rate): New case.
35251         (ia32_multipass_dfa_lookahead): Likewise.
35252         (ix86_sched_init_global): Likewise.
35254         * config/i386/i386.h (TARGET_HASWELL): New macro.
35255         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
35256         (processor_type): New PROCESSOR_HASWELL.
35258 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
35260         PR tree-optimization/55955
35261         * tree-vect-loop.c (vectorizable_reduction): Give up early on
35262         *SHIFT_EXPR and *ROTATE_EXPR codes.
35264         PR tree-optimization/48766
35265         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
35266         -ftrapv disable -fwrapv.
35268 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35270         PR target/55974
35271         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
35272         etc. to 1 and not to __flash.
35273         Use LL suffix for __INT24_MAX__ with -mint8.
35274         Use ULL suffix for __UINT24_MAX__ with -mint8.
35276 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35278         * config/avr/avr-arch.h
35279         (struct base_arch_s): Use typedef avr_arch_t instead.
35280         (struct arch_info_s): Use typedef avr_arch_info_t instead.
35281         (struct mcu_type_s): Use typedef avr_mcu_t instead.
35282         * config/avr/avr.c: Same.
35283         * config/avr/avr-devices.c: Same.
35284         * config/avr/driver-avr.c: Same.
35285         * config/avr/gen-avr-mmcu-texi.c: Same.
35286         * config/avr/avr-mcus.def: Adjust comment.
35288 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
35290         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
35291         * config/aarch64/iterators.md (VALLDI): New.
35293 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
35294             Andi Kleen  <ak@linux.intel.com>
35296         PR target/55948
35297         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
35298         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
35299         memmodel flag.
35301 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35303         * config/avr/avr-stdint.h: Remove trailing blanks.
35304         * config/avr/avr-log.h: Same.
35305         * config/avr/avr-arch.h: Same.
35306         * config/avr/avr-devices.c: Same.
35307         * config/avr/avr-dimode.md: Same.
35308         * config/avr/predicates.md: Same.
35309         * config/avr/avr-c.c: Same.  And fix typo.
35311         * config/avr/avr-protos.h: Same.  And:
35312         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
35313         (init_cumulative_args): Rename to avr_init_cumulative_args.
35314         (expand_prologue): Rename to avr_expand_prologue.
35315         (expand_epilogue): Rename to avr_expand_epilogue.
35316         (adjust_insn_length): Rename to avr_adjust_insn_length.
35317         (notice_update_cc): Rename to avr_notice_update_cc.
35318         (final_prescan_insn): Rename to avr_final_prescan_insn.
35319         * config/avr/avr.c: Same.
35320         * config/avr/avr.h: Same.
35321         * config/avr/avr.md: Remove trailing blanks.
35322         (prologue): Use avr_expand_prologue.
35323         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
35325 2013-01-14  Richard Biener  <rguenther@suse.de>
35327         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
35328         verify_location, collect_subblocks): New functions.
35329         (verify_gimple_in_cfg): Verify that locations only reference
35330         BLOCKs in the functions BLOCK tree.
35332 2013-01-14  Richard Biener  <rguenther@suse.de>
35334         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
35335         PHI argument.
35336         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
35337         unshare reference.
35338         (insert_out_of_ssa_copy_on_edge): Likewise.
35339         (rewrite_close_phi_out_of_ssa): Likewise.
35340         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
35341         debug expressions.
35342         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
35343         propagated constants.
35344         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
35345         can not be shared.
35347 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
35349         * config/avr/avr-modes.def: Add GPL copyright notice.
35351 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
35353         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
35354         MEMMODEL_MASK to determine memory model.
35355         (atomic_store<mode>): Ditto from operands[2].
35356         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
35358 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
35360         PR fortran/55935
35361         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
35362         (fold_gimple_assign): Don't call unshare_expr here.
35363         (fold_ctor_reference): Call unshare_expr.
35365 2013-01-13  Terry Guo  <terry.guo@arm.com>
35367         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
35368         * doc/fragments.texi: Document MULTILIB_REUSE.
35369         * gcc.c (multilib_reuse): New internal spec.
35370         (set_multilib_dir): Also search multilib from multilib_reuse.
35371         * genmultilib (tmpmultilib3): Refactor code.
35372         (tmpmultilib4): Ditto.
35373         (multilib_reuse): New multilib argument.
35375 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
35377         * Makefile.in: Update copyright.
35379 2013-01-12  Tom de Vries  <tom@codesourcery.com>
35381         PR middle-end/55890
35382         * calls.c (expand_call): Check if arg_nr is valid.
35384 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
35386         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
35387         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
35388         documentation.  Add missing '__' in front of
35389         __builtin_ia32_packssdw256.
35391 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35393         PR target/55719
35394         * config/s390/s390.c (s390_preferred_reload_class): Do not return
35395         NO_REGS for larl operands.
35396         (s390_reload_larl_operand): Use s390_load_address instead of
35397         emit_move_insn.
35399 2013-01-11  Richard Biener  <rguenther@suse.de>
35401         * tree-cfg.c (verify_node_sharing_1): Split out from ...
35402         (verify_node_sharing): ... here.
35403         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
35405 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
35407         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
35408         Substitute TREECHECKING.
35409         * configure: Regenerate.
35410         * Makefile.in (TREECHECKING): New.
35412 2013-01-11  Richard Guenther  <rguenther@suse.de>
35414         PR tree-optimization/44061
35415         * tree-vrp.c (extract_range_basic): Compute zero as
35416         value-range for __builtin_constant_p of function parameters.
35418 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
35420         Update copyright years.
35422 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
35424         PR rtl-optimization/55672
35425         * lra-eliminations.c (mark_not_eliminable): Permit addition with
35426         const to be eliminable.
35428 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
35430         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
35431         * configure: Regenerate.
35433 2013-01-10  Richard Biener  <rguenther@suse.de>
35435         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
35437 2013-01-10  Richard Biener  <rguenther@suse.de>
35439         PR bootstrap/55792
35440         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
35441         locations for virtual PHI arguments.
35442         (rewrite_update_phi_arguments): Likewise.
35444 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
35446         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
35447         on to assembler.
35449 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
35451         PR tree-optimization/55921
35452         * tree-complex.c (expand_complex_asm): New function.
35453         (expand_complex_operations_1): Call it for GIMPLE_ASM.
35455 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35457         PR target/55718
35458         * config/s390/s390.c (s390_symref_operand_p)
35459         (s390_loadrelative_operand_p): Merge the two functions.
35460         (s390_check_qrst_address, print_operand_address): Add parameters
35461         to s390_loadrelative_operand_p invokation.
35462         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
35463         (s390_reload_larl_operand, s390_secondary_reload): Use
35464         s390_loadrelative_operand_p instead of s390_symref_operand_p.
35465         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
35467 2013-01-09  Mike Stump  <mikestump@comcast.net>
35469         * dse.c (record_store): Remove unnecessary assert.
35471 2013-01-09  Jan Hubicka  <jh@suse.cz>
35473         PR tree-optimization/55569
35474         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
35475         * cfgloop.h (scale_loop_profile): Likewise.
35477 2013-01-09  Jan Hubicka  <jh@suse.cz>
35479         PR lto/45375
35480         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
35481         functions.
35482         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
35484 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
35486         PR middle-end/55114
35487         * expr.h (maybe_emit_group_store): Declare.
35488         * expr.c (maybe_emit_group_store): New function.
35489         * builtins.c (expand_builtin_int_roundingfn): Call it.
35490         (expand_builtin_int_roundingfn_2): Likewise.
35492 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
35494         PR rtl-optimization/55829
35495         * lra-constraints.c (match_reload): Add code for absent output.
35496         (curr_insn_transform): Add code for reloads of matched inputs
35497         without output.
35499 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
35501         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
35502         attribute of movddup insn to DF.
35503         (*vec_interleave_lowv2df): Ditto.
35504         (vec_dupv2df): Ditto.
35506 2013-01-09  Jan Hubicka  <jh@suse.cz>
35508         PR tree-optimiation/55875
35509         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
35510         EVERY_ITERATION parameter.
35511         (number_of_iterations_exit): Check if exit is executed every iteration.
35512         (idx_infer_loop_bounds): Similarly here.
35513         (n_of_executions_at_most): Simplify
35514         to only test for cases where statement is dominated by the
35515         particular bound; handle correctly the "postdominance" test.
35516         (scev_probably_wraps_p): Use max loop iterations info
35517         as a global bound first.
35519 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
35520             Nick Clifton  <nickc@redhat.com>
35522         * config/v850/v850.md (cbranchsf4): New pattern.
35523         (cstoresf4): New pattern.
35524         (cbranchdf4): New pattern.
35525         (cstoredf4): New pattern.
35526         (movsicc): Disallow floating point comparisons.
35527         (cmpsf_le_insn): Fix order of operators.
35528         (cmpsf_lt_insn): Likewise.
35529         (cmpsf_eq_insn): Likewise.
35530         (cmpdf_le_insn): Likewise.
35531         (cmpdf_lt_insn): Likewise.
35532         (cmpdf_eq_insn): Likewise.
35533         (cmpsf_ge_insn): Use LE comparison.
35534         (cmpdf_ge_insn): Likewise.
35535         (cmpsf_gt_insn): Use LT comparison.
35536         (cmpdf_gt_insn): Likewise.
35537         (cmpsf_ne_insn): Delete pattern.
35538         (cmpdf_ne_insn): Delete pattern.
35539         * config/v850/v850.c (v850_gen_float_compare): Use
35540         gen_cmpdf_eq_insn for NE comparison.
35541         (v850_float_z_comparison_operator)
35542         (v850_float_nz_comparison_operator): Move from here ...
35543         * config/v850/predicates.md: ... to here.  Move GT and GE
35544         comparisons into v850_float_z_comparison_operator.
35545         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
35546         Delete prototype.
35547         (v850_float_nz_comparison_operator): Likewise.
35549 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35551         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
35552         with calls to gen_insvsi/gen_insvdi.
35554 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
35556         * config/i386/i386.c (initial_ix86_tune_features): Set up
35557         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
35559 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
35560             Jakub Jelinek  <jakub@redhat.com>
35562         PR tree-optimization/48189
35563         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
35564         If nitercst is 0, don't predict the exit edge.
35566 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
35568         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
35569         in asm_fprintf with reg_names.
35570         (aarch64_print_operand_address): Likewise.
35571         (aarch64_return_addr): Likewise.
35572         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
35574 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35576         * config/pa/pa.h (VAL_U6_BITS_P): Define.
35577         (INT_U6_BITS): Likewise.
35578         * config/pa/predicates.md (uint6_operand): New predicate.
35579         (shift5_operand, shift6_operand): Likewise.
35580         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
35581         arith32_operand.
35582         (lshrdi3): Use shift6_operand.
35583         (shrpsi4, shrpdi4): New insn patterns.
35584         (extzv): Delete expander.
35585         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
35586         predicates in unamed zero extract patterns.  Tighten common constraint.
35587         (extv): Delete expander.
35588         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
35589         predicates in unamed sign extract patterns.  Tighten common constraint.
35590         (insv): Delete expander.
35591         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
35592         predicates in unamed insert patterns.  Tighten common constraint.
35593         Change uint32_operand predicate to uint6_operand predicate in unamed
35594         DImode pattern to insert constant values of type 1...1xxxx.
35596 2013-01-04  Jan Hubicka  <jh@suse.cz>
35598         PR tree-optimization/55823
35599         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
35600         issue.
35602 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35603             Uros Bizjak  <ubizjak@gmail.com>
35605         PR rtl-optimization/55845
35606         * df-problems.c (can_move_insns_across): Stop scanning at
35607         volatile_insn_p source instruction or give up if
35608         across_from .. across_to range contains any volatile_insn_p
35609         instructions.
35611 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
35613         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
35614         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
35615         Declare.
35616         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
35617         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
35619 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35621         PR fortran/55341
35622         * asan.c (asan_clear_shadow): New function.
35623         (asan_emit_stack_protection): Use it.
35625 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
35627         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
35628         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
35629         with tab instead of space.
35631 2013-01-08  Nick Clifton  <nickc@redhat.com>
35633         * config/rl78/rl78.c (rl78_expand_prologue): Always select
35634         register bank 0 at the start of an interrupt handler.
35635         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
35636         MDBH registers.
35638 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
35640         * config/aarch64/aarch64-simd.md
35641         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
35642         (aarch64_simd_bsl): Likewise.
35643         (aarch64_vcond_internal<mode>): Likewise.
35644         (vcond<mode><mode>): Likewise.
35645         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
35646         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
35648 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
35650         * config/aarch64/aarch64-builtins.c
35651         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
35653 2013-01-08  Martin Jambor  <mjambor@suse.cz>
35655         PR debug/55579
35656         * tree-sra.c (analyze_access_subtree): Return true also after
35657         potentially creating a debug-only replacement.
35659 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35661         PR middle-end/55890
35662         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
35664         PR tree-optimization/54120
35665         * tree-vrp.c (range_fits_type_p): Don't allow
35666         src_precision < precision from signed vr to unsigned_p
35667         if vr->min or vr->max is negative.
35668         (simplify_float_conversion_using_ranges): Test can_float_p
35669         against CODE_FOR_nothing.
35671 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
35672             Richard Biener  <rguenther@suse.de>
35674         PR middle-end/55851
35675         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
35676         types instead of just INTEGER_TYPE types.
35678 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
35680         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
35681         TF_SIZE): Define.
35683 2013-01-07  Steve Ellcey  <sellcey@mips.com>
35685         PR target/42661
35686         * config/mips/mips.opt: Change mad to mmad to match documentation.
35688 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35690         PR target/55897
35691         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
35692         .progmemx.data now.
35694 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35696         PR target/55897
35697         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
35698         (avr_addrspace_t): Add .section_name field.
35699         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
35700         array size.
35701         (avr_addrspace): Same.  Initialize .section_name.  Remove last
35702         NULL entry.  Put __memx into .progmemx.data.
35703         (progmem_section_prefix): Remove.
35704         (avr_asm_init_sections): No need to initialize progmem_section.
35705         (avr_asm_named_section): Use avr_addrspace[].section_name to get
35706         section name prefix.
35707         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
35708         retrieve the progmem section.
35709         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
35710         boundary to run over avr_addrspace[].
35711         (avr_register_target_pragmas): Ditto.
35713 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
35715         * varasm.c (output_constant_def_contents): For asan_protect_global
35716         protected strings, adjust DECL_ALIGN if needed, before testing for
35717         anchored symbols.
35718         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
35719         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
35720         normal decls.
35721         (output_object_block): For asan protected decls, emit asan padding
35722         after their contents.
35723         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
35724         (asan_finish_file): Test it here instead.
35726 2013-01-07  Nick Clifton  <nickc@redhat.com>
35727             Matthias Klose  <doko@debian.org>
35728             Doug Kwan  <dougkwan@google.com>
35729             H.J. Lu  <hongjiu.lu@intel.com>
35731         PR driver/55470
35732         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
35734         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
35736         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
35738         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
35740         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
35742 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35744         PR target/54461
35745         * doc/install.texi (Cross-Compiler-Specific Options): Document
35746         --with-avrlibc.
35748 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
35750         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
35751         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
35752         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
35753         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
35754         vqmovun_high_s64): Fix source operand number and update copyright.
35756 2013-01-07  Richard Biener  <rguenther@suse.de>
35758         PR middle-end/55890
35759         * gimple.h (gimple_call_builtin_p): New overload.
35760         * gimple.c (validate_call): New function.
35761         (gimple_call_builtin_p): Likewise.
35762         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
35763         Use gimple_call_builtin_p.
35764         (find_func_clobbers): Likewise.
35765         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
35766         (strlen_optimize_stmt): Likewise.
35768 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
35770         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
35771         (vld1q_dup_*): Likewise.
35772         (vld1_*): Likewise.
35773         (vld1q_*): Likewise.
35774         (vld1_lane_*): Likewise.
35775         (vld1q_lane_*): Likewise.
35777 2013-01-07  Richard Biener  <rguenther@suse.de>
35779         * lto-streamer.h (LTO_minor_version): Bump to 2.
35781 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
35783         * config/aarch64/aarch64-protos.h
35784         (aarch64_const_double_zero_rtx_p): Rename to...
35785         (aarch64_float_const_zero_rtx_p): ...this.
35786         (aarch64_float_const_representable_p): New.
35787         (aarch64_output_simd_mov_immediate): Likewise.
35788         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
35789         move immediate case.
35790         * config/aarch64/aarch64.c
35791         (aarch64_const_double_zero_rtx_p): Rename to...
35792         (aarch64_float_const_zero_rtx_p): ...this.
35793         (aarch64_print_operand): Allow printing of new constants.
35794         (aarch64_valid_floating_const): New.
35795         (aarch64_legitimate_constant_p): Check for valid floating-point
35796         constants.
35797         (aarch64_simd_valid_immediate): Likewise.
35798         (aarch64_vect_float_const_representable_p): New.
35799         (aarch64_float_const_representable_p): Likewise.
35800         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
35801         (aarch64_output_simd_mov_immediate): New.
35802         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
35803         (*movdf_aarch64): Likewise.
35804         * config/aarch64/constraints.md (Ufc): New.
35805         (Y): call aarch64_float_const_zero_rtx.
35806         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
35808 2013-01-07  Richard Biener  <rguenther@suse.de>
35810         PR tree-optimization/55888
35811         PR tree-optimization/55862
35812         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
35813         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
35814         not if it is contained therein.
35816 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35818         * config/avr/t-avr: Typo.
35820 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
35822         PR55243
35823         * config/avr/t-avr: Don't automatically rebuild
35824         $(srcdir)/config/avr/t-multilib
35825         $(srcdir)/config/avr/avr-tables.opt
35826         $(srcdir)/doc/avr-mmcu.texi
35827         (avr-mcus): New phony target to build them on request.
35828         (s-avr-mlib, s-avr-mmcu-texi): Remove.
35829         * avr/avr-mcus.def: Adjust comments.
35831 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
35833         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
35835 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
35837         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
35839 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
35841         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
35843 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
35845         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
35846         to generate profiling.
35847         * config/rs6000/aix64.h (LIB_SPEC): Same.
35849 2013-01-04  Andrew Pinski  <apinski@cavium.com>
35851         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
35852         New function.
35853         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
35855 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
35857         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
35858         unconditionally.
35859         (ix86_expand_move): Ditto.
35860         (ix86_zero_extend_to_Pmode): Ditto.
35861         (ix86_expand_call): Ditto.
35862         (ix86_expand_special_args_builtin): Ditto.
35863         (ix86_expand_builtin): Ditto.
35865 2013-01-04  Richard Biener  <rguenther@suse.de>
35867         PR tree-optimization/55862
35868         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
35869         translating them through PHI nodes.
35871 2013-01-04  Martin Jambor  <mjambor@suse.cz>
35873         PR tree-optimization/55755
35874         * tree-sra.c (sra_modify_assign): Do not check that an access has no
35875         children when trying to avoid producing a VIEW_CONVERT_EXPR.
35877 2013-01-04  Marek Polacek  <polacek@redhat.com>
35879         PR middle-end/55859
35880         * opts.c (default_options_optimization): Clarify error message.
35882 2013-01-04  Richard Biener  <rguenther@suse.de>
35884         PR middle-end/55863
35885         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
35886         reassociation.
35888 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
35890         PR target/53789
35891         * config/pa/pa.md (movsi): Revert previous change.
35892         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
35893         references.
35895 2013-01-03  Richard Henderson  <rth@redhat.com>
35897         * config/i386/i386.c (ix86_expand_move): Always assign to op1
35898         after eliminating TLS symbols.
35900 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
35902         PR bootstrap/50167
35903         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
35904         * graphite-poly.c (debug_gmp_value): Likewise.
35906 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
35908         PR target/55712
35909         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
35910         selected code model, define __code_mode_small__, __code_model_medium__,
35911         __code_model_large__, __code_model_32__ or __code_model_kernel__.
35912         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
35913         xchg temporary register with %k.  Declare temporary register as
35914         early clobbered.
35915         [__x86_64__]: For medium and large code models, preserve %rbx register.
35917 2013-01-03  Richard Biener  <rguenther@suse.de>
35919         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
35920         (dump_subscript): Adjust.
35921         (finalize_ddr_dependent): Do not dump redundant info.
35922         (analyze_siv_subscript): Adjust.
35923         (subscript_dependence_tester): Likewise.
35924         (compute_affine_dependence): Likewise.
35926 2013-01-03  Richard Biener  <rguenther@suse.de>
35928         Revert
35929         2013-01-03  Richard Biener  <rguenther@suse.de>
35931         PR tree-optimization/55857
35932         * tree-vect-stmts.c (vectorizable_load): Do not setup
35933         re-alignment for invariant loads.
35935         2013-01-02  Richard Biener  <rguenther@suse.de>
35937         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
35938         invariant load do not generate a vector load from the scalar location.
35940 2013-01-03  Richard Biener  <rguenther@suse.de>
35942         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
35943         for not vectorizing.
35944         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
35945         not build INDIRECT_REFs, call get_name once only.
35946         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
35947         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
35949 2013-01-03  Richard Biener  <rguenther@suse.de>
35951         PR tree-optimization/55857
35952         * tree-vect-stmts.c (vectorizable_load): Do not setup
35953         re-alignment for invariant loads.
35955 2013-01-03  Richard Biener  <rguenther@suse.de>
35957         PR lto/55848
35958         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
35959         prefer a built-in decl.
35961 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
35963         * gcc.c (process_command): Update copyright notice dates.
35964         * gcov.c (print_version): Likewise.
35965         * gcov-dump.c (print_version): Likewise.
35967         PR rtl-optimization/55838
35968         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
35969         iv0.step, iv1.step and step.
35971 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
35972             Marc Glisse  <marc.glisse@inria.fr>
35974         PR tree-optimization/55832
35975         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
35976         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
35977         integer_{one,zero}_node.
35979 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
35981         PR debug/54402
35982         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
35983         * var-tracking.c (reverse_op): Don't add reverse ops to
35984         VALUEs that have already
35985         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
35987 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
35989         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
35991 2013-01-02  Teresa Johnson  <tejohnson@google.com>
35993         * dumpfile.c (dump_loc): Print filename with location.
35994         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
35995         new location_t parameter to emit complete unroll message with
35996         new dump framework.
35997         (canonicalize_loop_induction_variables): Compute loops location
35998         and pass to try_unroll_loop_completely.
35999         * loop-unroll.c (report_unroll_peel): New function.
36000         (peel_loops_completely): Use new dump format with location
36001         for main dumpfile message, and invoke report_unroll_peel on success.
36002         (decide_unrolling_and_peeling): Ditto.
36003         (decide_peel_once_rolling): Remove old dumpfile message subsumed
36004         by report_unroll_peel.
36005         (decide_peel_completely): Ditto.
36006         (decide_unroll_constant_iterations): Ditto.
36007         (decide_unroll_runtime_iterations): Ditto.
36008         (decide_peel_simple): Ditto.
36009         (decide_unroll_stupid): Ditto.
36010         * cfgloop.c (get_loop_location): New function.
36011         * cfgloop.h (get_loop_location): Declare.
36013 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
36015         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
36016         NULL.
36018 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
36020         PR middle-end/55198
36021         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
36022         BLKmode objects when EXPAND_MEMORY is specified.
36024 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
36026         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
36027         in loop predicate.
36028         (fold_builtin_cpu): Do not share cpu model decls across statements.
36030 2013-01-02  Jason Merrill  <jason@redhat.com>
36032         PR c++/55804
36033         * tree.c (build_array_type_1): Revert earlier change.
36035 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
36037         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
36038         "cortex-a57".
36039         * config/aarch64/aarch64-tune.md: Re-generate.
36041 2013-01-02  Richard Biener  <rguenther@suse.de>
36043         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
36044         invariant load do not generate a vector load from the scalar location.
36046 2013-01-02  Richard Biener  <rguenther@suse.de>
36048         PR bootstrap/55784
36049         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
36050         * configure: Regenerate.
36052 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36054         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
36055         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
36056         (expand_builtin_int_roundingfn_2): Keep the original target around
36057         for the fallback case.
36059 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36061         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
36062         to be clear for sign changes.
36064 2013-01-01  Jan Hubicka  <jh@suse.cz>
36066         * ipa-inline-analysis.c: Fix formatting.
36068 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
36070         PR tree-optimization/55831
36071         * tree-vect-loop.c (get_initial_def_for_induction): Use
36072         gsi_after_labels instead of gsi_start_bb.
36074 Copyright (C) 2013 Free Software Foundation, Inc.
36076 Copying and distribution of this file, with or without modification,
36077 are permitted in any medium without royalty provided the copyright
36078 notice and this notice are preserved.